@aseansc/ui 5.8.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -43
- package/fesm2022/aseansc-ui.mjs +630 -614
- 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 +24 -11
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
|
// ─────────────────────────────────────────────────────────────────────────────
|