/**
 * @fileoverview added by tsickle
 * Generated from: lib/common-grid/grid-action/grid-action-item/grid-action-item.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, HostBinding, Input } from "@angular/core";
export class GridActionItemComponent {
    constructor() {
        this.children = [];
        this.hideArrow = false;
        this.disabledOptions = {};
        this.ImageType = [
            "Detail",
            "Edit",
            "Duplicate",
            "Refresh",
            "Download",
            "Delete",
            "Note",
            "Send",
            "Copy",
            "Settle",
            "Preview",
            "Export",
            "Move",
            "Add",
            "Update",
            "Import",
            "Upload",
            "AddFolder",
            "Collapse",
            "Combine",
            "Lock",
            "Expand",
            "MoveTo",
            "Publish",
            "ReCalculate",
            "Sync",
            "Share",
            "Rename",
            "SaveSequence",
            "SubmitForApproval",
            "SendToControlPanel",
            "SetReminders",
            "Settle",
            "Template",
            "Workflow",
            "FetchData",
            "ViewStatus",
            "Verify",
        ];
    }
    /**
     * @return {?}
     */
    get hostDisabled() {
        return !!this.disabled;
    }
}
GridActionItemComponent.decorators = [
    { type: Component, args: [{
                selector: "rs-grid-action-item",
                template: "<button\r\n  *ngIf=\"!children.length\"\r\n  class=\"grid-action-item e-btn text\"\r\n  mat-menu-item\r\n  type=\"button\"\r\n  [disabled]=\"!!disabled\"\r\n>\r\n  <span class=\"grid-action-image\" *ngIf=\"image\" [attr.data-type]=\"image\">\r\n    <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n  </span>\r\n  <span>{{ text }}</span>\r\n</button>\r\n\r\n<rs-float-box placement=\"right\" position=\"start\">\r\n  <button\r\n    *ngIf=\"children.length\"\r\n    class=\"grid-action-item e-btn text\"\r\n    mat-menu-item\r\n    [disabled]=\"!!disabled\"\r\n  >\r\n    <span class=\"grid-action-image\" *ngIf=\"image\" [attr.data-type]=\"image\">\r\n      <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n    </span>\r\n    <span>{{ text }}</span>\r\n    <span class=\"grid-action-arrow\" *ngIf=\"!hideArrow\">\r\n      <img src=\"assets/img/grid-menu-arrow-right.svg\" />\r\n    </span>\r\n  </button>\r\n  <div float-content>\r\n    <ng-container *ngFor=\"let button of children\">\r\n      <button\r\n        class=\"grid-action-item e-btn text\"\r\n        [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n        (click)=\"button.action()\"\r\n      >\r\n        <span\r\n          class=\"grid-action-image\"\r\n          *ngIf=\"button.image\"\r\n          [attr.data-type]=\"button.image\"\r\n        >\r\n          <img *ngIf=\"!ImageType.includes(button.image)\" [src]=\"button.image\" />\r\n        </span>\r\n        <span>{{ button.text }}</span>\r\n      </button>\r\n    </ng-container>\r\n  </div>\r\n</rs-float-box>\r\n"
            }] }
];
GridActionItemComponent.propDecorators = {
    image: [{ type: Input, args: ["image",] }],
    text: [{ type: Input, args: ["text",] }],
    disabled: [{ type: Input, args: ["disabled",] }],
    children: [{ type: Input, args: ["children",] }],
    hideArrow: [{ type: Input, args: ["hideArrow",] }],
    disabledOptions: [{ type: Input }],
    hostDisabled: [{ type: HostBinding, args: ["class.disabled",] }]
};
if (false) {
    /** @type {?} */
    GridActionItemComponent.prototype.image;
    /** @type {?} */
    GridActionItemComponent.prototype.text;
    /** @type {?} */
    GridActionItemComponent.prototype.disabled;
    /** @type {?} */
    GridActionItemComponent.prototype.children;
    /** @type {?} */
    GridActionItemComponent.prototype.hideArrow;
    /** @type {?} */
    GridActionItemComponent.prototype.disabledOptions;
    /** @type {?} */
    GridActionItemComponent.prototype.ImageType;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JpZC1hY3Rpb24taXRlbS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9yYWlzZS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2NvbW1vbi1ncmlkL2dyaWQtYWN0aW9uL2dyaWQtYWN0aW9uLWl0ZW0vZ3JpZC1hY3Rpb24taX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