@ngstarter-ui/components 22.2.7 → 22.2.9

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.
@@ -245,7 +245,7 @@ class DataViewColumnFilterDialog {
245
245
  clear() { this.dialog.close({ filter: null }); }
246
246
  cancel() { this.dialog.close(); }
247
247
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DataViewColumnFilterDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
248
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: DataViewColumnFilterDialog, isStandalone: true, selector: "ngs-data-view-column-filter-dialog", providers: [provideNativeDateAdapter()], ngImport: i0, template: "<h3 ngsDialogTitle>Filter {{ column.name }}</h3>\n<form ngsDialogContent #filterForm=\"ngForm\" (ngSubmit)=\"apply()\" class=\"flex flex-col gap-4\">\n @if (error()) { <ngs-alert variant=\"negative\" role=\"alert\">{{ error() }}</ngs-alert> }\n @if (invalidDate()) { <ngs-alert variant=\"negative\" role=\"alert\">Enter a valid calendar date.</ngs-alert> }\n @switch (type) {\n @case ('text') {\n <ngs-form-field><ngs-label>Condition</ngs-label><ngs-select name=\"condition\" [(ngModel)]=\"operator\">\n @for (item of textOperators; track item) { <ngs-option [value]=\"item.value\">{{ item.label }}</ngs-option> }\n </ngs-select></ngs-form-field>\n <ngs-form-field><ngs-label>Text</ngs-label><input ngsInput name=\"text\" [(ngModel)]=\"text\"></ngs-form-field>\n }\n @case ('number') {\n <ngs-form-field><ngs-label>Condition</ngs-label><ngs-select name=\"condition\" [(ngModel)]=\"operator\">\n @for (item of numberOperators; track item) { <ngs-option [value]=\"item.value\">{{ item.label }}</ngs-option> }\n </ngs-select></ngs-form-field>\n <ngs-form-field><ngs-label>{{ operator() === 'between' ? 'Minimum' : 'Value' }}</ngs-label><ngs-number-input name=\"value\" [(ngModel)]=\"value\"/></ngs-form-field>\n @if (operator() === 'between') { <ngs-form-field><ngs-label>Maximum</ngs-label><ngs-number-input name=\"to\" [(ngModel)]=\"to\"/></ngs-form-field> }\n }\n @case ('date') {\n <ngs-form-field>\n <ngs-label>Date range</ngs-label>\n <ngs-date-range-input [rangePicker]=\"picker\" [(range)]=\"dateRange\">\n <input ngsStartDate placeholder=\"Start date\" aria-label=\"Start date\">\n <input ngsEndDate placeholder=\"End date\" aria-label=\"End date\">\n </ngs-date-range-input>\n <ngs-datepicker-toggle ngsIconButtonSuffix [for]=\"picker\"/>\n <ngs-date-range-picker #picker/>\n </ngs-form-field>\n }\n @case ('enum') {\n <ngs-form-field><ngs-label>Values</ngs-label><ngs-select multiple name=\"enumValues\" [(ngModel)]=\"enumValues\">\n @for (option of options; track option.value) { <ngs-option [value]=\"option.value\">{{ option.label }}</ngs-option> }\n </ngs-select></ngs-form-field>\n }\n @case ('boolean') {\n <ngs-form-field><ngs-label>Value</ngs-label><ngs-select name=\"booleanValue\" [(ngModel)]=\"booleanValue\">\n <ngs-option [value]=\"null\">Any</ngs-option><ngs-option [value]=\"true\">Yes</ngs-option><ngs-option [value]=\"false\">No</ngs-option>\n </ngs-select></ngs-form-field>\n }\n }\n</form>\n<div ngsDialogActions align=\"end\">\n <button ngsButton type=\"button\" (click)=\"clear()\">Clear</button>\n <button ngsButton type=\"button\" (click)=\"cancel()\">Cancel</button>\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"!!filterForm.invalid || invalidDate()\" (click)=\"apply()\">Apply filter</button>\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DialogTitle, selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]", inputs: ["id"], exportAs: ["ngsDialogTitle"] }, { kind: "component", type: DialogContent, selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]" }, { kind: "component", type: DialogActions, selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]", inputs: ["align"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["labelMode", "subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "component", type: Label, selector: "ngs-label" }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "component", type: Select, selector: "ngs-select", inputs: ["id", "placeholder", "disabled", "required", "multiple", "hideCheckIcon", "clearable", "dataSource", "pageSize", "searchable", "searchDebounce", "minSearchLength", "loadOnOpen", "aria-label", "tabIndex", "aria-describedby", "value"], outputs: ["selectionChange", "opened", "closed", "valueChange"], exportAs: ["ngsSelect"] }, { kind: "component", type: Option, selector: "ngs-option", inputs: ["id", "value", "data", "disabled", "selected"], outputs: ["onSelectionChange"], exportAs: ["ngsOption"] }, { kind: "component", type: NumberInput, selector: "ngs-number-input", inputs: ["min", "max", "step", "readonly", "disabled", "required", "placeholder"], outputs: ["valueChange"], exportAs: ["ngsNumberInput"] }, { kind: "component", type: DateRangeInput, selector: "ngs-date-range-input", inputs: ["rangePicker", "separator", "range"], outputs: ["rangeChange"], exportAs: ["ngsDateRangeInput"] }, { kind: "component", type: DateRangePicker, selector: "ngs-date-range-picker", inputs: ["startAt", "calendarHeaderComponent", "quickPresets", "showQuickPresets", "calendarCount", "extended"], exportAs: ["ngsDateRangePicker"] }, { kind: "directive", type: StartDate, selector: "input[ngsStartDate]" }, { kind: "directive", type: EndDate, selector: "input[ngsEndDate]" }, { kind: "component", type: DatepickerToggle, selector: "ngs-datepicker-toggle", inputs: ["for"], exportAs: ["ngsDatepickerToggle"] }, { kind: "directive", type: IconButtonSuffix, selector: "[ngsIconButtonSuffix]" }, { kind: "component", type: Alert, selector: "ngs-alert", inputs: ["autoClose", "bordered", "variant"], outputs: ["closed"], exportAs: ["ngsAlert"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
248
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: DataViewColumnFilterDialog, isStandalone: true, selector: "ngs-data-view-column-filter-dialog", providers: [provideNativeDateAdapter()], ngImport: i0, template: "<h3 ngsDialogTitle>Filter {{ column.name }}</h3>\n<form ngsDialogContent #filterForm=\"ngForm\" (ngSubmit)=\"apply()\" class=\"flex flex-col gap-4\">\n @if (error()) { <ngs-alert variant=\"negative\" role=\"alert\">{{ error() }}</ngs-alert> }\n @if (invalidDate()) { <ngs-alert variant=\"negative\" role=\"alert\">Enter a valid calendar date.</ngs-alert> }\n @switch (type) {\n @case ('text') {\n <ngs-form-field><ngs-label>Condition</ngs-label><ngs-select name=\"condition\" [(ngModel)]=\"operator\">\n @for (item of textOperators; track item) { <ngs-option [value]=\"item.value\">{{ item.label }}</ngs-option> }\n </ngs-select></ngs-form-field>\n <ngs-form-field><ngs-label>Text</ngs-label><input ngsInput name=\"text\" [(ngModel)]=\"text\"></ngs-form-field>\n }\n @case ('number') {\n <ngs-form-field><ngs-label>Condition</ngs-label><ngs-select name=\"condition\" [(ngModel)]=\"operator\">\n @for (item of numberOperators; track item) { <ngs-option [value]=\"item.value\">{{ item.label }}</ngs-option> }\n </ngs-select></ngs-form-field>\n <ngs-form-field><ngs-label>{{ operator() === 'between' ? 'Minimum' : 'Value' }}</ngs-label><ngs-number-input name=\"value\" [(ngModel)]=\"value\"/></ngs-form-field>\n @if (operator() === 'between') { <ngs-form-field><ngs-label>Maximum</ngs-label><ngs-number-input name=\"to\" [(ngModel)]=\"to\"/></ngs-form-field> }\n }\n @case ('date') {\n <ngs-form-field>\n <ngs-label>Date range</ngs-label>\n <ngs-date-range-input [rangePicker]=\"picker\" [(range)]=\"dateRange\">\n <input ngsStartDate placeholder=\"Start date\" aria-label=\"Start date\">\n <input ngsEndDate placeholder=\"End date\" aria-label=\"End date\">\n </ngs-date-range-input>\n <ngs-datepicker-toggle ngsIconButtonSuffix [for]=\"picker\"/>\n <ngs-date-range-picker #picker/>\n </ngs-form-field>\n }\n @case ('enum') {\n <ngs-form-field><ngs-label>Values</ngs-label><ngs-select multiple name=\"enumValues\" [(ngModel)]=\"enumValues\">\n @for (option of options; track option.value) { <ngs-option [value]=\"option.value\">{{ option.label }}</ngs-option> }\n </ngs-select></ngs-form-field>\n }\n @case ('boolean') {\n <ngs-form-field><ngs-label>Value</ngs-label><ngs-select name=\"booleanValue\" [(ngModel)]=\"booleanValue\">\n <ngs-option [value]=\"null\">Any</ngs-option><ngs-option [value]=\"true\">Yes</ngs-option><ngs-option [value]=\"false\">No</ngs-option>\n </ngs-select></ngs-form-field>\n }\n }\n</form>\n<div ngsDialogActions align=\"end\">\n <button ngsButton type=\"button\" (click)=\"clear()\">Clear</button>\n <button ngsButton type=\"button\" (click)=\"cancel()\">Cancel</button>\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"!!filterForm.invalid || invalidDate()\" (click)=\"apply()\">Apply filter</button>\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DialogTitle, selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]", inputs: ["id"], exportAs: ["ngsDialogTitle"] }, { kind: "component", type: DialogContent, selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]" }, { kind: "component", type: DialogActions, selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]", inputs: ["align"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["labelMode", "subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "component", type: Label, selector: "ngs-label" }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }, { kind: "component", type: Select, selector: "ngs-select", inputs: ["id", "placeholder", "disabled", "required", "multiple", "hideCheckIcon", "clearable", "dataSource", "pageSize", "searchable", "searchDebounce", "minSearchLength", "loadOnOpen", "aria-label", "tabIndex", "aria-describedby", "value"], outputs: ["selectionChange", "opened", "closed", "valueChange"], exportAs: ["ngsSelect"] }, { kind: "component", type: Option, selector: "ngs-option", inputs: ["id", "value", "data", "disabled", "selected"], outputs: ["onSelectionChange"], exportAs: ["ngsOption"] }, { kind: "component", type: NumberInput, selector: "ngs-number-input", inputs: ["min", "max", "step", "readonly", "disabled", "required", "aria-label", "placeholder"], outputs: ["valueChange"], exportAs: ["ngsNumberInput"] }, { kind: "component", type: DateRangeInput, selector: "ngs-date-range-input", inputs: ["rangePicker", "separator", "range"], outputs: ["rangeChange"], exportAs: ["ngsDateRangeInput"] }, { kind: "component", type: DateRangePicker, selector: "ngs-date-range-picker", inputs: ["startAt", "calendarHeaderComponent", "quickPresets", "showQuickPresets", "calendarCount", "extended"], exportAs: ["ngsDateRangePicker"] }, { kind: "directive", type: StartDate, selector: "input[ngsStartDate]" }, { kind: "directive", type: EndDate, selector: "input[ngsEndDate]" }, { kind: "component", type: DatepickerToggle, selector: "ngs-datepicker-toggle", inputs: ["for"], exportAs: ["ngsDatepickerToggle"] }, { kind: "directive", type: IconButtonSuffix, selector: "[ngsIconButtonSuffix]" }, { kind: "component", type: Alert, selector: "ngs-alert", inputs: ["autoClose", "bordered", "variant"], outputs: ["closed"], exportAs: ["ngsAlert"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
249
249
  }
250
250
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DataViewColumnFilterDialog, decorators: [{
251
251
  type: Component,