@aseansc/ui 5.5.0 → 5.5.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 +11 -0
- package/fesm2022/aseansc-ui.mjs +1048 -1008
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/aseansc-ui.mjs
CHANGED
|
@@ -1643,25 +1643,26 @@ class AscAutoCompleteComponent extends BaseControlAccessor {
|
|
|
1643
1643
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscAutoCompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1644
1644
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: AscAutoCompleteComponent, isStandalone: true, selector: "asc-auto-complete", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod" }, host: { properties: { "id": "id()", "class": "_hostCls()" } }, providers: [
|
|
1645
1645
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscAutoCompleteComponent) },
|
|
1646
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
1647
|
-
<p-autocomplete
|
|
1648
|
-
[ngModel]="value()"
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
[
|
|
1652
|
-
[
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1656
|
-
[
|
|
1657
|
-
[
|
|
1658
|
-
[
|
|
1659
|
-
[
|
|
1660
|
-
[
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
(
|
|
1664
|
-
|
|
1646
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
1647
|
+
<p-autocomplete
|
|
1648
|
+
[ngModel]="value()"
|
|
1649
|
+
[ngModelOptions]="{ standalone: true }"
|
|
1650
|
+
(ngModelChange)="setValue($event)"
|
|
1651
|
+
[suggestions]="suggestions()"
|
|
1652
|
+
[optionLabel]="optionLabel()"
|
|
1653
|
+
[optionValue]="optionValue()"
|
|
1654
|
+
[minQueryLength]="minLength()"
|
|
1655
|
+
[delay]="delay()"
|
|
1656
|
+
[multiple]="multiple()"
|
|
1657
|
+
[forceSelection]="forceSelection()"
|
|
1658
|
+
[dropdown]="dropdown()"
|
|
1659
|
+
[showClear]="showClear()"
|
|
1660
|
+
[placeholder]="placeholder()"
|
|
1661
|
+
[disabled]="isDisabled()"
|
|
1662
|
+
appendTo="body"
|
|
1663
|
+
(completeMethod)="completeMethod.emit($event.query)"
|
|
1664
|
+
(onBlur)="markTouched()"
|
|
1665
|
+
/>
|
|
1665
1666
|
`, 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 }); }
|
|
1666
1667
|
}
|
|
1667
1668
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscAutoCompleteComponent, decorators: [{
|
|
@@ -1671,25 +1672,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1671
1672
|
], host: {
|
|
1672
1673
|
'[id]': 'id()',
|
|
1673
1674
|
'[class]': '_hostCls()',
|
|
1674
|
-
}, template: `
|
|
1675
|
-
<p-autocomplete
|
|
1676
|
-
[ngModel]="value()"
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
(
|
|
1692
|
-
|
|
1675
|
+
}, template: `
|
|
1676
|
+
<p-autocomplete
|
|
1677
|
+
[ngModel]="value()"
|
|
1678
|
+
[ngModelOptions]="{ standalone: true }"
|
|
1679
|
+
(ngModelChange)="setValue($event)"
|
|
1680
|
+
[suggestions]="suggestions()"
|
|
1681
|
+
[optionLabel]="optionLabel()"
|
|
1682
|
+
[optionValue]="optionValue()"
|
|
1683
|
+
[minQueryLength]="minLength()"
|
|
1684
|
+
[delay]="delay()"
|
|
1685
|
+
[multiple]="multiple()"
|
|
1686
|
+
[forceSelection]="forceSelection()"
|
|
1687
|
+
[dropdown]="dropdown()"
|
|
1688
|
+
[showClear]="showClear()"
|
|
1689
|
+
[placeholder]="placeholder()"
|
|
1690
|
+
[disabled]="isDisabled()"
|
|
1691
|
+
appendTo="body"
|
|
1692
|
+
(completeMethod)="completeMethod.emit($event.query)"
|
|
1693
|
+
(onBlur)="markTouched()"
|
|
1694
|
+
/>
|
|
1693
1695
|
`, 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"] }]
|
|
1694
1696
|
}], 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"] }] } });
|
|
1695
1697
|
|
|
@@ -1744,21 +1746,22 @@ class AscInputMaskComponent extends BaseControlAccessor {
|
|
|
1744
1746
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputMaskComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1745
1747
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: AscInputMaskComponent, isStandalone: true, selector: "asc-input-mask", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, autoClear: { classPropertyName: "autoClear", publicName: "autoClear", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, unmask: { classPropertyName: "unmask", publicName: "unmask", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { complete: "complete" }, host: { properties: { "id": "id()", "class": "_hostCls()" } }, providers: [
|
|
1746
1748
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscInputMaskComponent) },
|
|
1747
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
1748
|
-
<p-inputmask
|
|
1749
|
-
[ngModel]="value()"
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
[
|
|
1753
|
-
[
|
|
1754
|
-
[
|
|
1755
|
-
[
|
|
1756
|
-
[
|
|
1757
|
-
[
|
|
1758
|
-
[
|
|
1759
|
-
|
|
1760
|
-
(
|
|
1761
|
-
|
|
1749
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
1750
|
+
<p-inputmask
|
|
1751
|
+
[ngModel]="value()"
|
|
1752
|
+
[ngModelOptions]="{ standalone: true }"
|
|
1753
|
+
(ngModelChange)="setValue($event)"
|
|
1754
|
+
[mask]="mask()"
|
|
1755
|
+
[placeholder]="placeholder()"
|
|
1756
|
+
[slotChar]="slotChar()"
|
|
1757
|
+
[autoClear]="autoClear()"
|
|
1758
|
+
[showClear]="showClear()"
|
|
1759
|
+
[readonly]="readonly()"
|
|
1760
|
+
[unmask]="unmask()"
|
|
1761
|
+
[disabled]="isDisabled()"
|
|
1762
|
+
(onComplete)="complete.emit()"
|
|
1763
|
+
(onBlur)="markTouched()"
|
|
1764
|
+
/>
|
|
1762
1765
|
`, 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 }); }
|
|
1763
1766
|
}
|
|
1764
1767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputMaskComponent, decorators: [{
|
|
@@ -1768,21 +1771,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1768
1771
|
], host: {
|
|
1769
1772
|
'[id]': 'id()',
|
|
1770
1773
|
'[class]': '_hostCls()',
|
|
1771
|
-
}, template: `
|
|
1772
|
-
<p-inputmask
|
|
1773
|
-
[ngModel]="value()"
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
[
|
|
1777
|
-
[
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1782
|
-
[
|
|
1783
|
-
|
|
1784
|
-
(
|
|
1785
|
-
|
|
1774
|
+
}, template: `
|
|
1775
|
+
<p-inputmask
|
|
1776
|
+
[ngModel]="value()"
|
|
1777
|
+
[ngModelOptions]="{ standalone: true }"
|
|
1778
|
+
(ngModelChange)="setValue($event)"
|
|
1779
|
+
[mask]="mask()"
|
|
1780
|
+
[placeholder]="placeholder()"
|
|
1781
|
+
[slotChar]="slotChar()"
|
|
1782
|
+
[autoClear]="autoClear()"
|
|
1783
|
+
[showClear]="showClear()"
|
|
1784
|
+
[readonly]="readonly()"
|
|
1785
|
+
[unmask]="unmask()"
|
|
1786
|
+
[disabled]="isDisabled()"
|
|
1787
|
+
(onComplete)="complete.emit()"
|
|
1788
|
+
(onBlur)="markTouched()"
|
|
1789
|
+
/>
|
|
1786
1790
|
`, 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"] }]
|
|
1787
1791
|
}], 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"] }] } });
|
|
1788
1792
|
|
|
@@ -2519,116 +2523,118 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2519
2523
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2520
2524
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscInputComponent, isStandalone: true, selector: "asc-input", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, floatLabelVariant: { classPropertyName: "floatLabelVariant", publicName: "floatLabelVariant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", enterPressed: "enterPressed", focused: "focused", blurred: "blurred" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
2521
2525
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscInputComponent) },
|
|
2522
|
-
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2523
|
-
@if (mode() === 'view') {
|
|
2524
|
-
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
2525
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
2526
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
2527
|
-
<p-iconfield [iconPosition]="iconPos()">
|
|
2528
|
-
@if (icon() && iconPos() === 'left') {
|
|
2529
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
<input
|
|
2533
|
-
#inputEl
|
|
2534
|
-
pInputText
|
|
2535
|
-
[id]="_inputId"
|
|
2536
|
-
[type]="type()"
|
|
2537
|
-
[disabled]="effectiveDisabled()"
|
|
2538
|
-
[readonly]="readonly()"
|
|
2539
|
-
[maxlength]="maxLength() ?? 524288"
|
|
2540
|
-
[autocomplete]="autocomplete()"
|
|
2541
|
-
[class]="inputCls()"
|
|
2542
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
2543
|
-
[ngModel]="value()"
|
|
2544
|
-
|
|
2545
|
-
(
|
|
2546
|
-
(
|
|
2547
|
-
(
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
(
|
|
2558
|
-
(keydown.
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
[class.asc-input-counter--
|
|
2573
|
-
|
|
2574
|
-
aria-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
[
|
|
2590
|
-
[
|
|
2591
|
-
[
|
|
2592
|
-
[
|
|
2593
|
-
[
|
|
2594
|
-
[
|
|
2595
|
-
[
|
|
2596
|
-
[
|
|
2597
|
-
[
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
(
|
|
2601
|
-
(
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
(
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2526
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2527
|
+
@if (mode() === 'view') {
|
|
2528
|
+
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
2529
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
2530
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
2531
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
2532
|
+
@if (icon() && iconPos() === 'left') {
|
|
2533
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
<input
|
|
2537
|
+
#inputEl
|
|
2538
|
+
pInputText
|
|
2539
|
+
[id]="_inputId"
|
|
2540
|
+
[type]="type()"
|
|
2541
|
+
[disabled]="effectiveDisabled()"
|
|
2542
|
+
[readonly]="readonly()"
|
|
2543
|
+
[maxlength]="maxLength() ?? 524288"
|
|
2544
|
+
[autocomplete]="autocomplete()"
|
|
2545
|
+
[class]="inputCls()"
|
|
2546
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
2547
|
+
[ngModel]="value()"
|
|
2548
|
+
[ngModelOptions]="{ standalone: true }"
|
|
2549
|
+
(ngModelChange)="handleChange($event)"
|
|
2550
|
+
(focus)="handleFocus($event)"
|
|
2551
|
+
(blur)="handleBlur($event)"
|
|
2552
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
2553
|
+
/>
|
|
2554
|
+
|
|
2555
|
+
@if (showClearBtn()) {
|
|
2556
|
+
<p-inputicon
|
|
2557
|
+
class="pi pi-times asc-input-clear-btn"
|
|
2558
|
+
role="button"
|
|
2559
|
+
tabindex="0"
|
|
2560
|
+
[attr.aria-label]="msg.form.clear"
|
|
2561
|
+
(click)="clearValue()"
|
|
2562
|
+
(keydown.enter)="clearValue()"
|
|
2563
|
+
(keydown.space)="clearValue()"
|
|
2564
|
+
/>
|
|
2565
|
+
}
|
|
2566
|
+
@if (icon() && iconPos() === 'right') {
|
|
2567
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2568
|
+
}
|
|
2569
|
+
</p-iconfield>
|
|
2570
|
+
<label [for]="_inputId">{{ label() }}</label>
|
|
2571
|
+
</p-floatlabel>
|
|
2572
|
+
|
|
2573
|
+
@if (maxLength() && showCounter()) {
|
|
2574
|
+
<div
|
|
2575
|
+
class="asc-input-counter"
|
|
2576
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
2577
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
2578
|
+
aria-live="polite"
|
|
2579
|
+
aria-atomic="true"
|
|
2580
|
+
>
|
|
2581
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
2582
|
+
</div>
|
|
2583
|
+
}
|
|
2584
|
+
} @else {
|
|
2585
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
2586
|
+
@if (icon() && iconPos() === 'left') {
|
|
2587
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
<input
|
|
2591
|
+
#inputEl
|
|
2592
|
+
pInputText
|
|
2593
|
+
[id]="_inputId"
|
|
2594
|
+
[type]="type()"
|
|
2595
|
+
[placeholder]="placeholder()"
|
|
2596
|
+
[disabled]="effectiveDisabled()"
|
|
2597
|
+
[readonly]="readonly()"
|
|
2598
|
+
[maxlength]="maxLength() ?? 524288"
|
|
2599
|
+
[autocomplete]="autocomplete()"
|
|
2600
|
+
[class]="inputCls()"
|
|
2601
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
2602
|
+
[ngModel]="value()"
|
|
2603
|
+
[ngModelOptions]="{ standalone: true }"
|
|
2604
|
+
(ngModelChange)="handleChange($event)"
|
|
2605
|
+
(focus)="handleFocus($event)"
|
|
2606
|
+
(blur)="handleBlur($event)"
|
|
2607
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
2608
|
+
/>
|
|
2609
|
+
|
|
2610
|
+
@if (showClearBtn()) {
|
|
2611
|
+
<p-inputicon
|
|
2612
|
+
class="pi pi-times asc-input-clear-btn"
|
|
2613
|
+
role="button"
|
|
2614
|
+
tabindex="0"
|
|
2615
|
+
[attr.aria-label]="msg.form.clear"
|
|
2616
|
+
(click)="clearValue()"
|
|
2617
|
+
(keydown.enter)="clearValue()"
|
|
2618
|
+
(keydown.space)="clearValue()"
|
|
2619
|
+
/>
|
|
2620
|
+
}
|
|
2621
|
+
@if (icon() && iconPos() === 'right') {
|
|
2622
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2623
|
+
}
|
|
2624
|
+
</p-iconfield>
|
|
2625
|
+
|
|
2626
|
+
@if (maxLength() && showCounter()) {
|
|
2627
|
+
<div
|
|
2628
|
+
class="asc-input-counter"
|
|
2629
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
2630
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
2631
|
+
aria-live="polite"
|
|
2632
|
+
aria-atomic="true"
|
|
2633
|
+
>
|
|
2634
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
2635
|
+
</div>
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2632
2638
|
`, 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)}:host ::ng-deep .p-inputtext{border-radius:12px}.asc-input-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float)) ::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 }); }
|
|
2633
2639
|
}
|
|
2634
2640
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputComponent, decorators: [{
|
|
@@ -2637,116 +2643,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2637
2643
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscInputComponent) },
|
|
2638
2644
|
], host: {
|
|
2639
2645
|
'[class]': 'hostCls()',
|
|
2640
|
-
}, template: `
|
|
2641
|
-
@if (mode() === 'view') {
|
|
2642
|
-
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
2643
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
2644
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
2645
|
-
<p-iconfield [iconPosition]="iconPos()">
|
|
2646
|
-
@if (icon() && iconPos() === 'left') {
|
|
2647
|
-
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
<input
|
|
2651
|
-
#inputEl
|
|
2652
|
-
pInputText
|
|
2653
|
-
[id]="_inputId"
|
|
2654
|
-
[type]="type()"
|
|
2655
|
-
[disabled]="effectiveDisabled()"
|
|
2656
|
-
[readonly]="readonly()"
|
|
2657
|
-
[maxlength]="maxLength() ?? 524288"
|
|
2658
|
-
[autocomplete]="autocomplete()"
|
|
2659
|
-
[class]="inputCls()"
|
|
2660
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
2661
|
-
[ngModel]="value()"
|
|
2662
|
-
|
|
2663
|
-
(
|
|
2664
|
-
(
|
|
2665
|
-
(
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
(
|
|
2676
|
-
(keydown.
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
[class.asc-input-counter--
|
|
2691
|
-
|
|
2692
|
-
aria-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
[
|
|
2708
|
-
[
|
|
2709
|
-
[
|
|
2710
|
-
[
|
|
2711
|
-
[
|
|
2712
|
-
[
|
|
2713
|
-
[
|
|
2714
|
-
[
|
|
2715
|
-
[
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
(
|
|
2719
|
-
(
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
(
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2646
|
+
}, template: `
|
|
2647
|
+
@if (mode() === 'view') {
|
|
2648
|
+
<span class="asc-input-view">{{ value() || '—' }}</span>
|
|
2649
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
2650
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
2651
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
2652
|
+
@if (icon() && iconPos() === 'left') {
|
|
2653
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
<input
|
|
2657
|
+
#inputEl
|
|
2658
|
+
pInputText
|
|
2659
|
+
[id]="_inputId"
|
|
2660
|
+
[type]="type()"
|
|
2661
|
+
[disabled]="effectiveDisabled()"
|
|
2662
|
+
[readonly]="readonly()"
|
|
2663
|
+
[maxlength]="maxLength() ?? 524288"
|
|
2664
|
+
[autocomplete]="autocomplete()"
|
|
2665
|
+
[class]="inputCls()"
|
|
2666
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
2667
|
+
[ngModel]="value()"
|
|
2668
|
+
[ngModelOptions]="{ standalone: true }"
|
|
2669
|
+
(ngModelChange)="handleChange($event)"
|
|
2670
|
+
(focus)="handleFocus($event)"
|
|
2671
|
+
(blur)="handleBlur($event)"
|
|
2672
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
2673
|
+
/>
|
|
2674
|
+
|
|
2675
|
+
@if (showClearBtn()) {
|
|
2676
|
+
<p-inputicon
|
|
2677
|
+
class="pi pi-times asc-input-clear-btn"
|
|
2678
|
+
role="button"
|
|
2679
|
+
tabindex="0"
|
|
2680
|
+
[attr.aria-label]="msg.form.clear"
|
|
2681
|
+
(click)="clearValue()"
|
|
2682
|
+
(keydown.enter)="clearValue()"
|
|
2683
|
+
(keydown.space)="clearValue()"
|
|
2684
|
+
/>
|
|
2685
|
+
}
|
|
2686
|
+
@if (icon() && iconPos() === 'right') {
|
|
2687
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2688
|
+
}
|
|
2689
|
+
</p-iconfield>
|
|
2690
|
+
<label [for]="_inputId">{{ label() }}</label>
|
|
2691
|
+
</p-floatlabel>
|
|
2692
|
+
|
|
2693
|
+
@if (maxLength() && showCounter()) {
|
|
2694
|
+
<div
|
|
2695
|
+
class="asc-input-counter"
|
|
2696
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
2697
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
2698
|
+
aria-live="polite"
|
|
2699
|
+
aria-atomic="true"
|
|
2700
|
+
>
|
|
2701
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
2702
|
+
</div>
|
|
2703
|
+
}
|
|
2704
|
+
} @else {
|
|
2705
|
+
<p-iconfield [iconPosition]="iconPos()">
|
|
2706
|
+
@if (icon() && iconPos() === 'left') {
|
|
2707
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
<input
|
|
2711
|
+
#inputEl
|
|
2712
|
+
pInputText
|
|
2713
|
+
[id]="_inputId"
|
|
2714
|
+
[type]="type()"
|
|
2715
|
+
[placeholder]="placeholder()"
|
|
2716
|
+
[disabled]="effectiveDisabled()"
|
|
2717
|
+
[readonly]="readonly()"
|
|
2718
|
+
[maxlength]="maxLength() ?? 524288"
|
|
2719
|
+
[autocomplete]="autocomplete()"
|
|
2720
|
+
[class]="inputCls()"
|
|
2721
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
2722
|
+
[ngModel]="value()"
|
|
2723
|
+
[ngModelOptions]="{ standalone: true }"
|
|
2724
|
+
(ngModelChange)="handleChange($event)"
|
|
2725
|
+
(focus)="handleFocus($event)"
|
|
2726
|
+
(blur)="handleBlur($event)"
|
|
2727
|
+
(keydown.enter)="enterPressed.emit($event)"
|
|
2728
|
+
/>
|
|
2729
|
+
|
|
2730
|
+
@if (showClearBtn()) {
|
|
2731
|
+
<p-inputicon
|
|
2732
|
+
class="pi pi-times asc-input-clear-btn"
|
|
2733
|
+
role="button"
|
|
2734
|
+
tabindex="0"
|
|
2735
|
+
[attr.aria-label]="msg.form.clear"
|
|
2736
|
+
(click)="clearValue()"
|
|
2737
|
+
(keydown.enter)="clearValue()"
|
|
2738
|
+
(keydown.space)="clearValue()"
|
|
2739
|
+
/>
|
|
2740
|
+
}
|
|
2741
|
+
@if (icon() && iconPos() === 'right') {
|
|
2742
|
+
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2743
|
+
}
|
|
2744
|
+
</p-iconfield>
|
|
2745
|
+
|
|
2746
|
+
@if (maxLength() && showCounter()) {
|
|
2747
|
+
<div
|
|
2748
|
+
class="asc-input-counter"
|
|
2749
|
+
[class.asc-input-counter--near-limit]="isNearLimit()"
|
|
2750
|
+
[class.asc-input-counter--at-limit]="isAtLimit()"
|
|
2751
|
+
aria-live="polite"
|
|
2752
|
+
aria-atomic="true"
|
|
2753
|
+
>
|
|
2754
|
+
{{ value()?.length ?? 0 }}/{{ maxLength() }}
|
|
2755
|
+
</div>
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2750
2758
|
`, 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)}:host ::ng-deep .p-inputtext{border-radius:12px}.asc-input-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float)) ::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"] }]
|
|
2751
2759
|
}], 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 }] }] } });
|
|
2752
2760
|
|
|
@@ -2999,6 +3007,7 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
2999
3007
|
[panelStyleClass]="panelStyleClass()"
|
|
3000
3008
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3001
3009
|
[ngModel]="value()"
|
|
3010
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3002
3011
|
(ngModelChange)="handleChange($event)"
|
|
3003
3012
|
(onFocus)="handleFocus($event)"
|
|
3004
3013
|
(onBlur)="handleBlur($event)"
|
|
@@ -3036,6 +3045,7 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
3036
3045
|
[panelStyleClass]="panelStyleClass()"
|
|
3037
3046
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3038
3047
|
[ngModel]="value()"
|
|
3048
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3039
3049
|
(ngModelChange)="handleChange($event)"
|
|
3040
3050
|
(onFocus)="handleFocus($event)"
|
|
3041
3051
|
(onBlur)="handleBlur($event)"
|
|
@@ -3072,6 +3082,7 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
3072
3082
|
[panelStyleClass]="panelStyleClass()"
|
|
3073
3083
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3074
3084
|
[ngModel]="value()"
|
|
3085
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3075
3086
|
(ngModelChange)="handleChange($event)"
|
|
3076
3087
|
(onFocus)="handleFocus($any($event))"
|
|
3077
3088
|
(onBlur)="handleBlur($any($event))"
|
|
@@ -3107,6 +3118,7 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
3107
3118
|
[panelStyleClass]="panelStyleClass()"
|
|
3108
3119
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3109
3120
|
[ngModel]="value()"
|
|
3121
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3110
3122
|
(ngModelChange)="handleChange($event)"
|
|
3111
3123
|
(onFocus)="handleFocus($any($event))"
|
|
3112
3124
|
(onBlur)="handleBlur($any($event))"
|
|
@@ -3161,6 +3173,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3161
3173
|
[panelStyleClass]="panelStyleClass()"
|
|
3162
3174
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3163
3175
|
[ngModel]="value()"
|
|
3176
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3164
3177
|
(ngModelChange)="handleChange($event)"
|
|
3165
3178
|
(onFocus)="handleFocus($event)"
|
|
3166
3179
|
(onBlur)="handleBlur($event)"
|
|
@@ -3198,6 +3211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3198
3211
|
[panelStyleClass]="panelStyleClass()"
|
|
3199
3212
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3200
3213
|
[ngModel]="value()"
|
|
3214
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3201
3215
|
(ngModelChange)="handleChange($event)"
|
|
3202
3216
|
(onFocus)="handleFocus($event)"
|
|
3203
3217
|
(onBlur)="handleBlur($event)"
|
|
@@ -3234,6 +3248,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3234
3248
|
[panelStyleClass]="panelStyleClass()"
|
|
3235
3249
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3236
3250
|
[ngModel]="value()"
|
|
3251
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3237
3252
|
(ngModelChange)="handleChange($event)"
|
|
3238
3253
|
(onFocus)="handleFocus($any($event))"
|
|
3239
3254
|
(onBlur)="handleBlur($any($event))"
|
|
@@ -3269,6 +3284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3269
3284
|
[panelStyleClass]="panelStyleClass()"
|
|
3270
3285
|
[attr.aria-invalid]="invalid() || undefined"
|
|
3271
3286
|
[ngModel]="value()"
|
|
3287
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3272
3288
|
(ngModelChange)="handleChange($event)"
|
|
3273
3289
|
(onFocus)="handleFocus($any($event))"
|
|
3274
3290
|
(onBlur)="handleBlur($any($event))"
|
|
@@ -3533,82 +3549,84 @@ class AscDatepickerComponent extends BaseControlAccessor {
|
|
|
3533
3549
|
provide: ASC_BASE_CONTROL,
|
|
3534
3550
|
useExisting: forwardRef(() => AscDatepickerComponent),
|
|
3535
3551
|
},
|
|
3536
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
3537
|
-
@if (mode() === 'view') {
|
|
3538
|
-
<span class="asc-datepicker-view">{{ resolvedViewText() }}</span>
|
|
3539
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
3540
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3541
|
-
<p-datepicker
|
|
3542
|
-
[inputId]="pickerId()"
|
|
3543
|
-
[selectionMode]="selectionMode()"
|
|
3544
|
-
[view]="view()"
|
|
3545
|
-
[dateFormat]="resolvedDateFormat()"
|
|
3546
|
-
[minDate]="minDate() ?? undefined"
|
|
3547
|
-
[maxDate]="maxDate() ?? undefined"
|
|
3548
|
-
[disabledDates]="disabledDates()"
|
|
3549
|
-
[disabledDays]="disabledDays()"
|
|
3550
|
-
[showTime]="showTime()"
|
|
3551
|
-
[timeOnly]="timeOnly()"
|
|
3552
|
-
[hourFormat]="hourFormat()"
|
|
3553
|
-
[showButtonBar]="showButtonBar()"
|
|
3554
|
-
[showIcon]="showIcon()"
|
|
3555
|
-
[showWeek]="showWeek()"
|
|
3556
|
-
[inline]="inline()"
|
|
3557
|
-
[numberOfMonths]="numberOfMonths()"
|
|
3558
|
-
[firstDayOfWeek]="firstDayOfWeek()"
|
|
3559
|
-
[readonlyInput]="readonlyInput()"
|
|
3560
|
-
[disabled]="isDisabled()"
|
|
3561
|
-
[appendTo]="appendTo()"
|
|
3562
|
-
[class]="pickerInnerCls()"
|
|
3563
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3564
|
-
[ngModel]="value()"
|
|
3565
|
-
|
|
3566
|
-
(
|
|
3567
|
-
(
|
|
3568
|
-
(
|
|
3569
|
-
(
|
|
3570
|
-
(
|
|
3571
|
-
(
|
|
3572
|
-
(
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
[
|
|
3580
|
-
[
|
|
3581
|
-
[
|
|
3582
|
-
[
|
|
3583
|
-
[
|
|
3584
|
-
[
|
|
3585
|
-
[
|
|
3586
|
-
[
|
|
3587
|
-
[
|
|
3588
|
-
[
|
|
3589
|
-
[
|
|
3590
|
-
[
|
|
3591
|
-
[
|
|
3592
|
-
[
|
|
3593
|
-
[
|
|
3594
|
-
[
|
|
3595
|
-
[
|
|
3596
|
-
[
|
|
3597
|
-
[
|
|
3598
|
-
[
|
|
3599
|
-
[
|
|
3600
|
-
[
|
|
3601
|
-
[
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
(
|
|
3605
|
-
(
|
|
3606
|
-
(
|
|
3607
|
-
(
|
|
3608
|
-
(
|
|
3609
|
-
(
|
|
3610
|
-
|
|
3611
|
-
|
|
3552
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
3553
|
+
@if (mode() === 'view') {
|
|
3554
|
+
<span class="asc-datepicker-view">{{ resolvedViewText() }}</span>
|
|
3555
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
3556
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3557
|
+
<p-datepicker
|
|
3558
|
+
[inputId]="pickerId()"
|
|
3559
|
+
[selectionMode]="selectionMode()"
|
|
3560
|
+
[view]="view()"
|
|
3561
|
+
[dateFormat]="resolvedDateFormat()"
|
|
3562
|
+
[minDate]="minDate() ?? undefined"
|
|
3563
|
+
[maxDate]="maxDate() ?? undefined"
|
|
3564
|
+
[disabledDates]="disabledDates()"
|
|
3565
|
+
[disabledDays]="disabledDays()"
|
|
3566
|
+
[showTime]="showTime()"
|
|
3567
|
+
[timeOnly]="timeOnly()"
|
|
3568
|
+
[hourFormat]="hourFormat()"
|
|
3569
|
+
[showButtonBar]="showButtonBar()"
|
|
3570
|
+
[showIcon]="showIcon()"
|
|
3571
|
+
[showWeek]="showWeek()"
|
|
3572
|
+
[inline]="inline()"
|
|
3573
|
+
[numberOfMonths]="numberOfMonths()"
|
|
3574
|
+
[firstDayOfWeek]="firstDayOfWeek()"
|
|
3575
|
+
[readonlyInput]="readonlyInput()"
|
|
3576
|
+
[disabled]="isDisabled()"
|
|
3577
|
+
[appendTo]="appendTo()"
|
|
3578
|
+
[class]="pickerInnerCls()"
|
|
3579
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3580
|
+
[ngModel]="value()"
|
|
3581
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3582
|
+
(ngModelChange)="handleChange($event)"
|
|
3583
|
+
(onFocus)="handleFocus($event)"
|
|
3584
|
+
(onBlur)="handleBlur($event)"
|
|
3585
|
+
(onSelect)="handleSelect($event)"
|
|
3586
|
+
(onTodayClick)="todayClick.emit($event)"
|
|
3587
|
+
(onClearClick)="clearClick.emit($event)"
|
|
3588
|
+
(onMonthChange)="viewDateChange.emit($event)"
|
|
3589
|
+
(onYearChange)="viewDateChange.emit($event)"
|
|
3590
|
+
></p-datepicker>
|
|
3591
|
+
<label [for]="pickerId()">{{ label() }}</label>
|
|
3592
|
+
</p-floatlabel>
|
|
3593
|
+
} @else {
|
|
3594
|
+
<p-datepicker
|
|
3595
|
+
[inputId]="pickerId()"
|
|
3596
|
+
[selectionMode]="selectionMode()"
|
|
3597
|
+
[view]="view()"
|
|
3598
|
+
[dateFormat]="resolvedDateFormat()"
|
|
3599
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3600
|
+
[minDate]="minDate() ?? undefined"
|
|
3601
|
+
[maxDate]="maxDate() ?? undefined"
|
|
3602
|
+
[disabledDates]="disabledDates()"
|
|
3603
|
+
[disabledDays]="disabledDays()"
|
|
3604
|
+
[showTime]="showTime()"
|
|
3605
|
+
[timeOnly]="timeOnly()"
|
|
3606
|
+
[hourFormat]="hourFormat()"
|
|
3607
|
+
[showButtonBar]="showButtonBar()"
|
|
3608
|
+
[showIcon]="showIcon()"
|
|
3609
|
+
[showWeek]="showWeek()"
|
|
3610
|
+
[inline]="inline()"
|
|
3611
|
+
[numberOfMonths]="numberOfMonths()"
|
|
3612
|
+
[firstDayOfWeek]="firstDayOfWeek()"
|
|
3613
|
+
[readonlyInput]="readonlyInput()"
|
|
3614
|
+
[disabled]="isDisabled()"
|
|
3615
|
+
[appendTo]="appendTo()"
|
|
3616
|
+
[class]="pickerInnerCls()"
|
|
3617
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3618
|
+
[ngModel]="value()"
|
|
3619
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3620
|
+
(ngModelChange)="handleChange($event)"
|
|
3621
|
+
(onFocus)="handleFocus($event)"
|
|
3622
|
+
(onBlur)="handleBlur($event)"
|
|
3623
|
+
(onSelect)="handleSelect($event)"
|
|
3624
|
+
(onTodayClick)="todayClick.emit($event)"
|
|
3625
|
+
(onClearClick)="clearClick.emit($event)"
|
|
3626
|
+
(onMonthChange)="viewDateChange.emit($event)"
|
|
3627
|
+
(onYearChange)="viewDateChange.emit($event)"
|
|
3628
|
+
></p-datepicker>
|
|
3629
|
+
}
|
|
3612
3630
|
`, 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}:host{--p-datepicker-dropdown-border-radius: 12px}:host ::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 }); }
|
|
3613
3631
|
}
|
|
3614
3632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDatepickerComponent, decorators: [{
|
|
@@ -3621,82 +3639,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3621
3639
|
], host: {
|
|
3622
3640
|
'[class]': 'hostCls()',
|
|
3623
3641
|
'[attr.data-input-id]': 'pickerId()',
|
|
3624
|
-
}, template: `
|
|
3625
|
-
@if (mode() === 'view') {
|
|
3626
|
-
<span class="asc-datepicker-view">{{ resolvedViewText() }}</span>
|
|
3627
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
3628
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3629
|
-
<p-datepicker
|
|
3630
|
-
[inputId]="pickerId()"
|
|
3631
|
-
[selectionMode]="selectionMode()"
|
|
3632
|
-
[view]="view()"
|
|
3633
|
-
[dateFormat]="resolvedDateFormat()"
|
|
3634
|
-
[minDate]="minDate() ?? undefined"
|
|
3635
|
-
[maxDate]="maxDate() ?? undefined"
|
|
3636
|
-
[disabledDates]="disabledDates()"
|
|
3637
|
-
[disabledDays]="disabledDays()"
|
|
3638
|
-
[showTime]="showTime()"
|
|
3639
|
-
[timeOnly]="timeOnly()"
|
|
3640
|
-
[hourFormat]="hourFormat()"
|
|
3641
|
-
[showButtonBar]="showButtonBar()"
|
|
3642
|
-
[showIcon]="showIcon()"
|
|
3643
|
-
[showWeek]="showWeek()"
|
|
3644
|
-
[inline]="inline()"
|
|
3645
|
-
[numberOfMonths]="numberOfMonths()"
|
|
3646
|
-
[firstDayOfWeek]="firstDayOfWeek()"
|
|
3647
|
-
[readonlyInput]="readonlyInput()"
|
|
3648
|
-
[disabled]="isDisabled()"
|
|
3649
|
-
[appendTo]="appendTo()"
|
|
3650
|
-
[class]="pickerInnerCls()"
|
|
3651
|
-
[attr.aria-invalid]="invalid() || undefined"
|
|
3652
|
-
[ngModel]="value()"
|
|
3653
|
-
|
|
3654
|
-
(
|
|
3655
|
-
(
|
|
3656
|
-
(
|
|
3657
|
-
(
|
|
3658
|
-
(
|
|
3659
|
-
(
|
|
3660
|
-
(
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
[
|
|
3668
|
-
[
|
|
3669
|
-
[
|
|
3670
|
-
[
|
|
3671
|
-
[
|
|
3672
|
-
[
|
|
3673
|
-
[
|
|
3674
|
-
[
|
|
3675
|
-
[
|
|
3676
|
-
[
|
|
3677
|
-
[
|
|
3678
|
-
[
|
|
3679
|
-
[
|
|
3680
|
-
[
|
|
3681
|
-
[
|
|
3682
|
-
[
|
|
3683
|
-
[
|
|
3684
|
-
[
|
|
3685
|
-
[
|
|
3686
|
-
[
|
|
3687
|
-
[
|
|
3688
|
-
[
|
|
3689
|
-
[
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
(
|
|
3693
|
-
(
|
|
3694
|
-
(
|
|
3695
|
-
(
|
|
3696
|
-
(
|
|
3697
|
-
(
|
|
3698
|
-
|
|
3699
|
-
|
|
3642
|
+
}, template: `
|
|
3643
|
+
@if (mode() === 'view') {
|
|
3644
|
+
<span class="asc-datepicker-view">{{ resolvedViewText() }}</span>
|
|
3645
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
3646
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3647
|
+
<p-datepicker
|
|
3648
|
+
[inputId]="pickerId()"
|
|
3649
|
+
[selectionMode]="selectionMode()"
|
|
3650
|
+
[view]="view()"
|
|
3651
|
+
[dateFormat]="resolvedDateFormat()"
|
|
3652
|
+
[minDate]="minDate() ?? undefined"
|
|
3653
|
+
[maxDate]="maxDate() ?? undefined"
|
|
3654
|
+
[disabledDates]="disabledDates()"
|
|
3655
|
+
[disabledDays]="disabledDays()"
|
|
3656
|
+
[showTime]="showTime()"
|
|
3657
|
+
[timeOnly]="timeOnly()"
|
|
3658
|
+
[hourFormat]="hourFormat()"
|
|
3659
|
+
[showButtonBar]="showButtonBar()"
|
|
3660
|
+
[showIcon]="showIcon()"
|
|
3661
|
+
[showWeek]="showWeek()"
|
|
3662
|
+
[inline]="inline()"
|
|
3663
|
+
[numberOfMonths]="numberOfMonths()"
|
|
3664
|
+
[firstDayOfWeek]="firstDayOfWeek()"
|
|
3665
|
+
[readonlyInput]="readonlyInput()"
|
|
3666
|
+
[disabled]="isDisabled()"
|
|
3667
|
+
[appendTo]="appendTo()"
|
|
3668
|
+
[class]="pickerInnerCls()"
|
|
3669
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3670
|
+
[ngModel]="value()"
|
|
3671
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3672
|
+
(ngModelChange)="handleChange($event)"
|
|
3673
|
+
(onFocus)="handleFocus($event)"
|
|
3674
|
+
(onBlur)="handleBlur($event)"
|
|
3675
|
+
(onSelect)="handleSelect($event)"
|
|
3676
|
+
(onTodayClick)="todayClick.emit($event)"
|
|
3677
|
+
(onClearClick)="clearClick.emit($event)"
|
|
3678
|
+
(onMonthChange)="viewDateChange.emit($event)"
|
|
3679
|
+
(onYearChange)="viewDateChange.emit($event)"
|
|
3680
|
+
></p-datepicker>
|
|
3681
|
+
<label [for]="pickerId()">{{ label() }}</label>
|
|
3682
|
+
</p-floatlabel>
|
|
3683
|
+
} @else {
|
|
3684
|
+
<p-datepicker
|
|
3685
|
+
[inputId]="pickerId()"
|
|
3686
|
+
[selectionMode]="selectionMode()"
|
|
3687
|
+
[view]="view()"
|
|
3688
|
+
[dateFormat]="resolvedDateFormat()"
|
|
3689
|
+
[placeholder]="resolvedPlaceholder()"
|
|
3690
|
+
[minDate]="minDate() ?? undefined"
|
|
3691
|
+
[maxDate]="maxDate() ?? undefined"
|
|
3692
|
+
[disabledDates]="disabledDates()"
|
|
3693
|
+
[disabledDays]="disabledDays()"
|
|
3694
|
+
[showTime]="showTime()"
|
|
3695
|
+
[timeOnly]="timeOnly()"
|
|
3696
|
+
[hourFormat]="hourFormat()"
|
|
3697
|
+
[showButtonBar]="showButtonBar()"
|
|
3698
|
+
[showIcon]="showIcon()"
|
|
3699
|
+
[showWeek]="showWeek()"
|
|
3700
|
+
[inline]="inline()"
|
|
3701
|
+
[numberOfMonths]="numberOfMonths()"
|
|
3702
|
+
[firstDayOfWeek]="firstDayOfWeek()"
|
|
3703
|
+
[readonlyInput]="readonlyInput()"
|
|
3704
|
+
[disabled]="isDisabled()"
|
|
3705
|
+
[appendTo]="appendTo()"
|
|
3706
|
+
[class]="pickerInnerCls()"
|
|
3707
|
+
[attr.aria-invalid]="invalid() || undefined"
|
|
3708
|
+
[ngModel]="value()"
|
|
3709
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3710
|
+
(ngModelChange)="handleChange($event)"
|
|
3711
|
+
(onFocus)="handleFocus($event)"
|
|
3712
|
+
(onBlur)="handleBlur($event)"
|
|
3713
|
+
(onSelect)="handleSelect($event)"
|
|
3714
|
+
(onTodayClick)="todayClick.emit($event)"
|
|
3715
|
+
(onClearClick)="clearClick.emit($event)"
|
|
3716
|
+
(onMonthChange)="viewDateChange.emit($event)"
|
|
3717
|
+
(onYearChange)="viewDateChange.emit($event)"
|
|
3718
|
+
></p-datepicker>
|
|
3719
|
+
}
|
|
3700
3720
|
`, 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}:host{--p-datepicker-dropdown-border-radius: 12px}:host ::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"] }]
|
|
3701
3721
|
}], 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"] }] } });
|
|
3702
3722
|
|
|
@@ -3812,51 +3832,53 @@ class AscPasswordComponent extends BaseControlAccessor {
|
|
|
3812
3832
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscPasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3813
3833
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscPasswordComponent, isStandalone: true, selector: "asc-password", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, toggleMask: { classPropertyName: "toggleMask", publicName: "toggleMask", isSignal: true, isRequired: false, transformFunction: null }, feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, floatLabelVariant: { classPropertyName: "floatLabelVariant", publicName: "floatLabelVariant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", focused: "focused", blurred: "blurred" }, host: { properties: { "class": "hostCls()", "attr.data-input-id": "passwordId()" } }, providers: [
|
|
3814
3834
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscPasswordComponent) },
|
|
3815
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
3816
|
-
@if (resolvedFloatLabel() && label()) {
|
|
3817
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3818
|
-
<p-password
|
|
3819
|
-
[inputId]="passwordId()"
|
|
3820
|
-
[placeholder]="placeholder()"
|
|
3821
|
-
[disabled]="effectiveDisabled()"
|
|
3822
|
-
[feedback]="feedback()"
|
|
3823
|
-
[toggleMask]="toggleMask()"
|
|
3824
|
-
[showClear]="showClear()"
|
|
3825
|
-
[autocomplete]="autocomplete()"
|
|
3826
|
-
[inputStyleClass]="inputCls()"
|
|
3827
|
-
[promptLabel]="msg.password.prompt"
|
|
3828
|
-
[weakLabel]="msg.password.weak"
|
|
3829
|
-
[mediumLabel]="msg.password.medium"
|
|
3830
|
-
[strongLabel]="msg.password.strong"
|
|
3831
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3832
|
-
[ngModel]="value()"
|
|
3833
|
-
|
|
3834
|
-
(
|
|
3835
|
-
(
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
[
|
|
3843
|
-
[
|
|
3844
|
-
[
|
|
3845
|
-
[
|
|
3846
|
-
[
|
|
3847
|
-
[
|
|
3848
|
-
[
|
|
3849
|
-
[
|
|
3850
|
-
[
|
|
3851
|
-
[
|
|
3852
|
-
[
|
|
3853
|
-
[
|
|
3854
|
-
[
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
(
|
|
3858
|
-
|
|
3859
|
-
|
|
3835
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
3836
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3837
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3838
|
+
<p-password
|
|
3839
|
+
[inputId]="passwordId()"
|
|
3840
|
+
[placeholder]="placeholder()"
|
|
3841
|
+
[disabled]="effectiveDisabled()"
|
|
3842
|
+
[feedback]="feedback()"
|
|
3843
|
+
[toggleMask]="toggleMask()"
|
|
3844
|
+
[showClear]="showClear()"
|
|
3845
|
+
[autocomplete]="autocomplete()"
|
|
3846
|
+
[inputStyleClass]="inputCls()"
|
|
3847
|
+
[promptLabel]="msg.password.prompt"
|
|
3848
|
+
[weakLabel]="msg.password.weak"
|
|
3849
|
+
[mediumLabel]="msg.password.medium"
|
|
3850
|
+
[strongLabel]="msg.password.strong"
|
|
3851
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3852
|
+
[ngModel]="value()"
|
|
3853
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3854
|
+
(ngModelChange)="handleChange($event)"
|
|
3855
|
+
(onFocus)="handleFocus($event)"
|
|
3856
|
+
(onBlur)="handleBlur($event)"
|
|
3857
|
+
/>
|
|
3858
|
+
<label [for]="passwordId()">{{ label() }}</label>
|
|
3859
|
+
</p-floatlabel>
|
|
3860
|
+
} @else {
|
|
3861
|
+
<p-password
|
|
3862
|
+
[inputId]="passwordId()"
|
|
3863
|
+
[placeholder]="placeholder()"
|
|
3864
|
+
[disabled]="isDisabled()"
|
|
3865
|
+
[feedback]="feedback()"
|
|
3866
|
+
[toggleMask]="toggleMask()"
|
|
3867
|
+
[showClear]="showClear()"
|
|
3868
|
+
[autocomplete]="autocomplete()"
|
|
3869
|
+
[inputStyleClass]="inputCls()"
|
|
3870
|
+
[promptLabel]="msg.password.prompt"
|
|
3871
|
+
[weakLabel]="msg.password.weak"
|
|
3872
|
+
[mediumLabel]="msg.password.medium"
|
|
3873
|
+
[strongLabel]="msg.password.strong"
|
|
3874
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3875
|
+
[ngModel]="value()"
|
|
3876
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3877
|
+
(ngModelChange)="handleChange($event)"
|
|
3878
|
+
(onFocus)="handleFocus($event)"
|
|
3879
|
+
(onBlur)="handleBlur($event)"
|
|
3880
|
+
/>
|
|
3881
|
+
}
|
|
3860
3882
|
`, 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 }); }
|
|
3861
3883
|
}
|
|
3862
3884
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscPasswordComponent, decorators: [{
|
|
@@ -3866,51 +3888,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3866
3888
|
], host: {
|
|
3867
3889
|
'[class]': 'hostCls()',
|
|
3868
3890
|
'[attr.data-input-id]': 'passwordId()',
|
|
3869
|
-
}, template: `
|
|
3870
|
-
@if (resolvedFloatLabel() && label()) {
|
|
3871
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3872
|
-
<p-password
|
|
3873
|
-
[inputId]="passwordId()"
|
|
3874
|
-
[placeholder]="placeholder()"
|
|
3875
|
-
[disabled]="effectiveDisabled()"
|
|
3876
|
-
[feedback]="feedback()"
|
|
3877
|
-
[toggleMask]="toggleMask()"
|
|
3878
|
-
[showClear]="showClear()"
|
|
3879
|
-
[autocomplete]="autocomplete()"
|
|
3880
|
-
[inputStyleClass]="inputCls()"
|
|
3881
|
-
[promptLabel]="msg.password.prompt"
|
|
3882
|
-
[weakLabel]="msg.password.weak"
|
|
3883
|
-
[mediumLabel]="msg.password.medium"
|
|
3884
|
-
[strongLabel]="msg.password.strong"
|
|
3885
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3886
|
-
[ngModel]="value()"
|
|
3887
|
-
|
|
3888
|
-
(
|
|
3889
|
-
(
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
[
|
|
3897
|
-
[
|
|
3898
|
-
[
|
|
3899
|
-
[
|
|
3900
|
-
[
|
|
3901
|
-
[
|
|
3902
|
-
[
|
|
3903
|
-
[
|
|
3904
|
-
[
|
|
3905
|
-
[
|
|
3906
|
-
[
|
|
3907
|
-
[
|
|
3908
|
-
[
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
(
|
|
3912
|
-
|
|
3913
|
-
|
|
3891
|
+
}, template: `
|
|
3892
|
+
@if (resolvedFloatLabel() && label()) {
|
|
3893
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
3894
|
+
<p-password
|
|
3895
|
+
[inputId]="passwordId()"
|
|
3896
|
+
[placeholder]="placeholder()"
|
|
3897
|
+
[disabled]="effectiveDisabled()"
|
|
3898
|
+
[feedback]="feedback()"
|
|
3899
|
+
[toggleMask]="toggleMask()"
|
|
3900
|
+
[showClear]="showClear()"
|
|
3901
|
+
[autocomplete]="autocomplete()"
|
|
3902
|
+
[inputStyleClass]="inputCls()"
|
|
3903
|
+
[promptLabel]="msg.password.prompt"
|
|
3904
|
+
[weakLabel]="msg.password.weak"
|
|
3905
|
+
[mediumLabel]="msg.password.medium"
|
|
3906
|
+
[strongLabel]="msg.password.strong"
|
|
3907
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3908
|
+
[ngModel]="value()"
|
|
3909
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3910
|
+
(ngModelChange)="handleChange($event)"
|
|
3911
|
+
(onFocus)="handleFocus($event)"
|
|
3912
|
+
(onBlur)="handleBlur($event)"
|
|
3913
|
+
/>
|
|
3914
|
+
<label [for]="passwordId()">{{ label() }}</label>
|
|
3915
|
+
</p-floatlabel>
|
|
3916
|
+
} @else {
|
|
3917
|
+
<p-password
|
|
3918
|
+
[inputId]="passwordId()"
|
|
3919
|
+
[placeholder]="placeholder()"
|
|
3920
|
+
[disabled]="isDisabled()"
|
|
3921
|
+
[feedback]="feedback()"
|
|
3922
|
+
[toggleMask]="toggleMask()"
|
|
3923
|
+
[showClear]="showClear()"
|
|
3924
|
+
[autocomplete]="autocomplete()"
|
|
3925
|
+
[inputStyleClass]="inputCls()"
|
|
3926
|
+
[promptLabel]="msg.password.prompt"
|
|
3927
|
+
[weakLabel]="msg.password.weak"
|
|
3928
|
+
[mediumLabel]="msg.password.medium"
|
|
3929
|
+
[strongLabel]="msg.password.strong"
|
|
3930
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
3931
|
+
[ngModel]="value()"
|
|
3932
|
+
[ngModelOptions]="{ standalone: true }"
|
|
3933
|
+
(ngModelChange)="handleChange($event)"
|
|
3934
|
+
(onFocus)="handleFocus($event)"
|
|
3935
|
+
(onBlur)="handleBlur($event)"
|
|
3936
|
+
/>
|
|
3937
|
+
}
|
|
3914
3938
|
`, 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"] }]
|
|
3915
3939
|
}], 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"] }] } });
|
|
3916
3940
|
|
|
@@ -4095,65 +4119,67 @@ class AscInputNumberComponent extends BaseControlAccessor {
|
|
|
4095
4119
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4096
4120
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscInputNumberComponent, isStandalone: true, selector: "asc-input-number", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, fractionDigits: { classPropertyName: "fractionDigits", publicName: "fractionDigits", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, buttonLayout: { classPropertyName: "buttonLayout", publicName: "buttonLayout", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, floatLabelVariant: { classPropertyName: "floatLabelVariant", publicName: "floatLabelVariant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputEvent: "inputEvent", focused: "focused", blurred: "blurred" }, host: { properties: { "class": "hostCls()", "attr.data-input-id": "numberId()" } }, providers: [
|
|
4097
4121
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscInputNumberComponent) },
|
|
4098
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
4099
|
-
@if (mode() === 'view') {
|
|
4100
|
-
<span class="asc-input-number-view">{{ resolvedViewText() }}</span>
|
|
4101
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
4102
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
4103
|
-
<p-inputnumber
|
|
4104
|
-
[inputId]="numberId()"
|
|
4105
|
-
[placeholder]="placeholder()"
|
|
4106
|
-
[disabled]="effectiveDisabled()"
|
|
4107
|
-
[readonly]="readonly()"
|
|
4108
|
-
[allowEmpty]="allowEmpty()"
|
|
4109
|
-
[useGrouping]="useGrouping()"
|
|
4110
|
-
[minFractionDigits]="resolvedMinFraction()"
|
|
4111
|
-
[maxFractionDigits]="resolvedMaxFraction()"
|
|
4112
|
-
[min]="min() ?? null"
|
|
4113
|
-
[max]="max() ?? null"
|
|
4114
|
-
[prefix]="prefix()"
|
|
4115
|
-
[suffix]="suffix()"
|
|
4116
|
-
[showButtons]="showButtons()"
|
|
4117
|
-
[buttonLayout]="buttonLayout()"
|
|
4118
|
-
[showClear]="showClear()"
|
|
4119
|
-
[locale]="resolvedLocale()"
|
|
4120
|
-
[inputStyleClass]="inputCls()"
|
|
4121
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4122
|
-
[ngModel]="value()"
|
|
4123
|
-
|
|
4124
|
-
(
|
|
4125
|
-
(
|
|
4126
|
-
(
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
[
|
|
4134
|
-
[
|
|
4135
|
-
[
|
|
4136
|
-
[
|
|
4137
|
-
[
|
|
4138
|
-
[
|
|
4139
|
-
[
|
|
4140
|
-
[
|
|
4141
|
-
[
|
|
4142
|
-
[
|
|
4143
|
-
[
|
|
4144
|
-
[
|
|
4145
|
-
[
|
|
4146
|
-
[
|
|
4147
|
-
[
|
|
4148
|
-
[
|
|
4149
|
-
[
|
|
4150
|
-
[
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
(
|
|
4154
|
-
(
|
|
4155
|
-
|
|
4156
|
-
|
|
4122
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
4123
|
+
@if (mode() === 'view') {
|
|
4124
|
+
<span class="asc-input-number-view">{{ resolvedViewText() }}</span>
|
|
4125
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
4126
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
4127
|
+
<p-inputnumber
|
|
4128
|
+
[inputId]="numberId()"
|
|
4129
|
+
[placeholder]="placeholder()"
|
|
4130
|
+
[disabled]="effectiveDisabled()"
|
|
4131
|
+
[readonly]="readonly()"
|
|
4132
|
+
[allowEmpty]="allowEmpty()"
|
|
4133
|
+
[useGrouping]="useGrouping()"
|
|
4134
|
+
[minFractionDigits]="resolvedMinFraction()"
|
|
4135
|
+
[maxFractionDigits]="resolvedMaxFraction()"
|
|
4136
|
+
[min]="min() ?? null"
|
|
4137
|
+
[max]="max() ?? null"
|
|
4138
|
+
[prefix]="prefix()"
|
|
4139
|
+
[suffix]="suffix()"
|
|
4140
|
+
[showButtons]="showButtons()"
|
|
4141
|
+
[buttonLayout]="buttonLayout()"
|
|
4142
|
+
[showClear]="showClear()"
|
|
4143
|
+
[locale]="resolvedLocale()"
|
|
4144
|
+
[inputStyleClass]="inputCls()"
|
|
4145
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4146
|
+
[ngModel]="value()"
|
|
4147
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4148
|
+
(ngModelChange)="handleChange($event)"
|
|
4149
|
+
(onFocus)="handleFocus($event)"
|
|
4150
|
+
(onBlur)="handleBlur($event)"
|
|
4151
|
+
(onInput)="inputEvent.emit($event)"
|
|
4152
|
+
/>
|
|
4153
|
+
<label [for]="numberId()">{{ label() }}</label>
|
|
4154
|
+
</p-floatlabel>
|
|
4155
|
+
} @else {
|
|
4156
|
+
<p-inputnumber
|
|
4157
|
+
[inputId]="numberId()"
|
|
4158
|
+
[placeholder]="placeholder()"
|
|
4159
|
+
[disabled]="isDisabled()"
|
|
4160
|
+
[readonly]="readonly()"
|
|
4161
|
+
[allowEmpty]="allowEmpty()"
|
|
4162
|
+
[useGrouping]="useGrouping()"
|
|
4163
|
+
[minFractionDigits]="resolvedMinFraction()"
|
|
4164
|
+
[maxFractionDigits]="resolvedMaxFraction()"
|
|
4165
|
+
[min]="min() ?? null"
|
|
4166
|
+
[max]="max() ?? null"
|
|
4167
|
+
[prefix]="prefix()"
|
|
4168
|
+
[suffix]="suffix()"
|
|
4169
|
+
[showButtons]="showButtons()"
|
|
4170
|
+
[buttonLayout]="buttonLayout()"
|
|
4171
|
+
[showClear]="showClear()"
|
|
4172
|
+
[locale]="resolvedLocale()"
|
|
4173
|
+
[inputStyleClass]="inputCls()"
|
|
4174
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4175
|
+
[ngModel]="value()"
|
|
4176
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4177
|
+
(ngModelChange)="handleChange($event)"
|
|
4178
|
+
(onFocus)="handleFocus($event)"
|
|
4179
|
+
(onBlur)="handleBlur($event)"
|
|
4180
|
+
(onInput)="inputEvent.emit($event)"
|
|
4181
|
+
/>
|
|
4182
|
+
}
|
|
4157
4183
|
`, isInline: true, styles: [":host{display:block;width:100%;--p-inputnumber-button-border-radius: 12px}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputnumber-input{border-radius:12px}.asc-input-number-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size: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(.asc-input-number--xs) ::ng-deep .p-inputnumber-input{line-height:16px}:host(.asc-input-number--sm) ::ng-deep .p-inputnumber-input{line-height:18px}:host(.asc-input-number--md) ::ng-deep .p-inputnumber-input{line-height:20px}:host(.asc-input-number--lg) ::ng-deep .p-inputnumber-input{line-height:24px}:host(.asc-input-number--xl) ::ng-deep .p-inputnumber-input{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.p-inputnumber-horizontal .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-vertical .p-inputnumber-input{border-radius:0}:host ::ng-deep .p-inputnumber-button .p-icon{width:14px;height:14px}:host ::ng-deep .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputnumber-clear-icon{box-sizing:border-box;width:var(--p-icon-size);height:var(--p-icon-size);padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputnumber-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-input-number--disabled) ::ng-deep .p-inputnumber-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i2$6.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4158
4184
|
}
|
|
4159
4185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputNumberComponent, decorators: [{
|
|
@@ -4163,65 +4189,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4163
4189
|
], host: {
|
|
4164
4190
|
'[class]': 'hostCls()',
|
|
4165
4191
|
'[attr.data-input-id]': 'numberId()',
|
|
4166
|
-
}, template: `
|
|
4167
|
-
@if (mode() === 'view') {
|
|
4168
|
-
<span class="asc-input-number-view">{{ resolvedViewText() }}</span>
|
|
4169
|
-
} @else if (resolvedFloatLabel() && label()) {
|
|
4170
|
-
<p-floatlabel [variant]="floatLabelVariant()">
|
|
4171
|
-
<p-inputnumber
|
|
4172
|
-
[inputId]="numberId()"
|
|
4173
|
-
[placeholder]="placeholder()"
|
|
4174
|
-
[disabled]="effectiveDisabled()"
|
|
4175
|
-
[readonly]="readonly()"
|
|
4176
|
-
[allowEmpty]="allowEmpty()"
|
|
4177
|
-
[useGrouping]="useGrouping()"
|
|
4178
|
-
[minFractionDigits]="resolvedMinFraction()"
|
|
4179
|
-
[maxFractionDigits]="resolvedMaxFraction()"
|
|
4180
|
-
[min]="min() ?? null"
|
|
4181
|
-
[max]="max() ?? null"
|
|
4182
|
-
[prefix]="prefix()"
|
|
4183
|
-
[suffix]="suffix()"
|
|
4184
|
-
[showButtons]="showButtons()"
|
|
4185
|
-
[buttonLayout]="buttonLayout()"
|
|
4186
|
-
[showClear]="showClear()"
|
|
4187
|
-
[locale]="resolvedLocale()"
|
|
4188
|
-
[inputStyleClass]="inputCls()"
|
|
4189
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4190
|
-
[ngModel]="value()"
|
|
4191
|
-
|
|
4192
|
-
(
|
|
4193
|
-
(
|
|
4194
|
-
(
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
[
|
|
4202
|
-
[
|
|
4203
|
-
[
|
|
4204
|
-
[
|
|
4205
|
-
[
|
|
4206
|
-
[
|
|
4207
|
-
[
|
|
4208
|
-
[
|
|
4209
|
-
[
|
|
4210
|
-
[
|
|
4211
|
-
[
|
|
4212
|
-
[
|
|
4213
|
-
[
|
|
4214
|
-
[
|
|
4215
|
-
[
|
|
4216
|
-
[
|
|
4217
|
-
[
|
|
4218
|
-
[
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
(
|
|
4222
|
-
(
|
|
4223
|
-
|
|
4224
|
-
|
|
4192
|
+
}, template: `
|
|
4193
|
+
@if (mode() === 'view') {
|
|
4194
|
+
<span class="asc-input-number-view">{{ resolvedViewText() }}</span>
|
|
4195
|
+
} @else if (resolvedFloatLabel() && label()) {
|
|
4196
|
+
<p-floatlabel [variant]="floatLabelVariant()">
|
|
4197
|
+
<p-inputnumber
|
|
4198
|
+
[inputId]="numberId()"
|
|
4199
|
+
[placeholder]="placeholder()"
|
|
4200
|
+
[disabled]="effectiveDisabled()"
|
|
4201
|
+
[readonly]="readonly()"
|
|
4202
|
+
[allowEmpty]="allowEmpty()"
|
|
4203
|
+
[useGrouping]="useGrouping()"
|
|
4204
|
+
[minFractionDigits]="resolvedMinFraction()"
|
|
4205
|
+
[maxFractionDigits]="resolvedMaxFraction()"
|
|
4206
|
+
[min]="min() ?? null"
|
|
4207
|
+
[max]="max() ?? null"
|
|
4208
|
+
[prefix]="prefix()"
|
|
4209
|
+
[suffix]="suffix()"
|
|
4210
|
+
[showButtons]="showButtons()"
|
|
4211
|
+
[buttonLayout]="buttonLayout()"
|
|
4212
|
+
[showClear]="showClear()"
|
|
4213
|
+
[locale]="resolvedLocale()"
|
|
4214
|
+
[inputStyleClass]="inputCls()"
|
|
4215
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4216
|
+
[ngModel]="value()"
|
|
4217
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4218
|
+
(ngModelChange)="handleChange($event)"
|
|
4219
|
+
(onFocus)="handleFocus($event)"
|
|
4220
|
+
(onBlur)="handleBlur($event)"
|
|
4221
|
+
(onInput)="inputEvent.emit($event)"
|
|
4222
|
+
/>
|
|
4223
|
+
<label [for]="numberId()">{{ label() }}</label>
|
|
4224
|
+
</p-floatlabel>
|
|
4225
|
+
} @else {
|
|
4226
|
+
<p-inputnumber
|
|
4227
|
+
[inputId]="numberId()"
|
|
4228
|
+
[placeholder]="placeholder()"
|
|
4229
|
+
[disabled]="isDisabled()"
|
|
4230
|
+
[readonly]="readonly()"
|
|
4231
|
+
[allowEmpty]="allowEmpty()"
|
|
4232
|
+
[useGrouping]="useGrouping()"
|
|
4233
|
+
[minFractionDigits]="resolvedMinFraction()"
|
|
4234
|
+
[maxFractionDigits]="resolvedMaxFraction()"
|
|
4235
|
+
[min]="min() ?? null"
|
|
4236
|
+
[max]="max() ?? null"
|
|
4237
|
+
[prefix]="prefix()"
|
|
4238
|
+
[suffix]="suffix()"
|
|
4239
|
+
[showButtons]="showButtons()"
|
|
4240
|
+
[buttonLayout]="buttonLayout()"
|
|
4241
|
+
[showClear]="showClear()"
|
|
4242
|
+
[locale]="resolvedLocale()"
|
|
4243
|
+
[inputStyleClass]="inputCls()"
|
|
4244
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4245
|
+
[ngModel]="value()"
|
|
4246
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4247
|
+
(ngModelChange)="handleChange($event)"
|
|
4248
|
+
(onFocus)="handleFocus($event)"
|
|
4249
|
+
(onBlur)="handleBlur($event)"
|
|
4250
|
+
(onInput)="inputEvent.emit($event)"
|
|
4251
|
+
/>
|
|
4252
|
+
}
|
|
4225
4253
|
`, styles: [":host{display:block;width:100%;--p-inputnumber-button-border-radius: 12px}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-inputnumber-input{border-radius:12px}.asc-input-number-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size: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(.asc-input-number--xs) ::ng-deep .p-inputnumber-input{line-height:16px}:host(.asc-input-number--sm) ::ng-deep .p-inputnumber-input{line-height:18px}:host(.asc-input-number--md) ::ng-deep .p-inputnumber-input{line-height:20px}:host(.asc-input-number--lg) ::ng-deep .p-inputnumber-input{line-height:24px}:host(.asc-input-number--xl) ::ng-deep .p-inputnumber-input{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.p-inputnumber-horizontal .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-vertical .p-inputnumber-input{border-radius:0}:host ::ng-deep .p-inputnumber-button .p-icon{width:14px;height:14px}:host ::ng-deep .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputnumber-clear-icon{box-sizing:border-box;width:var(--p-icon-size);height:var(--p-icon-size);padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputnumber-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-input-number--disabled) ::ng-deep .p-inputnumber-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
|
|
4226
4254
|
}], 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"] }] } });
|
|
4227
4255
|
|
|
@@ -4361,55 +4389,57 @@ class AscCheckboxComponent extends BaseControlAccessor {
|
|
|
4361
4389
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4362
4390
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscCheckboxComponent, isStandalone: true, selector: "asc-checkbox", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
4363
4391
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscCheckboxComponent) },
|
|
4364
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
4365
|
-
@if (mode() === 'view') {
|
|
4366
|
-
<span class="asc-checkbox-view">{{ resolvedViewText() }}</span>
|
|
4367
|
-
} @else if (options()?.length) {
|
|
4368
|
-
<!-- Group mode -->
|
|
4369
|
-
<div [class]="listCls()">
|
|
4370
|
-
@for (opt of options()!; track opt[optionValue()]; let i = $index) {
|
|
4371
|
-
<div class="asc-checkbox-item flex items-center gap-12">
|
|
4372
|
-
<p-checkbox
|
|
4373
|
-
[name]="checkboxName()"
|
|
4374
|
-
[inputId]="checkboxName() + '-' + i"
|
|
4375
|
-
[value]="opt[optionValue()]"
|
|
4376
|
-
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4377
|
-
[readonly]="readonly()"
|
|
4378
|
-
[size]="resolvedPSize()"
|
|
4379
|
-
[binary]="false"
|
|
4380
|
-
[ngModel]="groupValue()"
|
|
4381
|
-
|
|
4382
|
-
(
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
[
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
[
|
|
4397
|
-
[
|
|
4398
|
-
[
|
|
4399
|
-
[
|
|
4400
|
-
[
|
|
4401
|
-
[
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4392
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
4393
|
+
@if (mode() === 'view') {
|
|
4394
|
+
<span class="asc-checkbox-view">{{ resolvedViewText() }}</span>
|
|
4395
|
+
} @else if (options()?.length) {
|
|
4396
|
+
<!-- Group mode -->
|
|
4397
|
+
<div [class]="listCls()">
|
|
4398
|
+
@for (opt of options()!; track opt[optionValue()]; let i = $index) {
|
|
4399
|
+
<div class="asc-checkbox-item flex items-center gap-12">
|
|
4400
|
+
<p-checkbox
|
|
4401
|
+
[name]="checkboxName()"
|
|
4402
|
+
[inputId]="checkboxName() + '-' + i"
|
|
4403
|
+
[value]="opt[optionValue()]"
|
|
4404
|
+
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4405
|
+
[readonly]="readonly()"
|
|
4406
|
+
[size]="resolvedPSize()"
|
|
4407
|
+
[binary]="false"
|
|
4408
|
+
[ngModel]="groupValue()"
|
|
4409
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4410
|
+
(ngModelChange)="handleGroupChange($event)"
|
|
4411
|
+
(onBlur)="handleBlur()"
|
|
4412
|
+
/>
|
|
4413
|
+
<label
|
|
4414
|
+
[for]="checkboxName() + '-' + i"
|
|
4415
|
+
[class]="labelCls(!!opt[optionDisabled()])"
|
|
4416
|
+
>{{ opt[optionLabel()] }}</label>
|
|
4417
|
+
</div>
|
|
4418
|
+
}
|
|
4419
|
+
</div>
|
|
4420
|
+
} @else {
|
|
4421
|
+
<!-- Binary mode -->
|
|
4422
|
+
<div class="flex items-center gap-12">
|
|
4423
|
+
<p-checkbox
|
|
4424
|
+
[name]="checkboxName()"
|
|
4425
|
+
[inputId]="checkboxName() + '-binary'"
|
|
4426
|
+
[disabled]="isDisabled()"
|
|
4427
|
+
[readonly]="readonly()"
|
|
4428
|
+
[size]="resolvedPSize()"
|
|
4429
|
+
[binary]="true"
|
|
4430
|
+
[ngModel]="binaryValue()"
|
|
4431
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4432
|
+
(ngModelChange)="handleBinaryChange($event)"
|
|
4433
|
+
(onBlur)="handleBlur()"
|
|
4434
|
+
/>
|
|
4435
|
+
@if (label()) {
|
|
4436
|
+
<label
|
|
4437
|
+
[for]="checkboxName() + '-binary'"
|
|
4438
|
+
[class]="labelCls(false)"
|
|
4439
|
+
>{{ label() }}</label>
|
|
4440
|
+
}
|
|
4441
|
+
</div>
|
|
4442
|
+
}
|
|
4413
4443
|
`, isInline: true, styles: [":host{display:block}.asc-checkbox-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-checkbox-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-checkbox--invalid) ::ng-deep .p-checkbox .p-checkbox-box{border-color:var(--asc-border-color-invalid)!important}.asc-checkbox-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4414
4444
|
}
|
|
4415
4445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscCheckboxComponent, decorators: [{
|
|
@@ -4418,55 +4448,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4418
4448
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscCheckboxComponent) },
|
|
4419
4449
|
], host: {
|
|
4420
4450
|
'[class]': 'hostCls()',
|
|
4421
|
-
}, template: `
|
|
4422
|
-
@if (mode() === 'view') {
|
|
4423
|
-
<span class="asc-checkbox-view">{{ resolvedViewText() }}</span>
|
|
4424
|
-
} @else if (options()?.length) {
|
|
4425
|
-
<!-- Group mode -->
|
|
4426
|
-
<div [class]="listCls()">
|
|
4427
|
-
@for (opt of options()!; track opt[optionValue()]; let i = $index) {
|
|
4428
|
-
<div class="asc-checkbox-item flex items-center gap-12">
|
|
4429
|
-
<p-checkbox
|
|
4430
|
-
[name]="checkboxName()"
|
|
4431
|
-
[inputId]="checkboxName() + '-' + i"
|
|
4432
|
-
[value]="opt[optionValue()]"
|
|
4433
|
-
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4434
|
-
[readonly]="readonly()"
|
|
4435
|
-
[size]="resolvedPSize()"
|
|
4436
|
-
[binary]="false"
|
|
4437
|
-
[ngModel]="groupValue()"
|
|
4438
|
-
|
|
4439
|
-
(
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
[
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
[
|
|
4454
|
-
[
|
|
4455
|
-
[
|
|
4456
|
-
[
|
|
4457
|
-
[
|
|
4458
|
-
[
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4451
|
+
}, template: `
|
|
4452
|
+
@if (mode() === 'view') {
|
|
4453
|
+
<span class="asc-checkbox-view">{{ resolvedViewText() }}</span>
|
|
4454
|
+
} @else if (options()?.length) {
|
|
4455
|
+
<!-- Group mode -->
|
|
4456
|
+
<div [class]="listCls()">
|
|
4457
|
+
@for (opt of options()!; track opt[optionValue()]; let i = $index) {
|
|
4458
|
+
<div class="asc-checkbox-item flex items-center gap-12">
|
|
4459
|
+
<p-checkbox
|
|
4460
|
+
[name]="checkboxName()"
|
|
4461
|
+
[inputId]="checkboxName() + '-' + i"
|
|
4462
|
+
[value]="opt[optionValue()]"
|
|
4463
|
+
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4464
|
+
[readonly]="readonly()"
|
|
4465
|
+
[size]="resolvedPSize()"
|
|
4466
|
+
[binary]="false"
|
|
4467
|
+
[ngModel]="groupValue()"
|
|
4468
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4469
|
+
(ngModelChange)="handleGroupChange($event)"
|
|
4470
|
+
(onBlur)="handleBlur()"
|
|
4471
|
+
/>
|
|
4472
|
+
<label
|
|
4473
|
+
[for]="checkboxName() + '-' + i"
|
|
4474
|
+
[class]="labelCls(!!opt[optionDisabled()])"
|
|
4475
|
+
>{{ opt[optionLabel()] }}</label>
|
|
4476
|
+
</div>
|
|
4477
|
+
}
|
|
4478
|
+
</div>
|
|
4479
|
+
} @else {
|
|
4480
|
+
<!-- Binary mode -->
|
|
4481
|
+
<div class="flex items-center gap-12">
|
|
4482
|
+
<p-checkbox
|
|
4483
|
+
[name]="checkboxName()"
|
|
4484
|
+
[inputId]="checkboxName() + '-binary'"
|
|
4485
|
+
[disabled]="isDisabled()"
|
|
4486
|
+
[readonly]="readonly()"
|
|
4487
|
+
[size]="resolvedPSize()"
|
|
4488
|
+
[binary]="true"
|
|
4489
|
+
[ngModel]="binaryValue()"
|
|
4490
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4491
|
+
(ngModelChange)="handleBinaryChange($event)"
|
|
4492
|
+
(onBlur)="handleBlur()"
|
|
4493
|
+
/>
|
|
4494
|
+
@if (label()) {
|
|
4495
|
+
<label
|
|
4496
|
+
[for]="checkboxName() + '-binary'"
|
|
4497
|
+
[class]="labelCls(false)"
|
|
4498
|
+
>{{ label() }}</label>
|
|
4499
|
+
}
|
|
4500
|
+
</div>
|
|
4501
|
+
}
|
|
4470
4502
|
`, styles: [":host{display:block}.asc-checkbox-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-checkbox-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}:host(.asc-checkbox--invalid) ::ng-deep .p-checkbox .p-checkbox-box{border-color:var(--asc-border-color-invalid)!important}.asc-checkbox-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
4471
4503
|
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
4472
4504
|
|
|
@@ -4593,47 +4625,48 @@ class AscRadioComponent extends BaseControlAccessor {
|
|
|
4593
4625
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4594
4626
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscRadioComponent, isStandalone: true, selector: "asc-radio", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, alignColumn: { classPropertyName: "alignColumn", publicName: "alignColumn", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
4595
4627
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscRadioComponent) },
|
|
4596
|
-
], queries: [{ propertyName: "customItemTpl", first: true, predicate: ["ascItem"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4597
|
-
@if (mode() === 'view') {
|
|
4598
|
-
<span class="asc-radio-view">{{ resolvedViewText() }}</span>
|
|
4599
|
-
} @else {
|
|
4600
|
-
<div [class]="listCls()">
|
|
4601
|
-
@for (opt of options(); track opt[optionValue()]; let i = $index) {
|
|
4602
|
-
<div class="flex items-{{alignColumn()}} gap-12">
|
|
4603
|
-
<p-radiobutton
|
|
4604
|
-
[name]="radioName()"
|
|
4605
|
-
[inputId]="radioName() + '-' + i"
|
|
4606
|
-
[value]="opt[optionValue()]"
|
|
4607
|
-
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4608
|
-
[invalid]="isInvalidState()"
|
|
4609
|
-
[ngModel]="value()"
|
|
4610
|
-
|
|
4611
|
-
(
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
[
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
[
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4628
|
+
], queries: [{ propertyName: "customItemTpl", first: true, predicate: ["ascItem"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4629
|
+
@if (mode() === 'view') {
|
|
4630
|
+
<span class="asc-radio-view">{{ resolvedViewText() }}</span>
|
|
4631
|
+
} @else {
|
|
4632
|
+
<div [class]="listCls()">
|
|
4633
|
+
@for (opt of options(); track opt[optionValue()]; let i = $index) {
|
|
4634
|
+
<div class="flex items-{{alignColumn()}} gap-12">
|
|
4635
|
+
<p-radiobutton
|
|
4636
|
+
[name]="radioName()"
|
|
4637
|
+
[inputId]="radioName() + '-' + i"
|
|
4638
|
+
[value]="opt[optionValue()]"
|
|
4639
|
+
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4640
|
+
[invalid]="isInvalidState()"
|
|
4641
|
+
[ngModel]="value()"
|
|
4642
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4643
|
+
(ngModelChange)="handleChange($event)"
|
|
4644
|
+
(onBlur)="handleBlur()"
|
|
4645
|
+
/>
|
|
4646
|
+
@if (customItemTpl()) {
|
|
4647
|
+
<ng-container
|
|
4648
|
+
[ngTemplateOutlet]="customItemTpl()!"
|
|
4649
|
+
[ngTemplateOutletContext]="{
|
|
4650
|
+
$implicit: opt,
|
|
4651
|
+
index: i,
|
|
4652
|
+
disabled: effectiveDisabled() || !!opt[optionDisabled()]
|
|
4653
|
+
}"
|
|
4654
|
+
/>
|
|
4655
|
+
} @else {
|
|
4656
|
+
<div class="flex flex-col">
|
|
4657
|
+
<label
|
|
4658
|
+
[for]="radioName() + '-' + i"
|
|
4659
|
+
[class]="labelCls(!!opt[optionDisabled()])"
|
|
4660
|
+
>{{ opt[optionLabel()] }}</label>
|
|
4661
|
+
@if (opt.subLabel) {
|
|
4662
|
+
<div [class]="subLabelCls(!!opt[optionDisabled()])">{{ opt.subLabel }}</div>
|
|
4663
|
+
}
|
|
4664
|
+
</div>
|
|
4665
|
+
}
|
|
4666
|
+
</div>
|
|
4667
|
+
}
|
|
4668
|
+
</div>
|
|
4669
|
+
}
|
|
4637
4670
|
`, isInline: true, styles: [":host{display:block}.asc-radio-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-radio-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}.asc-radio-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}.asc-radio-sublabel{margin-top:4px;font-weight:400;font-size:var(--asc-text-sm);color:var(--asc-radio-sublabel-color, #747475)}.asc-radio-label--disabled,.asc-radio-sublabel--disabled{color:var(--asc-text-disabled)}:host ::ng-deep .p-radiobutton,:host ::ng-deep .p-radiobutton-box{width:20px;height:20px}:host ::ng-deep .p-radiobutton-icon{width:10px;height:10px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box{background:var(--asc-surface-0);border-width:2px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-500)}:host ::ng-deep .p-radiobutton:not(.p-disabled):not(.p-radiobutton-checked):has(.p-radiobutton-input:hover) .p-radiobutton-box{border-color:var(--p-primary-400)}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box{background:var(--asc-surface-0);border-color:var(--p-primary-600)}:host ::ng-deep .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-600)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RadioButtonModule }, { kind: "component", type: i2$8.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4638
4671
|
}
|
|
4639
4672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscRadioComponent, decorators: [{
|
|
@@ -4642,47 +4675,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4642
4675
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscRadioComponent) },
|
|
4643
4676
|
], host: {
|
|
4644
4677
|
'[class]': 'hostCls()',
|
|
4645
|
-
}, template: `
|
|
4646
|
-
@if (mode() === 'view') {
|
|
4647
|
-
<span class="asc-radio-view">{{ resolvedViewText() }}</span>
|
|
4648
|
-
} @else {
|
|
4649
|
-
<div [class]="listCls()">
|
|
4650
|
-
@for (opt of options(); track opt[optionValue()]; let i = $index) {
|
|
4651
|
-
<div class="flex items-{{alignColumn()}} gap-12">
|
|
4652
|
-
<p-radiobutton
|
|
4653
|
-
[name]="radioName()"
|
|
4654
|
-
[inputId]="radioName() + '-' + i"
|
|
4655
|
-
[value]="opt[optionValue()]"
|
|
4656
|
-
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4657
|
-
[invalid]="isInvalidState()"
|
|
4658
|
-
[ngModel]="value()"
|
|
4659
|
-
|
|
4660
|
-
(
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
[
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
[
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4678
|
+
}, template: `
|
|
4679
|
+
@if (mode() === 'view') {
|
|
4680
|
+
<span class="asc-radio-view">{{ resolvedViewText() }}</span>
|
|
4681
|
+
} @else {
|
|
4682
|
+
<div [class]="listCls()">
|
|
4683
|
+
@for (opt of options(); track opt[optionValue()]; let i = $index) {
|
|
4684
|
+
<div class="flex items-{{alignColumn()}} gap-12">
|
|
4685
|
+
<p-radiobutton
|
|
4686
|
+
[name]="radioName()"
|
|
4687
|
+
[inputId]="radioName() + '-' + i"
|
|
4688
|
+
[value]="opt[optionValue()]"
|
|
4689
|
+
[disabled]="effectiveDisabled() || !!opt[optionDisabled()]"
|
|
4690
|
+
[invalid]="isInvalidState()"
|
|
4691
|
+
[ngModel]="value()"
|
|
4692
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4693
|
+
(ngModelChange)="handleChange($event)"
|
|
4694
|
+
(onBlur)="handleBlur()"
|
|
4695
|
+
/>
|
|
4696
|
+
@if (customItemTpl()) {
|
|
4697
|
+
<ng-container
|
|
4698
|
+
[ngTemplateOutlet]="customItemTpl()!"
|
|
4699
|
+
[ngTemplateOutletContext]="{
|
|
4700
|
+
$implicit: opt,
|
|
4701
|
+
index: i,
|
|
4702
|
+
disabled: effectiveDisabled() || !!opt[optionDisabled()]
|
|
4703
|
+
}"
|
|
4704
|
+
/>
|
|
4705
|
+
} @else {
|
|
4706
|
+
<div class="flex flex-col">
|
|
4707
|
+
<label
|
|
4708
|
+
[for]="radioName() + '-' + i"
|
|
4709
|
+
[class]="labelCls(!!opt[optionDisabled()])"
|
|
4710
|
+
>{{ opt[optionLabel()] }}</label>
|
|
4711
|
+
@if (opt.subLabel) {
|
|
4712
|
+
<div [class]="subLabelCls(!!opt[optionDisabled()])">{{ opt.subLabel }}</div>
|
|
4713
|
+
}
|
|
4714
|
+
</div>
|
|
4715
|
+
}
|
|
4716
|
+
</div>
|
|
4717
|
+
}
|
|
4718
|
+
</div>
|
|
4719
|
+
}
|
|
4686
4720
|
`, styles: [":host{display:block}.asc-radio-list--column{display:flex;flex-direction:column;gap:.5rem}.asc-radio-list--row{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}.asc-radio-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}.asc-radio-sublabel{margin-top:4px;font-weight:400;font-size:var(--asc-text-sm);color:var(--asc-radio-sublabel-color, #747475)}.asc-radio-label--disabled,.asc-radio-sublabel--disabled{color:var(--asc-text-disabled)}:host ::ng-deep .p-radiobutton,:host ::ng-deep .p-radiobutton-box{width:20px;height:20px}:host ::ng-deep .p-radiobutton-icon{width:10px;height:10px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box{background:var(--asc-surface-0);border-width:2px}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled) .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-500)}:host ::ng-deep .p-radiobutton:not(.p-disabled):not(.p-radiobutton-checked):has(.p-radiobutton-input:hover) .p-radiobutton-box{border-color:var(--p-primary-400)}:host ::ng-deep .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box{background:var(--asc-surface-0);border-color:var(--p-primary-600)}:host ::ng-deep .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon{background:var(--p-primary-600)}\n"] }]
|
|
4687
4721
|
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], alignColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignColumn", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], customItemTpl: [{ type: i0.ContentChild, args: ['ascItem', { isSignal: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
4688
4722
|
|
|
@@ -4816,34 +4850,35 @@ class AscSelectButtonComponent extends BaseControlAccessor {
|
|
|
4816
4850
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4817
4851
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscSelectButtonComponent, isStandalone: true, selector: "asc-select-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
4818
4852
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscSelectButtonComponent) },
|
|
4819
|
-
], queries: [{ propertyName: "customItemTpl", first: true, predicate: ["ascItem"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4820
|
-
@if (mode() === 'view') {
|
|
4821
|
-
<span class="asc-select-button-view">{{ resolvedViewText() }}</span>
|
|
4822
|
-
} @else {
|
|
4823
|
-
<p-selectbutton
|
|
4824
|
-
[options]="options()"
|
|
4825
|
-
[optionLabel]="optionLabel()"
|
|
4826
|
-
[optionValue]="optionValue()"
|
|
4827
|
-
[optionDisabled]="optionDisabled()"
|
|
4828
|
-
[multiple]="multiple()"
|
|
4829
|
-
[allowEmpty]="allowEmpty()"
|
|
4830
|
-
[size]="resolvedPSize()"
|
|
4831
|
-
[disabled]="effectiveDisabled()"
|
|
4832
|
-
[invalid]="isInvalidState()"
|
|
4833
|
-
[class]="listCls()"
|
|
4834
|
-
[ngModel]="modelValue()"
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
[
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4853
|
+
], queries: [{ propertyName: "customItemTpl", first: true, predicate: ["ascItem"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4854
|
+
@if (mode() === 'view') {
|
|
4855
|
+
<span class="asc-select-button-view">{{ resolvedViewText() }}</span>
|
|
4856
|
+
} @else {
|
|
4857
|
+
<p-selectbutton
|
|
4858
|
+
[options]="options()"
|
|
4859
|
+
[optionLabel]="optionLabel()"
|
|
4860
|
+
[optionValue]="optionValue()"
|
|
4861
|
+
[optionDisabled]="optionDisabled()"
|
|
4862
|
+
[multiple]="multiple()"
|
|
4863
|
+
[allowEmpty]="allowEmpty()"
|
|
4864
|
+
[size]="resolvedPSize()"
|
|
4865
|
+
[disabled]="effectiveDisabled()"
|
|
4866
|
+
[invalid]="isInvalidState()"
|
|
4867
|
+
[class]="listCls()"
|
|
4868
|
+
[ngModel]="modelValue()"
|
|
4869
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4870
|
+
(ngModelChange)="handleChange($event)"
|
|
4871
|
+
>
|
|
4872
|
+
@if (customItemTpl()) {
|
|
4873
|
+
<ng-template #item let-opt let-index="index">
|
|
4874
|
+
<ng-container
|
|
4875
|
+
[ngTemplateOutlet]="customItemTpl()!"
|
|
4876
|
+
[ngTemplateOutletContext]="{ $implicit: opt, index: index }"
|
|
4877
|
+
/>
|
|
4878
|
+
</ng-template>
|
|
4879
|
+
}
|
|
4880
|
+
</p-selectbutton>
|
|
4881
|
+
}
|
|
4847
4882
|
`, isInline: true, styles: [":host{display:block}.asc-select-button--row{flex-wrap:wrap}.asc-select-button--column{flex-direction:column;align-items:stretch}.asc-select-button-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: SelectButtonModule }, { kind: "component", type: i2$9.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4848
4883
|
}
|
|
4849
4884
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectButtonComponent, decorators: [{
|
|
@@ -4852,34 +4887,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4852
4887
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscSelectButtonComponent) },
|
|
4853
4888
|
], host: {
|
|
4854
4889
|
'[class]': 'hostCls()',
|
|
4855
|
-
}, template: `
|
|
4856
|
-
@if (mode() === 'view') {
|
|
4857
|
-
<span class="asc-select-button-view">{{ resolvedViewText() }}</span>
|
|
4858
|
-
} @else {
|
|
4859
|
-
<p-selectbutton
|
|
4860
|
-
[options]="options()"
|
|
4861
|
-
[optionLabel]="optionLabel()"
|
|
4862
|
-
[optionValue]="optionValue()"
|
|
4863
|
-
[optionDisabled]="optionDisabled()"
|
|
4864
|
-
[multiple]="multiple()"
|
|
4865
|
-
[allowEmpty]="allowEmpty()"
|
|
4866
|
-
[size]="resolvedPSize()"
|
|
4867
|
-
[disabled]="effectiveDisabled()"
|
|
4868
|
-
[invalid]="isInvalidState()"
|
|
4869
|
-
[class]="listCls()"
|
|
4870
|
-
[ngModel]="modelValue()"
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
[
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4890
|
+
}, template: `
|
|
4891
|
+
@if (mode() === 'view') {
|
|
4892
|
+
<span class="asc-select-button-view">{{ resolvedViewText() }}</span>
|
|
4893
|
+
} @else {
|
|
4894
|
+
<p-selectbutton
|
|
4895
|
+
[options]="options()"
|
|
4896
|
+
[optionLabel]="optionLabel()"
|
|
4897
|
+
[optionValue]="optionValue()"
|
|
4898
|
+
[optionDisabled]="optionDisabled()"
|
|
4899
|
+
[multiple]="multiple()"
|
|
4900
|
+
[allowEmpty]="allowEmpty()"
|
|
4901
|
+
[size]="resolvedPSize()"
|
|
4902
|
+
[disabled]="effectiveDisabled()"
|
|
4903
|
+
[invalid]="isInvalidState()"
|
|
4904
|
+
[class]="listCls()"
|
|
4905
|
+
[ngModel]="modelValue()"
|
|
4906
|
+
[ngModelOptions]="{ standalone: true }"
|
|
4907
|
+
(ngModelChange)="handleChange($event)"
|
|
4908
|
+
>
|
|
4909
|
+
@if (customItemTpl()) {
|
|
4910
|
+
<ng-template #item let-opt let-index="index">
|
|
4911
|
+
<ng-container
|
|
4912
|
+
[ngTemplateOutlet]="customItemTpl()!"
|
|
4913
|
+
[ngTemplateOutletContext]="{ $implicit: opt, index: index }"
|
|
4914
|
+
/>
|
|
4915
|
+
</ng-template>
|
|
4916
|
+
}
|
|
4917
|
+
</p-selectbutton>
|
|
4918
|
+
}
|
|
4883
4919
|
`, styles: [":host{display:block}.asc-select-button--row{flex-wrap:wrap}.asc-select-button--column{flex-direction:column;align-items:stretch}.asc-select-button-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
4884
4920
|
}], 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 }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], customItemTpl: [{ type: i0.ContentChild, args: ['ascItem', { isSignal: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
4885
4921
|
|
|
@@ -4970,47 +5006,48 @@ class AscTextareaComponent extends BaseControlAccessor {
|
|
|
4970
5006
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTextareaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4971
5007
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTextareaComponent, isStandalone: true, selector: "asc-textarea", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null }, autoResize: { classPropertyName: "autoResize", publicName: "autoResize", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", focused: "focused", blurred: "blurred" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
4972
5008
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscTextareaComponent) },
|
|
4973
|
-
], viewQueries: [{ propertyName: "textareaEl", first: true, predicate: ["textareaEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4974
|
-
@if (mode() === 'view') {
|
|
4975
|
-
<span class="asc-textarea-view">{{ value() || '—' }}</span>
|
|
4976
|
-
} @else {
|
|
4977
|
-
<div class="asc-textarea-wrapper">
|
|
4978
|
-
<textarea
|
|
4979
|
-
#textareaEl
|
|
4980
|
-
pTextarea
|
|
4981
|
-
[id]="_inputId"
|
|
4982
|
-
[rows]="rows()"
|
|
4983
|
-
[cols]="cols() ?? null"
|
|
4984
|
-
[placeholder]="placeholder()"
|
|
4985
|
-
[disabled]="effectiveDisabled()"
|
|
4986
|
-
[readonly]="readonly()"
|
|
4987
|
-
[maxlength]="maxLength() ?? 524288"
|
|
4988
|
-
[autoResize]="autoResize()"
|
|
4989
|
-
[class]="textareaCls()"
|
|
4990
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
4991
|
-
[ngModel]="value()"
|
|
4992
|
-
|
|
4993
|
-
(
|
|
4994
|
-
(
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
[class.asc-textarea-counter--
|
|
5002
|
-
|
|
5003
|
-
aria-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5009
|
+
], viewQueries: [{ propertyName: "textareaEl", first: true, predicate: ["textareaEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5010
|
+
@if (mode() === 'view') {
|
|
5011
|
+
<span class="asc-textarea-view">{{ value() || '—' }}</span>
|
|
5012
|
+
} @else {
|
|
5013
|
+
<div class="asc-textarea-wrapper">
|
|
5014
|
+
<textarea
|
|
5015
|
+
#textareaEl
|
|
5016
|
+
pTextarea
|
|
5017
|
+
[id]="_inputId"
|
|
5018
|
+
[rows]="rows()"
|
|
5019
|
+
[cols]="cols() ?? null"
|
|
5020
|
+
[placeholder]="placeholder()"
|
|
5021
|
+
[disabled]="effectiveDisabled()"
|
|
5022
|
+
[readonly]="readonly()"
|
|
5023
|
+
[maxlength]="maxLength() ?? 524288"
|
|
5024
|
+
[autoResize]="autoResize()"
|
|
5025
|
+
[class]="textareaCls()"
|
|
5026
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
5027
|
+
[ngModel]="value()"
|
|
5028
|
+
[ngModelOptions]="{ standalone: true }"
|
|
5029
|
+
(ngModelChange)="handleChange($event)"
|
|
5030
|
+
(focus)="handleFocus($event)"
|
|
5031
|
+
(blur)="handleBlur($event)"
|
|
5032
|
+
></textarea>
|
|
5033
|
+
|
|
5034
|
+
@if (showCounter() || maxLength()) {
|
|
5035
|
+
<div
|
|
5036
|
+
class="asc-textarea-counter"
|
|
5037
|
+
[class.asc-textarea-counter--near-limit]="isNearLimit()"
|
|
5038
|
+
[class.asc-textarea-counter--at-limit]="isAtLimit()"
|
|
5039
|
+
aria-live="polite"
|
|
5040
|
+
aria-atomic="true"
|
|
5041
|
+
>
|
|
5042
|
+
@if (maxLength()) {
|
|
5043
|
+
{{ charCount() }}/{{ maxLength() }}
|
|
5044
|
+
} @else {
|
|
5045
|
+
{{ charCount() }}
|
|
5046
|
+
}
|
|
5047
|
+
</div>
|
|
5048
|
+
}
|
|
5049
|
+
</div>
|
|
5050
|
+
}
|
|
5014
5051
|
`, 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 }); }
|
|
5015
5052
|
}
|
|
5016
5053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTextareaComponent, decorators: [{
|
|
@@ -5019,47 +5056,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
5019
5056
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscTextareaComponent) },
|
|
5020
5057
|
], host: {
|
|
5021
5058
|
'[class]': 'hostCls()',
|
|
5022
|
-
}, template: `
|
|
5023
|
-
@if (mode() === 'view') {
|
|
5024
|
-
<span class="asc-textarea-view">{{ value() || '—' }}</span>
|
|
5025
|
-
} @else {
|
|
5026
|
-
<div class="asc-textarea-wrapper">
|
|
5027
|
-
<textarea
|
|
5028
|
-
#textareaEl
|
|
5029
|
-
pTextarea
|
|
5030
|
-
[id]="_inputId"
|
|
5031
|
-
[rows]="rows()"
|
|
5032
|
-
[cols]="cols() ?? null"
|
|
5033
|
-
[placeholder]="placeholder()"
|
|
5034
|
-
[disabled]="effectiveDisabled()"
|
|
5035
|
-
[readonly]="readonly()"
|
|
5036
|
-
[maxlength]="maxLength() ?? 524288"
|
|
5037
|
-
[autoResize]="autoResize()"
|
|
5038
|
-
[class]="textareaCls()"
|
|
5039
|
-
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
5040
|
-
[ngModel]="value()"
|
|
5041
|
-
|
|
5042
|
-
(
|
|
5043
|
-
(
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
[class.asc-textarea-counter--
|
|
5051
|
-
|
|
5052
|
-
aria-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5059
|
+
}, template: `
|
|
5060
|
+
@if (mode() === 'view') {
|
|
5061
|
+
<span class="asc-textarea-view">{{ value() || '—' }}</span>
|
|
5062
|
+
} @else {
|
|
5063
|
+
<div class="asc-textarea-wrapper">
|
|
5064
|
+
<textarea
|
|
5065
|
+
#textareaEl
|
|
5066
|
+
pTextarea
|
|
5067
|
+
[id]="_inputId"
|
|
5068
|
+
[rows]="rows()"
|
|
5069
|
+
[cols]="cols() ?? null"
|
|
5070
|
+
[placeholder]="placeholder()"
|
|
5071
|
+
[disabled]="effectiveDisabled()"
|
|
5072
|
+
[readonly]="readonly()"
|
|
5073
|
+
[maxlength]="maxLength() ?? 524288"
|
|
5074
|
+
[autoResize]="autoResize()"
|
|
5075
|
+
[class]="textareaCls()"
|
|
5076
|
+
[attr.aria-invalid]="isInvalidState() || undefined"
|
|
5077
|
+
[ngModel]="value()"
|
|
5078
|
+
[ngModelOptions]="{ standalone: true }"
|
|
5079
|
+
(ngModelChange)="handleChange($event)"
|
|
5080
|
+
(focus)="handleFocus($event)"
|
|
5081
|
+
(blur)="handleBlur($event)"
|
|
5082
|
+
></textarea>
|
|
5083
|
+
|
|
5084
|
+
@if (showCounter() || maxLength()) {
|
|
5085
|
+
<div
|
|
5086
|
+
class="asc-textarea-counter"
|
|
5087
|
+
[class.asc-textarea-counter--near-limit]="isNearLimit()"
|
|
5088
|
+
[class.asc-textarea-counter--at-limit]="isAtLimit()"
|
|
5089
|
+
aria-live="polite"
|
|
5090
|
+
aria-atomic="true"
|
|
5091
|
+
>
|
|
5092
|
+
@if (maxLength()) {
|
|
5093
|
+
{{ charCount() }}/{{ maxLength() }}
|
|
5094
|
+
} @else {
|
|
5095
|
+
{{ charCount() }}
|
|
5096
|
+
}
|
|
5097
|
+
</div>
|
|
5098
|
+
}
|
|
5099
|
+
</div>
|
|
5100
|
+
}
|
|
5063
5101
|
`, 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"] }]
|
|
5064
5102
|
}], 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 }] }] } });
|
|
5065
5103
|
|
|
@@ -5147,26 +5185,27 @@ class AscToggleSwitchComponent extends BaseControlAccessor {
|
|
|
5147
5185
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscToggleSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5148
5186
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscToggleSwitchComponent, isStandalone: true, selector: "asc-toggle-switch", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPos: { classPropertyName: "labelPos", publicName: "labelPos", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class": "hostCls()" } }, providers: [
|
|
5149
5187
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscToggleSwitchComponent) },
|
|
5150
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
5151
|
-
<div class="asc-toggle-switch-wrap">
|
|
5152
|
-
@if (label() && labelPos() === 'left') {
|
|
5153
|
-
<label [for]="_switchId" [class]="labelCls()">{{ label() }}</label>
|
|
5154
|
-
}
|
|
5155
|
-
|
|
5156
|
-
<p-toggleswitch
|
|
5157
|
-
[inputId]="_switchId"
|
|
5158
|
-
[ngModel]="boolValue()"
|
|
5159
|
-
[
|
|
5160
|
-
[
|
|
5161
|
-
[
|
|
5162
|
-
[
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5188
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
5189
|
+
<div class="asc-toggle-switch-wrap">
|
|
5190
|
+
@if (label() && labelPos() === 'left') {
|
|
5191
|
+
<label [for]="_switchId" [class]="labelCls()">{{ label() }}</label>
|
|
5192
|
+
}
|
|
5193
|
+
|
|
5194
|
+
<p-toggleswitch
|
|
5195
|
+
[inputId]="_switchId"
|
|
5196
|
+
[ngModel]="boolValue()"
|
|
5197
|
+
[ngModelOptions]="{ standalone: true }"
|
|
5198
|
+
[disabled]="effectiveDisabled()"
|
|
5199
|
+
[readonly]="readonly()"
|
|
5200
|
+
[size]="resolvedPSize()"
|
|
5201
|
+
[invalid]="isInvalidState()"
|
|
5202
|
+
(onChange)="handleChange($event.checked)"
|
|
5203
|
+
/>
|
|
5204
|
+
|
|
5205
|
+
@if (label() && labelPos() === 'right') {
|
|
5206
|
+
<label [for]="_switchId" [class]="labelCls()">{{ label() }}</label>
|
|
5207
|
+
}
|
|
5208
|
+
</div>
|
|
5170
5209
|
`, isInline: true, styles: [":host{display:inline-block}:host(.asc-toggle-switch--full){display:block}.asc-toggle-switch-wrap{display:flex;align-items:center;gap:.5rem}.asc-toggle-switch-label{font-size:.875rem;font-weight:500;color:var(--asc-text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1.25}.asc-toggle-switch-label--disabled{opacity:.6;cursor:not-allowed}\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: ToggleSwitchModule }, { kind: "component", type: i2$b.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5171
5210
|
}
|
|
5172
5211
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscToggleSwitchComponent, decorators: [{
|
|
@@ -5175,26 +5214,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
5175
5214
|
{ provide: ASC_BASE_CONTROL, useExisting: forwardRef(() => AscToggleSwitchComponent) },
|
|
5176
5215
|
], host: {
|
|
5177
5216
|
'[class]': 'hostCls()',
|
|
5178
|
-
}, template: `
|
|
5179
|
-
<div class="asc-toggle-switch-wrap">
|
|
5180
|
-
@if (label() && labelPos() === 'left') {
|
|
5181
|
-
<label [for]="_switchId" [class]="labelCls()">{{ label() }}</label>
|
|
5182
|
-
}
|
|
5183
|
-
|
|
5184
|
-
<p-toggleswitch
|
|
5185
|
-
[inputId]="_switchId"
|
|
5186
|
-
[ngModel]="boolValue()"
|
|
5187
|
-
[
|
|
5188
|
-
[
|
|
5189
|
-
[
|
|
5190
|
-
[
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5217
|
+
}, template: `
|
|
5218
|
+
<div class="asc-toggle-switch-wrap">
|
|
5219
|
+
@if (label() && labelPos() === 'left') {
|
|
5220
|
+
<label [for]="_switchId" [class]="labelCls()">{{ label() }}</label>
|
|
5221
|
+
}
|
|
5222
|
+
|
|
5223
|
+
<p-toggleswitch
|
|
5224
|
+
[inputId]="_switchId"
|
|
5225
|
+
[ngModel]="boolValue()"
|
|
5226
|
+
[ngModelOptions]="{ standalone: true }"
|
|
5227
|
+
[disabled]="effectiveDisabled()"
|
|
5228
|
+
[readonly]="readonly()"
|
|
5229
|
+
[size]="resolvedPSize()"
|
|
5230
|
+
[invalid]="isInvalidState()"
|
|
5231
|
+
(onChange)="handleChange($event.checked)"
|
|
5232
|
+
/>
|
|
5233
|
+
|
|
5234
|
+
@if (label() && labelPos() === 'right') {
|
|
5235
|
+
<label [for]="_switchId" [class]="labelCls()">{{ label() }}</label>
|
|
5236
|
+
}
|
|
5237
|
+
</div>
|
|
5198
5238
|
`, styles: [":host{display:inline-block}:host(.asc-toggle-switch--full){display:block}.asc-toggle-switch-wrap{display:flex;align-items:center;gap:.5rem}.asc-toggle-switch-label{font-size:.875rem;font-weight:500;color:var(--asc-text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1.25}.asc-toggle-switch-label--disabled{opacity:.6;cursor:not-allowed}\n"] }]
|
|
5199
5239
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPos", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", 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 }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
5200
5240
|
|
|
@@ -6611,7 +6651,7 @@ class AscTableComponent {
|
|
|
6611
6651
|
URL.revokeObjectURL(url);
|
|
6612
6652
|
}
|
|
6613
6653
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6614
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTableComponent, isStandalone: true, selector: "asc-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsDisplay: { classPropertyName: "actionsDisplay", publicName: "actionsDisplay", isSignal: true, isRequired: false, transformFunction: null }, contextMenuActions: { classPropertyName: "contextMenuActions", publicName: "contextMenuActions", isSignal: true, isRequired: false, transformFunction: null }, selectionActions: { classPropertyName: "selectionActions", publicName: "selectionActions", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, rowDisabled: { classPropertyName: "rowDisabled", publicName: "rowDisabled", isSignal: true, isRequired: false, transformFunction: null }, selectionGroupField: { classPropertyName: "selectionGroupField", publicName: "selectionGroupField", isSignal: true, isRequired: false, transformFunction: null }, checkedField: { classPropertyName: "checkedField", publicName: "checkedField", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showColumnManager: { classPropertyName: "showColumnManager", publicName: "showColumnManager", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, showRowNumber: { classPropertyName: "showRowNumber", publicName: "showRowNumber", isSignal: true, isRequired: false, transformFunction: null }, rowNumberHeader: { classPropertyName: "rowNumberHeader", publicName: "rowNumberHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsHeader: { classPropertyName: "actionsHeader", publicName: "actionsHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMinWidth: { classPropertyName: "actionsMinWidth", publicName: "actionsMinWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMaxWidth: { classPropertyName: "actionsMaxWidth", publicName: "actionsMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { lazyLoad: "lazyLoad", pageChange: "pageChange", sortChange: "sortChange", filterChange: "filterChange", selectionChange: "selectionChange", rowSelected: "rowSelected", rowUnselected: "rowUnselected", rowClicked: "rowClicked", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed", groupCheckedChange: "groupCheckedChange" }, providers: [DatePipe], queries: [{ propertyName: "cellTpls", predicate: AscTableCellDirective, isSignal: true }, { propertyName: "expandTpl", first: true, predicate: AscTableExpandDirective, descendants: true, isSignal: true }, { propertyName: "emptyTpl", first: true, predicate: AscTableEmptyDirective, descendants: true, isSignal: true }, { propertyName: "captionTpl", first: true, predicate: AscTableCaptionDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n @file asc-table.html\n AscTableComponent template\n\n Structure:\n .asc-table-wrapper\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\n \u2514\u2500\u2500 p-table\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\n-->\n\n<div class=\"asc-table-wrapper\">\n\n <!-- \u2500\u2500 Caption / Toolbar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n\n <ng-template #defaultCaption>\n @if (showToolbar()) {\n <div class=\"asc-table-toolbar\">\n <!-- Left slot: search -->\n <div class=\"asc-table-toolbar-left\">\n @if (showSearch()) {\n <p-iconfield iconPosition=\"left\">\n <p-inputicon class=\"pi pi-search\"/>\n <input\n pInputText\n type=\"text\"\n [placeholder]=\"msg.table.searchPlaceholder\"\n [ngModel]=\"globalFilter()\"\n (ngModelChange)=\"handleGlobalFilter($event)\"\n class=\"asc-table-search-input\"\n />\n </p-iconfield>\n }\n </div>\n\n <!-- Right slot: column manager + export -->\n <div class=\"asc-table-toolbar-right\">\n @if (showColumnManager()) {\n <p-button\n #columnManagerBtn\n icon=\"pi pi-table\"\n variant=\"text\"\n severity=\"secondary\"\n size=\"small\"\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\n (onClick)=\"columnManagerOverlay.toggle($event)\"\n />\n <!-- Column manager popover -->\n <p-popover #columnManagerOverlay>\n <div class=\"asc-column-manager\">\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\n @for (col of columnVisibility(); track col.field) {\n <div class=\"asc-column-manager-item\">\n <p-checkbox\n [ngModel]=\"col.visible\"\n [binary]=\"true\"\n [inputId]=\"'col-' + col.field\"\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\n />\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\n </div>\n }\n </div>\n </p-popover>\n }\n\n @if (exportable()) {\n <p-button\n icon=\"pi pi-download\"\n [label]=\"msg.table.exportCsv\"\n variant=\"outlined\"\n severity=\"secondary\"\n size=\"small\"\n (onClick)=\"exportCsv()\"\n />\n }\n </div>\n </div>\n }\n </ng-template>\n\n <!-- \u2500\u2500 PrimeNG Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <p-table\n #dt\n [value]=\"data()\"\n [loading]=\"loading()\"\n [lazy]=\"lazy()\"\n [totalRecords]=\"totalRecords()\"\n [rows]=\"rows()\"\n [first]=\"first()\"\n [paginator]=\"paginator()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\n [sortMode]=\"sortMode()\"\n [defaultSortOrder]=\"1\"\n [reorderableColumns]=\"reorderableColumns()\"\n [resizableColumns]=\"resizableColumns()\"\n [columnResizeMode]=\"'expand'\"\n [showGridlines]=\"showGridlines()\"\n [stripedRows]=\"stripedRows()\"\n [scrollable]=\"resolvedScrollable()\"\n [scrollHeight]=\"scrollHeight()\"\n [virtualScroll]=\"virtualScroll()\"\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\n [selectionMode]=\"pSelectionMode()\"\n [(selection)]=\"selectedRowsModel\"\n [rowSelectable]=\"pRowSelectable\"\n [dataKey]=\"dataKey()\"\n [(contextMenuSelection)]=\"contextMenuRow\"\n [globalFilterFields]=\"globalFilterFields()\"\n [rowExpandMode]=\"'multiple'\"\n [class]=\"tableStyleClass()\"\n (onPage)=\"handlePage($event)\"\n (onSort)=\"handleSort($event)\"\n (onFilter)=\"handleFilter($event)\"\n (onLazyLoad)=\"handleLazyLoad($event)\"\n (onRowSelect)=\"rowSelected.emit($event)\"\n (onRowUnselect)=\"rowUnselected.emit($event)\"\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\n >\n\n <!-- \u2500\u2500 Context menu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #header>\n <tr>\n <!-- Expand toggle column -->\n @if (expandable()) {\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\n }\n\n <!-- Selection column -->\n @if (selectionMode() === 'multiple') {\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\n style=\"width: 3rem\" [frozen]=\"true\">\n <p-tableHeaderCheckbox/>\n </th>\n }\n @if (selectionMode() === 'single') {\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\n }\n\n <!-- Row number column -->\n @if (showRowNumber()) {\n <th\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"left\"\n class=\"asc-th asc-th-row-number\"\n style=\"width: 4rem; text-align: center\"\n >\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\n </th>\n }\n\n <!-- Data columns -->\n @for (cell of headerCells(); track cell.col.field) {\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\n </th>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"dataHeaderCell\"\n [ngTemplateOutletContext]=\"{\n col: cell.col,\n colspan: cell.colspan,\n rowspan: hasHeaderGroups() ? 2 : 1\n }\"\n />\n }\n }\n\n <!-- Actions column header -->\n @if (hasActionsColumn()) {\n <th\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"right\"\n class=\"asc-th asc-th-actions\"\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\n style=\"text-align: center\"\n >\n {{ actionsHeader() ?? msg.table.actionsHeader }}\n </th>\n }\n </tr>\n\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\n @if (hasHeaderGroups()) {\n <tr>\n @for (col of subHeaderColumns(); track col.field) {\n <ng-container\n [ngTemplateOutlet]=\"dataHeaderCell\"\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\n />\n }\n </tr>\n }\n </ng-template>\n\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\n <th\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\n [pSortableColumnDisabled]=\"!col.sortable\"\n pFrozenColumn\n [frozen]=\"col.frozen ?? false\"\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\n [style.width]=\"col.width ?? 'auto'\"\n [style.min-width]=\"col.minWidth ?? '0'\"\n [style.max-width]=\"col.maxWidth ?? 'none'\"\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\n [class]=\"col.headerClass ?? ''\"\n class=\"asc-th\"\n >\n <div class=\"asc-th-content\">\n <span class=\"asc-th-text\">{{ col.header }}</span>\n\n @if (col.sortable) {\n <p-sortIcon [field]=\"col.field\"/>\n }\n\n @if (col.filterable) {\n <p-column-filter\n [field]=\"col.field\"\n [type]=\"resolveFilterType(col)\"\n display=\"menu\"\n class=\"asc-col-filter\"\n />\n }\n </div>\n </th>\n </ng-template>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr\n [pSelectableRow]=\"row\"\n [pSelectableRowIndex]=\"rowIndex\"\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\n [pContextMenuRow]=\"row\"\n [class.asc-row-selected]=\"isSelected(row)\"\n [class.asc-row-expanded]=\"expanded\"\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\n (click)=\"rowClicked.emit(row)\"\n >\n <!-- Expand toggle -->\n @if (expandable()) {\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\n <p-button\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\n variant=\"text\"\n severity=\"secondary\"\n size=\"small\"\n [pRowToggler]=\"row\"\n />\n </td>\n }\n\n <!-- Selection -->\n @if (selectionMode() === 'multiple') {\n @if (!selectionGroupField()) {\n <td pFrozenColumn\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\n </td>\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\n <td pFrozenColumn\n [frozen]=\"true\" class=\"asc-td-select\"\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\n (click)=\"$event.stopPropagation()\">\n <p-checkbox\n [binary]=\"true\"\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\n />\n </td>\n }\n }\n @if (selectionMode() === 'single') {\n <td pFrozenColumn\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\n </td>\n }\n\n <!-- Row number cell -->\n @if (showRowNumber()) {\n <td\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"left\"\n class=\"asc-td asc-td-row-number\"\n style=\"text-align: center\"\n >{{ rowIndex + 1 }}\n </td>\n }\n\n <!-- Data cells -->\n @for (col of visibleColumns(); track col.field) {\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\n <td\n pFrozenColumn\n [frozen]=\"col.frozen ?? false\"\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\n [style.width]=\"col.width ?? 'auto'\"\n [style.min-width]=\"col.minWidth ?? '0'\"\n [style.max-width]=\"col.maxWidth ?? 'none'\"\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\n [class]=\"resolveCellClass(col, row)\"\n class=\"asc-td\"\n >\n <ng-container\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\n [ngTemplateOutletContext]=\"{\n $implicit: getCellValue(row, col.field),\n row: row,\n index: rowIndex,\n column: col\n }\"\n />\n </td>\n }\n }\n\n <!-- Actions column -->\n @if (hasActionsColumn()) {\n <td\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"right\"\n class=\"asc-td asc-td-actions\"\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (actionsDisplay() === 'dropdown') {\n <p-button\n icon=\"pi pi-ellipsis-v\"\n variant=\"text\"\n severity=\"secondary\"\n size=\"small\"\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\n />\n } @else {\n <div class=\"asc-actions-wrap\">\n @for (action of getVisibleActions(row); track action.label) {\n <p-button\n [icon]=\"action.iconSrc ? '' : (action.icon ?? '')\"\n [label]=\"action.label ?? ''\"\n [severity]=\"action.severity ?? 'secondary'\"\n [disabled]=\"action.disabled?.(row) ?? false\"\n [pTooltip]=\"action.tooltip ?? ''\"\n tooltipPosition=\"top\"\n variant=\"text\"\n size=\"small\"\n (onClick)=\"action.command(row, rowIndex)\"\n >\n @if (action.iconSrc) {\n <ng-template #icon>\n <asc-icon [src]=\"action.iconSrc\" />\n </ng-template>\n }\n </p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\n @if (hasFooter()) {\n <ng-template #footer>\n <tr>\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\n @if (expandable()) {\n <td class=\"asc-td-footer\"></td>\n }\n @if (selectionMode() === 'multiple') {\n <td class=\"asc-td-footer\"></td>\n }\n @if (selectionMode() === 'single') {\n <td class=\"asc-td-footer\"></td>\n }\n @if (showRowNumber()) {\n <td class=\"asc-td-footer\"></td>\n }\n\n @for (cell of footerCells(); track cell.col.field) {\n <td\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\n [class]=\"cell.col.headerClass ?? ''\"\n class=\"asc-td-footer\"\n >\n {{ cell.col.footer }}\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td class=\"asc-td-footer\"></td>\n }\n </tr>\n </ng-template>\n }\n\n <!-- \u2500\u2500 Row expand content \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (expandable() && expandTpl()) {\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\n <tr class=\"asc-row-expansion\">\n <td [attr.colspan]=\"expandColspan()\">\n <ng-container\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\n />\n </td>\n </tr>\n </ng-template>\n }\n\n <!-- \u2500\u2500 Loading skeleton \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #loadingbody>\n @for (i of skeletonRows(); track i) {\n <tr class=\"asc-row-skeleton\">\n @if (expandable()) {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\n </td>\n }\n @if (selectionMode() === 'multiple') {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\n </td>\n }\n @if (selectionMode() === 'single') {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\n </td>\n }\n @if (showRowNumber()) {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\n </td>\n }\n\n @for (col of visibleColumns(); track col.field) {\n <td>\n <p-skeleton\n height=\"1.5rem\"\n [width]=\"getSkeletonWidth(col)\"\n />\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\n </td>\n }\n </tr>\n }\n </ng-template>\n\n <!-- \u2500\u2500 Empty state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #emptymessage>\n <tr>\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\n @if (emptyTpl()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\n } @else {\n <div class=\"asc-empty-default\">\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\n </div>\n }\n </td>\n </tr>\n </ng-template>\n\n </p-table>\n\n <!-- Shared popup menu for dropdown action mode -->\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\n <ng-template #item let-item>\n <a class=\"p-menu-item-link\" pRipple>\n @if (item.iconSrc) {\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\n } @else if (item.icon) {\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\n }\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\n </a>\n </ng-template>\n </p-menu>\n\n</div>\n\n<!-- \u2500\u2500 Default cell template (text) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n<!--\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\n-->\n<ng-template\n #defaultCell\n let-value\n let-row=\"row\"\n let-col=\"column\"\n>\n @switch (col?.type ?? 'text') {\n\n @case ('number') {\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\n }\n @case ('currency') {\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\n }\n @case ('date') {\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\n }\n @case ('datetime') {\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\n }\n @case ('boolean') {\n <i\n [class]=\"value\n ? 'pi pi-check-circle text-green-600'\n : 'pi pi-times-circle text-red-400'\"\n class=\"asc-cell-boolean\"\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\n ></i>\n }\n @case ('badge') {\n @if (resolveBadge(value, col); as badge) {\n <p-tag\n [value]=\"badge.label\"\n [severity]=\"mapSeverityToTag(badge.severity)\"\n [icon]=\"badge.icon ?? ''\"\n />\n } @else {\n <span>{{ value ?? '\u2014' }}</span>\n }\n }\n @case ('avatar') {\n <div class=\"asc-cell-avatar\">\n <p-avatar\n [label]=\"getInitials(value)\"\n shape=\"circle\"\n size=\"normal\"\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\n />\n <span>{{ value }}</span>\n </div>\n }\n @default {\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\n <span\n class=\"asc-cell-text\"\n [class.asc-cell-text-clamp]=\"textClamped\"\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\n tooltipPosition=\"right\"\n >{{ formatText(value, col?.format) }}</span>\n }\n\n }\n</ng-template>\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:.25rem .5rem!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:.875rem;font-weight:600;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums;font-weight:500}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-top-width:0;border-left-width:1px;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:first-child{border-left-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{border:1px solid var(--asc-border-color);border-radius:8px;background:var(--asc-surface-0);min-width:32px;height:32px;font-size:14px}::ng-deep .asc-table-wrapper .p-paginator-page.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-prev.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-next.p-paginator-page-selected{background:var(--p-primary-500);border-color:var(--p-primary-500);color:#fff}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i3$4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i3$4.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i3$4.FrozenColumn, selector: "[pFrozenColumn]", inputs: ["frozen", "alignFrozen"] }, { kind: "directive", type: i3$4.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i3$4.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "directive", type: i3$4.ContextMenuRow, selector: "[pContextMenuRow]", inputs: ["pContextMenuRow", "pContextMenuRowIndex", "pContextMenuRowDisabled"] }, { kind: "component", type: i3$4.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i3$4.TableRadioButton, selector: "p-tableRadioButton", inputs: ["value", "disabled", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableCheckbox, selector: "p-tableCheckbox", inputs: ["value", "disabled", "required", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i9.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i10.Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i11.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i13.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i14.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i15.Ripple, selector: "[pRipple]" }, { kind: "component", type: AscIconComponent, selector: "asc-icon", inputs: ["src", "size", "width", "height"], outputs: ["loadError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6654
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTableComponent, isStandalone: true, selector: "asc-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsDisplay: { classPropertyName: "actionsDisplay", publicName: "actionsDisplay", isSignal: true, isRequired: false, transformFunction: null }, contextMenuActions: { classPropertyName: "contextMenuActions", publicName: "contextMenuActions", isSignal: true, isRequired: false, transformFunction: null }, selectionActions: { classPropertyName: "selectionActions", publicName: "selectionActions", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, rowDisabled: { classPropertyName: "rowDisabled", publicName: "rowDisabled", isSignal: true, isRequired: false, transformFunction: null }, selectionGroupField: { classPropertyName: "selectionGroupField", publicName: "selectionGroupField", isSignal: true, isRequired: false, transformFunction: null }, checkedField: { classPropertyName: "checkedField", publicName: "checkedField", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showColumnManager: { classPropertyName: "showColumnManager", publicName: "showColumnManager", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, showRowNumber: { classPropertyName: "showRowNumber", publicName: "showRowNumber", isSignal: true, isRequired: false, transformFunction: null }, rowNumberHeader: { classPropertyName: "rowNumberHeader", publicName: "rowNumberHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsHeader: { classPropertyName: "actionsHeader", publicName: "actionsHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMinWidth: { classPropertyName: "actionsMinWidth", publicName: "actionsMinWidth", isSignal: true, isRequired: false, transformFunction: null }, actionsMaxWidth: { classPropertyName: "actionsMaxWidth", publicName: "actionsMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { lazyLoad: "lazyLoad", pageChange: "pageChange", sortChange: "sortChange", filterChange: "filterChange", selectionChange: "selectionChange", rowSelected: "rowSelected", rowUnselected: "rowUnselected", rowClicked: "rowClicked", rowExpanded: "rowExpanded", rowCollapsed: "rowCollapsed", groupCheckedChange: "groupCheckedChange" }, providers: [DatePipe], queries: [{ propertyName: "cellTpls", predicate: AscTableCellDirective, isSignal: true }, { propertyName: "expandTpl", first: true, predicate: AscTableExpandDirective, descendants: true, isSignal: true }, { propertyName: "emptyTpl", first: true, predicate: AscTableEmptyDirective, descendants: true, isSignal: true }, { propertyName: "captionTpl", first: true, predicate: AscTableCaptionDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\r\n @file asc-table.html\r\n AscTableComponent template\r\n\r\n Structure:\r\n .asc-table-wrapper\r\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\r\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\r\n \u2514\u2500\u2500 p-table\r\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\r\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\r\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\r\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\r\n-->\r\n\r\n<div class=\"asc-table-wrapper\">\r\n\r\n <!-- \u2500\u2500 Caption / Toolbar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n\r\n <ng-template #defaultCaption>\r\n @if (showToolbar()) {\r\n <div class=\"asc-table-toolbar\">\r\n <!-- Left slot: search -->\r\n <div class=\"asc-table-toolbar-left\">\r\n @if (showSearch()) {\r\n <p-iconfield iconPosition=\"left\">\r\n <p-inputicon class=\"pi pi-search\"/>\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [placeholder]=\"msg.table.searchPlaceholder\"\r\n [ngModel]=\"globalFilter()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"handleGlobalFilter($event)\"\r\n class=\"asc-table-search-input\"\r\n />\r\n </p-iconfield>\r\n }\r\n </div>\r\n\r\n <!-- Right slot: column manager + export -->\r\n <div class=\"asc-table-toolbar-right\">\r\n @if (showColumnManager()) {\r\n <p-button\r\n #columnManagerBtn\r\n icon=\"pi pi-table\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\r\n (onClick)=\"columnManagerOverlay.toggle($event)\"\r\n />\r\n <!-- Column manager popover -->\r\n <p-popover #columnManagerOverlay>\r\n <div class=\"asc-column-manager\">\r\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\r\n @for (col of columnVisibility(); track col.field) {\r\n <div class=\"asc-column-manager-item\">\r\n <p-checkbox\r\n [ngModel]=\"col.visible\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [binary]=\"true\"\r\n [inputId]=\"'col-' + col.field\"\r\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\r\n />\r\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\r\n </div>\r\n }\r\n </div>\r\n </p-popover>\r\n }\r\n\r\n @if (exportable()) {\r\n <p-button\r\n icon=\"pi pi-download\"\r\n [label]=\"msg.table.exportCsv\"\r\n variant=\"outlined\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"exportCsv()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 PrimeNG Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <p-table\r\n #dt\r\n [value]=\"data()\"\r\n [loading]=\"loading()\"\r\n [lazy]=\"lazy()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [rows]=\"rows()\"\r\n [first]=\"first()\"\r\n [paginator]=\"paginator()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\r\n [sortMode]=\"sortMode()\"\r\n [defaultSortOrder]=\"1\"\r\n [reorderableColumns]=\"reorderableColumns()\"\r\n [resizableColumns]=\"resizableColumns()\"\r\n [columnResizeMode]=\"'expand'\"\r\n [showGridlines]=\"showGridlines()\"\r\n [stripedRows]=\"stripedRows()\"\r\n [scrollable]=\"resolvedScrollable()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [selectionMode]=\"pSelectionMode()\"\r\n [(selection)]=\"selectedRowsModel\"\r\n [rowSelectable]=\"pRowSelectable\"\r\n [dataKey]=\"dataKey()\"\r\n [(contextMenuSelection)]=\"contextMenuRow\"\r\n [globalFilterFields]=\"globalFilterFields()\"\r\n [rowExpandMode]=\"'multiple'\"\r\n [class]=\"tableStyleClass()\"\r\n (onPage)=\"handlePage($event)\"\r\n (onSort)=\"handleSort($event)\"\r\n (onFilter)=\"handleFilter($event)\"\r\n (onLazyLoad)=\"handleLazyLoad($event)\"\r\n (onRowSelect)=\"rowSelected.emit($event)\"\r\n (onRowUnselect)=\"rowUnselected.emit($event)\"\r\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\r\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\r\n >\r\n\r\n <!-- \u2500\u2500 Context menu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n\r\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #header>\r\n <tr>\r\n <!-- Expand toggle column -->\r\n @if (expandable()) {\r\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Selection column -->\r\n @if (selectionMode() === 'multiple') {\r\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\r\n style=\"width: 3rem\" [frozen]=\"true\">\r\n <p-tableHeaderCheckbox/>\r\n </th>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Row number column -->\r\n @if (showRowNumber()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-th asc-th-row-number\"\r\n style=\"width: 4rem; text-align: center\"\r\n >\r\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\r\n </th>\r\n }\r\n\r\n <!-- Data columns -->\r\n @for (cell of headerCells(); track cell.col.field) {\r\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\r\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\r\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\r\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\r\n </th>\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{\r\n col: cell.col,\r\n colspan: cell.colspan,\r\n rowspan: hasHeaderGroups() ? 2 : 1\r\n }\"\r\n />\r\n }\r\n }\r\n\r\n <!-- Actions column header -->\r\n @if (hasActionsColumn()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-th asc-th-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n style=\"text-align: center\"\r\n >\r\n {{ actionsHeader() ?? msg.table.actionsHeader }}\r\n </th>\r\n }\r\n </tr>\r\n\r\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\r\n @if (hasHeaderGroups()) {\r\n <tr>\r\n @for (col of subHeaderColumns(); track col.field) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\r\n />\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\r\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\r\n <th\r\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\r\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\r\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\r\n [pSortableColumnDisabled]=\"!col.sortable\"\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"col.headerClass ?? ''\"\r\n class=\"asc-th\"\r\n >\r\n <div class=\"asc-th-content\">\r\n <span class=\"asc-th-text\">{{ col.header }}</span>\r\n\r\n @if (col.sortable) {\r\n <p-sortIcon [field]=\"col.field\"/>\r\n }\r\n\r\n @if (col.filterable) {\r\n <p-column-filter\r\n [field]=\"col.field\"\r\n [type]=\"resolveFilterType(col)\"\r\n display=\"menu\"\r\n class=\"asc-col-filter\"\r\n />\r\n }\r\n </div>\r\n </th>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\r\n <tr\r\n [pSelectableRow]=\"row\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\r\n [pContextMenuRow]=\"row\"\r\n [class.asc-row-selected]=\"isSelected(row)\"\r\n [class.asc-row-expanded]=\"expanded\"\r\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\r\n (click)=\"rowClicked.emit(row)\"\r\n >\r\n <!-- Expand toggle -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\r\n <p-button\r\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pRowToggler]=\"row\"\r\n />\r\n </td>\r\n }\r\n\r\n <!-- Selection -->\r\n @if (selectionMode() === 'multiple') {\r\n @if (!selectionGroupField()) {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\r\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\"\r\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\r\n (click)=\"$event.stopPropagation()\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n />\r\n </td>\r\n }\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n }\r\n\r\n <!-- Row number cell -->\r\n @if (showRowNumber()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-td asc-td-row-number\"\r\n style=\"text-align: center\"\r\n >{{ rowIndex + 1 }}\r\n </td>\r\n }\r\n\r\n <!-- Data cells -->\r\n @for (col of visibleColumns(); track col.field) {\r\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"resolveCellClass(col, row)\"\r\n class=\"asc-td\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: getCellValue(row, col.field),\r\n row: row,\r\n index: rowIndex,\r\n column: col\r\n }\"\r\n />\r\n </td>\r\n }\r\n }\r\n\r\n <!-- Actions column -->\r\n @if (hasActionsColumn()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-td asc-td-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n @if (actionsDisplay() === 'dropdown') {\r\n <p-button\r\n icon=\"pi pi-ellipsis-v\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\r\n />\r\n } @else {\r\n <div class=\"asc-actions-wrap\">\r\n @for (action of getVisibleActions(row); track action.label) {\r\n <p-button\r\n [icon]=\"action.iconSrc ? '' : (action.icon ?? '')\"\r\n [label]=\"action.label ?? ''\"\r\n [severity]=\"action.severity ?? 'secondary'\"\r\n [disabled]=\"action.disabled?.(row) ?? false\"\r\n [pTooltip]=\"action.tooltip ?? ''\"\r\n tooltipPosition=\"top\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (onClick)=\"action.command(row, rowIndex)\"\r\n >\r\n @if (action.iconSrc) {\r\n <ng-template #icon>\r\n <asc-icon [src]=\"action.iconSrc\" />\r\n </ng-template>\r\n }\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\r\n @if (hasFooter()) {\r\n <ng-template #footer>\r\n <tr>\r\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (showRowNumber()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n\r\n @for (cell of footerCells(); track cell.col.field) {\r\n <td\r\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\r\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\r\n [class]=\"cell.col.headerClass ?? ''\"\r\n class=\"asc-td-footer\"\r\n >\r\n {{ cell.col.footer }}\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Row expand content \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n @if (expandable() && expandTpl()) {\r\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\r\n <tr class=\"asc-row-expansion\">\r\n <td [attr.colspan]=\"expandColspan()\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\r\n />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Loading skeleton \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #loadingbody>\r\n @for (i of skeletonRows(); track i) {\r\n <tr class=\"asc-row-skeleton\">\r\n @if (expandable()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (showRowNumber()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n\r\n @for (col of visibleColumns(); track col.field) {\r\n <td>\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n [width]=\"getSkeletonWidth(col)\"\r\n />\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Empty state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #emptymessage>\r\n <tr>\r\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\r\n @if (emptyTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\r\n } @else {\r\n <div class=\"asc-empty-default\">\r\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\r\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\r\n </div>\r\n }\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n </p-table>\r\n\r\n <!-- Shared popup menu for dropdown action mode -->\r\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\r\n <ng-template #item let-item>\r\n <a class=\"p-menu-item-link\" pRipple>\r\n @if (item.iconSrc) {\r\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\r\n } @else if (item.icon) {\r\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n </p-menu>\r\n\r\n</div>\r\n\r\n<!-- \u2500\u2500 Default cell template (text) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n<!--\r\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\r\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\r\n-->\r\n<ng-template\r\n #defaultCell\r\n let-value\r\n let-row=\"row\"\r\n let-col=\"column\"\r\n>\r\n @switch (col?.type ?? 'text') {\r\n\r\n @case ('number') {\r\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\r\n }\r\n @case ('currency') {\r\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\r\n }\r\n @case ('date') {\r\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\r\n }\r\n @case ('datetime') {\r\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\r\n }\r\n @case ('boolean') {\r\n <i\r\n [class]=\"value\r\n ? 'pi pi-check-circle text-green-600'\r\n : 'pi pi-times-circle text-red-400'\"\r\n class=\"asc-cell-boolean\"\r\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\r\n ></i>\r\n }\r\n @case ('badge') {\r\n @if (resolveBadge(value, col); as badge) {\r\n <p-tag\r\n [value]=\"badge.label\"\r\n [severity]=\"mapSeverityToTag(badge.severity)\"\r\n [icon]=\"badge.icon ?? ''\"\r\n />\r\n } @else {\r\n <span>{{ value ?? '\u2014' }}</span>\r\n }\r\n }\r\n @case ('avatar') {\r\n <div class=\"asc-cell-avatar\">\r\n <p-avatar\r\n [label]=\"getInitials(value)\"\r\n shape=\"circle\"\r\n size=\"normal\"\r\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\r\n />\r\n <span>{{ value }}</span>\r\n </div>\r\n }\r\n @default {\r\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\r\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\r\n <span\r\n class=\"asc-cell-text\"\r\n [class.asc-cell-text-clamp]=\"textClamped\"\r\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\r\n tooltipPosition=\"right\"\r\n >{{ formatText(value, col?.format) }}</span>\r\n }\r\n\r\n }\r\n</ng-template>\r\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:.25rem .5rem!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:.875rem;font-weight:600;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums;font-weight:500}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-top-width:0;border-left-width:1px;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:first-child{border-left-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{border:1px solid var(--asc-border-color);border-radius:8px;background:var(--asc-surface-0);min-width:32px;height:32px;font-size:14px}::ng-deep .asc-table-wrapper .p-paginator-page.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-prev.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-next.p-paginator-page-selected{background:var(--p-primary-500);border-color:var(--p-primary-500);color:#fff}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i3$4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i3$4.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i3$4.FrozenColumn, selector: "[pFrozenColumn]", inputs: ["frozen", "alignFrozen"] }, { kind: "directive", type: i3$4.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i3$4.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "directive", type: i3$4.ContextMenuRow, selector: "[pContextMenuRow]", inputs: ["pContextMenuRow", "pContextMenuRowIndex", "pContextMenuRowDisabled"] }, { kind: "component", type: i3$4.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i3$4.TableRadioButton, selector: "p-tableRadioButton", inputs: ["value", "disabled", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableCheckbox, selector: "p-tableCheckbox", inputs: ["value", "disabled", "required", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i3$4.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i9.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i10.Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i11.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i13.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i14.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i15.Ripple, selector: "[pRipple]" }, { kind: "component", type: AscIconComponent, selector: "asc-icon", inputs: ["src", "size", "width", "height"], outputs: ["loadError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6615
6655
|
}
|
|
6616
6656
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, decorators: [{
|
|
6617
6657
|
type: Component,
|
|
@@ -6633,7 +6673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
6633
6673
|
MenuModule,
|
|
6634
6674
|
RippleModule,
|
|
6635
6675
|
AscIconComponent,
|
|
6636
|
-
], providers: [DatePipe], template: "<!--\n @file asc-table.html\n AscTableComponent template\n\n Structure:\n .asc-table-wrapper\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\n \u2514\u2500\u2500 p-table\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\n-->\n\n<div class=\"asc-table-wrapper\">\n\n <!-- \u2500\u2500 Caption / Toolbar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n\n <ng-template #defaultCaption>\n @if (showToolbar()) {\n <div class=\"asc-table-toolbar\">\n <!-- Left slot: search -->\n <div class=\"asc-table-toolbar-left\">\n @if (showSearch()) {\n <p-iconfield iconPosition=\"left\">\n <p-inputicon class=\"pi pi-search\"/>\n <input\n pInputText\n type=\"text\"\n [placeholder]=\"msg.table.searchPlaceholder\"\n [ngModel]=\"globalFilter()\"\n (ngModelChange)=\"handleGlobalFilter($event)\"\n class=\"asc-table-search-input\"\n />\n </p-iconfield>\n }\n </div>\n\n <!-- Right slot: column manager + export -->\n <div class=\"asc-table-toolbar-right\">\n @if (showColumnManager()) {\n <p-button\n #columnManagerBtn\n icon=\"pi pi-table\"\n variant=\"text\"\n severity=\"secondary\"\n size=\"small\"\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\n (onClick)=\"columnManagerOverlay.toggle($event)\"\n />\n <!-- Column manager popover -->\n <p-popover #columnManagerOverlay>\n <div class=\"asc-column-manager\">\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\n @for (col of columnVisibility(); track col.field) {\n <div class=\"asc-column-manager-item\">\n <p-checkbox\n [ngModel]=\"col.visible\"\n [binary]=\"true\"\n [inputId]=\"'col-' + col.field\"\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\n />\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\n </div>\n }\n </div>\n </p-popover>\n }\n\n @if (exportable()) {\n <p-button\n icon=\"pi pi-download\"\n [label]=\"msg.table.exportCsv\"\n variant=\"outlined\"\n severity=\"secondary\"\n size=\"small\"\n (onClick)=\"exportCsv()\"\n />\n }\n </div>\n </div>\n }\n </ng-template>\n\n <!-- \u2500\u2500 PrimeNG Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <p-table\n #dt\n [value]=\"data()\"\n [loading]=\"loading()\"\n [lazy]=\"lazy()\"\n [totalRecords]=\"totalRecords()\"\n [rows]=\"rows()\"\n [first]=\"first()\"\n [paginator]=\"paginator()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\n [sortMode]=\"sortMode()\"\n [defaultSortOrder]=\"1\"\n [reorderableColumns]=\"reorderableColumns()\"\n [resizableColumns]=\"resizableColumns()\"\n [columnResizeMode]=\"'expand'\"\n [showGridlines]=\"showGridlines()\"\n [stripedRows]=\"stripedRows()\"\n [scrollable]=\"resolvedScrollable()\"\n [scrollHeight]=\"scrollHeight()\"\n [virtualScroll]=\"virtualScroll()\"\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\n [selectionMode]=\"pSelectionMode()\"\n [(selection)]=\"selectedRowsModel\"\n [rowSelectable]=\"pRowSelectable\"\n [dataKey]=\"dataKey()\"\n [(contextMenuSelection)]=\"contextMenuRow\"\n [globalFilterFields]=\"globalFilterFields()\"\n [rowExpandMode]=\"'multiple'\"\n [class]=\"tableStyleClass()\"\n (onPage)=\"handlePage($event)\"\n (onSort)=\"handleSort($event)\"\n (onFilter)=\"handleFilter($event)\"\n (onLazyLoad)=\"handleLazyLoad($event)\"\n (onRowSelect)=\"rowSelected.emit($event)\"\n (onRowUnselect)=\"rowUnselected.emit($event)\"\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\n >\n\n <!-- \u2500\u2500 Context menu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #header>\n <tr>\n <!-- Expand toggle column -->\n @if (expandable()) {\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\n }\n\n <!-- Selection column -->\n @if (selectionMode() === 'multiple') {\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\n style=\"width: 3rem\" [frozen]=\"true\">\n <p-tableHeaderCheckbox/>\n </th>\n }\n @if (selectionMode() === 'single') {\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\n }\n\n <!-- Row number column -->\n @if (showRowNumber()) {\n <th\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"left\"\n class=\"asc-th asc-th-row-number\"\n style=\"width: 4rem; text-align: center\"\n >\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\n </th>\n }\n\n <!-- Data columns -->\n @for (cell of headerCells(); track cell.col.field) {\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\n </th>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"dataHeaderCell\"\n [ngTemplateOutletContext]=\"{\n col: cell.col,\n colspan: cell.colspan,\n rowspan: hasHeaderGroups() ? 2 : 1\n }\"\n />\n }\n }\n\n <!-- Actions column header -->\n @if (hasActionsColumn()) {\n <th\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"right\"\n class=\"asc-th asc-th-actions\"\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\n style=\"text-align: center\"\n >\n {{ actionsHeader() ?? msg.table.actionsHeader }}\n </th>\n }\n </tr>\n\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\n @if (hasHeaderGroups()) {\n <tr>\n @for (col of subHeaderColumns(); track col.field) {\n <ng-container\n [ngTemplateOutlet]=\"dataHeaderCell\"\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\n />\n }\n </tr>\n }\n </ng-template>\n\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\n <th\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\n [pSortableColumnDisabled]=\"!col.sortable\"\n pFrozenColumn\n [frozen]=\"col.frozen ?? false\"\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\n [style.width]=\"col.width ?? 'auto'\"\n [style.min-width]=\"col.minWidth ?? '0'\"\n [style.max-width]=\"col.maxWidth ?? 'none'\"\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\n [class]=\"col.headerClass ?? ''\"\n class=\"asc-th\"\n >\n <div class=\"asc-th-content\">\n <span class=\"asc-th-text\">{{ col.header }}</span>\n\n @if (col.sortable) {\n <p-sortIcon [field]=\"col.field\"/>\n }\n\n @if (col.filterable) {\n <p-column-filter\n [field]=\"col.field\"\n [type]=\"resolveFilterType(col)\"\n display=\"menu\"\n class=\"asc-col-filter\"\n />\n }\n </div>\n </th>\n </ng-template>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr\n [pSelectableRow]=\"row\"\n [pSelectableRowIndex]=\"rowIndex\"\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\n [pContextMenuRow]=\"row\"\n [class.asc-row-selected]=\"isSelected(row)\"\n [class.asc-row-expanded]=\"expanded\"\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\n (click)=\"rowClicked.emit(row)\"\n >\n <!-- Expand toggle -->\n @if (expandable()) {\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\n <p-button\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\n variant=\"text\"\n severity=\"secondary\"\n size=\"small\"\n [pRowToggler]=\"row\"\n />\n </td>\n }\n\n <!-- Selection -->\n @if (selectionMode() === 'multiple') {\n @if (!selectionGroupField()) {\n <td pFrozenColumn\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\n </td>\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\n <td pFrozenColumn\n [frozen]=\"true\" class=\"asc-td-select\"\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\n (click)=\"$event.stopPropagation()\">\n <p-checkbox\n [binary]=\"true\"\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\n />\n </td>\n }\n }\n @if (selectionMode() === 'single') {\n <td pFrozenColumn\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\n </td>\n }\n\n <!-- Row number cell -->\n @if (showRowNumber()) {\n <td\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"left\"\n class=\"asc-td asc-td-row-number\"\n style=\"text-align: center\"\n >{{ rowIndex + 1 }}\n </td>\n }\n\n <!-- Data cells -->\n @for (col of visibleColumns(); track col.field) {\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\n <td\n pFrozenColumn\n [frozen]=\"col.frozen ?? false\"\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\n [style.width]=\"col.width ?? 'auto'\"\n [style.min-width]=\"col.minWidth ?? '0'\"\n [style.max-width]=\"col.maxWidth ?? 'none'\"\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\n [class]=\"resolveCellClass(col, row)\"\n class=\"asc-td\"\n >\n <ng-container\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\n [ngTemplateOutletContext]=\"{\n $implicit: getCellValue(row, col.field),\n row: row,\n index: rowIndex,\n column: col\n }\"\n />\n </td>\n }\n }\n\n <!-- Actions column -->\n @if (hasActionsColumn()) {\n <td\n pFrozenColumn\n [frozen]=\"true\"\n alignFrozen=\"right\"\n class=\"asc-td asc-td-actions\"\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (actionsDisplay() === 'dropdown') {\n <p-button\n icon=\"pi pi-ellipsis-v\"\n variant=\"text\"\n severity=\"secondary\"\n size=\"small\"\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\n />\n } @else {\n <div class=\"asc-actions-wrap\">\n @for (action of getVisibleActions(row); track action.label) {\n <p-button\n [icon]=\"action.iconSrc ? '' : (action.icon ?? '')\"\n [label]=\"action.label ?? ''\"\n [severity]=\"action.severity ?? 'secondary'\"\n [disabled]=\"action.disabled?.(row) ?? false\"\n [pTooltip]=\"action.tooltip ?? ''\"\n tooltipPosition=\"top\"\n variant=\"text\"\n size=\"small\"\n (onClick)=\"action.command(row, rowIndex)\"\n >\n @if (action.iconSrc) {\n <ng-template #icon>\n <asc-icon [src]=\"action.iconSrc\" />\n </ng-template>\n }\n </p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\n @if (hasFooter()) {\n <ng-template #footer>\n <tr>\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\n @if (expandable()) {\n <td class=\"asc-td-footer\"></td>\n }\n @if (selectionMode() === 'multiple') {\n <td class=\"asc-td-footer\"></td>\n }\n @if (selectionMode() === 'single') {\n <td class=\"asc-td-footer\"></td>\n }\n @if (showRowNumber()) {\n <td class=\"asc-td-footer\"></td>\n }\n\n @for (cell of footerCells(); track cell.col.field) {\n <td\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\n [class]=\"cell.col.headerClass ?? ''\"\n class=\"asc-td-footer\"\n >\n {{ cell.col.footer }}\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td class=\"asc-td-footer\"></td>\n }\n </tr>\n </ng-template>\n }\n\n <!-- \u2500\u2500 Row expand content \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (expandable() && expandTpl()) {\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\n <tr class=\"asc-row-expansion\">\n <td [attr.colspan]=\"expandColspan()\">\n <ng-container\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\n />\n </td>\n </tr>\n </ng-template>\n }\n\n <!-- \u2500\u2500 Loading skeleton \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #loadingbody>\n @for (i of skeletonRows(); track i) {\n <tr class=\"asc-row-skeleton\">\n @if (expandable()) {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\n </td>\n }\n @if (selectionMode() === 'multiple') {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\n </td>\n }\n @if (selectionMode() === 'single') {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\n </td>\n }\n @if (showRowNumber()) {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\n </td>\n }\n\n @for (col of visibleColumns(); track col.field) {\n <td>\n <p-skeleton\n height=\"1.5rem\"\n [width]=\"getSkeletonWidth(col)\"\n />\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td>\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\n </td>\n }\n </tr>\n }\n </ng-template>\n\n <!-- \u2500\u2500 Empty state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <ng-template #emptymessage>\n <tr>\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\n @if (emptyTpl()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\n } @else {\n <div class=\"asc-empty-default\">\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\n </div>\n }\n </td>\n </tr>\n </ng-template>\n\n </p-table>\n\n <!-- Shared popup menu for dropdown action mode -->\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\n <ng-template #item let-item>\n <a class=\"p-menu-item-link\" pRipple>\n @if (item.iconSrc) {\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\n } @else if (item.icon) {\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\n }\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\n </a>\n </ng-template>\n </p-menu>\n\n</div>\n\n<!-- \u2500\u2500 Default cell template (text) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n<!--\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\n-->\n<ng-template\n #defaultCell\n let-value\n let-row=\"row\"\n let-col=\"column\"\n>\n @switch (col?.type ?? 'text') {\n\n @case ('number') {\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\n }\n @case ('currency') {\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\n }\n @case ('date') {\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\n }\n @case ('datetime') {\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\n }\n @case ('boolean') {\n <i\n [class]=\"value\n ? 'pi pi-check-circle text-green-600'\n : 'pi pi-times-circle text-red-400'\"\n class=\"asc-cell-boolean\"\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\n ></i>\n }\n @case ('badge') {\n @if (resolveBadge(value, col); as badge) {\n <p-tag\n [value]=\"badge.label\"\n [severity]=\"mapSeverityToTag(badge.severity)\"\n [icon]=\"badge.icon ?? ''\"\n />\n } @else {\n <span>{{ value ?? '\u2014' }}</span>\n }\n }\n @case ('avatar') {\n <div class=\"asc-cell-avatar\">\n <p-avatar\n [label]=\"getInitials(value)\"\n shape=\"circle\"\n size=\"normal\"\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\n />\n <span>{{ value }}</span>\n </div>\n }\n @default {\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\n <span\n class=\"asc-cell-text\"\n [class.asc-cell-text-clamp]=\"textClamped\"\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\n tooltipPosition=\"right\"\n >{{ formatText(value, col?.format) }}</span>\n }\n\n }\n</ng-template>\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:.25rem .5rem!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:.875rem;font-weight:600;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums;font-weight:500}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-top-width:0;border-left-width:1px;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:first-child{border-left-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{border:1px solid var(--asc-border-color);border-radius:8px;background:var(--asc-surface-0);min-width:32px;height:32px;font-size:14px}::ng-deep .asc-table-wrapper .p-paginator-page.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-prev.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-next.p-paginator-page-selected{background:var(--p-primary-500);border-color:var(--p-primary-500);color:#fff}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"] }]
|
|
6676
|
+
], providers: [DatePipe], template: "<!--\r\n @file asc-table.html\r\n AscTableComponent template\r\n\r\n Structure:\r\n .asc-table-wrapper\r\n \u251C\u2500\u2500 [Caption] \u2014 toolbar (default search bar ho\u1EB7c custom template)\r\n \u251C\u2500\u2500 [Selection bar] \u2014 hi\u1EC7n khi c\u00F3 rows \u0111\u01B0\u1EE3c ch\u1ECDn\r\n \u2514\u2500\u2500 p-table\r\n \u251C\u2500\u2500 [Header] \u2014 column headers v\u1EDBi sort icons + filter\r\n \u251C\u2500\u2500 [Body] \u2014 rows v\u1EDBi cell renderers theo type\r\n \u251C\u2500\u2500 [Loading skeleton] \u2014 #loadingbody\r\n \u2514\u2500\u2500 [Empty] \u2014 #emptymessage\r\n-->\r\n\r\n<div class=\"asc-table-wrapper\">\r\n\r\n <!-- \u2500\u2500 Caption / Toolbar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n\r\n <ng-template #defaultCaption>\r\n @if (showToolbar()) {\r\n <div class=\"asc-table-toolbar\">\r\n <!-- Left slot: search -->\r\n <div class=\"asc-table-toolbar-left\">\r\n @if (showSearch()) {\r\n <p-iconfield iconPosition=\"left\">\r\n <p-inputicon class=\"pi pi-search\"/>\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [placeholder]=\"msg.table.searchPlaceholder\"\r\n [ngModel]=\"globalFilter()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"handleGlobalFilter($event)\"\r\n class=\"asc-table-search-input\"\r\n />\r\n </p-iconfield>\r\n }\r\n </div>\r\n\r\n <!-- Right slot: column manager + export -->\r\n <div class=\"asc-table-toolbar-right\">\r\n @if (showColumnManager()) {\r\n <p-button\r\n #columnManagerBtn\r\n icon=\"pi pi-table\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pTooltip]=\"'Hi\u1EC3n th\u1ECB c\u1ED9t'\"\r\n (onClick)=\"columnManagerOverlay.toggle($event)\"\r\n />\r\n <!-- Column manager popover -->\r\n <p-popover #columnManagerOverlay>\r\n <div class=\"asc-column-manager\">\r\n <p class=\"asc-column-manager-title\">Ch\u1ECDn c\u1ED9t hi\u1EC3n th\u1ECB</p>\r\n @for (col of columnVisibility(); track col.field) {\r\n <div class=\"asc-column-manager-item\">\r\n <p-checkbox\r\n [ngModel]=\"col.visible\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [binary]=\"true\"\r\n [inputId]=\"'col-' + col.field\"\r\n (ngModelChange)=\"toggleColumn(col.field, $event)\"\r\n />\r\n <label [for]=\"'col-' + col.field\">{{ col.header }}</label>\r\n </div>\r\n }\r\n </div>\r\n </p-popover>\r\n }\r\n\r\n @if (exportable()) {\r\n <p-button\r\n icon=\"pi pi-download\"\r\n [label]=\"msg.table.exportCsv\"\r\n variant=\"outlined\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"exportCsv()\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 PrimeNG Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <p-table\r\n #dt\r\n [value]=\"data()\"\r\n [loading]=\"loading()\"\r\n [lazy]=\"lazy()\"\r\n [totalRecords]=\"totalRecords()\"\r\n [rows]=\"rows()\"\r\n [first]=\"first()\"\r\n [paginator]=\"paginator()\"\r\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\r\n [showFirstLastIcon]=\"showFirstLastIcon()\"\r\n [showCurrentPageReport]=\"showCurrentPageReport()\"\r\n [currentPageReportTemplate]=\"currentPageReportTemplate() || msg.table.totalRecords\"\r\n [sortMode]=\"sortMode()\"\r\n [defaultSortOrder]=\"1\"\r\n [reorderableColumns]=\"reorderableColumns()\"\r\n [resizableColumns]=\"resizableColumns()\"\r\n [columnResizeMode]=\"'expand'\"\r\n [showGridlines]=\"showGridlines()\"\r\n [stripedRows]=\"stripedRows()\"\r\n [scrollable]=\"resolvedScrollable()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [selectionMode]=\"pSelectionMode()\"\r\n [(selection)]=\"selectedRowsModel\"\r\n [rowSelectable]=\"pRowSelectable\"\r\n [dataKey]=\"dataKey()\"\r\n [(contextMenuSelection)]=\"contextMenuRow\"\r\n [globalFilterFields]=\"globalFilterFields()\"\r\n [rowExpandMode]=\"'multiple'\"\r\n [class]=\"tableStyleClass()\"\r\n (onPage)=\"handlePage($event)\"\r\n (onSort)=\"handleSort($event)\"\r\n (onFilter)=\"handleFilter($event)\"\r\n (onLazyLoad)=\"handleLazyLoad($event)\"\r\n (onRowSelect)=\"rowSelected.emit($event)\"\r\n (onRowUnselect)=\"rowUnselected.emit($event)\"\r\n (onRowExpand)=\"rowExpanded.emit($event.data)\"\r\n (onRowCollapse)=\"rowCollapsed.emit($event.data)\"\r\n >\r\n\r\n <!-- \u2500\u2500 Context menu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n\r\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #header>\r\n <tr>\r\n <!-- Expand toggle column -->\r\n @if (expandable()) {\r\n <th [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-expand\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Selection column -->\r\n @if (selectionMode() === 'multiple') {\r\n <th pFrozenColumn [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\" class=\"asc-th-select\"\r\n style=\"width: 3rem\" [frozen]=\"true\">\r\n <p-tableHeaderCheckbox/>\r\n </th>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <th pFrozenColumn [frozen]=\"true\" [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n class=\"asc-th-select\" style=\"width: 3rem\"></th>\r\n }\r\n\r\n <!-- Row number column -->\r\n @if (showRowNumber()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-th asc-th-row-number\"\r\n style=\"width: 4rem; text-align: center\"\r\n >\r\n {{ rowNumberHeader() ?? msg.table.rowNumber }}\r\n </th>\r\n }\r\n\r\n <!-- Data columns -->\r\n @for (cell of headerCells(); track cell.col.field) {\r\n @if (cell.colspan > 1 && cell.col.headerGroup != null) {\r\n <!-- Group label \u2014 h\u00E0ng con c\u1EE7a nh\u00F3m n\u00E0y render ri\u00EAng \u1EDF h\u00E0ng header th\u1EE9 2 -->\r\n <th [attr.colspan]=\"cell.colspan\" class=\"asc-th asc-th-group\">\r\n <span class=\"asc-th-text\">{{ cell.col.headerGroup }}</span>\r\n </th>\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{\r\n col: cell.col,\r\n colspan: cell.colspan,\r\n rowspan: hasHeaderGroups() ? 2 : 1\r\n }\"\r\n />\r\n }\r\n }\r\n\r\n <!-- Actions column header -->\r\n @if (hasActionsColumn()) {\r\n <th\r\n [attr.rowspan]=\"hasHeaderGroups() ? 2 : null\"\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-th asc-th-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n style=\"text-align: center\"\r\n >\r\n {{ actionsHeader() ?? msg.table.actionsHeader }}\r\n </th>\r\n }\r\n </tr>\r\n\r\n <!-- H\u00E0ng header th\u1EE9 2 (opt-in) \u2014 ch\u1EC9 xu\u1EA5t hi\u1EC7n khi c\u00F3 \u00EDt nh\u1EA5t 1 group (headerGroup) -->\r\n @if (hasHeaderGroups()) {\r\n <tr>\r\n @for (col of subHeaderColumns(); track col.field) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"dataHeaderCell\"\r\n [ngTemplateOutletContext]=\"{ col: col, colspan: 1, rowspan: 1 }\"\r\n />\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- Header cell d\u00F9ng chung cho column kh\u00F4ng thu\u1ED9c group V\u00C0 sub-header c\u1EE7a group -->\r\n <ng-template #dataHeaderCell let-col=\"col\" let-colspan=\"colspan\" let-rowspan=\"rowspan\">\r\n <th\r\n [attr.colspan]=\"colspan > 1 ? colspan : null\"\r\n [attr.rowspan]=\"rowspan > 1 ? rowspan : null\"\r\n [pSortableColumn]=\"col.sortable ? col.field : ''\"\r\n [pSortableColumnDisabled]=\"!col.sortable\"\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"col.headerClass ?? ''\"\r\n class=\"asc-th\"\r\n >\r\n <div class=\"asc-th-content\">\r\n <span class=\"asc-th-text\">{{ col.header }}</span>\r\n\r\n @if (col.sortable) {\r\n <p-sortIcon [field]=\"col.field\"/>\r\n }\r\n\r\n @if (col.filterable) {\r\n <p-column-filter\r\n [field]=\"col.field\"\r\n [type]=\"resolveFilterType(col)\"\r\n display=\"menu\"\r\n class=\"asc-col-filter\"\r\n />\r\n }\r\n </div>\r\n </th>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #body let-row let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\r\n <tr\r\n [pSelectableRow]=\"row\"\r\n [pSelectableRowIndex]=\"rowIndex\"\r\n [pSelectableRowDisabled]=\"isRowDisabled(row)\"\r\n [pContextMenuRow]=\"row\"\r\n [class.asc-row-selected]=\"isSelected(row)\"\r\n [class.asc-row-expanded]=\"expanded\"\r\n [class.asc-row-disabled]=\"isRowDisabled(row)\"\r\n (click)=\"rowClicked.emit(row)\"\r\n >\r\n <!-- Expand toggle -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-expand\" (click)=\"$event.stopPropagation()\">\r\n <p-button\r\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [pRowToggler]=\"row\"\r\n />\r\n </td>\r\n }\r\n\r\n <!-- Selection -->\r\n @if (selectionMode() === 'multiple') {\r\n @if (!selectionGroupField()) {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableCheckbox [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n } @else if (getSelectionGroupSpan(rowIndex) > 0) {\r\n <!-- Group selection \u2014 1 checkbox tri-state span theo rowspan c\u1EE7a nh\u00F3m -->\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\"\r\n [attr.rowspan]=\"getSelectionGroupSpan(rowIndex) > 1 ? getSelectionGroupSpan(rowIndex) : null\"\r\n (click)=\"$event.stopPropagation()\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [ngModel]=\"isGroupChecked(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n [indeterminate]=\"isGroupIndeterminate(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n (onChange)=\"toggleGroupSelection(rowIndex, getSelectionGroupSpan(rowIndex))\"\r\n />\r\n </td>\r\n }\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td pFrozenColumn\r\n [frozen]=\"true\" class=\"asc-td-select\" (click)=\"$event.stopPropagation()\">\r\n <p-tableRadioButton [value]=\"row\" [disabled]=\"isRowDisabled(row)\"/>\r\n </td>\r\n }\r\n\r\n <!-- Row number cell -->\r\n @if (showRowNumber()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"left\"\r\n class=\"asc-td asc-td-row-number\"\r\n style=\"text-align: center\"\r\n >{{ rowIndex + 1 }}\r\n </td>\r\n }\r\n\r\n <!-- Data cells -->\r\n @for (col of visibleColumns(); track col.field) {\r\n @if (!col.rowspan || getRowSpan(col, rowIndex) > 0) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"col.frozen ?? false\"\r\n [alignFrozen]=\"col.alignFrozen ?? 'left'\"\r\n [attr.rowspan]=\"col.rowspan && getRowSpan(col, rowIndex) > 1 ? getRowSpan(col, rowIndex) : null\"\r\n [style.width]=\"col.width ?? 'auto'\"\r\n [style.min-width]=\"col.minWidth ?? '0'\"\r\n [style.max-width]=\"col.maxWidth ?? 'none'\"\r\n [style.text-align]=\"col.align ?? resolveDefaultAlign(col)\"\r\n [class]=\"resolveCellClass(col, row)\"\r\n class=\"asc-td\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"getCellTemplate(col) ?? defaultCell\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: getCellValue(row, col.field),\r\n row: row,\r\n index: rowIndex,\r\n column: col\r\n }\"\r\n />\r\n </td>\r\n }\r\n }\r\n\r\n <!-- Actions column -->\r\n @if (hasActionsColumn()) {\r\n <td\r\n pFrozenColumn\r\n [frozen]=\"true\"\r\n alignFrozen=\"right\"\r\n class=\"asc-td asc-td-actions\"\r\n [style.width]=\"actionsDisplay() === 'full' ? (actionsWidth() ?? '8rem') : '4rem'\"\r\n [style.min-width]=\"actionsDisplay() === 'full' ? (actionsMinWidth() ?? '0') : null\"\r\n [style.max-width]=\"actionsDisplay() === 'full' ? (actionsMaxWidth() ?? 'none') : null\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n @if (actionsDisplay() === 'dropdown') {\r\n <p-button\r\n icon=\"pi pi-ellipsis-v\"\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n (onClick)=\"openActionMenu($event, row, rowIndex, actionMenu)\"\r\n />\r\n } @else {\r\n <div class=\"asc-actions-wrap\">\r\n @for (action of getVisibleActions(row); track action.label) {\r\n <p-button\r\n [icon]=\"action.iconSrc ? '' : (action.icon ?? '')\"\r\n [label]=\"action.label ?? ''\"\r\n [severity]=\"action.severity ?? 'secondary'\"\r\n [disabled]=\"action.disabled?.(row) ?? false\"\r\n [pTooltip]=\"action.tooltip ?? ''\"\r\n tooltipPosition=\"top\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (onClick)=\"action.command(row, rowIndex)\"\r\n >\r\n @if (action.iconSrc) {\r\n <ng-template #icon>\r\n <asc-icon [src]=\"action.iconSrc\" />\r\n </ng-template>\r\n }\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Footer (opt-in \u2014 ch\u1EC9 render khi c\u00F3 \u00EDt nh\u1EA5t 1 column khai b\u00E1o `footer`) \u2500\u2500 -->\r\n @if (hasFooter()) {\r\n <ng-template #footer>\r\n <tr>\r\n <!-- C\u00E1c c\u1ED9t ph\u1EE5 (expand/select/STT) \u2014 kh\u00F4ng c\u00F3 n\u1ED9i dung footer -->\r\n @if (expandable()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n @if (showRowNumber()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n\r\n @for (cell of footerCells(); track cell.col.field) {\r\n <td\r\n [attr.colspan]=\"cell.colspan > 1 ? cell.colspan : null\"\r\n [style.text-align]=\"cell.col.align ?? resolveDefaultAlign(cell.col)\"\r\n [class]=\"cell.col.headerClass ?? ''\"\r\n class=\"asc-td-footer\"\r\n >\r\n {{ cell.col.footer }}\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td class=\"asc-td-footer\"></td>\r\n }\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Row expand content \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n @if (expandable() && expandTpl()) {\r\n <ng-template #expandedrow let-row let-rowIndex=\"rowIndex\">\r\n <tr class=\"asc-row-expansion\">\r\n <td [attr.colspan]=\"expandColspan()\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"expandTpl()!['templateRef']\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, index: rowIndex }\"\r\n />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n }\r\n\r\n <!-- \u2500\u2500 Loading skeleton \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #loadingbody>\r\n @for (i of skeletonRows(); track i) {\r\n <tr class=\"asc-row-skeleton\">\r\n @if (expandable()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"2rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'multiple') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (selectionMode() === 'single') {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n @if (showRowNumber()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"1.5rem\"/>\r\n </td>\r\n }\r\n\r\n @for (col of visibleColumns(); track col.field) {\r\n <td>\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n [width]=\"getSkeletonWidth(col)\"\r\n />\r\n </td>\r\n }\r\n\r\n @if (hasActionsColumn()) {\r\n <td>\r\n <p-skeleton height=\"1.5rem\" width=\"5rem\"/>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Empty state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #emptymessage>\r\n <tr>\r\n <td [attr.colspan]=\"emptyColspan()\" class=\"asc-td-empty\">\r\n @if (emptyTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"emptyTpl()!.templateRef\"/>\r\n } @else {\r\n <div class=\"asc-empty-default\">\r\n <i class=\"pi pi-inbox asc-empty-icon\"></i>\r\n <p class=\"asc-empty-text\">{{ emptyMessage() || msg.table.empty }}</p>\r\n </div>\r\n }\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n </p-table>\r\n\r\n <!-- Shared popup menu for dropdown action mode -->\r\n <p-menu #actionMenu [model]=\"dropdownMenuItems()\" [popup]=\"true\" appendTo=\"body\">\r\n <ng-template #item let-item>\r\n <a class=\"p-menu-item-link\" pRipple>\r\n @if (item.iconSrc) {\r\n <asc-icon [src]=\"item.iconSrc\" class=\"p-menu-item-icon\" />\r\n } @else if (item.icon) {\r\n <span class=\"p-menu-item-icon\" [class]=\"item.icon\"></span>\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n </p-menu>\r\n\r\n</div>\r\n\r\n<!-- \u2500\u2500 Default cell template (text) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n<!--\r\n C\u00E1c type renderers \u0111\u01B0\u1EE3c x\u1EED l\u00FD trong @switch b\u00EAn d\u01B0\u1EDBi.\r\n Template n\u00E0y l\u00E0 fallback cho type='text' v\u00E0 m\u1ECDi type kh\u00F4ng nh\u1EADn ra.\r\n-->\r\n<ng-template\r\n #defaultCell\r\n let-value\r\n let-row=\"row\"\r\n let-col=\"column\"\r\n>\r\n @switch (col?.type ?? 'text') {\r\n\r\n @case ('number') {\r\n <span class=\"asc-cell-number\">{{ formatNumber(value, col?.format) }}</span>\r\n }\r\n @case ('currency') {\r\n <span class=\"asc-cell-currency\">{{ formatCurrency(value, col?.format) }}</span>\r\n }\r\n @case ('date') {\r\n <span class=\"asc-cell-date\">{{ formatDate(value, col?.format) }}</span>\r\n }\r\n @case ('datetime') {\r\n <span class=\"asc-cell-datetime\">{{ formatDatetime(value, col?.format) }}</span>\r\n }\r\n @case ('boolean') {\r\n <i\r\n [class]=\"value\r\n ? 'pi pi-check-circle text-green-600'\r\n : 'pi pi-times-circle text-red-400'\"\r\n class=\"asc-cell-boolean\"\r\n [attr.aria-label]=\"value ? 'C\u00F3' : 'Kh\u00F4ng'\"\r\n ></i>\r\n }\r\n @case ('badge') {\r\n @if (resolveBadge(value, col); as badge) {\r\n <p-tag\r\n [value]=\"badge.label\"\r\n [severity]=\"mapSeverityToTag(badge.severity)\"\r\n [icon]=\"badge.icon ?? ''\"\r\n />\r\n } @else {\r\n <span>{{ value ?? '\u2014' }}</span>\r\n }\r\n }\r\n @case ('avatar') {\r\n <div class=\"asc-cell-avatar\">\r\n <p-avatar\r\n [label]=\"getInitials(value)\"\r\n shape=\"circle\"\r\n size=\"normal\"\r\n [style]=\"{ background: getAvatarColor(value), color: '#fff' }\"\r\n />\r\n <span>{{ value }}</span>\r\n </div>\r\n }\r\n @default {\r\n <!-- text + custom (custom handled via getCellTemplate returning non-null) -->\r\n @let textClamped = (col?.type ?? 'text') === 'text' && isLongText(value);\r\n <span\r\n class=\"asc-cell-text\"\r\n [class.asc-cell-text-clamp]=\"textClamped\"\r\n [pTooltip]=\"textClamped ? formatText(value, col?.format) : ''\"\r\n tooltipPosition=\"right\"\r\n >{{ formatText(value, col?.format) }}</span>\r\n }\r\n\r\n }\r\n</ng-template>\r\n", styles: [":host{display:block;width:100%}.asc-table-wrapper{border-radius:var(--asc-radius-lg);background:var(--asc-surface-0)}.asc-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--asc-border-color);gap:.75rem;flex-wrap:wrap;background:var(--asc-surface-0)}.asc-table-toolbar-left,.asc-table-toolbar-right{display:flex;align-items:center;gap:.5rem}.asc-table-search-input{width:18rem;font-size:.875rem}.asc-table-selection-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:color-mix(in srgb,var(--p-primary-500) 10%,transparent);border-bottom:1px solid color-mix(in srgb,var(--p-primary-500) 20%,transparent);font-size:.875rem;color:var(--p-primary-700)}.asc-table-selection-bar-actions{display:flex;align-items:center;gap:.25rem}.asc-table-selection-count{font-weight:500}.asc-column-manager{min-width:14rem;display:flex;flex-direction:column;gap:.5rem}.asc-column-manager-title{font-size:.8125rem;font-weight:600;color:var(--asc-text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .25rem}.asc-column-manager-item{display:flex;align-items:center;gap:.625rem;font-size:.875rem;cursor:pointer;padding:.25rem 0}.asc-column-manager-item label{cursor:pointer}.asc-th{font-size:var(--asc-text-xs);font-weight:400;color:var(--asc-table-header-color);white-space:nowrap;-webkit-user-select:none;user-select:none}.asc-th-content{display:flex;align-items:center;gap:.25rem}.asc-th-text{flex:1}.asc-th-expand,.asc-th-select{padding:.5rem!important;text-align:center}.asc-th-actions{text-align:center!important}.asc-th-group{text-align:center;font-weight:600}.asc-col-filter{margin-left:auto;flex-shrink:0}.asc-td{font-size:12px;color:var(--asc-text-primary)}.asc-td-expand,.asc-td-select{padding:.25rem!important;text-align:center}.asc-td-actions{padding:.25rem .5rem!important;text-align:center}.asc-td-empty{text-align:center;padding:0!important}.asc-td-footer{font-size:.875rem;font-weight:600;color:var(--asc-text-primary);white-space:nowrap}.asc-cell-number,.asc-cell-currency{font-variant-numeric:tabular-nums;font-weight:500}.asc-cell-boolean{font-size:1.125rem}.asc-cell-avatar{display:flex;align-items:center;gap:.5rem;font-weight:500}.asc-cell-text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.asc-actions-wrap{display:flex;align-items:center;justify-content:center;gap:.125rem}.asc-row-expansion>td{padding:0!important;border-top:none!important}.asc-row-skeleton td{border-color:transparent!important}.asc-row-disabled .asc-td-select{opacity:.5}.asc-empty-default{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1rem;gap:.75rem}.asc-empty-icon{font-size:2.5rem;color:var(--asc-text-muted)}.asc-empty-text{font-size:.875rem;color:var(--asc-text-secondary);margin:0}::ng-deep .asc-table-wrapper .p-datatable{border:none}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th{border-top-width:0;border-left-width:1px;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-thead>tr>th:first-child{border-left-width:0}::ng-deep .asc-table-wrapper .p-datatable.p-datatable-gridlines .p-datatable-table-container .p-datatable-table>.p-datatable-tbody>tr>td{border-left-width:0;border-right-width:0}::ng-deep .asc-table-wrapper .p-datatable-thead>tr>th{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-tfoot>tr>td{background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n){background:var(--asc-surface-50)}::ng-deep .asc-table-wrapper .p-paginator{margin-top:22px;padding:unset;justify-content:end}::ng-deep .asc-table-wrapper .p-paginator .p-select-label{padding:unset}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-rpp-dropdown{order:1}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-current{order:2;font-size:12px;color:var(--asc-text-secondary)}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-first{order:3}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-prev{order:4}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-pages{order:5;gap:8px;margin:0 16px}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-next{order:6}::ng-deep .asc-table-wrapper .p-paginator .p-paginator-last{order:7}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown{border:none;background:transparent;box-shadow:none;min-width:auto;width:auto;flex:0 0 auto}::ng-deep .asc-table-wrapper .p-paginator-rpp-dropdown.p-disabled{background:transparent}::ng-deep .asc-table-wrapper .p-paginator-page,::ng-deep .asc-table-wrapper .p-paginator-prev,::ng-deep .asc-table-wrapper .p-paginator-next{border:1px solid var(--asc-border-color);border-radius:8px;background:var(--asc-surface-0);min-width:32px;height:32px;font-size:14px}::ng-deep .asc-table-wrapper .p-paginator-page.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-prev.p-paginator-page-selected,::ng-deep .asc-table-wrapper .p-paginator-next.p-paginator-page-selected{background:var(--p-primary-500);border-color:var(--p-primary-500);color:#fff}::ng-deep .asc-table-wrapper .p-datatable-frozen-column{background:var(--asc-surface-0);box-shadow:2px 0 6px -2px #0000001f}::ng-deep .asc-table-wrapper .p-datatable-striped .p-datatable-tbody>tr:nth-child(2n) .p-datatable-frozen-column{background:var(--asc-surface-50)}\n"] }]
|
|
6637
6677
|
}], propDecorators: { cellTpls: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AscTableCellDirective), { isSignal: true }] }], expandTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscTableExpandDirective), { isSignal: true }] }], emptyTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscTableEmptyDirective), { isSignal: true }] }], captionTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscTableCaptionDirective), { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], actionsDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsDisplay", required: false }] }], contextMenuActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuActions", required: false }] }], selectionActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionActions", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], sortMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortMode", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], rowDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowDisabled", required: false }] }], selectionGroupField: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionGroupField", required: false }] }], checkedField: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedField", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], showGridlines: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGridlines", required: false }] }], stripedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "stripedRows", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], showToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToolbar", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], showColumnManager: [{ type: i0.Input, args: [{ isSignal: true, alias: "showColumnManager", required: false }] }], exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], skeletonRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonRows", required: false }] }], showRowNumber: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRowNumber", required: false }] }], rowNumberHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowNumberHeader", required: false }] }], actionsHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsHeader", required: false }] }], actionsWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsWidth", required: false }] }], actionsMinWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsMinWidth", required: false }] }], actionsMaxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsMaxWidth", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], rowSelected: [{ type: i0.Output, args: ["rowSelected"] }], rowUnselected: [{ type: i0.Output, args: ["rowUnselected"] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], rowExpanded: [{ type: i0.Output, args: ["rowExpanded"] }], rowCollapsed: [{ type: i0.Output, args: ["rowCollapsed"] }], groupCheckedChange: [{ type: i0.Output, args: ["groupCheckedChange"] }] } });
|
|
6638
6678
|
|
|
6639
6679
|
// ─────────────────────────────────────────────────────────────────────────────
|