/**
 * @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";
var GridActionItemComponent = /** @class */ (function () {
    function GridActionItemComponent() {
        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",
        ];
    }
    Object.defineProperty(GridActionItemComponent.prototype, "hostDisabled", {
        get: /**
         * @return {?}
         */
        function () {
            return !!this.disabled;
        },
        enumerable: true,
        configurable: true
    });
    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",] }]
    };
    return GridActionItemComponent;
}());
export { GridActionItemComponent };
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JpZC1hY3Rpb24taXRlbS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9yYWlzZS1jb21tb24t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