@aseansc/ui 5.8.0 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -43
- package/fesm2022/aseansc-ui.mjs +632 -616
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_semantic.scss +262 -246
- package/tokens/layout/_main.scss +1 -0
- package/tokens/preset.css +11 -0
- package/types/aseansc-ui.d.ts +17 -1
package/fesm2022/aseansc-ui.mjs
CHANGED
|
@@ -3096,135 +3096,135 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
3096
3096
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3097
3097
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscInputComponent, isStandalone: true, selector: "asc-input", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, floatLabelVariant: { classPropertyName: "floatLabelVariant", publicName: "floatLabelVariant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", enterPressed: "enterPressed", focused: "focused", blurred: "blurred" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
3098
3098
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscInputComponent) },
|
|
3099
|
-
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3100
|
-
@if (mode() === 'view') {
|
|
3101
|
-
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
3102
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
3103
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3104
|
-
<p-iconfield [iconPosition]="iconPos()">
|
|
3105
|
-
@if (icon() && iconPos() === 'left') {
|
|
3106
|
-
@if (isSearchIcon()) {
|
|
3107
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3108
|
-
} @else {
|
|
3109
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
|
|
3113
|
-
<input
|
|
3114
|
-
#inputEl
|
|
3115
|
-
pInputText
|
|
3116
|
-
[id]="_inputId"
|
|
3117
|
-
[type]="type()"
|
|
3118
|
-
[disabled]="effectiveDisabled()"
|
|
3119
|
-
[readonly]="readonly()"
|
|
3120
|
-
[maxlength]="maxLength() ?? 524288"
|
|
3121
|
-
[autocomplete]="autocomplete()"
|
|
3122
|
-
[class]="inputCls()"
|
|
3123
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3124
|
-
[ngModel]="value()"
|
|
3125
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3126
|
-
(ngModelChange)="handleChange($event)"
|
|
3127
|
-
(focus)="handleFocus($event)"
|
|
3128
|
-
(blur)="handleBlur($event)"
|
|
3129
|
-
(keydown.enter)="enterPressed.emit($event)"
|
|
3130
|
-
/>
|
|
3131
|
-
|
|
3132
|
-
@if (showClearBtn()) {
|
|
3133
|
-
<p-inputicon
|
|
3134
|
-
class="pi pi-times asc-input-clear-btn"
|
|
3135
|
-
role="button"
|
|
3136
|
-
tabindex="0"
|
|
3137
|
-
[attr.aria-label]="msg.form.clear"
|
|
3138
|
-
(click)="clearValue()"
|
|
3139
|
-
(keydown.enter)="clearValue()"
|
|
3140
|
-
(keydown.space)="clearValue()"
|
|
3141
|
-
/>
|
|
3142
|
-
}
|
|
3143
|
-
@if (icon() && iconPos() === 'right') {
|
|
3144
|
-
@if (isSearchIcon()) {
|
|
3145
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3146
|
-
} @else {
|
|
3147
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3148
|
-
}
|
|
3149
|
-
}
|
|
3150
|
-
</p-iconfield>
|
|
3151
|
-
<label [for]="_inputId">{{ label() }}</label>
|
|
3152
|
-
</p-floatlabel>
|
|
3153
|
-
|
|
3154
|
-
@if (maxLength() && showCounter()) {
|
|
3155
|
-
<div
|
|
3156
|
-
class="asc-input-counter"
|
|
3157
|
-
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3158
|
-
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3159
|
-
aria-live="polite"
|
|
3160
|
-
aria-atomic="true"
|
|
3161
|
-
>
|
|
3162
|
-
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3163
|
-
</div>
|
|
3164
|
-
}
|
|
3165
|
-
} @else {
|
|
3166
|
-
<p-iconfield [iconPosition]="iconPos()">
|
|
3167
|
-
@if (icon() && iconPos() === 'left') {
|
|
3168
|
-
@if (isSearchIcon()) {
|
|
3169
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3170
|
-
} @else {
|
|
3171
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
<input
|
|
3176
|
-
#inputEl
|
|
3177
|
-
pInputText
|
|
3178
|
-
[id]="_inputId"
|
|
3179
|
-
[type]="type()"
|
|
3180
|
-
[placeholder]="placeholder()"
|
|
3181
|
-
[disabled]="effectiveDisabled()"
|
|
3182
|
-
[readonly]="readonly()"
|
|
3183
|
-
[maxlength]="maxLength() ?? 524288"
|
|
3184
|
-
[autocomplete]="autocomplete()"
|
|
3185
|
-
[class]="inputCls()"
|
|
3186
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3187
|
-
[ngModel]="value()"
|
|
3188
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3189
|
-
(ngModelChange)="handleChange($event)"
|
|
3190
|
-
(focus)="handleFocus($event)"
|
|
3191
|
-
(blur)="handleBlur($event)"
|
|
3192
|
-
(keydown.enter)="enterPressed.emit($event)"
|
|
3193
|
-
/>
|
|
3194
|
-
|
|
3195
|
-
@if (showClearBtn()) {
|
|
3196
|
-
<p-inputicon
|
|
3197
|
-
class="pi pi-times asc-input-clear-btn"
|
|
3198
|
-
role="button"
|
|
3199
|
-
tabindex="0"
|
|
3200
|
-
[attr.aria-label]="msg.form.clear"
|
|
3201
|
-
(click)="clearValue()"
|
|
3202
|
-
(keydown.enter)="clearValue()"
|
|
3203
|
-
(keydown.space)="clearValue()"
|
|
3204
|
-
/>
|
|
3205
|
-
}
|
|
3206
|
-
@if (icon() && iconPos() === 'right') {
|
|
3207
|
-
@if (isSearchIcon()) {
|
|
3208
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3209
|
-
} @else {
|
|
3210
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
|
-
</p-iconfield>
|
|
3214
|
-
|
|
3215
|
-
@if (maxLength() && showCounter()) {
|
|
3216
|
-
<div
|
|
3217
|
-
class="asc-input-counter"
|
|
3218
|
-
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3219
|
-
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3220
|
-
aria-live="polite"
|
|
3221
|
-
aria-atomic="true"
|
|
3222
|
-
>
|
|
3223
|
-
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3224
|
-
</div>
|
|
3225
|
-
}
|
|
3226
|
-
}
|
|
3227
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100%;--asc-input-icon-size: 20px;--asc-input-icon-inset: 12px;--asc-input-icon-gap: 8px}:host(.asc-input--xs){--asc-input-icon-size: 14px}:host(.asc-input--xl){--asc-input-icon-size: 24px}.p-inputicon{font-size:var(--asc-input-icon-size);width:var(--asc-input-icon-size);height:var(--asc-input-icon-size);margin-top:calc(var(--asc-input-icon-size) / -2);display:inline-flex;align-items:center;justify-content:center;color:var(--asc-input-icon-color, var(--asc-icon-primary, #0F0F0F))}.p-inputicon.asc-input-search-icon{color:var(--asc-input-icon-color, var(--asc-icon-secondary))}:host(.asc-input--disabled) .p-inputicon{color:var(--asc-icon-disabled)}::ng-deep p-iconfield,::ng-deep .p-iconfield{width:100%}::ng-deep p-floatlabel,::ng-deep .p-floatlabel{width:100%}::ng-deep .p-inputtext{width:100%;padding:10px 8px;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputtext{border-radius:12px}.asc-input-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-xs);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:
|
|
3099
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3100
|
+
@if (mode() === 'view') {
|
|
3101
|
+
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
3102
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
3103
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3104
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
3105
|
+
@if (icon() && iconPos() === 'left') {
|
|
3106
|
+
@if (isSearchIcon()) {
|
|
3107
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3108
|
+
} @else {
|
|
3109
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
<input
|
|
3114
|
+
#inputEl
|
|
3115
|
+
pInputText
|
|
3116
|
+
[id]="_inputId"
|
|
3117
|
+
[type]="type()"
|
|
3118
|
+
[disabled]="effectiveDisabled()"
|
|
3119
|
+
[readonly]="readonly()"
|
|
3120
|
+
[maxlength]="maxLength() ?? 524288"
|
|
3121
|
+
[autocomplete]="autocomplete()"
|
|
3122
|
+
[class]="inputCls()"
|
|
3123
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3124
|
+
[ngModel]="value()"
|
|
3125
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3126
|
+
(ngModelChange)="handleChange($event)"
|
|
3127
|
+
(focus)="handleFocus($event)"
|
|
3128
|
+
(blur)="handleBlur($event)"
|
|
3129
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
3130
|
+
/>
|
|
3131
|
+
|
|
3132
|
+
@if (showClearBtn()) {
|
|
3133
|
+
<p-inputicon
|
|
3134
|
+
class="pi pi-times asc-input-clear-btn"
|
|
3135
|
+
role="button"
|
|
3136
|
+
tabindex="0"
|
|
3137
|
+
[attr.aria-label]="msg.form.clear"
|
|
3138
|
+
(click)="clearValue()"
|
|
3139
|
+
(keydown.enter)="clearValue()"
|
|
3140
|
+
(keydown.space)="clearValue()"
|
|
3141
|
+
/>
|
|
3142
|
+
}
|
|
3143
|
+
@if (icon() && iconPos() === 'right') {
|
|
3144
|
+
@if (isSearchIcon()) {
|
|
3145
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3146
|
+
} @else {
|
|
3147
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
</p-iconfield>
|
|
3151
|
+
<label [for]="_inputId">{{ label() }}</label>
|
|
3152
|
+
</p-floatlabel>
|
|
3153
|
+
|
|
3154
|
+
@if (maxLength() && showCounter()) {
|
|
3155
|
+
<div
|
|
3156
|
+
class="asc-input-counter"
|
|
3157
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3158
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3159
|
+
aria-live="polite"
|
|
3160
|
+
aria-atomic="true"
|
|
3161
|
+
>
|
|
3162
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3163
|
+
</div>
|
|
3164
|
+
}
|
|
3165
|
+
} @else {
|
|
3166
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
3167
|
+
@if (icon() && iconPos() === 'left') {
|
|
3168
|
+
@if (isSearchIcon()) {
|
|
3169
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3170
|
+
} @else {
|
|
3171
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
<input
|
|
3176
|
+
#inputEl
|
|
3177
|
+
pInputText
|
|
3178
|
+
[id]="_inputId"
|
|
3179
|
+
[type]="type()"
|
|
3180
|
+
[placeholder]="placeholder()"
|
|
3181
|
+
[disabled]="effectiveDisabled()"
|
|
3182
|
+
[readonly]="readonly()"
|
|
3183
|
+
[maxlength]="maxLength() ?? 524288"
|
|
3184
|
+
[autocomplete]="autocomplete()"
|
|
3185
|
+
[class]="inputCls()"
|
|
3186
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3187
|
+
[ngModel]="value()"
|
|
3188
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3189
|
+
(ngModelChange)="handleChange($event)"
|
|
3190
|
+
(focus)="handleFocus($event)"
|
|
3191
|
+
(blur)="handleBlur($event)"
|
|
3192
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
3193
|
+
/>
|
|
3194
|
+
|
|
3195
|
+
@if (showClearBtn()) {
|
|
3196
|
+
<p-inputicon
|
|
3197
|
+
class="pi pi-times asc-input-clear-btn"
|
|
3198
|
+
role="button"
|
|
3199
|
+
tabindex="0"
|
|
3200
|
+
[attr.aria-label]="msg.form.clear"
|
|
3201
|
+
(click)="clearValue()"
|
|
3202
|
+
(keydown.enter)="clearValue()"
|
|
3203
|
+
(keydown.space)="clearValue()"
|
|
3204
|
+
/>
|
|
3205
|
+
}
|
|
3206
|
+
@if (icon() && iconPos() === 'right') {
|
|
3207
|
+
@if (isSearchIcon()) {
|
|
3208
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3209
|
+
} @else {
|
|
3210
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
</p-iconfield>
|
|
3214
|
+
|
|
3215
|
+
@if (maxLength() && showCounter()) {
|
|
3216
|
+
<div
|
|
3217
|
+
class="asc-input-counter"
|
|
3218
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3219
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3220
|
+
aria-live="polite"
|
|
3221
|
+
aria-atomic="true"
|
|
3222
|
+
>
|
|
3223
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3224
|
+
</div>
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100%;--asc-input-icon-size: 20px;--asc-input-icon-inset: 12px;--asc-input-icon-gap: 8px}:host(.asc-input--xs){--asc-input-icon-size: 14px}:host(.asc-input--xl){--asc-input-icon-size: 24px}.p-inputicon{font-size:var(--asc-input-icon-size);width:var(--asc-input-icon-size);height:var(--asc-input-icon-size);margin-top:calc(var(--asc-input-icon-size) / -2);display:inline-flex;align-items:center;justify-content:center;color:var(--asc-input-icon-color, var(--asc-icon-primary, #0F0F0F))}.p-inputicon.asc-input-search-icon{color:var(--asc-input-icon-color, var(--asc-icon-secondary))}:host(.asc-input--disabled) .p-inputicon{color:var(--asc-icon-disabled)}::ng-deep p-iconfield,::ng-deep .p-iconfield{width:100%}::ng-deep p-floatlabel,::ng-deep .p-floatlabel{width:100%}::ng-deep .p-inputtext{width:100%;padding:10px 8px;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputtext{border-radius:12px}:host(.asc-input--xs){--asc-input-font-size: var(--asc-control-font-size-xs);--asc-input-line-height: var(--asc-control-line-height-xs)}:host(.asc-input--sm){--asc-input-font-size: var(--asc-control-font-size-sm);--asc-input-line-height: var(--asc-control-line-height-sm)}:host(.asc-input--md){--asc-input-font-size: var(--asc-control-font-size-md);--asc-input-line-height: var(--asc-control-line-height-md)}:host(.asc-input--lg){--asc-input-font-size: var(--asc-control-font-size-lg);--asc-input-line-height: var(--asc-control-line-height-lg)}:host(.asc-input--xl){--asc-input-font-size: var(--asc-control-font-size-xl);--asc-input-line-height: var(--asc-control-line-height-xl)}.asc-input-view{font-size:var(--asc-input-font-size);line-height:var(--asc-input-line-height);width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-xs);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--sm:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-sm);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--md:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-md);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--lg:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-lg);padding-inline-start:var(--asc-input-pad-start, 10px);padding-inline-end:var(--asc-input-pad-end, 10px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--xl:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-xl);padding-inline-start:var(--asc-input-pad-start, 12px);padding-inline-end:var(--asc-input-pad-end, 12px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--xs) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--sm) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--md) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--lg) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--xl) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--icon-left){--asc-input-pad-start: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--icon-right){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--clear-with-icon){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + 2 * (var(--asc-input-icon-size) + var(--asc-input-icon-gap)))}:host(.asc-input--float.asc-input--icon-left) ::ng-deep .p-inputtext{padding-inline-start:var(--asc-input-pad-start)}:host(.asc-input--float.asc-input--icon-right) ::ng-deep .p-inputtext{padding-inline-end:var(--asc-input-pad-end)}:host(.asc-input--disabled) ::ng-deep .p-inputtext{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input--invalid) ::ng-deep .p-inputtext{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input--invalid) ::ng-deep .p-inputtext:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.p-inputicon.asc-input-clear-btn{cursor:pointer;font-size:calc(var(--asc-input-icon-size) / 2);color:var(--asc-input-clear-color, #FFFFFF);background:var(--asc-input-clear-bg, #DEDFE0);border-radius:50%;transition:background-color var(--asc-transition-fast)}.p-inputicon.asc-input-clear-btn:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}.p-inputicon.asc-input-clear-btn:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-input--clear-with-icon) .p-inputicon.asc-input-clear-btn{inset-inline-end:calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}.asc-input-counter{font-size:.6875rem;color:var(--asc-text-muted);text-align:right;transition:color var(--asc-transition-fast)}.asc-input-counter.asc-input-counter--near-limit{color:var(--asc-color-warning)}.asc-input-counter.asc-input-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3228
3228
|
}
|
|
3229
3229
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputComponent, decorators: [{
|
|
3230
3230
|
type: Component,
|
|
@@ -3232,135 +3232,135 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3232
3232
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscInputComponent) },
|
|
3233
3233
|
], host: {
|
|
3234
3234
|
'[class]': 'hostCls()',
|
|
3235
|
-
}, template: `
|
|
3236
|
-
@if (mode() === 'view') {
|
|
3237
|
-
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
3238
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
3239
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3240
|
-
<p-iconfield [iconPosition]="iconPos()">
|
|
3241
|
-
@if (icon() && iconPos() === 'left') {
|
|
3242
|
-
@if (isSearchIcon()) {
|
|
3243
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3244
|
-
} @else {
|
|
3245
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3246
|
-
}
|
|
3247
|
-
}
|
|
3248
|
-
|
|
3249
|
-
<input
|
|
3250
|
-
#inputEl
|
|
3251
|
-
pInputText
|
|
3252
|
-
[id]="_inputId"
|
|
3253
|
-
[type]="type()"
|
|
3254
|
-
[disabled]="effectiveDisabled()"
|
|
3255
|
-
[readonly]="readonly()"
|
|
3256
|
-
[maxlength]="maxLength() ?? 524288"
|
|
3257
|
-
[autocomplete]="autocomplete()"
|
|
3258
|
-
[class]="inputCls()"
|
|
3259
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3260
|
-
[ngModel]="value()"
|
|
3261
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3262
|
-
(ngModelChange)="handleChange($event)"
|
|
3263
|
-
(focus)="handleFocus($event)"
|
|
3264
|
-
(blur)="handleBlur($event)"
|
|
3265
|
-
(keydown.enter)="enterPressed.emit($event)"
|
|
3266
|
-
/>
|
|
3267
|
-
|
|
3268
|
-
@if (showClearBtn()) {
|
|
3269
|
-
<p-inputicon
|
|
3270
|
-
class="pi pi-times asc-input-clear-btn"
|
|
3271
|
-
role="button"
|
|
3272
|
-
tabindex="0"
|
|
3273
|
-
[attr.aria-label]="msg.form.clear"
|
|
3274
|
-
(click)="clearValue()"
|
|
3275
|
-
(keydown.enter)="clearValue()"
|
|
3276
|
-
(keydown.space)="clearValue()"
|
|
3277
|
-
/>
|
|
3278
|
-
}
|
|
3279
|
-
@if (icon() && iconPos() === 'right') {
|
|
3280
|
-
@if (isSearchIcon()) {
|
|
3281
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3282
|
-
} @else {
|
|
3283
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3284
|
-
}
|
|
3285
|
-
}
|
|
3286
|
-
</p-iconfield>
|
|
3287
|
-
<label [for]="_inputId">{{ label() }}</label>
|
|
3288
|
-
</p-floatlabel>
|
|
3289
|
-
|
|
3290
|
-
@if (maxLength() && showCounter()) {
|
|
3291
|
-
<div
|
|
3292
|
-
class="asc-input-counter"
|
|
3293
|
-
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3294
|
-
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3295
|
-
aria-live="polite"
|
|
3296
|
-
aria-atomic="true"
|
|
3297
|
-
>
|
|
3298
|
-
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3299
|
-
</div>
|
|
3300
|
-
}
|
|
3301
|
-
} @else {
|
|
3302
|
-
<p-iconfield [iconPosition]="iconPos()">
|
|
3303
|
-
@if (icon() && iconPos() === 'left') {
|
|
3304
|
-
@if (isSearchIcon()) {
|
|
3305
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3306
|
-
} @else {
|
|
3307
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3308
|
-
}
|
|
3309
|
-
}
|
|
3310
|
-
|
|
3311
|
-
<input
|
|
3312
|
-
#inputEl
|
|
3313
|
-
pInputText
|
|
3314
|
-
[id]="_inputId"
|
|
3315
|
-
[type]="type()"
|
|
3316
|
-
[placeholder]="placeholder()"
|
|
3317
|
-
[disabled]="effectiveDisabled()"
|
|
3318
|
-
[readonly]="readonly()"
|
|
3319
|
-
[maxlength]="maxLength() ?? 524288"
|
|
3320
|
-
[autocomplete]="autocomplete()"
|
|
3321
|
-
[class]="inputCls()"
|
|
3322
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3323
|
-
[ngModel]="value()"
|
|
3324
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3325
|
-
(ngModelChange)="handleChange($event)"
|
|
3326
|
-
(focus)="handleFocus($event)"
|
|
3327
|
-
(blur)="handleBlur($event)"
|
|
3328
|
-
(keydown.enter)="enterPressed.emit($event)"
|
|
3329
|
-
/>
|
|
3330
|
-
|
|
3331
|
-
@if (showClearBtn()) {
|
|
3332
|
-
<p-inputicon
|
|
3333
|
-
class="pi pi-times asc-input-clear-btn"
|
|
3334
|
-
role="button"
|
|
3335
|
-
tabindex="0"
|
|
3336
|
-
[attr.aria-label]="msg.form.clear"
|
|
3337
|
-
(click)="clearValue()"
|
|
3338
|
-
(keydown.enter)="clearValue()"
|
|
3339
|
-
(keydown.space)="clearValue()"
|
|
3340
|
-
/>
|
|
3341
|
-
}
|
|
3342
|
-
@if (icon() && iconPos() === 'right') {
|
|
3343
|
-
@if (isSearchIcon()) {
|
|
3344
|
-
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3345
|
-
} @else {
|
|
3346
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3347
|
-
}
|
|
3348
|
-
}
|
|
3349
|
-
</p-iconfield>
|
|
3350
|
-
|
|
3351
|
-
@if (maxLength() && showCounter()) {
|
|
3352
|
-
<div
|
|
3353
|
-
class="asc-input-counter"
|
|
3354
|
-
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3355
|
-
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3356
|
-
aria-live="polite"
|
|
3357
|
-
aria-atomic="true"
|
|
3358
|
-
>
|
|
3359
|
-
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3360
|
-
</div>
|
|
3361
|
-
}
|
|
3362
|
-
}
|
|
3363
|
-
`, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100%;--asc-input-icon-size: 20px;--asc-input-icon-inset: 12px;--asc-input-icon-gap: 8px}:host(.asc-input--xs){--asc-input-icon-size: 14px}:host(.asc-input--xl){--asc-input-icon-size: 24px}.p-inputicon{font-size:var(--asc-input-icon-size);width:var(--asc-input-icon-size);height:var(--asc-input-icon-size);margin-top:calc(var(--asc-input-icon-size) / -2);display:inline-flex;align-items:center;justify-content:center;color:var(--asc-input-icon-color, var(--asc-icon-primary, #0F0F0F))}.p-inputicon.asc-input-search-icon{color:var(--asc-input-icon-color, var(--asc-icon-secondary))}:host(.asc-input--disabled) .p-inputicon{color:var(--asc-icon-disabled)}::ng-deep p-iconfield,::ng-deep .p-iconfield{width:100%}::ng-deep p-floatlabel,::ng-deep .p-floatlabel{width:100%}::ng-deep .p-inputtext{width:100%;padding:10px 8px;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputtext{border-radius:12px}.asc-input-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-xs);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:
|
|
3235
|
+
}, template: `
|
|
3236
|
+
@if (mode() === 'view') {
|
|
3237
|
+
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
3238
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
3239
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3240
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
3241
|
+
@if (icon() && iconPos() === 'left') {
|
|
3242
|
+
@if (isSearchIcon()) {
|
|
3243
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3244
|
+
} @else {
|
|
3245
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
<input
|
|
3250
|
+
#inputEl
|
|
3251
|
+
pInputText
|
|
3252
|
+
[id]="_inputId"
|
|
3253
|
+
[type]="type()"
|
|
3254
|
+
[disabled]="effectiveDisabled()"
|
|
3255
|
+
[readonly]="readonly()"
|
|
3256
|
+
[maxlength]="maxLength() ?? 524288"
|
|
3257
|
+
[autocomplete]="autocomplete()"
|
|
3258
|
+
[class]="inputCls()"
|
|
3259
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3260
|
+
[ngModel]="value()"
|
|
3261
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3262
|
+
(ngModelChange)="handleChange($event)"
|
|
3263
|
+
(focus)="handleFocus($event)"
|
|
3264
|
+
(blur)="handleBlur($event)"
|
|
3265
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
3266
|
+
/>
|
|
3267
|
+
|
|
3268
|
+
@if (showClearBtn()) {
|
|
3269
|
+
<p-inputicon
|
|
3270
|
+
class="pi pi-times asc-input-clear-btn"
|
|
3271
|
+
role="button"
|
|
3272
|
+
tabindex="0"
|
|
3273
|
+
[attr.aria-label]="msg.form.clear"
|
|
3274
|
+
(click)="clearValue()"
|
|
3275
|
+
(keydown.enter)="clearValue()"
|
|
3276
|
+
(keydown.space)="clearValue()"
|
|
3277
|
+
/>
|
|
3278
|
+
}
|
|
3279
|
+
@if (icon() && iconPos() === 'right') {
|
|
3280
|
+
@if (isSearchIcon()) {
|
|
3281
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3282
|
+
} @else {
|
|
3283
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
</p-iconfield>
|
|
3287
|
+
<label [for]="_inputId">{{ label() }}</label>
|
|
3288
|
+
</p-floatlabel>
|
|
3289
|
+
|
|
3290
|
+
@if (maxLength() && showCounter()) {
|
|
3291
|
+
<div
|
|
3292
|
+
class="asc-input-counter"
|
|
3293
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3294
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3295
|
+
aria-live="polite"
|
|
3296
|
+
aria-atomic="true"
|
|
3297
|
+
>
|
|
3298
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3299
|
+
</div>
|
|
3300
|
+
}
|
|
3301
|
+
} @else {
|
|
3302
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
3303
|
+
@if (icon() && iconPos() === 'left') {
|
|
3304
|
+
@if (isSearchIcon()) {
|
|
3305
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3306
|
+
} @else {
|
|
3307
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
<input
|
|
3312
|
+
#inputEl
|
|
3313
|
+
pInputText
|
|
3314
|
+
[id]="_inputId"
|
|
3315
|
+
[type]="type()"
|
|
3316
|
+
[placeholder]="placeholder()"
|
|
3317
|
+
[disabled]="effectiveDisabled()"
|
|
3318
|
+
[readonly]="readonly()"
|
|
3319
|
+
[maxlength]="maxLength() ?? 524288"
|
|
3320
|
+
[autocomplete]="autocomplete()"
|
|
3321
|
+
[class]="inputCls()"
|
|
3322
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3323
|
+
[ngModel]="value()"
|
|
3324
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3325
|
+
(ngModelChange)="handleChange($event)"
|
|
3326
|
+
(focus)="handleFocus($event)"
|
|
3327
|
+
(blur)="handleBlur($event)"
|
|
3328
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
3329
|
+
/>
|
|
3330
|
+
|
|
3331
|
+
@if (showClearBtn()) {
|
|
3332
|
+
<p-inputicon
|
|
3333
|
+
class="pi pi-times asc-input-clear-btn"
|
|
3334
|
+
role="button"
|
|
3335
|
+
tabindex="0"
|
|
3336
|
+
[attr.aria-label]="msg.form.clear"
|
|
3337
|
+
(click)="clearValue()"
|
|
3338
|
+
(keydown.enter)="clearValue()"
|
|
3339
|
+
(keydown.space)="clearValue()"
|
|
3340
|
+
/>
|
|
3341
|
+
}
|
|
3342
|
+
@if (icon() && iconPos() === 'right') {
|
|
3343
|
+
@if (isSearchIcon()) {
|
|
3344
|
+
<p-inputicon class="asc-input-search-icon" aria-hidden="true"><asc-svg-icon name="search" size="1rem" /></p-inputicon>
|
|
3345
|
+
} @else {
|
|
3346
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
</p-iconfield>
|
|
3350
|
+
|
|
3351
|
+
@if (maxLength() && showCounter()) {
|
|
3352
|
+
<div
|
|
3353
|
+
class="asc-input-counter"
|
|
3354
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
3355
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
3356
|
+
aria-live="polite"
|
|
3357
|
+
aria-atomic="true"
|
|
3358
|
+
>
|
|
3359
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
3360
|
+
</div>
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
`, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100%;--asc-input-icon-size: 20px;--asc-input-icon-inset: 12px;--asc-input-icon-gap: 8px}:host(.asc-input--xs){--asc-input-icon-size: 14px}:host(.asc-input--xl){--asc-input-icon-size: 24px}.p-inputicon{font-size:var(--asc-input-icon-size);width:var(--asc-input-icon-size);height:var(--asc-input-icon-size);margin-top:calc(var(--asc-input-icon-size) / -2);display:inline-flex;align-items:center;justify-content:center;color:var(--asc-input-icon-color, var(--asc-icon-primary, #0F0F0F))}.p-inputicon.asc-input-search-icon{color:var(--asc-input-icon-color, var(--asc-icon-secondary))}:host(.asc-input--disabled) .p-inputicon{color:var(--asc-icon-disabled)}::ng-deep p-iconfield,::ng-deep .p-iconfield{width:100%}::ng-deep p-floatlabel,::ng-deep .p-floatlabel{width:100%}::ng-deep .p-inputtext{width:100%;padding:10px 8px;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputtext{border-radius:12px}:host(.asc-input--xs){--asc-input-font-size: var(--asc-control-font-size-xs);--asc-input-line-height: var(--asc-control-line-height-xs)}:host(.asc-input--sm){--asc-input-font-size: var(--asc-control-font-size-sm);--asc-input-line-height: var(--asc-control-line-height-sm)}:host(.asc-input--md){--asc-input-font-size: var(--asc-control-font-size-md);--asc-input-line-height: var(--asc-control-line-height-md)}:host(.asc-input--lg){--asc-input-font-size: var(--asc-control-font-size-lg);--asc-input-line-height: var(--asc-control-line-height-lg)}:host(.asc-input--xl){--asc-input-font-size: var(--asc-control-font-size-xl);--asc-input-line-height: var(--asc-control-line-height-xl)}.asc-input-view{font-size:var(--asc-input-font-size);line-height:var(--asc-input-line-height);width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-xs);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--sm:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-sm);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--md:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-md);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--lg:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-lg);padding-inline-start:var(--asc-input-pad-start, 10px);padding-inline-end:var(--asc-input-pad-end, 10px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--xl:not(.asc-input--float-in)) ::ng-deep .p-inputtext{height:var(--asc-h-xl);padding-inline-start:var(--asc-input-pad-start, 12px);padding-inline-end:var(--asc-input-pad-end, 12px);border-radius:12px;font-size:var(--asc-input-font-size);font-weight:400}:host(.asc-input--xs) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--sm) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--md) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--lg) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--xl) ::ng-deep .p-inputtext{line-height:var(--asc-input-line-height)}:host(.asc-input--icon-left){--asc-input-pad-start: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--icon-right){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--clear-with-icon){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + 2 * (var(--asc-input-icon-size) + var(--asc-input-icon-gap)))}:host(.asc-input--float.asc-input--icon-left) ::ng-deep .p-inputtext{padding-inline-start:var(--asc-input-pad-start)}:host(.asc-input--float.asc-input--icon-right) ::ng-deep .p-inputtext{padding-inline-end:var(--asc-input-pad-end)}:host(.asc-input--disabled) ::ng-deep .p-inputtext{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input--invalid) ::ng-deep .p-inputtext{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input--invalid) ::ng-deep .p-inputtext:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.p-inputicon.asc-input-clear-btn{cursor:pointer;font-size:calc(var(--asc-input-icon-size) / 2);color:var(--asc-input-clear-color, #FFFFFF);background:var(--asc-input-clear-bg, #DEDFE0);border-radius:50%;transition:background-color var(--asc-transition-fast)}.p-inputicon.asc-input-clear-btn:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}.p-inputicon.asc-input-clear-btn:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-input--clear-with-icon) .p-inputicon.asc-input-clear-btn{inset-inline-end:calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}.asc-input-counter{font-size:.6875rem;color:var(--asc-text-muted);text-align:right;transition:color var(--asc-transition-fast)}.asc-input-counter.asc-input-counter--near-limit{color:var(--asc-color-warning)}.asc-input-counter.asc-input-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"] }]
|
|
3364
3364
|
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", 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 }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], enterPressed: [{ type: i0.Output, args: ["enterPressed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
|
|
3365
3365
|
|
|
3366
3366
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3579,177 +3579,177 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
3579
3579
|
provide: ASC_BASE_CONTROL,
|
|
3580
3580
|
useExisting: forwardRef(() => AscSelectComponent),
|
|
3581
3581
|
},
|
|
3582
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
3583
|
-
@if (mode() === 'view') {
|
|
3584
|
-
<span class="asc-select-view">{{ resolvedViewText() }}</span>
|
|
3585
|
-
} @else if (multi()) {
|
|
3586
|
-
<!-- ── Multi Select ───────────────────────────────────────────────── -->
|
|
3587
|
-
@if (resolvedFloatLabel() && label()) {
|
|
3588
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3589
|
-
<p-multiselect
|
|
3590
|
-
[inputId]="selectId()"
|
|
3591
|
-
[options]="options()"
|
|
3592
|
-
[optionLabel]="optionLabel()"
|
|
3593
|
-
[optionValue]="optionValue()"
|
|
3594
|
-
[optionDisabled]="optionDisabled()"
|
|
3595
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3596
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3597
|
-
[group]="grouped()"
|
|
3598
|
-
[filter]="filterable()"
|
|
3599
|
-
[filterBy]="filterBy()"
|
|
3600
|
-
[showClear]="showClear()"
|
|
3601
|
-
[display]="display()"
|
|
3602
|
-
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3603
|
-
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3604
|
-
[disabled]="effectiveDisabled()"
|
|
3605
|
-
[loading]="loading()"
|
|
3606
|
-
[virtualScroll]="virtualScroll()"
|
|
3607
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3608
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3609
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3610
|
-
[appendTo]="appendTo()"
|
|
3611
|
-
[class]="selectInnerCls()"
|
|
3612
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3613
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3614
|
-
[ngModel]="value()"
|
|
3615
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3616
|
-
(ngModelChange)="handleChange($event)"
|
|
3617
|
-
(onFocus)="handleFocus($event)"
|
|
3618
|
-
(onBlur)="handleBlur($event)"
|
|
3619
|
-
(onPanelShow)="panelShow.emit()"
|
|
3620
|
-
(onPanelHide)="panelHide.emit()"
|
|
3621
|
-
(onFilter)="filterChange.emit($event)"
|
|
3622
|
-
>
|
|
3623
|
-
<ng-template #filtericon>
|
|
3624
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3625
|
-
</ng-template>
|
|
3626
|
-
</p-multiselect>
|
|
3627
|
-
<label [for]="selectId()">{{ label() }}</label>
|
|
3628
|
-
</p-floatlabel>
|
|
3629
|
-
} @else {
|
|
3630
|
-
<p-multiselect
|
|
3631
|
-
[inputId]="selectId()"
|
|
3632
|
-
[options]="options()"
|
|
3633
|
-
[optionLabel]="optionLabel()"
|
|
3634
|
-
[optionValue]="optionValue()"
|
|
3635
|
-
[optionDisabled]="optionDisabled()"
|
|
3636
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3637
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3638
|
-
[group]="grouped()"
|
|
3639
|
-
[placeholder]="resolvedPlaceholder()"
|
|
3640
|
-
[filter]="filterable()"
|
|
3641
|
-
[filterBy]="filterBy()"
|
|
3642
|
-
[showClear]="showClear()"
|
|
3643
|
-
[display]="display()"
|
|
3644
|
-
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3645
|
-
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3646
|
-
[disabled]="effectiveDisabled()"
|
|
3647
|
-
[loading]="loading()"
|
|
3648
|
-
[virtualScroll]="virtualScroll()"
|
|
3649
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3650
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3651
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3652
|
-
[appendTo]="appendTo()"
|
|
3653
|
-
[class]="selectInnerCls()"
|
|
3654
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3655
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3656
|
-
[ngModel]="value()"
|
|
3657
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3658
|
-
(ngModelChange)="handleChange($event)"
|
|
3659
|
-
(onFocus)="handleFocus($event)"
|
|
3660
|
-
(onBlur)="handleBlur($event)"
|
|
3661
|
-
(onPanelShow)="panelShow.emit()"
|
|
3662
|
-
(onPanelHide)="panelHide.emit()"
|
|
3663
|
-
(onFilter)="filterChange.emit($event)"
|
|
3664
|
-
>
|
|
3665
|
-
<ng-template #filtericon>
|
|
3666
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3667
|
-
</ng-template>
|
|
3668
|
-
</p-multiselect>
|
|
3669
|
-
}
|
|
3670
|
-
} @else {
|
|
3671
|
-
<!-- ── Single Select ───────────────────────────────────────────────── -->
|
|
3672
|
-
@if (resolvedFloatLabel() && label()) {
|
|
3673
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3674
|
-
<p-select
|
|
3675
|
-
[inputId]="selectId()"
|
|
3676
|
-
[options]="options()"
|
|
3677
|
-
[optionLabel]="optionLabel()"
|
|
3678
|
-
[optionValue]="optionValue()"
|
|
3679
|
-
[optionDisabled]="optionDisabled()"
|
|
3680
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3681
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3682
|
-
[group]="grouped()"
|
|
3683
|
-
[filter]="filterable()"
|
|
3684
|
-
[filterBy]="filterBy()"
|
|
3685
|
-
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3686
|
-
[showClear]="showClear()"
|
|
3687
|
-
[disabled]="effectiveDisabled()"
|
|
3688
|
-
[loading]="loading()"
|
|
3689
|
-
[virtualScroll]="virtualScroll()"
|
|
3690
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3691
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3692
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3693
|
-
[appendTo]="appendTo()"
|
|
3694
|
-
[class]="selectInnerCls()"
|
|
3695
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3696
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3697
|
-
[ngModel]="value()"
|
|
3698
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3699
|
-
(ngModelChange)="handleChange($event)"
|
|
3700
|
-
(onFocus)="handleFocus($any($event))"
|
|
3701
|
-
(onBlur)="handleBlur($any($event))"
|
|
3702
|
-
(onShow)="panelShow.emit()"
|
|
3703
|
-
(onHide)="panelHide.emit()"
|
|
3704
|
-
(onFilter)="filterChange.emit($event)"
|
|
3705
|
-
>
|
|
3706
|
-
<ng-template #filtericon>
|
|
3707
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3708
|
-
</ng-template>
|
|
3709
|
-
</p-select>
|
|
3710
|
-
<label [for]="selectId()">{{ label() }}</label>
|
|
3711
|
-
</p-floatlabel>
|
|
3712
|
-
} @else {
|
|
3713
|
-
<p-select
|
|
3714
|
-
[inputId]="selectId()"
|
|
3715
|
-
[options]="options()"
|
|
3716
|
-
[optionLabel]="optionLabel()"
|
|
3717
|
-
[optionValue]="optionValue()"
|
|
3718
|
-
[optionDisabled]="optionDisabled()"
|
|
3719
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3720
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3721
|
-
[group]="grouped()"
|
|
3722
|
-
[placeholder]="resolvedPlaceholder()"
|
|
3723
|
-
[filter]="filterable()"
|
|
3724
|
-
[filterBy]="filterBy()"
|
|
3725
|
-
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3726
|
-
[showClear]="showClear()"
|
|
3727
|
-
[disabled]="effectiveDisabled()"
|
|
3728
|
-
[loading]="loading()"
|
|
3729
|
-
[virtualScroll]="virtualScroll()"
|
|
3730
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3731
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3732
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3733
|
-
[appendTo]="appendTo()"
|
|
3734
|
-
[class]="selectInnerCls()"
|
|
3735
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3736
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3737
|
-
[ngModel]="value()"
|
|
3738
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3739
|
-
(ngModelChange)="handleChange($event)"
|
|
3740
|
-
(onFocus)="handleFocus($any($event))"
|
|
3741
|
-
(onBlur)="handleBlur($any($event))"
|
|
3742
|
-
(onShow)="panelShow.emit()"
|
|
3743
|
-
(onHide)="panelHide.emit()"
|
|
3744
|
-
(onFilter)="filterChange.emit($event)"
|
|
3745
|
-
>
|
|
3746
|
-
<ng-template #filtericon>
|
|
3747
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3748
|
-
</ng-template>
|
|
3749
|
-
</p-select>
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
`, isInline: true, styles: [":host{display:block;width:100%}.asc-select-filter-icon{color:var(--asc-icon-secondary)}: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-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:16px}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:18px}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:20px}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:24px}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:28px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}: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"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3582
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
3583
|
+
@if (mode() === 'view') {
|
|
3584
|
+
<span class="asc-select-view">{{ resolvedViewText() }}</span>
|
|
3585
|
+
} @else if (multi()) {
|
|
3586
|
+
<!-- ── Multi Select ───────────────────────────────────────────────── -->
|
|
3587
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3588
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3589
|
+
<p-multiselect
|
|
3590
|
+
[inputId]="selectId()"
|
|
3591
|
+
[options]="options()"
|
|
3592
|
+
[optionLabel]="optionLabel()"
|
|
3593
|
+
[optionValue]="optionValue()"
|
|
3594
|
+
[optionDisabled]="optionDisabled()"
|
|
3595
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3596
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3597
|
+
[group]="grouped()"
|
|
3598
|
+
[filter]="filterable()"
|
|
3599
|
+
[filterBy]="filterBy()"
|
|
3600
|
+
[showClear]="showClear()"
|
|
3601
|
+
[display]="display()"
|
|
3602
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3603
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3604
|
+
[disabled]="effectiveDisabled()"
|
|
3605
|
+
[loading]="loading()"
|
|
3606
|
+
[virtualScroll]="virtualScroll()"
|
|
3607
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3608
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3609
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3610
|
+
[appendTo]="appendTo()"
|
|
3611
|
+
[class]="selectInnerCls()"
|
|
3612
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3613
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3614
|
+
[ngModel]="value()"
|
|
3615
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3616
|
+
(ngModelChange)="handleChange($event)"
|
|
3617
|
+
(onFocus)="handleFocus($event)"
|
|
3618
|
+
(onBlur)="handleBlur($event)"
|
|
3619
|
+
(onPanelShow)="panelShow.emit()"
|
|
3620
|
+
(onPanelHide)="panelHide.emit()"
|
|
3621
|
+
(onFilter)="filterChange.emit($event)"
|
|
3622
|
+
>
|
|
3623
|
+
<ng-template #filtericon>
|
|
3624
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3625
|
+
</ng-template>
|
|
3626
|
+
</p-multiselect>
|
|
3627
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3628
|
+
</p-floatlabel>
|
|
3629
|
+
} @else {
|
|
3630
|
+
<p-multiselect
|
|
3631
|
+
[inputId]="selectId()"
|
|
3632
|
+
[options]="options()"
|
|
3633
|
+
[optionLabel]="optionLabel()"
|
|
3634
|
+
[optionValue]="optionValue()"
|
|
3635
|
+
[optionDisabled]="optionDisabled()"
|
|
3636
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3637
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3638
|
+
[group]="grouped()"
|
|
3639
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3640
|
+
[filter]="filterable()"
|
|
3641
|
+
[filterBy]="filterBy()"
|
|
3642
|
+
[showClear]="showClear()"
|
|
3643
|
+
[display]="display()"
|
|
3644
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3645
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3646
|
+
[disabled]="effectiveDisabled()"
|
|
3647
|
+
[loading]="loading()"
|
|
3648
|
+
[virtualScroll]="virtualScroll()"
|
|
3649
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3650
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3651
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3652
|
+
[appendTo]="appendTo()"
|
|
3653
|
+
[class]="selectInnerCls()"
|
|
3654
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3655
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3656
|
+
[ngModel]="value()"
|
|
3657
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3658
|
+
(ngModelChange)="handleChange($event)"
|
|
3659
|
+
(onFocus)="handleFocus($event)"
|
|
3660
|
+
(onBlur)="handleBlur($event)"
|
|
3661
|
+
(onPanelShow)="panelShow.emit()"
|
|
3662
|
+
(onPanelHide)="panelHide.emit()"
|
|
3663
|
+
(onFilter)="filterChange.emit($event)"
|
|
3664
|
+
>
|
|
3665
|
+
<ng-template #filtericon>
|
|
3666
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3667
|
+
</ng-template>
|
|
3668
|
+
</p-multiselect>
|
|
3669
|
+
}
|
|
3670
|
+
} @else {
|
|
3671
|
+
<!-- ── Single Select ───────────────────────────────────────────────── -->
|
|
3672
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3673
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3674
|
+
<p-select
|
|
3675
|
+
[inputId]="selectId()"
|
|
3676
|
+
[options]="options()"
|
|
3677
|
+
[optionLabel]="optionLabel()"
|
|
3678
|
+
[optionValue]="optionValue()"
|
|
3679
|
+
[optionDisabled]="optionDisabled()"
|
|
3680
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3681
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3682
|
+
[group]="grouped()"
|
|
3683
|
+
[filter]="filterable()"
|
|
3684
|
+
[filterBy]="filterBy()"
|
|
3685
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3686
|
+
[showClear]="showClear()"
|
|
3687
|
+
[disabled]="effectiveDisabled()"
|
|
3688
|
+
[loading]="loading()"
|
|
3689
|
+
[virtualScroll]="virtualScroll()"
|
|
3690
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3691
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3692
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3693
|
+
[appendTo]="appendTo()"
|
|
3694
|
+
[class]="selectInnerCls()"
|
|
3695
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3696
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3697
|
+
[ngModel]="value()"
|
|
3698
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3699
|
+
(ngModelChange)="handleChange($event)"
|
|
3700
|
+
(onFocus)="handleFocus($any($event))"
|
|
3701
|
+
(onBlur)="handleBlur($any($event))"
|
|
3702
|
+
(onShow)="panelShow.emit()"
|
|
3703
|
+
(onHide)="panelHide.emit()"
|
|
3704
|
+
(onFilter)="filterChange.emit($event)"
|
|
3705
|
+
>
|
|
3706
|
+
<ng-template #filtericon>
|
|
3707
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3708
|
+
</ng-template>
|
|
3709
|
+
</p-select>
|
|
3710
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3711
|
+
</p-floatlabel>
|
|
3712
|
+
} @else {
|
|
3713
|
+
<p-select
|
|
3714
|
+
[inputId]="selectId()"
|
|
3715
|
+
[options]="options()"
|
|
3716
|
+
[optionLabel]="optionLabel()"
|
|
3717
|
+
[optionValue]="optionValue()"
|
|
3718
|
+
[optionDisabled]="optionDisabled()"
|
|
3719
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3720
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3721
|
+
[group]="grouped()"
|
|
3722
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3723
|
+
[filter]="filterable()"
|
|
3724
|
+
[filterBy]="filterBy()"
|
|
3725
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3726
|
+
[showClear]="showClear()"
|
|
3727
|
+
[disabled]="effectiveDisabled()"
|
|
3728
|
+
[loading]="loading()"
|
|
3729
|
+
[virtualScroll]="virtualScroll()"
|
|
3730
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3731
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3732
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3733
|
+
[appendTo]="appendTo()"
|
|
3734
|
+
[class]="selectInnerCls()"
|
|
3735
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3736
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3737
|
+
[ngModel]="value()"
|
|
3738
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3739
|
+
(ngModelChange)="handleChange($event)"
|
|
3740
|
+
(onFocus)="handleFocus($any($event))"
|
|
3741
|
+
(onBlur)="handleBlur($any($event))"
|
|
3742
|
+
(onShow)="panelShow.emit()"
|
|
3743
|
+
(onHide)="panelHide.emit()"
|
|
3744
|
+
(onFilter)="filterChange.emit($event)"
|
|
3745
|
+
>
|
|
3746
|
+
<ng-template #filtericon>
|
|
3747
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3748
|
+
</ng-template>
|
|
3749
|
+
</p-select>
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3752
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.asc-select-filter-icon{color:var(--asc-icon-secondary)}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}:host(.asc-select--xs){--asc-select-font-size: var(--asc-control-font-size-xs);--asc-select-line-height: var(--asc-control-line-height-xs)}:host(.asc-select--sm){--asc-select-font-size: var(--asc-control-font-size-sm);--asc-select-line-height: var(--asc-control-line-height-sm)}:host(.asc-select--md){--asc-select-font-size: var(--asc-control-font-size-md);--asc-select-line-height: var(--asc-control-line-height-md)}:host(.asc-select--lg){--asc-select-font-size: var(--asc-control-font-size-lg);--asc-select-line-height: var(--asc-control-line-height-lg)}:host(.asc-select--xl){--asc-select-font-size: var(--asc-control-font-size-xl);--asc-select-line-height: var(--asc-control-line-height-xl)}.asc-select-view{font-size:var(--asc-select-font-size);line-height:var(--asc-select-line-height);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-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}: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"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3753
3753
|
}
|
|
3754
3754
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
|
|
3755
3755
|
type: Component,
|
|
@@ -3761,177 +3761,177 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3761
3761
|
], host: {
|
|
3762
3762
|
'[class]': 'hostCls()',
|
|
3763
3763
|
'[attr.data-input-id]': 'selectId()',
|
|
3764
|
-
}, template: `
|
|
3765
|
-
@if (mode() === 'view') {
|
|
3766
|
-
<span class="asc-select-view">{{ resolvedViewText() }}</span>
|
|
3767
|
-
} @else if (multi()) {
|
|
3768
|
-
<!-- ── Multi Select ───────────────────────────────────────────────── -->
|
|
3769
|
-
@if (resolvedFloatLabel() && label()) {
|
|
3770
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3771
|
-
<p-multiselect
|
|
3772
|
-
[inputId]="selectId()"
|
|
3773
|
-
[options]="options()"
|
|
3774
|
-
[optionLabel]="optionLabel()"
|
|
3775
|
-
[optionValue]="optionValue()"
|
|
3776
|
-
[optionDisabled]="optionDisabled()"
|
|
3777
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3778
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3779
|
-
[group]="grouped()"
|
|
3780
|
-
[filter]="filterable()"
|
|
3781
|
-
[filterBy]="filterBy()"
|
|
3782
|
-
[showClear]="showClear()"
|
|
3783
|
-
[display]="display()"
|
|
3784
|
-
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3785
|
-
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3786
|
-
[disabled]="effectiveDisabled()"
|
|
3787
|
-
[loading]="loading()"
|
|
3788
|
-
[virtualScroll]="virtualScroll()"
|
|
3789
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3790
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3791
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3792
|
-
[appendTo]="appendTo()"
|
|
3793
|
-
[class]="selectInnerCls()"
|
|
3794
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3795
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3796
|
-
[ngModel]="value()"
|
|
3797
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3798
|
-
(ngModelChange)="handleChange($event)"
|
|
3799
|
-
(onFocus)="handleFocus($event)"
|
|
3800
|
-
(onBlur)="handleBlur($event)"
|
|
3801
|
-
(onPanelShow)="panelShow.emit()"
|
|
3802
|
-
(onPanelHide)="panelHide.emit()"
|
|
3803
|
-
(onFilter)="filterChange.emit($event)"
|
|
3804
|
-
>
|
|
3805
|
-
<ng-template #filtericon>
|
|
3806
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3807
|
-
</ng-template>
|
|
3808
|
-
</p-multiselect>
|
|
3809
|
-
<label [for]="selectId()">{{ label() }}</label>
|
|
3810
|
-
</p-floatlabel>
|
|
3811
|
-
} @else {
|
|
3812
|
-
<p-multiselect
|
|
3813
|
-
[inputId]="selectId()"
|
|
3814
|
-
[options]="options()"
|
|
3815
|
-
[optionLabel]="optionLabel()"
|
|
3816
|
-
[optionValue]="optionValue()"
|
|
3817
|
-
[optionDisabled]="optionDisabled()"
|
|
3818
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3819
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3820
|
-
[group]="grouped()"
|
|
3821
|
-
[placeholder]="resolvedPlaceholder()"
|
|
3822
|
-
[filter]="filterable()"
|
|
3823
|
-
[filterBy]="filterBy()"
|
|
3824
|
-
[showClear]="showClear()"
|
|
3825
|
-
[display]="display()"
|
|
3826
|
-
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3827
|
-
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3828
|
-
[disabled]="effectiveDisabled()"
|
|
3829
|
-
[loading]="loading()"
|
|
3830
|
-
[virtualScroll]="virtualScroll()"
|
|
3831
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3832
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3833
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3834
|
-
[appendTo]="appendTo()"
|
|
3835
|
-
[class]="selectInnerCls()"
|
|
3836
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3837
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3838
|
-
[ngModel]="value()"
|
|
3839
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3840
|
-
(ngModelChange)="handleChange($event)"
|
|
3841
|
-
(onFocus)="handleFocus($event)"
|
|
3842
|
-
(onBlur)="handleBlur($event)"
|
|
3843
|
-
(onPanelShow)="panelShow.emit()"
|
|
3844
|
-
(onPanelHide)="panelHide.emit()"
|
|
3845
|
-
(onFilter)="filterChange.emit($event)"
|
|
3846
|
-
>
|
|
3847
|
-
<ng-template #filtericon>
|
|
3848
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3849
|
-
</ng-template>
|
|
3850
|
-
</p-multiselect>
|
|
3851
|
-
}
|
|
3852
|
-
} @else {
|
|
3853
|
-
<!-- ── Single Select ───────────────────────────────────────────────── -->
|
|
3854
|
-
@if (resolvedFloatLabel() && label()) {
|
|
3855
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3856
|
-
<p-select
|
|
3857
|
-
[inputId]="selectId()"
|
|
3858
|
-
[options]="options()"
|
|
3859
|
-
[optionLabel]="optionLabel()"
|
|
3860
|
-
[optionValue]="optionValue()"
|
|
3861
|
-
[optionDisabled]="optionDisabled()"
|
|
3862
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3863
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3864
|
-
[group]="grouped()"
|
|
3865
|
-
[filter]="filterable()"
|
|
3866
|
-
[filterBy]="filterBy()"
|
|
3867
|
-
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3868
|
-
[showClear]="showClear()"
|
|
3869
|
-
[disabled]="effectiveDisabled()"
|
|
3870
|
-
[loading]="loading()"
|
|
3871
|
-
[virtualScroll]="virtualScroll()"
|
|
3872
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3873
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3874
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3875
|
-
[appendTo]="appendTo()"
|
|
3876
|
-
[class]="selectInnerCls()"
|
|
3877
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3878
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3879
|
-
[ngModel]="value()"
|
|
3880
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3881
|
-
(ngModelChange)="handleChange($event)"
|
|
3882
|
-
(onFocus)="handleFocus($any($event))"
|
|
3883
|
-
(onBlur)="handleBlur($any($event))"
|
|
3884
|
-
(onShow)="panelShow.emit()"
|
|
3885
|
-
(onHide)="panelHide.emit()"
|
|
3886
|
-
(onFilter)="filterChange.emit($event)"
|
|
3887
|
-
>
|
|
3888
|
-
<ng-template #filtericon>
|
|
3889
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3890
|
-
</ng-template>
|
|
3891
|
-
</p-select>
|
|
3892
|
-
<label [for]="selectId()">{{ label() }}</label>
|
|
3893
|
-
</p-floatlabel>
|
|
3894
|
-
} @else {
|
|
3895
|
-
<p-select
|
|
3896
|
-
[inputId]="selectId()"
|
|
3897
|
-
[options]="options()"
|
|
3898
|
-
[optionLabel]="optionLabel()"
|
|
3899
|
-
[optionValue]="optionValue()"
|
|
3900
|
-
[optionDisabled]="optionDisabled()"
|
|
3901
|
-
[optionGroupLabel]="optionGroupLabel()"
|
|
3902
|
-
[optionGroupChildren]="optionGroupChildren()"
|
|
3903
|
-
[group]="grouped()"
|
|
3904
|
-
[placeholder]="resolvedPlaceholder()"
|
|
3905
|
-
[filter]="filterable()"
|
|
3906
|
-
[filterBy]="filterBy()"
|
|
3907
|
-
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3908
|
-
[showClear]="showClear()"
|
|
3909
|
-
[disabled]="effectiveDisabled()"
|
|
3910
|
-
[loading]="loading()"
|
|
3911
|
-
[virtualScroll]="virtualScroll()"
|
|
3912
|
-
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3913
|
-
[emptyMessage]="resolvedEmptyMessage()"
|
|
3914
|
-
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3915
|
-
[appendTo]="appendTo()"
|
|
3916
|
-
[class]="selectInnerCls()"
|
|
3917
|
-
[panelStyleClass]="panelStyleClass()"
|
|
3918
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3919
|
-
[ngModel]="value()"
|
|
3920
|
-
[ngModelOptions]="{ standalone: true }"
|
|
3921
|
-
(ngModelChange)="handleChange($event)"
|
|
3922
|
-
(onFocus)="handleFocus($any($event))"
|
|
3923
|
-
(onBlur)="handleBlur($any($event))"
|
|
3924
|
-
(onShow)="panelShow.emit()"
|
|
3925
|
-
(onHide)="panelHide.emit()"
|
|
3926
|
-
(onFilter)="filterChange.emit($event)"
|
|
3927
|
-
>
|
|
3928
|
-
<ng-template #filtericon>
|
|
3929
|
-
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3930
|
-
</ng-template>
|
|
3931
|
-
</p-select>
|
|
3932
|
-
}
|
|
3933
|
-
}
|
|
3934
|
-
`, styles: [":host{display:block;width:100%}.asc-select-filter-icon{color:var(--asc-icon-secondary)}: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-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:
|
|
3764
|
+
}, template: `
|
|
3765
|
+
@if (mode() === 'view') {
|
|
3766
|
+
<span class="asc-select-view">{{ resolvedViewText() }}</span>
|
|
3767
|
+
} @else if (multi()) {
|
|
3768
|
+
<!-- ── Multi Select ───────────────────────────────────────────────── -->
|
|
3769
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3770
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3771
|
+
<p-multiselect
|
|
3772
|
+
[inputId]="selectId()"
|
|
3773
|
+
[options]="options()"
|
|
3774
|
+
[optionLabel]="optionLabel()"
|
|
3775
|
+
[optionValue]="optionValue()"
|
|
3776
|
+
[optionDisabled]="optionDisabled()"
|
|
3777
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3778
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3779
|
+
[group]="grouped()"
|
|
3780
|
+
[filter]="filterable()"
|
|
3781
|
+
[filterBy]="filterBy()"
|
|
3782
|
+
[showClear]="showClear()"
|
|
3783
|
+
[display]="display()"
|
|
3784
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3785
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3786
|
+
[disabled]="effectiveDisabled()"
|
|
3787
|
+
[loading]="loading()"
|
|
3788
|
+
[virtualScroll]="virtualScroll()"
|
|
3789
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3790
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3791
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3792
|
+
[appendTo]="appendTo()"
|
|
3793
|
+
[class]="selectInnerCls()"
|
|
3794
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3795
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3796
|
+
[ngModel]="value()"
|
|
3797
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3798
|
+
(ngModelChange)="handleChange($event)"
|
|
3799
|
+
(onFocus)="handleFocus($event)"
|
|
3800
|
+
(onBlur)="handleBlur($event)"
|
|
3801
|
+
(onPanelShow)="panelShow.emit()"
|
|
3802
|
+
(onPanelHide)="panelHide.emit()"
|
|
3803
|
+
(onFilter)="filterChange.emit($event)"
|
|
3804
|
+
>
|
|
3805
|
+
<ng-template #filtericon>
|
|
3806
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3807
|
+
</ng-template>
|
|
3808
|
+
</p-multiselect>
|
|
3809
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3810
|
+
</p-floatlabel>
|
|
3811
|
+
} @else {
|
|
3812
|
+
<p-multiselect
|
|
3813
|
+
[inputId]="selectId()"
|
|
3814
|
+
[options]="options()"
|
|
3815
|
+
[optionLabel]="optionLabel()"
|
|
3816
|
+
[optionValue]="optionValue()"
|
|
3817
|
+
[optionDisabled]="optionDisabled()"
|
|
3818
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3819
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3820
|
+
[group]="grouped()"
|
|
3821
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3822
|
+
[filter]="filterable()"
|
|
3823
|
+
[filterBy]="filterBy()"
|
|
3824
|
+
[showClear]="showClear()"
|
|
3825
|
+
[display]="display()"
|
|
3826
|
+
[maxSelectedLabels]="maxSelectedLabels()"
|
|
3827
|
+
[selectedItemsLabel]="resolvedSelectedItemsLabel()"
|
|
3828
|
+
[disabled]="effectiveDisabled()"
|
|
3829
|
+
[loading]="loading()"
|
|
3830
|
+
[virtualScroll]="virtualScroll()"
|
|
3831
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3832
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3833
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3834
|
+
[appendTo]="appendTo()"
|
|
3835
|
+
[class]="selectInnerCls()"
|
|
3836
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3837
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3838
|
+
[ngModel]="value()"
|
|
3839
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3840
|
+
(ngModelChange)="handleChange($event)"
|
|
3841
|
+
(onFocus)="handleFocus($event)"
|
|
3842
|
+
(onBlur)="handleBlur($event)"
|
|
3843
|
+
(onPanelShow)="panelShow.emit()"
|
|
3844
|
+
(onPanelHide)="panelHide.emit()"
|
|
3845
|
+
(onFilter)="filterChange.emit($event)"
|
|
3846
|
+
>
|
|
3847
|
+
<ng-template #filtericon>
|
|
3848
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3849
|
+
</ng-template>
|
|
3850
|
+
</p-multiselect>
|
|
3851
|
+
}
|
|
3852
|
+
} @else {
|
|
3853
|
+
<!-- ── Single Select ───────────────────────────────────────────────── -->
|
|
3854
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3855
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3856
|
+
<p-select
|
|
3857
|
+
[inputId]="selectId()"
|
|
3858
|
+
[options]="options()"
|
|
3859
|
+
[optionLabel]="optionLabel()"
|
|
3860
|
+
[optionValue]="optionValue()"
|
|
3861
|
+
[optionDisabled]="optionDisabled()"
|
|
3862
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3863
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3864
|
+
[group]="grouped()"
|
|
3865
|
+
[filter]="filterable()"
|
|
3866
|
+
[filterBy]="filterBy()"
|
|
3867
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3868
|
+
[showClear]="showClear()"
|
|
3869
|
+
[disabled]="effectiveDisabled()"
|
|
3870
|
+
[loading]="loading()"
|
|
3871
|
+
[virtualScroll]="virtualScroll()"
|
|
3872
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3873
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3874
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3875
|
+
[appendTo]="appendTo()"
|
|
3876
|
+
[class]="selectInnerCls()"
|
|
3877
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3878
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3879
|
+
[ngModel]="value()"
|
|
3880
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3881
|
+
(ngModelChange)="handleChange($event)"
|
|
3882
|
+
(onFocus)="handleFocus($any($event))"
|
|
3883
|
+
(onBlur)="handleBlur($any($event))"
|
|
3884
|
+
(onShow)="panelShow.emit()"
|
|
3885
|
+
(onHide)="panelHide.emit()"
|
|
3886
|
+
(onFilter)="filterChange.emit($event)"
|
|
3887
|
+
>
|
|
3888
|
+
<ng-template #filtericon>
|
|
3889
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3890
|
+
</ng-template>
|
|
3891
|
+
</p-select>
|
|
3892
|
+
<label [for]="selectId()">{{ label() }}</label>
|
|
3893
|
+
</p-floatlabel>
|
|
3894
|
+
} @else {
|
|
3895
|
+
<p-select
|
|
3896
|
+
[inputId]="selectId()"
|
|
3897
|
+
[options]="options()"
|
|
3898
|
+
[optionLabel]="optionLabel()"
|
|
3899
|
+
[optionValue]="optionValue()"
|
|
3900
|
+
[optionDisabled]="optionDisabled()"
|
|
3901
|
+
[optionGroupLabel]="optionGroupLabel()"
|
|
3902
|
+
[optionGroupChildren]="optionGroupChildren()"
|
|
3903
|
+
[group]="grouped()"
|
|
3904
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3905
|
+
[filter]="filterable()"
|
|
3906
|
+
[filterBy]="filterBy()"
|
|
3907
|
+
[filterPlaceholder]="resolvedFilterPlaceholder()"
|
|
3908
|
+
[showClear]="showClear()"
|
|
3909
|
+
[disabled]="effectiveDisabled()"
|
|
3910
|
+
[loading]="loading()"
|
|
3911
|
+
[virtualScroll]="virtualScroll()"
|
|
3912
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
3913
|
+
[emptyMessage]="resolvedEmptyMessage()"
|
|
3914
|
+
[emptyFilterMessage]="resolvedEmptyFilterMessage()"
|
|
3915
|
+
[appendTo]="appendTo()"
|
|
3916
|
+
[class]="selectInnerCls()"
|
|
3917
|
+
[panelStyleClass]="panelStyleClass()"
|
|
3918
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3919
|
+
[ngModel]="value()"
|
|
3920
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3921
|
+
(ngModelChange)="handleChange($event)"
|
|
3922
|
+
(onFocus)="handleFocus($any($event))"
|
|
3923
|
+
(onBlur)="handleBlur($any($event))"
|
|
3924
|
+
(onShow)="panelShow.emit()"
|
|
3925
|
+
(onHide)="panelHide.emit()"
|
|
3926
|
+
(onFilter)="filterChange.emit($event)"
|
|
3927
|
+
>
|
|
3928
|
+
<ng-template #filtericon>
|
|
3929
|
+
<asc-svg-icon name="search" size="1rem" class="asc-select-filter-icon" />
|
|
3930
|
+
</ng-template>
|
|
3931
|
+
</p-select>
|
|
3932
|
+
}
|
|
3933
|
+
}
|
|
3934
|
+
`, styles: [":host{display:block;width:100%}.asc-select-filter-icon{color:var(--asc-icon-secondary)}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}:host(.asc-select--xs){--asc-select-font-size: var(--asc-control-font-size-xs);--asc-select-line-height: var(--asc-control-line-height-xs)}:host(.asc-select--sm){--asc-select-font-size: var(--asc-control-font-size-sm);--asc-select-line-height: var(--asc-control-line-height-sm)}:host(.asc-select--md){--asc-select-font-size: var(--asc-control-font-size-md);--asc-select-line-height: var(--asc-control-line-height-md)}:host(.asc-select--lg){--asc-select-font-size: var(--asc-control-font-size-lg);--asc-select-line-height: var(--asc-control-line-height-lg)}:host(.asc-select--xl){--asc-select-font-size: var(--asc-control-font-size-xl);--asc-select-line-height: var(--asc-control-line-height-xl)}.asc-select-view{font-size:var(--asc-select-font-size);line-height:var(--asc-select-line-height);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-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}: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"] }]
|
|
3935
3935
|
}], 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"] }] } });
|
|
3936
3936
|
|
|
3937
3937
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4272,7 +4272,7 @@ class AscDatepickerComponent extends BaseControlAccessor {
|
|
|
4272
4272
|
(onYearChange)="viewDateChange.emit($event)"
|
|
4273
4273
|
></p-datepicker>
|
|
4274
4274
|
}
|
|
4275
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:
|
|
4275
|
+
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-secondary)}:host(.asc-datepicker--filled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-primary)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-disabled)}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5);color:var(--asc-text-disabled)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input::placeholder{color:var(--asc-text-disabled)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}:host(.asc-datepicker--xs){--asc-datepicker-font-size: var(--asc-control-font-size-xs);--asc-datepicker-line-height: var(--asc-control-line-height-xs)}:host(.asc-datepicker--sm){--asc-datepicker-font-size: var(--asc-control-font-size-sm);--asc-datepicker-line-height: var(--asc-control-line-height-sm)}:host(.asc-datepicker--md){--asc-datepicker-font-size: var(--asc-control-font-size-md);--asc-datepicker-line-height: var(--asc-control-line-height-md)}:host(.asc-datepicker--lg){--asc-datepicker-font-size: var(--asc-control-font-size-lg);--asc-datepicker-line-height: var(--asc-control-line-height-lg)}:host(.asc-datepicker--xl){--asc-datepicker-font-size: var(--asc-control-font-size-xl);--asc-datepicker-line-height: var(--asc-control-line-height-xl)}.asc-datepicker-view{font-size:var(--asc-datepicker-font-size);line-height:var(--asc-datepicker-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\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: DatePickerModule }, { kind: "component", type: i2$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4276
4276
|
}
|
|
4277
4277
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDatepickerComponent, decorators: [{
|
|
4278
4278
|
type: Component,
|
|
@@ -4364,7 +4364,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4364
4364
|
(onYearChange)="viewDateChange.emit($event)"
|
|
4365
4365
|
></p-datepicker>
|
|
4366
4366
|
}
|
|
4367
|
-
`, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:
|
|
4367
|
+
`, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-secondary)}:host(.asc-datepicker--filled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-primary)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-disabled)}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5);color:var(--asc-text-disabled)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input::placeholder{color:var(--asc-text-disabled)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}:host(.asc-datepicker--xs){--asc-datepicker-font-size: var(--asc-control-font-size-xs);--asc-datepicker-line-height: var(--asc-control-line-height-xs)}:host(.asc-datepicker--sm){--asc-datepicker-font-size: var(--asc-control-font-size-sm);--asc-datepicker-line-height: var(--asc-control-line-height-sm)}:host(.asc-datepicker--md){--asc-datepicker-font-size: var(--asc-control-font-size-md);--asc-datepicker-line-height: var(--asc-control-line-height-md)}:host(.asc-datepicker--lg){--asc-datepicker-font-size: var(--asc-control-font-size-lg);--asc-datepicker-line-height: var(--asc-control-line-height-lg)}:host(.asc-datepicker--xl){--asc-datepicker-font-size: var(--asc-control-font-size-xl);--asc-datepicker-line-height: var(--asc-control-line-height-xl)}.asc-datepicker-view{font-size:var(--asc-datepicker-font-size);line-height:var(--asc-datepicker-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
4368
4368
|
}], propDecorators: { selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", 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 }] }], 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 }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], todayClick: [{ type: i0.Output, args: ["todayClick"] }], clearClick: [{ type: i0.Output, args: ["clearClick"] }] } });
|
|
4369
4369
|
|
|
4370
4370
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4827,7 +4827,7 @@ class AscInputNumberComponent extends BaseControlAccessor {
|
|
|
4827
4827
|
(onInput)="inputEvent.emit($event)"
|
|
4828
4828
|
/>
|
|
4829
4829
|
}
|
|
4830
|
-
`, isInline: true, styles: [":host{display:block;width:100%;--p-inputnumber-button-border-radius: 12px}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputnumber-input{border-radius:12px}.asc-input-number-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-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:
|
|
4830
|
+
`, isInline: true, styles: [":host{display:block;width:100%;--p-inputnumber-button-border-radius: 12px}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputnumber-input{border-radius:12px}:host(.asc-input-number--xs){--asc-input-number-font-size: var(--asc-control-font-size-xs);--asc-input-number-line-height: var(--asc-control-line-height-xs)}:host(.asc-input-number--sm){--asc-input-number-font-size: var(--asc-control-font-size-sm);--asc-input-number-line-height: var(--asc-control-line-height-sm)}:host(.asc-input-number--md){--asc-input-number-font-size: var(--asc-control-font-size-md);--asc-input-number-line-height: var(--asc-control-line-height-md)}:host(.asc-input-number--lg){--asc-input-number-font-size: var(--asc-control-font-size-lg);--asc-input-number-line-height: var(--asc-control-line-height-lg)}:host(.asc-input-number--xl){--asc-input-number-font-size: var(--asc-control-font-size-xl);--asc-input-number-line-height: var(--asc-control-line-height-xl)}.asc-input-number-view{font-size:var(--asc-input-number-font-size);line-height:var(--asc-input-number-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--sm:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--md:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--lg:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--xl:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--xs) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--sm) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--md) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--lg) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--xl) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host{--p-icon-size: 20px}:host(.asc-input-number--xs){--p-icon-size: 14px}:host(.asc-input-number--xl){--p-icon-size: 24px}:host ::ng-deep .p-inputnumber.p-inputnumber-horizontal .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-vertical .p-inputnumber-input{border-radius:0}:host ::ng-deep .p-inputnumber-button .p-icon{width:14px;height:14px}:host ::ng-deep .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputnumber-clear-icon{box-sizing:border-box;width:var(--p-icon-size);height:var(--p-icon-size);padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputnumber-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-input-number--disabled) ::ng-deep .p-inputnumber-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{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: InputNumberModule }, { kind: "component", type: i2$6.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4831
4831
|
}
|
|
4832
4832
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputNumberComponent, decorators: [{
|
|
4833
4833
|
type: Component,
|
|
@@ -4897,7 +4897,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4897
4897
|
(onInput)="inputEvent.emit($event)"
|
|
4898
4898
|
/>
|
|
4899
4899
|
}
|
|
4900
|
-
`, styles: [":host{display:block;width:100%;--p-inputnumber-button-border-radius: 12px}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputnumber-input{border-radius:12px}.asc-input-number-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-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:
|
|
4900
|
+
`, styles: [":host{display:block;width:100%;--p-inputnumber-button-border-radius: 12px}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputnumber-input{border-radius:12px}:host(.asc-input-number--xs){--asc-input-number-font-size: var(--asc-control-font-size-xs);--asc-input-number-line-height: var(--asc-control-line-height-xs)}:host(.asc-input-number--sm){--asc-input-number-font-size: var(--asc-control-font-size-sm);--asc-input-number-line-height: var(--asc-control-line-height-sm)}:host(.asc-input-number--md){--asc-input-number-font-size: var(--asc-control-font-size-md);--asc-input-number-line-height: var(--asc-control-line-height-md)}:host(.asc-input-number--lg){--asc-input-number-font-size: var(--asc-control-font-size-lg);--asc-input-number-line-height: var(--asc-control-line-height-lg)}:host(.asc-input-number--xl){--asc-input-number-font-size: var(--asc-control-font-size-xl);--asc-input-number-line-height: var(--asc-control-line-height-xl)}.asc-input-number-view{font-size:var(--asc-input-number-font-size);line-height:var(--asc-input-number-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--sm:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--md:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--lg:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--xl:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-input-number-font-size);font-weight:400;line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--xs) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--sm) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--md) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--lg) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host(.asc-input-number--xl) ::ng-deep .p-inputnumber-input{line-height:var(--asc-input-number-line-height)}:host{--p-icon-size: 20px}:host(.asc-input-number--xs){--p-icon-size: 14px}:host(.asc-input-number--xl){--p-icon-size: 24px}:host ::ng-deep .p-inputnumber.p-inputnumber-horizontal .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-vertical .p-inputnumber-input{border-radius:0}:host ::ng-deep .p-inputnumber-button .p-icon{width:14px;height:14px}:host ::ng-deep .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputnumber-clear-icon{box-sizing:border-box;width:var(--p-icon-size);height:var(--p-icon-size);padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputnumber-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-input-number--disabled) ::ng-deep .p-inputnumber-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
|
|
4901
4901
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], fractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "fractionDigits", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], showButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtons", required: false }] }], buttonLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLayout", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", 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 }] }], 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 }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], inputEvent: [{ type: i0.Output, args: ["inputEvent"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }] } });
|
|
4902
4902
|
|
|
4903
4903
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4985,6 +4985,12 @@ class AscCheckboxComponent extends BaseControlAccessor {
|
|
|
4985
4985
|
return undefined;
|
|
4986
4986
|
}, /* @ts-ignore */
|
|
4987
4987
|
...(ngDevMode ? [{ debugName: "resolvedPSize" }] : /* istanbul ignore next */ []));
|
|
4988
|
+
/**
|
|
4989
|
+
* Size cho class host `asc-checkbox--{size}` (mặc định 'md' như các control khác).
|
|
4990
|
+
* Không override `controlSize` — giữ nguyên cỡ label của asc-form-field ở chế độ sửa.
|
|
4991
|
+
*/
|
|
4992
|
+
this.resolvedSize = computed(() => this.size() ?? 'md', /* @ts-ignore */
|
|
4993
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
4988
4994
|
this.listCls = computed(() => ascCls(`asc-checkbox-list--${this.layout()}`), /* @ts-ignore */
|
|
4989
4995
|
...(ngDevMode ? [{ debugName: "listCls" }] : /* istanbul ignore next */ []));
|
|
4990
4996
|
/**
|
|
@@ -5002,7 +5008,7 @@ class AscCheckboxComponent extends BaseControlAccessor {
|
|
|
5002
5008
|
return this.label() || '✓';
|
|
5003
5009
|
}, /* @ts-ignore */
|
|
5004
5010
|
...(ngDevMode ? [{ debugName: "resolvedViewText" }] : /* istanbul ignore next */ []));
|
|
5005
|
-
this.hostCls = computed(() => ascCls('asc-checkbox', this.isInvalidState() && 'asc-checkbox--invalid', this.effectiveDisabled() && 'asc-checkbox--disabled', this.readonly() && 'asc-checkbox--readonly', this.mode() === 'view' && 'asc-checkbox--view', this.styleClass()), /* @ts-ignore */
|
|
5011
|
+
this.hostCls = computed(() => ascCls('asc-checkbox', `asc-checkbox--${this.resolvedSize()}`, this.isInvalidState() && 'asc-checkbox--invalid', this.effectiveDisabled() && 'asc-checkbox--disabled', this.readonly() && 'asc-checkbox--readonly', this.mode() === 'view' && 'asc-checkbox--view', this.styleClass()), /* @ts-ignore */
|
|
5006
5012
|
...(ngDevMode ? [{ debugName: "hostCls" }] : /* istanbul ignore next */ []));
|
|
5007
5013
|
}
|
|
5008
5014
|
get controlDisabled() {
|
|
@@ -5087,7 +5093,7 @@ class AscCheckboxComponent extends BaseControlAccessor {
|
|
|
5087
5093
|
}
|
|
5088
5094
|
</div>
|
|
5089
5095
|
}
|
|
5090
|
-
`, isInline: true, styles: [":host{display:block}.asc-checkbox-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-checkbox-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-checkbox--invalid) ::ng-deep .p-checkbox .p-checkbox-box{border-color:var(--asc-border-color-invalid)!important}.asc-checkbox-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\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: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5096
|
+
`, isInline: true, styles: [":host{display:block}.asc-checkbox-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-checkbox-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-checkbox--invalid) ::ng-deep .p-checkbox .p-checkbox-box{border-color:var(--asc-border-color-invalid)!important}:host(.asc-checkbox--xs){--asc-checkbox-font-size: var(--asc-control-font-size-xs);--asc-checkbox-line-height: var(--asc-control-line-height-xs)}:host(.asc-checkbox--sm){--asc-checkbox-font-size: var(--asc-control-font-size-sm);--asc-checkbox-line-height: var(--asc-control-line-height-sm)}:host(.asc-checkbox--md){--asc-checkbox-font-size: var(--asc-control-font-size-md);--asc-checkbox-line-height: var(--asc-control-line-height-md)}:host(.asc-checkbox--lg){--asc-checkbox-font-size: var(--asc-control-font-size-lg);--asc-checkbox-line-height: var(--asc-control-line-height-lg)}:host(.asc-checkbox--xl){--asc-checkbox-font-size: var(--asc-control-font-size-xl);--asc-checkbox-line-height: var(--asc-control-line-height-xl)}.asc-checkbox-view{font-size:var(--asc-checkbox-font-size);line-height:var(--asc-checkbox-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\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: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5091
5097
|
}
|
|
5092
5098
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscCheckboxComponent, decorators: [{
|
|
5093
5099
|
type: Component,
|
|
@@ -5146,7 +5152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
5146
5152
|
}
|
|
5147
5153
|
</div>
|
|
5148
5154
|
}
|
|
5149
|
-
`, styles: [":host{display:block}.asc-checkbox-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-checkbox-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-checkbox--invalid) ::ng-deep .p-checkbox .p-checkbox-box{border-color:var(--asc-border-color-invalid)!important}.asc-checkbox-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
5155
|
+
`, styles: [":host{display:block}.asc-checkbox-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-checkbox-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-checkbox--invalid) ::ng-deep .p-checkbox .p-checkbox-box{border-color:var(--asc-border-color-invalid)!important}:host(.asc-checkbox--xs){--asc-checkbox-font-size: var(--asc-control-font-size-xs);--asc-checkbox-line-height: var(--asc-control-line-height-xs)}:host(.asc-checkbox--sm){--asc-checkbox-font-size: var(--asc-control-font-size-sm);--asc-checkbox-line-height: var(--asc-control-line-height-sm)}:host(.asc-checkbox--md){--asc-checkbox-font-size: var(--asc-control-font-size-md);--asc-checkbox-line-height: var(--asc-control-line-height-md)}:host(.asc-checkbox--lg){--asc-checkbox-font-size: var(--asc-control-font-size-lg);--asc-checkbox-line-height: var(--asc-control-line-height-lg)}:host(.asc-checkbox--xl){--asc-checkbox-font-size: var(--asc-control-font-size-xl);--asc-checkbox-line-height: var(--asc-control-line-height-xl)}.asc-checkbox-view{font-size:var(--asc-checkbox-font-size);line-height:var(--asc-checkbox-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
5150
5156
|
}], 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 }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", 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 }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
5151
5157
|
|
|
5152
5158
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -5200,6 +5206,13 @@ class AscRadioComponent extends BaseControlAccessor {
|
|
|
5200
5206
|
/** Căn theo trục ngang của item (align-items). @default 'center' */
|
|
5201
5207
|
this.alignColumn = input('center', /* @ts-ignore */
|
|
5202
5208
|
...(ngDevMode ? [{ debugName: "alignColumn" }] : /* istanbul ignore next */ []));
|
|
5209
|
+
/**
|
|
5210
|
+
* Size — cùng kiểu/mặc định với các control khác (undefined → 'md').
|
|
5211
|
+
* Hiện chỉ quyết định cỡ chữ ở mode="view" (class host `asc-radio--{size}`);
|
|
5212
|
+
* nút radio giữ cố định 20×20, label chế độ sửa giữ nguyên.
|
|
5213
|
+
*/
|
|
5214
|
+
this.size = input(undefined, /* @ts-ignore */
|
|
5215
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5203
5216
|
this.invalid = input(false, /* @ts-ignore */
|
|
5204
5217
|
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
5205
5218
|
this.disabled = input(false, /* @ts-ignore */
|
|
@@ -5230,6 +5243,9 @@ class AscRadioComponent extends BaseControlAccessor {
|
|
|
5230
5243
|
*/
|
|
5231
5244
|
this.effectiveDisabled = computed(() => this.disabled() || this.isDisabled() || this.readonly(), /* @ts-ignore */
|
|
5232
5245
|
...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
|
|
5246
|
+
/** Không override `controlSize` — giữ nguyên cỡ label của asc-form-field ở chế độ sửa. */
|
|
5247
|
+
this.resolvedSize = computed(() => this.size() ?? 'md', /* @ts-ignore */
|
|
5248
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
5233
5249
|
this.listCls = computed(() => ascCls(`asc-radio-list--${this.layout()}`), /* @ts-ignore */
|
|
5234
5250
|
...(ngDevMode ? [{ debugName: "listCls" }] : /* istanbul ignore next */ []));
|
|
5235
5251
|
/** mode="view": label tương ứng value hiện tại */
|
|
@@ -5238,7 +5254,7 @@ class AscRadioComponent extends BaseControlAccessor {
|
|
|
5238
5254
|
return val === null || val === undefined || val === '' ? '—' : this._findLabel(val);
|
|
5239
5255
|
}, /* @ts-ignore */
|
|
5240
5256
|
...(ngDevMode ? [{ debugName: "resolvedViewText" }] : /* istanbul ignore next */ []));
|
|
5241
|
-
this.hostCls = computed(() => ascCls('asc-radio', this.isInvalidState() && 'asc-radio--invalid', this.effectiveDisabled() && 'asc-radio--disabled', this.readonly() && 'asc-radio--readonly', this.mode() === 'view' && 'asc-radio--view', this.styleClass()), /* @ts-ignore */
|
|
5257
|
+
this.hostCls = computed(() => ascCls('asc-radio', `asc-radio--${this.resolvedSize()}`, this.isInvalidState() && 'asc-radio--invalid', this.effectiveDisabled() && 'asc-radio--disabled', this.readonly() && 'asc-radio--readonly', this.mode() === 'view' && 'asc-radio--view', this.styleClass()), /* @ts-ignore */
|
|
5242
5258
|
...(ngDevMode ? [{ debugName: "hostCls" }] : /* istanbul ignore next */ []));
|
|
5243
5259
|
}
|
|
5244
5260
|
get controlDisabled() {
|
|
@@ -5270,7 +5286,7 @@ class AscRadioComponent extends BaseControlAccessor {
|
|
|
5270
5286
|
this.markTouched();
|
|
5271
5287
|
}
|
|
5272
5288
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5273
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscRadioComponent, isStandalone: true, selector: "asc-radio", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, alignColumn: { classPropertyName: "alignColumn", publicName: "alignColumn", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
5289
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscRadioComponent, isStandalone: true, selector: "asc-radio", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, alignColumn: { classPropertyName: "alignColumn", publicName: "alignColumn", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
5274
5290
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscRadioComponent) },
|
|
5275
5291
|
], queries: [{ propertyName: "customItemTpl", first: true, predicate: ["ascItem"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5276
5292
|
@if (mode() === 'view') {
|
|
@@ -5314,7 +5330,7 @@ class AscRadioComponent extends BaseControlAccessor {
|
|
|
5314
5330
|
}
|
|
5315
5331
|
</div>
|
|
5316
5332
|
}
|
|
5317
|
-
`, isInline: true, styles: [":host{display:block}.asc-radio-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-radio-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}.asc-radio-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}.asc-radio-sublabel{margin-top:4px;font-weight:400;font-size:var(--asc-text-sm);color:var(--asc-radio-sublabel-color, #747475)}.asc-radio-label--disabled,.asc-radio-sublabel--disabled{color:var(--asc-text-disabled)}:host ::ng-deep .p-radiobutton,:host ::ng-deep .p-radiobutton-box{width:20px;height:20px}:host ::ng-deep .p-radiobutton-icon{width:10px;height:10px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box{background:var(--asc-surface-0);border-width:2px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-500)}:host ::ng-deep .p-radiobutton:not(.p-disabled):not(.p-radiobutton-checked):has(.p-radiobutton-input:hover) .p-radiobutton-box{border-color:var(--p-primary-400)}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box{background:var(--asc-surface-0);border-color:var(--p-primary-600)}:host ::ng-deep .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-600)}\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: RadioButtonModule }, { kind: "component", type: i2$8.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5333
|
+
`, isInline: true, styles: [":host{display:block}.asc-radio-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-radio-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-radio--xs){--asc-radio-font-size: var(--asc-control-font-size-xs);--asc-radio-line-height: var(--asc-control-line-height-xs)}:host(.asc-radio--sm){--asc-radio-font-size: var(--asc-control-font-size-sm);--asc-radio-line-height: var(--asc-control-line-height-sm)}:host(.asc-radio--md){--asc-radio-font-size: var(--asc-control-font-size-md);--asc-radio-line-height: var(--asc-control-line-height-md)}:host(.asc-radio--lg){--asc-radio-font-size: var(--asc-control-font-size-lg);--asc-radio-line-height: var(--asc-control-line-height-lg)}:host(.asc-radio--xl){--asc-radio-font-size: var(--asc-control-font-size-xl);--asc-radio-line-height: var(--asc-control-line-height-xl)}.asc-radio-view{font-size:var(--asc-radio-font-size);line-height:var(--asc-radio-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}.asc-radio-sublabel{margin-top:4px;font-weight:400;font-size:var(--asc-text-sm);color:var(--asc-radio-sublabel-color, #747475)}.asc-radio-label--disabled,.asc-radio-sublabel--disabled{color:var(--asc-text-disabled)}:host ::ng-deep .p-radiobutton,:host ::ng-deep .p-radiobutton-box{width:20px;height:20px}:host ::ng-deep .p-radiobutton-icon{width:10px;height:10px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box{background:var(--asc-surface-0);border-width:2px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-500)}:host ::ng-deep .p-radiobutton:not(.p-disabled):not(.p-radiobutton-checked):has(.p-radiobutton-input:hover) .p-radiobutton-box{border-color:var(--p-primary-400)}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box{background:var(--asc-surface-0);border-color:var(--p-primary-600)}:host ::ng-deep .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-600)}\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: RadioButtonModule }, { kind: "component", type: i2$8.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5318
5334
|
}
|
|
5319
5335
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscRadioComponent, decorators: [{
|
|
5320
5336
|
type: Component,
|
|
@@ -5364,8 +5380,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
5364
5380
|
}
|
|
5365
5381
|
</div>
|
|
5366
5382
|
}
|
|
5367
|
-
`, styles: [":host{display:block}.asc-radio-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-radio-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}.asc-radio-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}.asc-radio-sublabel{margin-top:4px;font-weight:400;font-size:var(--asc-text-sm);color:var(--asc-radio-sublabel-color, #747475)}.asc-radio-label--disabled,.asc-radio-sublabel--disabled{color:var(--asc-text-disabled)}:host ::ng-deep .p-radiobutton,:host ::ng-deep .p-radiobutton-box{width:20px;height:20px}:host ::ng-deep .p-radiobutton-icon{width:10px;height:10px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box{background:var(--asc-surface-0);border-width:2px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-500)}:host ::ng-deep .p-radiobutton:not(.p-disabled):not(.p-radiobutton-checked):has(.p-radiobutton-input:hover) .p-radiobutton-box{border-color:var(--p-primary-400)}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box{background:var(--asc-surface-0);border-color:var(--p-primary-600)}:host ::ng-deep .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-600)}\n"] }]
|
|
5368
|
-
}], 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 }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], alignColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignColumn", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], customItemTpl: [{ type: i0.ContentChild, args: ['ascItem', { isSignal: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
5383
|
+
`, styles: [":host{display:block}.asc-radio-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-radio-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-radio--xs){--asc-radio-font-size: var(--asc-control-font-size-xs);--asc-radio-line-height: var(--asc-control-line-height-xs)}:host(.asc-radio--sm){--asc-radio-font-size: var(--asc-control-font-size-sm);--asc-radio-line-height: var(--asc-control-line-height-sm)}:host(.asc-radio--md){--asc-radio-font-size: var(--asc-control-font-size-md);--asc-radio-line-height: var(--asc-control-line-height-md)}:host(.asc-radio--lg){--asc-radio-font-size: var(--asc-control-font-size-lg);--asc-radio-line-height: var(--asc-control-line-height-lg)}:host(.asc-radio--xl){--asc-radio-font-size: var(--asc-control-font-size-xl);--asc-radio-line-height: var(--asc-control-line-height-xl)}.asc-radio-view{font-size:var(--asc-radio-font-size);line-height:var(--asc-radio-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}.asc-radio-sublabel{margin-top:4px;font-weight:400;font-size:var(--asc-text-sm);color:var(--asc-radio-sublabel-color, #747475)}.asc-radio-label--disabled,.asc-radio-sublabel--disabled{color:var(--asc-text-disabled)}:host ::ng-deep .p-radiobutton,:host ::ng-deep .p-radiobutton-box{width:20px;height:20px}:host ::ng-deep .p-radiobutton-icon{width:10px;height:10px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box{background:var(--asc-surface-0);border-width:2px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-500)}:host ::ng-deep .p-radiobutton:not(.p-disabled):not(.p-radiobutton-checked):has(.p-radiobutton-input:hover) .p-radiobutton-box{border-color:var(--p-primary-400)}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box{background:var(--asc-surface-0);border-color:var(--p-primary-600)}:host ::ng-deep .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-600)}\n"] }]
|
|
5384
|
+
}], 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 }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], alignColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignColumn", 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 }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], customItemTpl: [{ type: i0.ContentChild, args: ['ascItem', { isSignal: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
5369
5385
|
|
|
5370
5386
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
5371
5387
|
// AscSelectButtonComponent
|
|
@@ -5695,7 +5711,7 @@ class AscTextareaComponent extends BaseControlAccessor {
|
|
|
5695
5711
|
}
|
|
5696
5712
|
</div>
|
|
5697
5713
|
}
|
|
5698
|
-
`, isInline: true, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-textarea-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:
|
|
5714
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-textarea--xs){--asc-textarea-font-size: var(--asc-control-font-size-xs);--asc-textarea-line-height: var(--asc-control-line-height-xs)}:host(.asc-textarea--sm){--asc-textarea-font-size: var(--asc-control-font-size-sm);--asc-textarea-line-height: var(--asc-control-line-height-sm)}:host(.asc-textarea--md){--asc-textarea-font-size: var(--asc-control-font-size-md);--asc-textarea-line-height: var(--asc-control-line-height-md)}:host(.asc-textarea--lg){--asc-textarea-font-size: var(--asc-control-font-size-lg);--asc-textarea-line-height: var(--asc-control-line-height-lg)}:host(.asc-textarea--xl){--asc-textarea-font-size: var(--asc-control-font-size-lg);--asc-textarea-line-height: var(--asc-control-line-height-lg)}.asc-textarea-view{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:6px 8px;border-radius:12px}:host(.asc-textarea--md) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:10px 8px;border-radius:12px}:host(.asc-textarea--lg) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:12px 10px;border-radius:12px}:host(.asc-textarea--xl) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:14px 12px;border-radius:12px}:host(.asc-textarea--disabled) ::ng-deep .p-textarea{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-textarea--invalid) ::ng-deep .p-textarea{border-color:var(--asc-border-color-invalid)!important}:host(.asc-textarea--invalid) ::ng-deep .p-textarea:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.asc-textarea-counter{position:absolute;bottom:6px;right:10px;font-size:.6875rem;color:var(--asc-text-muted);pointer-events:none;line-height:1;transition:color var(--asc-transition-fast)}.asc-textarea-counter.asc-textarea-counter--near-limit{color:var(--asc-color-warning)}.asc-textarea-counter.asc-textarea-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TextareaModule }, { kind: "directive", type: i2$a.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5699
5715
|
}
|
|
5700
5716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTextareaComponent, decorators: [{
|
|
5701
5717
|
type: Component,
|
|
@@ -5745,7 +5761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
5745
5761
|
}
|
|
5746
5762
|
</div>
|
|
5747
5763
|
}
|
|
5748
|
-
`, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-textarea-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:
|
|
5764
|
+
`, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-textarea--xs){--asc-textarea-font-size: var(--asc-control-font-size-xs);--asc-textarea-line-height: var(--asc-control-line-height-xs)}:host(.asc-textarea--sm){--asc-textarea-font-size: var(--asc-control-font-size-sm);--asc-textarea-line-height: var(--asc-control-line-height-sm)}:host(.asc-textarea--md){--asc-textarea-font-size: var(--asc-control-font-size-md);--asc-textarea-line-height: var(--asc-control-line-height-md)}:host(.asc-textarea--lg){--asc-textarea-font-size: var(--asc-control-font-size-lg);--asc-textarea-line-height: var(--asc-control-line-height-lg)}:host(.asc-textarea--xl){--asc-textarea-font-size: var(--asc-control-font-size-lg);--asc-textarea-line-height: var(--asc-control-line-height-lg)}.asc-textarea-view{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:6px 8px;border-radius:12px}:host(.asc-textarea--md) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:10px 8px;border-radius:12px}:host(.asc-textarea--lg) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:12px 10px;border-radius:12px}:host(.asc-textarea--xl) ::ng-deep .p-textarea{font-size:var(--asc-textarea-font-size);line-height:var(--asc-textarea-line-height);font-weight:400;padding:14px 12px;border-radius:12px}:host(.asc-textarea--disabled) ::ng-deep .p-textarea{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-textarea--invalid) ::ng-deep .p-textarea{border-color:var(--asc-border-color-invalid)!important}:host(.asc-textarea--invalid) ::ng-deep .p-textarea:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.asc-textarea-counter{position:absolute;bottom:6px;right:10px;font-size:.6875rem;color:var(--asc-text-muted);pointer-events:none;line-height:1;transition:color var(--asc-transition-fast)}.asc-textarea-counter.asc-textarea-counter--near-limit{color:var(--asc-color-warning)}.asc-textarea-counter.asc-textarea-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"] }]
|
|
5749
5765
|
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }], autoResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoResize", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], textareaEl: [{ type: i0.ViewChild, args: ['textareaEl', { isSignal: true }] }] } });
|
|
5750
5766
|
|
|
5751
5767
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -7301,7 +7317,7 @@ class AscTableComponent {
|
|
|
7301
7317
|
URL.revokeObjectURL(url);
|
|
7302
7318
|
}
|
|
7303
7319
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7304
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTableComponent, isStandalone: true, selector: "asc-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsDisplay: { classPropertyName: "actionsDisplay", publicName: "actionsDisplay", isSignal: true, isRequired: false, transformFunction: null }, contextMenuActions: { classPropertyName: "contextMenuActions", publicName: "contextMenuActions", isSignal: true, isRequired: false, transformFunction: null }, selectionActions: { classPropertyName: "selectionActions", publicName: "selectionActions", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, rowDisabled: { classPropertyName: "rowDisabled", publicName: "rowDisabled", isSignal: true, isRequired: false, transformFunction: null }, selectionGroupField: { classPropertyName: "selectionGroupField", publicName: "selectionGroupField", isSignal: true, isRequired: false, transformFunction: null }, checkedField: { classPropertyName: "checkedField", publicName: "checkedField", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showColumnManager: { classPropertyName: "showColumnManager", publicName: "showColumnManager", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, showRowNumber: { classPropertyName: "showRowNumber", publicName: "showRowNumber", isSignal: true, isRequired: false, transformFunction: null }, rowNumberHeader: { classPropertyName: "rowNumberHeader", publicName: "rowNumberHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsHeader: { classPropertyName: "actionsHeader", publicName: "actionsHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMinWidth: { classPropertyName: "actionsMinWidth", publicName: "actionsMinWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMaxWidth: { classPropertyName: "actionsMaxWidth", publicName: "actionsMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { lazyLoad: "lazyLoad", pageChange: "pageChange", sortChange: "sortChange", filterChange: "filterChange", selectionChange: "selectionChange", rowSelected: "rowSelected", rowUnselected: "rowUnselected", rowClicked: "rowClicked", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed", groupCheckedChange: "groupCheckedChange" }, providers: [DatePipe], queries: [{ propertyName: "cellTpls", predicate: AscTableCellDirective, isSignal: true }, { propertyName: "expandTpl", first: true, predicate: AscTableExpandDirective, descendants: true, isSignal: true }, { propertyName: "emptyTpl", first: true, predicate: AscTableEmptyDirective, descendants: true, isSignal: true }, { propertyName: "captionTpl", first: true, predicate: AscTableCaptionDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\r\n @file asc-table.html\r\n AscTableComponent template\r\n\r\n Structure:\r\n .asc-table-wrapper\r\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\r\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\r\n \u2514\u2500\u2500 p-table\r\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\r\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\r\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\r\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\r\n-->\r\n\r\n<div class=\"asc-table-wrapper\">\r\n\r\n <!-- \u2500\u2500 Caption / Toolbar \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 -->\r\n\r\n <ng-template #defaultCaption>\r\n @if (showToolbar()) {\r\n <div class=\"asc-table-toolbar\">\r\n <!-- Left slot: search -->\r\n <div class=\"asc-table-toolbar-left\">\r\n @if (showSearch()) {\r\n <p-iconfield iconPosition=\"left\">\r\n <p-inputicon class=\"asc-search-icon\">\r\n <asc-svg-icon name=\"search\" />\r\n </p-inputicon>\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [placeholder]=\"msg.table.searchPlaceholder\"\r\n [ngModel]=\"globalFilter()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"handleGlobalFilter($event)\"\r\n class=\"asc-table-search-input\"\r\n />\r\n </p-iconfield>\r\n }\r\n </div>\r\n\r\n <!-- Right slot: column manager + export -->\r\n <div class=\"asc-table-toolbar-right\">\r\n @if (showColumnManager()) {\r\n <p-button\r\n #columnManagerBtn\r\n icon=\"pi pi-table\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\r\n (onClick)=\"columnManagerOverlay.toggle($event)\"\r\n />\r\n <!-- Column manager popover -->\r\n <p-popover #columnManagerOverlay>\r\n <div class=\"asc-column-manager\">\r\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\r\n @for (col of columnVisibility(); track col.field) {\r\n <div class=\"asc-column-manager-item\">\r\n <p-checkbox\r\n [ngModel]=\"col.visible\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [binary]=\"true\"\r\n [inputId]=\"'col-' + col.field\"\r\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\r\n />\r\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\r\n </div>\r\n }\r\n </div>\r\n </p-popover>\r\n }\r\n\r\n @if (exportable()) {\r\n <p-button\r\n icon=\"pi pi-download\"\r\n [label]=\"msg.table.exportCsv\"\r\n variant=\"outlined\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"exportCsv()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 PrimeNG Table \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 -->\r\n <p-table\r\n #dt\r\n [value]=\"data()\"\r\n [loading]=\"loading()\"\r\n [lazy]=\"lazy()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [rows]=\"rows()\"\r\n [first]=\"first()\"\r\n [paginator]=\"paginator()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\r\n [sortMode]=\"sortMode()\"\r\n [defaultSortOrder]=\"1\"\r\n [reorderableColumns]=\"reorderableColumns()\"\r\n [resizableColumns]=\"resizableColumns()\"\r\n [columnResizeMode]=\"'expand'\"\r\n [showGridlines]=\"showGridlines()\"\r\n [stripedRows]=\"stripedRows()\"\r\n [scrollable]=\"resolvedScrollable()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [selectionMode]=\"pSelectionMode()\"\r\n [(selection)]=\"selectedRowsModel\"\r\n [rowSelectable]=\"pRowSelectable\"\r\n [dataKey]=\"dataKey()\"\r\n [(contextMenuSelection)]=\"contextMenuRow\"\r\n [globalFilterFields]=\"globalFilterFields()\"\r\n [rowExpandMode]=\"'multiple'\"\r\n [class]=\"tableStyleClass()\"\r\n (onPage)=\"handlePage($event)\"\r\n (onSort)=\"handleSort($event)\"\r\n (onFilter)=\"handleFilter($event)\"\r\n (onLazyLoad)=\"handleLazyLoad($event)\"\r\n (onRowSelect)=\"rowSelected.emit($event)\"\r\n (onRowUnselect)=\"rowUnselected.emit($event)\"\r\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\r\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\r\n >\r\n\r\n <!-- \u2500\u2500 Context menu \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 -->\r\n\r\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 -->\r\n <ng-template #header>\r\n <tr>\r\n <!-- Expand toggle column -->\r\n @if (expandable()) {\r\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Selection column -->\r\n @if (selectionMode() === 'multiple') {\r\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\r\n style=\"width: 3rem\" [frozen]=\"true\">\r\n <p-tableHeaderCheckbox/>\r\n </th>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Row number column -->\r\n @if (showRowNumber()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-th asc-th-row-number\"\r\n style=\"width: 4rem; text-align: center\"\r\n >\r\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\r\n </th>\r\n }\r\n\r\n <!-- Data columns -->\r\n @for (cell of headerCells(); track cell.col.field) {\r\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\r\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\r\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\r\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\r\n </th>\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{\r\n col: cell.col,\r\n colspan: cell.colspan,\r\n rowspan: hasHeaderGroups() ? 2 : 1\r\n }\"\r\n />\r\n }\r\n }\r\n\r\n <!-- Actions column header -->\r\n @if (hasActionsColumn()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-th asc-th-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n style=\"text-align: center\"\r\n >\r\n {{ actionsHeader() ?? msg.table.actionsHeader }}\r\n </th>\r\n }\r\n </tr>\r\n\r\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\r\n @if (hasHeaderGroups()) {\r\n <tr>\r\n @for (col of subHeaderColumns(); track col.field) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\r\n />\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\r\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\r\n <th\r\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\r\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\r\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\r\n [pSortableColumnDisabled]=\"!col.sortable\"\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"col.headerClass ?? ''\"\r\n class=\"asc-th\"\r\n >\r\n <div class=\"asc-th-content\">\r\n <span class=\"asc-th-text\">{{ col.header }}</span>\r\n\r\n @if (col.sortable) {\r\n <p-sortIcon [field]=\"col.field\"/>\r\n }\r\n\r\n @if (col.filterable) {\r\n <p-column-filter\r\n [field]=\"col.field\"\r\n [type]=\"resolveFilterType(col)\"\r\n display=\"menu\"\r\n class=\"asc-col-filter\"\r\n />\r\n }\r\n </div>\r\n </th>\r\n </ng-template>\r\n\r\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 -->\r\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\r\n <tr\r\n [pSelectableRow]=\"row\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\r\n [pContextMenuRow]=\"row\"\r\n [class.asc-row-selected]=\"isSelected(row)\"\r\n [class.asc-row-expanded]=\"expanded\"\r\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\r\n (click)=\"rowClicked.emit(row)\"\r\n >\r\n <!-- Expand toggle -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\r\n <p-button\r\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pRowToggler]=\"row\"\r\n />\r\n </td>\r\n }\r\n\r\n <!-- Selection -->\r\n @if (selectionMode() === 'multiple') {\r\n @if (!selectionGroupField()) {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\r\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\"\r\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\r\n (click)=\"$event.stopPropagation()\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n />\r\n </td>\r\n }\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n }\r\n\r\n <!-- Row number cell -->\r\n @if (showRowNumber()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-td asc-td-row-number\"\r\n style=\"text-align: center\"\r\n >{{ rowIndex + 1 }}\r\n </td>\r\n }\r\n\r\n <!-- Data cells -->\r\n @for (col of visibleColumns(); track col.field) {\r\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"resolveCellClass(col, row)\"\r\n class=\"asc-td\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: getCellValue(row, col.field),\r\n row: row,\r\n index: rowIndex,\r\n column: col\r\n }\"\r\n />\r\n </td>\r\n }\r\n }\r\n\r\n <!-- Actions column -->\r\n @if (hasActionsColumn()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-td asc-td-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n @if (actionsDisplay() === 'dropdown') {\r\n <p-button\r\n class=\"asc-action-more\"\r\n icon=\"pi pi-ellipsis-v\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\r\n />\r\n } @else {\r\n <div class=\"asc-actions-wrap\">\r\n @for (action of getVisibleActions(row); track action.label) {\r\n @let builtin = action.iconSrc ? null : builtinIcon(action.icon);\r\n <p-button\r\n class=\"asc-action-btn\"\r\n [class.asc-action-btn--danger]=\"builtin === 'delete' || action.severity === 'danger'\"\r\n [icon]=\"action.iconSrc || builtin ? '' : (action.icon ?? '')\"\r\n [label]=\"action.label ?? ''\"\r\n [severity]=\"action.severity ?? 'secondary'\"\r\n [disabled]=\"action.disabled?.(row) ?? false\"\r\n [pTooltip]=\"action.tooltip ?? ''\"\r\n tooltipPosition=\"top\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (onClick)=\"action.command(row, rowIndex)\"\r\n >\r\n @if (action.iconSrc) {\r\n <ng-template #icon>\r\n <asc-icon [src]=\"action.iconSrc\" />\r\n </ng-template>\r\n } @else if (builtin) {\r\n <ng-template #icon>\r\n <asc-svg-icon [name]=\"builtin\" size=\"16px\" [class]=\"'asc-action-icon asc-action-icon--' + builtin\" />\r\n </ng-template>\r\n }\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\r\n @if (hasFooter()) {\r\n <ng-template #footer>\r\n <tr>\r\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (showRowNumber()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n\r\n @for (cell of footerCells(); track cell.col.field) {\r\n <td\r\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\r\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\r\n [class]=\"cell.col.headerClass ?? ''\"\r\n class=\"asc-td-footer\"\r\n >\r\n {{ cell.col.footer }}\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Row expand content \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 -->\r\n @if (expandable() && expandTpl()) {\r\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\r\n <tr class=\"asc-row-expansion\">\r\n <td [attr.colspan]=\"expandColspan()\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\r\n />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Loading skeleton \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 -->\r\n <ng-template #loadingbody>\r\n @for (i of skeletonRows(); track i) {\r\n <tr class=\"asc-row-skeleton\">\r\n @if (expandable()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (showRowNumber()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n\r\n @for (col of visibleColumns(); track col.field) {\r\n <td>\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n [width]=\"getSkeletonWidth(col)\"\r\n />\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Empty state \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 -->\r\n <ng-template #emptymessage>\r\n <tr>\r\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\r\n @if (emptyTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\r\n } @else {\r\n <div class=\"asc-empty-default\">\r\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\r\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\r\n </div>\r\n }\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n </p-table>\r\n\r\n <!-- Shared popup menu for dropdown action mode -->\r\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\r\n <ng-template #item let-item>\r\n <a class=\"p-menu-item-link\" [class.asc-menu-item--danger]=\"item.danger\" pRipple>\r\n @let builtin = item.iconSrc ? null : builtinIcon(item.icon);\r\n @if (item.iconSrc) {\r\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\r\n } @else if (builtin) {\r\n <asc-svg-icon [name]=\"builtin\" [class]=\"'p-menu-item-icon asc-action-icon asc-action-icon--' + builtin\" />\r\n } @else if (item.icon) {\r\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n </p-menu>\r\n\r\n</div>\r\n\r\n<!-- \u2500\u2500 Default cell template (text) \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 -->\r\n<!--\r\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\r\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\r\n-->\r\n<ng-template\r\n #defaultCell\r\n let-value\r\n let-row=\"row\"\r\n let-col=\"column\"\r\n>\r\n @switch (col?.type ?? 'text') {\r\n\r\n @case ('number') {\r\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\r\n }\r\n @case ('currency') {\r\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\r\n }\r\n @case ('date') {\r\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\r\n }\r\n @case ('datetime') {\r\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\r\n }\r\n @case ('boolean') {\r\n <i\r\n [class]=\"value\r\n ? 'pi pi-check-circle text-green-600'\r\n : 'pi pi-times-circle text-red-400'\"\r\n class=\"asc-cell-boolean\"\r\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\r\n ></i>\r\n }\r\n @case ('badge') {\r\n @if (resolveBadge(value, col); as badge) {\r\n <p-tag\r\n [value]=\"badge.label\"\r\n [severity]=\"mapSeverityToTag(badge.severity)\"\r\n [icon]=\"badge.icon ?? ''\"\r\n />\r\n } @else {\r\n <span>{{ value ?? '\u2014' }}</span>\r\n }\r\n }\r\n @case ('avatar') {\r\n <div class=\"asc-cell-avatar\">\r\n <p-avatar\r\n [label]=\"getInitials(value)\"\r\n shape=\"circle\"\r\n size=\"normal\"\r\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\r\n />\r\n <span>{{ value }}</span>\r\n </div>\r\n }\r\n @default {\r\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\r\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\r\n <span\r\n class=\"asc-cell-text\"\r\n [class.asc-cell-text-clamp]=\"textClamped\"\r\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\r\n tooltipPosition=\"right\"\r\n >{{ formatText(value, col?.format) }}</span>\r\n }\r\n\r\n }\r\n</ng-template>\r\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0);--p-datatable-row-background: var(--asc-surface-base);--p-datatable-row-hover-background: var(--asc-table-row-hover-bg);--p-datatable-footer-cell-background: var(--asc-table-row-hover-bg)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;line-height:18px;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;line-height:18px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:9px 8px!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:12px;font-weight:500;line-height:18px;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-action-icon{color:var(--asc-icon-primary)}.asc-action-icon--delete,.asc-menu-item--danger{color:var(--asc-icon-danger)}.p-button:disabled .asc-action-icon{color:var(--asc-icon-disabled)}.asc-search-icon{display:inline-flex;width:20px;height:20px;margin-top:-10px;color:var(--asc-icon-secondary)}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-width:0 0 1px 0;border-bottom-color:var(--asc-table-header-divider-bottom);background-image:linear-gradient(var(--asc-table-header-divider-top),var(--asc-table-header-divider-bottom));background-size:1px 100%;background-position:right top;background-repeat:no-repeat}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:last-child{background-image:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background-color:var(--asc-table-header-bg)}::ng-deep .asc-table-wrapper .p-datatable-sort-icon{color:var(--asc-icon-secondary)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button,::ng-deep .asc-table-wrapper .asc-action-more .p-button{height:auto;min-width:0;padding:2px 4px;gap:4px;border-radius:4px;font-size:12px;line-height:18px;font-weight:400;color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button:not(:disabled):hover,::ng-deep .asc-table-wrapper .asc-action-more .p-button:not(:disabled):hover{background:var(--asc-surface-hover);color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button .p-button-icon,::ng-deep .asc-table-wrapper .asc-action-more .p-button .p-button-icon{font-size:16px}::ng-deep .asc-table-wrapper .asc-action-btn .p-button.p-button-icon-only{width:auto}::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button,::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button:not(:disabled):hover{color:var(--asc-icon-danger)}::ng-deep .asc-table-wrapper .asc-action-more .p-button{width:24px;height:20px}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{font-size:14px}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-hoverable .p-datatable-tbody>tr:not(.p-datatable-row-selected):hover>.p-datatable-frozen-column{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i3$4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i3$4.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i3$4.FrozenColumn, selector: "[pFrozenColumn]", inputs: ["frozen", "alignFrozen"] }, { kind: "directive", type: i3$4.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i3$4.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "directive", type: i3$4.ContextMenuRow, selector: "[pContextMenuRow]", inputs: ["pContextMenuRow", "pContextMenuRowIndex", "pContextMenuRowDisabled"] }, { kind: "component", type: i3$4.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i3$4.TableRadioButton, selector: "p-tableRadioButton", inputs: ["value", "disabled", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableCheckbox, selector: "p-tableCheckbox", inputs: ["value", "disabled", "required", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i9.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i10.Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i11.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { 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: "ngmodule", type: ContextMenuModule }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i13.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i14.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i15.Ripple, selector: "[pRipple]" }, { kind: "component", type: AscIconComponent, selector: "asc-icon", inputs: ["src", "size", "width", "height"], outputs: ["loadError"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7320
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTableComponent, isStandalone: true, selector: "asc-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsDisplay: { classPropertyName: "actionsDisplay", publicName: "actionsDisplay", isSignal: true, isRequired: false, transformFunction: null }, contextMenuActions: { classPropertyName: "contextMenuActions", publicName: "contextMenuActions", isSignal: true, isRequired: false, transformFunction: null }, selectionActions: { classPropertyName: "selectionActions", publicName: "selectionActions", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, rowDisabled: { classPropertyName: "rowDisabled", publicName: "rowDisabled", isSignal: true, isRequired: false, transformFunction: null }, selectionGroupField: { classPropertyName: "selectionGroupField", publicName: "selectionGroupField", isSignal: true, isRequired: false, transformFunction: null }, checkedField: { classPropertyName: "checkedField", publicName: "checkedField", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showColumnManager: { classPropertyName: "showColumnManager", publicName: "showColumnManager", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, showRowNumber: { classPropertyName: "showRowNumber", publicName: "showRowNumber", isSignal: true, isRequired: false, transformFunction: null }, rowNumberHeader: { classPropertyName: "rowNumberHeader", publicName: "rowNumberHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsHeader: { classPropertyName: "actionsHeader", publicName: "actionsHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMinWidth: { classPropertyName: "actionsMinWidth", publicName: "actionsMinWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMaxWidth: { classPropertyName: "actionsMaxWidth", publicName: "actionsMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { lazyLoad: "lazyLoad", pageChange: "pageChange", sortChange: "sortChange", filterChange: "filterChange", selectionChange: "selectionChange", rowSelected: "rowSelected", rowUnselected: "rowUnselected", rowClicked: "rowClicked", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed", groupCheckedChange: "groupCheckedChange" }, providers: [DatePipe], queries: [{ propertyName: "cellTpls", predicate: AscTableCellDirective, isSignal: true }, { propertyName: "expandTpl", first: true, predicate: AscTableExpandDirective, descendants: true, isSignal: true }, { propertyName: "emptyTpl", first: true, predicate: AscTableEmptyDirective, descendants: true, isSignal: true }, { propertyName: "captionTpl", first: true, predicate: AscTableCaptionDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\r\n @file asc-table.html\r\n AscTableComponent template\r\n\r\n Structure:\r\n .asc-table-wrapper\r\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\r\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\r\n \u2514\u2500\u2500 p-table\r\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\r\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\r\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\r\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\r\n-->\r\n\r\n<div class=\"asc-table-wrapper\">\r\n\r\n <!-- \u2500\u2500 Caption / Toolbar \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 -->\r\n\r\n <ng-template #defaultCaption>\r\n @if (showToolbar()) {\r\n <div class=\"asc-table-toolbar\">\r\n <!-- Left slot: search -->\r\n <div class=\"asc-table-toolbar-left\">\r\n @if (showSearch()) {\r\n <p-iconfield iconPosition=\"left\">\r\n <p-inputicon class=\"asc-search-icon\">\r\n <asc-svg-icon name=\"search\" />\r\n </p-inputicon>\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [placeholder]=\"msg.table.searchPlaceholder\"\r\n [ngModel]=\"globalFilter()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"handleGlobalFilter($event)\"\r\n class=\"asc-table-search-input\"\r\n />\r\n </p-iconfield>\r\n }\r\n </div>\r\n\r\n <!-- Right slot: column manager + export -->\r\n <div class=\"asc-table-toolbar-right\">\r\n @if (showColumnManager()) {\r\n <p-button\r\n #columnManagerBtn\r\n icon=\"pi pi-table\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\r\n (onClick)=\"columnManagerOverlay.toggle($event)\"\r\n />\r\n <!-- Column manager popover -->\r\n <p-popover #columnManagerOverlay>\r\n <div class=\"asc-column-manager\">\r\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\r\n @for (col of columnVisibility(); track col.field) {\r\n <div class=\"asc-column-manager-item\">\r\n <p-checkbox\r\n [ngModel]=\"col.visible\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [binary]=\"true\"\r\n [inputId]=\"'col-' + col.field\"\r\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\r\n />\r\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\r\n </div>\r\n }\r\n </div>\r\n </p-popover>\r\n }\r\n\r\n @if (exportable()) {\r\n <p-button\r\n icon=\"pi pi-download\"\r\n [label]=\"msg.table.exportCsv\"\r\n variant=\"outlined\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"exportCsv()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 PrimeNG Table \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 -->\r\n <p-table\r\n #dt\r\n [value]=\"data()\"\r\n [loading]=\"loading()\"\r\n [lazy]=\"lazy()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [rows]=\"rows()\"\r\n [first]=\"first()\"\r\n [paginator]=\"paginator()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\r\n [sortMode]=\"sortMode()\"\r\n [defaultSortOrder]=\"1\"\r\n [reorderableColumns]=\"reorderableColumns()\"\r\n [resizableColumns]=\"resizableColumns()\"\r\n [columnResizeMode]=\"'expand'\"\r\n [showGridlines]=\"showGridlines()\"\r\n [stripedRows]=\"stripedRows()\"\r\n [scrollable]=\"resolvedScrollable()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [selectionMode]=\"pSelectionMode()\"\r\n [(selection)]=\"selectedRowsModel\"\r\n [rowSelectable]=\"pRowSelectable\"\r\n [dataKey]=\"dataKey()\"\r\n [(contextMenuSelection)]=\"contextMenuRow\"\r\n [globalFilterFields]=\"globalFilterFields()\"\r\n [rowExpandMode]=\"'multiple'\"\r\n [class]=\"tableStyleClass()\"\r\n (onPage)=\"handlePage($event)\"\r\n (onSort)=\"handleSort($event)\"\r\n (onFilter)=\"handleFilter($event)\"\r\n (onLazyLoad)=\"handleLazyLoad($event)\"\r\n (onRowSelect)=\"rowSelected.emit($event)\"\r\n (onRowUnselect)=\"rowUnselected.emit($event)\"\r\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\r\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\r\n >\r\n\r\n <!-- \u2500\u2500 Context menu \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 -->\r\n\r\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 -->\r\n <ng-template #header>\r\n <tr>\r\n <!-- Expand toggle column -->\r\n @if (expandable()) {\r\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Selection column -->\r\n @if (selectionMode() === 'multiple') {\r\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\r\n style=\"width: 3rem\" [frozen]=\"true\">\r\n <p-tableHeaderCheckbox/>\r\n </th>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Row number column -->\r\n @if (showRowNumber()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-th asc-th-row-number\"\r\n style=\"width: 4rem; text-align: center\"\r\n >\r\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\r\n </th>\r\n }\r\n\r\n <!-- Data columns -->\r\n @for (cell of headerCells(); track cell.col.field) {\r\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\r\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\r\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\r\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\r\n </th>\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{\r\n col: cell.col,\r\n colspan: cell.colspan,\r\n rowspan: hasHeaderGroups() ? 2 : 1\r\n }\"\r\n />\r\n }\r\n }\r\n\r\n <!-- Actions column header -->\r\n @if (hasActionsColumn()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-th asc-th-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n style=\"text-align: center\"\r\n >\r\n {{ actionsHeader() ?? msg.table.actionsHeader }}\r\n </th>\r\n }\r\n </tr>\r\n\r\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\r\n @if (hasHeaderGroups()) {\r\n <tr>\r\n @for (col of subHeaderColumns(); track col.field) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\r\n />\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\r\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\r\n <th\r\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\r\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\r\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\r\n [pSortableColumnDisabled]=\"!col.sortable\"\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.headerAlign ?? 'left'\"\r\n [class]=\"col.headerClass ?? ''\"\r\n class=\"asc-th\"\r\n >\r\n <div class=\"asc-th-content\">\r\n <span class=\"asc-th-text\">{{ col.header }}</span>\r\n\r\n @if (col.sortable) {\r\n <p-sortIcon [field]=\"col.field\"/>\r\n }\r\n\r\n @if (col.filterable) {\r\n <p-column-filter\r\n [field]=\"col.field\"\r\n [type]=\"resolveFilterType(col)\"\r\n display=\"menu\"\r\n class=\"asc-col-filter\"\r\n />\r\n }\r\n </div>\r\n </th>\r\n </ng-template>\r\n\r\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 -->\r\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\r\n <tr\r\n [pSelectableRow]=\"row\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\r\n [pContextMenuRow]=\"row\"\r\n [class.asc-row-selected]=\"isSelected(row)\"\r\n [class.asc-row-expanded]=\"expanded\"\r\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\r\n (click)=\"rowClicked.emit(row)\"\r\n >\r\n <!-- Expand toggle -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\r\n <p-button\r\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pRowToggler]=\"row\"\r\n />\r\n </td>\r\n }\r\n\r\n <!-- Selection -->\r\n @if (selectionMode() === 'multiple') {\r\n @if (!selectionGroupField()) {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\r\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\"\r\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\r\n (click)=\"$event.stopPropagation()\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n />\r\n </td>\r\n }\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n }\r\n\r\n <!-- Row number cell -->\r\n @if (showRowNumber()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-td asc-td-row-number\"\r\n style=\"text-align: center\"\r\n >{{ rowIndex + 1 }}\r\n </td>\r\n }\r\n\r\n <!-- Data cells -->\r\n @for (col of visibleColumns(); track col.field) {\r\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"resolveCellClass(col, row)\"\r\n class=\"asc-td\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: getCellValue(row, col.field),\r\n row: row,\r\n index: rowIndex,\r\n column: col\r\n }\"\r\n />\r\n </td>\r\n }\r\n }\r\n\r\n <!-- Actions column -->\r\n @if (hasActionsColumn()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-td asc-td-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n @if (actionsDisplay() === 'dropdown') {\r\n <p-button\r\n class=\"asc-action-more\"\r\n icon=\"pi pi-ellipsis-v\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\r\n />\r\n } @else {\r\n <div class=\"asc-actions-wrap\">\r\n @for (action of getVisibleActions(row); track action.label) {\r\n @let builtin = action.iconSrc ? null : builtinIcon(action.icon);\r\n <p-button\r\n class=\"asc-action-btn\"\r\n [class.asc-action-btn--danger]=\"builtin === 'delete' || action.severity === 'danger'\"\r\n [icon]=\"action.iconSrc || builtin ? '' : (action.icon ?? '')\"\r\n [label]=\"action.label ?? ''\"\r\n [severity]=\"action.severity ?? 'secondary'\"\r\n [disabled]=\"action.disabled?.(row) ?? false\"\r\n [pTooltip]=\"action.tooltip ?? ''\"\r\n tooltipPosition=\"top\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (onClick)=\"action.command(row, rowIndex)\"\r\n >\r\n @if (action.iconSrc) {\r\n <ng-template #icon>\r\n <asc-icon [src]=\"action.iconSrc\" />\r\n </ng-template>\r\n } @else if (builtin) {\r\n <ng-template #icon>\r\n <asc-svg-icon [name]=\"builtin\" size=\"16px\" [class]=\"'asc-action-icon asc-action-icon--' + builtin\" />\r\n </ng-template>\r\n }\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\r\n @if (hasFooter()) {\r\n <ng-template #footer>\r\n <tr>\r\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (showRowNumber()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n\r\n @for (cell of footerCells(); track cell.col.field) {\r\n <td\r\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\r\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\r\n [class]=\"cell.col.headerClass ?? ''\"\r\n class=\"asc-td-footer\"\r\n >\r\n {{ cell.col.footer }}\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Row expand content \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 -->\r\n @if (expandable() && expandTpl()) {\r\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\r\n <tr class=\"asc-row-expansion\">\r\n <td [attr.colspan]=\"expandColspan()\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\r\n />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Loading skeleton \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 -->\r\n <ng-template #loadingbody>\r\n @for (i of skeletonRows(); track i) {\r\n <tr class=\"asc-row-skeleton\">\r\n @if (expandable()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (showRowNumber()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n\r\n @for (col of visibleColumns(); track col.field) {\r\n <td>\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n [width]=\"getSkeletonWidth(col)\"\r\n />\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Empty state \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 -->\r\n <ng-template #emptymessage>\r\n <tr>\r\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\r\n @if (emptyTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\r\n } @else {\r\n <div class=\"asc-empty-default\">\r\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\r\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\r\n </div>\r\n }\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n </p-table>\r\n\r\n <!-- Shared popup menu for dropdown action mode -->\r\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\r\n <ng-template #item let-item>\r\n <a class=\"p-menu-item-link\" [class.asc-menu-item--danger]=\"item.danger\" pRipple>\r\n @let builtin = item.iconSrc ? null : builtinIcon(item.icon);\r\n @if (item.iconSrc) {\r\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\r\n } @else if (builtin) {\r\n <asc-svg-icon [name]=\"builtin\" [class]=\"'p-menu-item-icon asc-action-icon asc-action-icon--' + builtin\" />\r\n } @else if (item.icon) {\r\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n </p-menu>\r\n\r\n</div>\r\n\r\n<!-- \u2500\u2500 Default cell template (text) \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 -->\r\n<!--\r\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\r\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\r\n-->\r\n<ng-template\r\n #defaultCell\r\n let-value\r\n let-row=\"row\"\r\n let-col=\"column\"\r\n>\r\n @switch (col?.type ?? 'text') {\r\n\r\n @case ('number') {\r\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\r\n }\r\n @case ('currency') {\r\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\r\n }\r\n @case ('date') {\r\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\r\n }\r\n @case ('datetime') {\r\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\r\n }\r\n @case ('boolean') {\r\n <i\r\n [class]=\"value\r\n ? 'pi pi-check-circle text-green-600'\r\n : 'pi pi-times-circle text-red-400'\"\r\n class=\"asc-cell-boolean\"\r\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\r\n ></i>\r\n }\r\n @case ('badge') {\r\n @if (resolveBadge(value, col); as badge) {\r\n <p-tag\r\n [value]=\"badge.label\"\r\n [severity]=\"mapSeverityToTag(badge.severity)\"\r\n [icon]=\"badge.icon ?? ''\"\r\n />\r\n } @else {\r\n <span>{{ value ?? '\u2014' }}</span>\r\n }\r\n }\r\n @case ('avatar') {\r\n <div class=\"asc-cell-avatar\">\r\n <p-avatar\r\n [label]=\"getInitials(value)\"\r\n shape=\"circle\"\r\n size=\"normal\"\r\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\r\n />\r\n <span>{{ value }}</span>\r\n </div>\r\n }\r\n @default {\r\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\r\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\r\n <span\r\n class=\"asc-cell-text\"\r\n [class.asc-cell-text-clamp]=\"textClamped\"\r\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\r\n tooltipPosition=\"right\"\r\n >{{ formatText(value, col?.format) }}</span>\r\n }\r\n\r\n }\r\n</ng-template>\r\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0);--p-datatable-row-background: var(--asc-surface-base);--p-datatable-row-hover-background: var(--asc-table-row-hover-bg);--p-datatable-footer-cell-background: var(--asc-table-row-hover-bg)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;line-height:18px;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;line-height:18px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:9px 8px!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:12px;font-weight:500;line-height:18px;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-action-icon{color:var(--asc-icon-primary)}.asc-action-icon--delete,.asc-menu-item--danger{color:var(--asc-icon-danger)}.p-button:disabled .asc-action-icon{color:var(--asc-icon-disabled)}.asc-search-icon{display:inline-flex;width:20px;height:20px;margin-top:-10px;color:var(--asc-icon-secondary)}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-width:0 0 1px 0;border-bottom-color:var(--asc-table-header-divider-bottom);background-image:linear-gradient(var(--asc-table-header-divider-top),var(--asc-table-header-divider-bottom));background-size:1px 100%;background-position:right top;background-repeat:no-repeat}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:last-child{background-image:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background-color:var(--asc-table-header-bg)}::ng-deep .asc-table-wrapper .p-datatable-sort-icon{color:var(--asc-icon-secondary)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button,::ng-deep .asc-table-wrapper .asc-action-more .p-button{height:auto;min-width:0;padding:2px 4px;gap:4px;border-radius:4px;font-size:12px;line-height:18px;font-weight:400;color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button:not(:disabled):hover,::ng-deep .asc-table-wrapper .asc-action-more .p-button:not(:disabled):hover{background:var(--asc-surface-hover);color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button .p-button-icon,::ng-deep .asc-table-wrapper .asc-action-more .p-button .p-button-icon{font-size:16px}::ng-deep .asc-table-wrapper .asc-action-btn .p-button.p-button-icon-only{width:auto}::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button,::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button:not(:disabled):hover{color:var(--asc-icon-danger)}::ng-deep .asc-table-wrapper .asc-action-more .p-button{width:24px;height:20px}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{font-size:14px}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-hoverable .p-datatable-tbody>tr:not(.p-datatable-row-selected):hover>.p-datatable-frozen-column{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i3$4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i3$4.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i3$4.FrozenColumn, selector: "[pFrozenColumn]", inputs: ["frozen", "alignFrozen"] }, { kind: "directive", type: i3$4.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i3$4.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "directive", type: i3$4.ContextMenuRow, selector: "[pContextMenuRow]", inputs: ["pContextMenuRow", "pContextMenuRowIndex", "pContextMenuRowDisabled"] }, { kind: "component", type: i3$4.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i3$4.TableRadioButton, selector: "p-tableRadioButton", inputs: ["value", "disabled", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableCheckbox, selector: "p-tableCheckbox", inputs: ["value", "disabled", "required", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i9.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i10.Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i11.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { 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: "ngmodule", type: ContextMenuModule }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i13.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i14.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i15.Ripple, selector: "[pRipple]" }, { kind: "component", type: AscIconComponent, selector: "asc-icon", inputs: ["src", "size", "width", "height"], outputs: ["loadError"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7305
7321
|
}
|
|
7306
7322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, decorators: [{
|
|
7307
7323
|
type: Component,
|
|
@@ -7324,7 +7340,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
7324
7340
|
RippleModule,
|
|
7325
7341
|
AscIconComponent,
|
|
7326
7342
|
AscSvgIconComponent,
|
|
7327
|
-
], providers: [DatePipe], template: "<!--\r\n @file asc-table.html\r\n AscTableComponent template\r\n\r\n Structure:\r\n .asc-table-wrapper\r\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\r\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\r\n \u2514\u2500\u2500 p-table\r\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\r\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\r\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\r\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\r\n-->\r\n\r\n<div class=\"asc-table-wrapper\">\r\n\r\n <!-- \u2500\u2500 Caption / Toolbar \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 -->\r\n\r\n <ng-template #defaultCaption>\r\n @if (showToolbar()) {\r\n <div class=\"asc-table-toolbar\">\r\n <!-- Left slot: search -->\r\n <div class=\"asc-table-toolbar-left\">\r\n @if (showSearch()) {\r\n <p-iconfield iconPosition=\"left\">\r\n <p-inputicon class=\"asc-search-icon\">\r\n <asc-svg-icon name=\"search\" />\r\n </p-inputicon>\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [placeholder]=\"msg.table.searchPlaceholder\"\r\n [ngModel]=\"globalFilter()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"handleGlobalFilter($event)\"\r\n class=\"asc-table-search-input\"\r\n />\r\n </p-iconfield>\r\n }\r\n </div>\r\n\r\n <!-- Right slot: column manager + export -->\r\n <div class=\"asc-table-toolbar-right\">\r\n @if (showColumnManager()) {\r\n <p-button\r\n #columnManagerBtn\r\n icon=\"pi pi-table\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\r\n (onClick)=\"columnManagerOverlay.toggle($event)\"\r\n />\r\n <!-- Column manager popover -->\r\n <p-popover #columnManagerOverlay>\r\n <div class=\"asc-column-manager\">\r\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\r\n @for (col of columnVisibility(); track col.field) {\r\n <div class=\"asc-column-manager-item\">\r\n <p-checkbox\r\n [ngModel]=\"col.visible\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [binary]=\"true\"\r\n [inputId]=\"'col-' + col.field\"\r\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\r\n />\r\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\r\n </div>\r\n }\r\n </div>\r\n </p-popover>\r\n }\r\n\r\n @if (exportable()) {\r\n <p-button\r\n icon=\"pi pi-download\"\r\n [label]=\"msg.table.exportCsv\"\r\n variant=\"outlined\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"exportCsv()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 PrimeNG Table \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 -->\r\n <p-table\r\n #dt\r\n [value]=\"data()\"\r\n [loading]=\"loading()\"\r\n [lazy]=\"lazy()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [rows]=\"rows()\"\r\n [first]=\"first()\"\r\n [paginator]=\"paginator()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\r\n [sortMode]=\"sortMode()\"\r\n [defaultSortOrder]=\"1\"\r\n [reorderableColumns]=\"reorderableColumns()\"\r\n [resizableColumns]=\"resizableColumns()\"\r\n [columnResizeMode]=\"'expand'\"\r\n [showGridlines]=\"showGridlines()\"\r\n [stripedRows]=\"stripedRows()\"\r\n [scrollable]=\"resolvedScrollable()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [selectionMode]=\"pSelectionMode()\"\r\n [(selection)]=\"selectedRowsModel\"\r\n [rowSelectable]=\"pRowSelectable\"\r\n [dataKey]=\"dataKey()\"\r\n [(contextMenuSelection)]=\"contextMenuRow\"\r\n [globalFilterFields]=\"globalFilterFields()\"\r\n [rowExpandMode]=\"'multiple'\"\r\n [class]=\"tableStyleClass()\"\r\n (onPage)=\"handlePage($event)\"\r\n (onSort)=\"handleSort($event)\"\r\n (onFilter)=\"handleFilter($event)\"\r\n (onLazyLoad)=\"handleLazyLoad($event)\"\r\n (onRowSelect)=\"rowSelected.emit($event)\"\r\n (onRowUnselect)=\"rowUnselected.emit($event)\"\r\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\r\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\r\n >\r\n\r\n <!-- \u2500\u2500 Context menu \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 -->\r\n\r\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 -->\r\n <ng-template #header>\r\n <tr>\r\n <!-- Expand toggle column -->\r\n @if (expandable()) {\r\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Selection column -->\r\n @if (selectionMode() === 'multiple') {\r\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\r\n style=\"width: 3rem\" [frozen]=\"true\">\r\n <p-tableHeaderCheckbox/>\r\n </th>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Row number column -->\r\n @if (showRowNumber()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-th asc-th-row-number\"\r\n style=\"width: 4rem; text-align: center\"\r\n >\r\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\r\n </th>\r\n }\r\n\r\n <!-- Data columns -->\r\n @for (cell of headerCells(); track cell.col.field) {\r\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\r\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\r\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\r\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\r\n </th>\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{\r\n col: cell.col,\r\n colspan: cell.colspan,\r\n rowspan: hasHeaderGroups() ? 2 : 1\r\n }\"\r\n />\r\n }\r\n }\r\n\r\n <!-- Actions column header -->\r\n @if (hasActionsColumn()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-th asc-th-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n style=\"text-align: center\"\r\n >\r\n {{ actionsHeader() ?? msg.table.actionsHeader }}\r\n </th>\r\n }\r\n </tr>\r\n\r\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\r\n @if (hasHeaderGroups()) {\r\n <tr>\r\n @for (col of subHeaderColumns(); track col.field) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\r\n />\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\r\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\r\n <th\r\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\r\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\r\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\r\n [pSortableColumnDisabled]=\"!col.sortable\"\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"col.headerClass ?? ''\"\r\n class=\"asc-th\"\r\n >\r\n <div class=\"asc-th-content\">\r\n <span class=\"asc-th-text\">{{ col.header }}</span>\r\n\r\n @if (col.sortable) {\r\n <p-sortIcon [field]=\"col.field\"/>\r\n }\r\n\r\n @if (col.filterable) {\r\n <p-column-filter\r\n [field]=\"col.field\"\r\n [type]=\"resolveFilterType(col)\"\r\n display=\"menu\"\r\n class=\"asc-col-filter\"\r\n />\r\n }\r\n </div>\r\n </th>\r\n </ng-template>\r\n\r\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 -->\r\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\r\n <tr\r\n [pSelectableRow]=\"row\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\r\n [pContextMenuRow]=\"row\"\r\n [class.asc-row-selected]=\"isSelected(row)\"\r\n [class.asc-row-expanded]=\"expanded\"\r\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\r\n (click)=\"rowClicked.emit(row)\"\r\n >\r\n <!-- Expand toggle -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\r\n <p-button\r\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pRowToggler]=\"row\"\r\n />\r\n </td>\r\n }\r\n\r\n <!-- Selection -->\r\n @if (selectionMode() === 'multiple') {\r\n @if (!selectionGroupField()) {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\r\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\"\r\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\r\n (click)=\"$event.stopPropagation()\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n />\r\n </td>\r\n }\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n }\r\n\r\n <!-- Row number cell -->\r\n @if (showRowNumber()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-td asc-td-row-number\"\r\n style=\"text-align: center\"\r\n >{{ rowIndex + 1 }}\r\n </td>\r\n }\r\n\r\n <!-- Data cells -->\r\n @for (col of visibleColumns(); track col.field) {\r\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"resolveCellClass(col, row)\"\r\n class=\"asc-td\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: getCellValue(row, col.field),\r\n row: row,\r\n index: rowIndex,\r\n column: col\r\n }\"\r\n />\r\n </td>\r\n }\r\n }\r\n\r\n <!-- Actions column -->\r\n @if (hasActionsColumn()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-td asc-td-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n @if (actionsDisplay() === 'dropdown') {\r\n <p-button\r\n class=\"asc-action-more\"\r\n icon=\"pi pi-ellipsis-v\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\r\n />\r\n } @else {\r\n <div class=\"asc-actions-wrap\">\r\n @for (action of getVisibleActions(row); track action.label) {\r\n @let builtin = action.iconSrc ? null : builtinIcon(action.icon);\r\n <p-button\r\n class=\"asc-action-btn\"\r\n [class.asc-action-btn--danger]=\"builtin === 'delete' || action.severity === 'danger'\"\r\n [icon]=\"action.iconSrc || builtin ? '' : (action.icon ?? '')\"\r\n [label]=\"action.label ?? ''\"\r\n [severity]=\"action.severity ?? 'secondary'\"\r\n [disabled]=\"action.disabled?.(row) ?? false\"\r\n [pTooltip]=\"action.tooltip ?? ''\"\r\n tooltipPosition=\"top\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (onClick)=\"action.command(row, rowIndex)\"\r\n >\r\n @if (action.iconSrc) {\r\n <ng-template #icon>\r\n <asc-icon [src]=\"action.iconSrc\" />\r\n </ng-template>\r\n } @else if (builtin) {\r\n <ng-template #icon>\r\n <asc-svg-icon [name]=\"builtin\" size=\"16px\" [class]=\"'asc-action-icon asc-action-icon--' + builtin\" />\r\n </ng-template>\r\n }\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\r\n @if (hasFooter()) {\r\n <ng-template #footer>\r\n <tr>\r\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (showRowNumber()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n\r\n @for (cell of footerCells(); track cell.col.field) {\r\n <td\r\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\r\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\r\n [class]=\"cell.col.headerClass ?? ''\"\r\n class=\"asc-td-footer\"\r\n >\r\n {{ cell.col.footer }}\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Row expand content \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 -->\r\n @if (expandable() && expandTpl()) {\r\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\r\n <tr class=\"asc-row-expansion\">\r\n <td [attr.colspan]=\"expandColspan()\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\r\n />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Loading skeleton \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 -->\r\n <ng-template #loadingbody>\r\n @for (i of skeletonRows(); track i) {\r\n <tr class=\"asc-row-skeleton\">\r\n @if (expandable()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (showRowNumber()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n\r\n @for (col of visibleColumns(); track col.field) {\r\n <td>\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n [width]=\"getSkeletonWidth(col)\"\r\n />\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Empty state \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 -->\r\n <ng-template #emptymessage>\r\n <tr>\r\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\r\n @if (emptyTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\r\n } @else {\r\n <div class=\"asc-empty-default\">\r\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\r\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\r\n </div>\r\n }\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n </p-table>\r\n\r\n <!-- Shared popup menu for dropdown action mode -->\r\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\r\n <ng-template #item let-item>\r\n <a class=\"p-menu-item-link\" [class.asc-menu-item--danger]=\"item.danger\" pRipple>\r\n @let builtin = item.iconSrc ? null : builtinIcon(item.icon);\r\n @if (item.iconSrc) {\r\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\r\n } @else if (builtin) {\r\n <asc-svg-icon [name]=\"builtin\" [class]=\"'p-menu-item-icon asc-action-icon asc-action-icon--' + builtin\" />\r\n } @else if (item.icon) {\r\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n </p-menu>\r\n\r\n</div>\r\n\r\n<!-- \u2500\u2500 Default cell template (text) \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 -->\r\n<!--\r\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\r\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\r\n-->\r\n<ng-template\r\n #defaultCell\r\n let-value\r\n let-row=\"row\"\r\n let-col=\"column\"\r\n>\r\n @switch (col?.type ?? 'text') {\r\n\r\n @case ('number') {\r\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\r\n }\r\n @case ('currency') {\r\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\r\n }\r\n @case ('date') {\r\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\r\n }\r\n @case ('datetime') {\r\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\r\n }\r\n @case ('boolean') {\r\n <i\r\n [class]=\"value\r\n ? 'pi pi-check-circle text-green-600'\r\n : 'pi pi-times-circle text-red-400'\"\r\n class=\"asc-cell-boolean\"\r\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\r\n ></i>\r\n }\r\n @case ('badge') {\r\n @if (resolveBadge(value, col); as badge) {\r\n <p-tag\r\n [value]=\"badge.label\"\r\n [severity]=\"mapSeverityToTag(badge.severity)\"\r\n [icon]=\"badge.icon ?? ''\"\r\n />\r\n } @else {\r\n <span>{{ value ?? '\u2014' }}</span>\r\n }\r\n }\r\n @case ('avatar') {\r\n <div class=\"asc-cell-avatar\">\r\n <p-avatar\r\n [label]=\"getInitials(value)\"\r\n shape=\"circle\"\r\n size=\"normal\"\r\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\r\n />\r\n <span>{{ value }}</span>\r\n </div>\r\n }\r\n @default {\r\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\r\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\r\n <span\r\n class=\"asc-cell-text\"\r\n [class.asc-cell-text-clamp]=\"textClamped\"\r\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\r\n tooltipPosition=\"right\"\r\n >{{ formatText(value, col?.format) }}</span>\r\n }\r\n\r\n }\r\n</ng-template>\r\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0);--p-datatable-row-background: var(--asc-surface-base);--p-datatable-row-hover-background: var(--asc-table-row-hover-bg);--p-datatable-footer-cell-background: var(--asc-table-row-hover-bg)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;line-height:18px;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;line-height:18px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:9px 8px!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:12px;font-weight:500;line-height:18px;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-action-icon{color:var(--asc-icon-primary)}.asc-action-icon--delete,.asc-menu-item--danger{color:var(--asc-icon-danger)}.p-button:disabled .asc-action-icon{color:var(--asc-icon-disabled)}.asc-search-icon{display:inline-flex;width:20px;height:20px;margin-top:-10px;color:var(--asc-icon-secondary)}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-width:0 0 1px 0;border-bottom-color:var(--asc-table-header-divider-bottom);background-image:linear-gradient(var(--asc-table-header-divider-top),var(--asc-table-header-divider-bottom));background-size:1px 100%;background-position:right top;background-repeat:no-repeat}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:last-child{background-image:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background-color:var(--asc-table-header-bg)}::ng-deep .asc-table-wrapper .p-datatable-sort-icon{color:var(--asc-icon-secondary)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button,::ng-deep .asc-table-wrapper .asc-action-more .p-button{height:auto;min-width:0;padding:2px 4px;gap:4px;border-radius:4px;font-size:12px;line-height:18px;font-weight:400;color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button:not(:disabled):hover,::ng-deep .asc-table-wrapper .asc-action-more .p-button:not(:disabled):hover{background:var(--asc-surface-hover);color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button .p-button-icon,::ng-deep .asc-table-wrapper .asc-action-more .p-button .p-button-icon{font-size:16px}::ng-deep .asc-table-wrapper .asc-action-btn .p-button.p-button-icon-only{width:auto}::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button,::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button:not(:disabled):hover{color:var(--asc-icon-danger)}::ng-deep .asc-table-wrapper .asc-action-more .p-button{width:24px;height:20px}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{font-size:14px}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-hoverable .p-datatable-tbody>tr:not(.p-datatable-row-selected):hover>.p-datatable-frozen-column{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"] }]
|
|
7343
|
+
], providers: [DatePipe], template: "<!--\r\n @file asc-table.html\r\n AscTableComponent template\r\n\r\n Structure:\r\n .asc-table-wrapper\r\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\r\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\r\n \u2514\u2500\u2500 p-table\r\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\r\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\r\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\r\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\r\n-->\r\n\r\n<div class=\"asc-table-wrapper\">\r\n\r\n <!-- \u2500\u2500 Caption / Toolbar \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 -->\r\n\r\n <ng-template #defaultCaption>\r\n @if (showToolbar()) {\r\n <div class=\"asc-table-toolbar\">\r\n <!-- Left slot: search -->\r\n <div class=\"asc-table-toolbar-left\">\r\n @if (showSearch()) {\r\n <p-iconfield iconPosition=\"left\">\r\n <p-inputicon class=\"asc-search-icon\">\r\n <asc-svg-icon name=\"search\" />\r\n </p-inputicon>\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [placeholder]=\"msg.table.searchPlaceholder\"\r\n [ngModel]=\"globalFilter()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"handleGlobalFilter($event)\"\r\n class=\"asc-table-search-input\"\r\n />\r\n </p-iconfield>\r\n }\r\n </div>\r\n\r\n <!-- Right slot: column manager + export -->\r\n <div class=\"asc-table-toolbar-right\">\r\n @if (showColumnManager()) {\r\n <p-button\r\n #columnManagerBtn\r\n icon=\"pi pi-table\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\r\n (onClick)=\"columnManagerOverlay.toggle($event)\"\r\n />\r\n <!-- Column manager popover -->\r\n <p-popover #columnManagerOverlay>\r\n <div class=\"asc-column-manager\">\r\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\r\n @for (col of columnVisibility(); track col.field) {\r\n <div class=\"asc-column-manager-item\">\r\n <p-checkbox\r\n [ngModel]=\"col.visible\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [binary]=\"true\"\r\n [inputId]=\"'col-' + col.field\"\r\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\r\n />\r\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\r\n </div>\r\n }\r\n </div>\r\n </p-popover>\r\n }\r\n\r\n @if (exportable()) {\r\n <p-button\r\n icon=\"pi pi-download\"\r\n [label]=\"msg.table.exportCsv\"\r\n variant=\"outlined\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"exportCsv()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 PrimeNG Table \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 -->\r\n <p-table\r\n #dt\r\n [value]=\"data()\"\r\n [loading]=\"loading()\"\r\n [lazy]=\"lazy()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [rows]=\"rows()\"\r\n [first]=\"first()\"\r\n [paginator]=\"paginator()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\r\n [sortMode]=\"sortMode()\"\r\n [defaultSortOrder]=\"1\"\r\n [reorderableColumns]=\"reorderableColumns()\"\r\n [resizableColumns]=\"resizableColumns()\"\r\n [columnResizeMode]=\"'expand'\"\r\n [showGridlines]=\"showGridlines()\"\r\n [stripedRows]=\"stripedRows()\"\r\n [scrollable]=\"resolvedScrollable()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [selectionMode]=\"pSelectionMode()\"\r\n [(selection)]=\"selectedRowsModel\"\r\n [rowSelectable]=\"pRowSelectable\"\r\n [dataKey]=\"dataKey()\"\r\n [(contextMenuSelection)]=\"contextMenuRow\"\r\n [globalFilterFields]=\"globalFilterFields()\"\r\n [rowExpandMode]=\"'multiple'\"\r\n [class]=\"tableStyleClass()\"\r\n (onPage)=\"handlePage($event)\"\r\n (onSort)=\"handleSort($event)\"\r\n (onFilter)=\"handleFilter($event)\"\r\n (onLazyLoad)=\"handleLazyLoad($event)\"\r\n (onRowSelect)=\"rowSelected.emit($event)\"\r\n (onRowUnselect)=\"rowUnselected.emit($event)\"\r\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\r\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\r\n >\r\n\r\n <!-- \u2500\u2500 Context menu \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 -->\r\n\r\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 -->\r\n <ng-template #header>\r\n <tr>\r\n <!-- Expand toggle column -->\r\n @if (expandable()) {\r\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Selection column -->\r\n @if (selectionMode() === 'multiple') {\r\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\r\n style=\"width: 3rem\" [frozen]=\"true\">\r\n <p-tableHeaderCheckbox/>\r\n </th>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Row number column -->\r\n @if (showRowNumber()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-th asc-th-row-number\"\r\n style=\"width: 4rem; text-align: center\"\r\n >\r\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\r\n </th>\r\n }\r\n\r\n <!-- Data columns -->\r\n @for (cell of headerCells(); track cell.col.field) {\r\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\r\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\r\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\r\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\r\n </th>\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{\r\n col: cell.col,\r\n colspan: cell.colspan,\r\n rowspan: hasHeaderGroups() ? 2 : 1\r\n }\"\r\n />\r\n }\r\n }\r\n\r\n <!-- Actions column header -->\r\n @if (hasActionsColumn()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-th asc-th-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n style=\"text-align: center\"\r\n >\r\n {{ actionsHeader() ?? msg.table.actionsHeader }}\r\n </th>\r\n }\r\n </tr>\r\n\r\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\r\n @if (hasHeaderGroups()) {\r\n <tr>\r\n @for (col of subHeaderColumns(); track col.field) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\r\n />\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\r\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\r\n <th\r\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\r\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\r\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\r\n [pSortableColumnDisabled]=\"!col.sortable\"\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.headerAlign ?? 'left'\"\r\n [class]=\"col.headerClass ?? ''\"\r\n class=\"asc-th\"\r\n >\r\n <div class=\"asc-th-content\">\r\n <span class=\"asc-th-text\">{{ col.header }}</span>\r\n\r\n @if (col.sortable) {\r\n <p-sortIcon [field]=\"col.field\"/>\r\n }\r\n\r\n @if (col.filterable) {\r\n <p-column-filter\r\n [field]=\"col.field\"\r\n [type]=\"resolveFilterType(col)\"\r\n display=\"menu\"\r\n class=\"asc-col-filter\"\r\n />\r\n }\r\n </div>\r\n </th>\r\n </ng-template>\r\n\r\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 -->\r\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\r\n <tr\r\n [pSelectableRow]=\"row\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\r\n [pContextMenuRow]=\"row\"\r\n [class.asc-row-selected]=\"isSelected(row)\"\r\n [class.asc-row-expanded]=\"expanded\"\r\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\r\n (click)=\"rowClicked.emit(row)\"\r\n >\r\n <!-- Expand toggle -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\r\n <p-button\r\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pRowToggler]=\"row\"\r\n />\r\n </td>\r\n }\r\n\r\n <!-- Selection -->\r\n @if (selectionMode() === 'multiple') {\r\n @if (!selectionGroupField()) {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\r\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\"\r\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\r\n (click)=\"$event.stopPropagation()\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n />\r\n </td>\r\n }\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n }\r\n\r\n <!-- Row number cell -->\r\n @if (showRowNumber()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-td asc-td-row-number\"\r\n style=\"text-align: center\"\r\n >{{ rowIndex + 1 }}\r\n </td>\r\n }\r\n\r\n <!-- Data cells -->\r\n @for (col of visibleColumns(); track col.field) {\r\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"resolveCellClass(col, row)\"\r\n class=\"asc-td\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: getCellValue(row, col.field),\r\n row: row,\r\n index: rowIndex,\r\n column: col\r\n }\"\r\n />\r\n </td>\r\n }\r\n }\r\n\r\n <!-- Actions column -->\r\n @if (hasActionsColumn()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-td asc-td-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n @if (actionsDisplay() === 'dropdown') {\r\n <p-button\r\n class=\"asc-action-more\"\r\n icon=\"pi pi-ellipsis-v\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\r\n />\r\n } @else {\r\n <div class=\"asc-actions-wrap\">\r\n @for (action of getVisibleActions(row); track action.label) {\r\n @let builtin = action.iconSrc ? null : builtinIcon(action.icon);\r\n <p-button\r\n class=\"asc-action-btn\"\r\n [class.asc-action-btn--danger]=\"builtin === 'delete' || action.severity === 'danger'\"\r\n [icon]=\"action.iconSrc || builtin ? '' : (action.icon ?? '')\"\r\n [label]=\"action.label ?? ''\"\r\n [severity]=\"action.severity ?? 'secondary'\"\r\n [disabled]=\"action.disabled?.(row) ?? false\"\r\n [pTooltip]=\"action.tooltip ?? ''\"\r\n tooltipPosition=\"top\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (onClick)=\"action.command(row, rowIndex)\"\r\n >\r\n @if (action.iconSrc) {\r\n <ng-template #icon>\r\n <asc-icon [src]=\"action.iconSrc\" />\r\n </ng-template>\r\n } @else if (builtin) {\r\n <ng-template #icon>\r\n <asc-svg-icon [name]=\"builtin\" size=\"16px\" [class]=\"'asc-action-icon asc-action-icon--' + builtin\" />\r\n </ng-template>\r\n }\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\r\n @if (hasFooter()) {\r\n <ng-template #footer>\r\n <tr>\r\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (showRowNumber()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n\r\n @for (cell of footerCells(); track cell.col.field) {\r\n <td\r\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\r\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\r\n [class]=\"cell.col.headerClass ?? ''\"\r\n class=\"asc-td-footer\"\r\n >\r\n {{ cell.col.footer }}\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Row expand content \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 -->\r\n @if (expandable() && expandTpl()) {\r\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\r\n <tr class=\"asc-row-expansion\">\r\n <td [attr.colspan]=\"expandColspan()\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\r\n />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Loading skeleton \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 -->\r\n <ng-template #loadingbody>\r\n @for (i of skeletonRows(); track i) {\r\n <tr class=\"asc-row-skeleton\">\r\n @if (expandable()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (showRowNumber()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n\r\n @for (col of visibleColumns(); track col.field) {\r\n <td>\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n [width]=\"getSkeletonWidth(col)\"\r\n />\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Empty state \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 -->\r\n <ng-template #emptymessage>\r\n <tr>\r\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\r\n @if (emptyTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\r\n } @else {\r\n <div class=\"asc-empty-default\">\r\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\r\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\r\n </div>\r\n }\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n </p-table>\r\n\r\n <!-- Shared popup menu for dropdown action mode -->\r\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\r\n <ng-template #item let-item>\r\n <a class=\"p-menu-item-link\" [class.asc-menu-item--danger]=\"item.danger\" pRipple>\r\n @let builtin = item.iconSrc ? null : builtinIcon(item.icon);\r\n @if (item.iconSrc) {\r\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\r\n } @else if (builtin) {\r\n <asc-svg-icon [name]=\"builtin\" [class]=\"'p-menu-item-icon asc-action-icon asc-action-icon--' + builtin\" />\r\n } @else if (item.icon) {\r\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n </p-menu>\r\n\r\n</div>\r\n\r\n<!-- \u2500\u2500 Default cell template (text) \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 -->\r\n<!--\r\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\r\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\r\n-->\r\n<ng-template\r\n #defaultCell\r\n let-value\r\n let-row=\"row\"\r\n let-col=\"column\"\r\n>\r\n @switch (col?.type ?? 'text') {\r\n\r\n @case ('number') {\r\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\r\n }\r\n @case ('currency') {\r\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\r\n }\r\n @case ('date') {\r\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\r\n }\r\n @case ('datetime') {\r\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\r\n }\r\n @case ('boolean') {\r\n <i\r\n [class]=\"value\r\n ? 'pi pi-check-circle text-green-600'\r\n : 'pi pi-times-circle text-red-400'\"\r\n class=\"asc-cell-boolean\"\r\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\r\n ></i>\r\n }\r\n @case ('badge') {\r\n @if (resolveBadge(value, col); as badge) {\r\n <p-tag\r\n [value]=\"badge.label\"\r\n [severity]=\"mapSeverityToTag(badge.severity)\"\r\n [icon]=\"badge.icon ?? ''\"\r\n />\r\n } @else {\r\n <span>{{ value ?? '\u2014' }}</span>\r\n }\r\n }\r\n @case ('avatar') {\r\n <div class=\"asc-cell-avatar\">\r\n <p-avatar\r\n [label]=\"getInitials(value)\"\r\n shape=\"circle\"\r\n size=\"normal\"\r\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\r\n />\r\n <span>{{ value }}</span>\r\n </div>\r\n }\r\n @default {\r\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\r\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\r\n <span\r\n class=\"asc-cell-text\"\r\n [class.asc-cell-text-clamp]=\"textClamped\"\r\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\r\n tooltipPosition=\"right\"\r\n >{{ formatText(value, col?.format) }}</span>\r\n }\r\n\r\n }\r\n</ng-template>\r\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0);--p-datatable-row-background: var(--asc-surface-base);--p-datatable-row-hover-background: var(--asc-table-row-hover-bg);--p-datatable-footer-cell-background: var(--asc-table-row-hover-bg)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;line-height:18px;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;line-height:18px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:9px 8px!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:12px;font-weight:500;line-height:18px;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-action-icon{color:var(--asc-icon-primary)}.asc-action-icon--delete,.asc-menu-item--danger{color:var(--asc-icon-danger)}.p-button:disabled .asc-action-icon{color:var(--asc-icon-disabled)}.asc-search-icon{display:inline-flex;width:20px;height:20px;margin-top:-10px;color:var(--asc-icon-secondary)}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-width:0 0 1px 0;border-bottom-color:var(--asc-table-header-divider-bottom);background-image:linear-gradient(var(--asc-table-header-divider-top),var(--asc-table-header-divider-bottom));background-size:1px 100%;background-position:right top;background-repeat:no-repeat}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:last-child{background-image:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background-color:var(--asc-table-header-bg)}::ng-deep .asc-table-wrapper .p-datatable-sort-icon{color:var(--asc-icon-secondary)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button,::ng-deep .asc-table-wrapper .asc-action-more .p-button{height:auto;min-width:0;padding:2px 4px;gap:4px;border-radius:4px;font-size:12px;line-height:18px;font-weight:400;color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button:not(:disabled):hover,::ng-deep .asc-table-wrapper .asc-action-more .p-button:not(:disabled):hover{background:var(--asc-surface-hover);color:var(--asc-text-primary)}::ng-deep .asc-table-wrapper .asc-action-btn .p-button .p-button-icon,::ng-deep .asc-table-wrapper .asc-action-more .p-button .p-button-icon{font-size:16px}::ng-deep .asc-table-wrapper .asc-action-btn .p-button.p-button-icon-only{width:auto}::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button,::ng-deep .asc-table-wrapper .asc-action-btn--danger .p-button:not(:disabled):hover{color:var(--asc-icon-danger)}::ng-deep .asc-table-wrapper .asc-action-more .p-button{width:24px;height:20px}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{font-size:14px}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-hoverable .p-datatable-tbody>tr:not(.p-datatable-row-selected):hover>.p-datatable-frozen-column{background:var(--asc-table-row-hover-bg)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"] }]
|
|
7328
7344
|
}], propDecorators: { cellTpls: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AscTableCellDirective), { isSignal: true }] }], expandTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscTableExpandDirective), { isSignal: true }] }], emptyTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscTableEmptyDirective), { isSignal: true }] }], captionTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscTableCaptionDirective), { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], actionsDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsDisplay", required: false }] }], contextMenuActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuActions", required: false }] }], selectionActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionActions", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], sortMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortMode", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], rowDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowDisabled", required: false }] }], selectionGroupField: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionGroupField", required: false }] }], checkedField: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedField", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], showGridlines: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGridlines", required: false }] }], stripedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "stripedRows", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], showToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToolbar", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], showColumnManager: [{ type: i0.Input, args: [{ isSignal: true, alias: "showColumnManager", required: false }] }], exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], skeletonRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonRows", required: false }] }], showRowNumber: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRowNumber", required: false }] }], rowNumberHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowNumberHeader", required: false }] }], actionsHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsHeader", required: false }] }], actionsWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsWidth", required: false }] }], actionsMinWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsMinWidth", required: false }] }], actionsMaxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsMaxWidth", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], rowSelected: [{ type: i0.Output, args: ["rowSelected"] }], rowUnselected: [{ type: i0.Output, args: ["rowUnselected"] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], rowExpanded: [{ type: i0.Output, args: ["rowExpanded"] }], rowCollapsed: [{ type: i0.Output, args: ["rowCollapsed"] }], groupCheckedChange: [{ type: i0.Output, args: ["groupCheckedChange"] }] } });
|
|
7329
7345
|
|
|
7330
7346
|
// ─────────────────────────────────────────────────────────────────────────────
|