@aseansc/ui 5.2.3 → 5.4.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.
- package/CHANGELOG.md +35 -0
- package/README.md +1050 -1038
- package/fesm2022/aseansc-ui.mjs +564 -553
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aseansc-ui.d.ts +19 -5
package/fesm2022/aseansc-ui.mjs
CHANGED
|
@@ -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,
|
|
@@ -528,6 +531,11 @@ const ASC_PRESET = definePreset(Aura, {
|
|
|
528
531
|
extend: {
|
|
529
532
|
borderRadius: '12px',
|
|
530
533
|
},
|
|
534
|
+
// --p-dialog-content-padding — Figma Dialog: content 16px (Aura: 0 1.25rem 1.25rem).
|
|
535
|
+
// Áp cho cả p-dialog / p-confirmdialog dùng trực tiếp.
|
|
536
|
+
content: {
|
|
537
|
+
padding: '16px',
|
|
538
|
+
},
|
|
531
539
|
},
|
|
532
540
|
drawer: {
|
|
533
541
|
extend: {
|
|
@@ -2077,7 +2085,7 @@ class AscFormFieldComponent {
|
|
|
2077
2085
|
this.forId = input('', /* @ts-ignore */
|
|
2078
2086
|
...(ngDevMode ? [{ debugName: "forId" }] : /* istanbul ignore next */ []));
|
|
2079
2087
|
/**
|
|
2080
|
-
* 'view' → label chuyển màu
|
|
2088
|
+
* 'view' → label chuyển màu view (mặc định #5B5B5C, override qua CSS custom
|
|
2081
2089
|
* property --asc-field-label-view-color).
|
|
2082
2090
|
*
|
|
2083
2091
|
* Không bắt buộc set thủ công — nếu control bên trong (asc-input, asc-select...)
|
|
@@ -2154,100 +2162,100 @@ class AscFormFieldComponent {
|
|
|
2154
2162
|
this.controlErrors.set(invalid ? ctrl.errors : null);
|
|
2155
2163
|
}
|
|
2156
2164
|
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, #
|
|
2165
|
+
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: `
|
|
2166
|
+
<!--
|
|
2167
|
+
#labelType là template ref chứa ng-content.
|
|
2168
|
+
Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
|
|
2169
|
+
-->
|
|
2170
|
+
<ng-template #labelType>
|
|
2171
|
+
<ng-content />
|
|
2172
|
+
</ng-template>
|
|
2173
|
+
|
|
2174
|
+
@switch (typeLabel()) {
|
|
2175
|
+
|
|
2176
|
+
@case ('FloatLabel') {
|
|
2177
|
+
<!-- PrimeNG FloatLabel: label nổi lên khi focus hoặc có value -->
|
|
2178
|
+
<p-floatlabel variant="in">
|
|
2179
|
+
<ng-container *ngTemplateOutlet="labelType" />
|
|
2180
|
+
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2181
|
+
{{ label() }}
|
|
2182
|
+
@if (showRequiredMark()) {
|
|
2183
|
+
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2184
|
+
}
|
|
2185
|
+
</label>
|
|
2186
|
+
</p-floatlabel>
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
@case ('IftaLabel') {
|
|
2190
|
+
<!-- PrimeNG IftaLabel: label nhỏ cố định phía trên, không nổi -->
|
|
2191
|
+
<p-iftalabel>
|
|
2192
|
+
<ng-container *ngTemplateOutlet="labelType" />
|
|
2193
|
+
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2194
|
+
{{ label() }}
|
|
2195
|
+
@if (showRequiredMark()) {
|
|
2196
|
+
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2197
|
+
}
|
|
2198
|
+
</label>
|
|
2199
|
+
</p-iftalabel>
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
@default {
|
|
2203
|
+
<!-- Default layout: label trên, content dưới -->
|
|
2204
|
+
<div class="asc-field-top">
|
|
2205
|
+
@if (label() && !hideLabel()) {
|
|
2206
|
+
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2207
|
+
@if (labelIcon()) {
|
|
2208
|
+
<i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
|
|
2209
|
+
}
|
|
2210
|
+
{{ label() }}
|
|
2211
|
+
@if (resolvedLabelSuffixIcon()) {
|
|
2212
|
+
<i
|
|
2213
|
+
[class]="resolvedLabelSuffixIcon()"
|
|
2214
|
+
class="asc-field-label-icon"
|
|
2215
|
+
[pTooltip]="labelTooltip()"
|
|
2216
|
+
[tooltipDisabled]="!labelTooltip()"
|
|
2217
|
+
[attr.tabindex]="labelTooltip() ? 0 : null"
|
|
2218
|
+
[attr.aria-label]="labelTooltip() || null"
|
|
2219
|
+
[attr.aria-hidden]="labelTooltip() ? null : 'true'"
|
|
2220
|
+
></i>
|
|
2221
|
+
}
|
|
2222
|
+
@if (showRequiredMark()) {
|
|
2223
|
+
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2224
|
+
}
|
|
2225
|
+
@if (showOptionalMark()) {
|
|
2226
|
+
<span class="asc-field-optional-mark">({{ optionalText }})</span>
|
|
2227
|
+
}
|
|
2228
|
+
</label>
|
|
2229
|
+
}
|
|
2230
|
+
</div>
|
|
2231
|
+
<ng-container *ngTemplateOutlet="labelType" />
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
<!-- Footer: error hoặc hint — không hiện trong layout inline, không render nếu rỗng -->
|
|
2237
|
+
@if (layout() !== 'inline' && (showError() || hint())) {
|
|
2238
|
+
<div class="asc-field-footer">
|
|
2239
|
+
@if (showError()) {
|
|
2240
|
+
<!--
|
|
2241
|
+
Lấy error đầu tiên trong errors object.
|
|
2242
|
+
KeyValuePipe chuyển {required: true, email: true} → [{key:'required', value:true}, ...]
|
|
2243
|
+
Lấy phần tử [0].key → 'required' → pipe messageError → 'Email là bắt buộc'
|
|
2244
|
+
-->
|
|
2245
|
+
@if ($any(controlErrors()) | keyvalue; as errs) {
|
|
2246
|
+
@if (errs[0]; as firstError) {
|
|
2247
|
+
<div class="asc-field-error" role="alert" aria-live="assertive">
|
|
2248
|
+
<i class="pi pi-exclamation-circle asc-field-error-icon" aria-hidden="true"></i>
|
|
2249
|
+
<span>{{ $any(firstError).key | ascMessageError: label() : controlErrors() }}</span>
|
|
2250
|
+
</div>
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
} @else if (hint()) {
|
|
2254
|
+
<div class="asc-field-hint">{{ hint() }}</div>
|
|
2255
|
+
}
|
|
2256
|
+
</div>
|
|
2257
|
+
}
|
|
2258
|
+
`, 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
2259
|
}
|
|
2252
2260
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, decorators: [{
|
|
2253
2261
|
type: Component,
|
|
@@ -2265,100 +2273,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2265
2273
|
// Chỉ gắn inline style khi consumer truyền labelWidth — không truyền thì để biến CSS
|
|
2266
2274
|
// --asc-field-label-width (đặt global/theo vùng) có hiệu lực. Angular bỏ style khi null.
|
|
2267
2275
|
'[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, #
|
|
2276
|
+
}, template: `
|
|
2277
|
+
<!--
|
|
2278
|
+
#labelType là template ref chứa ng-content.
|
|
2279
|
+
Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
|
|
2280
|
+
-->
|
|
2281
|
+
<ng-template #labelType>
|
|
2282
|
+
<ng-content />
|
|
2283
|
+
</ng-template>
|
|
2284
|
+
|
|
2285
|
+
@switch (typeLabel()) {
|
|
2286
|
+
|
|
2287
|
+
@case ('FloatLabel') {
|
|
2288
|
+
<!-- PrimeNG FloatLabel: label nổi lên khi focus hoặc có value -->
|
|
2289
|
+
<p-floatlabel variant="in">
|
|
2290
|
+
<ng-container *ngTemplateOutlet="labelType" />
|
|
2291
|
+
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2292
|
+
{{ label() }}
|
|
2293
|
+
@if (showRequiredMark()) {
|
|
2294
|
+
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2295
|
+
}
|
|
2296
|
+
</label>
|
|
2297
|
+
</p-floatlabel>
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
@case ('IftaLabel') {
|
|
2301
|
+
<!-- PrimeNG IftaLabel: label nhỏ cố định phía trên, không nổi -->
|
|
2302
|
+
<p-iftalabel>
|
|
2303
|
+
<ng-container *ngTemplateOutlet="labelType" />
|
|
2304
|
+
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2305
|
+
{{ label() }}
|
|
2306
|
+
@if (showRequiredMark()) {
|
|
2307
|
+
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2308
|
+
}
|
|
2309
|
+
</label>
|
|
2310
|
+
</p-iftalabel>
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
@default {
|
|
2314
|
+
<!-- Default layout: label trên, content dưới -->
|
|
2315
|
+
<div class="asc-field-top">
|
|
2316
|
+
@if (label() && !hideLabel()) {
|
|
2317
|
+
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2318
|
+
@if (labelIcon()) {
|
|
2319
|
+
<i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
|
|
2320
|
+
}
|
|
2321
|
+
{{ label() }}
|
|
2322
|
+
@if (resolvedLabelSuffixIcon()) {
|
|
2323
|
+
<i
|
|
2324
|
+
[class]="resolvedLabelSuffixIcon()"
|
|
2325
|
+
class="asc-field-label-icon"
|
|
2326
|
+
[pTooltip]="labelTooltip()"
|
|
2327
|
+
[tooltipDisabled]="!labelTooltip()"
|
|
2328
|
+
[attr.tabindex]="labelTooltip() ? 0 : null"
|
|
2329
|
+
[attr.aria-label]="labelTooltip() || null"
|
|
2330
|
+
[attr.aria-hidden]="labelTooltip() ? null : 'true'"
|
|
2331
|
+
></i>
|
|
2332
|
+
}
|
|
2333
|
+
@if (showRequiredMark()) {
|
|
2334
|
+
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2335
|
+
}
|
|
2336
|
+
@if (showOptionalMark()) {
|
|
2337
|
+
<span class="asc-field-optional-mark">({{ optionalText }})</span>
|
|
2338
|
+
}
|
|
2339
|
+
</label>
|
|
2340
|
+
}
|
|
2341
|
+
</div>
|
|
2342
|
+
<ng-container *ngTemplateOutlet="labelType" />
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
<!-- Footer: error hoặc hint — không hiện trong layout inline, không render nếu rỗng -->
|
|
2348
|
+
@if (layout() !== 'inline' && (showError() || hint())) {
|
|
2349
|
+
<div class="asc-field-footer">
|
|
2350
|
+
@if (showError()) {
|
|
2351
|
+
<!--
|
|
2352
|
+
Lấy error đầu tiên trong errors object.
|
|
2353
|
+
KeyValuePipe chuyển {required: true, email: true} → [{key:'required', value:true}, ...]
|
|
2354
|
+
Lấy phần tử [0].key → 'required' → pipe messageError → 'Email là bắt buộc'
|
|
2355
|
+
-->
|
|
2356
|
+
@if ($any(controlErrors()) | keyvalue; as errs) {
|
|
2357
|
+
@if (errs[0]; as firstError) {
|
|
2358
|
+
<div class="asc-field-error" role="alert" aria-live="assertive">
|
|
2359
|
+
<i class="pi pi-exclamation-circle asc-field-error-icon" aria-hidden="true"></i>
|
|
2360
|
+
<span>{{ $any(firstError).key | ascMessageError: label() : controlErrors() }}</span>
|
|
2361
|
+
</div>
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
} @else if (hint()) {
|
|
2365
|
+
<div class="asc-field-hint">{{ hint() }}</div>
|
|
2366
|
+
}
|
|
2367
|
+
</div>
|
|
2368
|
+
}
|
|
2369
|
+
`, 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
2370
|
}], propDecorators: { _innerControl: [{
|
|
2363
2371
|
type: ContentChild,
|
|
2364
2372
|
args: [ASC_BASE_CONTROL, { static: false }]
|
|
@@ -2958,157 +2966,157 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
2958
2966
|
provide: ASC_BASE_CONTROL,
|
|
2959
2967
|
useExisting: forwardRef(() => AscSelectComponent),
|
|
2960
2968
|
},
|
|
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 }); }
|
|
2969
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
2970
|
+
@if (mode() === 'view') {
|
|
2971
|
+
<span class="asc-select-view">{{ resolvedViewText() }}</span>
|
|
2972
|
+
} @else if (multi()) {
|
|
2973
|
+
<!-- ── Multi Select ───────────────────────────────────────────────── -->
|
|
2974
|
+
@if (resolvedFloatLabel() && label()) {
|
|
2975
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
2976
|
+
<p-multiselect
|
|
2977
|
+
[inputId]="selectId()"
|
|
2978
|
+
[options]="options()"
|
|
2979
|
+
[optionLabel]="optionLabel()"
|
|
2980
|
+
[optionValue]="optionValue()"
|
|
2981
|
+
[optionDisabled]="optionDisabled()"
|
|
2982
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
2983
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
2984
|
+
[group]="grouped()"
|
|
2985
|
+
[filter]="filterable()"
|
|
2986
|
+
[filterBy]="filterBy()"
|
|
2987
|
+
[showClear]="showClear()"
|
|
2988
|
+
[display]="display()"
|
|
2989
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
2990
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
2991
|
+
[disabled]="effectiveDisabled()"
|
|
2992
|
+
[loading]="loading()"
|
|
2993
|
+
[virtualScroll]="virtualScroll()"
|
|
2994
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
2995
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
2996
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
2997
|
+
[appendTo]="appendTo()"
|
|
2998
|
+
[class]="selectInnerCls()"
|
|
2999
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3000
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3001
|
+
[ngModel]="value()"
|
|
3002
|
+
(ngModelChange)="handleChange($event)"
|
|
3003
|
+
(onFocus)="handleFocus($event)"
|
|
3004
|
+
(onBlur)="handleBlur($event)"
|
|
3005
|
+
(onPanelShow)="panelShow.emit()"
|
|
3006
|
+
(onPanelHide)="panelHide.emit()"
|
|
3007
|
+
(onFilter)="filterChange.emit($event)"
|
|
3008
|
+
></p-multiselect>
|
|
3009
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3010
|
+
</p-floatlabel>
|
|
3011
|
+
} @else {
|
|
3012
|
+
<p-multiselect
|
|
3013
|
+
[inputId]="selectId()"
|
|
3014
|
+
[options]="options()"
|
|
3015
|
+
[optionLabel]="optionLabel()"
|
|
3016
|
+
[optionValue]="optionValue()"
|
|
3017
|
+
[optionDisabled]="optionDisabled()"
|
|
3018
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3019
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3020
|
+
[group]="grouped()"
|
|
3021
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3022
|
+
[filter]="filterable()"
|
|
3023
|
+
[filterBy]="filterBy()"
|
|
3024
|
+
[showClear]="showClear()"
|
|
3025
|
+
[display]="display()"
|
|
3026
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3027
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3028
|
+
[disabled]="effectiveDisabled()"
|
|
3029
|
+
[loading]="loading()"
|
|
3030
|
+
[virtualScroll]="virtualScroll()"
|
|
3031
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3032
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3033
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3034
|
+
[appendTo]="appendTo()"
|
|
3035
|
+
[class]="selectInnerCls()"
|
|
3036
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3037
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3038
|
+
[ngModel]="value()"
|
|
3039
|
+
(ngModelChange)="handleChange($event)"
|
|
3040
|
+
(onFocus)="handleFocus($event)"
|
|
3041
|
+
(onBlur)="handleBlur($event)"
|
|
3042
|
+
(onPanelShow)="panelShow.emit()"
|
|
3043
|
+
(onPanelHide)="panelHide.emit()"
|
|
3044
|
+
(onFilter)="filterChange.emit($event)"
|
|
3045
|
+
></p-multiselect>
|
|
3046
|
+
}
|
|
3047
|
+
} @else {
|
|
3048
|
+
<!-- ── Single Select ───────────────────────────────────────────────── -->
|
|
3049
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3050
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3051
|
+
<p-select
|
|
3052
|
+
[inputId]="selectId()"
|
|
3053
|
+
[options]="options()"
|
|
3054
|
+
[optionLabel]="optionLabel()"
|
|
3055
|
+
[optionValue]="optionValue()"
|
|
3056
|
+
[optionDisabled]="optionDisabled()"
|
|
3057
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3058
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3059
|
+
[group]="grouped()"
|
|
3060
|
+
[filter]="filterable()"
|
|
3061
|
+
[filterBy]="filterBy()"
|
|
3062
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3063
|
+
[showClear]="showClear()"
|
|
3064
|
+
[disabled]="effectiveDisabled()"
|
|
3065
|
+
[loading]="loading()"
|
|
3066
|
+
[virtualScroll]="virtualScroll()"
|
|
3067
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3068
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3069
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3070
|
+
[appendTo]="appendTo()"
|
|
3071
|
+
[class]="selectInnerCls()"
|
|
3072
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3073
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3074
|
+
[ngModel]="value()"
|
|
3075
|
+
(ngModelChange)="handleChange($event)"
|
|
3076
|
+
(onFocus)="handleFocus($any($event))"
|
|
3077
|
+
(onBlur)="handleBlur($any($event))"
|
|
3078
|
+
(onShow)="panelShow.emit()"
|
|
3079
|
+
(onHide)="panelHide.emit()"
|
|
3080
|
+
(onFilter)="filterChange.emit($event)"
|
|
3081
|
+
/>
|
|
3082
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3083
|
+
</p-floatlabel>
|
|
3084
|
+
} @else {
|
|
3085
|
+
<p-select
|
|
3086
|
+
[inputId]="selectId()"
|
|
3087
|
+
[options]="options()"
|
|
3088
|
+
[optionLabel]="optionLabel()"
|
|
3089
|
+
[optionValue]="optionValue()"
|
|
3090
|
+
[optionDisabled]="optionDisabled()"
|
|
3091
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3092
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3093
|
+
[group]="grouped()"
|
|
3094
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3095
|
+
[filter]="filterable()"
|
|
3096
|
+
[filterBy]="filterBy()"
|
|
3097
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3098
|
+
[showClear]="showClear()"
|
|
3099
|
+
[disabled]="effectiveDisabled()"
|
|
3100
|
+
[loading]="loading()"
|
|
3101
|
+
[virtualScroll]="virtualScroll()"
|
|
3102
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3103
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3104
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3105
|
+
[appendTo]="appendTo()"
|
|
3106
|
+
[class]="selectInnerCls()"
|
|
3107
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3108
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3109
|
+
[ngModel]="value()"
|
|
3110
|
+
(ngModelChange)="handleChange($event)"
|
|
3111
|
+
(onFocus)="handleFocus($any($event))"
|
|
3112
|
+
(onBlur)="handleBlur($any($event))"
|
|
3113
|
+
(onShow)="panelShow.emit()"
|
|
3114
|
+
(onHide)="panelHide.emit()"
|
|
3115
|
+
(onFilter)="filterChange.emit($event)"
|
|
3116
|
+
/>
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
`, 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
3120
|
}
|
|
3113
3121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
|
|
3114
3122
|
type: Component,
|
|
@@ -3120,157 +3128,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3120
3128
|
], host: {
|
|
3121
3129
|
'[class]': 'hostCls()',
|
|
3122
3130
|
'[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"] }]
|
|
3131
|
+
}, template: `
|
|
3132
|
+
@if (mode() === 'view') {
|
|
3133
|
+
<span class="asc-select-view">{{ resolvedViewText() }}</span>
|
|
3134
|
+
} @else if (multi()) {
|
|
3135
|
+
<!-- ── Multi Select ───────────────────────────────────────────────── -->
|
|
3136
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3137
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3138
|
+
<p-multiselect
|
|
3139
|
+
[inputId]="selectId()"
|
|
3140
|
+
[options]="options()"
|
|
3141
|
+
[optionLabel]="optionLabel()"
|
|
3142
|
+
[optionValue]="optionValue()"
|
|
3143
|
+
[optionDisabled]="optionDisabled()"
|
|
3144
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3145
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3146
|
+
[group]="grouped()"
|
|
3147
|
+
[filter]="filterable()"
|
|
3148
|
+
[filterBy]="filterBy()"
|
|
3149
|
+
[showClear]="showClear()"
|
|
3150
|
+
[display]="display()"
|
|
3151
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3152
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3153
|
+
[disabled]="effectiveDisabled()"
|
|
3154
|
+
[loading]="loading()"
|
|
3155
|
+
[virtualScroll]="virtualScroll()"
|
|
3156
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3157
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3158
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3159
|
+
[appendTo]="appendTo()"
|
|
3160
|
+
[class]="selectInnerCls()"
|
|
3161
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3162
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3163
|
+
[ngModel]="value()"
|
|
3164
|
+
(ngModelChange)="handleChange($event)"
|
|
3165
|
+
(onFocus)="handleFocus($event)"
|
|
3166
|
+
(onBlur)="handleBlur($event)"
|
|
3167
|
+
(onPanelShow)="panelShow.emit()"
|
|
3168
|
+
(onPanelHide)="panelHide.emit()"
|
|
3169
|
+
(onFilter)="filterChange.emit($event)"
|
|
3170
|
+
></p-multiselect>
|
|
3171
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3172
|
+
</p-floatlabel>
|
|
3173
|
+
} @else {
|
|
3174
|
+
<p-multiselect
|
|
3175
|
+
[inputId]="selectId()"
|
|
3176
|
+
[options]="options()"
|
|
3177
|
+
[optionLabel]="optionLabel()"
|
|
3178
|
+
[optionValue]="optionValue()"
|
|
3179
|
+
[optionDisabled]="optionDisabled()"
|
|
3180
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3181
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3182
|
+
[group]="grouped()"
|
|
3183
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3184
|
+
[filter]="filterable()"
|
|
3185
|
+
[filterBy]="filterBy()"
|
|
3186
|
+
[showClear]="showClear()"
|
|
3187
|
+
[display]="display()"
|
|
3188
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3189
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3190
|
+
[disabled]="effectiveDisabled()"
|
|
3191
|
+
[loading]="loading()"
|
|
3192
|
+
[virtualScroll]="virtualScroll()"
|
|
3193
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3194
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3195
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3196
|
+
[appendTo]="appendTo()"
|
|
3197
|
+
[class]="selectInnerCls()"
|
|
3198
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3199
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3200
|
+
[ngModel]="value()"
|
|
3201
|
+
(ngModelChange)="handleChange($event)"
|
|
3202
|
+
(onFocus)="handleFocus($event)"
|
|
3203
|
+
(onBlur)="handleBlur($event)"
|
|
3204
|
+
(onPanelShow)="panelShow.emit()"
|
|
3205
|
+
(onPanelHide)="panelHide.emit()"
|
|
3206
|
+
(onFilter)="filterChange.emit($event)"
|
|
3207
|
+
></p-multiselect>
|
|
3208
|
+
}
|
|
3209
|
+
} @else {
|
|
3210
|
+
<!-- ── Single Select ───────────────────────────────────────────────── -->
|
|
3211
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3212
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3213
|
+
<p-select
|
|
3214
|
+
[inputId]="selectId()"
|
|
3215
|
+
[options]="options()"
|
|
3216
|
+
[optionLabel]="optionLabel()"
|
|
3217
|
+
[optionValue]="optionValue()"
|
|
3218
|
+
[optionDisabled]="optionDisabled()"
|
|
3219
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3220
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3221
|
+
[group]="grouped()"
|
|
3222
|
+
[filter]="filterable()"
|
|
3223
|
+
[filterBy]="filterBy()"
|
|
3224
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3225
|
+
[showClear]="showClear()"
|
|
3226
|
+
[disabled]="effectiveDisabled()"
|
|
3227
|
+
[loading]="loading()"
|
|
3228
|
+
[virtualScroll]="virtualScroll()"
|
|
3229
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3230
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3231
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3232
|
+
[appendTo]="appendTo()"
|
|
3233
|
+
[class]="selectInnerCls()"
|
|
3234
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3235
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3236
|
+
[ngModel]="value()"
|
|
3237
|
+
(ngModelChange)="handleChange($event)"
|
|
3238
|
+
(onFocus)="handleFocus($any($event))"
|
|
3239
|
+
(onBlur)="handleBlur($any($event))"
|
|
3240
|
+
(onShow)="panelShow.emit()"
|
|
3241
|
+
(onHide)="panelHide.emit()"
|
|
3242
|
+
(onFilter)="filterChange.emit($event)"
|
|
3243
|
+
/>
|
|
3244
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3245
|
+
</p-floatlabel>
|
|
3246
|
+
} @else {
|
|
3247
|
+
<p-select
|
|
3248
|
+
[inputId]="selectId()"
|
|
3249
|
+
[options]="options()"
|
|
3250
|
+
[optionLabel]="optionLabel()"
|
|
3251
|
+
[optionValue]="optionValue()"
|
|
3252
|
+
[optionDisabled]="optionDisabled()"
|
|
3253
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3254
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3255
|
+
[group]="grouped()"
|
|
3256
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3257
|
+
[filter]="filterable()"
|
|
3258
|
+
[filterBy]="filterBy()"
|
|
3259
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3260
|
+
[showClear]="showClear()"
|
|
3261
|
+
[disabled]="effectiveDisabled()"
|
|
3262
|
+
[loading]="loading()"
|
|
3263
|
+
[virtualScroll]="virtualScroll()"
|
|
3264
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3265
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3266
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3267
|
+
[appendTo]="appendTo()"
|
|
3268
|
+
[class]="selectInnerCls()"
|
|
3269
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3270
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3271
|
+
[ngModel]="value()"
|
|
3272
|
+
(ngModelChange)="handleChange($event)"
|
|
3273
|
+
(onFocus)="handleFocus($any($event))"
|
|
3274
|
+
(onBlur)="handleBlur($any($event))"
|
|
3275
|
+
(onShow)="panelShow.emit()"
|
|
3276
|
+
(onHide)="panelHide.emit()"
|
|
3277
|
+
(onFilter)="filterChange.emit($event)"
|
|
3278
|
+
/>
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3281
|
+
`, 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
3282
|
}], 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
3283
|
|
|
3276
3284
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -7207,16 +7215,6 @@ class AscDialogComponent {
|
|
|
7207
7215
|
...(ngDevMode ? [{ debugName: "resolvedConfirmLabel" }] : /* istanbul ignore next */ []));
|
|
7208
7216
|
this.resolvedCancelLabel = computed(() => this.cancelLabel() || this.msg.dialog.cancel, /* @ts-ignore */
|
|
7209
7217
|
...(ngDevMode ? [{ debugName: "resolvedCancelLabel" }] : /* istanbul ignore next */ []));
|
|
7210
|
-
/** Map AscSeverity → PrimeNG Button severity */
|
|
7211
|
-
this.pConfirmSeverity = computed(() => {
|
|
7212
|
-
const s = this.confirmSeverity();
|
|
7213
|
-
if (s === 'warn')
|
|
7214
|
-
return 'warn';
|
|
7215
|
-
if (s === 'primary')
|
|
7216
|
-
return undefined; // PrimeNG default = primary
|
|
7217
|
-
return s;
|
|
7218
|
-
}, /* @ts-ignore */
|
|
7219
|
-
...(ngDevMode ? [{ debugName: "pConfirmSeverity" }] : /* istanbul ignore next */ []));
|
|
7220
7218
|
this.dialogStyleClass = computed(() => ascCls('asc-dialog', this.styleClass()), /* @ts-ignore */
|
|
7221
7219
|
...(ngDevMode ? [{ debugName: "dialogStyleClass" }] : /* istanbul ignore next */ []));
|
|
7222
7220
|
}
|
|
@@ -7236,15 +7234,15 @@ class AscDialogComponent {
|
|
|
7236
7234
|
this.showed.emit();
|
|
7237
7235
|
}
|
|
7238
7236
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7239
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscDialogComponent, isStandalone: true, selector: "asc-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, headerIcon: { classPropertyName: "headerIcon", publicName: "headerIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, confirmSeverity: { classPropertyName: "confirmSeverity", publicName: "confirmSeverity", isSignal: true, isRequired: false, transformFunction: null }, confirmIcon: { classPropertyName: "confirmIcon", publicName: "confirmIcon", isSignal: true, isRequired: false, transformFunction: null }, confirmLoading: { classPropertyName: "confirmLoading", publicName: "confirmLoading", isSignal: true, isRequired: false, transformFunction: null }, confirmDisabled: { classPropertyName: "confirmDisabled", publicName: "confirmDisabled", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", confirmed: "confirmed", cancelled: "cancelled", showed: "showed", hidden: "hidden" }, queries: [{ propertyName: "headerTpl", first: true, predicate: AscDialogHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerTpl", first: true, predicate: AscDialogFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- @file asc-dialog.html -->\n<p-dialog\n [(visible)]=\"visible\"\n [modal]=\"modal()\"\n [closable]=\"closable()\"\n [closeOnEscape]=\"closeOnEscape()\"\n [dismissableMask]=\"dismissableMask()\"\n [maximizable]=\"maximizable()\"\n [draggable]=\"draggable()\"\n [resizable]=\"resizable()\"\n [position]=\"position()\"\n [style]=\"{ width: dialogWidth() }\"\n [
|
|
7237
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscDialogComponent, isStandalone: true, selector: "asc-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, headerIcon: { classPropertyName: "headerIcon", publicName: "headerIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, confirmSeverity: { classPropertyName: "confirmSeverity", publicName: "confirmSeverity", isSignal: true, isRequired: false, transformFunction: null }, confirmIcon: { classPropertyName: "confirmIcon", publicName: "confirmIcon", isSignal: true, isRequired: false, transformFunction: null }, confirmLoading: { classPropertyName: "confirmLoading", publicName: "confirmLoading", isSignal: true, isRequired: false, transformFunction: null }, confirmDisabled: { classPropertyName: "confirmDisabled", publicName: "confirmDisabled", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", confirmed: "confirmed", cancelled: "cancelled", showed: "showed", hidden: "hidden" }, queries: [{ propertyName: "headerTpl", first: true, predicate: AscDialogHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerTpl", first: true, predicate: AscDialogFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- @file asc-dialog.html -->\n<p-dialog\n [(visible)]=\"visible\"\n [modal]=\"modal()\"\n [closable]=\"closable()\"\n [closeOnEscape]=\"closeOnEscape()\"\n [dismissableMask]=\"dismissableMask()\"\n [maximizable]=\"maximizable()\"\n [draggable]=\"draggable()\"\n [resizable]=\"resizable()\"\n [position]=\"position()\"\n [style]=\"{ width: dialogWidth() }\"\n [styleClass]=\"dialogStyleClass()\"\n [contentStyleClass]=\"'asc-dialog-content'\"\n (onShow)=\"onShow()\"\n (onHide)=\"onHide()\"\n>\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #header>\n @if (headerTpl()) {\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\n } @else {\n <div class=\"asc-dialog-header-default\">\n @if (headerIcon()) {\n <i [class]=\"headerIcon() + ' asc-dialog-header-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"asc-dialog-title\">{{ headerLabel() }}</span>\n </div>\n }\n </ng-template>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-content />\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #footer>\n @if (footerTpl()) {\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\n } @else if (showFooter()) {\n <div class=\"asc-dialog-footer-default\">\n <!-- H\u1EE7y: Outline thu\u1EA7n (kh\u00F4ng secondary) \u2014 Figma Button/Outline -->\n <asc-button\n [label]=\"resolvedCancelLabel()\"\n variant=\"outlined\"\n [disabled]=\"confirmLoading()\"\n (clicked)=\"onCancel()\"\n />\n <asc-button\n [label]=\"resolvedConfirmLabel()\"\n [severity]=\"confirmSeverity()\"\n [icon]=\"confirmIcon()\"\n [loading]=\"confirmLoading()\"\n [disabled]=\"confirmDisabled()\"\n (clicked)=\"onConfirm()\"\n />\n </div>\n }\n </ng-template>\n</p-dialog>\n", styles: [":host{display:contents}::ng-deep .asc-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}.asc-dialog-header-default{display:flex;align-items:center;gap:.625rem}.asc-dialog-header-icon{font-size:1.125rem;color:var(--p-primary-500)}.asc-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}.asc-dialog-footer-default{display:flex;align-items:center;justify-content:flex-end;gap:.625rem}\n"], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i1$3.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: AscButtonComponent, selector: "asc-button", inputs: ["label", "icon", "iconPos", "severity", "variant", "size", "loading", "disabled", "raised", "fullWidth", "type", "tooltip", "tooltipPos", "ariaLabel", "styleClass", "rounded"], outputs: ["clicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7240
7238
|
}
|
|
7241
7239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDialogComponent, decorators: [{
|
|
7242
7240
|
type: Component,
|
|
7243
7241
|
args: [{ selector: 'asc-dialog', standalone: true, imports: [
|
|
7244
7242
|
DialogModule,
|
|
7245
|
-
|
|
7243
|
+
AscButtonComponent,
|
|
7246
7244
|
NgTemplateOutlet,
|
|
7247
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- @file asc-dialog.html -->\n<p-dialog\n [(visible)]=\"visible\"\n [modal]=\"modal()\"\n [closable]=\"closable()\"\n [closeOnEscape]=\"closeOnEscape()\"\n [dismissableMask]=\"dismissableMask()\"\n [maximizable]=\"maximizable()\"\n [draggable]=\"draggable()\"\n [resizable]=\"resizable()\"\n [position]=\"position()\"\n [style]=\"{ width: dialogWidth() }\"\n [
|
|
7245
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- @file asc-dialog.html -->\n<p-dialog\n [(visible)]=\"visible\"\n [modal]=\"modal()\"\n [closable]=\"closable()\"\n [closeOnEscape]=\"closeOnEscape()\"\n [dismissableMask]=\"dismissableMask()\"\n [maximizable]=\"maximizable()\"\n [draggable]=\"draggable()\"\n [resizable]=\"resizable()\"\n [position]=\"position()\"\n [style]=\"{ width: dialogWidth() }\"\n [styleClass]=\"dialogStyleClass()\"\n [contentStyleClass]=\"'asc-dialog-content'\"\n (onShow)=\"onShow()\"\n (onHide)=\"onHide()\"\n>\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #header>\n @if (headerTpl()) {\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\n } @else {\n <div class=\"asc-dialog-header-default\">\n @if (headerIcon()) {\n <i [class]=\"headerIcon() + ' asc-dialog-header-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"asc-dialog-title\">{{ headerLabel() }}</span>\n </div>\n }\n </ng-template>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-content />\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #footer>\n @if (footerTpl()) {\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\n } @else if (showFooter()) {\n <div class=\"asc-dialog-footer-default\">\n <!-- H\u1EE7y: Outline thu\u1EA7n (kh\u00F4ng secondary) \u2014 Figma Button/Outline -->\n <asc-button\n [label]=\"resolvedCancelLabel()\"\n variant=\"outlined\"\n [disabled]=\"confirmLoading()\"\n (clicked)=\"onCancel()\"\n />\n <asc-button\n [label]=\"resolvedConfirmLabel()\"\n [severity]=\"confirmSeverity()\"\n [icon]=\"confirmIcon()\"\n [loading]=\"confirmLoading()\"\n [disabled]=\"confirmDisabled()\"\n (clicked)=\"onConfirm()\"\n />\n </div>\n }\n </ng-template>\n</p-dialog>\n", styles: [":host{display:contents}::ng-deep .asc-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}.asc-dialog-header-default{display:flex;align-items:center;gap:.625rem}.asc-dialog-header-icon{font-size:1.125rem;color:var(--p-primary-500)}.asc-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}.asc-dialog-footer-default{display:flex;align-items:center;justify-content:flex-end;gap:.625rem}\n"] }]
|
|
7248
7246
|
}], propDecorators: { headerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscDialogHeaderDirective), { isSignal: true }] }], footerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscDialogFooterDirective), { isSignal: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], headerIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerIcon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], maximizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizable", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFooter", required: false }] }], confirmLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmLabel", required: false }] }], confirmSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmSeverity", required: false }] }], confirmIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmIcon", required: false }] }], confirmLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmLoading", required: false }] }], confirmDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmDisabled", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], cancelled: [{ type: i0.Output, args: ["cancelled"] }], showed: [{ type: i0.Output, args: ["showed"] }], hidden: [{ type: i0.Output, args: ["hidden"] }] } });
|
|
7249
7247
|
|
|
7250
7248
|
/**
|
|
@@ -7281,20 +7279,20 @@ class AscConfirmPopup {
|
|
|
7281
7279
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: AscConfirmPopup, isStandalone: true, selector: "asc-confirm-popup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
7282
7280
|
<p-confirmpopup
|
|
7283
7281
|
[key]="key() ?? DEFAULT_POPUP_KEY"
|
|
7284
|
-
|
|
7282
|
+
styleClass="asc-confirm-popup"
|
|
7285
7283
|
[style]="{ 'max-width': maxWidth() }"
|
|
7286
7284
|
/>
|
|
7287
|
-
`, isInline: true, styles: [":host{display:contents}::ng-deep .asc-confirm-popup .p-confirmpopup-content{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem}::ng-deep .asc-confirm-popup .p-confirmpopup-icon{font-size:1.125rem;margin-top:.125rem;flex-shrink:0}::ng-deep .asc-confirm-popup .p-confirmpopup-message{font-size:.875rem;line-height:1.5}::ng-deep .asc-confirm-popup .p-confirmpopup-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:0 1rem .875rem}\n"], dependencies: [{ kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i1$4.ConfirmPopup, selector: "p-confirmpopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible", "motionOptions", "appendTo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7285
|
+
`, isInline: true, styles: [":host{display:contents}::ng-deep .asc-confirm-popup .p-confirmpopup-content{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem}::ng-deep .asc-confirm-popup .p-confirmpopup-icon{font-size:1.125rem;margin-top:.125rem;flex-shrink:0}::ng-deep .asc-confirm-popup .p-confirmpopup-message{font-size:.875rem;line-height:1.5}::ng-deep .asc-confirm-popup .p-confirmpopup-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:0 1rem .875rem}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-button{min-width:64px;height:var(--asc-h-sm);padding:6px 16px;border-radius:999px;font-size:12px;font-weight:400;line-height:16px}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-button .p-button-label{font-weight:400}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .asc-confirm-accept--primary{color:var(--asc-button-solid-text, #FCFCFC)}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-confirmpopup-reject-button{background:transparent;border-width:1.5px;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-confirmpopup-reject-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5);border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-confirmpopup-reject-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}\n"], dependencies: [{ kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i1$4.ConfirmPopup, selector: "p-confirmpopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible", "motionOptions", "appendTo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7288
7286
|
}
|
|
7289
7287
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscConfirmPopup, decorators: [{
|
|
7290
7288
|
type: Component,
|
|
7291
7289
|
args: [{ selector: 'asc-confirm-popup', standalone: true, imports: [ConfirmPopupModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
7292
7290
|
<p-confirmpopup
|
|
7293
7291
|
[key]="key() ?? DEFAULT_POPUP_KEY"
|
|
7294
|
-
|
|
7292
|
+
styleClass="asc-confirm-popup"
|
|
7295
7293
|
[style]="{ 'max-width': maxWidth() }"
|
|
7296
7294
|
/>
|
|
7297
|
-
`, styles: [":host{display:contents}::ng-deep .asc-confirm-popup .p-confirmpopup-content{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem}::ng-deep .asc-confirm-popup .p-confirmpopup-icon{font-size:1.125rem;margin-top:.125rem;flex-shrink:0}::ng-deep .asc-confirm-popup .p-confirmpopup-message{font-size:.875rem;line-height:1.5}::ng-deep .asc-confirm-popup .p-confirmpopup-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:0 1rem .875rem}\n"] }]
|
|
7295
|
+
`, styles: [":host{display:contents}::ng-deep .asc-confirm-popup .p-confirmpopup-content{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem}::ng-deep .asc-confirm-popup .p-confirmpopup-icon{font-size:1.125rem;margin-top:.125rem;flex-shrink:0}::ng-deep .asc-confirm-popup .p-confirmpopup-message{font-size:.875rem;line-height:1.5}::ng-deep .asc-confirm-popup .p-confirmpopup-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:0 1rem .875rem}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-button{min-width:64px;height:var(--asc-h-sm);padding:6px 16px;border-radius:999px;font-size:12px;font-weight:400;line-height:16px}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-button .p-button-label{font-weight:400}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .asc-confirm-accept--primary{color:var(--asc-button-solid-text, #FCFCFC)}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-confirmpopup-reject-button{background:transparent;border-width:1.5px;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-confirmpopup-reject-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5);border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-popup .p-confirmpopup-footer .p-confirmpopup-reject-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}\n"] }]
|
|
7298
7296
|
}], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }] } });
|
|
7299
7297
|
|
|
7300
7298
|
/**
|
|
@@ -7721,8 +7719,10 @@ class AscConfirmService {
|
|
|
7721
7719
|
acceptButtonProps: {
|
|
7722
7720
|
severity: this.mapSeverity(acceptSeverity),
|
|
7723
7721
|
},
|
|
7722
|
+
// Hook CSS cho chữ nút solid primary (asc-confirm-dialog.scss) — như asc-button
|
|
7723
|
+
acceptButtonStyleClass: acceptSeverity === 'primary' ? 'asc-confirm-accept--primary' : undefined,
|
|
7724
|
+
// Hủy: Outline thuần (không secondary) — giống nút Hủy của AscDialog
|
|
7724
7725
|
rejectButtonProps: {
|
|
7725
|
-
severity: 'secondary',
|
|
7726
7726
|
outlined: true,
|
|
7727
7727
|
},
|
|
7728
7728
|
defaultFocus: opts.defaultFocus ?? 'accept',
|
|
@@ -7814,8 +7814,9 @@ class AscConfirmService {
|
|
|
7814
7814
|
acceptButtonProps: {
|
|
7815
7815
|
severity: this.mapSeverity(opts.acceptSeverity ?? 'primary'),
|
|
7816
7816
|
},
|
|
7817
|
+
acceptButtonStyleClass: (opts.acceptSeverity ?? 'primary') === 'primary' ? 'asc-confirm-accept--primary' : undefined,
|
|
7818
|
+
// Hủy: Outline thuần (không secondary) — giống AscDialog / AscConfirmDialog
|
|
7817
7819
|
rejectButtonProps: {
|
|
7818
|
-
severity: 'secondary',
|
|
7819
7820
|
outlined: true,
|
|
7820
7821
|
},
|
|
7821
7822
|
key: opts.key ?? DEFAULT_POPUP_KEY,
|
|
@@ -7976,22 +7977,22 @@ class AscConfirmDialog {
|
|
|
7976
7977
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: AscConfirmDialog, isStandalone: true, selector: "asc-confirm-dialog", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
7977
7978
|
<p-confirm-dialog
|
|
7978
7979
|
[key]="key() ?? undefined"
|
|
7979
|
-
|
|
7980
|
+
styleClass="asc-confirm-dialog"
|
|
7980
7981
|
[maskStyleClass]="'asc-confirm-mask'"
|
|
7981
7982
|
[style]="{ 'max-width': maxWidth() }"
|
|
7982
7983
|
></p-confirm-dialog>
|
|
7983
|
-
`, isInline: true, styles: [":host{display:contents}::ng-deep .asc-confirm-dialog .p-dialog-header{padding:
|
|
7984
|
+
`, isInline: true, styles: [":host{display:contents}::ng-deep .asc-confirm-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-confirm-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-confirm-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-confirm-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-confirm-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-confirm-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-confirm-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-confirm-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}::ng-deep .asc-confirm-dialog.p-dialog .p-dialog-content{display:flex;align-items:center;gap:.875rem}::ng-deep .asc-confirm-dialog .p-dialog-content .p-confirmdialog-icon{font-size:1.5rem;margin-top:.125rem;flex-shrink:0}::ng-deep .asc-confirm-dialog .p-dialog-content .p-confirmdialog-message{font-size:14px;line-height:20px;color:var(--asc-text-primary);word-break:break-word}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-button{min-width:80px;height:var(--asc-h-md);padding:8px 16px;border-radius:999px;font-size:14px;font-weight:400;line-height:20px}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-button .p-button-label{font-weight:400}::ng-deep .asc-confirm-dialog .p-dialog-footer .asc-confirm-accept--primary{color:var(--asc-button-solid-text, #FCFCFC)}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-confirmdialog-reject-button{background:transparent;border-width:1.5px;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-confirmdialog-reject-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5);border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-confirmdialog-reject-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}\n"], dependencies: [{ kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i1$7.ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "modal", "visible", "position", "draggable"], outputs: ["onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7984
7985
|
}
|
|
7985
7986
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscConfirmDialog, decorators: [{
|
|
7986
7987
|
type: Component,
|
|
7987
7988
|
args: [{ selector: 'asc-confirm-dialog', standalone: true, imports: [ConfirmDialogModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
7988
7989
|
<p-confirm-dialog
|
|
7989
7990
|
[key]="key() ?? undefined"
|
|
7990
|
-
|
|
7991
|
+
styleClass="asc-confirm-dialog"
|
|
7991
7992
|
[maskStyleClass]="'asc-confirm-mask'"
|
|
7992
7993
|
[style]="{ 'max-width': maxWidth() }"
|
|
7993
7994
|
></p-confirm-dialog>
|
|
7994
|
-
`, styles: [":host{display:contents}::ng-deep .asc-confirm-dialog .p-dialog-header{padding:
|
|
7995
|
+
`, styles: [":host{display:contents}::ng-deep .asc-confirm-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-confirm-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-confirm-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-confirm-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-confirm-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-confirm-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-confirm-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-confirm-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}::ng-deep .asc-confirm-dialog.p-dialog .p-dialog-content{display:flex;align-items:center;gap:.875rem}::ng-deep .asc-confirm-dialog .p-dialog-content .p-confirmdialog-icon{font-size:1.5rem;margin-top:.125rem;flex-shrink:0}::ng-deep .asc-confirm-dialog .p-dialog-content .p-confirmdialog-message{font-size:14px;line-height:20px;color:var(--asc-text-primary);word-break:break-word}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-button{min-width:80px;height:var(--asc-h-md);padding:8px 16px;border-radius:999px;font-size:14px;font-weight:400;line-height:20px}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-button .p-button-label{font-weight:400}::ng-deep .asc-confirm-dialog .p-dialog-footer .asc-confirm-accept--primary{color:var(--asc-button-solid-text, #FCFCFC)}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-confirmdialog-reject-button{background:transparent;border-width:1.5px;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-confirmdialog-reject-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5);border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}::ng-deep .asc-confirm-dialog .p-dialog-footer .p-confirmdialog-reject-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}\n"] }]
|
|
7995
7996
|
}], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }] } });
|
|
7996
7997
|
|
|
7997
7998
|
/**
|
|
@@ -10192,6 +10193,12 @@ class AscLayout {
|
|
|
10192
10193
|
...(ngDevMode ? [undefined, { debugName: "dropdownTpl" }] : /* istanbul ignore next */ []));
|
|
10193
10194
|
this.footerSidebarTpl = input(/* @ts-ignore */
|
|
10194
10195
|
...(ngDevMode ? [undefined, { debugName: "footerSidebarTpl" }] : /* istanbul ignore next */ []));
|
|
10196
|
+
/** Render footer — không truyền thì fallback về config.layout.showFooter → true. `false` → không có trong DOM. */
|
|
10197
|
+
this.showFooter = input(undefined, /* @ts-ignore */
|
|
10198
|
+
...(ngDevMode ? [{ debugName: "showFooter" }] : /* istanbul ignore next */ []));
|
|
10199
|
+
this.config = inject(ASC_UI_CONFIG, { optional: true }) ?? ASC_UI_DEFAULT_CONFIG;
|
|
10200
|
+
this.resolvedShowFooter = computed(() => this.showFooter() ?? this.config.layout?.showFooter ?? true, /* @ts-ignore */
|
|
10201
|
+
...(ngDevMode ? [{ debugName: "resolvedShowFooter" }] : /* istanbul ignore next */ []));
|
|
10195
10202
|
this.menuOutsideClickListener = null;
|
|
10196
10203
|
this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
|
|
10197
10204
|
if (!this.menuOutsideClickListener) {
|
|
@@ -10266,25 +10273,27 @@ class AscLayout {
|
|
|
10266
10273
|
}
|
|
10267
10274
|
}
|
|
10268
10275
|
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.
|
|
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
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10276
|
+
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: `
|
|
10277
|
+
<div class="layout-wrapper" [ngClass]="containerClass">
|
|
10278
|
+
<asc-topbar
|
|
10279
|
+
[iconToggle]="iconToggle()"
|
|
10280
|
+
[breadCrumb]="breadCrumb()"
|
|
10281
|
+
[topBarLogo]="topBarLogo()"
|
|
10282
|
+
[dropdownTpl]="dropdownTpl()"
|
|
10283
|
+
></asc-topbar>
|
|
10284
|
+
<asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
|
|
10285
|
+
<ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
|
|
10286
|
+
</asc-sidebar>
|
|
10287
|
+
<div class="layout-main-container">
|
|
10288
|
+
<div class="layout-main rounded-xl">
|
|
10289
|
+
<ng-content></ng-content>
|
|
10290
|
+
</div>
|
|
10291
|
+
@if (resolvedShowFooter()) {
|
|
10292
|
+
<asc-footer></asc-footer>
|
|
10293
|
+
}
|
|
10294
|
+
</div>
|
|
10295
|
+
<div class="layout-mask animate-fadein"></div>
|
|
10296
|
+
</div>
|
|
10288
10297
|
`, 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
10298
|
}
|
|
10290
10299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscLayout, decorators: [{
|
|
@@ -10294,28 +10303,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
10294
10303
|
standalone: true,
|
|
10295
10304
|
imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
|
|
10296
10305
|
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
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10306
|
+
template: `
|
|
10307
|
+
<div class="layout-wrapper" [ngClass]="containerClass">
|
|
10308
|
+
<asc-topbar
|
|
10309
|
+
[iconToggle]="iconToggle()"
|
|
10310
|
+
[breadCrumb]="breadCrumb()"
|
|
10311
|
+
[topBarLogo]="topBarLogo()"
|
|
10312
|
+
[dropdownTpl]="dropdownTpl()"
|
|
10313
|
+
></asc-topbar>
|
|
10314
|
+
<asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
|
|
10315
|
+
<ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
|
|
10316
|
+
</asc-sidebar>
|
|
10317
|
+
<div class="layout-main-container">
|
|
10318
|
+
<div class="layout-main rounded-xl">
|
|
10319
|
+
<ng-content></ng-content>
|
|
10320
|
+
</div>
|
|
10321
|
+
@if (resolvedShowFooter()) {
|
|
10322
|
+
<asc-footer></asc-footer>
|
|
10323
|
+
}
|
|
10324
|
+
</div>
|
|
10325
|
+
<div class="layout-mask animate-fadein"></div>
|
|
10326
|
+
</div>
|
|
10316
10327
|
`,
|
|
10317
10328
|
}]
|
|
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 }] }] } });
|
|
10329
|
+
}], 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
10330
|
|
|
10320
10331
|
class AscBreadcrumb {
|
|
10321
10332
|
constructor() {
|