import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
export class DropdownLegendComponent {
}
DropdownLegendComponent.decorators = [
    { type: Component, args: [{
                selector: 'acl-dropdown-legend',
                template: `
    <ng-container *ngIf="!isCard; else elseTemplate">
      <aui-icon
        class="btn"
        icon="basic:chart_legend"
        [auiTooltip]="dropdownItemTemplate"
        [auiTooltipContext]="{ data: [] }"
        auiTooltipType="info"
        auiTooltipPosition="bottom end"
        auiTooltipTrigger="click"
        auiTooltipActive="legendActive"
      ></aui-icon>
    </ng-container>
    <ng-template #elseTemplate>
      <button
        aui-button
        [square]="true"
        class="btn"
        icon="basic:chart_legend"
        [auiTooltip]="dropdownItemTemplate"
        [auiTooltipContext]="{ data: [] }"
        auiTooltipType="info"
        auiTooltipPosition="bottom end"
        auiTooltipTrigger="click"
        auiTooltipActive="legendActive"
      >
        <aui-icon icon="basic:chart_legend"></aui-icon>
      </button>
    </ng-template>

    <ng-template #dropdownItemTemplate>
      <ng-container *ngIf="data.length && !noData; else noDataTemplate">
        <div class="legend-vertical">
          <ng-container [ngTemplateOutlet]="legendTemplate"></ng-container>
        </div>
      </ng-container>
      <ng-template #noDataTemplate>
        {{ 'no_data' | translate }}
      </ng-template>
    </ng-template>
  `,
                changeDetection: ChangeDetectionStrategy.OnPush,
                styles: [".btn{color:#999;cursor:pointer}::ng-deep .legend-label{padding:0;margin:0;list-style:none;display:flex;align-items:center;cursor:pointer;justify-content:flex-start}::ng-deep .legend-label:not(:last-child){margin-bottom:8px}::ng-deep .label-name{color:var(--aui-color-text-secondary)}::ng-deep .label-symbol{margin-right:4px}:host .legend-labels{padding:0;margin:0;list-style:none;display:flex;flex-direction:column}.legendActive{color:var(--aui-color-primary)}\n", ".legend-wrap{display:inline-block}.legend-wrap ul,.legend-wrap li{padding:0;margin:0;list-style:none}.legend-wrap .legend-labels{display:flex}.legend-wrap .legend-label{display:flex;align-items:center;cursor:pointer;justify-content:center}.legend-wrap .legend-label:not(:last-child){margin-right:20px}.legend-wrap .forbid{cursor:no-drop}.legend-wrap .label-name{font-size:12px;color:var(--aui-color-text-secondary)}.legend-wrap .label-symbol{margin-right:4px}.disable .label-symbol{background:var(--aui-color-info)!important}.disable .label-name{color:var(--aui-color-info)}.hover .label-name{color:#000}.symbol-square{width:12px;height:12px;display:inline-block}.symbol-line{width:12px;height:2px;display:inline-block}.symbol-circle{width:12px;height:12px;border-radius:50%;display:inline-block}.operation{display:flex;justify-content:center}.select-all ::ng-deep .aui-checkbox{font-size:12px;line-height:16px;margin-bottom:8px}\n"]
            },] }
];
DropdownLegendComponent.propDecorators = {
    data: [{ type: Input }],
    legendTemplate: [{ type: Input }],
    noData: [{ type: Input }],
    isCard: [{ type: Input }]
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tbGVnZW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYWxhdWRhLWNvbW1vbi1saWIvc3JjL2NoYXJ0L2N1c3RvbS10ZW1wbGF0ZS9kcm9wZG93bi1sZWdlbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsS0FBSyxHQUVOLE1BQU0sZUFBZSxDQUFDO0FBcUR2QixNQUFNLE9BQU8sdUJBQXVCOzs7WUFqRG5DLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUscUJBQXFCO2dCQUMvQixRQUFRLEVBQUU7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F3Q1Q7Z0JBS0QsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07O2FBQ2hEOzs7bUJBRUUsS0FBSzs2QkFDTCxLQUFLO3FCQUNMLEtBQUs7cUJBQ0wsS0FBSyIsInNvdXJjZXNDb250ZW50IjpbImltcG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