@aseansc/ui 5.2.3 → 5.3.0

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.
@@ -125,6 +125,9 @@ const ASC_UI_DEFAULT_CONFIG = {
125
125
  primaryColor: '#F74036',
126
126
  showSwitcher: true,
127
127
  },
128
+ layout: {
129
+ showFooter: true,
130
+ },
128
131
  button: {
129
132
  size: 'md',
130
133
  rounded: false,
@@ -2077,7 +2080,7 @@ class AscFormFieldComponent {
2077
2080
  this.forId = input('', /* @ts-ignore */
2078
2081
  ...(ngDevMode ? [{ debugName: "forId" }] : /* istanbul ignore next */ []));
2079
2082
  /**
2080
- * 'view' → label chuyển màu muted (mặc định #747475, override qua CSS custom
2083
+ * 'view' → label chuyển màu view (mặc định #5B5B5C, override qua CSS custom
2081
2084
  * property --asc-field-label-view-color).
2082
2085
  *
2083
2086
  * Không bắt buộc set thủ công — nếu control bên trong (asc-input, asc-select...)
@@ -2154,100 +2157,100 @@ class AscFormFieldComponent {
2154
2157
  this.controlErrors.set(invalid ? ctrl.errors : null);
2155
2158
  }
2156
2159
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2157
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscFormFieldComponent, isStandalone: true, selector: "asc-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelIcon: { classPropertyName: "labelIcon", publicName: "labelIcon", isSignal: true, isRequired: false, transformFunction: null }, labelSuffixIcon: { classPropertyName: "labelSuffixIcon", publicName: "labelSuffixIcon", isSignal: true, isRequired: false, transformFunction: null }, labelTooltip: { classPropertyName: "labelTooltip", publicName: "labelTooltip", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "forId", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostCls()", "attr.role": "\"group\"", "style.--asc-field-label-font-size-auto": "labelFontSizeAuto()", "style.--asc-field-label-width": "labelWidth() ?? null" } }, queries: [{ propertyName: "_innerControl", first: true, predicate: ASC_BASE_CONTROL, descendants: true }], ngImport: i0, template: `
2158
- <!--
2159
- #labelType là template ref chứa ng-content.
2160
- Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
2161
- -->
2162
- <ng-template #labelType>
2163
- <ng-content />
2164
- </ng-template>
2165
-
2166
- @switch (typeLabel()) {
2167
-
2168
- @case ('FloatLabel') {
2169
- <!-- PrimeNG FloatLabel: label nổi lên khi focus hoặc có value -->
2170
- <p-floatlabel variant="in">
2171
- <ng-container *ngTemplateOutlet="labelType" />
2172
- <label [for]="resolvedInputId()" class="asc-field-label">
2173
- {{ label() }}
2174
- @if (showRequiredMark()) {
2175
- <span class="asc-field-required-mark" aria-hidden="true">*</span>
2176
- }
2177
- </label>
2178
- </p-floatlabel>
2179
- }
2180
-
2181
- @case ('IftaLabel') {
2182
- <!-- PrimeNG IftaLabel: label nhỏ cố định phía trên, không nổi -->
2183
- <p-iftalabel>
2184
- <ng-container *ngTemplateOutlet="labelType" />
2185
- <label [for]="resolvedInputId()" class="asc-field-label">
2186
- {{ label() }}
2187
- @if (showRequiredMark()) {
2188
- <span class="asc-field-required-mark" aria-hidden="true">*</span>
2189
- }
2190
- </label>
2191
- </p-iftalabel>
2192
- }
2193
-
2194
- @default {
2195
- <!-- Default layout: label trên, content dưới -->
2196
- <div class="asc-field-top">
2197
- @if (label() && !hideLabel()) {
2198
- <label [for]="resolvedInputId()" class="asc-field-label">
2199
- @if (labelIcon()) {
2200
- <i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
2201
- }
2202
- {{ label() }}
2203
- @if (resolvedLabelSuffixIcon()) {
2204
- <i
2205
- [class]="resolvedLabelSuffixIcon()"
2206
- class="asc-field-label-icon"
2207
- [pTooltip]="labelTooltip()"
2208
- [tooltipDisabled]="!labelTooltip()"
2209
- [attr.tabindex]="labelTooltip() ? 0 : null"
2210
- [attr.aria-label]="labelTooltip() || null"
2211
- [attr.aria-hidden]="labelTooltip() ? null : 'true'"
2212
- ></i>
2213
- }
2214
- @if (showRequiredMark()) {
2215
- <span class="asc-field-required-mark" aria-hidden="true">*</span>
2216
- }
2217
- @if (showOptionalMark()) {
2218
- <span class="asc-field-optional-mark">({{ optionalText }})</span>
2219
- }
2220
- </label>
2221
- }
2222
- </div>
2223
- <ng-container *ngTemplateOutlet="labelType" />
2224
- }
2225
-
2226
- }
2227
-
2228
- <!-- Footer: error hoặc hint — không hiện trong layout inline, không render nếu rỗng -->
2229
- @if (layout() !== 'inline' && (showError() || hint())) {
2230
- <div class="asc-field-footer">
2231
- @if (showError()) {
2232
- <!--
2233
- Lấy error đầu tiên trong errors object.
2234
- KeyValuePipe chuyển {required: true, email: true} → [{key:'required', value:true}, ...]
2235
- Lấy phần tử [0].key → 'required' → pipe messageError → 'Email là bắt buộc'
2236
- -->
2237
- @if ($any(controlErrors()) | keyvalue; as errs) {
2238
- @if (errs[0]; as firstError) {
2239
- <div class="asc-field-error" role="alert" aria-live="assertive">
2240
- <i class="pi pi-exclamation-circle asc-field-error-icon" aria-hidden="true"></i>
2241
- <span>{{ $any(firstError).key | ascMessageError: label() : controlErrors() }}</span>
2242
- </div>
2243
- }
2244
- }
2245
- } @else if (hint()) {
2246
- <div class="asc-field-hint">{{ hint() }}</div>
2247
- }
2248
- </div>
2249
- }
2250
- `, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #747475)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;line-height:var(--asc-field-hint-line-height, 18px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:12px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 18px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2$1.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: AscMessageErrorPipe, name: "ascMessageError" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2160
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscFormFieldComponent, isStandalone: true, selector: "asc-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelIcon: { classPropertyName: "labelIcon", publicName: "labelIcon", isSignal: true, isRequired: false, transformFunction: null }, labelSuffixIcon: { classPropertyName: "labelSuffixIcon", publicName: "labelSuffixIcon", isSignal: true, isRequired: false, transformFunction: null }, labelTooltip: { classPropertyName: "labelTooltip", publicName: "labelTooltip", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "forId", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostCls()", "attr.role": "\"group\"", "style.--asc-field-label-font-size-auto": "labelFontSizeAuto()", "style.--asc-field-label-width": "labelWidth() ?? null" } }, queries: [{ propertyName: "_innerControl", first: true, predicate: ASC_BASE_CONTROL, descendants: true }], ngImport: i0, template: `
2161
+ <!--
2162
+ #labelType là template ref chứa ng-content.
2163
+ Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
2164
+ -->
2165
+ <ng-template #labelType>
2166
+ <ng-content />
2167
+ </ng-template>
2168
+
2169
+ @switch (typeLabel()) {
2170
+
2171
+ @case ('FloatLabel') {
2172
+ <!-- PrimeNG FloatLabel: label nổi lên khi focus hoặc có value -->
2173
+ <p-floatlabel variant="in">
2174
+ <ng-container *ngTemplateOutlet="labelType" />
2175
+ <label [for]="resolvedInputId()" class="asc-field-label">
2176
+ {{ label() }}
2177
+ @if (showRequiredMark()) {
2178
+ <span class="asc-field-required-mark" aria-hidden="true">*</span>
2179
+ }
2180
+ </label>
2181
+ </p-floatlabel>
2182
+ }
2183
+
2184
+ @case ('IftaLabel') {
2185
+ <!-- PrimeNG IftaLabel: label nhỏ cố định phía trên, không nổi -->
2186
+ <p-iftalabel>
2187
+ <ng-container *ngTemplateOutlet="labelType" />
2188
+ <label [for]="resolvedInputId()" class="asc-field-label">
2189
+ {{ label() }}
2190
+ @if (showRequiredMark()) {
2191
+ <span class="asc-field-required-mark" aria-hidden="true">*</span>
2192
+ }
2193
+ </label>
2194
+ </p-iftalabel>
2195
+ }
2196
+
2197
+ @default {
2198
+ <!-- Default layout: label trên, content dưới -->
2199
+ <div class="asc-field-top">
2200
+ @if (label() && !hideLabel()) {
2201
+ <label [for]="resolvedInputId()" class="asc-field-label">
2202
+ @if (labelIcon()) {
2203
+ <i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
2204
+ }
2205
+ {{ label() }}
2206
+ @if (resolvedLabelSuffixIcon()) {
2207
+ <i
2208
+ [class]="resolvedLabelSuffixIcon()"
2209
+ class="asc-field-label-icon"
2210
+ [pTooltip]="labelTooltip()"
2211
+ [tooltipDisabled]="!labelTooltip()"
2212
+ [attr.tabindex]="labelTooltip() ? 0 : null"
2213
+ [attr.aria-label]="labelTooltip() || null"
2214
+ [attr.aria-hidden]="labelTooltip() ? null : 'true'"
2215
+ ></i>
2216
+ }
2217
+ @if (showRequiredMark()) {
2218
+ <span class="asc-field-required-mark" aria-hidden="true">*</span>
2219
+ }
2220
+ @if (showOptionalMark()) {
2221
+ <span class="asc-field-optional-mark">({{ optionalText }})</span>
2222
+ }
2223
+ </label>
2224
+ }
2225
+ </div>
2226
+ <ng-container *ngTemplateOutlet="labelType" />
2227
+ }
2228
+
2229
+ }
2230
+
2231
+ <!-- Footer: error hoặc hint — không hiện trong layout inline, không render nếu rỗng -->
2232
+ @if (layout() !== 'inline' && (showError() || hint())) {
2233
+ <div class="asc-field-footer">
2234
+ @if (showError()) {
2235
+ <!--
2236
+ Lấy error đầu tiên trong errors object.
2237
+ KeyValuePipe chuyển {required: true, email: true} → [{key:'required', value:true}, ...]
2238
+ Lấy phần tử [0].key → 'required' → pipe messageError → 'Email là bắt buộc'
2239
+ -->
2240
+ @if ($any(controlErrors()) | keyvalue; as errs) {
2241
+ @if (errs[0]; as firstError) {
2242
+ <div class="asc-field-error" role="alert" aria-live="assertive">
2243
+ <i class="pi pi-exclamation-circle asc-field-error-icon" aria-hidden="true"></i>
2244
+ <span>{{ $any(firstError).key | ascMessageError: label() : controlErrors() }}</span>
2245
+ </div>
2246
+ }
2247
+ }
2248
+ } @else if (hint()) {
2249
+ <div class="asc-field-hint">{{ hint() }}</div>
2250
+ }
2251
+ </div>
2252
+ }
2253
+ `, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #5B5B5C)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;line-height:var(--asc-field-hint-line-height, 18px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:12px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 18px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2$1.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: AscMessageErrorPipe, name: "ascMessageError" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2251
2254
  }
2252
2255
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, decorators: [{
2253
2256
  type: Component,
@@ -2265,100 +2268,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
2265
2268
  // Chỉ gắn inline style khi consumer truyền labelWidth — không truyền thì để biến CSS
2266
2269
  // --asc-field-label-width (đặt global/theo vùng) có hiệu lực. Angular bỏ style khi null.
2267
2270
  '[style.--asc-field-label-width]': 'labelWidth() ?? null',
2268
- }, template: `
2269
- <!--
2270
- #labelType là template ref chứa ng-content.
2271
- Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
2272
- -->
2273
- <ng-template #labelType>
2274
- <ng-content />
2275
- </ng-template>
2276
-
2277
- @switch (typeLabel()) {
2278
-
2279
- @case ('FloatLabel') {
2280
- <!-- PrimeNG FloatLabel: label nổi lên khi focus hoặc có value -->
2281
- <p-floatlabel variant="in">
2282
- <ng-container *ngTemplateOutlet="labelType" />
2283
- <label [for]="resolvedInputId()" class="asc-field-label">
2284
- {{ label() }}
2285
- @if (showRequiredMark()) {
2286
- <span class="asc-field-required-mark" aria-hidden="true">*</span>
2287
- }
2288
- </label>
2289
- </p-floatlabel>
2290
- }
2291
-
2292
- @case ('IftaLabel') {
2293
- <!-- PrimeNG IftaLabel: label nhỏ cố định phía trên, không nổi -->
2294
- <p-iftalabel>
2295
- <ng-container *ngTemplateOutlet="labelType" />
2296
- <label [for]="resolvedInputId()" class="asc-field-label">
2297
- {{ label() }}
2298
- @if (showRequiredMark()) {
2299
- <span class="asc-field-required-mark" aria-hidden="true">*</span>
2300
- }
2301
- </label>
2302
- </p-iftalabel>
2303
- }
2304
-
2305
- @default {
2306
- <!-- Default layout: label trên, content dưới -->
2307
- <div class="asc-field-top">
2308
- @if (label() && !hideLabel()) {
2309
- <label [for]="resolvedInputId()" class="asc-field-label">
2310
- @if (labelIcon()) {
2311
- <i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
2312
- }
2313
- {{ label() }}
2314
- @if (resolvedLabelSuffixIcon()) {
2315
- <i
2316
- [class]="resolvedLabelSuffixIcon()"
2317
- class="asc-field-label-icon"
2318
- [pTooltip]="labelTooltip()"
2319
- [tooltipDisabled]="!labelTooltip()"
2320
- [attr.tabindex]="labelTooltip() ? 0 : null"
2321
- [attr.aria-label]="labelTooltip() || null"
2322
- [attr.aria-hidden]="labelTooltip() ? null : 'true'"
2323
- ></i>
2324
- }
2325
- @if (showRequiredMark()) {
2326
- <span class="asc-field-required-mark" aria-hidden="true">*</span>
2327
- }
2328
- @if (showOptionalMark()) {
2329
- <span class="asc-field-optional-mark">({{ optionalText }})</span>
2330
- }
2331
- </label>
2332
- }
2333
- </div>
2334
- <ng-container *ngTemplateOutlet="labelType" />
2335
- }
2336
-
2337
- }
2338
-
2339
- <!-- Footer: error hoặc hint — không hiện trong layout inline, không render nếu rỗng -->
2340
- @if (layout() !== 'inline' && (showError() || hint())) {
2341
- <div class="asc-field-footer">
2342
- @if (showError()) {
2343
- <!--
2344
- Lấy error đầu tiên trong errors object.
2345
- KeyValuePipe chuyển {required: true, email: true} → [{key:'required', value:true}, ...]
2346
- Lấy phần tử [0].key → 'required' → pipe messageError → 'Email là bắt buộc'
2347
- -->
2348
- @if ($any(controlErrors()) | keyvalue; as errs) {
2349
- @if (errs[0]; as firstError) {
2350
- <div class="asc-field-error" role="alert" aria-live="assertive">
2351
- <i class="pi pi-exclamation-circle asc-field-error-icon" aria-hidden="true"></i>
2352
- <span>{{ $any(firstError).key | ascMessageError: label() : controlErrors() }}</span>
2353
- </div>
2354
- }
2355
- }
2356
- } @else if (hint()) {
2357
- <div class="asc-field-hint">{{ hint() }}</div>
2358
- }
2359
- </div>
2360
- }
2361
- `, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #747475)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;line-height:var(--asc-field-hint-line-height, 18px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:12px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 18px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"] }]
2271
+ }, template: `
2272
+ <!--
2273
+ #labelType là template ref chứa ng-content.
2274
+ Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
2275
+ -->
2276
+ <ng-template #labelType>
2277
+ <ng-content />
2278
+ </ng-template>
2279
+
2280
+ @switch (typeLabel()) {
2281
+
2282
+ @case ('FloatLabel') {
2283
+ <!-- PrimeNG FloatLabel: label nổi lên khi focus hoặc có value -->
2284
+ <p-floatlabel variant="in">
2285
+ <ng-container *ngTemplateOutlet="labelType" />
2286
+ <label [for]="resolvedInputId()" class="asc-field-label">
2287
+ {{ label() }}
2288
+ @if (showRequiredMark()) {
2289
+ <span class="asc-field-required-mark" aria-hidden="true">*</span>
2290
+ }
2291
+ </label>
2292
+ </p-floatlabel>
2293
+ }
2294
+
2295
+ @case ('IftaLabel') {
2296
+ <!-- PrimeNG IftaLabel: label nhỏ cố định phía trên, không nổi -->
2297
+ <p-iftalabel>
2298
+ <ng-container *ngTemplateOutlet="labelType" />
2299
+ <label [for]="resolvedInputId()" class="asc-field-label">
2300
+ {{ label() }}
2301
+ @if (showRequiredMark()) {
2302
+ <span class="asc-field-required-mark" aria-hidden="true">*</span>
2303
+ }
2304
+ </label>
2305
+ </p-iftalabel>
2306
+ }
2307
+
2308
+ @default {
2309
+ <!-- Default layout: label trên, content dưới -->
2310
+ <div class="asc-field-top">
2311
+ @if (label() && !hideLabel()) {
2312
+ <label [for]="resolvedInputId()" class="asc-field-label">
2313
+ @if (labelIcon()) {
2314
+ <i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
2315
+ }
2316
+ {{ label() }}
2317
+ @if (resolvedLabelSuffixIcon()) {
2318
+ <i
2319
+ [class]="resolvedLabelSuffixIcon()"
2320
+ class="asc-field-label-icon"
2321
+ [pTooltip]="labelTooltip()"
2322
+ [tooltipDisabled]="!labelTooltip()"
2323
+ [attr.tabindex]="labelTooltip() ? 0 : null"
2324
+ [attr.aria-label]="labelTooltip() || null"
2325
+ [attr.aria-hidden]="labelTooltip() ? null : 'true'"
2326
+ ></i>
2327
+ }
2328
+ @if (showRequiredMark()) {
2329
+ <span class="asc-field-required-mark" aria-hidden="true">*</span>
2330
+ }
2331
+ @if (showOptionalMark()) {
2332
+ <span class="asc-field-optional-mark">({{ optionalText }})</span>
2333
+ }
2334
+ </label>
2335
+ }
2336
+ </div>
2337
+ <ng-container *ngTemplateOutlet="labelType" />
2338
+ }
2339
+
2340
+ }
2341
+
2342
+ <!-- Footer: error hoặc hint — không hiện trong layout inline, không render nếu rỗng -->
2343
+ @if (layout() !== 'inline' && (showError() || hint())) {
2344
+ <div class="asc-field-footer">
2345
+ @if (showError()) {
2346
+ <!--
2347
+ Lấy error đầu tiên trong errors object.
2348
+ KeyValuePipe chuyển {required: true, email: true} → [{key:'required', value:true}, ...]
2349
+ Lấy phần tử [0].key → 'required' → pipe messageError → 'Email là bắt buộc'
2350
+ -->
2351
+ @if ($any(controlErrors()) | keyvalue; as errs) {
2352
+ @if (errs[0]; as firstError) {
2353
+ <div class="asc-field-error" role="alert" aria-live="assertive">
2354
+ <i class="pi pi-exclamation-circle asc-field-error-icon" aria-hidden="true"></i>
2355
+ <span>{{ $any(firstError).key | ascMessageError: label() : controlErrors() }}</span>
2356
+ </div>
2357
+ }
2358
+ }
2359
+ } @else if (hint()) {
2360
+ <div class="asc-field-hint">{{ hint() }}</div>
2361
+ }
2362
+ </div>
2363
+ }
2364
+ `, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #5B5B5C)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;line-height:var(--asc-field-hint-line-height, 18px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:12px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 18px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"] }]
2362
2365
  }], propDecorators: { _innerControl: [{
2363
2366
  type: ContentChild,
2364
2367
  args: [ASC_BASE_CONTROL, { static: false }]
@@ -2958,157 +2961,157 @@ class AscSelectComponent extends BaseControlAccessor {
2958
2961
  provide: ASC_BASE_CONTROL,
2959
2962
  useExisting: forwardRef(() => AscSelectComponent),
2960
2963
  },
2961
- ], usesInheritance: true, ngImport: i0, template: `
2962
- @if (mode() === 'view') {
2963
- <span class="asc-select-view">{{ resolvedViewText() }}</span>
2964
- } @else if (multi()) {
2965
- <!-- ── Multi Select ───────────────────────────────────────────────── -->
2966
- @if (resolvedFloatLabel() && label()) {
2967
- <p-floatlabel [variant]="floatLabelVariant()">
2968
- <p-multiselect
2969
- [inputId]="selectId()"
2970
- [options]="options()"
2971
- [optionLabel]="optionLabel()"
2972
- [optionValue]="optionValue()"
2973
- [optionDisabled]="optionDisabled()"
2974
- [optionGroupLabel]="optionGroupLabel()"
2975
- [optionGroupChildren]="optionGroupChildren()"
2976
- [group]="grouped()"
2977
- [filter]="filterable()"
2978
- [filterBy]="filterBy()"
2979
- [showClear]="showClear()"
2980
- [display]="display()"
2981
- [maxSelectedLabels]="maxSelectedLabels()"
2982
- [selectedItemsLabel]="resolvedSelectedItemsLabel()"
2983
- [disabled]="effectiveDisabled()"
2984
- [loading]="loading()"
2985
- [virtualScroll]="virtualScroll()"
2986
- [virtualScrollItemSize]="virtualScrollItemSize()"
2987
- [emptyMessage]="resolvedEmptyMessage()"
2988
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
2989
- [appendTo]="appendTo()"
2990
- [class]="selectInnerCls()"
2991
- [panelStyleClass]="panelStyleClass()"
2992
- [attr.aria-invalid]="invalid() || undefined"
2993
- [ngModel]="value()"
2994
- (ngModelChange)="handleChange($event)"
2995
- (onFocus)="handleFocus($event)"
2996
- (onBlur)="handleBlur($event)"
2997
- (onPanelShow)="panelShow.emit()"
2998
- (onPanelHide)="panelHide.emit()"
2999
- (onFilter)="filterChange.emit($event)"
3000
- ></p-multiselect>
3001
- <label [for]="selectId()">{{ label() }}</label>
3002
- </p-floatlabel>
3003
- } @else {
3004
- <p-multiselect
3005
- [inputId]="selectId()"
3006
- [options]="options()"
3007
- [optionLabel]="optionLabel()"
3008
- [optionValue]="optionValue()"
3009
- [optionDisabled]="optionDisabled()"
3010
- [optionGroupLabel]="optionGroupLabel()"
3011
- [optionGroupChildren]="optionGroupChildren()"
3012
- [group]="grouped()"
3013
- [placeholder]="resolvedPlaceholder()"
3014
- [filter]="filterable()"
3015
- [filterBy]="filterBy()"
3016
- [showClear]="showClear()"
3017
- [display]="display()"
3018
- [maxSelectedLabels]="maxSelectedLabels()"
3019
- [selectedItemsLabel]="resolvedSelectedItemsLabel()"
3020
- [disabled]="effectiveDisabled()"
3021
- [loading]="loading()"
3022
- [virtualScroll]="virtualScroll()"
3023
- [virtualScrollItemSize]="virtualScrollItemSize()"
3024
- [emptyMessage]="resolvedEmptyMessage()"
3025
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3026
- [appendTo]="appendTo()"
3027
- [class]="selectInnerCls()"
3028
- [panelStyleClass]="panelStyleClass()"
3029
- [attr.aria-invalid]="invalid() || undefined"
3030
- [ngModel]="value()"
3031
- (ngModelChange)="handleChange($event)"
3032
- (onFocus)="handleFocus($event)"
3033
- (onBlur)="handleBlur($event)"
3034
- (onPanelShow)="panelShow.emit()"
3035
- (onPanelHide)="panelHide.emit()"
3036
- (onFilter)="filterChange.emit($event)"
3037
- ></p-multiselect>
3038
- }
3039
- } @else {
3040
- <!-- ── Single Select ───────────────────────────────────────────────── -->
3041
- @if (resolvedFloatLabel() && label()) {
3042
- <p-floatlabel [variant]="floatLabelVariant()">
3043
- <p-select
3044
- [inputId]="selectId()"
3045
- [options]="options()"
3046
- [optionLabel]="optionLabel()"
3047
- [optionValue]="optionValue()"
3048
- [optionDisabled]="optionDisabled()"
3049
- [optionGroupLabel]="optionGroupLabel()"
3050
- [optionGroupChildren]="optionGroupChildren()"
3051
- [group]="grouped()"
3052
- [filter]="filterable()"
3053
- [filterBy]="filterBy()"
3054
- [filterPlaceholder]="resolvedFilterPlaceholder()"
3055
- [showClear]="showClear()"
3056
- [disabled]="effectiveDisabled()"
3057
- [loading]="loading()"
3058
- [virtualScroll]="virtualScroll()"
3059
- [virtualScrollItemSize]="virtualScrollItemSize()"
3060
- [emptyMessage]="resolvedEmptyMessage()"
3061
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3062
- [appendTo]="appendTo()"
3063
- [class]="selectInnerCls()"
3064
- [panelStyleClass]="panelStyleClass()"
3065
- [attr.aria-invalid]="invalid() || undefined"
3066
- [ngModel]="value()"
3067
- (ngModelChange)="handleChange($event)"
3068
- (onFocus)="handleFocus($any($event))"
3069
- (onBlur)="handleBlur($any($event))"
3070
- (onShow)="panelShow.emit()"
3071
- (onHide)="panelHide.emit()"
3072
- (onFilter)="filterChange.emit($event)"
3073
- />
3074
- <label [for]="selectId()">{{ label() }}</label>
3075
- </p-floatlabel>
3076
- } @else {
3077
- <p-select
3078
- [inputId]="selectId()"
3079
- [options]="options()"
3080
- [optionLabel]="optionLabel()"
3081
- [optionValue]="optionValue()"
3082
- [optionDisabled]="optionDisabled()"
3083
- [optionGroupLabel]="optionGroupLabel()"
3084
- [optionGroupChildren]="optionGroupChildren()"
3085
- [group]="grouped()"
3086
- [placeholder]="resolvedPlaceholder()"
3087
- [filter]="filterable()"
3088
- [filterBy]="filterBy()"
3089
- [filterPlaceholder]="resolvedFilterPlaceholder()"
3090
- [showClear]="showClear()"
3091
- [disabled]="effectiveDisabled()"
3092
- [loading]="loading()"
3093
- [virtualScroll]="virtualScroll()"
3094
- [virtualScrollItemSize]="virtualScrollItemSize()"
3095
- [emptyMessage]="resolvedEmptyMessage()"
3096
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3097
- [appendTo]="appendTo()"
3098
- [class]="selectInnerCls()"
3099
- [panelStyleClass]="panelStyleClass()"
3100
- [attr.aria-invalid]="invalid() || undefined"
3101
- [ngModel]="value()"
3102
- (ngModelChange)="handleChange($event)"
3103
- (onFocus)="handleFocus($any($event))"
3104
- (onBlur)="handleBlur($any($event))"
3105
- (onShow)="panelShow.emit()"
3106
- (onHide)="panelHide.emit()"
3107
- (onFilter)="filterChange.emit($event)"
3108
- />
3109
- }
3110
- }
3111
- `, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2964
+ ], usesInheritance: true, ngImport: i0, template: `
2965
+ @if (mode() === 'view') {
2966
+ <span class="asc-select-view">{{ resolvedViewText() }}</span>
2967
+ } @else if (multi()) {
2968
+ <!-- ── Multi Select ───────────────────────────────────────────────── -->
2969
+ @if (resolvedFloatLabel() && label()) {
2970
+ <p-floatlabel [variant]="floatLabelVariant()">
2971
+ <p-multiselect
2972
+ [inputId]="selectId()"
2973
+ [options]="options()"
2974
+ [optionLabel]="optionLabel()"
2975
+ [optionValue]="optionValue()"
2976
+ [optionDisabled]="optionDisabled()"
2977
+ [optionGroupLabel]="optionGroupLabel()"
2978
+ [optionGroupChildren]="optionGroupChildren()"
2979
+ [group]="grouped()"
2980
+ [filter]="filterable()"
2981
+ [filterBy]="filterBy()"
2982
+ [showClear]="showClear()"
2983
+ [display]="display()"
2984
+ [maxSelectedLabels]="maxSelectedLabels()"
2985
+ [selectedItemsLabel]="resolvedSelectedItemsLabel()"
2986
+ [disabled]="effectiveDisabled()"
2987
+ [loading]="loading()"
2988
+ [virtualScroll]="virtualScroll()"
2989
+ [virtualScrollItemSize]="virtualScrollItemSize()"
2990
+ [emptyMessage]="resolvedEmptyMessage()"
2991
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
2992
+ [appendTo]="appendTo()"
2993
+ [class]="selectInnerCls()"
2994
+ [panelStyleClass]="panelStyleClass()"
2995
+ [attr.aria-invalid]="invalid() || undefined"
2996
+ [ngModel]="value()"
2997
+ (ngModelChange)="handleChange($event)"
2998
+ (onFocus)="handleFocus($event)"
2999
+ (onBlur)="handleBlur($event)"
3000
+ (onPanelShow)="panelShow.emit()"
3001
+ (onPanelHide)="panelHide.emit()"
3002
+ (onFilter)="filterChange.emit($event)"
3003
+ ></p-multiselect>
3004
+ <label [for]="selectId()">{{ label() }}</label>
3005
+ </p-floatlabel>
3006
+ } @else {
3007
+ <p-multiselect
3008
+ [inputId]="selectId()"
3009
+ [options]="options()"
3010
+ [optionLabel]="optionLabel()"
3011
+ [optionValue]="optionValue()"
3012
+ [optionDisabled]="optionDisabled()"
3013
+ [optionGroupLabel]="optionGroupLabel()"
3014
+ [optionGroupChildren]="optionGroupChildren()"
3015
+ [group]="grouped()"
3016
+ [placeholder]="resolvedPlaceholder()"
3017
+ [filter]="filterable()"
3018
+ [filterBy]="filterBy()"
3019
+ [showClear]="showClear()"
3020
+ [display]="display()"
3021
+ [maxSelectedLabels]="maxSelectedLabels()"
3022
+ [selectedItemsLabel]="resolvedSelectedItemsLabel()"
3023
+ [disabled]="effectiveDisabled()"
3024
+ [loading]="loading()"
3025
+ [virtualScroll]="virtualScroll()"
3026
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3027
+ [emptyMessage]="resolvedEmptyMessage()"
3028
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3029
+ [appendTo]="appendTo()"
3030
+ [class]="selectInnerCls()"
3031
+ [panelStyleClass]="panelStyleClass()"
3032
+ [attr.aria-invalid]="invalid() || undefined"
3033
+ [ngModel]="value()"
3034
+ (ngModelChange)="handleChange($event)"
3035
+ (onFocus)="handleFocus($event)"
3036
+ (onBlur)="handleBlur($event)"
3037
+ (onPanelShow)="panelShow.emit()"
3038
+ (onPanelHide)="panelHide.emit()"
3039
+ (onFilter)="filterChange.emit($event)"
3040
+ ></p-multiselect>
3041
+ }
3042
+ } @else {
3043
+ <!-- ── Single Select ───────────────────────────────────────────────── -->
3044
+ @if (resolvedFloatLabel() && label()) {
3045
+ <p-floatlabel [variant]="floatLabelVariant()">
3046
+ <p-select
3047
+ [inputId]="selectId()"
3048
+ [options]="options()"
3049
+ [optionLabel]="optionLabel()"
3050
+ [optionValue]="optionValue()"
3051
+ [optionDisabled]="optionDisabled()"
3052
+ [optionGroupLabel]="optionGroupLabel()"
3053
+ [optionGroupChildren]="optionGroupChildren()"
3054
+ [group]="grouped()"
3055
+ [filter]="filterable()"
3056
+ [filterBy]="filterBy()"
3057
+ [filterPlaceholder]="resolvedFilterPlaceholder()"
3058
+ [showClear]="showClear()"
3059
+ [disabled]="effectiveDisabled()"
3060
+ [loading]="loading()"
3061
+ [virtualScroll]="virtualScroll()"
3062
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3063
+ [emptyMessage]="resolvedEmptyMessage()"
3064
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3065
+ [appendTo]="appendTo()"
3066
+ [class]="selectInnerCls()"
3067
+ [panelStyleClass]="panelStyleClass()"
3068
+ [attr.aria-invalid]="invalid() || undefined"
3069
+ [ngModel]="value()"
3070
+ (ngModelChange)="handleChange($event)"
3071
+ (onFocus)="handleFocus($any($event))"
3072
+ (onBlur)="handleBlur($any($event))"
3073
+ (onShow)="panelShow.emit()"
3074
+ (onHide)="panelHide.emit()"
3075
+ (onFilter)="filterChange.emit($event)"
3076
+ />
3077
+ <label [for]="selectId()">{{ label() }}</label>
3078
+ </p-floatlabel>
3079
+ } @else {
3080
+ <p-select
3081
+ [inputId]="selectId()"
3082
+ [options]="options()"
3083
+ [optionLabel]="optionLabel()"
3084
+ [optionValue]="optionValue()"
3085
+ [optionDisabled]="optionDisabled()"
3086
+ [optionGroupLabel]="optionGroupLabel()"
3087
+ [optionGroupChildren]="optionGroupChildren()"
3088
+ [group]="grouped()"
3089
+ [placeholder]="resolvedPlaceholder()"
3090
+ [filter]="filterable()"
3091
+ [filterBy]="filterBy()"
3092
+ [filterPlaceholder]="resolvedFilterPlaceholder()"
3093
+ [showClear]="showClear()"
3094
+ [disabled]="effectiveDisabled()"
3095
+ [loading]="loading()"
3096
+ [virtualScroll]="virtualScroll()"
3097
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3098
+ [emptyMessage]="resolvedEmptyMessage()"
3099
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3100
+ [appendTo]="appendTo()"
3101
+ [class]="selectInnerCls()"
3102
+ [panelStyleClass]="panelStyleClass()"
3103
+ [attr.aria-invalid]="invalid() || undefined"
3104
+ [ngModel]="value()"
3105
+ (ngModelChange)="handleChange($event)"
3106
+ (onFocus)="handleFocus($any($event))"
3107
+ (onBlur)="handleBlur($any($event))"
3108
+ (onShow)="panelShow.emit()"
3109
+ (onHide)="panelHide.emit()"
3110
+ (onFilter)="filterChange.emit($event)"
3111
+ />
3112
+ }
3113
+ }
3114
+ `, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-dropdown,:host ::ng-deep .p-multiselect-dropdown{--p-icon-size: 13px}:host ::ng-deep .p-select-dropdown-icon,:host ::ng-deep .p-multiselect-dropdown-icon{font-size:13px}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3112
3115
  }
3113
3116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
3114
3117
  type: Component,
@@ -3120,157 +3123,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
3120
3123
  ], host: {
3121
3124
  '[class]': 'hostCls()',
3122
3125
  '[attr.data-input-id]': 'selectId()',
3123
- }, template: `
3124
- @if (mode() === 'view') {
3125
- <span class="asc-select-view">{{ resolvedViewText() }}</span>
3126
- } @else if (multi()) {
3127
- <!-- ── Multi Select ───────────────────────────────────────────────── -->
3128
- @if (resolvedFloatLabel() && label()) {
3129
- <p-floatlabel [variant]="floatLabelVariant()">
3130
- <p-multiselect
3131
- [inputId]="selectId()"
3132
- [options]="options()"
3133
- [optionLabel]="optionLabel()"
3134
- [optionValue]="optionValue()"
3135
- [optionDisabled]="optionDisabled()"
3136
- [optionGroupLabel]="optionGroupLabel()"
3137
- [optionGroupChildren]="optionGroupChildren()"
3138
- [group]="grouped()"
3139
- [filter]="filterable()"
3140
- [filterBy]="filterBy()"
3141
- [showClear]="showClear()"
3142
- [display]="display()"
3143
- [maxSelectedLabels]="maxSelectedLabels()"
3144
- [selectedItemsLabel]="resolvedSelectedItemsLabel()"
3145
- [disabled]="effectiveDisabled()"
3146
- [loading]="loading()"
3147
- [virtualScroll]="virtualScroll()"
3148
- [virtualScrollItemSize]="virtualScrollItemSize()"
3149
- [emptyMessage]="resolvedEmptyMessage()"
3150
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3151
- [appendTo]="appendTo()"
3152
- [class]="selectInnerCls()"
3153
- [panelStyleClass]="panelStyleClass()"
3154
- [attr.aria-invalid]="invalid() || undefined"
3155
- [ngModel]="value()"
3156
- (ngModelChange)="handleChange($event)"
3157
- (onFocus)="handleFocus($event)"
3158
- (onBlur)="handleBlur($event)"
3159
- (onPanelShow)="panelShow.emit()"
3160
- (onPanelHide)="panelHide.emit()"
3161
- (onFilter)="filterChange.emit($event)"
3162
- ></p-multiselect>
3163
- <label [for]="selectId()">{{ label() }}</label>
3164
- </p-floatlabel>
3165
- } @else {
3166
- <p-multiselect
3167
- [inputId]="selectId()"
3168
- [options]="options()"
3169
- [optionLabel]="optionLabel()"
3170
- [optionValue]="optionValue()"
3171
- [optionDisabled]="optionDisabled()"
3172
- [optionGroupLabel]="optionGroupLabel()"
3173
- [optionGroupChildren]="optionGroupChildren()"
3174
- [group]="grouped()"
3175
- [placeholder]="resolvedPlaceholder()"
3176
- [filter]="filterable()"
3177
- [filterBy]="filterBy()"
3178
- [showClear]="showClear()"
3179
- [display]="display()"
3180
- [maxSelectedLabels]="maxSelectedLabels()"
3181
- [selectedItemsLabel]="resolvedSelectedItemsLabel()"
3182
- [disabled]="effectiveDisabled()"
3183
- [loading]="loading()"
3184
- [virtualScroll]="virtualScroll()"
3185
- [virtualScrollItemSize]="virtualScrollItemSize()"
3186
- [emptyMessage]="resolvedEmptyMessage()"
3187
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3188
- [appendTo]="appendTo()"
3189
- [class]="selectInnerCls()"
3190
- [panelStyleClass]="panelStyleClass()"
3191
- [attr.aria-invalid]="invalid() || undefined"
3192
- [ngModel]="value()"
3193
- (ngModelChange)="handleChange($event)"
3194
- (onFocus)="handleFocus($event)"
3195
- (onBlur)="handleBlur($event)"
3196
- (onPanelShow)="panelShow.emit()"
3197
- (onPanelHide)="panelHide.emit()"
3198
- (onFilter)="filterChange.emit($event)"
3199
- ></p-multiselect>
3200
- }
3201
- } @else {
3202
- <!-- ── Single Select ───────────────────────────────────────────────── -->
3203
- @if (resolvedFloatLabel() && label()) {
3204
- <p-floatlabel [variant]="floatLabelVariant()">
3205
- <p-select
3206
- [inputId]="selectId()"
3207
- [options]="options()"
3208
- [optionLabel]="optionLabel()"
3209
- [optionValue]="optionValue()"
3210
- [optionDisabled]="optionDisabled()"
3211
- [optionGroupLabel]="optionGroupLabel()"
3212
- [optionGroupChildren]="optionGroupChildren()"
3213
- [group]="grouped()"
3214
- [filter]="filterable()"
3215
- [filterBy]="filterBy()"
3216
- [filterPlaceholder]="resolvedFilterPlaceholder()"
3217
- [showClear]="showClear()"
3218
- [disabled]="effectiveDisabled()"
3219
- [loading]="loading()"
3220
- [virtualScroll]="virtualScroll()"
3221
- [virtualScrollItemSize]="virtualScrollItemSize()"
3222
- [emptyMessage]="resolvedEmptyMessage()"
3223
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3224
- [appendTo]="appendTo()"
3225
- [class]="selectInnerCls()"
3226
- [panelStyleClass]="panelStyleClass()"
3227
- [attr.aria-invalid]="invalid() || undefined"
3228
- [ngModel]="value()"
3229
- (ngModelChange)="handleChange($event)"
3230
- (onFocus)="handleFocus($any($event))"
3231
- (onBlur)="handleBlur($any($event))"
3232
- (onShow)="panelShow.emit()"
3233
- (onHide)="panelHide.emit()"
3234
- (onFilter)="filterChange.emit($event)"
3235
- />
3236
- <label [for]="selectId()">{{ label() }}</label>
3237
- </p-floatlabel>
3238
- } @else {
3239
- <p-select
3240
- [inputId]="selectId()"
3241
- [options]="options()"
3242
- [optionLabel]="optionLabel()"
3243
- [optionValue]="optionValue()"
3244
- [optionDisabled]="optionDisabled()"
3245
- [optionGroupLabel]="optionGroupLabel()"
3246
- [optionGroupChildren]="optionGroupChildren()"
3247
- [group]="grouped()"
3248
- [placeholder]="resolvedPlaceholder()"
3249
- [filter]="filterable()"
3250
- [filterBy]="filterBy()"
3251
- [filterPlaceholder]="resolvedFilterPlaceholder()"
3252
- [showClear]="showClear()"
3253
- [disabled]="effectiveDisabled()"
3254
- [loading]="loading()"
3255
- [virtualScroll]="virtualScroll()"
3256
- [virtualScrollItemSize]="virtualScrollItemSize()"
3257
- [emptyMessage]="resolvedEmptyMessage()"
3258
- [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3259
- [appendTo]="appendTo()"
3260
- [class]="selectInnerCls()"
3261
- [panelStyleClass]="panelStyleClass()"
3262
- [attr.aria-invalid]="invalid() || undefined"
3263
- [ngModel]="value()"
3264
- (ngModelChange)="handleChange($event)"
3265
- (onFocus)="handleFocus($any($event))"
3266
- (onBlur)="handleBlur($any($event))"
3267
- (onShow)="panelShow.emit()"
3268
- (onHide)="panelHide.emit()"
3269
- (onFilter)="filterChange.emit($event)"
3270
- />
3271
- }
3272
- }
3273
- `, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
3126
+ }, template: `
3127
+ @if (mode() === 'view') {
3128
+ <span class="asc-select-view">{{ resolvedViewText() }}</span>
3129
+ } @else if (multi()) {
3130
+ <!-- ── Multi Select ───────────────────────────────────────────────── -->
3131
+ @if (resolvedFloatLabel() && label()) {
3132
+ <p-floatlabel [variant]="floatLabelVariant()">
3133
+ <p-multiselect
3134
+ [inputId]="selectId()"
3135
+ [options]="options()"
3136
+ [optionLabel]="optionLabel()"
3137
+ [optionValue]="optionValue()"
3138
+ [optionDisabled]="optionDisabled()"
3139
+ [optionGroupLabel]="optionGroupLabel()"
3140
+ [optionGroupChildren]="optionGroupChildren()"
3141
+ [group]="grouped()"
3142
+ [filter]="filterable()"
3143
+ [filterBy]="filterBy()"
3144
+ [showClear]="showClear()"
3145
+ [display]="display()"
3146
+ [maxSelectedLabels]="maxSelectedLabels()"
3147
+ [selectedItemsLabel]="resolvedSelectedItemsLabel()"
3148
+ [disabled]="effectiveDisabled()"
3149
+ [loading]="loading()"
3150
+ [virtualScroll]="virtualScroll()"
3151
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3152
+ [emptyMessage]="resolvedEmptyMessage()"
3153
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3154
+ [appendTo]="appendTo()"
3155
+ [class]="selectInnerCls()"
3156
+ [panelStyleClass]="panelStyleClass()"
3157
+ [attr.aria-invalid]="invalid() || undefined"
3158
+ [ngModel]="value()"
3159
+ (ngModelChange)="handleChange($event)"
3160
+ (onFocus)="handleFocus($event)"
3161
+ (onBlur)="handleBlur($event)"
3162
+ (onPanelShow)="panelShow.emit()"
3163
+ (onPanelHide)="panelHide.emit()"
3164
+ (onFilter)="filterChange.emit($event)"
3165
+ ></p-multiselect>
3166
+ <label [for]="selectId()">{{ label() }}</label>
3167
+ </p-floatlabel>
3168
+ } @else {
3169
+ <p-multiselect
3170
+ [inputId]="selectId()"
3171
+ [options]="options()"
3172
+ [optionLabel]="optionLabel()"
3173
+ [optionValue]="optionValue()"
3174
+ [optionDisabled]="optionDisabled()"
3175
+ [optionGroupLabel]="optionGroupLabel()"
3176
+ [optionGroupChildren]="optionGroupChildren()"
3177
+ [group]="grouped()"
3178
+ [placeholder]="resolvedPlaceholder()"
3179
+ [filter]="filterable()"
3180
+ [filterBy]="filterBy()"
3181
+ [showClear]="showClear()"
3182
+ [display]="display()"
3183
+ [maxSelectedLabels]="maxSelectedLabels()"
3184
+ [selectedItemsLabel]="resolvedSelectedItemsLabel()"
3185
+ [disabled]="effectiveDisabled()"
3186
+ [loading]="loading()"
3187
+ [virtualScroll]="virtualScroll()"
3188
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3189
+ [emptyMessage]="resolvedEmptyMessage()"
3190
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3191
+ [appendTo]="appendTo()"
3192
+ [class]="selectInnerCls()"
3193
+ [panelStyleClass]="panelStyleClass()"
3194
+ [attr.aria-invalid]="invalid() || undefined"
3195
+ [ngModel]="value()"
3196
+ (ngModelChange)="handleChange($event)"
3197
+ (onFocus)="handleFocus($event)"
3198
+ (onBlur)="handleBlur($event)"
3199
+ (onPanelShow)="panelShow.emit()"
3200
+ (onPanelHide)="panelHide.emit()"
3201
+ (onFilter)="filterChange.emit($event)"
3202
+ ></p-multiselect>
3203
+ }
3204
+ } @else {
3205
+ <!-- ── Single Select ───────────────────────────────────────────────── -->
3206
+ @if (resolvedFloatLabel() && label()) {
3207
+ <p-floatlabel [variant]="floatLabelVariant()">
3208
+ <p-select
3209
+ [inputId]="selectId()"
3210
+ [options]="options()"
3211
+ [optionLabel]="optionLabel()"
3212
+ [optionValue]="optionValue()"
3213
+ [optionDisabled]="optionDisabled()"
3214
+ [optionGroupLabel]="optionGroupLabel()"
3215
+ [optionGroupChildren]="optionGroupChildren()"
3216
+ [group]="grouped()"
3217
+ [filter]="filterable()"
3218
+ [filterBy]="filterBy()"
3219
+ [filterPlaceholder]="resolvedFilterPlaceholder()"
3220
+ [showClear]="showClear()"
3221
+ [disabled]="effectiveDisabled()"
3222
+ [loading]="loading()"
3223
+ [virtualScroll]="virtualScroll()"
3224
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3225
+ [emptyMessage]="resolvedEmptyMessage()"
3226
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3227
+ [appendTo]="appendTo()"
3228
+ [class]="selectInnerCls()"
3229
+ [panelStyleClass]="panelStyleClass()"
3230
+ [attr.aria-invalid]="invalid() || undefined"
3231
+ [ngModel]="value()"
3232
+ (ngModelChange)="handleChange($event)"
3233
+ (onFocus)="handleFocus($any($event))"
3234
+ (onBlur)="handleBlur($any($event))"
3235
+ (onShow)="panelShow.emit()"
3236
+ (onHide)="panelHide.emit()"
3237
+ (onFilter)="filterChange.emit($event)"
3238
+ />
3239
+ <label [for]="selectId()">{{ label() }}</label>
3240
+ </p-floatlabel>
3241
+ } @else {
3242
+ <p-select
3243
+ [inputId]="selectId()"
3244
+ [options]="options()"
3245
+ [optionLabel]="optionLabel()"
3246
+ [optionValue]="optionValue()"
3247
+ [optionDisabled]="optionDisabled()"
3248
+ [optionGroupLabel]="optionGroupLabel()"
3249
+ [optionGroupChildren]="optionGroupChildren()"
3250
+ [group]="grouped()"
3251
+ [placeholder]="resolvedPlaceholder()"
3252
+ [filter]="filterable()"
3253
+ [filterBy]="filterBy()"
3254
+ [filterPlaceholder]="resolvedFilterPlaceholder()"
3255
+ [showClear]="showClear()"
3256
+ [disabled]="effectiveDisabled()"
3257
+ [loading]="loading()"
3258
+ [virtualScroll]="virtualScroll()"
3259
+ [virtualScrollItemSize]="virtualScrollItemSize()"
3260
+ [emptyMessage]="resolvedEmptyMessage()"
3261
+ [emptyFilterMessage]="resolvedEmptyFilterMessage()"
3262
+ [appendTo]="appendTo()"
3263
+ [class]="selectInnerCls()"
3264
+ [panelStyleClass]="panelStyleClass()"
3265
+ [attr.aria-invalid]="invalid() || undefined"
3266
+ [ngModel]="value()"
3267
+ (ngModelChange)="handleChange($event)"
3268
+ (onFocus)="handleFocus($any($event))"
3269
+ (onBlur)="handleBlur($any($event))"
3270
+ (onShow)="panelShow.emit()"
3271
+ (onHide)="panelHide.emit()"
3272
+ (onFilter)="filterChange.emit($event)"
3273
+ />
3274
+ }
3275
+ }
3276
+ `, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-dropdown,:host ::ng-deep .p-multiselect-dropdown{--p-icon-size: 13px}:host ::ng-deep .p-select-dropdown-icon,:host ::ng-deep .p-multiselect-dropdown-icon{font-size:13px}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
3274
3277
  }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], grouped: [{ type: i0.Input, args: [{ isSignal: true, alias: "grouped", required: false }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], panelShow: [{ type: i0.Output, args: ["panelShow"] }], panelHide: [{ type: i0.Output, args: ["panelHide"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }] } });
3275
3278
 
3276
3279
  // ─────────────────────────────────────────────────────────────────────────────
@@ -10192,6 +10195,12 @@ class AscLayout {
10192
10195
  ...(ngDevMode ? [undefined, { debugName: "dropdownTpl" }] : /* istanbul ignore next */ []));
10193
10196
  this.footerSidebarTpl = input(/* @ts-ignore */
10194
10197
  ...(ngDevMode ? [undefined, { debugName: "footerSidebarTpl" }] : /* istanbul ignore next */ []));
10198
+ /** Render footer — không truyền thì fallback về config.layout.showFooter → true. `false` → không có trong DOM. */
10199
+ this.showFooter = input(undefined, /* @ts-ignore */
10200
+ ...(ngDevMode ? [{ debugName: "showFooter" }] : /* istanbul ignore next */ []));
10201
+ this.config = inject(ASC_UI_CONFIG, { optional: true }) ?? ASC_UI_DEFAULT_CONFIG;
10202
+ this.resolvedShowFooter = computed(() => this.showFooter() ?? this.config.layout?.showFooter ?? true, /* @ts-ignore */
10203
+ ...(ngDevMode ? [{ debugName: "resolvedShowFooter" }] : /* istanbul ignore next */ []));
10195
10204
  this.menuOutsideClickListener = null;
10196
10205
  this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
10197
10206
  if (!this.menuOutsideClickListener) {
@@ -10266,25 +10275,27 @@ class AscLayout {
10266
10275
  }
10267
10276
  }
10268
10277
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1$a.Router }], target: i0.ɵɵFactoryTarget.Component }); }
10269
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: AscLayout, isStandalone: true, selector: "asc-layout", inputs: { menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, sideBarLogo: { classPropertyName: "sideBarLogo", publicName: "sideBarLogo", isSignal: true, isRequired: false, transformFunction: null }, topBarLogo: { classPropertyName: "topBarLogo", publicName: "topBarLogo", isSignal: true, isRequired: false, transformFunction: null }, iconToggle: { classPropertyName: "iconToggle", publicName: "iconToggle", isSignal: true, isRequired: false, transformFunction: null }, breadCrumb: { classPropertyName: "breadCrumb", publicName: "breadCrumb", isSignal: true, isRequired: false, transformFunction: null }, dropdownTpl: { classPropertyName: "dropdownTpl", publicName: "dropdownTpl", isSignal: true, isRequired: false, transformFunction: null }, footerSidebarTpl: { classPropertyName: "footerSidebarTpl", publicName: "footerSidebarTpl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
10270
- <div class="layout-wrapper" [ngClass]="containerClass">
10271
- <asc-topbar
10272
- [iconToggle]="iconToggle()"
10273
- [breadCrumb]="breadCrumb()"
10274
- [topBarLogo]="topBarLogo()"
10275
- [dropdownTpl]="dropdownTpl()"
10276
- ></asc-topbar>
10277
- <asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
10278
- <ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
10279
- </asc-sidebar>
10280
- <div class="layout-main-container">
10281
- <div class="layout-main rounded-xl">
10282
- <ng-content></ng-content>
10283
- </div>
10284
- <asc-footer></asc-footer>
10285
- </div>
10286
- <div class="layout-mask animate-fadein"></div>
10287
- </div>
10278
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscLayout, isStandalone: true, selector: "asc-layout", inputs: { menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, sideBarLogo: { classPropertyName: "sideBarLogo", publicName: "sideBarLogo", isSignal: true, isRequired: false, transformFunction: null }, topBarLogo: { classPropertyName: "topBarLogo", publicName: "topBarLogo", isSignal: true, isRequired: false, transformFunction: null }, iconToggle: { classPropertyName: "iconToggle", publicName: "iconToggle", isSignal: true, isRequired: false, transformFunction: null }, breadCrumb: { classPropertyName: "breadCrumb", publicName: "breadCrumb", isSignal: true, isRequired: false, transformFunction: null }, dropdownTpl: { classPropertyName: "dropdownTpl", publicName: "dropdownTpl", isSignal: true, isRequired: false, transformFunction: null }, footerSidebarTpl: { classPropertyName: "footerSidebarTpl", publicName: "footerSidebarTpl", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
10279
+ <div class="layout-wrapper" [ngClass]="containerClass">
10280
+ <asc-topbar
10281
+ [iconToggle]="iconToggle()"
10282
+ [breadCrumb]="breadCrumb()"
10283
+ [topBarLogo]="topBarLogo()"
10284
+ [dropdownTpl]="dropdownTpl()"
10285
+ ></asc-topbar>
10286
+ <asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
10287
+ <ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
10288
+ </asc-sidebar>
10289
+ <div class="layout-main-container">
10290
+ <div class="layout-main rounded-xl">
10291
+ <ng-content></ng-content>
10292
+ </div>
10293
+ @if (resolvedShowFooter()) {
10294
+ <asc-footer></asc-footer>
10295
+ }
10296
+ </div>
10297
+ <div class="layout-mask animate-fadein"></div>
10298
+ </div>
10288
10299
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AppTopbar, selector: "asc-topbar", inputs: ["dropdownTpl", "topBarLogo", "breadCrumb", "iconToggle"] }, { kind: "component", type: AppSidebar, selector: "asc-sidebar", inputs: ["menuItems", "sideBarLogo"] }, { kind: "ngmodule", type: RouterModule }, { kind: "component", type: AppFooter, selector: "asc-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10289
10300
  }
10290
10301
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscLayout, decorators: [{
@@ -10294,28 +10305,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10294
10305
  standalone: true,
10295
10306
  imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
10296
10307
  changeDetection: ChangeDetectionStrategy.OnPush,
10297
- template: `
10298
- <div class="layout-wrapper" [ngClass]="containerClass">
10299
- <asc-topbar
10300
- [iconToggle]="iconToggle()"
10301
- [breadCrumb]="breadCrumb()"
10302
- [topBarLogo]="topBarLogo()"
10303
- [dropdownTpl]="dropdownTpl()"
10304
- ></asc-topbar>
10305
- <asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
10306
- <ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
10307
- </asc-sidebar>
10308
- <div class="layout-main-container">
10309
- <div class="layout-main rounded-xl">
10310
- <ng-content></ng-content>
10311
- </div>
10312
- <asc-footer></asc-footer>
10313
- </div>
10314
- <div class="layout-mask animate-fadein"></div>
10315
- </div>
10308
+ template: `
10309
+ <div class="layout-wrapper" [ngClass]="containerClass">
10310
+ <asc-topbar
10311
+ [iconToggle]="iconToggle()"
10312
+ [breadCrumb]="breadCrumb()"
10313
+ [topBarLogo]="topBarLogo()"
10314
+ [dropdownTpl]="dropdownTpl()"
10315
+ ></asc-topbar>
10316
+ <asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
10317
+ <ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
10318
+ </asc-sidebar>
10319
+ <div class="layout-main-container">
10320
+ <div class="layout-main rounded-xl">
10321
+ <ng-content></ng-content>
10322
+ </div>
10323
+ @if (resolvedShowFooter()) {
10324
+ <asc-footer></asc-footer>
10325
+ }
10326
+ </div>
10327
+ <div class="layout-mask animate-fadein"></div>
10328
+ </div>
10316
10329
  `,
10317
10330
  }]
10318
- }], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1$a.Router }], propDecorators: { menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: true }] }], sideBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogo", required: false }] }], topBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "topBarLogo", required: false }] }], iconToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconToggle", required: false }] }], breadCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadCrumb", required: false }] }], dropdownTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownTpl", required: false }] }], footerSidebarTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerSidebarTpl", required: false }] }] } });
10331
+ }], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1$a.Router }], propDecorators: { menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: true }] }], sideBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogo", required: false }] }], topBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "topBarLogo", required: false }] }], iconToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconToggle", required: false }] }], breadCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadCrumb", required: false }] }], dropdownTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownTpl", required: false }] }], footerSidebarTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerSidebarTpl", required: false }] }], showFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFooter", required: false }] }] } });
10319
10332
 
10320
10333
  class AscBreadcrumb {
10321
10334
  constructor() {