@aseansc/ui 5.1.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/fesm2022/aseansc-ui.mjs +98 -41
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_semantic.scss +213 -191
- package/tokens/layout/_menu.scss +5 -3
- package/tokens/preset.css +22 -5
- package/types/aseansc-ui.d.ts +18 -2
package/fesm2022/aseansc-ui.mjs
CHANGED
|
@@ -425,9 +425,9 @@ const ASC_PRESET = definePreset(Aura, {
|
|
|
425
425
|
formField: {
|
|
426
426
|
background: 'var(--asc-formfield-bg, #F2F3F5)',
|
|
427
427
|
disabledBackground: 'var(--asc-formfield-disabled-bg, #F2F3F5)', // Aura mặc định {surface.200} = #c0c0c2 — quá đậm
|
|
428
|
-
borderColor: 'var(--asc-formfield-border-color, #DEDFE0)',
|
|
428
|
+
borderColor: 'var(--asc-formfield-border-color, #DEDFE0)', // input/border/default
|
|
429
429
|
hoverBorderColor: '{surface.400}',
|
|
430
|
-
focusBorderColor: '
|
|
430
|
+
focusBorderColor: 'var(--asc-formfield-focus-border-color, #A7A7A8)', // input/border/focus (trước: blue.500)
|
|
431
431
|
invalidBorderColor: '{red.500}', // Text/Border/Icon.danger = #ef4444 = red.500
|
|
432
432
|
color: '{grey.900}', // Text Input filled text = Text.primary
|
|
433
433
|
placeholderColor: 'var(--asc-formfield-placeholder-color, #5B5B5C)',
|
|
@@ -436,7 +436,7 @@ const ASC_PRESET = definePreset(Aura, {
|
|
|
436
436
|
floatLabelFocusColor: '{blue.600}',
|
|
437
437
|
floatLabelActiveColor: '{surface.500}',
|
|
438
438
|
floatLabelInvalidColor: '{red.500}',
|
|
439
|
-
iconColor: '
|
|
439
|
+
iconColor: 'var(--asc-icon-primary, #0F0F0F)', // Figma Input: icon primary (trước: surface.400)
|
|
440
440
|
shadow: 'none',
|
|
441
441
|
},
|
|
442
442
|
},
|
|
@@ -1654,7 +1654,7 @@ class AscAutoCompleteComponent extends BaseControlAccessor {
|
|
|
1654
1654
|
(completeMethod)="completeMethod.emit($event.query)"
|
|
1655
1655
|
(onBlur)="markTouched()"
|
|
1656
1656
|
/>
|
|
1657
|
-
`, isInline: true, styles: [":host{display:block}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100
|
|
1657
|
+
`, isInline: true, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100%;font-size:14px;font-weight:400;line-height:20px}:host ::ng-deep input.p-autocomplete-input{height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-input-multiple{min-height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-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-autocomplete-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-autocomplete-input:disabled,:host ::ng-deep .p-autocomplete.p-disabled .p-autocomplete-input-multiple{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\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: "component", type: AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1658
1658
|
}
|
|
1659
1659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscAutoCompleteComponent, decorators: [{
|
|
1660
1660
|
type: Component,
|
|
@@ -1682,7 +1682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1682
1682
|
(completeMethod)="completeMethod.emit($event.query)"
|
|
1683
1683
|
(onBlur)="markTouched()"
|
|
1684
1684
|
/>
|
|
1685
|
-
`, styles: [":host{display:block}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100
|
|
1685
|
+
`, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100%;font-size:14px;font-weight:400;line-height:20px}:host ::ng-deep input.p-autocomplete-input{height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-input-multiple{min-height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-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-autocomplete-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-autocomplete-input:disabled,:host ::ng-deep .p-autocomplete.p-disabled .p-autocomplete-input-multiple{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\n"] }]
|
|
1686
1686
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], forceSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceSelection", required: false }] }], dropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdown", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }] } });
|
|
1687
1687
|
|
|
1688
1688
|
/**
|
|
@@ -1751,7 +1751,7 @@ class AscInputMaskComponent extends BaseControlAccessor {
|
|
|
1751
1751
|
(onComplete)="complete.emit()"
|
|
1752
1752
|
(onBlur)="markTouched()"
|
|
1753
1753
|
/>
|
|
1754
|
-
`, isInline: true, styles: [":host{display:block}:host ::ng-deep .p-inputmask{width:100
|
|
1754
|
+
`, isInline: true, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-inputmask{width:100%;height:var(--asc-h-md);font-size:14px;font-weight:400;line-height:20px;border-radius:12px}:host ::ng-deep p-inputmask:has(.p-inputmask-clear-icon) .p-inputmask{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputmask-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-inputmask-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-inputmask:disabled{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\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: "component", type: InputMask, selector: "p-inputmask, p-inputMask, p-input-mask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "readonly", "unmask", "characterPattern", "autofocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1755
1755
|
}
|
|
1756
1756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputMaskComponent, decorators: [{
|
|
1757
1757
|
type: Component,
|
|
@@ -1775,7 +1775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1775
1775
|
(onComplete)="complete.emit()"
|
|
1776
1776
|
(onBlur)="markTouched()"
|
|
1777
1777
|
/>
|
|
1778
|
-
`, styles: [":host{display:block}:host ::ng-deep .p-inputmask{width:100
|
|
1778
|
+
`, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-inputmask{width:100%;height:var(--asc-h-md);font-size:14px;font-weight:400;line-height:20px;border-radius:12px}:host ::ng-deep p-inputmask:has(.p-inputmask-clear-icon) .p-inputmask{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputmask-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-inputmask-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-inputmask:disabled{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\n"] }]
|
|
1779
1779
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], slotChar: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotChar", required: false }] }], autoClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], unmask: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmask", required: false }] }], complete: [{ type: i0.Output, args: ["complete"] }] } });
|
|
1780
1780
|
|
|
1781
1781
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -1933,7 +1933,7 @@ class AscButtonComponent {
|
|
|
1933
1933
|
<!-- Slot cho custom content (icon-only, badge...) -->
|
|
1934
1934
|
<ng-content></ng-content>
|
|
1935
1935
|
</p-button>
|
|
1936
|
-
`, isInline: true, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host ::ng-deep .p-button.
|
|
1936
|
+
`, isInline: true, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host ::ng-deep .p-button,:host ::ng-deep .p-button .p-button-label{font-weight:400}:host ::ng-deep .p-button:disabled:not(.p-button-loading){opacity:var(--asc-button-disabled-opacity, .35)}:host(.asc-button--filled.asc-button--primary) ::ng-deep .p-button{color:var(--asc-button-solid-text, #FCFCFC)}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button{background:transparent;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):hover,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):active,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}:host ::ng-deep .p-button .p-button-icon{line-height:1}:host(.asc-button--xs) ::ng-deep .p-button{min-width:56px;height:var(--asc-h-xs);padding:4px 12px;font-size:12px;line-height:16px}:host(.asc-button--xs) ::ng-deep .p-button .p-button-icon{font-size:12px}:host(.asc-button--sm) ::ng-deep .p-button{min-width:64px;height:var(--asc-h-sm);padding:6px 16px;font-size:12px;line-height:16px}:host(.asc-button--sm) ::ng-deep .p-button .p-button-icon{font-size:16px}:host(.asc-button--md) ::ng-deep .p-button{min-width:80px;height:var(--asc-h-md);padding:8px 16px;font-size:14px;line-height:20px}:host(.asc-button--md) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--lg) ::ng-deep .p-button{min-width:96px;height:var(--asc-h-lg);padding:10px 24px;font-size:16px;line-height:24px}:host(.asc-button--lg) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--xl) ::ng-deep .p-button{min-width:112px;height:var(--asc-h-xl);padding:12px 32px;font-size:18px;line-height:28px}:host(.asc-button--xl) ::ng-deep .p-button .p-button-icon{font-size:24px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1937
1937
|
}
|
|
1938
1938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscButtonComponent, decorators: [{
|
|
1939
1939
|
type: Component,
|
|
@@ -1966,7 +1966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1966
1966
|
<!-- Slot cho custom content (icon-only, badge...) -->
|
|
1967
1967
|
<ng-content></ng-content>
|
|
1968
1968
|
</p-button>
|
|
1969
|
-
`, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host ::ng-deep .p-button.
|
|
1969
|
+
`, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host ::ng-deep .p-button,:host ::ng-deep .p-button .p-button-label{font-weight:400}:host ::ng-deep .p-button:disabled:not(.p-button-loading){opacity:var(--asc-button-disabled-opacity, .35)}:host(.asc-button--filled.asc-button--primary) ::ng-deep .p-button{color:var(--asc-button-solid-text, #FCFCFC)}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button{background:transparent;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):hover,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):active,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}:host ::ng-deep .p-button .p-button-icon{line-height:1}:host(.asc-button--xs) ::ng-deep .p-button{min-width:56px;height:var(--asc-h-xs);padding:4px 12px;font-size:12px;line-height:16px}:host(.asc-button--xs) ::ng-deep .p-button .p-button-icon{font-size:12px}:host(.asc-button--sm) ::ng-deep .p-button{min-width:64px;height:var(--asc-h-sm);padding:6px 16px;font-size:12px;line-height:16px}:host(.asc-button--sm) ::ng-deep .p-button .p-button-icon{font-size:16px}:host(.asc-button--md) ::ng-deep .p-button{min-width:80px;height:var(--asc-h-md);padding:8px 16px;font-size:14px;line-height:20px}:host(.asc-button--md) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--lg) ::ng-deep .p-button{min-width:96px;height:var(--asc-h-lg);padding:10px 24px;font-size:16px;line-height:24px}:host(.asc-button--lg) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--xl) ::ng-deep .p-button{min-width:112px;height:var(--asc-h-xl);padding:12px 32px;font-size:18px;line-height:28px}:host(.asc-button--xl) ::ng-deep .p-button .p-button-icon{font-size:24px}\n"] }]
|
|
1970
1970
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPos", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }] } });
|
|
1971
1971
|
|
|
1972
1972
|
/** Map size của control → font-size label — dùng khi consumer không tự override --asc-field-label-font-size */
|
|
@@ -2040,10 +2040,24 @@ class AscFormFieldComponent {
|
|
|
2040
2040
|
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
2041
2041
|
/**
|
|
2042
2042
|
* Width cột label khi `layout="horizontal"` — nhận bất kỳ CSS length nào (`'10rem'`, `'160px'`, `'20%'`).
|
|
2043
|
+
* Không truyền → không gắn inline style, width lấy theo CSS custom property
|
|
2044
|
+
* `--asc-field-label-width` (đặt global hoặc theo vùng), fallback `max-content`.
|
|
2043
2045
|
* Không ảnh hưởng layout `vertical`/`inline`.
|
|
2044
2046
|
*/
|
|
2045
|
-
this.labelWidth = input(
|
|
2046
|
-
...(ngDevMode ? [{ debugName: "labelWidth" }] : /* istanbul ignore next */ []));
|
|
2047
|
+
this.labelWidth = input(/* @ts-ignore */
|
|
2048
|
+
...(ngDevMode ? [undefined, { debugName: "labelWidth" }] : /* istanbul ignore next */ []));
|
|
2049
|
+
/** Icon trước label (class icon, vd `'pi pi-user'`) — chỉ áp dụng typeLabel='default' */
|
|
2050
|
+
this.labelIcon = input('', /* @ts-ignore */
|
|
2051
|
+
...(ngDevMode ? [{ debugName: "labelIcon" }] : /* istanbul ignore next */ []));
|
|
2052
|
+
/** Icon sau label, trước dấu * (vd `'pi pi-info-circle'`) — chỉ áp dụng typeLabel='default' */
|
|
2053
|
+
this.labelSuffixIcon = input('', /* @ts-ignore */
|
|
2054
|
+
...(ngDevMode ? [{ debugName: "labelSuffixIcon" }] : /* istanbul ignore next */ []));
|
|
2055
|
+
/**
|
|
2056
|
+
* Tooltip gắn vào icon sau label. Truyền tooltip mà không truyền `labelSuffixIcon`
|
|
2057
|
+
* → tự hiện icon `pi pi-info-circle`.
|
|
2058
|
+
*/
|
|
2059
|
+
this.labelTooltip = input('', /* @ts-ignore */
|
|
2060
|
+
...(ngDevMode ? [{ debugName: "labelTooltip" }] : /* istanbul ignore next */ []));
|
|
2047
2061
|
/**
|
|
2048
2062
|
* Ẩn label text.
|
|
2049
2063
|
* Dùng khi typeLabel='FloatLabel'/'IftaLabel' và label đã được hiển thị bên trong.
|
|
@@ -2101,6 +2115,14 @@ class AscFormFieldComponent {
|
|
|
2101
2115
|
*/
|
|
2102
2116
|
this.resolvedMode = computed(() => this.mode() === 'view' || this._innerControl?.mode() === 'view' ? 'view' : 'edit', /* @ts-ignore */
|
|
2103
2117
|
...(ngDevMode ? [{ debugName: "resolvedMode" }] : /* istanbul ignore next */ []));
|
|
2118
|
+
this.resolvedLabelSuffixIcon = computed(() => this.labelSuffixIcon() || (this.labelTooltip() ? 'pi pi-info-circle' : ''), /* @ts-ignore */
|
|
2119
|
+
...(ngDevMode ? [{ debugName: "resolvedLabelSuffixIcon" }] : /* istanbul ignore next */ []));
|
|
2120
|
+
/** Dấu * bắt buộc — ẩn ở mode view (chỉ đọc, không cần nhập) */
|
|
2121
|
+
this.showRequiredMark = computed(() => this.isRequired() && this.resolvedMode() !== 'view', /* @ts-ignore */
|
|
2122
|
+
...(ngDevMode ? [{ debugName: "showRequiredMark" }] : /* istanbul ignore next */ []));
|
|
2123
|
+
/** Chữ "(tùy chọn)" — ẩn ở mode view */
|
|
2124
|
+
this.showOptionalMark = computed(() => this.optional() && this.resolvedMode() !== 'view', /* @ts-ignore */
|
|
2125
|
+
...(ngDevMode ? [{ debugName: "showOptionalMark" }] : /* istanbul ignore next */ []));
|
|
2104
2126
|
/** true nếu control bên trong đang disabled — form-field tự đọc qua ContentChild, không cần set thủ công */
|
|
2105
2127
|
this.resolvedDisabled = computed(() => this._innerControl?.controlDisabled ?? false, /* @ts-ignore */
|
|
2106
2128
|
...(ngDevMode ? [{ debugName: "resolvedDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -2132,7 +2154,7 @@ class AscFormFieldComponent {
|
|
|
2132
2154
|
this.controlErrors.set(invalid ? ctrl.errors : null);
|
|
2133
2155
|
}
|
|
2134
2156
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscFormFieldComponent, isStandalone: true, selector: "asc-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "forId", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostCls()", "attr.role": "\"group\"", "style.--asc-field-label-font-size-auto": "labelFontSizeAuto()", "style.--asc-field-label-width": "labelWidth()" } }, queries: [{ propertyName: "_innerControl", first: true, predicate: ASC_BASE_CONTROL, descendants: true }], ngImport: i0, template: `
|
|
2157
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscFormFieldComponent, isStandalone: true, selector: "asc-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelIcon: { classPropertyName: "labelIcon", publicName: "labelIcon", isSignal: true, isRequired: false, transformFunction: null }, labelSuffixIcon: { classPropertyName: "labelSuffixIcon", publicName: "labelSuffixIcon", isSignal: true, isRequired: false, transformFunction: null }, labelTooltip: { classPropertyName: "labelTooltip", publicName: "labelTooltip", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "forId", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostCls()", "attr.role": "\"group\"", "style.--asc-field-label-font-size-auto": "labelFontSizeAuto()", "style.--asc-field-label-width": "labelWidth() ?? null" } }, queries: [{ propertyName: "_innerControl", first: true, predicate: ASC_BASE_CONTROL, descendants: true }], ngImport: i0, template: `
|
|
2136
2158
|
<!--
|
|
2137
2159
|
#labelType là template ref chứa ng-content.
|
|
2138
2160
|
Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
|
|
@@ -2149,7 +2171,7 @@ class AscFormFieldComponent {
|
|
|
2149
2171
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2150
2172
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2151
2173
|
{{ label() }}
|
|
2152
|
-
@if (
|
|
2174
|
+
@if (showRequiredMark()) {
|
|
2153
2175
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2154
2176
|
}
|
|
2155
2177
|
</label>
|
|
@@ -2162,7 +2184,7 @@ class AscFormFieldComponent {
|
|
|
2162
2184
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2163
2185
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2164
2186
|
{{ label() }}
|
|
2165
|
-
@if (
|
|
2187
|
+
@if (showRequiredMark()) {
|
|
2166
2188
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2167
2189
|
}
|
|
2168
2190
|
</label>
|
|
@@ -2174,11 +2196,25 @@ class AscFormFieldComponent {
|
|
|
2174
2196
|
<div class="asc-field-top">
|
|
2175
2197
|
@if (label() && !hideLabel()) {
|
|
2176
2198
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2199
|
+
@if (labelIcon()) {
|
|
2200
|
+
<i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
|
|
2201
|
+
}
|
|
2177
2202
|
{{ label() }}
|
|
2178
|
-
@if (
|
|
2203
|
+
@if (resolvedLabelSuffixIcon()) {
|
|
2204
|
+
<i
|
|
2205
|
+
[class]="resolvedLabelSuffixIcon()"
|
|
2206
|
+
class="asc-field-label-icon"
|
|
2207
|
+
[pTooltip]="labelTooltip()"
|
|
2208
|
+
[tooltipDisabled]="!labelTooltip()"
|
|
2209
|
+
[attr.tabindex]="labelTooltip() ? 0 : null"
|
|
2210
|
+
[attr.aria-label]="labelTooltip() || null"
|
|
2211
|
+
[attr.aria-hidden]="labelTooltip() ? null : 'true'"
|
|
2212
|
+
></i>
|
|
2213
|
+
}
|
|
2214
|
+
@if (showRequiredMark()) {
|
|
2179
2215
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2180
2216
|
}
|
|
2181
|
-
@if (
|
|
2217
|
+
@if (showOptionalMark()) {
|
|
2182
2218
|
<span class="asc-field-optional-mark">({{ optionalText }})</span>
|
|
2183
2219
|
}
|
|
2184
2220
|
</label>
|
|
@@ -2211,7 +2247,7 @@ class AscFormFieldComponent {
|
|
|
2211
2247
|
}
|
|
2212
2248
|
</div>
|
|
2213
2249
|
}
|
|
2214
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width,
|
|
2250
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #747475)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;line-height:var(--asc-field-hint-line-height, 18px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:12px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 18px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2$1.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: AscMessageErrorPipe, name: "ascMessageError" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2215
2251
|
}
|
|
2216
2252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, decorators: [{
|
|
2217
2253
|
type: Component,
|
|
@@ -2220,12 +2256,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2220
2256
|
KeyValuePipe,
|
|
2221
2257
|
FloatLabelModule,
|
|
2222
2258
|
IftaLabelModule,
|
|
2259
|
+
TooltipModule,
|
|
2223
2260
|
AscMessageErrorPipe,
|
|
2224
2261
|
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2225
2262
|
'[class]': 'hostCls()',
|
|
2226
2263
|
'[attr.role]': '"group"',
|
|
2227
2264
|
'[style.--asc-field-label-font-size-auto]': 'labelFontSizeAuto()',
|
|
2228
|
-
|
|
2265
|
+
// Chỉ gắn inline style khi consumer truyền labelWidth — không truyền thì để biến CSS
|
|
2266
|
+
// --asc-field-label-width (đặt global/theo vùng) có hiệu lực. Angular bỏ style khi null.
|
|
2267
|
+
'[style.--asc-field-label-width]': 'labelWidth() ?? null',
|
|
2229
2268
|
}, template: `
|
|
2230
2269
|
<!--
|
|
2231
2270
|
#labelType là template ref chứa ng-content.
|
|
@@ -2243,7 +2282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2243
2282
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2244
2283
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2245
2284
|
{{ label() }}
|
|
2246
|
-
@if (
|
|
2285
|
+
@if (showRequiredMark()) {
|
|
2247
2286
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2248
2287
|
}
|
|
2249
2288
|
</label>
|
|
@@ -2256,7 +2295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2256
2295
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2257
2296
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2258
2297
|
{{ label() }}
|
|
2259
|
-
@if (
|
|
2298
|
+
@if (showRequiredMark()) {
|
|
2260
2299
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2261
2300
|
}
|
|
2262
2301
|
</label>
|
|
@@ -2268,11 +2307,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2268
2307
|
<div class="asc-field-top">
|
|
2269
2308
|
@if (label() && !hideLabel()) {
|
|
2270
2309
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2310
|
+
@if (labelIcon()) {
|
|
2311
|
+
<i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
|
|
2312
|
+
}
|
|
2271
2313
|
{{ label() }}
|
|
2272
|
-
@if (
|
|
2314
|
+
@if (resolvedLabelSuffixIcon()) {
|
|
2315
|
+
<i
|
|
2316
|
+
[class]="resolvedLabelSuffixIcon()"
|
|
2317
|
+
class="asc-field-label-icon"
|
|
2318
|
+
[pTooltip]="labelTooltip()"
|
|
2319
|
+
[tooltipDisabled]="!labelTooltip()"
|
|
2320
|
+
[attr.tabindex]="labelTooltip() ? 0 : null"
|
|
2321
|
+
[attr.aria-label]="labelTooltip() || null"
|
|
2322
|
+
[attr.aria-hidden]="labelTooltip() ? null : 'true'"
|
|
2323
|
+
></i>
|
|
2324
|
+
}
|
|
2325
|
+
@if (showRequiredMark()) {
|
|
2273
2326
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2274
2327
|
}
|
|
2275
|
-
@if (
|
|
2328
|
+
@if (showOptionalMark()) {
|
|
2276
2329
|
<span class="asc-field-optional-mark">({{ optionalText }})</span>
|
|
2277
2330
|
}
|
|
2278
2331
|
</label>
|
|
@@ -2305,11 +2358,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2305
2358
|
}
|
|
2306
2359
|
</div>
|
|
2307
2360
|
}
|
|
2308
|
-
`, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width,
|
|
2361
|
+
`, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #747475)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;line-height:var(--asc-field-hint-line-height, 18px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:12px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 12px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 18px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"] }]
|
|
2309
2362
|
}], propDecorators: { _innerControl: [{
|
|
2310
2363
|
type: ContentChild,
|
|
2311
2364
|
args: [ASC_BASE_CONTROL, { static: false }]
|
|
2312
|
-
}], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], typeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], labelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelWidth", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], forId: [{ type: i0.Input, args: [{ isSignal: true, alias: "forId", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }] } });
|
|
2365
|
+
}], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], typeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], labelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelWidth", required: false }] }], labelIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelIcon", required: false }] }], labelSuffixIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelSuffixIcon", required: false }] }], labelTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelTooltip", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], forId: [{ type: i0.Input, args: [{ isSignal: true, alias: "forId", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }] } });
|
|
2313
2366
|
|
|
2314
2367
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
2315
2368
|
// AscInputComponent
|
|
@@ -2414,7 +2467,7 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2414
2467
|
...(ngDevMode ? [{ debugName: "isAtLimit" }] : /* istanbul ignore next */ []));
|
|
2415
2468
|
this.inputCls = computed(() => ascCls(this.isInvalidState() && 'ng-invalid ng-dirty'), /* @ts-ignore */
|
|
2416
2469
|
...(ngDevMode ? [{ debugName: "inputCls" }] : /* istanbul ignore next */ []));
|
|
2417
|
-
this.hostCls = computed(() => ascCls('asc-input', `asc-input--${this.resolvedSize()}`, this.isInvalidState() && 'asc-input--invalid', this.effectiveDisabled() && 'asc-input--disabled', this.readonly() && 'asc-input--readonly', this.resolvedFloatLabel() && 'asc-input--float', !!this.label() && 'asc-input--labeled', this.mode() === 'view' && 'asc-input--view', !!this.icon() && this.iconPos() === 'left' && 'asc-input--icon-left', (this.showClearBtn() || (!!this.icon() && this.iconPos() === 'right')) && 'asc-input--icon-right', this.styleClass()), /* @ts-ignore */
|
|
2470
|
+
this.hostCls = computed(() => ascCls('asc-input', `asc-input--${this.resolvedSize()}`, this.isInvalidState() && 'asc-input--invalid', this.effectiveDisabled() && 'asc-input--disabled', this.readonly() && 'asc-input--readonly', this.resolvedFloatLabel() && 'asc-input--float', !!this.label() && 'asc-input--labeled', this.mode() === 'view' && 'asc-input--view', !!this.icon() && this.iconPos() === 'left' && 'asc-input--icon-left', (this.showClearBtn() || (!!this.icon() && this.iconPos() === 'right')) && 'asc-input--icon-right', this.showClearBtn() && !!this.icon() && this.iconPos() === 'right' && 'asc-input--clear-with-icon', this.styleClass()), /* @ts-ignore */
|
|
2418
2471
|
...(ngDevMode ? [{ debugName: "hostCls" }] : /* istanbul ignore next */ []));
|
|
2419
2472
|
}
|
|
2420
2473
|
get msg() { return this.localeService.messages(); }
|
|
@@ -2496,7 +2549,8 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2496
2549
|
(keydown.enter)="clearValue()"
|
|
2497
2550
|
(keydown.space)="clearValue()"
|
|
2498
2551
|
/>
|
|
2499
|
-
}
|
|
2552
|
+
}
|
|
2553
|
+
@if (icon() && iconPos() === 'right') {
|
|
2500
2554
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2501
2555
|
}
|
|
2502
2556
|
</p-iconfield>
|
|
@@ -2549,7 +2603,8 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2549
2603
|
(keydown.enter)="clearValue()"
|
|
2550
2604
|
(keydown.space)="clearValue()"
|
|
2551
2605
|
/>
|
|
2552
|
-
}
|
|
2606
|
+
}
|
|
2607
|
+
@if (icon() && iconPos() === 'right') {
|
|
2553
2608
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2554
2609
|
}
|
|
2555
2610
|
</p-iconfield>
|
|
@@ -2566,7 +2621,7 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2566
2621
|
</div>
|
|
2567
2622
|
}
|
|
2568
2623
|
}
|
|
2569
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100
|
|
2624
|
+
`, 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))}: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)}.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)) ::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:12px;font-weight:400}:host(.asc-input--sm:not(.asc-input--float)) ::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:12px;font-weight:400}:host(.asc-input--md:not(.asc-input--float)) ::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:14px;font-weight:400}:host(.asc-input--lg:not(.asc-input--float)) ::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:16px;font-weight:400}:host(.asc-input--xl:not(.asc-input--float)) ::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:18px;font-weight:400}:host(.asc-input--xs) ::ng-deep .p-inputtext{line-height:16px}:host(.asc-input--sm) ::ng-deep .p-inputtext{line-height:18px}:host(.asc-input--md) ::ng-deep .p-inputtext{line-height:20px}:host(.asc-input--lg) ::ng-deep .p-inputtext{line-height:24px}:host(.asc-input--xl) ::ng-deep .p-inputtext{line-height:28px}: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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2570
2625
|
}
|
|
2571
2626
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputComponent, decorators: [{
|
|
2572
2627
|
type: Component,
|
|
@@ -2612,7 +2667,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2612
2667
|
(keydown.enter)="clearValue()"
|
|
2613
2668
|
(keydown.space)="clearValue()"
|
|
2614
2669
|
/>
|
|
2615
|
-
}
|
|
2670
|
+
}
|
|
2671
|
+
@if (icon() && iconPos() === 'right') {
|
|
2616
2672
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2617
2673
|
}
|
|
2618
2674
|
</p-iconfield>
|
|
@@ -2665,7 +2721,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2665
2721
|
(keydown.enter)="clearValue()"
|
|
2666
2722
|
(keydown.space)="clearValue()"
|
|
2667
2723
|
/>
|
|
2668
|
-
}
|
|
2724
|
+
}
|
|
2725
|
+
@if (icon() && iconPos() === 'right') {
|
|
2669
2726
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2670
2727
|
}
|
|
2671
2728
|
</p-iconfield>
|
|
@@ -2682,7 +2739,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2682
2739
|
</div>
|
|
2683
2740
|
}
|
|
2684
2741
|
}
|
|
2685
|
-
`, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100
|
|
2742
|
+
`, 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))}: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)}.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)) ::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:12px;font-weight:400}:host(.asc-input--sm:not(.asc-input--float)) ::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:12px;font-weight:400}:host(.asc-input--md:not(.asc-input--float)) ::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:14px;font-weight:400}:host(.asc-input--lg:not(.asc-input--float)) ::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:16px;font-weight:400}:host(.asc-input--xl:not(.asc-input--float)) ::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:18px;font-weight:400}:host(.asc-input--xs) ::ng-deep .p-inputtext{line-height:16px}:host(.asc-input--sm) ::ng-deep .p-inputtext{line-height:18px}:host(.asc-input--md) ::ng-deep .p-inputtext{line-height:20px}:host(.asc-input--lg) ::ng-deep .p-inputtext{line-height:24px}:host(.asc-input--xl) ::ng-deep .p-inputtext{line-height:28px}: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"] }]
|
|
2686
2743
|
}], 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 }] }] } });
|
|
2687
2744
|
|
|
2688
2745
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3051,7 +3108,7 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
3051
3108
|
/>
|
|
3052
3109
|
}
|
|
3053
3110
|
}
|
|
3054
|
-
`, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;display:flex;align-items:center}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3111
|
+
`, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3055
3112
|
}
|
|
3056
3113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
|
|
3057
3114
|
type: Component,
|
|
@@ -3213,7 +3270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3213
3270
|
/>
|
|
3214
3271
|
}
|
|
3215
3272
|
}
|
|
3216
|
-
`, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;display:flex;align-items:center}: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"] }]
|
|
3273
|
+
`, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
|
|
3217
3274
|
}], 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"] }] } });
|
|
3218
3275
|
|
|
3219
3276
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3544,7 +3601,7 @@ class AscDatepickerComponent extends BaseControlAccessor {
|
|
|
3544
3601
|
(onYearChange)="viewDateChange.emit($event)"
|
|
3545
3602
|
></p-datepicker>
|
|
3546
3603
|
}
|
|
3547
|
-
`, 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-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}: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)}.asc-datepicker-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: 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 }); }
|
|
3604
|
+
`, 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-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400;line-height:28px}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}: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)}: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)}.asc-datepicker-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: 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 }); }
|
|
3548
3605
|
}
|
|
3549
3606
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDatepickerComponent, decorators: [{
|
|
3550
3607
|
type: Component,
|
|
@@ -3632,7 +3689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3632
3689
|
(onYearChange)="viewDateChange.emit($event)"
|
|
3633
3690
|
></p-datepicker>
|
|
3634
3691
|
}
|
|
3635
|
-
`, 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-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}: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)}.asc-datepicker-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
3692
|
+
`, 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-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400;line-height:28px}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}: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)}: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)}.asc-datepicker-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
3636
3693
|
}], 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"] }] } });
|
|
3637
3694
|
|
|
3638
3695
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3792,7 +3849,7 @@ class AscPasswordComponent extends BaseControlAccessor {
|
|
|
3792
3849
|
(onBlur)="handleBlur($event)"
|
|
3793
3850
|
/>
|
|
3794
3851
|
}
|
|
3795
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\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: PasswordModule }, { kind: "component", type: i2$5.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3852
|
+
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400;line-height:28px}:host{--p-icon-size: 20px}:host(.asc-password--xs){--p-icon-size: 14px}:host(.asc-password--xl){--p-icon-size: 24px}:host ::ng-deep .p-password:has(.p-password-toggle-mask-icon) .p-password-input,:host ::ng-deep .p-password:has(.p-password-clear-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-password-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-password-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-password--disabled) ::ng-deep .p-password-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\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: PasswordModule }, { kind: "component", type: i2$5.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3796
3853
|
}
|
|
3797
3854
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscPasswordComponent, decorators: [{
|
|
3798
3855
|
type: Component,
|
|
@@ -3846,7 +3903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3846
3903
|
(onBlur)="handleBlur($event)"
|
|
3847
3904
|
/>
|
|
3848
3905
|
}
|
|
3849
|
-
`, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\n"] }]
|
|
3906
|
+
`, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400;line-height:28px}:host{--p-icon-size: 20px}:host(.asc-password--xs){--p-icon-size: 14px}:host(.asc-password--xl){--p-icon-size: 24px}:host ::ng-deep .p-password:has(.p-password-toggle-mask-icon) .p-password-input,:host ::ng-deep .p-password:has(.p-password-clear-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-password-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-password-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-password--disabled) ::ng-deep .p-password-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\n"] }]
|
|
3850
3907
|
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], toggleMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleMask", required: false }] }], feedback: [{ type: i0.Input, args: [{ isSignal: true, alias: "feedback", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", 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 }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", 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 }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", 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"] }] } });
|
|
3851
3908
|
|
|
3852
3909
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4086,7 +4143,7 @@ class AscInputNumberComponent extends BaseControlAccessor {
|
|
|
4086
4143
|
(onInput)="inputEvent.emit($event)"
|
|
4087
4144
|
/>
|
|
4088
4145
|
}
|
|
4089
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::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)}.asc-input-number-view{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:12px;font-weight:400}: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:12px;font-weight:400}: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:14px;font-weight:400}: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:16px;font-weight:400}: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:18px;font-weight:400}: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 }); }
|
|
4146
|
+
`, isInline: true, styles: [":host{display:block;width:100%}::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)}.asc-input-number-view{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:12px;font-weight:400;line-height:16px}: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:12px;font-weight:400;line-height:18px}: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:14px;font-weight:400;line-height:20px}: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:16px;font-weight:400;line-height:24px}: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:18px;font-weight:400;line-height:28px}: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-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 }); }
|
|
4090
4147
|
}
|
|
4091
4148
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputNumberComponent, decorators: [{
|
|
4092
4149
|
type: Component,
|
|
@@ -4154,7 +4211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4154
4211
|
(onInput)="inputEvent.emit($event)"
|
|
4155
4212
|
/>
|
|
4156
4213
|
}
|
|
4157
|
-
`, styles: [":host{display:block;width:100%}::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)}.asc-input-number-view{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:12px;font-weight:400}: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:12px;font-weight:400}: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:14px;font-weight:400}: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:16px;font-weight:400}: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:18px;font-weight:400}: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"] }]
|
|
4214
|
+
`, styles: [":host{display:block;width:100%}::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)}.asc-input-number-view{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:12px;font-weight:400;line-height:16px}: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:12px;font-weight:400;line-height:18px}: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:14px;font-weight:400;line-height:20px}: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:16px;font-weight:400;line-height:24px}: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:18px;font-weight:400;line-height:28px}: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-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"] }]
|
|
4158
4215
|
}], 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"] }] } });
|
|
4159
4216
|
|
|
4160
4217
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4943,7 +5000,7 @@ class AscTextareaComponent extends BaseControlAccessor {
|
|
|
4943
5000
|
}
|
|
4944
5001
|
</div>
|
|
4945
5002
|
}
|
|
4946
|
-
`, 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:12px;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:
|
|
5003
|
+
`, 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:12px;line-height:16px;font-weight:400;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:12px;line-height:18px;font-weight:400;padding:6px 8px;border-radius:12px}:host(.asc-textarea--md) ::ng-deep .p-textarea{font-size:14px;line-height:20px;font-weight:400;padding:10px 8px;border-radius:12px}:host(.asc-textarea--lg) ::ng-deep .p-textarea{font-size:16px;line-height:24px;font-weight:400;padding:12px 10px;border-radius:12px}:host(.asc-textarea--xl) ::ng-deep .p-textarea{font-size:16px;line-height:24px;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 }); }
|
|
4947
5004
|
}
|
|
4948
5005
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTextareaComponent, decorators: [{
|
|
4949
5006
|
type: Component,
|
|
@@ -4992,7 +5049,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4992
5049
|
}
|
|
4993
5050
|
</div>
|
|
4994
5051
|
}
|
|
4995
|
-
`, 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:12px;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:
|
|
5052
|
+
`, 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:12px;line-height:16px;font-weight:400;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:12px;line-height:18px;font-weight:400;padding:6px 8px;border-radius:12px}:host(.asc-textarea--md) ::ng-deep .p-textarea{font-size:14px;line-height:20px;font-weight:400;padding:10px 8px;border-radius:12px}:host(.asc-textarea--lg) ::ng-deep .p-textarea{font-size:16px;line-height:24px;font-weight:400;padding:12px 10px;border-radius:12px}:host(.asc-textarea--xl) ::ng-deep .p-textarea{font-size:16px;line-height:24px;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"] }]
|
|
4996
5053
|
}], 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 }] }] } });
|
|
4997
5054
|
|
|
4998
5055
|
// ─────────────────────────────────────────────────────────────────────────────
|