@aaamb/ngx-design-system 1.2.1 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, output, computed, Component, signal, effect, forwardRef, ViewChild, HostListener, CUSTOM_ELEMENTS_SCHEMA, EventEmitter, Input, Output, Attribute } from '@angular/core';
3
- import * as i1$2 from '@angular/forms';
3
+ import * as i1$1 from '@angular/forms';
4
4
  import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule, FormBuilder, Validators } from '@angular/forms';
5
- import * as i1 from '@angular/common';
5
+ import * as i2 from '@angular/common';
6
6
  import { CommonModule, NgClass, NgStyle } from '@angular/common';
7
7
  import { NgxMaskDirective, provideNgxMask } from 'ngx-mask';
8
- import * as i1$1 from 'ng-zorro-antd/date-picker';
8
+ import * as i1 from 'ng-zorro-antd/date-picker';
9
9
  import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
10
10
  import { en_US, NZ_I18N, NZ_DATE_CONFIG } from 'ng-zorro-antd/i18n';
11
- import * as i2 from 'ng-zorro-antd/select';
11
+ import * as i2$1 from 'ng-zorro-antd/select';
12
12
  import { NzSelectModule } from 'ng-zorro-antd/select';
13
- import * as i1$3 from 'ng-zorro-antd/tooltip';
13
+ import * as i1$2 from 'ng-zorro-antd/tooltip';
14
14
  import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
15
- import * as i1$4 from '@angular/cdk/drag-drop';
15
+ import * as i1$3 from '@angular/cdk/drag-drop';
16
16
  import { DragDropModule, CdkDrag, CdkDropList } from '@angular/cdk/drag-drop';
17
17
  import { FlexRenderDirective } from '@tanstack/angular-table';
18
18
 
@@ -704,7 +704,7 @@ class StateComponent {
704
704
  containerShapes = input(this.SHAPES.ROUNDED, ...(ngDevMode ? [{ debugName: "containerShapes" }] : /* istanbul ignore next */ []));
705
705
  baseClases = 'inline-flex items-center justify-center px-5 py-1 text-sm border border-solid select-none';
706
706
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: StateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
707
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: StateComponent, isStandalone: true, selector: "ads-state", inputs: { boldText: { classPropertyName: "boldText", publicName: "boldText", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, borderColor: { classPropertyName: "borderColor", publicName: "borderColor", isSignal: true, isRequired: false, transformFunction: null }, bgColor: { classPropertyName: "bgColor", publicName: "bgColor", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "textColor", isSignal: true, isRequired: false, transformFunction: null }, containerShapes: { classPropertyName: "containerShapes", publicName: "containerShapes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"\n borderColor() + ' ' + bgColor() + ' ' + textColor() + ' ' + baseClases\n \"\n [ngClass]=\"{\n 'rounded-2xl': containerShapes() === SHAPES.ROUNDED,\n 'rounded-[10px]': containerShapes() === SHAPES.SQUARE,\n 'w-full': fullWidth(),\n 'font-semibold': boldText(),\n }\"\n>\n {{ text() }}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
707
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: StateComponent, isStandalone: true, selector: "ads-state", inputs: { boldText: { classPropertyName: "boldText", publicName: "boldText", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, borderColor: { classPropertyName: "borderColor", publicName: "borderColor", isSignal: true, isRequired: false, transformFunction: null }, bgColor: { classPropertyName: "bgColor", publicName: "bgColor", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "textColor", isSignal: true, isRequired: false, transformFunction: null }, containerShapes: { classPropertyName: "containerShapes", publicName: "containerShapes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"\n borderColor() + ' ' + bgColor() + ' ' + textColor() + ' ' + baseClases\n \"\n [ngClass]=\"{\n 'rounded-2xl': containerShapes() === SHAPES.ROUNDED,\n 'rounded-[10px]': containerShapes() === SHAPES.SQUARE,\n 'w-full': fullWidth(),\n 'font-semibold': boldText(),\n }\"\n>\n {{ text() }}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
708
708
  }
709
709
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: StateComponent, decorators: [{
710
710
  type: Component,
@@ -1088,7 +1088,7 @@ class InputDatepickerComponent {
1088
1088
  useExisting: forwardRef(() => InputDatepickerComponent),
1089
1089
  multi: true,
1090
1090
  },
1091
- ], viewQueries: [{ propertyName: "datePickerRef", first: true, predicate: ["datePicker"], descendants: true }], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label [text]=\"label()\"></ads-label>\n\n <div class=\"relative w-full h-9.5\">\n <input\n type=\"text\"\n [class]=\"inputStateClass()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"datePickerPlaceholder()\"\n [ngModel]=\"selectedDate()\"\n (ngModelChange)=\"onInputTextChange($event)\"\n (blur)=\"onInputBlur()\"\n [mask]=\"monthlyPicker() ? '00/0000' : '00/00/0000'\"\n />\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-2': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n @if (!monthlyPicker()) {\n <nz-date-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedDateObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"datePickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-date-picker>\n } @else {\n <nz-month-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedDateObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"datePickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-month-picker>\n }\n </div>\n\n <ads-error-message\n [hasError]=\"hasVisualError()\"\n [errorMessage]=\"resolvedErrorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1$1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i1$1.NzMonthPickerComponent, selector: "nz-month-picker", exportAs: ["nzMonthPicker"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
1091
+ ], viewQueries: [{ propertyName: "datePickerRef", first: true, predicate: ["datePicker"], descendants: true }], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label [text]=\"label()\"></ads-label>\n\n <div class=\"relative w-full h-9.5\">\n <input\n type=\"text\"\n [class]=\"inputStateClass()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"datePickerPlaceholder()\"\n [ngModel]=\"selectedDate()\"\n (ngModelChange)=\"onInputTextChange($event)\"\n (blur)=\"onInputBlur()\"\n [mask]=\"monthlyPicker() ? '00/0000' : '00/00/0000'\"\n />\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-2': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n @if (!monthlyPicker()) {\n <nz-date-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedDateObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"datePickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-date-picker>\n } @else {\n <nz-month-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedDateObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"datePickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-month-picker>\n }\n </div>\n\n <ads-error-message\n [hasError]=\"hasVisualError()\"\n [errorMessage]=\"resolvedErrorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i1.NzMonthPickerComponent, selector: "nz-month-picker", exportAs: ["nzMonthPicker"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
1092
1092
  }
1093
1093
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: InputDatepickerComponent, decorators: [{
1094
1094
  type: Component,
@@ -1386,7 +1386,7 @@ class InputRangepickerComponent {
1386
1386
  useExisting: forwardRef(() => InputRangepickerComponent),
1387
1387
  multi: true,
1388
1388
  },
1389
- ], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label [text]=\"label()\"></ads-label>\n\n <div class=\"relative w-full h-9.5 min-w-65\">\n <input\n type=\"text\"\n [class]=\"inputStateClass() + ' pr-12'\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"rangePickerPlaceholder()\"\n [ngModel]=\"selectedRange()\"\n (ngModelChange)=\"onInputTextChange($event)\"\n (blur)=\"onInputBlur()\"\n [mask]=\"'00/00/0000 - 00/00/0000'\"\n />\n\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-2': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n\n <nz-range-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n [ngModel]=\"selectedRangeObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"[rangePickerPlaceholder(), rangePickerPlaceholder()]\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onRangeValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-range-picker>\n </div>\n\n <ads-error-message\n [hasError]=\"hasVisualError()\"\n [errorMessage]=\"resolvedErrorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1$1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i1$1.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
1389
+ ], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label [text]=\"label()\"></ads-label>\n\n <div class=\"relative w-full h-9.5 min-w-65\">\n <input\n type=\"text\"\n [class]=\"inputStateClass() + ' pr-12'\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"rangePickerPlaceholder()\"\n [ngModel]=\"selectedRange()\"\n (ngModelChange)=\"onInputTextChange($event)\"\n (blur)=\"onInputBlur()\"\n [mask]=\"'00/00/0000 - 00/00/0000'\"\n />\n\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-2': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n\n <nz-range-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n [ngModel]=\"selectedRangeObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"[rangePickerPlaceholder(), rangePickerPlaceholder()]\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onRangeValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-range-picker>\n </div>\n\n <ads-error-message\n [hasError]=\"hasVisualError()\"\n [errorMessage]=\"resolvedErrorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i1.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
1390
1390
  }
1391
1391
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: InputRangepickerComponent, decorators: [{
1392
1392
  type: Component,
@@ -1411,6 +1411,347 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
1411
1411
  args: ['document:click', ['$event']]
1412
1412
  }] } });
1413
1413
 
1414
+ class InputWeekpickerComponent {
1415
+ elementRef;
1416
+ isPickerDisabled = input(false, ...(ngDevMode ? [{ debugName: "isPickerDisabled" }] : /* istanbul ignore next */ []));
1417
+ weekPickerPlaceholder = input('MM/DD/YYYY - MM/DD/YYYY', ...(ngDevMode ? [{ debugName: "weekPickerPlaceholder" }] : /* istanbul ignore next */ []));
1418
+ hasError = input(false, ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
1419
+ errorMessage = input('Please enter a valid date range.', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
1420
+ isDatePickerOpen = false;
1421
+ selectedWeek = signal('', ...(ngDevMode ? [{ debugName: "selectedWeek" }] : /* istanbul ignore next */ []));
1422
+ selectedWeekRange = signal(null, ...(ngDevMode ? [{ debugName: "selectedWeekRange" }] : /* istanbul ignore next */ []));
1423
+ invalidInput = signal(false, ...(ngDevMode ? [{ debugName: "invalidInput" }] : /* istanbul ignore next */ []));
1424
+ futureDatesAllowed = input(false, ...(ngDevMode ? [{ debugName: "futureDatesAllowed" }] : /* istanbul ignore next */ []));
1425
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1426
+ datePickerRef;
1427
+ cvaDisabled = false;
1428
+ onChange = () => { };
1429
+ onTouched = () => { };
1430
+ basicClass = 'w-full rounded-lg border border-solid px-3 py-2 text-sm outline-none placeholder:neutral-disabled-text';
1431
+ isDisabled() {
1432
+ return this.isPickerDisabled() || this.cvaDisabled;
1433
+ }
1434
+ activeInputClass() {
1435
+ return 'hover:border-aqua-2 focus:border-aqua-2';
1436
+ }
1437
+ errorActiveClass() {
1438
+ return 'hover:border-red-1 focus:border-red-1';
1439
+ }
1440
+ inputStateClass() {
1441
+ if (this.isDisabled()) {
1442
+ return `${this.basicClass} border-neutral-disabled-bg bg-neutral-disabled-bg text-neutral-disabled-text placeholder:neutral-disabled-text cursor-default`;
1443
+ }
1444
+ if (this.hasError()) {
1445
+ return `${this.basicClass} ${this.errorActiveClass()} border-red-3 bg-red-6 text-green-base`;
1446
+ }
1447
+ return `${this.basicClass} ${this.activeInputClass()} border-aqua-5 bg-aqua-6 focus:border-primary text-green-base`;
1448
+ }
1449
+ onInputValue(value) {
1450
+ const date = this.toDate(value);
1451
+ if (!date) {
1452
+ this.invalidInput.set(true);
1453
+ this.selectedWeekRange.set(null);
1454
+ this.selectedWeek.set('');
1455
+ this.onChange('');
1456
+ return;
1457
+ }
1458
+ if (!this.futureDatesAllowed() && this.isFutureDate(date)) {
1459
+ this.invalidInput.set(true);
1460
+ this.selectedWeekRange.set(null);
1461
+ this.selectedWeek.set('');
1462
+ this.onChange('');
1463
+ return;
1464
+ }
1465
+ const week = this.getISOWeek(date);
1466
+ const year = this.getISOYear(date);
1467
+ const start = this.getDateFromISOWeek(year, week);
1468
+ const end = new Date(start);
1469
+ end.setDate(start.getDate() + 6);
1470
+ this.invalidInput.set(false);
1471
+ this.selectedWeekRange.set([start, end]);
1472
+ const formatted = `${this.formatDate(start)} - ${this.formatDate(end)}`;
1473
+ this.selectedWeek.set(formatted);
1474
+ this.onChange(formatted);
1475
+ }
1476
+ onInputTextChange(text) {
1477
+ const rawText = text ?? '';
1478
+ const normalizedText = this.normalizeToUsRangeFormat(rawText);
1479
+ this.selectedWeek.set(normalizedText);
1480
+ if (!normalizedText.trim()) {
1481
+ this.invalidInput.set(false);
1482
+ this.selectedWeek.set('');
1483
+ this.selectedWeekRange.set(null);
1484
+ this.onChange('');
1485
+ return;
1486
+ }
1487
+ const parsedRange = this.parseRange(normalizedText);
1488
+ if (parsedRange) {
1489
+ const [start, end] = parsedRange;
1490
+ if (!this.futureDatesAllowed() && this.hasFutureDateInRange([start, end])) {
1491
+ this.invalidInput.set(true);
1492
+ this.selectedWeekRange.set(null);
1493
+ this.selectedWeek.set('');
1494
+ this.onChange('');
1495
+ return;
1496
+ }
1497
+ this.invalidInput.set(false);
1498
+ this.selectedWeekRange.set([start, end]);
1499
+ const formatted = `${this.formatDate(start)} - ${this.formatDate(end)}`;
1500
+ this.selectedWeek.set(formatted);
1501
+ this.onChange(formatted);
1502
+ return;
1503
+ }
1504
+ this.invalidInput.set(true);
1505
+ this.selectedWeekRange.set(null);
1506
+ this.onChange(normalizedText);
1507
+ }
1508
+ normalizeToUsRangeFormat(text) {
1509
+ const digits = text.replace(/\D/g, '');
1510
+ if (digits.length === 16) {
1511
+ return `${digits.slice(0, 2)}/${digits.slice(2, 4)}/${digits.slice(4, 8)} - ${digits.slice(8, 10)}/${digits.slice(10, 12)}/${digits.slice(12, 16)}`;
1512
+ }
1513
+ return text;
1514
+ }
1515
+ parseRange(text) {
1516
+ const normalized = text.trim();
1517
+ const strictRangePattern = /^\d{2}\/\d{2}\/\d{4}\s-\s\d{2}\/\d{2}\/\d{4}$/;
1518
+ if (!strictRangePattern.test(normalized))
1519
+ return null;
1520
+ const [startText, endText] = normalized.split(' - ');
1521
+ const start = this.parseDate(startText);
1522
+ const end = this.parseDate(endText);
1523
+ if (!start || !end)
1524
+ return null;
1525
+ return [start, end];
1526
+ }
1527
+ toDateRange(value) {
1528
+ if (!value)
1529
+ return null;
1530
+ if (Array.isArray(value) && value.length === 2) {
1531
+ const start = this.toDate(value[0]);
1532
+ const end = this.toDate(value[1]);
1533
+ if (!start || !end)
1534
+ return null;
1535
+ return [start, end];
1536
+ }
1537
+ if (typeof value === 'string') {
1538
+ return this.parseRange(value);
1539
+ }
1540
+ return null;
1541
+ }
1542
+ parseDate(text) {
1543
+ const normalized = text.trim();
1544
+ const strictDatePattern = /^\d{2}\/\d{2}\/\d{4}$/;
1545
+ if (!strictDatePattern.test(normalized))
1546
+ return null;
1547
+ const parts = normalized.split('/');
1548
+ if (parts.length !== 3)
1549
+ return null;
1550
+ const [monthStr, dayStr, yearStr] = parts;
1551
+ const month = parseInt(monthStr, 10);
1552
+ const day = parseInt(dayStr, 10);
1553
+ const year = parseInt(yearStr, 10);
1554
+ if (isNaN(month) || isNaN(day) || isNaN(year))
1555
+ return null;
1556
+ if (month < 1 || month > 12 || day < 1 || day > 31)
1557
+ return null;
1558
+ const date = new Date(year, month - 1, day);
1559
+ if (date.getMonth() !== month - 1 || date.getDate() !== day)
1560
+ return null;
1561
+ return date;
1562
+ }
1563
+ formatDate(date) {
1564
+ const month = String(date.getMonth() + 1).padStart(2, '0');
1565
+ const day = String(date.getDate()).padStart(2, '0');
1566
+ const year = date.getFullYear();
1567
+ return `${month}/${day}/${year}`;
1568
+ }
1569
+ toDate(value) {
1570
+ if (!value)
1571
+ return null;
1572
+ if (value instanceof Date) {
1573
+ return Number.isNaN(value.getTime()) ? null : value;
1574
+ }
1575
+ if (typeof value === 'string') {
1576
+ const parsedDate = this.parseDate(value);
1577
+ if (parsedDate)
1578
+ return parsedDate;
1579
+ const parsedRange = this.parseRange(value);
1580
+ if (parsedRange)
1581
+ return parsedRange[0];
1582
+ if (!this.isIsoDateString(value))
1583
+ return null;
1584
+ const isoDate = new Date(value);
1585
+ return Number.isNaN(isoDate.getTime()) ? null : isoDate;
1586
+ }
1587
+ if (typeof value === 'object' && value !== null) {
1588
+ const maybeWithToDate = value;
1589
+ if (typeof maybeWithToDate.toDate === 'function') {
1590
+ const converted = maybeWithToDate.toDate();
1591
+ return Number.isNaN(converted.getTime()) ? null : converted;
1592
+ }
1593
+ const maybeWithNativeDate = value;
1594
+ if (maybeWithNativeDate.$d instanceof Date) {
1595
+ return Number.isNaN(maybeWithNativeDate.$d.getTime())
1596
+ ? null
1597
+ : maybeWithNativeDate.$d;
1598
+ }
1599
+ }
1600
+ return null;
1601
+ }
1602
+ isIsoDateString(value) {
1603
+ return /^\d{4}-\d{2}-\d{2}(?:[T\s].*)?$/.test(value.trim());
1604
+ }
1605
+ getISOWeek(date) {
1606
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
1607
+ const dayNum = d.getUTCDay() || 7;
1608
+ d.setUTCDate(d.getUTCDate() + 4 - dayNum);
1609
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
1610
+ return Math.ceil((((d.getTime() - yearStart.getTime()) / 86400000) + 1) / 7);
1611
+ }
1612
+ getISOYear(date) {
1613
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
1614
+ const dayNum = d.getUTCDay() || 7;
1615
+ d.setUTCDate(d.getUTCDate() + 4 - dayNum);
1616
+ return d.getUTCFullYear();
1617
+ }
1618
+ getDateFromISOWeek(year, week) {
1619
+ const simple = new Date(year, 0, 1 + (week - 1) * 7);
1620
+ const dow = simple.getDay();
1621
+ const ISOweekStart = simple;
1622
+ if (dow <= 4)
1623
+ ISOweekStart.setDate(simple.getDate() - simple.getDay() + 1);
1624
+ else
1625
+ ISOweekStart.setDate(simple.getDate() + 8 - simple.getDay());
1626
+ return ISOweekStart;
1627
+ }
1628
+ openDatePicker() {
1629
+ this.isDatePickerOpen = !this.isDatePickerOpen;
1630
+ }
1631
+ onOpenChange(isOpen) {
1632
+ this.isDatePickerOpen = isOpen;
1633
+ }
1634
+ onInputBlur() {
1635
+ this.onTouched();
1636
+ }
1637
+ onInputKeyDown(event) {
1638
+ if (event.key !== 'Backspace' && event.key !== 'Delete') {
1639
+ return;
1640
+ }
1641
+ event.preventDefault();
1642
+ this.clearSelection();
1643
+ }
1644
+ clearSelection() {
1645
+ this.invalidInput.set(false);
1646
+ this.selectedWeek.set('');
1647
+ this.selectedWeekRange.set(null);
1648
+ this.onChange('');
1649
+ }
1650
+ writeValue(value) {
1651
+ const parsedRange = this.toDateRange(value);
1652
+ if (parsedRange) {
1653
+ const [start, end] = parsedRange;
1654
+ this.invalidInput.set(false);
1655
+ this.selectedWeekRange.set([start, end]);
1656
+ this.selectedWeek.set(`${this.formatDate(start)} - ${this.formatDate(end)}`);
1657
+ return;
1658
+ }
1659
+ if (typeof value === 'string') {
1660
+ const normalizedText = this.normalizeToUsRangeFormat(value);
1661
+ this.selectedWeek.set(normalizedText);
1662
+ const parsed = this.parseRange(normalizedText);
1663
+ this.selectedWeekRange.set(parsed);
1664
+ this.invalidInput.set(normalizedText.trim().length > 0 && !parsed);
1665
+ return;
1666
+ }
1667
+ this.invalidInput.set(false);
1668
+ this.selectedWeek.set('');
1669
+ this.selectedWeekRange.set(null);
1670
+ }
1671
+ hasVisualError() {
1672
+ return this.hasError() || this.invalidInput();
1673
+ }
1674
+ resolvedErrorMessage() {
1675
+ if (this.hasError()) {
1676
+ return this.errorMessage();
1677
+ }
1678
+ return this.invalidInput() ? this.errorMessage() : '';
1679
+ }
1680
+ registerOnChange(fn) {
1681
+ this.onChange = fn;
1682
+ }
1683
+ registerOnTouched(fn) {
1684
+ this.onTouched = fn;
1685
+ }
1686
+ setDisabledState(isDisabled) {
1687
+ this.cvaDisabled = isDisabled;
1688
+ }
1689
+ onDocumentClick(event) {
1690
+ if (!this.isDatePickerOpen) {
1691
+ return;
1692
+ }
1693
+ const target = event.target;
1694
+ const containerElement = this.elementRef?.nativeElement;
1695
+ if (target instanceof Element && containerElement?.contains(target)) {
1696
+ return;
1697
+ }
1698
+ if (target instanceof Element && target.closest('.cdk-overlay-pane')) {
1699
+ return;
1700
+ }
1701
+ this.isDatePickerOpen = false;
1702
+ }
1703
+ disabledDate = (current) => {
1704
+ if (this.futureDatesAllowed())
1705
+ return false;
1706
+ return this.isFutureDate(current);
1707
+ };
1708
+ isFutureDate(date) {
1709
+ const today = new Date();
1710
+ today.setHours(0, 0, 0, 0);
1711
+ const comparedDate = new Date(date);
1712
+ comparedDate.setHours(0, 0, 0, 0);
1713
+ return comparedDate.getTime() > today.getTime();
1714
+ }
1715
+ hasFutureDateInRange(range) {
1716
+ const [start, end] = range;
1717
+ return this.isFutureDate(start) || this.isFutureDate(end);
1718
+ }
1719
+ constructor(elementRef) {
1720
+ this.elementRef = elementRef;
1721
+ }
1722
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: InputWeekpickerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1723
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: InputWeekpickerComponent, isStandalone: true, selector: "ads-input-weekpicker", inputs: { isPickerDisabled: { classPropertyName: "isPickerDisabled", publicName: "isPickerDisabled", isSignal: true, isRequired: false, transformFunction: null }, weekPickerPlaceholder: { classPropertyName: "weekPickerPlaceholder", publicName: "weekPickerPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, hasError: { classPropertyName: "hasError", publicName: "hasError", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, futureDatesAllowed: { classPropertyName: "futureDatesAllowed", publicName: "futureDatesAllowed", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, providers: [
1724
+ {
1725
+ provide: NG_VALUE_ACCESSOR,
1726
+ useExisting: forwardRef(() => InputWeekpickerComponent),
1727
+ multi: true,
1728
+ },
1729
+ ], viewQueries: [{ propertyName: "datePickerRef", first: true, predicate: ["datePicker"], descendants: true }], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label [text]=\"label()\"></ads-label>\n\n <div class=\"relative w-full h-9.5\">\n <input\n type=\"text\"\n [class]=\"inputStateClass() + ' pr-12'\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"'Choose your week'\"\n [ngModel]=\"selectedWeek()\"\n (blur)=\"onInputBlur()\"\n (keydown)=\"onInputKeyDown($event)\"\n readonly\n />\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-2': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n <nz-date-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedWeekRange()?.[0] ?? null\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"weekPickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzMode]=\"'week'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n [nzShowWeekNumber]=\"true\"\n ></nz-date-picker>\n </div>\n\n <ads-error-message\n [hasError]=\"hasVisualError()\"\n [errorMessage]=\"resolvedErrorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
1730
+ }
1731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: InputWeekpickerComponent, decorators: [{
1732
+ type: Component,
1733
+ args: [{ imports: [
1734
+ NzDatePickerModule,
1735
+ CommonModule,
1736
+ FormsModule,
1737
+ IconComponent,
1738
+ LabelComponent,
1739
+ ErrorMessageComponent,
1740
+ ], selector: 'ads-input-weekpicker', providers: [
1741
+ {
1742
+ provide: NG_VALUE_ACCESSOR,
1743
+ useExisting: forwardRef(() => InputWeekpickerComponent),
1744
+ multi: true,
1745
+ },
1746
+ ], template: "<div class=\"flex w-full flex-col\">\n <ads-label [text]=\"label()\"></ads-label>\n\n <div class=\"relative w-full h-9.5\">\n <input\n type=\"text\"\n [class]=\"inputStateClass() + ' pr-12'\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"'Choose your week'\"\n [ngModel]=\"selectedWeek()\"\n (blur)=\"onInputBlur()\"\n (keydown)=\"onInputKeyDown($event)\"\n readonly\n />\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-2': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n <nz-date-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedWeekRange()?.[0] ?? null\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"weekPickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzMode]=\"'week'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n [nzShowWeekNumber]=\"true\"\n ></nz-date-picker>\n </div>\n\n <ads-error-message\n [hasError]=\"hasVisualError()\"\n [errorMessage]=\"resolvedErrorMessage()\"\n ></ads-error-message>\n</div>\n" }]
1747
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { isPickerDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isPickerDisabled", required: false }] }], weekPickerPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekPickerPlaceholder", required: false }] }], hasError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasError", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], futureDatesAllowed: [{ type: i0.Input, args: [{ isSignal: true, alias: "futureDatesAllowed", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], datePickerRef: [{
1748
+ type: ViewChild,
1749
+ args: ['datePicker']
1750
+ }], onDocumentClick: [{
1751
+ type: HostListener,
1752
+ args: ['document:click', ['$event']]
1753
+ }] } });
1754
+
1414
1755
  class DatepickerSelectorComponent {
1415
1756
  elementRef;
1416
1757
  isPickerDisabled = input(false, ...(ngDevMode ? [{ debugName: "isPickerDisabled" }] : /* istanbul ignore next */ []));
@@ -1600,7 +1941,7 @@ class DatepickerSelectorComponent {
1600
1941
  useExisting: forwardRef(() => DatepickerSelectorComponent),
1601
1942
  multi: true,
1602
1943
  },
1603
- ], viewQueries: [{ propertyName: "selectorTriggerRef", first: true, predicate: ["selectorTrigger"], descendants: true }], ngImport: i0, template: "<div class=\"relative inline-flex flex-col gap-3 w-full max-w-90\">\n <div class=\"flex items-center justify-between gap-3\">\n <button\n #selectorTrigger\n ads-button=\"\"\n type=\"button\"\n [variant]=\"buttonVariant()\"\n [color]=\"buttonColor()\"\n [onlyIconButton]=\"buttonOnlyIconButton()\"\n [iconButton]=\"buttonIcon()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggleSelector()\"\n [attr.aria-expanded]=\"isSelectorOpen()\"\n aria-haspopup=\"menu\"\n >\n <ads-icon [iconName]=\"buttonIcon()\" [size]=\"16\"></ads-icon>\n @if (!buttonOnlyIconButton()) {\n <span>{{ currentTimeFrameLabel() }}</span>\n }\n </button>\n\n @if (isSelectorOpen()) {\n <div\n class=\"absolute top-[calc(100%+0.5rem)] z-20 flex items-start gap-3\"\n [class.left-0]=\"!openToLeft()\"\n [class.right-0]=\"openToLeft()\"\n [class.flex-row]=\"!openToLeft()\"\n [class.flex-row-reverse]=\"openToLeft()\"\n role=\"menu\"\n (mouseleave)=\"clearPreview()\"\n >\n <div class=\"w-60 overflow-hidden rounded-lg shadow-lg\">\n @for (option of pickerOptions; track option.mode) {\n <div\n type=\"button\"\n class=\"flex w-full items-center justify-between border-b border-b-neutral-disabled-bg bg-white px-4 py-3 text-left text-sm text-green-base transition-colors last:border-b-0 hover:bg-aqua-6 cursor-pointer\"\n (mouseenter)=\"previewTimeFrame(option.mode)\"\n role=\"menuitem\"\n >\n <span>{{ option.label }}</span>\n </div>\n }\n </div>\n\n @if (activePreviewTimeFrame()) {\n @switch (activePreviewTimeFrame()) {\n @case (dateOptions.annually) {\n <nz-date-picker\n nzDropdownClassName=\"datePicker-box\"\n nzInline\n nzMode=\"year\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.annually, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.monthly) {\n <nz-date-picker\n nzInline\n nzMode=\"month\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.monthly, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.weekly) {\n <nz-date-picker\n nzInline\n nzMode=\"week\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.weekly, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.quarterly) {\n <nz-date-picker\n nzInline\n nzMode=\"quarter\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.quarterly, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.daily) {\n <nz-date-picker\n nzInline\n [nzShowToday]=\"false\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.daily, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n }\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1$1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }] });
1944
+ ], viewQueries: [{ propertyName: "selectorTriggerRef", first: true, predicate: ["selectorTrigger"], descendants: true }], ngImport: i0, template: "<div class=\"relative inline-flex flex-col gap-3 w-full max-w-90\">\n <div class=\"flex items-center justify-between gap-3\">\n <button\n #selectorTrigger\n ads-button=\"\"\n type=\"button\"\n [variant]=\"buttonVariant()\"\n [color]=\"buttonColor()\"\n [onlyIconButton]=\"buttonOnlyIconButton()\"\n [iconButton]=\"buttonIcon()\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggleSelector()\"\n [attr.aria-expanded]=\"isSelectorOpen()\"\n aria-haspopup=\"menu\"\n >\n <ads-icon [iconName]=\"buttonIcon()\" [size]=\"16\"></ads-icon>\n @if (!buttonOnlyIconButton()) {\n <span>{{ currentTimeFrameLabel() }}</span>\n }\n </button>\n\n @if (isSelectorOpen()) {\n <div\n class=\"absolute top-[calc(100%+0.5rem)] z-20 flex items-start gap-3\"\n [class.left-0]=\"!openToLeft()\"\n [class.right-0]=\"openToLeft()\"\n [class.flex-row]=\"!openToLeft()\"\n [class.flex-row-reverse]=\"openToLeft()\"\n role=\"menu\"\n (mouseleave)=\"clearPreview()\"\n >\n <div class=\"w-60 overflow-hidden rounded-lg shadow-lg\">\n @for (option of pickerOptions; track option.mode) {\n <div\n type=\"button\"\n class=\"flex w-full items-center justify-between border-b border-b-neutral-disabled-bg bg-white px-4 py-3 text-left text-sm text-green-base transition-colors last:border-b-0 hover:bg-aqua-6 cursor-pointer\"\n (mouseenter)=\"previewTimeFrame(option.mode)\"\n role=\"menuitem\"\n >\n <span>{{ option.label }}</span>\n </div>\n }\n </div>\n\n @if (activePreviewTimeFrame()) {\n @switch (activePreviewTimeFrame()) {\n @case (dateOptions.annually) {\n <nz-date-picker\n nzDropdownClassName=\"datePicker-box\"\n nzInline\n nzMode=\"year\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.annually, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.monthly) {\n <nz-date-picker\n nzInline\n nzMode=\"month\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.monthly, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.weekly) {\n <nz-date-picker\n nzInline\n nzMode=\"week\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.weekly, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.quarterly) {\n <nz-date-picker\n nzInline\n nzMode=\"quarter\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.quarterly, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n @case (dateOptions.daily) {\n <nz-date-picker\n nzInline\n [nzShowToday]=\"false\"\n [(ngModel)]=\"date\"\n (ngModelChange)=\"onDateChange(dateOptions.daily, $event)\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disableFutureDates\"\n ></nz-date-picker>\n }\n }\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }] });
1604
1945
  }
1605
1946
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: DatepickerSelectorComponent, decorators: [{
1606
1947
  type: Component,
@@ -1780,7 +2121,7 @@ class SingleSelectorComponent {
1780
2121
  useExisting: forwardRef(() => SingleSelectorComponent),
1781
2122
  multi: true,
1782
2123
  },
1783
- ], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label\n [text]=\"label()\"\n [iconName]=\"labelIconName()\"\n (iconClicked)=\"onLabelClicked()\"\n ></ads-label>\n\n <nz-select\n class=\"w-full\"\n [ngModel]=\"currentValue()\"\n [nzPlaceHolder]=\"placeholder()\"\n [nzShowSearch]=\"true\"\n [nzAllowClear]=\"allowClear()\"\n [nzDisabled]=\"isDisabled()\"\n [nzLoading]=\"isLoading()\"\n [nzFilterOption]=\"filterOption\"\n (ngModelChange)=\"onSelectionChange($event)\"\n (nzBlur)=\"onBlur()\"\n [nzStatus]=\"errorMessage() ? 'error' : ''\"\n >\n @for (option of resolvedOptions(); track $index) {\n @if (isOptionGroup(option)) {\n <nz-option-group [nzLabel]=\"option.label\">\n @for (item of option.children; track item.value) {\n <nz-option\n [nzValue]=\"item.value\"\n [nzLabel]=\"item.label\"\n [nzDisabled]=\"item.disabled\"\n ></nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option\n [nzValue]=\"option.value\"\n [nzLabel]=\"option.label\"\n [nzDisabled]=\"option.disabled\"\n ></nz-option>\n }\n }\n </nz-select>\n\n <ads-error-message\n [hasError]=\"!!errorMessage()\"\n [errorMessage]=\"errorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i2.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i2.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "component", type: i2.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
2124
+ ], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label\n [text]=\"label()\"\n [iconName]=\"labelIconName()\"\n (iconClicked)=\"onLabelClicked()\"\n ></ads-label>\n\n <nz-select\n class=\"w-full\"\n [ngModel]=\"currentValue()\"\n [nzPlaceHolder]=\"placeholder()\"\n [nzShowSearch]=\"true\"\n [nzAllowClear]=\"allowClear()\"\n [nzDisabled]=\"isDisabled()\"\n [nzLoading]=\"isLoading()\"\n [nzFilterOption]=\"filterOption\"\n (ngModelChange)=\"onSelectionChange($event)\"\n (nzBlur)=\"onBlur()\"\n [nzStatus]=\"errorMessage() ? 'error' : ''\"\n >\n @for (option of resolvedOptions(); track $index) {\n @if (isOptionGroup(option)) {\n <nz-option-group [nzLabel]=\"option.label\">\n @for (item of option.children; track item.value) {\n <nz-option\n [nzValue]=\"item.value\"\n [nzLabel]=\"item.label\"\n [nzDisabled]=\"item.disabled\"\n ></nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option\n [nzValue]=\"option.value\"\n [nzLabel]=\"option.label\"\n [nzDisabled]=\"option.disabled\"\n ></nz-option>\n }\n }\n </nz-select>\n\n <ads-error-message\n [hasError]=\"!!errorMessage()\"\n [errorMessage]=\"errorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i2$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i2$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "component", type: i2$1.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
1784
2125
  }
1785
2126
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: SingleSelectorComponent, decorators: [{
1786
2127
  type: Component,
@@ -2177,8 +2518,8 @@ class FilterButtonComponent {
2177
2518
  this.closePanel();
2178
2519
  }
2179
2520
  }
2180
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: FilterButtonComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
2181
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: FilterButtonComponent, isStandalone: true, selector: "ads-filter-button", inputs: { buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonIcon: { classPropertyName: "buttonIcon", publicName: "buttonIcon", isSignal: true, isRequired: false, transformFunction: null }, showButtonIcon: { classPropertyName: "showButtonIcon", publicName: "showButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, buttonVariant: { classPropertyName: "buttonVariant", publicName: "buttonVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonColor: { classPropertyName: "buttonColor", publicName: "buttonColor", isSignal: true, isRequired: false, transformFunction: null }, buttonOpenVariant: { classPropertyName: "buttonOpenVariant", publicName: "buttonOpenVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonOpenColor: { classPropertyName: "buttonOpenColor", publicName: "buttonOpenColor", isSignal: true, isRequired: false, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: true, isRequired: false, transformFunction: null }, panelTitle: { classPropertyName: "panelTitle", publicName: "panelTitle", isSignal: true, isRequired: false, transformFunction: null }, addFilterLabel: { classPropertyName: "addFilterLabel", publicName: "addFilterLabel", isSignal: true, isRequired: false, transformFunction: null }, resetLabel: { classPropertyName: "resetLabel", publicName: "resetLabel", isSignal: true, isRequired: false, transformFunction: null }, applyLabel: { classPropertyName: "applyLabel", publicName: "applyLabel", isSignal: true, isRequired: false, transformFunction: null }, columnOptions: { classPropertyName: "columnOptions", publicName: "columnOptions", isSignal: true, isRequired: false, transformFunction: null }, columnPlaceholder: { classPropertyName: "columnPlaceholder", publicName: "columnPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, valuePlaceholder: { classPropertyName: "valuePlaceholder", publicName: "valuePlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noFiltersText: { classPropertyName: "noFiltersText", publicName: "noFiltersText", isSignal: true, isRequired: false, transformFunction: null }, sortableColumnOptions: { classPropertyName: "sortableColumnOptions", publicName: "sortableColumnOptions", isSignal: true, isRequired: false, transformFunction: null }, noSortText: { classPropertyName: "noSortText", publicName: "noSortText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { addFilter: "addFilter", resetFilters: "resetFilters", applyFilters: "applyFilters", addSort: "addSort", resetSorts: "resetSorts", applySorts: "applySorts", openChange: "openChange" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div class=\"relative flex h-full w-fit gap-4\">\n <div class=\"relative flex h-full items-center gap-2\">\n <button\n ads-button\n type=\"button\"\n [variant]=\"resolvedButtonVariant()\"\n [color]=\"resolvedButtonColor()\"\n [disabled]=\"buttonDisabled()\"\n [iconButton]=\"resolvedIconGapValue()\"\n (clicked)=\"togglePanel()\"\n >\n {{ buttonLabel() }}\n @if (showButtonIcon()) {\n <ads-icon [iconName]=\"buttonIcon()\" [size]=\"16\"></ads-icon>\n }\n </button>\n\n <ng-content select=\"[filter-button-extra]\"></ng-content>\n </div>\n\n @if (isOpen()) {\n <div\n class=\"absolute right-0 top-[calc(100%+0.25rem)] z-400 h-fit min-h-40 w-[min(48rem,calc(100vw-3rem))] overflow-visible rounded-lg bg-white px-8 py-5 shadow-[0px_2px_10px_-4px_#00000040]\"\n animate.enter=\"fade-in\"\n animate.leave=\"fade-out\"\n >\n <div\n class=\"mb-4 flex w-full items-center justify-between border-b border-[#e7e7e7] pb-2\"\n >\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">\n {{ panelTitle() }}\n </h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddFilter()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddFilterClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddFilter(),\n 'text-aqua-0': canAddFilter(),\n }\"\n ></ads-icon>\n {{ addFilterLabel() }}\n </button>\n </div>\n\n <div class=\"mb-5 min-w-136\">\n <form [formGroup]=\"filterForm\" class=\"space-y-3\">\n @if (hasFilters()) {\n <div class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\">\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Value</p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n }\n\n <div formArrayName=\"filters\" class=\"space-y-2\">\n @if (hasFilters()) {\n @for (\n group of filtersArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n [placeholder]=\"columnPlaceholder()\"\n [options]=\"columnOptionsForRow(i)\"\n (valueChange)=\"onColumnChange(i, $event)\"\n ></ads-single-selector>\n\n @switch (rowValueType(i)) {\n @case (\"date\") {\n <ads-input-datepicker\n formControlName=\"value\"\n datePickerPlaceholder=\"MM/DD/YYYY\"\n [hasError]=\"hasDateError(i)\"\n ></ads-input-datepicker>\n }\n @case (\"number\") {\n <ads-input\n formControlName=\"value\"\n inputType=\"number\"\n [label]=\"''\"\n placeholder=\"0000000\"\n ></ads-input>\n }\n @case (\"boolean\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @case (\"status\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @case (\"codes\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @case (\"custom\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @default {\n <ads-input\n formControlName=\"value\"\n inputType=\"text\"\n [label]=\"''\"\n [placeholder]=\"valuePlaceholder()\"\n ></ads-input>\n }\n }\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove filter\"\n (clicked)=\"onRemoveFilterClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n } @else {\n <div\n class=\"flex min-h-28 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noFiltersText() }}\n </div>\n }\n </div>\n\n @if (sortableColumnOptions().length > 0) {\n <div class=\"mt-4 border-t border-[#e7e7e7] pt-4\">\n <div class=\"mb-3 flex w-full items-center justify-between\">\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">Sort</h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddSort()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddSortClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddSort(),\n 'text-aqua-0': canAddSort(),\n }\"\n ></ads-icon>\n Add Sort\n </button>\n </div>\n\n @if (hasSorts()) {\n <div\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\"\n >\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">\n Direction\n </p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n\n <div formArrayName=\"sorts\" class=\"space-y-2\">\n @for (\n group of sortsArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n placeholder=\"Select a sort field\"\n [options]=\"sortColumnOptionsForRow(i)\"\n ></ads-single-selector>\n\n <ads-single-selector\n formControlName=\"direction\"\n placeholder=\"Direction\"\n [options]=\"sortValueOptions()\"\n ></ads-single-selector>\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove sort\"\n (clicked)=\"onRemoveSortClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n </div>\n } @else {\n <div\n class=\"flex min-h-20 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noSortText() }}\n </div>\n }\n </div>\n }\n </form>\n </div>\n\n @if (hasFilters() || hasSorts()) {\n <div class=\"mt-2 flex h-10 items-center justify-end gap-3\">\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"white\"\n (click)=\"onResetClick()\"\n >\n {{ resetLabel() }}\n </button>\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"green\"\n [disabled]=\"!canApplyFilters()\"\n (click)=\"onApplyClick()\"\n >\n {{ applyLabel() }}\n </button>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: SingleSelectorComponent, selector: "ads-single-selector", inputs: ["label", "placeholder", "disabled", "allowClear", "loading", "options", "asyncOptions", "value", "errorMessage", "labelIconName"], outputs: ["onLabelButtonClick", "valueChange"] }, { kind: "component", type: InputComponent, selector: "ads-input", inputs: ["label", "placeholder", "inputType", "textAreaRows", "value", "hasError", "disabled", "errorMessage"], outputs: ["valueChange"] }, { kind: "component", type: InputDatepickerComponent, selector: "ads-input-datepicker", inputs: ["isPickerDisabled", "datePickerPlaceholder", "hasError", "errorMessage", "futureDatesAllowed", "label", "monthlyPicker"] }] });
2521
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: FilterButtonComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
2522
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: FilterButtonComponent, isStandalone: true, selector: "ads-filter-button", inputs: { buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonIcon: { classPropertyName: "buttonIcon", publicName: "buttonIcon", isSignal: true, isRequired: false, transformFunction: null }, showButtonIcon: { classPropertyName: "showButtonIcon", publicName: "showButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, buttonVariant: { classPropertyName: "buttonVariant", publicName: "buttonVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonColor: { classPropertyName: "buttonColor", publicName: "buttonColor", isSignal: true, isRequired: false, transformFunction: null }, buttonOpenVariant: { classPropertyName: "buttonOpenVariant", publicName: "buttonOpenVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonOpenColor: { classPropertyName: "buttonOpenColor", publicName: "buttonOpenColor", isSignal: true, isRequired: false, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: true, isRequired: false, transformFunction: null }, panelTitle: { classPropertyName: "panelTitle", publicName: "panelTitle", isSignal: true, isRequired: false, transformFunction: null }, addFilterLabel: { classPropertyName: "addFilterLabel", publicName: "addFilterLabel", isSignal: true, isRequired: false, transformFunction: null }, resetLabel: { classPropertyName: "resetLabel", publicName: "resetLabel", isSignal: true, isRequired: false, transformFunction: null }, applyLabel: { classPropertyName: "applyLabel", publicName: "applyLabel", isSignal: true, isRequired: false, transformFunction: null }, columnOptions: { classPropertyName: "columnOptions", publicName: "columnOptions", isSignal: true, isRequired: false, transformFunction: null }, columnPlaceholder: { classPropertyName: "columnPlaceholder", publicName: "columnPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, valuePlaceholder: { classPropertyName: "valuePlaceholder", publicName: "valuePlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noFiltersText: { classPropertyName: "noFiltersText", publicName: "noFiltersText", isSignal: true, isRequired: false, transformFunction: null }, sortableColumnOptions: { classPropertyName: "sortableColumnOptions", publicName: "sortableColumnOptions", isSignal: true, isRequired: false, transformFunction: null }, noSortText: { classPropertyName: "noSortText", publicName: "noSortText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { addFilter: "addFilter", resetFilters: "resetFilters", applyFilters: "applyFilters", addSort: "addSort", resetSorts: "resetSorts", applySorts: "applySorts", openChange: "openChange" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div class=\"relative flex h-full w-fit gap-4\">\n <div class=\"relative flex h-full items-center gap-2\">\n <button\n ads-button\n type=\"button\"\n [variant]=\"resolvedButtonVariant()\"\n [color]=\"resolvedButtonColor()\"\n [disabled]=\"buttonDisabled()\"\n [iconButton]=\"resolvedIconGapValue()\"\n (clicked)=\"togglePanel()\"\n >\n {{ buttonLabel() }}\n @if (showButtonIcon()) {\n <ads-icon [iconName]=\"buttonIcon()\" [size]=\"16\"></ads-icon>\n }\n </button>\n\n <ng-content select=\"[filter-button-extra]\"></ng-content>\n </div>\n\n @if (isOpen()) {\n <div\n class=\"absolute right-0 top-[calc(100%+0.25rem)] z-400 h-fit min-h-40 w-[min(48rem,calc(100vw-3rem))] overflow-visible rounded-lg bg-white px-8 py-5 shadow-[0px_2px_10px_-4px_#00000040]\"\n animate.enter=\"fade-in\"\n animate.leave=\"fade-out\"\n >\n <div\n class=\"mb-4 flex w-full items-center justify-between border-b border-[#e7e7e7] pb-2\"\n >\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">\n {{ panelTitle() }}\n </h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddFilter()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddFilterClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddFilter(),\n 'text-aqua-0': canAddFilter(),\n }\"\n ></ads-icon>\n {{ addFilterLabel() }}\n </button>\n </div>\n\n <div class=\"mb-5 min-w-136\">\n <form [formGroup]=\"filterForm\" class=\"space-y-3\">\n @if (hasFilters()) {\n <div class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\">\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Value</p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n }\n\n <div formArrayName=\"filters\" class=\"space-y-2\">\n @if (hasFilters()) {\n @for (\n group of filtersArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n [placeholder]=\"columnPlaceholder()\"\n [options]=\"columnOptionsForRow(i)\"\n (valueChange)=\"onColumnChange(i, $event)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n\n @switch (rowValueType(i)) {\n @case (\"date\") {\n <ads-input-datepicker\n formControlName=\"value\"\n datePickerPlaceholder=\"MM/DD/YYYY\"\n [hasError]=\"hasDateError(i)\"\n ></ads-input-datepicker>\n }\n @case (\"number\") {\n <ads-input\n formControlName=\"value\"\n inputType=\"number\"\n [label]=\"''\"\n placeholder=\"0000000\"\n ></ads-input>\n }\n @case (\"boolean\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @case (\"status\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @case (\"codes\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @case (\"custom\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @default {\n <ads-input\n formControlName=\"value\"\n inputType=\"text\"\n [label]=\"''\"\n [placeholder]=\"valuePlaceholder()\"\n ></ads-input>\n }\n }\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove filter\"\n (clicked)=\"onRemoveFilterClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n } @else {\n <div\n class=\"flex min-h-28 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noFiltersText() }}\n </div>\n }\n </div>\n\n @if (sortableColumnOptions().length > 0) {\n <div class=\"mt-4 border-t border-[#e7e7e7] pt-4\">\n <div class=\"mb-3 flex w-full items-center justify-between\">\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">Sort</h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddSort()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddSortClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddSort(),\n 'text-aqua-0': canAddSort(),\n }\"\n ></ads-icon>\n Add Sort\n </button>\n </div>\n\n @if (hasSorts()) {\n <div\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\"\n >\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">\n Direction\n </p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n\n <div formArrayName=\"sorts\" class=\"space-y-2\">\n @for (\n group of sortsArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n placeholder=\"Select a sort field\"\n [options]=\"sortColumnOptionsForRow(i)\"\n ></ads-single-selector>\n\n <ads-single-selector\n formControlName=\"direction\"\n placeholder=\"Direction\"\n [options]=\"sortValueOptions()\"\n ></ads-single-selector>\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove sort\"\n (clicked)=\"onRemoveSortClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n </div>\n } @else {\n <div\n class=\"flex min-h-20 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noSortText() }}\n </div>\n }\n </div>\n }\n </form>\n </div>\n\n @if (hasFilters() || hasSorts()) {\n <div class=\"mt-2 flex h-10 items-center justify-end gap-3\">\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"white\"\n (click)=\"onResetClick()\"\n >\n {{ resetLabel() }}\n </button>\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"green\"\n [disabled]=\"!canApplyFilters()\"\n (click)=\"onApplyClick()\"\n >\n {{ applyLabel() }}\n </button>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i1$1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: SingleSelectorComponent, selector: "ads-single-selector", inputs: ["label", "placeholder", "disabled", "allowClear", "loading", "options", "asyncOptions", "value", "errorMessage", "labelIconName"], outputs: ["onLabelButtonClick", "valueChange"] }, { kind: "component", type: InputComponent, selector: "ads-input", inputs: ["label", "placeholder", "inputType", "textAreaRows", "value", "hasError", "disabled", "errorMessage"], outputs: ["valueChange"] }, { kind: "component", type: InputDatepickerComponent, selector: "ads-input-datepicker", inputs: ["isPickerDisabled", "datePickerPlaceholder", "hasError", "errorMessage", "futureDatesAllowed", "label", "monthlyPicker"] }] });
2182
2523
  }
2183
2524
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: FilterButtonComponent, decorators: [{
2184
2525
  type: Component,
@@ -2190,8 +2531,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
2190
2531
  SingleSelectorComponent,
2191
2532
  InputComponent,
2192
2533
  InputDatepickerComponent,
2193
- ], template: "<div class=\"relative flex h-full w-fit gap-4\">\n <div class=\"relative flex h-full items-center gap-2\">\n <button\n ads-button\n type=\"button\"\n [variant]=\"resolvedButtonVariant()\"\n [color]=\"resolvedButtonColor()\"\n [disabled]=\"buttonDisabled()\"\n [iconButton]=\"resolvedIconGapValue()\"\n (clicked)=\"togglePanel()\"\n >\n {{ buttonLabel() }}\n @if (showButtonIcon()) {\n <ads-icon [iconName]=\"buttonIcon()\" [size]=\"16\"></ads-icon>\n }\n </button>\n\n <ng-content select=\"[filter-button-extra]\"></ng-content>\n </div>\n\n @if (isOpen()) {\n <div\n class=\"absolute right-0 top-[calc(100%+0.25rem)] z-400 h-fit min-h-40 w-[min(48rem,calc(100vw-3rem))] overflow-visible rounded-lg bg-white px-8 py-5 shadow-[0px_2px_10px_-4px_#00000040]\"\n animate.enter=\"fade-in\"\n animate.leave=\"fade-out\"\n >\n <div\n class=\"mb-4 flex w-full items-center justify-between border-b border-[#e7e7e7] pb-2\"\n >\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">\n {{ panelTitle() }}\n </h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddFilter()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddFilterClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddFilter(),\n 'text-aqua-0': canAddFilter(),\n }\"\n ></ads-icon>\n {{ addFilterLabel() }}\n </button>\n </div>\n\n <div class=\"mb-5 min-w-136\">\n <form [formGroup]=\"filterForm\" class=\"space-y-3\">\n @if (hasFilters()) {\n <div class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\">\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Value</p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n }\n\n <div formArrayName=\"filters\" class=\"space-y-2\">\n @if (hasFilters()) {\n @for (\n group of filtersArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n [placeholder]=\"columnPlaceholder()\"\n [options]=\"columnOptionsForRow(i)\"\n (valueChange)=\"onColumnChange(i, $event)\"\n ></ads-single-selector>\n\n @switch (rowValueType(i)) {\n @case (\"date\") {\n <ads-input-datepicker\n formControlName=\"value\"\n datePickerPlaceholder=\"MM/DD/YYYY\"\n [hasError]=\"hasDateError(i)\"\n ></ads-input-datepicker>\n }\n @case (\"number\") {\n <ads-input\n formControlName=\"value\"\n inputType=\"number\"\n [label]=\"''\"\n placeholder=\"0000000\"\n ></ads-input>\n }\n @case (\"boolean\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @case (\"status\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @case (\"codes\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @case (\"custom\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n ></ads-single-selector>\n }\n @default {\n <ads-input\n formControlName=\"value\"\n inputType=\"text\"\n [label]=\"''\"\n [placeholder]=\"valuePlaceholder()\"\n ></ads-input>\n }\n }\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove filter\"\n (clicked)=\"onRemoveFilterClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n } @else {\n <div\n class=\"flex min-h-28 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noFiltersText() }}\n </div>\n }\n </div>\n\n @if (sortableColumnOptions().length > 0) {\n <div class=\"mt-4 border-t border-[#e7e7e7] pt-4\">\n <div class=\"mb-3 flex w-full items-center justify-between\">\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">Sort</h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddSort()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddSortClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddSort(),\n 'text-aqua-0': canAddSort(),\n }\"\n ></ads-icon>\n Add Sort\n </button>\n </div>\n\n @if (hasSorts()) {\n <div\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\"\n >\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">\n Direction\n </p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n\n <div formArrayName=\"sorts\" class=\"space-y-2\">\n @for (\n group of sortsArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n placeholder=\"Select a sort field\"\n [options]=\"sortColumnOptionsForRow(i)\"\n ></ads-single-selector>\n\n <ads-single-selector\n formControlName=\"direction\"\n placeholder=\"Direction\"\n [options]=\"sortValueOptions()\"\n ></ads-single-selector>\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove sort\"\n (clicked)=\"onRemoveSortClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n </div>\n } @else {\n <div\n class=\"flex min-h-20 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noSortText() }}\n </div>\n }\n </div>\n }\n </form>\n </div>\n\n @if (hasFilters() || hasSorts()) {\n <div class=\"mt-2 flex h-10 items-center justify-end gap-3\">\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"white\"\n (click)=\"onResetClick()\"\n >\n {{ resetLabel() }}\n </button>\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"green\"\n [disabled]=\"!canApplyFilters()\"\n (click)=\"onApplyClick()\"\n >\n {{ applyLabel() }}\n </button>\n </div>\n }\n </div>\n }\n</div>\n" }]
2194
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$2.FormBuilder }], propDecorators: { buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], buttonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonIcon", required: false }] }], showButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonIcon", required: false }] }], buttonVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonVariant", required: false }] }], buttonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonColor", required: false }] }], buttonOpenVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonOpenVariant", required: false }] }], buttonOpenColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonOpenColor", required: false }] }], buttonDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisabled", required: false }] }], panelTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTitle", required: false }] }], addFilterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "addFilterLabel", required: false }] }], resetLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetLabel", required: false }] }], applyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyLabel", required: false }] }], columnOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnOptions", required: false }] }], columnPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnPlaceholder", required: false }] }], valuePlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "valuePlaceholder", required: false }] }], noFiltersText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noFiltersText", required: false }] }], sortableColumnOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortableColumnOptions", required: false }] }], noSortText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noSortText", required: false }] }], addFilter: [{ type: i0.Output, args: ["addFilter"] }], resetFilters: [{ type: i0.Output, args: ["resetFilters"] }], applyFilters: [{ type: i0.Output, args: ["applyFilters"] }], addSort: [{ type: i0.Output, args: ["addSort"] }], resetSorts: [{ type: i0.Output, args: ["resetSorts"] }], applySorts: [{ type: i0.Output, args: ["applySorts"] }], openChange: [{ type: i0.Output, args: ["openChange"] }], onDocumentClick: [{
2534
+ ], template: "<div class=\"relative flex h-full w-fit gap-4\">\n <div class=\"relative flex h-full items-center gap-2\">\n <button\n ads-button\n type=\"button\"\n [variant]=\"resolvedButtonVariant()\"\n [color]=\"resolvedButtonColor()\"\n [disabled]=\"buttonDisabled()\"\n [iconButton]=\"resolvedIconGapValue()\"\n (clicked)=\"togglePanel()\"\n >\n {{ buttonLabel() }}\n @if (showButtonIcon()) {\n <ads-icon [iconName]=\"buttonIcon()\" [size]=\"16\"></ads-icon>\n }\n </button>\n\n <ng-content select=\"[filter-button-extra]\"></ng-content>\n </div>\n\n @if (isOpen()) {\n <div\n class=\"absolute right-0 top-[calc(100%+0.25rem)] z-400 h-fit min-h-40 w-[min(48rem,calc(100vw-3rem))] overflow-visible rounded-lg bg-white px-8 py-5 shadow-[0px_2px_10px_-4px_#00000040]\"\n animate.enter=\"fade-in\"\n animate.leave=\"fade-out\"\n >\n <div\n class=\"mb-4 flex w-full items-center justify-between border-b border-[#e7e7e7] pb-2\"\n >\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">\n {{ panelTitle() }}\n </h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddFilter()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddFilterClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddFilter(),\n 'text-aqua-0': canAddFilter(),\n }\"\n ></ads-icon>\n {{ addFilterLabel() }}\n </button>\n </div>\n\n <div class=\"mb-5 min-w-136\">\n <form [formGroup]=\"filterForm\" class=\"space-y-3\">\n @if (hasFilters()) {\n <div class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\">\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Value</p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n }\n\n <div formArrayName=\"filters\" class=\"space-y-2\">\n @if (hasFilters()) {\n @for (\n group of filtersArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n [placeholder]=\"columnPlaceholder()\"\n [options]=\"columnOptionsForRow(i)\"\n (valueChange)=\"onColumnChange(i, $event)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n\n @switch (rowValueType(i)) {\n @case (\"date\") {\n <ads-input-datepicker\n formControlName=\"value\"\n datePickerPlaceholder=\"MM/DD/YYYY\"\n [hasError]=\"hasDateError(i)\"\n ></ads-input-datepicker>\n }\n @case (\"number\") {\n <ads-input\n formControlName=\"value\"\n inputType=\"number\"\n [label]=\"''\"\n placeholder=\"0000000\"\n ></ads-input>\n }\n @case (\"boolean\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @case (\"status\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @case (\"codes\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @case (\"custom\") {\n <ads-single-selector\n formControlName=\"value\"\n placeholder=\"Select an option\"\n [options]=\"valueOptionsForRow(i)\"\n [errorMessage]=\"''\"\n ></ads-single-selector>\n }\n @default {\n <ads-input\n formControlName=\"value\"\n inputType=\"text\"\n [label]=\"''\"\n [placeholder]=\"valuePlaceholder()\"\n ></ads-input>\n }\n }\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove filter\"\n (clicked)=\"onRemoveFilterClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n } @else {\n <div\n class=\"flex min-h-28 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noFiltersText() }}\n </div>\n }\n </div>\n\n @if (sortableColumnOptions().length > 0) {\n <div class=\"mt-4 border-t border-[#e7e7e7] pt-4\">\n <div class=\"mb-3 flex w-full items-center justify-between\">\n <h4 class=\"m-0 text-[1.12rem] font-medium text-black\">Sort</h4>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n [iconButton]=\"'plus'\"\n [disabled]=\"!canAddSort()\"\n class=\"px-1! py-1! text-[1.12rem]! font-normal! leading-none!\"\n (click)=\"onAddSortClick()\"\n >\n <ads-icon\n iconName=\"plus\"\n [size]=\"16\"\n [ngClass]=\"{\n 'text-gray-400': !canAddSort(),\n 'text-aqua-0': canAddSort(),\n }\"\n ></ads-icon>\n Add Sort\n </button>\n </div>\n\n @if (hasSorts()) {\n <div\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3 mb-1\"\n >\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">Column</p>\n <p class=\"m-0 pt-1 text-sm font-medium leading-6\">\n Direction\n </p>\n <span aria-hidden=\"true\" style=\"width: 40px\"></span>\n </div>\n\n <div formArrayName=\"sorts\" class=\"space-y-2\">\n @for (\n group of sortsArray.controls;\n track group;\n let i = $index\n ) {\n <div\n [formGroupName]=\"i\"\n class=\"grid grid-cols-[1fr_1fr_auto] items-start gap-3\"\n >\n <ads-single-selector\n formControlName=\"column\"\n placeholder=\"Select a sort field\"\n [options]=\"sortColumnOptionsForRow(i)\"\n ></ads-single-selector>\n\n <ads-single-selector\n formControlName=\"direction\"\n placeholder=\"Direction\"\n [options]=\"sortValueOptions()\"\n ></ads-single-selector>\n\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"text\"\n [onlyIconButton]=\"true\"\n aria-label=\"Remove sort\"\n (clicked)=\"onRemoveSortClick(i)\"\n >\n <ads-icon\n [iconName]=\"'error'\"\n [size]=\"16\"\n color=\"#014744\"\n ></ads-icon>\n </button>\n </div>\n }\n </div>\n } @else {\n <div\n class=\"flex min-h-20 items-center justify-center rounded-lg border border-dashed border-[#d7d7d7] bg-white px-4 text-sm text-[#666]\"\n >\n {{ noSortText() }}\n </div>\n }\n </div>\n }\n </form>\n </div>\n\n @if (hasFilters() || hasSorts()) {\n <div class=\"mt-2 flex h-10 items-center justify-end gap-3\">\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"white\"\n (click)=\"onResetClick()\"\n >\n {{ resetLabel() }}\n </button>\n <button\n ads-button\n type=\"button\"\n variant=\"primary\"\n color=\"green\"\n [disabled]=\"!canApplyFilters()\"\n (click)=\"onApplyClick()\"\n >\n {{ applyLabel() }}\n </button>\n </div>\n }\n </div>\n }\n</div>\n" }]
2535
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$1.FormBuilder }], propDecorators: { buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], buttonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonIcon", required: false }] }], showButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonIcon", required: false }] }], buttonVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonVariant", required: false }] }], buttonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonColor", required: false }] }], buttonOpenVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonOpenVariant", required: false }] }], buttonOpenColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonOpenColor", required: false }] }], buttonDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisabled", required: false }] }], panelTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTitle", required: false }] }], addFilterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "addFilterLabel", required: false }] }], resetLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetLabel", required: false }] }], applyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyLabel", required: false }] }], columnOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnOptions", required: false }] }], columnPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnPlaceholder", required: false }] }], valuePlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "valuePlaceholder", required: false }] }], noFiltersText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noFiltersText", required: false }] }], sortableColumnOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortableColumnOptions", required: false }] }], noSortText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noSortText", required: false }] }], addFilter: [{ type: i0.Output, args: ["addFilter"] }], resetFilters: [{ type: i0.Output, args: ["resetFilters"] }], applyFilters: [{ type: i0.Output, args: ["applyFilters"] }], addSort: [{ type: i0.Output, args: ["addSort"] }], resetSorts: [{ type: i0.Output, args: ["resetSorts"] }], applySorts: [{ type: i0.Output, args: ["applySorts"] }], openChange: [{ type: i0.Output, args: ["openChange"] }], onDocumentClick: [{
2195
2536
  type: HostListener,
2196
2537
  args: ['document:click', ['$event']]
2197
2538
  }] } });
@@ -2513,7 +2854,7 @@ class SideNavComponent {
2513
2854
  </div>
2514
2855
  }
2515
2856
  </aside>
2516
- `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i1$3.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }] });
2857
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i1$2.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }] });
2517
2858
  }
2518
2859
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: SideNavComponent, decorators: [{
2519
2860
  type: Component,
@@ -2893,7 +3234,7 @@ class MultipleSelectorComponent {
2893
3234
  useExisting: forwardRef(() => MultipleSelectorComponent),
2894
3235
  multi: true,
2895
3236
  },
2896
- ], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label\n [text]=\"label()\"\n [iconName]=\"labelIconName()\"\n (iconClicked)=\"onLabelClicked()\"\n ></ads-label>\n\n <nz-select\n [nzMaxTagCount]=\"0\"\n class=\"w-full\"\n nzMode=\"multiple\"\n [ngModel]=\"currentValue()\"\n [nzPlaceHolder]=\"placeholder()\"\n [nzShowSearch]=\"true\"\n [nzAllowClear]=\"allowClear()\"\n [nzDisabled]=\"isDisabled()\"\n [nzLoading]=\"isLoading()\"\n [nzFilterOption]=\"filterOption\"\n (ngModelChange)=\"onSelectionChange($event)\"\n (nzBlur)=\"onBlur()\"\n [nzMaxTagPlaceholder]=\"tagPlaceHolder\"\n [nzStatus]=\"errorMessage() ? 'error' : ''\"\n >\n @for (option of resolvedOptions(); track $index) {\n @if (isOptionGroup(option)) {\n <nz-optgroup [nzLabel]=\"option.label\">\n @for (item of option.children; track item.value) {\n <nz-option\n [nzValue]=\"item.value\"\n [nzLabel]=\"item.label\"\n [nzDisabled]=\"item.disabled\"\n ></nz-option>\n }\n </nz-optgroup>\n } @else {\n <nz-option\n [nzValue]=\"option.value\"\n [nzLabel]=\"option.label\"\n [nzDisabled]=\"option.disabled\"\n ></nz-option>\n }\n }\n </nz-select>\n <ng-template #tagPlaceHolder let-selectedList>\n {{ selectedItemsSummary(selectedList.length) }}\n </ng-template>\n <ads-error-message\n [hasError]=\"!!errorMessage()\"\n [errorMessage]=\"errorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i2.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i2.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
3237
+ ], ngImport: i0, template: "<div class=\"flex w-full flex-col\">\n <ads-label\n [text]=\"label()\"\n [iconName]=\"labelIconName()\"\n (iconClicked)=\"onLabelClicked()\"\n ></ads-label>\n\n <nz-select\n [nzMaxTagCount]=\"0\"\n class=\"w-full\"\n nzMode=\"multiple\"\n [ngModel]=\"currentValue()\"\n [nzPlaceHolder]=\"placeholder()\"\n [nzShowSearch]=\"true\"\n [nzAllowClear]=\"allowClear()\"\n [nzDisabled]=\"isDisabled()\"\n [nzLoading]=\"isLoading()\"\n [nzFilterOption]=\"filterOption\"\n (ngModelChange)=\"onSelectionChange($event)\"\n (nzBlur)=\"onBlur()\"\n [nzMaxTagPlaceholder]=\"tagPlaceHolder\"\n [nzStatus]=\"errorMessage() ? 'error' : ''\"\n >\n @for (option of resolvedOptions(); track $index) {\n @if (isOptionGroup(option)) {\n <nz-optgroup [nzLabel]=\"option.label\">\n @for (item of option.children; track item.value) {\n <nz-option\n [nzValue]=\"item.value\"\n [nzLabel]=\"item.label\"\n [nzDisabled]=\"item.disabled\"\n ></nz-option>\n }\n </nz-optgroup>\n } @else {\n <nz-option\n [nzValue]=\"option.value\"\n [nzLabel]=\"option.label\"\n [nzDisabled]=\"option.disabled\"\n ></nz-option>\n }\n }\n </nz-select>\n <ng-template #tagPlaceHolder let-selectedList>\n {{ selectedItemsSummary(selectedList.length) }}\n </ng-template>\n <ads-error-message\n [hasError]=\"!!errorMessage()\"\n [errorMessage]=\"errorMessage()\"\n ></ads-error-message>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i2$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i2$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "component", type: LabelComponent, selector: "ads-label", inputs: ["text", "iconName", "iconSize"], outputs: ["iconClicked"] }, { kind: "component", type: ErrorMessageComponent, selector: "ads-error-message", inputs: ["hasError", "errorMessage"] }] });
2897
3238
  }
2898
3239
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: MultipleSelectorComponent, decorators: [{
2899
3240
  type: Component,
@@ -3225,7 +3566,7 @@ class FeedbackModalComponent {
3225
3566
  return '';
3226
3567
  }
3227
3568
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: FeedbackModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3228
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: FeedbackModalComponent, isStandalone: true, selector: "ads-feedback-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, top: { classPropertyName: "top", publicName: "top", isSignal: true, isRequired: false, transformFunction: null }, right: { classPropertyName: "right", publicName: "right", isSignal: true, isRequired: false, transformFunction: null }, bottom: { classPropertyName: "bottom", publicName: "bottom", isSignal: true, isRequired: false, transformFunction: null }, left: { classPropertyName: "left", publicName: "left", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, categoryOptions: { classPropertyName: "categoryOptions", publicName: "categoryOptions", isSignal: true, isRequired: false, transformFunction: null }, responseOpen: { classPropertyName: "responseOpen", publicName: "responseOpen", isSignal: true, isRequired: false, transformFunction: null }, responseType: { classPropertyName: "responseType", publicName: "responseType", isSignal: true, isRequired: false, transformFunction: null }, responseTitle: { classPropertyName: "responseTitle", publicName: "responseTitle", isSignal: true, isRequired: false, transformFunction: null }, responseDescription: { classPropertyName: "responseDescription", publicName: "responseDescription", isSignal: true, isRequired: false, transformFunction: null }, responseButtonText: { classPropertyName: "responseButtonText", publicName: "responseButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed", submitted: "submitted", responseAction: "responseAction" }, ngImport: i0, template: "@if (open()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"onBackdropClick($event)\"\n animate.enter=\"fade-in\"\n animate.leave=\"fade-out\"\n >\n <section\n class=\"absolute overflow-hidden rounded-[0.8rem] bg-white-base shadow-[0px_1px_17px_-7px_rgba(128,128,128,1)]\"\n [style.top]=\"modalPositionStyles()['top']\"\n [style.right]=\"modalPositionStyles()['right']\"\n [style.bottom]=\"modalPositionStyles()['bottom']\"\n [style.left]=\"modalPositionStyles()['left']\"\n [style.width]=\"modalPositionStyles()['width']\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (!responseOpen()) {\n <div\n class=\"flex h-28 flex-col items-center justify-center bg-green-base px-6 text-center\"\n >\n <h2 class=\"m-0 text-[1.4rem] font-semibold text-white-base\">\n {{ title() }}\n </h2>\n <p class=\"m-0 text-[0.9rem] text-white-base\">{{ subtitle() }}</p>\n </div>\n\n <form\n class=\"flex flex-col gap-2 p-8\"\n [formGroup]=\"form\"\n (ngSubmit)=\"submitFeedback()\"\n >\n <ads-input\n label=\"Subject*\"\n formControlName=\"subject\"\n placeholder=\"Enter subject\"\n inputType=\"text\"\n [hasError]=\"!!subjectError()\"\n [errorMessage]=\"subjectError()\"\n ></ads-input>\n\n <ads-single-selector\n label=\"Category\"\n formControlName=\"category\"\n placeholder=\"Select a category\"\n [options]=\"categoryOptions()\"\n ></ads-single-selector>\n\n <ads-input\n label=\"Description*\"\n formControlName=\"description\"\n placeholder=\"Enter description\"\n inputType=\"text_area\"\n [hasError]=\"!!descriptionError()\"\n [errorMessage]=\"descriptionError()\"\n ></ads-input>\n\n <div class=\"flex items-center justify-between\">\n <span class=\"text-xs text-neutral-disabled-text\"\n >200 characters max.</span\n >\n </div>\n\n <button\n ads-button\n type=\"submit\"\n variant=\"primary\"\n color=\"green\"\n [disabled]=\"form.invalid\"\n class=\"mt-2\"\n >\n Submit\n </button>\n </form>\n }\n\n @if (responseOpen()) {\n <button\n type=\"button\"\n class=\"absolute right-2 top-2 inline-flex h-10 w-10 cursor-pointer items-center justify-center rounded-full border-0 bg-transparent text-green-base hover:text-green-2\"\n (click)=\"closeModal()\"\n aria-label=\"Close\"\n >\n <ads-icon iconName=\"error\" [size]=\"16\"></ads-icon>\n </button>\n\n <div class=\"flex flex-col items-center gap-2 px-12 py-8 text-center\">\n <div\n class=\"inline-flex h-12 w-12 items-center justify-center rounded-full border-2 text-xl font-semibold\"\n [ngClass]=\"responseIconStyles().containerClass\"\n >\n <ads-icon\n [iconName]=\"responseIconStyles().iconName\"\n [size]=\"24\"\n ></ads-icon>\n </div>\n\n <h3 class=\"m-0 text-[1.3rem] font-bold text-green-base\">\n {{ responseTitle() }}\n </h3>\n <p class=\"m-0 text-[0.8rem] text-[#3d3d3d]\">\n {{ responseDescription() }}\n </p>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n class=\"mt-2\"\n (click)=\"onResponseButtonClick()\"\n >\n {{ responseButtonText() }}\n </button>\n </div>\n }\n </section>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: InputComponent, selector: "ads-input", inputs: ["label", "placeholder", "inputType", "textAreaRows", "value", "hasError", "disabled", "errorMessage"], outputs: ["valueChange"] }, { kind: "component", type: SingleSelectorComponent, selector: "ads-single-selector", inputs: ["label", "placeholder", "disabled", "allowClear", "loading", "options", "asyncOptions", "value", "errorMessage", "labelIconName"], outputs: ["onLabelButtonClick", "valueChange"] }] });
3569
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: FeedbackModalComponent, isStandalone: true, selector: "ads-feedback-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, top: { classPropertyName: "top", publicName: "top", isSignal: true, isRequired: false, transformFunction: null }, right: { classPropertyName: "right", publicName: "right", isSignal: true, isRequired: false, transformFunction: null }, bottom: { classPropertyName: "bottom", publicName: "bottom", isSignal: true, isRequired: false, transformFunction: null }, left: { classPropertyName: "left", publicName: "left", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, categoryOptions: { classPropertyName: "categoryOptions", publicName: "categoryOptions", isSignal: true, isRequired: false, transformFunction: null }, responseOpen: { classPropertyName: "responseOpen", publicName: "responseOpen", isSignal: true, isRequired: false, transformFunction: null }, responseType: { classPropertyName: "responseType", publicName: "responseType", isSignal: true, isRequired: false, transformFunction: null }, responseTitle: { classPropertyName: "responseTitle", publicName: "responseTitle", isSignal: true, isRequired: false, transformFunction: null }, responseDescription: { classPropertyName: "responseDescription", publicName: "responseDescription", isSignal: true, isRequired: false, transformFunction: null }, responseButtonText: { classPropertyName: "responseButtonText", publicName: "responseButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed", submitted: "submitted", responseAction: "responseAction" }, ngImport: i0, template: "@if (open()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"onBackdropClick($event)\"\n animate.enter=\"fade-in\"\n animate.leave=\"fade-out\"\n >\n <section\n class=\"absolute overflow-hidden rounded-[0.8rem] bg-white-base shadow-[0px_1px_17px_-7px_rgba(128,128,128,1)]\"\n [style.top]=\"modalPositionStyles()['top']\"\n [style.right]=\"modalPositionStyles()['right']\"\n [style.bottom]=\"modalPositionStyles()['bottom']\"\n [style.left]=\"modalPositionStyles()['left']\"\n [style.width]=\"modalPositionStyles()['width']\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (!responseOpen()) {\n <div\n class=\"flex h-28 flex-col items-center justify-center bg-green-base px-6 text-center\"\n >\n <h2 class=\"m-0 text-[1.4rem] font-semibold text-white-base\">\n {{ title() }}\n </h2>\n <p class=\"m-0 text-[0.9rem] text-white-base\">{{ subtitle() }}</p>\n </div>\n\n <form\n class=\"flex flex-col gap-2 p-8\"\n [formGroup]=\"form\"\n (ngSubmit)=\"submitFeedback()\"\n >\n <ads-input\n label=\"Subject*\"\n formControlName=\"subject\"\n placeholder=\"Enter subject\"\n inputType=\"text\"\n [hasError]=\"!!subjectError()\"\n [errorMessage]=\"subjectError()\"\n ></ads-input>\n\n <ads-single-selector\n label=\"Category\"\n formControlName=\"category\"\n placeholder=\"Select a category\"\n [options]=\"categoryOptions()\"\n ></ads-single-selector>\n\n <ads-input\n label=\"Description*\"\n formControlName=\"description\"\n placeholder=\"Enter description\"\n inputType=\"text_area\"\n [hasError]=\"!!descriptionError()\"\n [errorMessage]=\"descriptionError()\"\n ></ads-input>\n\n <div class=\"flex items-center justify-between\">\n <span class=\"text-xs text-neutral-disabled-text\"\n >200 characters max.</span\n >\n </div>\n\n <button\n ads-button\n type=\"submit\"\n variant=\"primary\"\n color=\"green\"\n [disabled]=\"form.invalid\"\n class=\"mt-2\"\n >\n Submit\n </button>\n </form>\n }\n\n @if (responseOpen()) {\n <button\n type=\"button\"\n class=\"absolute right-2 top-2 inline-flex h-10 w-10 cursor-pointer items-center justify-center rounded-full border-0 bg-transparent text-green-base hover:text-green-2\"\n (click)=\"closeModal()\"\n aria-label=\"Close\"\n >\n <ads-icon iconName=\"error\" [size]=\"16\"></ads-icon>\n </button>\n\n <div class=\"flex flex-col items-center gap-2 px-12 py-8 text-center\">\n <div\n class=\"inline-flex h-12 w-12 items-center justify-center rounded-full border-2 text-xl font-semibold\"\n [ngClass]=\"responseIconStyles().containerClass\"\n >\n <ads-icon\n [iconName]=\"responseIconStyles().iconName\"\n [size]=\"24\"\n ></ads-icon>\n </div>\n\n <h3 class=\"m-0 text-[1.3rem] font-bold text-green-base\">\n {{ responseTitle() }}\n </h3>\n <p class=\"m-0 text-[0.8rem] text-[#3d3d3d]\">\n {{ responseDescription() }}\n </p>\n\n <button\n ads-button\n type=\"button\"\n variant=\"secondary\"\n color=\"text\"\n class=\"mt-2\"\n (click)=\"onResponseButtonClick()\"\n >\n {{ responseButtonText() }}\n </button>\n </div>\n }\n </section>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: InputComponent, selector: "ads-input", inputs: ["label", "placeholder", "inputType", "textAreaRows", "value", "hasError", "disabled", "errorMessage"], outputs: ["valueChange"] }, { kind: "component", type: SingleSelectorComponent, selector: "ads-single-selector", inputs: ["label", "placeholder", "disabled", "allowClear", "loading", "options", "asyncOptions", "value", "errorMessage", "labelIconName"], outputs: ["onLabelButtonClick", "valueChange"] }] });
3229
3570
  }
3230
3571
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: FeedbackModalComponent, decorators: [{
3231
3572
  type: Component,
@@ -3600,7 +3941,7 @@ class TableComponent {
3600
3941
  return this.getHeaderCells().length + (this.showButtons ? 1 : 0);
3601
3942
  }
3602
3943
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: TableComponent, deps: [{ token: 'data-testid', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
3603
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: TableComponent, isStandalone: true, selector: "ads-table", inputs: { table: "table", isLoading: "isLoading", selectedSortingHeader: "selectedSortingHeader", sortDirection: "sortDirection", showButtons: "showButtons", allContentLeft: "allContentLeft", totalRegisters: "totalRegisters", areColumnsDraggable: "areColumnsDraggable", currentPage: "currentPage", totalPages: "totalPages", pageSize: "pageSize", enableMultiSort: "enableMultiSort", multiSortCriteria: "multiSortCriteria", actionButtons: "actionButtons", statusStateStyles: "statusStateStyles", activeStateStyles: "activeStateStyles" }, outputs: { sortEvent: "sortEvent", columnOrderChange: "columnOrderChange", pageChange: "pageChange", columnSizingChange: "columnSizingChange", pageSizeChange: "pageSizeChange", multiSortEvent: "multiSortEvent" }, ngImport: i0, template: "@if (getRows().length > 0 || isLoading) {\n <!-- Main table layout: data grid + footer pagination area -->\n <div class=\"flex min-h-[60vh] w-full flex-col justify-between gap-4\">\n <!-- @if (isLoading) {\n <div\n class=\"flex min-h-40 items-center justify-center rounded-2xl bg-white-base/80 px-6 py-8 shadow-sm\"\n >\n <div class=\"flex items-center gap-3 text-green-1\">\n <span\n class=\"h-10 w-10 animate-spin rounded-full border-t-green-1\"\n ></span>\n <span class=\"text-sm font-medium\">Loading table data</span>\n </div>\n </div>\n } -->\n\n <div class=\"w-full overflow-x-auto\">\n <table\n [attr.data-testid]=\"contentTestId\"\n class=\"min-w-full table-fixed border-separate border-spacing-0\"\n >\n <!-- Interactive header row: sorting, drag-and-drop, and column resizing -->\n <thead class=\"bg-green-1 text-white-base\">\n <tr\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n class=\"h-10 min-h-10 max-h-11.25\"\n (cdkDropListDropped)=\"drop($event)\"\n [ngStyle]=\"allContentLeft ? { 'text-align': 'left' } : null\"\n >\n @for (\n column of getHeaderCells();\n track column.id + \"-\" + headerRenderVersion\n ) {\n @if (isColumnSortable(column)) {\n @if (areColumnsDraggable) {\n <!-- Sortable + draggable header cell -->\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0 overflow-hidden cursor-grab active:cursor-grabbing\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <button\n type=\"button\"\n cdkDragHandle\n class=\"group flex h-full w-full cursor-pointer items-center gap-3 px-3 transition-colors duration-200 border-none outline-0 bg-transparent hover:bg-white/10\"\n [ngClass]=\"headerAlignmentClass(column)\"\n (click)=\"sort(column, $event)\"\n [title]=\"\n enableMultiSort ? 'Shift+click to add to sort' : null\n \"\n >\n <!-- When right-aligned, the sort indicator is shown before the header text -->\n @if (getSortEntry(column); as entry) {\n @if (isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold text-white-base leading-px\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n <!-- For left/center aligned headers, the sort indicator is shown after the text -->\n @if (getSortEntry(column); as entry) {\n @if (!isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold text-white-base leading-px\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n </button>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n } @else {\n <!-- Sortable header cell without drag-and-drop -->\n <th\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <button\n type=\"button\"\n class=\"flex h-full w-full cursor-pointer items-center gap-3 px-3 transition-colors duration-200 hover:bg-white/10 bg-green-base\"\n [ngClass]=\"headerAlignmentClass(column)\"\n (click)=\"sort(column, $event)\"\n [title]=\"\n enableMultiSort ? 'Shift+click to add to sort' : null\n \"\n >\n @if (getSortEntry(column); as entry) {\n @if (isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold leading-none text-white-base\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n @if (getSortEntry(column); as entry) {\n @if (!isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold leading-none text-white-base\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n </button>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n }\n } @else {\n @if (areColumnsDraggable) {\n <!-- Non-sortable but draggable header cell -->\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <div\n cdkDragHandle\n class=\"flex h-full w-full items-center px-3\"\n [ngClass]=\"headerAlignmentClass(column)\"\n >\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n } @else {\n <!-- Plain header cell (no sort, no drag) -->\n <th\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <div\n class=\"flex h-full w-full items-center px-3\"\n [ngClass]=\"headerAlignmentClass(column)\"\n >\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n }\n }\n }\n\n @if (showButtons) {\n <!-- Optional actions column header -->\n <th\n [attr.data-testid]=\"contentTestId + '-header-actions'\"\n class=\"h-10 min-h-10 max-h-11.25 px-3 text-center font-medium whitespace-nowrap rounded-r-2xl\"\n [ngStyle]=\"{ width: '1%' }\"\n >\n Actions\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n <!-- Data rows -->\n @for (row of getRows(); track trackByFn($index, row)) {\n <tr\n [attr.data-testid]=\"getRowTestId(row, $index)\"\n class=\"h-10 min-h-10 max-h-11.25\"\n >\n @for (cell of row.getVisibleCells(); track cell.id) {\n <td\n class=\"border-b border-[#aedad8] px-3 py-0 text-sm whitespace-pre-line wrap-break-word text-black-base\"\n [ngClass]=\"cellAlignmentClass(cell)\"\n [ngStyle]=\"allContentLeft ? { padding: '0' } : null\"\n >\n @if (isStateCell(cell)) {\n <!-- State-like values (status/active) are rendered with ads-state for a consistent visual token -->\n <ads-state\n [shape]=\"getStateStyle(cell).shape ?? statusShape\"\n [containerShapes]=\"getStateStyle(cell).shape ?? statusShape\"\n [borderColor]=\"getStateStyle(cell).borderColor\"\n [bgColor]=\"getStateStyle(cell).bgColor\"\n [textColor]=\"getStateStyle(cell).textColor\"\n [text]=\"getStateText(cell)\"\n [fullWidth]=\"getStateStyle(cell).fullWidth ?? false\"\n [boldText]=\"getStateStyle(cell).boldText ?? true\"\n ></ads-state>\n } @else {\n <!-- Generic cell rendering for non-state columns via TanStack flexRender output -->\n <ng-container\n *flexRender=\"\n cell.column.columnDef.cell;\n props: cell.getContext();\n let renderedCell\n \"\n >\n <div\n [innerHTML]=\"renderedCell\"\n [ngStyle]=\"\n allContentLeft ? { 'text-align': 'left' } : null\n \"\n ></div>\n </ng-container>\n }\n </td>\n }\n\n @if (showButtons && actionButtons.length > 0) {\n <!-- Optional row action buttons -->\n <td\n class=\"border-b border-[#aedad8] px-1 py-1 align-middle text-center whitespace-nowrap\"\n >\n <div\n class=\"flex w-full items-center justify-center gap-1 p-0\"\n >\n @for (button of actionButtons; track $index) {\n @if (\n !button.condition || button.condition(row.original)\n ) {\n <button\n nz-tooltip\n [nzTooltipTitle]=\"\n getTooltipText(button, row.original)\n \"\n ads-button\n type=\"button\"\n [onlyIconButton]=\"true\"\n color=\"white\"\n [attr.data-testid]=\"\n getActionButtonTestId(row, button, $index)\n \"\n [title]=\"getTooltipText(button, row.original)\"\n [disabled]=\"\n isActionButtonDisabled(button, row.original)\n \"\n (click)=\"button.callback(row.original)\"\n >\n <ads-icon\n [ngClass]=\"\n isActionButtonDisabled(button, row.original)\n ? 'text-neutral-disabled-text'\n : 'text-green-1'\n \"\n [iconName]=\"iconNameFor(button.icon)\"\n [size]=\"16\"\n ></ads-icon>\n </button>\n }\n }\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n\n <!-- Footer controls: page size selector, page navigation, and total record counter -->\n <div class=\"flex w-full flex-wrap items-center justify-end gap-4 py-2\">\n <div class=\"mr-auto flex items-center gap-2 text-sm text-green-1\">\n <span class=\"whitespace-nowrap font-medium\">Rows per page</span>\n <select\n class=\"h-8 cursor-pointer rounded border border-aqua-1 bg-white-base px-2 text-sm text-green-1 outline-none transition hover:border-green-1 focus:border-green-1 focus:ring-2 focus:ring-green-1/20\"\n [value]=\"pageSize\"\n (change)=\"onPageSizeChange($event)\"\n [attr.data-testid]=\"contentTestId + '-page-size-select'\"\n >\n <option value=\"10\">10</option>\n <option value=\"25\">25</option>\n <option value=\"50\">50</option>\n <option value=\"100\">100</option>\n </select>\n </div>\n\n <div class=\"flex w-fit items-center justify-center gap-1\">\n <button\n type=\"button\"\n class=\"inline-flex h-8 items-center justify-center gap-1 rounded px-3 text-sm font-medium text-neutral-disabled-text transition hover:text-green-1 disabled:cursor-default disabled:opacity-50 border-none outline-0 bg-transparent\"\n [disabled]=\"currentPage === 1\"\n (click)=\"previousPage()\"\n [attr.data-testid]=\"contentTestId + '-pagination-previous'\"\n >\n <span class=\"text-lg leading-none\">\u2039</span>\n Previous\n </button>\n\n <div class=\"flex items-center justify-center gap-1\">\n @for (page of getPageNumbers(); track $index) {\n @if (page === null) {\n <span\n class=\"inline-flex h-8 min-w-8 select-none items-center justify-center px-2 font-medium text-neutral-disabled-text\"\n >...</span\n >\n } @else {\n <button\n type=\"button\"\n class=\"inline-flex h-8 min-w-8 items-center justify-center rounded px-2 font-medium text-neutral-disabled-text transition hover:text-green-1 disabled:cursor-default disabled:opacity-50 outline-0 border-none\"\n [ngClass]=\"{\n 'bg-green-1 text-white-base hover:text-white-base':\n currentPage === page,\n 'bg-transparent': currentPage !== page,\n }\"\n [disabled]=\"false\"\n (click)=\"goToPage(page)\"\n [attr.data-testid]=\"contentTestId + '-pagination-page-' + page\"\n >\n {{ page }}\n </button>\n }\n }\n </div>\n\n <button\n type=\"button\"\n class=\"inline-flex h-8 items-center justify-center gap-1 rounded px-3 text-sm font-medium text-neutral-disabled-text transition hover:text-green-1 disabled:cursor-default disabled:opacity-50 border-none outline-0 bg-transparent\"\n [disabled]=\"currentPage === totalPages\"\n (click)=\"nextPage()\"\n [attr.data-testid]=\"contentTestId + '-pagination-next'\"\n >\n Next\n <span class=\"text-lg leading-none\">\u203A</span>\n </button>\n </div>\n\n @if (totalRegisters) {\n <div\n class=\"w-fit min-w-20 text-sm font-medium text-neutral-disabled-text\"\n [attr.data-testid]=\"contentTestId + '-pagination-info'\"\n >\n Total Records: {{ totalRegisters }}\n </div>\n }\n </div>\n </div>\n} @else {\n <!-- Empty state layout when there are no rows to display -->\n <div class=\"w-full overflow-x-auto\">\n <table\n [attr.data-testid]=\"contentTestId\"\n class=\"min-w-full table-fixed border-separate border-spacing-0\"\n >\n <thead class=\"bg-green-1 text-white-base\">\n <tr class=\"h-10 min-h-10 max-h-11.25\">\n @for (column of getHeaderCells(); track column.id) {\n <th\n class=\"h-10 min-h-10 max-h-11.25 px-3 text-left font-medium first:rounded-l-2xl\"\n >\n {{ column.column.columnDef.header }}\n </th>\n }\n @if (showButtons) {\n <th\n class=\"h-10 min-h-10 max-h-11.25 px-3 text-center font-medium rounded-r-2xl\"\n >\n Options\n </th>\n }\n </tr>\n </thead>\n <tbody>\n <tr>\n <td [attr.colspan]=\"getEmptyColspan()\" class=\"py-2\">\n <div\n class=\"flex flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-aqua-2 bg-aqua-5/40 px-6 py-5 text-center\"\n >\n <span class=\"text-base font-semibold text-green-1\"\n >No available data</span\n >\n <span class=\"text-sm text-neutral-disabled-text\"\n >No data to display right now.</span\n >\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n}\n", styles: [":host ::ng-deep .cdk-drag-preview{background-color:#014744!important;color:#fff!important;border-radius:1rem!important;border-right:1px solid rgba(255,255,255,.2)!important;box-shadow:0 12px 28px #01474447!important;overflow:hidden!important}:host ::ng-deep .cdk-drag-placeholder{opacity:0}:host ::ng-deep .cdk-drop-list-dragging th.cdk-drag:not(.cdk-drag-placeholder){transition:transform .22s cubic-bezier(.2,0,0,1)}:host ::ng-deep th.cdk-drag-animating{transition:transform .22s cubic-bezier(.2,0,0,1)}::ng-deep .cdk-drag-preview{background:#014743a9!important;color:#fff!important;box-shadow:none!important;border:none!important;border-radius:10rem!important}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$4.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: FlexRenderDirective, selector: "[flexRender]", inputs: ["flexRender", "flexRenderProps", "flexRenderInjector"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }, { kind: "component", type: StateComponent, selector: "ads-state", inputs: ["boldText", "fullWidth", "shape", "text", "borderColor", "bgColor", "textColor", "containerShapes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i1$3.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }] });
3944
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: TableComponent, isStandalone: true, selector: "ads-table", inputs: { table: "table", isLoading: "isLoading", selectedSortingHeader: "selectedSortingHeader", sortDirection: "sortDirection", showButtons: "showButtons", allContentLeft: "allContentLeft", totalRegisters: "totalRegisters", areColumnsDraggable: "areColumnsDraggable", currentPage: "currentPage", totalPages: "totalPages", pageSize: "pageSize", enableMultiSort: "enableMultiSort", multiSortCriteria: "multiSortCriteria", actionButtons: "actionButtons", statusStateStyles: "statusStateStyles", activeStateStyles: "activeStateStyles" }, outputs: { sortEvent: "sortEvent", columnOrderChange: "columnOrderChange", pageChange: "pageChange", columnSizingChange: "columnSizingChange", pageSizeChange: "pageSizeChange", multiSortEvent: "multiSortEvent" }, ngImport: i0, template: "@if (getRows().length > 0 || isLoading) {\n <!-- Main table layout: data grid + footer pagination area -->\n <div class=\"flex min-h-[60vh] w-full flex-col justify-between gap-4\">\n <!-- @if (isLoading) {\n <div\n class=\"flex min-h-40 items-center justify-center rounded-2xl bg-white-base/80 px-6 py-8 shadow-sm\"\n >\n <div class=\"flex items-center gap-3 text-green-1\">\n <span\n class=\"h-10 w-10 animate-spin rounded-full border-t-green-1\"\n ></span>\n <span class=\"text-sm font-medium\">Loading table data</span>\n </div>\n </div>\n } -->\n\n <div class=\"w-full overflow-x-auto\">\n <table\n [attr.data-testid]=\"contentTestId\"\n class=\"min-w-full table-fixed border-separate border-spacing-0\"\n >\n <!-- Interactive header row: sorting, drag-and-drop, and column resizing -->\n <thead class=\"bg-green-1 text-white-base\">\n <tr\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n class=\"h-10 min-h-10 max-h-11.25\"\n (cdkDropListDropped)=\"drop($event)\"\n [ngStyle]=\"allContentLeft ? { 'text-align': 'left' } : null\"\n >\n @for (\n column of getHeaderCells();\n track column.id + \"-\" + headerRenderVersion\n ) {\n @if (isColumnSortable(column)) {\n @if (areColumnsDraggable) {\n <!-- Sortable + draggable header cell -->\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0 overflow-hidden cursor-grab active:cursor-grabbing\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <button\n type=\"button\"\n cdkDragHandle\n class=\"group flex h-full w-full cursor-pointer items-center gap-3 px-3 transition-colors duration-200 border-none outline-0 bg-transparent hover:bg-white/10\"\n [ngClass]=\"headerAlignmentClass(column)\"\n (click)=\"sort(column, $event)\"\n [title]=\"\n enableMultiSort ? 'Shift+click to add to sort' : null\n \"\n >\n <!-- When right-aligned, the sort indicator is shown before the header text -->\n @if (getSortEntry(column); as entry) {\n @if (isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold text-white-base leading-px\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n <!-- For left/center aligned headers, the sort indicator is shown after the text -->\n @if (getSortEntry(column); as entry) {\n @if (!isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold text-white-base leading-px\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n </button>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n } @else {\n <!-- Sortable header cell without drag-and-drop -->\n <th\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <button\n type=\"button\"\n class=\"flex h-full w-full cursor-pointer items-center gap-3 px-3 transition-colors duration-200 hover:bg-white/10 bg-green-base\"\n [ngClass]=\"headerAlignmentClass(column)\"\n (click)=\"sort(column, $event)\"\n [title]=\"\n enableMultiSort ? 'Shift+click to add to sort' : null\n \"\n >\n @if (getSortEntry(column); as entry) {\n @if (isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold leading-none text-white-base\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n @if (getSortEntry(column); as entry) {\n @if (!isSortIconLeading(column)) {\n @if (multiSortCriteria.length > 1) {\n <span\n class=\"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-white/25 px-1 text-[0.65rem] font-bold leading-none text-white-base\"\n >\n {{ entry.index + 1 }}\n </span>\n }\n <ads-icon\n class=\"text-current transition-transform duration-200 -rotate-90\"\n [class.rotate-90]=\"entry.direction === 'ASC'\"\n [iconName]=\"'arrow_right'\"\n [size]=\"16\"\n ></ads-icon>\n }\n }\n </button>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n }\n } @else {\n @if (areColumnsDraggable) {\n <!-- Non-sortable but draggable header cell -->\n <th\n cdkDrag\n cdkDragLockAxis=\"x\"\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <div\n cdkDragHandle\n class=\"flex h-full w-full items-center px-3\"\n [ngClass]=\"headerAlignmentClass(column)\"\n >\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n } @else {\n <!-- Plain header cell (no sort, no drag) -->\n <th\n [ngStyle]=\"getColumnHeaderStyles(column)\"\n class=\"relative h-10 min-h-10 max-h-11.25 select-none border-r border-white/20 font-medium first:rounded-l-2xl last:rounded-r-2xl last:border-r-0\"\n [attr.data-testid]=\"getHeaderTestId(column)\"\n >\n <div\n class=\"flex h-full w-full items-center px-3\"\n [ngClass]=\"headerAlignmentClass(column)\"\n >\n <span class=\"truncate\">{{\n column.column.columnDef.header\n }}</span>\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 z-3 w-1 cursor-col-resize select-none bg-green-1 transition-colors hover:bg-green-1\"\n (mousedown)=\"startResize($event, column)\"\n (touchstart)=\"startResize($event, column)\"\n ></div>\n </th>\n }\n }\n }\n\n @if (showButtons) {\n <!-- Optional actions column header -->\n <th\n [attr.data-testid]=\"contentTestId + '-header-actions'\"\n class=\"h-10 min-h-10 max-h-11.25 px-3 text-center font-medium whitespace-nowrap rounded-r-2xl\"\n [ngStyle]=\"{ width: '1%' }\"\n >\n Actions\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n <!-- Data rows -->\n @for (row of getRows(); track trackByFn($index, row)) {\n <tr\n [attr.data-testid]=\"getRowTestId(row, $index)\"\n class=\"h-10 min-h-10 max-h-11.25\"\n >\n @for (cell of row.getVisibleCells(); track cell.id) {\n <td\n class=\"border-b border-[#aedad8] px-3 py-0 text-sm whitespace-pre-line wrap-break-word text-black-base\"\n [ngClass]=\"cellAlignmentClass(cell)\"\n [ngStyle]=\"allContentLeft ? { padding: '0' } : null\"\n >\n @if (isStateCell(cell)) {\n <!-- State-like values (status/active) are rendered with ads-state for a consistent visual token -->\n <ads-state\n [shape]=\"getStateStyle(cell).shape ?? statusShape\"\n [containerShapes]=\"getStateStyle(cell).shape ?? statusShape\"\n [borderColor]=\"getStateStyle(cell).borderColor\"\n [bgColor]=\"getStateStyle(cell).bgColor\"\n [textColor]=\"getStateStyle(cell).textColor\"\n [text]=\"getStateText(cell)\"\n [fullWidth]=\"getStateStyle(cell).fullWidth ?? false\"\n [boldText]=\"getStateStyle(cell).boldText ?? true\"\n ></ads-state>\n } @else {\n <!-- Generic cell rendering for non-state columns via TanStack flexRender output -->\n <ng-container\n *flexRender=\"\n cell.column.columnDef.cell;\n props: cell.getContext();\n let renderedCell\n \"\n >\n <div\n [innerHTML]=\"renderedCell\"\n [ngStyle]=\"\n allContentLeft ? { 'text-align': 'left' } : null\n \"\n ></div>\n </ng-container>\n }\n </td>\n }\n\n @if (showButtons && actionButtons.length > 0) {\n <!-- Optional row action buttons -->\n <td\n class=\"border-b border-[#aedad8] px-1 py-1 align-middle text-center whitespace-nowrap\"\n >\n <div\n class=\"flex w-full items-center justify-center gap-1 p-0\"\n >\n @for (button of actionButtons; track $index) {\n @if (\n !button.condition || button.condition(row.original)\n ) {\n <button\n nz-tooltip\n [nzTooltipTitle]=\"\n getTooltipText(button, row.original)\n \"\n ads-button\n type=\"button\"\n [onlyIconButton]=\"true\"\n color=\"white\"\n [attr.data-testid]=\"\n getActionButtonTestId(row, button, $index)\n \"\n [title]=\"getTooltipText(button, row.original)\"\n [disabled]=\"\n isActionButtonDisabled(button, row.original)\n \"\n (click)=\"button.callback(row.original)\"\n >\n <ads-icon\n [ngClass]=\"\n isActionButtonDisabled(button, row.original)\n ? 'text-neutral-disabled-text'\n : 'text-green-1'\n \"\n [iconName]=\"iconNameFor(button.icon)\"\n [size]=\"16\"\n ></ads-icon>\n </button>\n }\n }\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n\n <!-- Footer controls: page size selector, page navigation, and total record counter -->\n <div class=\"flex w-full flex-wrap items-center justify-end gap-4 py-2\">\n <div class=\"mr-auto flex items-center gap-2 text-sm text-green-1\">\n <span class=\"whitespace-nowrap font-medium\">Rows per page</span>\n <select\n class=\"h-8 cursor-pointer rounded border border-aqua-1 bg-white-base px-2 text-sm text-green-1 outline-none transition hover:border-green-1 focus:border-green-1 focus:ring-2 focus:ring-green-1/20\"\n [value]=\"pageSize\"\n (change)=\"onPageSizeChange($event)\"\n [attr.data-testid]=\"contentTestId + '-page-size-select'\"\n >\n <option value=\"10\">10</option>\n <option value=\"25\">25</option>\n <option value=\"50\">50</option>\n <option value=\"100\">100</option>\n </select>\n </div>\n\n <div class=\"flex w-fit items-center justify-center gap-1\">\n <button\n type=\"button\"\n class=\"inline-flex h-8 items-center justify-center gap-1 rounded px-3 text-sm font-medium text-neutral-disabled-text transition hover:text-green-1 disabled:cursor-default disabled:opacity-50 border-none outline-0 bg-transparent\"\n [disabled]=\"currentPage === 1\"\n (click)=\"previousPage()\"\n [attr.data-testid]=\"contentTestId + '-pagination-previous'\"\n >\n <span class=\"text-lg leading-none\">\u2039</span>\n Previous\n </button>\n\n <div class=\"flex items-center justify-center gap-1\">\n @for (page of getPageNumbers(); track $index) {\n @if (page === null) {\n <span\n class=\"inline-flex h-8 min-w-8 select-none items-center justify-center px-2 font-medium text-neutral-disabled-text\"\n >...</span\n >\n } @else {\n <button\n type=\"button\"\n class=\"inline-flex h-8 min-w-8 items-center justify-center rounded px-2 font-medium text-neutral-disabled-text transition hover:text-green-1 disabled:cursor-default disabled:opacity-50 outline-0 border-none\"\n [ngClass]=\"{\n 'bg-green-1 text-white-base hover:text-white-base':\n currentPage === page,\n 'bg-transparent': currentPage !== page,\n }\"\n [disabled]=\"false\"\n (click)=\"goToPage(page)\"\n [attr.data-testid]=\"contentTestId + '-pagination-page-' + page\"\n >\n {{ page }}\n </button>\n }\n }\n </div>\n\n <button\n type=\"button\"\n class=\"inline-flex h-8 items-center justify-center gap-1 rounded px-3 text-sm font-medium text-neutral-disabled-text transition hover:text-green-1 disabled:cursor-default disabled:opacity-50 border-none outline-0 bg-transparent\"\n [disabled]=\"currentPage === totalPages\"\n (click)=\"nextPage()\"\n [attr.data-testid]=\"contentTestId + '-pagination-next'\"\n >\n Next\n <span class=\"text-lg leading-none\">\u203A</span>\n </button>\n </div>\n\n @if (totalRegisters) {\n <div\n class=\"w-fit min-w-20 text-sm font-medium text-neutral-disabled-text\"\n [attr.data-testid]=\"contentTestId + '-pagination-info'\"\n >\n Total Records: {{ totalRegisters }}\n </div>\n }\n </div>\n </div>\n} @else {\n <!-- Empty state layout when there are no rows to display -->\n <div class=\"w-full overflow-x-auto\">\n <table\n [attr.data-testid]=\"contentTestId\"\n class=\"min-w-full table-fixed border-separate border-spacing-0\"\n >\n <thead class=\"bg-green-1 text-white-base\">\n <tr class=\"h-10 min-h-10 max-h-11.25\">\n @for (column of getHeaderCells(); track column.id) {\n <th\n class=\"h-10 min-h-10 max-h-11.25 px-3 text-left font-medium first:rounded-l-2xl\"\n >\n {{ column.column.columnDef.header }}\n </th>\n }\n @if (showButtons) {\n <th\n class=\"h-10 min-h-10 max-h-11.25 px-3 text-center font-medium rounded-r-2xl\"\n >\n Options\n </th>\n }\n </tr>\n </thead>\n <tbody>\n <tr>\n <td [attr.colspan]=\"getEmptyColspan()\" class=\"py-2\">\n <div\n class=\"flex flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-aqua-2 bg-aqua-5/40 px-6 py-5 text-center\"\n >\n <span class=\"text-base font-semibold text-green-1\"\n >No available data</span\n >\n <span class=\"text-sm text-neutral-disabled-text\"\n >No data to display right now.</span\n >\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n}\n", styles: [":host ::ng-deep .cdk-drag-preview{background-color:#014744!important;color:#fff!important;border-radius:1rem!important;border-right:1px solid rgba(255,255,255,.2)!important;box-shadow:0 12px 28px #01474447!important;overflow:hidden!important}:host ::ng-deep .cdk-drag-placeholder{opacity:0}:host ::ng-deep .cdk-drop-list-dragging th.cdk-drag:not(.cdk-drag-placeholder){transition:transform .22s cubic-bezier(.2,0,0,1)}:host ::ng-deep th.cdk-drag-animating{transition:transform .22s cubic-bezier(.2,0,0,1)}::ng-deep .cdk-drag-preview{background:#014743a9!important;color:#fff!important;box-shadow:none!important;border:none!important;border-radius:10rem!important}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$3.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: FlexRenderDirective, selector: "[flexRender]", inputs: ["flexRender", "flexRenderProps", "flexRenderInjector"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "component", type: ButtonComponent, selector: "button[ads-button]", inputs: ["variant", "color", "buttonType", "disabled", "fullWidth", "iconButton", "onlyIconButton"], outputs: ["clicked"] }, { kind: "component", type: StateComponent, selector: "ads-state", inputs: ["boldText", "fullWidth", "shape", "text", "borderColor", "bgColor", "textColor", "containerShapes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i1$2.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }] });
3604
3945
  }
3605
3946
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: TableComponent, decorators: [{
3606
3947
  type: Component,
@@ -3669,5 +4010,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
3669
4010
  * Generated bundle index. Do not edit.
3670
4011
  */
3671
4012
 
3672
- export { ButtonComponent, CheckboxComponent, DatepickerSelectorComponent, DelicateConfirmationModalComponent, FeedbackModalComponent, FilterButtonComponent, HelpModalComponent, ICONS, IconComponent, InformationModalComponent, InputComponent, InputDatepickerComponent, InputRangepickerComponent, MainModalComponent, MultipleSelectorComponent, NotificationModalComponent, SideNavComponent, SingleSelectorComponent, SnackbarComponent, StateComponent, TableComponent, TabsComponent, containerShapes, stateBackgroundColors, stateBorderColors, stateTextColors };
4013
+ export { ButtonComponent, CheckboxComponent, DatepickerSelectorComponent, DelicateConfirmationModalComponent, FeedbackModalComponent, FilterButtonComponent, HelpModalComponent, ICONS, IconComponent, InformationModalComponent, InputComponent, InputDatepickerComponent, InputRangepickerComponent, InputWeekpickerComponent, MainModalComponent, MultipleSelectorComponent, NotificationModalComponent, SideNavComponent, SingleSelectorComponent, SnackbarComponent, StateComponent, TableComponent, TabsComponent, containerShapes, stateBackgroundColors, stateBorderColors, stateTextColors };
3673
4014
  //# sourceMappingURL=aaamb-ngx-design-system.mjs.map