@aseansc/ui 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/fesm2022/aseansc-ui.mjs +415 -113
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_semantic.scss +24 -2
- package/tokens/preset.css +17 -1
- package/types/aseansc-ui.d.ts +52 -4
package/fesm2022/aseansc-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, signal, computed, effect, Injectable, makeEnvironmentProviders, PLATFORM_ID, DestroyRef, input, Directive, Pipe, output, forwardRef, ChangeDetectionStrategy, Component, ChangeDetectorRef, ContentChild, viewChild, contentChild, TemplateRef, contentChildren, model, HostBinding, Input, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, signal, computed, effect, Injectable, makeEnvironmentProviders, PLATFORM_ID, DestroyRef, input, Directive, Pipe, output, forwardRef, ChangeDetectionStrategy, Component, ChangeDetectorRef, ContentChild, viewChild, contentChild, TemplateRef, contentChildren, model, viewChildren, untracked, HostBinding, Input, ElementRef, Renderer2 } from '@angular/core';
|
|
3
3
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
4
4
|
import { PrimeNG, providePrimeNG } from 'primeng/config';
|
|
5
5
|
import Aura from '@primeuix/themes/aura';
|
|
@@ -424,9 +424,10 @@ const ASC_PRESET = definePreset(Aura, {
|
|
|
424
424
|
},
|
|
425
425
|
formField: {
|
|
426
426
|
background: 'var(--asc-formfield-bg, #F2F3F5)',
|
|
427
|
-
|
|
427
|
+
disabledBackground: 'var(--asc-formfield-disabled-bg, #F2F3F5)', // Aura mặc định {surface.200} = #c0c0c2 — quá đậm
|
|
428
|
+
borderColor: 'var(--asc-formfield-border-color, #DEDFE0)', // input/border/default
|
|
428
429
|
hoverBorderColor: '{surface.400}',
|
|
429
|
-
focusBorderColor: '
|
|
430
|
+
focusBorderColor: 'var(--asc-formfield-focus-border-color, #A7A7A8)', // input/border/focus (trước: blue.500)
|
|
430
431
|
invalidBorderColor: '{red.500}', // Text/Border/Icon.danger = #ef4444 = red.500
|
|
431
432
|
color: '{grey.900}', // Text Input filled text = Text.primary
|
|
432
433
|
placeholderColor: 'var(--asc-formfield-placeholder-color, #5B5B5C)',
|
|
@@ -435,7 +436,7 @@ const ASC_PRESET = definePreset(Aura, {
|
|
|
435
436
|
floatLabelFocusColor: '{blue.600}',
|
|
436
437
|
floatLabelActiveColor: '{surface.500}',
|
|
437
438
|
floatLabelInvalidColor: '{red.500}',
|
|
438
|
-
iconColor: '
|
|
439
|
+
iconColor: 'var(--asc-icon-primary, #0F0F0F)', // Figma Input: icon primary (trước: surface.400)
|
|
439
440
|
shadow: 'none',
|
|
440
441
|
},
|
|
441
442
|
},
|
|
@@ -1653,7 +1654,7 @@ class AscAutoCompleteComponent extends BaseControlAccessor {
|
|
|
1653
1654
|
(completeMethod)="completeMethod.emit($event.query)"
|
|
1654
1655
|
(onBlur)="markTouched()"
|
|
1655
1656
|
/>
|
|
1656
|
-
`, isInline: true, styles: [":host{display:block}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100
|
|
1657
|
+
`, isInline: true, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100%;font-size:14px;font-weight:400;line-height:20px}:host ::ng-deep input.p-autocomplete-input{height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-input-multiple{min-height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-autocomplete-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-autocomplete-input:disabled,:host ::ng-deep .p-autocomplete.p-disabled .p-autocomplete-input-multiple{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1657
1658
|
}
|
|
1658
1659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscAutoCompleteComponent, decorators: [{
|
|
1659
1660
|
type: Component,
|
|
@@ -1681,7 +1682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1681
1682
|
(completeMethod)="completeMethod.emit($event.query)"
|
|
1682
1683
|
(onBlur)="markTouched()"
|
|
1683
1684
|
/>
|
|
1684
|
-
`, styles: [":host{display:block}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100
|
|
1685
|
+
`, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-autocomplete{width:100%}:host ::ng-deep .p-autocomplete-input{width:100%;font-size:14px;font-weight:400;line-height:20px}:host ::ng-deep input.p-autocomplete-input{height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-input-multiple{min-height:var(--asc-h-md)}:host ::ng-deep .p-autocomplete-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-autocomplete-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-autocomplete-input:disabled,:host ::ng-deep .p-autocomplete.p-disabled .p-autocomplete-input-multiple{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\n"] }]
|
|
1685
1686
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], forceSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceSelection", required: false }] }], dropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdown", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }] } });
|
|
1686
1687
|
|
|
1687
1688
|
/**
|
|
@@ -1750,7 +1751,7 @@ class AscInputMaskComponent extends BaseControlAccessor {
|
|
|
1750
1751
|
(onComplete)="complete.emit()"
|
|
1751
1752
|
(onBlur)="markTouched()"
|
|
1752
1753
|
/>
|
|
1753
|
-
`, isInline: true, styles: [":host{display:block}:host ::ng-deep .p-inputmask{width:100
|
|
1754
|
+
`, isInline: true, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-inputmask{width:100%;height:var(--asc-h-md);font-size:14px;font-weight:400;line-height:20px;border-radius:12px}:host ::ng-deep p-inputmask:has(.p-inputmask-clear-icon) .p-inputmask{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputmask-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputmask-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-inputmask:disabled{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputMask, selector: "p-inputmask, p-inputMask, p-input-mask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "readonly", "unmask", "characterPattern", "autofocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1754
1755
|
}
|
|
1755
1756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputMaskComponent, decorators: [{
|
|
1756
1757
|
type: Component,
|
|
@@ -1774,7 +1775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1774
1775
|
(onComplete)="complete.emit()"
|
|
1775
1776
|
(onBlur)="markTouched()"
|
|
1776
1777
|
/>
|
|
1777
|
-
`, styles: [":host{display:block}:host ::ng-deep .p-inputmask{width:100
|
|
1778
|
+
`, styles: [":host{display:block;--p-icon-size: 20px}:host ::ng-deep .p-inputmask{width:100%;height:var(--asc-h-md);font-size:14px;font-weight:400;line-height:20px;border-radius:12px}:host ::ng-deep p-inputmask:has(.p-inputmask-clear-icon) .p-inputmask{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputmask-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputmask-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host ::ng-deep .p-inputmask:disabled{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}\n"] }]
|
|
1778
1779
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], slotChar: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotChar", required: false }] }], autoClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], unmask: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmask", required: false }] }], complete: [{ type: i0.Output, args: ["complete"] }] } });
|
|
1779
1780
|
|
|
1780
1781
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -1932,7 +1933,7 @@ class AscButtonComponent {
|
|
|
1932
1933
|
<!-- Slot cho custom content (icon-only, badge...) -->
|
|
1933
1934
|
<ng-content></ng-content>
|
|
1934
1935
|
</p-button>
|
|
1935
|
-
`, isInline: true, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host ::ng-deep .p-button.
|
|
1936
|
+
`, isInline: true, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host ::ng-deep .p-button,:host ::ng-deep .p-button .p-button-label{font-weight:400}:host ::ng-deep .p-button:disabled:not(.p-button-loading){opacity:var(--asc-button-disabled-opacity, .35)}:host(.asc-button--filled.asc-button--primary) ::ng-deep .p-button{color:var(--asc-button-solid-text, #FCFCFC)}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button{background:transparent;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):hover,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):active,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}:host ::ng-deep .p-button .p-button-icon{line-height:1}:host(.asc-button--xs) ::ng-deep .p-button{min-width:56px;height:var(--asc-h-xs);padding:4px 12px;font-size:12px;line-height:16px}:host(.asc-button--xs) ::ng-deep .p-button .p-button-icon{font-size:12px}:host(.asc-button--sm) ::ng-deep .p-button{min-width:64px;height:var(--asc-h-sm);padding:6px 16px;font-size:12px;line-height:16px}:host(.asc-button--sm) ::ng-deep .p-button .p-button-icon{font-size:16px}:host(.asc-button--md) ::ng-deep .p-button{min-width:80px;height:var(--asc-h-md);padding:8px 16px;font-size:14px;line-height:20px}:host(.asc-button--md) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--lg) ::ng-deep .p-button{min-width:96px;height:var(--asc-h-lg);padding:10px 24px;font-size:16px;line-height:24px}:host(.asc-button--lg) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--xl) ::ng-deep .p-button{min-width:112px;height:var(--asc-h-xl);padding:12px 32px;font-size:18px;line-height:28px}:host(.asc-button--xl) ::ng-deep .p-button .p-button-icon{font-size:24px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1936
1937
|
}
|
|
1937
1938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscButtonComponent, decorators: [{
|
|
1938
1939
|
type: Component,
|
|
@@ -1965,7 +1966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1965
1966
|
<!-- Slot cho custom content (icon-only, badge...) -->
|
|
1966
1967
|
<ng-content></ng-content>
|
|
1967
1968
|
</p-button>
|
|
1968
|
-
`, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host ::ng-deep .p-button.
|
|
1969
|
+
`, styles: [":host{display:inline-flex;vertical-align:middle}:host(.w-full){width:100%}:host(.w-full) ::ng-deep p-button{display:flex;width:100%}:host(.w-full) ::ng-deep .p-button{width:100%;justify-content:center}:host ::ng-deep .p-button{border-radius:999px}:host ::ng-deep .p-button,:host ::ng-deep .p-button .p-button-label{font-weight:400}:host ::ng-deep .p-button:disabled:not(.p-button-loading){opacity:var(--asc-button-disabled-opacity, .35)}:host(.asc-button--filled.asc-button--primary) ::ng-deep .p-button{color:var(--asc-button-solid-text, #FCFCFC)}:host(.asc-button--outlined) ::ng-deep .p-button{border-width:1.5px}:host ::ng-deep .p-button.p-button-secondary{color:#262626}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button{background:transparent;border-color:var(--asc-button-outline-border, #525252);color:var(--asc-button-outline-text, #262626)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):hover,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):hover{background:var(--asc-button-outline-bg-hover, #F2F3F5)}:host(.asc-button--outlined.asc-button--primary) ::ng-deep .p-button:not(:disabled):active,:host(.asc-button--outlined.asc-button--secondary) ::ng-deep .p-button:not(:disabled):active{background:var(--asc-button-outline-bg-active, #DEDFE0)}:host ::ng-deep .p-button .p-button-icon{line-height:1}:host(.asc-button--xs) ::ng-deep .p-button{min-width:56px;height:var(--asc-h-xs);padding:4px 12px;font-size:12px;line-height:16px}:host(.asc-button--xs) ::ng-deep .p-button .p-button-icon{font-size:12px}:host(.asc-button--sm) ::ng-deep .p-button{min-width:64px;height:var(--asc-h-sm);padding:6px 16px;font-size:12px;line-height:16px}:host(.asc-button--sm) ::ng-deep .p-button .p-button-icon{font-size:16px}:host(.asc-button--md) ::ng-deep .p-button{min-width:80px;height:var(--asc-h-md);padding:8px 16px;font-size:14px;line-height:20px}:host(.asc-button--md) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--lg) ::ng-deep .p-button{min-width:96px;height:var(--asc-h-lg);padding:10px 24px;font-size:16px;line-height:24px}:host(.asc-button--lg) ::ng-deep .p-button .p-button-icon{font-size:20px}:host(.asc-button--xl) ::ng-deep .p-button{min-width:112px;height:var(--asc-h-xl);padding:12px 32px;font-size:18px;line-height:28px}:host(.asc-button--xl) ::ng-deep .p-button .p-button-icon{font-size:24px}\n"] }]
|
|
1969
1970
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPos", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }] } });
|
|
1970
1971
|
|
|
1971
1972
|
/** Map size của control → font-size label — dùng khi consumer không tự override --asc-field-label-font-size */
|
|
@@ -2039,10 +2040,24 @@ class AscFormFieldComponent {
|
|
|
2039
2040
|
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
2040
2041
|
/**
|
|
2041
2042
|
* Width cột label khi `layout="horizontal"` — nhận bất kỳ CSS length nào (`'10rem'`, `'160px'`, `'20%'`).
|
|
2043
|
+
* Không truyền → không gắn inline style, width lấy theo CSS custom property
|
|
2044
|
+
* `--asc-field-label-width` (đặt global hoặc theo vùng), fallback `max-content`.
|
|
2042
2045
|
* Không ảnh hưởng layout `vertical`/`inline`.
|
|
2043
2046
|
*/
|
|
2044
|
-
this.labelWidth = input(
|
|
2045
|
-
...(ngDevMode ? [{ debugName: "labelWidth" }] : /* istanbul ignore next */ []));
|
|
2047
|
+
this.labelWidth = input(/* @ts-ignore */
|
|
2048
|
+
...(ngDevMode ? [undefined, { debugName: "labelWidth" }] : /* istanbul ignore next */ []));
|
|
2049
|
+
/** Icon trước label (class icon, vd `'pi pi-user'`) — chỉ áp dụng typeLabel='default' */
|
|
2050
|
+
this.labelIcon = input('', /* @ts-ignore */
|
|
2051
|
+
...(ngDevMode ? [{ debugName: "labelIcon" }] : /* istanbul ignore next */ []));
|
|
2052
|
+
/** Icon sau label, trước dấu * (vd `'pi pi-info-circle'`) — chỉ áp dụng typeLabel='default' */
|
|
2053
|
+
this.labelSuffixIcon = input('', /* @ts-ignore */
|
|
2054
|
+
...(ngDevMode ? [{ debugName: "labelSuffixIcon" }] : /* istanbul ignore next */ []));
|
|
2055
|
+
/**
|
|
2056
|
+
* Tooltip gắn vào icon sau label. Truyền tooltip mà không truyền `labelSuffixIcon`
|
|
2057
|
+
* → tự hiện icon `pi pi-info-circle`.
|
|
2058
|
+
*/
|
|
2059
|
+
this.labelTooltip = input('', /* @ts-ignore */
|
|
2060
|
+
...(ngDevMode ? [{ debugName: "labelTooltip" }] : /* istanbul ignore next */ []));
|
|
2046
2061
|
/**
|
|
2047
2062
|
* Ẩn label text.
|
|
2048
2063
|
* Dùng khi typeLabel='FloatLabel'/'IftaLabel' và label đã được hiển thị bên trong.
|
|
@@ -2100,6 +2115,14 @@ class AscFormFieldComponent {
|
|
|
2100
2115
|
*/
|
|
2101
2116
|
this.resolvedMode = computed(() => this.mode() === 'view' || this._innerControl?.mode() === 'view' ? 'view' : 'edit', /* @ts-ignore */
|
|
2102
2117
|
...(ngDevMode ? [{ debugName: "resolvedMode" }] : /* istanbul ignore next */ []));
|
|
2118
|
+
this.resolvedLabelSuffixIcon = computed(() => this.labelSuffixIcon() || (this.labelTooltip() ? 'pi pi-info-circle' : ''), /* @ts-ignore */
|
|
2119
|
+
...(ngDevMode ? [{ debugName: "resolvedLabelSuffixIcon" }] : /* istanbul ignore next */ []));
|
|
2120
|
+
/** Dấu * bắt buộc — ẩn ở mode view (chỉ đọc, không cần nhập) */
|
|
2121
|
+
this.showRequiredMark = computed(() => this.isRequired() && this.resolvedMode() !== 'view', /* @ts-ignore */
|
|
2122
|
+
...(ngDevMode ? [{ debugName: "showRequiredMark" }] : /* istanbul ignore next */ []));
|
|
2123
|
+
/** Chữ "(tùy chọn)" — ẩn ở mode view */
|
|
2124
|
+
this.showOptionalMark = computed(() => this.optional() && this.resolvedMode() !== 'view', /* @ts-ignore */
|
|
2125
|
+
...(ngDevMode ? [{ debugName: "showOptionalMark" }] : /* istanbul ignore next */ []));
|
|
2103
2126
|
/** true nếu control bên trong đang disabled — form-field tự đọc qua ContentChild, không cần set thủ công */
|
|
2104
2127
|
this.resolvedDisabled = computed(() => this._innerControl?.controlDisabled ?? false, /* @ts-ignore */
|
|
2105
2128
|
...(ngDevMode ? [{ debugName: "resolvedDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -2131,7 +2154,7 @@ class AscFormFieldComponent {
|
|
|
2131
2154
|
this.controlErrors.set(invalid ? ctrl.errors : null);
|
|
2132
2155
|
}
|
|
2133
2156
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2134
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscFormFieldComponent, isStandalone: true, selector: "asc-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "forId", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostCls()", "attr.role": "\"group\"", "style.--asc-field-label-font-size-auto": "labelFontSizeAuto()", "style.--asc-field-label-width": "labelWidth()" } }, queries: [{ propertyName: "_innerControl", first: true, predicate: ASC_BASE_CONTROL, descendants: true }], ngImport: i0, template: `
|
|
2157
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscFormFieldComponent, isStandalone: true, selector: "asc-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelIcon: { classPropertyName: "labelIcon", publicName: "labelIcon", isSignal: true, isRequired: false, transformFunction: null }, labelSuffixIcon: { classPropertyName: "labelSuffixIcon", publicName: "labelSuffixIcon", isSignal: true, isRequired: false, transformFunction: null }, labelTooltip: { classPropertyName: "labelTooltip", publicName: "labelTooltip", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "forId", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostCls()", "attr.role": "\"group\"", "style.--asc-field-label-font-size-auto": "labelFontSizeAuto()", "style.--asc-field-label-width": "labelWidth() ?? null" } }, queries: [{ propertyName: "_innerControl", first: true, predicate: ASC_BASE_CONTROL, descendants: true }], ngImport: i0, template: `
|
|
2135
2158
|
<!--
|
|
2136
2159
|
#labelType là template ref chứa ng-content.
|
|
2137
2160
|
Được reuse bên trong cả 3 nhánh @switch để tránh duplicate.
|
|
@@ -2148,7 +2171,7 @@ class AscFormFieldComponent {
|
|
|
2148
2171
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2149
2172
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2150
2173
|
{{ label() }}
|
|
2151
|
-
@if (
|
|
2174
|
+
@if (showRequiredMark()) {
|
|
2152
2175
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2153
2176
|
}
|
|
2154
2177
|
</label>
|
|
@@ -2161,7 +2184,7 @@ class AscFormFieldComponent {
|
|
|
2161
2184
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2162
2185
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2163
2186
|
{{ label() }}
|
|
2164
|
-
@if (
|
|
2187
|
+
@if (showRequiredMark()) {
|
|
2165
2188
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2166
2189
|
}
|
|
2167
2190
|
</label>
|
|
@@ -2173,11 +2196,25 @@ class AscFormFieldComponent {
|
|
|
2173
2196
|
<div class="asc-field-top">
|
|
2174
2197
|
@if (label() && !hideLabel()) {
|
|
2175
2198
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2199
|
+
@if (labelIcon()) {
|
|
2200
|
+
<i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
|
|
2201
|
+
}
|
|
2176
2202
|
{{ label() }}
|
|
2177
|
-
@if (
|
|
2203
|
+
@if (resolvedLabelSuffixIcon()) {
|
|
2204
|
+
<i
|
|
2205
|
+
[class]="resolvedLabelSuffixIcon()"
|
|
2206
|
+
class="asc-field-label-icon"
|
|
2207
|
+
[pTooltip]="labelTooltip()"
|
|
2208
|
+
[tooltipDisabled]="!labelTooltip()"
|
|
2209
|
+
[attr.tabindex]="labelTooltip() ? 0 : null"
|
|
2210
|
+
[attr.aria-label]="labelTooltip() || null"
|
|
2211
|
+
[attr.aria-hidden]="labelTooltip() ? null : 'true'"
|
|
2212
|
+
></i>
|
|
2213
|
+
}
|
|
2214
|
+
@if (showRequiredMark()) {
|
|
2178
2215
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2179
2216
|
}
|
|
2180
|
-
@if (
|
|
2217
|
+
@if (showOptionalMark()) {
|
|
2181
2218
|
<span class="asc-field-optional-mark">({{ optionalText }})</span>
|
|
2182
2219
|
}
|
|
2183
2220
|
</label>
|
|
@@ -2210,7 +2247,7 @@ class AscFormFieldComponent {
|
|
|
2210
2247
|
}
|
|
2211
2248
|
</div>
|
|
2212
2249
|
}
|
|
2213
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width,
|
|
2250
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #747475)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 14px);font-weight:400;line-height:var(--asc-field-hint-line-height, 20px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:14px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 14px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 20px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2$1.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: AscMessageErrorPipe, name: "ascMessageError" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2214
2251
|
}
|
|
2215
2252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscFormFieldComponent, decorators: [{
|
|
2216
2253
|
type: Component,
|
|
@@ -2219,12 +2256,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2219
2256
|
KeyValuePipe,
|
|
2220
2257
|
FloatLabelModule,
|
|
2221
2258
|
IftaLabelModule,
|
|
2259
|
+
TooltipModule,
|
|
2222
2260
|
AscMessageErrorPipe,
|
|
2223
2261
|
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2224
2262
|
'[class]': 'hostCls()',
|
|
2225
2263
|
'[attr.role]': '"group"',
|
|
2226
2264
|
'[style.--asc-field-label-font-size-auto]': 'labelFontSizeAuto()',
|
|
2227
|
-
|
|
2265
|
+
// Chỉ gắn inline style khi consumer truyền labelWidth — không truyền thì để biến CSS
|
|
2266
|
+
// --asc-field-label-width (đặt global/theo vùng) có hiệu lực. Angular bỏ style khi null.
|
|
2267
|
+
'[style.--asc-field-label-width]': 'labelWidth() ?? null',
|
|
2228
2268
|
}, template: `
|
|
2229
2269
|
<!--
|
|
2230
2270
|
#labelType là template ref chứa ng-content.
|
|
@@ -2242,7 +2282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2242
2282
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2243
2283
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2244
2284
|
{{ label() }}
|
|
2245
|
-
@if (
|
|
2285
|
+
@if (showRequiredMark()) {
|
|
2246
2286
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2247
2287
|
}
|
|
2248
2288
|
</label>
|
|
@@ -2255,7 +2295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2255
2295
|
<ng-container *ngTemplateOutlet="labelType" />
|
|
2256
2296
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2257
2297
|
{{ label() }}
|
|
2258
|
-
@if (
|
|
2298
|
+
@if (showRequiredMark()) {
|
|
2259
2299
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2260
2300
|
}
|
|
2261
2301
|
</label>
|
|
@@ -2267,11 +2307,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2267
2307
|
<div class="asc-field-top">
|
|
2268
2308
|
@if (label() && !hideLabel()) {
|
|
2269
2309
|
<label [for]="resolvedInputId()" class="asc-field-label">
|
|
2310
|
+
@if (labelIcon()) {
|
|
2311
|
+
<i [class]="labelIcon()" class="asc-field-label-icon" aria-hidden="true"></i>
|
|
2312
|
+
}
|
|
2270
2313
|
{{ label() }}
|
|
2271
|
-
@if (
|
|
2314
|
+
@if (resolvedLabelSuffixIcon()) {
|
|
2315
|
+
<i
|
|
2316
|
+
[class]="resolvedLabelSuffixIcon()"
|
|
2317
|
+
class="asc-field-label-icon"
|
|
2318
|
+
[pTooltip]="labelTooltip()"
|
|
2319
|
+
[tooltipDisabled]="!labelTooltip()"
|
|
2320
|
+
[attr.tabindex]="labelTooltip() ? 0 : null"
|
|
2321
|
+
[attr.aria-label]="labelTooltip() || null"
|
|
2322
|
+
[attr.aria-hidden]="labelTooltip() ? null : 'true'"
|
|
2323
|
+
></i>
|
|
2324
|
+
}
|
|
2325
|
+
@if (showRequiredMark()) {
|
|
2272
2326
|
<span class="asc-field-required-mark" aria-hidden="true">*</span>
|
|
2273
2327
|
}
|
|
2274
|
-
@if (
|
|
2328
|
+
@if (showOptionalMark()) {
|
|
2275
2329
|
<span class="asc-field-optional-mark">({{ optionalText }})</span>
|
|
2276
2330
|
}
|
|
2277
2331
|
</label>
|
|
@@ -2304,11 +2358,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2304
2358
|
}
|
|
2305
2359
|
</div>
|
|
2306
2360
|
}
|
|
2307
|
-
`, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width,
|
|
2361
|
+
`, styles: [":host{display:flex;flex-direction:column;width:100%}:host.asc-form-field--vertical{row-gap:4px}:host.asc-form-field--horizontal{column-gap:4px}:host(.asc-form-field--horizontal){display:grid;grid-template-columns:var(--asc-field-label-width, max-content) 1fr;grid-template-rows:auto auto;align-items:start}:host(.asc-form-field--horizontal) .asc-field-footer{grid-column:2}:host(.asc-form-field--horizontal).asc-form-field--view{align-items:center}:host(.asc-form-field--horizontal.asc-form-field--view){column-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--vertical.asc-form-field--view){row-gap:var(--asc-field-view-gap, 16px)}:host(.asc-form-field--inline){flex-direction:row;align-items:center;gap:.625rem;width:auto}.asc-field-top{display:flex;align-items:center;gap:.25rem}.asc-field-label{font-size:var(--asc-field-label-font-size, var(--asc-field-label-font-size-auto, 14px));font-weight:var(--asc-field-label-font-weight, 400);color:var(--asc-field-label-color, var(--asc-text-secondary, #5B5B5C));display:inline-flex;align-items:center;gap:.25rem;line-height:var(--asc-field-label-line-height, 20px)}.asc-field-label-icon{font-size:var(--asc-field-label-icon-size, 20px);width:var(--asc-field-label-icon-size, 20px);height:var(--asc-field-label-icon-size, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--asc-icon-primary, #0F0F0F)}.asc-field-label-icon[tabindex]{cursor:help;border-radius:50%}.asc-field-label-icon[tabindex]:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-form-field--view) .asc-field-label{color:var(--asc-field-label-view-color, #747475)}:host(.asc-form-field--disabled) .asc-field-label{color:var(--asc-text-disabled)}.asc-field-required-mark{color:var(--p-red-500, #ef4444);font-weight:600}.asc-field-optional-mark{font-size:.75rem;font-weight:400;color:var(--asc-text-muted)}.asc-field-error{display:flex;align-items:center;gap:.25rem;color:var(--asc-text-invalid, #EF4444);font-size:var(--asc-field-hint-font-size, 14px);font-weight:400;line-height:var(--asc-field-hint-line-height, 20px);animation:ascFieldErrorIn .15s ease-out both}.asc-field-error-icon{font-size:14px;flex-shrink:0}@keyframes ascFieldErrorIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.asc-field-hint{font-size:var(--asc-field-hint-font-size, 14px);font-weight:400;color:var(--asc-field-hint-color, var(--asc-text-secondary, #5B5B5C));line-height:var(--asc-field-hint-line-height, 20px)}::ng-deep p-floatlabel,::ng-deep p-iftalabel,::ng-deep .p-floatlabel,::ng-deep .p-iftalabel{width:100%}\n"] }]
|
|
2308
2362
|
}], propDecorators: { _innerControl: [{
|
|
2309
2363
|
type: ContentChild,
|
|
2310
2364
|
args: [ASC_BASE_CONTROL, { static: false }]
|
|
2311
|
-
}], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], typeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], labelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelWidth", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], forId: [{ type: i0.Input, args: [{ isSignal: true, alias: "forId", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }] } });
|
|
2365
|
+
}], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], typeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], labelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelWidth", required: false }] }], labelIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelIcon", required: false }] }], labelSuffixIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelSuffixIcon", required: false }] }], labelTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelTooltip", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], forId: [{ type: i0.Input, args: [{ isSignal: true, alias: "forId", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }] } });
|
|
2312
2366
|
|
|
2313
2367
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
2314
2368
|
// AscInputComponent
|
|
@@ -2413,7 +2467,7 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2413
2467
|
...(ngDevMode ? [{ debugName: "isAtLimit" }] : /* istanbul ignore next */ []));
|
|
2414
2468
|
this.inputCls = computed(() => ascCls(this.isInvalidState() && 'ng-invalid ng-dirty'), /* @ts-ignore */
|
|
2415
2469
|
...(ngDevMode ? [{ debugName: "inputCls" }] : /* istanbul ignore next */ []));
|
|
2416
|
-
this.hostCls = computed(() => ascCls('asc-input', `asc-input--${this.resolvedSize()}`, this.isInvalidState() && 'asc-input--invalid', this.effectiveDisabled() && 'asc-input--disabled', this.readonly() && 'asc-input--readonly', this.resolvedFloatLabel() && 'asc-input--float', !!this.label() && 'asc-input--labeled', this.mode() === 'view' && 'asc-input--view', !!this.icon() && this.iconPos() === 'left' && 'asc-input--icon-left', (this.showClearBtn() || (!!this.icon() && this.iconPos() === 'right')) && 'asc-input--icon-right', this.styleClass()), /* @ts-ignore */
|
|
2470
|
+
this.hostCls = computed(() => ascCls('asc-input', `asc-input--${this.resolvedSize()}`, this.isInvalidState() && 'asc-input--invalid', this.effectiveDisabled() && 'asc-input--disabled', this.readonly() && 'asc-input--readonly', this.resolvedFloatLabel() && 'asc-input--float', !!this.label() && 'asc-input--labeled', this.mode() === 'view' && 'asc-input--view', !!this.icon() && this.iconPos() === 'left' && 'asc-input--icon-left', (this.showClearBtn() || (!!this.icon() && this.iconPos() === 'right')) && 'asc-input--icon-right', this.showClearBtn() && !!this.icon() && this.iconPos() === 'right' && 'asc-input--clear-with-icon', this.styleClass()), /* @ts-ignore */
|
|
2417
2471
|
...(ngDevMode ? [{ debugName: "hostCls" }] : /* istanbul ignore next */ []));
|
|
2418
2472
|
}
|
|
2419
2473
|
get msg() { return this.localeService.messages(); }
|
|
@@ -2495,7 +2549,8 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2495
2549
|
(keydown.enter)="clearValue()"
|
|
2496
2550
|
(keydown.space)="clearValue()"
|
|
2497
2551
|
/>
|
|
2498
|
-
}
|
|
2552
|
+
}
|
|
2553
|
+
@if (icon() && iconPos() === 'right') {
|
|
2499
2554
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2500
2555
|
}
|
|
2501
2556
|
</p-iconfield>
|
|
@@ -2548,7 +2603,8 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2548
2603
|
(keydown.enter)="clearValue()"
|
|
2549
2604
|
(keydown.space)="clearValue()"
|
|
2550
2605
|
/>
|
|
2551
|
-
}
|
|
2606
|
+
}
|
|
2607
|
+
@if (icon() && iconPos() === 'right') {
|
|
2552
2608
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2553
2609
|
}
|
|
2554
2610
|
</p-iconfield>
|
|
@@ -2565,7 +2621,7 @@ class AscInputComponent extends BaseControlAccessor {
|
|
|
2565
2621
|
</div>
|
|
2566
2622
|
}
|
|
2567
2623
|
}
|
|
2568
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100
|
|
2624
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100%;--asc-input-icon-size: 20px;--asc-input-icon-inset: 12px;--asc-input-icon-gap: 8px}:host(.asc-input--xs){--asc-input-icon-size: 14px}:host(.asc-input--xl){--asc-input-icon-size: 24px}.p-inputicon{font-size:var(--asc-input-icon-size);width:var(--asc-input-icon-size);height:var(--asc-input-icon-size);margin-top:calc(var(--asc-input-icon-size) / -2);display:inline-flex;align-items:center;justify-content:center;color:var(--asc-input-icon-color, var(--asc-icon-primary, #0F0F0F))}:host(.asc-input--disabled) .p-inputicon{color:var(--asc-icon-disabled)}::ng-deep p-iconfield,::ng-deep .p-iconfield{width:100%}::ng-deep p-floatlabel,::ng-deep .p-floatlabel{width:100%}::ng-deep .p-inputtext{width:100%;padding:10px 8px;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-input-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-xs);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input--sm:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-sm);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input--md:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-md);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:14px;font-weight:400}:host(.asc-input--lg:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-lg);padding-inline-start:var(--asc-input-pad-start, 10px);padding-inline-end:var(--asc-input-pad-end, 10px);border-radius:12px;font-size:16px;font-weight:400}:host(.asc-input--xl:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-xl);padding-inline-start:var(--asc-input-pad-start, 12px);padding-inline-end:var(--asc-input-pad-end, 12px);border-radius:12px;font-size:18px;font-weight:400}:host(.asc-input--xs) ::ng-deep .p-inputtext{line-height:16px}:host(.asc-input--sm) ::ng-deep .p-inputtext{line-height:18px}:host(.asc-input--md) ::ng-deep .p-inputtext{line-height:20px}:host(.asc-input--lg) ::ng-deep .p-inputtext{line-height:24px}:host(.asc-input--xl) ::ng-deep .p-inputtext{line-height:28px}:host(.asc-input--icon-left){--asc-input-pad-start: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--icon-right){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--clear-with-icon){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + 2 * (var(--asc-input-icon-size) + var(--asc-input-icon-gap)))}:host(.asc-input--float.asc-input--icon-left) ::ng-deep .p-inputtext{padding-inline-start:var(--asc-input-pad-start)}:host(.asc-input--float.asc-input--icon-right) ::ng-deep .p-inputtext{padding-inline-end:var(--asc-input-pad-end)}:host(.asc-input--disabled) ::ng-deep .p-inputtext{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input--invalid) ::ng-deep .p-inputtext{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input--invalid) ::ng-deep .p-inputtext:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.p-inputicon.asc-input-clear-btn{cursor:pointer;font-size:calc(var(--asc-input-icon-size) / 2);color:var(--asc-input-clear-color, #FFFFFF);background:var(--asc-input-clear-bg, #DEDFE0);border-radius:50%;transition:background-color var(--asc-transition-fast)}.p-inputicon.asc-input-clear-btn:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}.p-inputicon.asc-input-clear-btn:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-input--clear-with-icon) .p-inputicon.asc-input-clear-btn{inset-inline-end:calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}.asc-input-counter{font-size:.6875rem;color:var(--asc-text-muted);text-align:right;transition:color var(--asc-transition-fast)}.asc-input-counter.asc-input-counter--near-limit{color:var(--asc-color-warning)}.asc-input-counter.asc-input-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2569
2625
|
}
|
|
2570
2626
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputComponent, decorators: [{
|
|
2571
2627
|
type: Component,
|
|
@@ -2611,7 +2667,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2611
2667
|
(keydown.enter)="clearValue()"
|
|
2612
2668
|
(keydown.space)="clearValue()"
|
|
2613
2669
|
/>
|
|
2614
|
-
}
|
|
2670
|
+
}
|
|
2671
|
+
@if (icon() && iconPos() === 'right') {
|
|
2615
2672
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2616
2673
|
}
|
|
2617
2674
|
</p-iconfield>
|
|
@@ -2664,7 +2721,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2664
2721
|
(keydown.enter)="clearValue()"
|
|
2665
2722
|
(keydown.space)="clearValue()"
|
|
2666
2723
|
/>
|
|
2667
|
-
}
|
|
2724
|
+
}
|
|
2725
|
+
@if (icon() && iconPos() === 'right') {
|
|
2668
2726
|
<p-inputicon [class]="icon()" aria-hidden="true" />
|
|
2669
2727
|
}
|
|
2670
2728
|
</p-iconfield>
|
|
@@ -2681,7 +2739,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
2681
2739
|
</div>
|
|
2682
2740
|
}
|
|
2683
2741
|
}
|
|
2684
|
-
`, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100
|
|
2742
|
+
`, styles: [":host{display:flex;flex-direction:column;gap:.25rem;width:100%;--asc-input-icon-size: 20px;--asc-input-icon-inset: 12px;--asc-input-icon-gap: 8px}:host(.asc-input--xs){--asc-input-icon-size: 14px}:host(.asc-input--xl){--asc-input-icon-size: 24px}.p-inputicon{font-size:var(--asc-input-icon-size);width:var(--asc-input-icon-size);height:var(--asc-input-icon-size);margin-top:calc(var(--asc-input-icon-size) / -2);display:inline-flex;align-items:center;justify-content:center;color:var(--asc-input-icon-color, var(--asc-icon-primary, #0F0F0F))}:host(.asc-input--disabled) .p-inputicon{color:var(--asc-icon-disabled)}::ng-deep p-iconfield,::ng-deep .p-iconfield{width:100%}::ng-deep p-floatlabel,::ng-deep .p-floatlabel{width:100%}::ng-deep .p-inputtext{width:100%;padding:10px 8px;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-input-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host(.asc-input--xs:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-xs);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input--sm:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-sm);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input--md:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-md);padding-inline-start:var(--asc-input-pad-start, 8px);padding-inline-end:var(--asc-input-pad-end, 8px);border-radius:12px;font-size:14px;font-weight:400}:host(.asc-input--lg:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-lg);padding-inline-start:var(--asc-input-pad-start, 10px);padding-inline-end:var(--asc-input-pad-end, 10px);border-radius:12px;font-size:16px;font-weight:400}:host(.asc-input--xl:not(.asc-input--float)) ::ng-deep .p-inputtext{height:var(--asc-h-xl);padding-inline-start:var(--asc-input-pad-start, 12px);padding-inline-end:var(--asc-input-pad-end, 12px);border-radius:12px;font-size:18px;font-weight:400}:host(.asc-input--xs) ::ng-deep .p-inputtext{line-height:16px}:host(.asc-input--sm) ::ng-deep .p-inputtext{line-height:18px}:host(.asc-input--md) ::ng-deep .p-inputtext{line-height:20px}:host(.asc-input--lg) ::ng-deep .p-inputtext{line-height:24px}:host(.asc-input--xl) ::ng-deep .p-inputtext{line-height:28px}:host(.asc-input--icon-left){--asc-input-pad-start: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--icon-right){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}:host(.asc-input--clear-with-icon){--asc-input-pad-end: calc(var(--asc-input-icon-inset) + 2 * (var(--asc-input-icon-size) + var(--asc-input-icon-gap)))}:host(.asc-input--float.asc-input--icon-left) ::ng-deep .p-inputtext{padding-inline-start:var(--asc-input-pad-start)}:host(.asc-input--float.asc-input--icon-right) ::ng-deep .p-inputtext{padding-inline-end:var(--asc-input-pad-end)}:host(.asc-input--disabled) ::ng-deep .p-inputtext{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input--invalid) ::ng-deep .p-inputtext{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input--invalid) ::ng-deep .p-inputtext:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.p-inputicon.asc-input-clear-btn{cursor:pointer;font-size:calc(var(--asc-input-icon-size) / 2);color:var(--asc-input-clear-color, #FFFFFF);background:var(--asc-input-clear-bg, #DEDFE0);border-radius:50%;transition:background-color var(--asc-transition-fast)}.p-inputicon.asc-input-clear-btn:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}.p-inputicon.asc-input-clear-btn:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:1px}:host(.asc-input--clear-with-icon) .p-inputicon.asc-input-clear-btn{inset-inline-end:calc(var(--asc-input-icon-inset) + var(--asc-input-icon-size) + var(--asc-input-icon-gap))}.asc-input-counter{font-size:.6875rem;color:var(--asc-text-muted);text-align:right;transition:color var(--asc-transition-fast)}.asc-input-counter.asc-input-counter--near-limit{color:var(--asc-color-warning)}.asc-input-counter.asc-input-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"] }]
|
|
2685
2743
|
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], enterPressed: [{ type: i0.Output, args: ["enterPressed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
|
|
2686
2744
|
|
|
2687
2745
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3050,7 +3108,7 @@ class AscSelectComponent extends BaseControlAccessor {
|
|
|
3050
3108
|
/>
|
|
3051
3109
|
}
|
|
3052
3110
|
}
|
|
3053
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-select
|
|
3111
|
+
`, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3054
3112
|
}
|
|
3055
3113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
|
|
3056
3114
|
type: Component,
|
|
@@ -3212,7 +3270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3212
3270
|
/>
|
|
3213
3271
|
}
|
|
3214
3272
|
}
|
|
3215
|
-
`, styles: [":host{display:block;width:100%}::ng-deep p-select
|
|
3273
|
+
`, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:16px;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;line-height:18px;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;line-height:20px;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;line-height:24px;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;line-height:28px;display:flex;align-items:center}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
|
|
3216
3274
|
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], grouped: [{ type: i0.Input, args: [{ isSignal: true, alias: "grouped", required: false }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], panelShow: [{ type: i0.Output, args: ["panelShow"] }], panelHide: [{ type: i0.Output, args: ["panelHide"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }] } });
|
|
3217
3275
|
|
|
3218
3276
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3543,7 +3601,7 @@ class AscDatepickerComponent extends BaseControlAccessor {
|
|
|
3543
3601
|
(onYearChange)="viewDateChange.emit($event)"
|
|
3544
3602
|
></p-datepicker>
|
|
3545
3603
|
}
|
|
3546
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}.asc-datepicker-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3604
|
+
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400;line-height:28px}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}.asc-datepicker-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3547
3605
|
}
|
|
3548
3606
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDatepickerComponent, decorators: [{
|
|
3549
3607
|
type: Component,
|
|
@@ -3631,7 +3689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3631
3689
|
(onYearChange)="viewDateChange.emit($event)"
|
|
3632
3690
|
></p-datepicker>
|
|
3633
3691
|
}
|
|
3634
|
-
`, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}.asc-datepicker-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
3692
|
+
`, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-start-start-radius:12px;border-end-start-radius:12px;font-size:18px;font-weight:400;line-height:28px}::ng-deep .p-datepicker-dropdown{border-start-end-radius:12px;border-end-end-radius:12px}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}.asc-datepicker-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
|
|
3635
3693
|
}], propDecorators: { selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], todayClick: [{ type: i0.Output, args: ["todayClick"] }], clearClick: [{ type: i0.Output, args: ["clearClick"] }] } });
|
|
3636
3694
|
|
|
3637
3695
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3791,7 +3849,7 @@ class AscPasswordComponent extends BaseControlAccessor {
|
|
|
3791
3849
|
(onBlur)="handleBlur($event)"
|
|
3792
3850
|
/>
|
|
3793
3851
|
}
|
|
3794
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i2$5.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3852
|
+
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400;line-height:28px}:host{--p-icon-size: 20px}:host(.asc-password--xs){--p-icon-size: 14px}:host(.asc-password--xl){--p-icon-size: 24px}:host ::ng-deep .p-password:has(.p-password-toggle-mask-icon) .p-password-input,:host ::ng-deep .p-password:has(.p-password-clear-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-password-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-password-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-password--disabled) ::ng-deep .p-password-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i2$5.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3795
3853
|
}
|
|
3796
3854
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscPasswordComponent, decorators: [{
|
|
3797
3855
|
type: Component,
|
|
@@ -3845,7 +3903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3845
3903
|
(onBlur)="handleBlur($event)"
|
|
3846
3904
|
/>
|
|
3847
3905
|
}
|
|
3848
|
-
`, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\n"] }]
|
|
3906
|
+
`, styles: [":host{display:block;width:100%}::ng-deep p-password,::ng-deep .p-password{width:100%}::ng-deep .p-password-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-password--xs:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-password--sm:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-password--md:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-password--lg:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-password--xl:not(.asc-password--float)) ::ng-deep .p-password-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400;line-height:28px}:host{--p-icon-size: 20px}:host(.asc-password--xs){--p-icon-size: 14px}:host(.asc-password--xl){--p-icon-size: 24px}:host ::ng-deep .p-password:has(.p-password-toggle-mask-icon) .p-password-input,:host ::ng-deep .p-password:has(.p-password-clear-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-password-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-password-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-password--disabled) ::ng-deep .p-password-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-password--invalid) ::ng-deep .p-password-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-password--invalid) ::ng-deep .p-password-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}::ng-deep .p-password-overlay{border-radius:10px;padding:.75rem 1rem}::ng-deep .p-password-meter{margin-bottom:.5rem}\n"] }]
|
|
3849
3907
|
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], toggleMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleMask", required: false }] }], feedback: [{ type: i0.Input, args: [{ isSignal: true, alias: "feedback", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }] } });
|
|
3850
3908
|
|
|
3851
3909
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4085,7 +4143,7 @@ class AscInputNumberComponent extends BaseControlAccessor {
|
|
|
4085
4143
|
(onInput)="inputEvent.emit($event)"
|
|
4086
4144
|
/>
|
|
4087
4145
|
}
|
|
4088
|
-
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-input-number-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input-number--sm:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input-number--md:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400}:host(.asc-input-number--lg:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400}:host(.asc-input-number--xl:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i2$6.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4146
|
+
`, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-input-number-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-input-number--sm:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-input-number--md:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-input-number--lg:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-input-number--xl:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400;line-height:28px}:host{--p-icon-size: 20px}:host(.asc-input-number--xs){--p-icon-size: 14px}:host(.asc-input-number--xl){--p-icon-size: 24px}:host ::ng-deep .p-inputnumber-button .p-icon{width:14px;height:14px}:host ::ng-deep .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputnumber-clear-icon{box-sizing:border-box;width:var(--p-icon-size);height:var(--p-icon-size);padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputnumber-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-input-number--disabled) ::ng-deep .p-inputnumber-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i2$6.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4089
4147
|
}
|
|
4090
4148
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscInputNumberComponent, decorators: [{
|
|
4091
4149
|
type: Component,
|
|
@@ -4153,7 +4211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4153
4211
|
(onInput)="inputEvent.emit($event)"
|
|
4154
4212
|
/>
|
|
4155
4213
|
}
|
|
4156
|
-
`, styles: [":host{display:block;width:100%}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-input-number-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input-number--sm:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400}:host(.asc-input-number--md:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400}:host(.asc-input-number--lg:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400}:host(.asc-input-number--xl:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
|
|
4214
|
+
`, styles: [":host{display:block;width:100%}::ng-deep p-inputnumber,::ng-deep .p-inputnumber{width:100%}::ng-deep .p-inputnumber-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-input-number-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-stacked .p-inputnumber-input,:host ::ng-deep .p-inputnumber.p-inputnumber-buttons-horizontal .p-inputnumber-input{flex:1 1 auto;width:auto}:host(.asc-input-number--xs:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:16px}:host(.asc-input-number--sm:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:12px;font-weight:400;line-height:18px}:host(.asc-input-number--md:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:14px;font-weight:400;line-height:20px}:host(.asc-input-number--lg:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:16px;font-weight:400;line-height:24px}:host(.asc-input-number--xl:not(.asc-input-number--float)) ::ng-deep .p-inputnumber-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:18px;font-weight:400;line-height:28px}:host{--p-icon-size: 20px}:host(.asc-input-number--xs){--p-icon-size: 14px}:host(.asc-input-number--xl){--p-icon-size: 24px}:host ::ng-deep .p-inputnumber-button .p-icon{width:14px;height:14px}:host ::ng-deep .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-inputnumber-clear-icon{box-sizing:border-box;width:var(--p-icon-size);height:var(--p-icon-size);padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-inputnumber-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-input-number--disabled) ::ng-deep .p-inputnumber-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-input-number--invalid) ::ng-deep .p-inputnumber-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
|
|
4157
4215
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], fractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "fractionDigits", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], showButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtons", required: false }] }], buttonLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLayout", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], inputEvent: [{ type: i0.Output, args: ["inputEvent"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }] } });
|
|
4158
4216
|
|
|
4159
4217
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -4942,7 +5000,7 @@ class AscTextareaComponent extends BaseControlAccessor {
|
|
|
4942
5000
|
}
|
|
4943
5001
|
</div>
|
|
4944
5002
|
}
|
|
4945
|
-
`, isInline: true, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-textarea-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:12px;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:
|
|
5003
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-textarea-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:12px;line-height:16px;font-weight:400;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:12px;line-height:18px;font-weight:400;padding:6px 8px;border-radius:12px}:host(.asc-textarea--md) ::ng-deep .p-textarea{font-size:14px;line-height:20px;font-weight:400;padding:10px 8px;border-radius:12px}:host(.asc-textarea--lg) ::ng-deep .p-textarea{font-size:16px;line-height:24px;font-weight:400;padding:12px 10px;border-radius:12px}:host(.asc-textarea--xl) ::ng-deep .p-textarea{font-size:16px;line-height:24px;font-weight:400;padding:14px 12px;border-radius:12px}:host(.asc-textarea--disabled) ::ng-deep .p-textarea{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-textarea--invalid) ::ng-deep .p-textarea{border-color:var(--asc-border-color-invalid)!important}:host(.asc-textarea--invalid) ::ng-deep .p-textarea:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.asc-textarea-counter{position:absolute;bottom:6px;right:10px;font-size:.6875rem;color:var(--asc-text-muted);pointer-events:none;line-height:1;transition:color var(--asc-transition-fast)}.asc-textarea-counter.asc-textarea-counter--near-limit{color:var(--asc-color-warning)}.asc-textarea-counter.asc-textarea-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TextareaModule }, { kind: "directive", type: i2$a.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4946
5004
|
}
|
|
4947
5005
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTextareaComponent, decorators: [{
|
|
4948
5006
|
type: Component,
|
|
@@ -4991,7 +5049,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4991
5049
|
}
|
|
4992
5050
|
</div>
|
|
4993
5051
|
}
|
|
4994
|
-
`, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-textarea-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:12px;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:
|
|
5052
|
+
`, styles: [":host{display:block;width:100%}.asc-textarea-wrapper{position:relative;width:100%}::ng-deep .p-textarea{width:100%;resize:vertical;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}.asc-textarea-view{display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word;white-space:pre-wrap}:host(.asc-textarea--xs) ::ng-deep .p-textarea{font-size:12px;line-height:16px;font-weight:400;padding:4px 8px;border-radius:12px}:host(.asc-textarea--sm) ::ng-deep .p-textarea{font-size:12px;line-height:18px;font-weight:400;padding:6px 8px;border-radius:12px}:host(.asc-textarea--md) ::ng-deep .p-textarea{font-size:14px;line-height:20px;font-weight:400;padding:10px 8px;border-radius:12px}:host(.asc-textarea--lg) ::ng-deep .p-textarea{font-size:16px;line-height:24px;font-weight:400;padding:12px 10px;border-radius:12px}:host(.asc-textarea--xl) ::ng-deep .p-textarea{font-size:16px;line-height:24px;font-weight:400;padding:14px 12px;border-radius:12px}:host(.asc-textarea--disabled) ::ng-deep .p-textarea{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-textarea--invalid) ::ng-deep .p-textarea{border-color:var(--asc-border-color-invalid)!important}:host(.asc-textarea--invalid) ::ng-deep .p-textarea:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}.asc-textarea-counter{position:absolute;bottom:6px;right:10px;font-size:.6875rem;color:var(--asc-text-muted);pointer-events:none;line-height:1;transition:color var(--asc-transition-fast)}.asc-textarea-counter.asc-textarea-counter--near-limit{color:var(--asc-color-warning)}.asc-textarea-counter.asc-textarea-counter--at-limit{color:var(--asc-color-danger);font-weight:500}\n"] }]
|
|
4995
5053
|
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }], autoResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoResize", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], textareaEl: [{ type: i0.ViewChild, args: ['textareaEl', { isSignal: true }] }] } });
|
|
4996
5054
|
|
|
4997
5055
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -6542,7 +6600,7 @@ class AscTableComponent {
|
|
|
6542
6600
|
URL.revokeObjectURL(url);
|
|
6543
6601
|
}
|
|
6544
6602
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6545
|
-
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}::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 }); }
|
|
6603
|
+
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 }); }
|
|
6546
6604
|
}
|
|
6547
6605
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, decorators: [{
|
|
6548
6606
|
type: Component,
|
|
@@ -6564,7 +6622,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
6564
6622
|
MenuModule,
|
|
6565
6623
|
RippleModule,
|
|
6566
6624
|
AscIconComponent,
|
|
6567
|
-
], 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}::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"] }]
|
|
6625
|
+
], 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"] }]
|
|
6568
6626
|
}], 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"] }] } });
|
|
6569
6627
|
|
|
6570
6628
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -7987,12 +8045,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
7987
8045
|
}]
|
|
7988
8046
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], _contentTpl: [{ type: i0.ViewChild, args: ['tpl', { isSignal: true }] }] } });
|
|
7989
8047
|
|
|
8048
|
+
/** Khoảng (px) tính từ mép trên vùng cuộn — section vượt qua mốc này được coi là đang xem */
|
|
8049
|
+
const SCROLL_SPY_OFFSET = 24;
|
|
7990
8050
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
7991
8051
|
// AscTabsComponent
|
|
7992
8052
|
//
|
|
7993
8053
|
// Wrapper của PrimeNG Tabs — quản lý tab header + panel content thông qua
|
|
7994
8054
|
// content children là <asc-tab>.
|
|
7995
8055
|
//
|
|
8056
|
+
// orientation="vertical" render menu dọc bên trái (tự dựng, không dùng p-tabs):
|
|
8057
|
+
// - mặc định: chỉ hiện panel đang active (giống tab ngang).
|
|
8058
|
+
// - [scrollSpy]="true": hiện TẤT CẢ panel nối tiếp nhau thành các section có
|
|
8059
|
+
// tiêu đề; click menu → cuộn tới section, cuộn nội dung → menu tự active.
|
|
8060
|
+
// Cần đặt chiều cao cho asc-tabs (vd style="height: 480px") để vùng nội
|
|
8061
|
+
// dung cuộn được.
|
|
8062
|
+
//
|
|
7996
8063
|
// @example
|
|
7997
8064
|
// <!-- Basic -->
|
|
7998
8065
|
// <asc-tabs [(value)]="activeTab">
|
|
@@ -8010,24 +8077,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
8010
8077
|
// ...
|
|
8011
8078
|
// </asc-tabs>
|
|
8012
8079
|
//
|
|
8013
|
-
// <!--
|
|
8014
|
-
// <asc-tabs [
|
|
8015
|
-
// <asc-tab value="
|
|
8080
|
+
// <!-- Vertical + scroll-spy (form nhiều nhóm thông tin) -->
|
|
8081
|
+
// <asc-tabs orientation="vertical" [scrollSpy]="true" style="height: 480px">
|
|
8082
|
+
// <asc-tab value="general" label="Thông tin chung">...</asc-tab>
|
|
8083
|
+
// <asc-tab value="bank" label="Thông tin ngân hàng">...</asc-tab>
|
|
8016
8084
|
// </asc-tabs>
|
|
8017
8085
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
8018
8086
|
class AscTabsComponent {
|
|
8019
8087
|
constructor() {
|
|
8088
|
+
this.destroyRef = inject(DestroyRef);
|
|
8020
8089
|
// ── Two-way binding ────────────────────────────────────────────────────────
|
|
8021
8090
|
/** Giá trị tab đang active. Dùng [(value)]="..." để two-way bind. */
|
|
8022
8091
|
this.value = model(undefined, /* @ts-ignore */
|
|
8023
8092
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
8024
8093
|
// ── Inputs ────────────────────────────────────────────────────────────────
|
|
8094
|
+
/** Hướng hiển thị: 'horizontal' (tab ngang, mặc định) | 'vertical' (menu dọc bên trái) */
|
|
8095
|
+
this.orientation = input('horizontal', /* @ts-ignore */
|
|
8096
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
8097
|
+
/**
|
|
8098
|
+
* Chỉ áp dụng khi orientation='vertical'. Hiện tất cả panel nối tiếp nhau,
|
|
8099
|
+
* click menu → cuộn tới section, cuộn nội dung → menu tự active theo.
|
|
8100
|
+
*/
|
|
8101
|
+
this.scrollSpy = input(false, /* @ts-ignore */
|
|
8102
|
+
...(ngDevMode ? [{ debugName: "scrollSpy" }] : /* istanbul ignore next */ []));
|
|
8103
|
+
/** Chỉ áp dụng khi scrollSpy=true — hiện label của tab làm tiêu đề mỗi section */
|
|
8104
|
+
this.showSectionTitle = input(true, /* @ts-ignore */
|
|
8105
|
+
...(ngDevMode ? [{ debugName: "showSectionTitle" }] : /* istanbul ignore next */ []));
|
|
8106
|
+
/** Chiều rộng menu dọc (CSS length) */
|
|
8107
|
+
this.navWidth = input('160px', /* @ts-ignore */
|
|
8108
|
+
...(ngDevMode ? [{ debugName: "navWidth" }] : /* istanbul ignore next */ []));
|
|
8025
8109
|
/** Kích hoạt scroll ngang khi tab list vượt quá chiều rộng container */
|
|
8026
8110
|
this.scrollable = input(false, /* @ts-ignore */
|
|
8027
8111
|
...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
|
|
8028
8112
|
/**
|
|
8029
8113
|
* Lazy rendering — panel content không được render cho đến khi tab được
|
|
8030
8114
|
* kích hoạt lần đầu. Hữu ích khi panel chứa content nặng.
|
|
8115
|
+
* Không áp dụng cho scrollSpy (mọi section luôn được render).
|
|
8031
8116
|
*/
|
|
8032
8117
|
this.lazy = input(false, /* @ts-ignore */
|
|
8033
8118
|
...(ngDevMode ? [{ debugName: "lazy" }] : /* istanbul ignore next */ []));
|
|
@@ -8039,94 +8124,311 @@ class AscTabsComponent {
|
|
|
8039
8124
|
...(ngDevMode ? [{ debugName: "showNavigators" }] : /* istanbul ignore next */ []));
|
|
8040
8125
|
this.styleClass = input('', /* @ts-ignore */
|
|
8041
8126
|
...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
8042
|
-
// ── Content children
|
|
8127
|
+
// ── Content / view children ───────────────────────────────────────────────
|
|
8043
8128
|
this.tabs = contentChildren(AscTabComponent, /* @ts-ignore */
|
|
8044
8129
|
...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
|
|
8130
|
+
this.contentEl = viewChild('content', /* @ts-ignore */
|
|
8131
|
+
...(ngDevMode ? [{ debugName: "contentEl" }] : /* istanbul ignore next */ []));
|
|
8132
|
+
this.sectionEls = viewChildren('section', /* @ts-ignore */
|
|
8133
|
+
...(ngDevMode ? [{ debugName: "sectionEls" }] : /* istanbul ignore next */ []));
|
|
8134
|
+
this.navItemEls = viewChildren('navItem', /* @ts-ignore */
|
|
8135
|
+
...(ngDevMode ? [{ debugName: "navItemEls" }] : /* istanbul ignore next */ []));
|
|
8136
|
+
// ── State ─────────────────────────────────────────────────────────────────
|
|
8137
|
+
/** Các tab đã từng active — dùng cho lazy ở chế độ vertical */
|
|
8138
|
+
this.visited = signal(new Set(), /* @ts-ignore */
|
|
8139
|
+
...(ngDevMode ? [{ debugName: "visited" }] : /* istanbul ignore next */ []));
|
|
8140
|
+
/** Đang cuộn bằng code (click menu) — tạm tắt scroll-spy tới khi cuộn xong */
|
|
8141
|
+
this.programmaticScroll = false;
|
|
8045
8142
|
// ── Computed ──────────────────────────────────────────────────────────────
|
|
8046
|
-
this.hostCls = computed(() => ascCls('asc-tabs', this.styleClass()), /* @ts-ignore */
|
|
8143
|
+
this.hostCls = computed(() => ascCls('asc-tabs', this.orientation() === 'vertical' && 'asc-tabs--vertical', this.styleClass()), /* @ts-ignore */
|
|
8047
8144
|
...(ngDevMode ? [{ debugName: "hostCls" }] : /* istanbul ignore next */ []));
|
|
8145
|
+
/** Tab active thực tế — vertical chưa set value thì lấy tab đầu tiên không disabled */
|
|
8146
|
+
this.activeValue = computed(() => {
|
|
8147
|
+
const value = this.value();
|
|
8148
|
+
if (value !== undefined || this.orientation() !== 'vertical')
|
|
8149
|
+
return value;
|
|
8150
|
+
return this.tabs().find((t) => !t.disabled())?.value();
|
|
8151
|
+
}, /* @ts-ignore */
|
|
8152
|
+
...(ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []));
|
|
8153
|
+
effect(() => {
|
|
8154
|
+
const active = this.activeValue();
|
|
8155
|
+
if (active === undefined)
|
|
8156
|
+
return;
|
|
8157
|
+
untracked(() => this.visited.update((s) => (s.has(active) ? s : new Set(s).add(active))));
|
|
8158
|
+
});
|
|
8159
|
+
// [(value)] đổi từ ngoài (hoặc click menu) ở chế độ scroll-spy → cuộn tới section
|
|
8160
|
+
effect(() => {
|
|
8161
|
+
const active = this.activeValue();
|
|
8162
|
+
if (!this.scrollSpy() || this.orientation() !== 'vertical' || active === undefined)
|
|
8163
|
+
return;
|
|
8164
|
+
if (this.sectionEls().length === 0)
|
|
8165
|
+
return;
|
|
8166
|
+
untracked(() => {
|
|
8167
|
+
if (active === this.spiedValue)
|
|
8168
|
+
return;
|
|
8169
|
+
this.scrollToSection(active);
|
|
8170
|
+
});
|
|
8171
|
+
});
|
|
8172
|
+
this.destroyRef.onDestroy(() => clearTimeout(this.programmaticScrollTimer));
|
|
8173
|
+
}
|
|
8174
|
+
// ── Handlers ──────────────────────────────────────────────────────────────
|
|
8175
|
+
select(tab) {
|
|
8176
|
+
if (tab.disabled())
|
|
8177
|
+
return;
|
|
8178
|
+
if (tab.value() === this.activeValue()) {
|
|
8179
|
+
// Click lại tab đang active (vd sau khi đã cuộn lệch) → vẫn cuộn về đầu section
|
|
8180
|
+
if (this.scrollSpy())
|
|
8181
|
+
this.scrollToSection(tab.value());
|
|
8182
|
+
return;
|
|
8183
|
+
}
|
|
8184
|
+
this.spiedValue = undefined;
|
|
8185
|
+
this.value.set(tab.value());
|
|
8186
|
+
}
|
|
8187
|
+
onNavKeydown(event, index) {
|
|
8188
|
+
const tabs = this.tabs();
|
|
8189
|
+
const enabled = tabs.map((t, i) => (t.disabled() ? -1 : i)).filter((i) => i >= 0);
|
|
8190
|
+
if (enabled.length === 0)
|
|
8191
|
+
return;
|
|
8192
|
+
let target;
|
|
8193
|
+
const pos = enabled.indexOf(index);
|
|
8194
|
+
switch (event.key) {
|
|
8195
|
+
case 'ArrowDown':
|
|
8196
|
+
target = enabled[(pos + 1) % enabled.length];
|
|
8197
|
+
break;
|
|
8198
|
+
case 'ArrowUp':
|
|
8199
|
+
target = enabled[(pos - 1 + enabled.length) % enabled.length];
|
|
8200
|
+
break;
|
|
8201
|
+
case 'Home':
|
|
8202
|
+
target = enabled[0];
|
|
8203
|
+
break;
|
|
8204
|
+
case 'End':
|
|
8205
|
+
target = enabled[enabled.length - 1];
|
|
8206
|
+
break;
|
|
8207
|
+
default:
|
|
8208
|
+
return;
|
|
8209
|
+
}
|
|
8210
|
+
event.preventDefault();
|
|
8211
|
+
this.navItemEls()[target]?.nativeElement.focus();
|
|
8212
|
+
if (this.selectOnFocus())
|
|
8213
|
+
this.select(tabs[target]);
|
|
8214
|
+
}
|
|
8215
|
+
onContentScroll() {
|
|
8216
|
+
if (!this.scrollSpy())
|
|
8217
|
+
return;
|
|
8218
|
+
if (this.programmaticScroll) {
|
|
8219
|
+
// Mỗi event scroll gia hạn timer — hết cuộn ~120ms thì bật lại scroll-spy
|
|
8220
|
+
this.armProgrammaticScrollTimer();
|
|
8221
|
+
return;
|
|
8222
|
+
}
|
|
8223
|
+
const container = this.contentEl()?.nativeElement;
|
|
8224
|
+
const sections = this.sectionEls();
|
|
8225
|
+
if (!container || sections.length === 0)
|
|
8226
|
+
return;
|
|
8227
|
+
let index = 0;
|
|
8228
|
+
const atBottom = container.scrollTop + container.clientHeight >= container.scrollHeight - 1;
|
|
8229
|
+
if (atBottom) {
|
|
8230
|
+
index = sections.length - 1;
|
|
8231
|
+
}
|
|
8232
|
+
else {
|
|
8233
|
+
const mark = container.scrollTop + SCROLL_SPY_OFFSET;
|
|
8234
|
+
sections.forEach((s, i) => {
|
|
8235
|
+
if (s.nativeElement.offsetTop <= mark)
|
|
8236
|
+
index = i;
|
|
8237
|
+
});
|
|
8238
|
+
}
|
|
8239
|
+
const next = this.tabs()[index]?.value();
|
|
8240
|
+
if (next === undefined || next === this.activeValue())
|
|
8241
|
+
return;
|
|
8242
|
+
this.spiedValue = next;
|
|
8243
|
+
this.value.set(next);
|
|
8244
|
+
}
|
|
8245
|
+
// ── Helpers ───────────────────────────────────────────────────────────────
|
|
8246
|
+
scrollToSection(value) {
|
|
8247
|
+
const container = this.contentEl()?.nativeElement;
|
|
8248
|
+
const index = this.tabs().findIndex((t) => t.value() === value);
|
|
8249
|
+
const section = this.sectionEls()[index]?.nativeElement;
|
|
8250
|
+
if (!container || !section)
|
|
8251
|
+
return;
|
|
8252
|
+
const paddingTop = parseFloat(getComputedStyle(container).paddingTop) || 0;
|
|
8253
|
+
const top = Math.max(0, section.offsetTop - paddingTop);
|
|
8254
|
+
if (Math.abs(container.scrollTop - top) < 1)
|
|
8255
|
+
return;
|
|
8256
|
+
this.programmaticScroll = true;
|
|
8257
|
+
this.armProgrammaticScrollTimer();
|
|
8258
|
+
container.scrollTo({ top, behavior: 'smooth' });
|
|
8259
|
+
}
|
|
8260
|
+
armProgrammaticScrollTimer() {
|
|
8261
|
+
clearTimeout(this.programmaticScrollTimer);
|
|
8262
|
+
this.programmaticScrollTimer = setTimeout(() => (this.programmaticScroll = false), 120);
|
|
8048
8263
|
}
|
|
8049
8264
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8050
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTabsComponent, isStandalone: true, selector: "asc-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostCls()" } }, queries: [{ propertyName: "tabs", predicate: AscTabComponent, isSignal: true }], ngImport: i0, template: `
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
(
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscTabsComponent, isStandalone: true, selector: "asc-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, scrollSpy: { classPropertyName: "scrollSpy", publicName: "scrollSpy", isSignal: true, isRequired: false, transformFunction: null }, showSectionTitle: { classPropertyName: "showSectionTitle", publicName: "showSectionTitle", isSignal: true, isRequired: false, transformFunction: null }, navWidth: { classPropertyName: "navWidth", publicName: "navWidth", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostCls()", "style.--asc-vtabs-nav-width": "navWidth()" } }, queries: [{ propertyName: "tabs", predicate: AscTabComponent, isSignal: true }], viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "sectionEls", predicate: ["section"], descendants: true, isSignal: true }, { propertyName: "navItemEls", predicate: ["navItem"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
8266
|
+
<!-- ── Header content (dùng chung cho tab ngang + menu dọc) ─────────── -->
|
|
8267
|
+
<ng-template #headerTpl let-tab>
|
|
8268
|
+
@if (tab.icon() && tab.iconPos() === 'left') {
|
|
8269
|
+
<i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--left"></i>
|
|
8270
|
+
}
|
|
8271
|
+
<span class="asc-tab-label">{{ tab.label() }}</span>
|
|
8272
|
+
@if (tab.icon() && tab.iconPos() === 'right') {
|
|
8273
|
+
<i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--right"></i>
|
|
8274
|
+
}
|
|
8275
|
+
@if (tab.badge() !== undefined && tab.badge() !== null) {
|
|
8276
|
+
<span class="asc-tab-badge">{{ tab.badge() }}</span>
|
|
8277
|
+
}
|
|
8278
|
+
</ng-template>
|
|
8279
|
+
|
|
8280
|
+
@if (orientation() === 'vertical') {
|
|
8281
|
+
<!-- ── Vertical ─────────────────────────────────────────────────── -->
|
|
8282
|
+
<div class="asc-vtabs-nav" role="tablist" aria-orientation="vertical">
|
|
8061
8283
|
@for (tab of tabs(); track tab.value()) {
|
|
8062
|
-
<
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8284
|
+
<button
|
|
8285
|
+
#navItem
|
|
8286
|
+
type="button"
|
|
8287
|
+
role="tab"
|
|
8288
|
+
class="asc-vtabs-item"
|
|
8289
|
+
[class.asc-vtabs-item--active]="tab.value() === activeValue()"
|
|
8290
|
+
[attr.aria-selected]="tab.value() === activeValue()"
|
|
8291
|
+
[attr.tabindex]="tab.value() === activeValue() ? 0 : -1"
|
|
8292
|
+
[disabled]="tab.disabled()"
|
|
8293
|
+
(click)="select(tab)"
|
|
8294
|
+
(keydown)="onNavKeydown($event, $index)"
|
|
8295
|
+
>
|
|
8296
|
+
<ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
|
|
8297
|
+
</button>
|
|
8074
8298
|
}
|
|
8075
|
-
</
|
|
8299
|
+
</div>
|
|
8076
8300
|
|
|
8077
|
-
|
|
8078
|
-
<p-tabpanels>
|
|
8301
|
+
<div #content class="asc-vtabs-content" (scroll)="onContentScroll()">
|
|
8079
8302
|
@for (tab of tabs(); track tab.value()) {
|
|
8080
|
-
|
|
8081
|
-
<
|
|
8082
|
-
|
|
8303
|
+
@if (scrollSpy()) {
|
|
8304
|
+
<section #section class="asc-vtabs-section" role="tabpanel" [attr.aria-label]="tab.label()">
|
|
8305
|
+
@if (showSectionTitle()) {
|
|
8306
|
+
<h3 class="asc-vtabs-section-title">{{ tab.label() }}</h3>
|
|
8307
|
+
}
|
|
8308
|
+
<ng-container [ngTemplateOutlet]="tab._contentTpl()" />
|
|
8309
|
+
</section>
|
|
8310
|
+
} @else if (!lazy() || visited().has(tab.value())) {
|
|
8311
|
+
<div class="asc-vtabs-panel" role="tabpanel" [hidden]="tab.value() !== activeValue()">
|
|
8312
|
+
<ng-container [ngTemplateOutlet]="tab._contentTpl()" />
|
|
8313
|
+
</div>
|
|
8314
|
+
}
|
|
8083
8315
|
}
|
|
8084
|
-
</
|
|
8085
|
-
|
|
8086
|
-
|
|
8316
|
+
</div>
|
|
8317
|
+
} @else {
|
|
8318
|
+
<!-- ── Horizontal (PrimeNG Tabs) ─────────────────────────────────── -->
|
|
8319
|
+
<p-tabs
|
|
8320
|
+
[value]="value()"
|
|
8321
|
+
(valueChange)="value.set($event)"
|
|
8322
|
+
[scrollable]="scrollable()"
|
|
8323
|
+
[lazy]="lazy()"
|
|
8324
|
+
[selectOnFocus]="selectOnFocus()"
|
|
8325
|
+
[showNavigators]="showNavigators()"
|
|
8326
|
+
>
|
|
8327
|
+
<p-tablist>
|
|
8328
|
+
@for (tab of tabs(); track tab.value()) {
|
|
8329
|
+
<p-tab [value]="tab.value()" [disabled]="tab.disabled()">
|
|
8330
|
+
<ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
|
|
8331
|
+
</p-tab>
|
|
8332
|
+
}
|
|
8333
|
+
</p-tablist>
|
|
8334
|
+
|
|
8335
|
+
<p-tabpanels>
|
|
8336
|
+
@for (tab of tabs(); track tab.value()) {
|
|
8337
|
+
<p-tabpanel [value]="tab.value()">
|
|
8338
|
+
<ng-container [ngTemplateOutlet]="tab._contentTpl()" />
|
|
8339
|
+
</p-tabpanel>
|
|
8340
|
+
}
|
|
8341
|
+
</p-tabpanels>
|
|
8342
|
+
</p-tabs>
|
|
8343
|
+
}
|
|
8344
|
+
`, isInline: true, styles: [":host{display:block}.asc-tab-icon{font-size:14px;vertical-align:middle}.asc-tab-icon--left{margin-right:6px}.asc-tab-icon--right{margin-left:6px}.asc-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:8px;border-radius:9px;background:var(--p-primary-color);color:var(--p-primary-contrast-color, white);font-size:11px;font-weight:600;line-height:1;vertical-align:middle}::ng-deep .p-tab.p-disabled .asc-tab-badge,.asc-vtabs-item:disabled .asc-tab-badge{background:var(--p-surface-400)}::ng-deep .p-tabpanel{padding:1rem 0}::ng-deep .p-tabs.p-tabs-scrollable .p-tablist-tab-list{flex-wrap:nowrap}:host(.asc-tabs--vertical){display:flex;min-height:0;background:var(--asc-surface-base)}.asc-vtabs-nav{flex:0 0 var(--asc-vtabs-nav-width, 160px);display:flex;flex-direction:column;gap:4px;padding:8px;border-right:1px solid var(--asc-border-color);overflow-y:auto}.asc-vtabs-item{display:flex;align-items:center;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--asc-text-muted);font:inherit;font-size:var(--asc-text-sm);line-height:1.4;text-align:left;cursor:pointer;transition:background-color var(--asc-transition-fast),color var(--asc-transition-fast)}.asc-vtabs-item:hover:not(:disabled){color:var(--asc-text-primary)}.asc-vtabs-item:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:-2px}.asc-vtabs-item--active{background:var(--asc-surface-hover);color:var(--asc-text-primary);font-weight:500}.asc-vtabs-item:disabled{color:var(--asc-text-disabled);cursor:not-allowed}.asc-vtabs-item .asc-tab-label{flex:1 1 auto;min-width:0}.asc-vtabs-content{position:relative;flex:1 1 auto;min-width:0;padding:12px 16px;overflow-y:auto}.asc-vtabs-section+.asc-vtabs-section{margin-top:16px}.asc-vtabs-section-title{margin:0 0 8px;color:var(--asc-text-primary);font-size:var(--asc-text-md);font-weight:600;line-height:1.5}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: TabsModule }, { kind: "component", type: i1$8.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i1$8.TabPanels, selector: "p-tabpanels" }, { kind: "component", type: i1$8.TabPanel, selector: "p-tabpanel", inputs: ["lazy", "value"], outputs: ["valueChange"] }, { kind: "component", type: i1$8.TabList, selector: "p-tablist" }, { kind: "component", type: i1$8.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8087
8345
|
}
|
|
8088
8346
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTabsComponent, decorators: [{
|
|
8089
8347
|
type: Component,
|
|
8090
8348
|
args: [{ selector: 'asc-tabs', standalone: true, imports: [NgTemplateOutlet, TabsModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
8091
8349
|
'[class]': 'hostCls()',
|
|
8350
|
+
'[style.--asc-vtabs-nav-width]': 'navWidth()',
|
|
8092
8351
|
}, template: `
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
(
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8352
|
+
<!-- ── Header content (dùng chung cho tab ngang + menu dọc) ─────────── -->
|
|
8353
|
+
<ng-template #headerTpl let-tab>
|
|
8354
|
+
@if (tab.icon() && tab.iconPos() === 'left') {
|
|
8355
|
+
<i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--left"></i>
|
|
8356
|
+
}
|
|
8357
|
+
<span class="asc-tab-label">{{ tab.label() }}</span>
|
|
8358
|
+
@if (tab.icon() && tab.iconPos() === 'right') {
|
|
8359
|
+
<i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--right"></i>
|
|
8360
|
+
}
|
|
8361
|
+
@if (tab.badge() !== undefined && tab.badge() !== null) {
|
|
8362
|
+
<span class="asc-tab-badge">{{ tab.badge() }}</span>
|
|
8363
|
+
}
|
|
8364
|
+
</ng-template>
|
|
8365
|
+
|
|
8366
|
+
@if (orientation() === 'vertical') {
|
|
8367
|
+
<!-- ── Vertical ─────────────────────────────────────────────────── -->
|
|
8368
|
+
<div class="asc-vtabs-nav" role="tablist" aria-orientation="vertical">
|
|
8103
8369
|
@for (tab of tabs(); track tab.value()) {
|
|
8104
|
-
<
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8370
|
+
<button
|
|
8371
|
+
#navItem
|
|
8372
|
+
type="button"
|
|
8373
|
+
role="tab"
|
|
8374
|
+
class="asc-vtabs-item"
|
|
8375
|
+
[class.asc-vtabs-item--active]="tab.value() === activeValue()"
|
|
8376
|
+
[attr.aria-selected]="tab.value() === activeValue()"
|
|
8377
|
+
[attr.tabindex]="tab.value() === activeValue() ? 0 : -1"
|
|
8378
|
+
[disabled]="tab.disabled()"
|
|
8379
|
+
(click)="select(tab)"
|
|
8380
|
+
(keydown)="onNavKeydown($event, $index)"
|
|
8381
|
+
>
|
|
8382
|
+
<ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
|
|
8383
|
+
</button>
|
|
8116
8384
|
}
|
|
8117
|
-
</
|
|
8385
|
+
</div>
|
|
8118
8386
|
|
|
8119
|
-
|
|
8120
|
-
<p-tabpanels>
|
|
8387
|
+
<div #content class="asc-vtabs-content" (scroll)="onContentScroll()">
|
|
8121
8388
|
@for (tab of tabs(); track tab.value()) {
|
|
8122
|
-
|
|
8123
|
-
<
|
|
8124
|
-
|
|
8389
|
+
@if (scrollSpy()) {
|
|
8390
|
+
<section #section class="asc-vtabs-section" role="tabpanel" [attr.aria-label]="tab.label()">
|
|
8391
|
+
@if (showSectionTitle()) {
|
|
8392
|
+
<h3 class="asc-vtabs-section-title">{{ tab.label() }}</h3>
|
|
8393
|
+
}
|
|
8394
|
+
<ng-container [ngTemplateOutlet]="tab._contentTpl()" />
|
|
8395
|
+
</section>
|
|
8396
|
+
} @else if (!lazy() || visited().has(tab.value())) {
|
|
8397
|
+
<div class="asc-vtabs-panel" role="tabpanel" [hidden]="tab.value() !== activeValue()">
|
|
8398
|
+
<ng-container [ngTemplateOutlet]="tab._contentTpl()" />
|
|
8399
|
+
</div>
|
|
8400
|
+
}
|
|
8125
8401
|
}
|
|
8126
|
-
</
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8402
|
+
</div>
|
|
8403
|
+
} @else {
|
|
8404
|
+
<!-- ── Horizontal (PrimeNG Tabs) ─────────────────────────────────── -->
|
|
8405
|
+
<p-tabs
|
|
8406
|
+
[value]="value()"
|
|
8407
|
+
(valueChange)="value.set($event)"
|
|
8408
|
+
[scrollable]="scrollable()"
|
|
8409
|
+
[lazy]="lazy()"
|
|
8410
|
+
[selectOnFocus]="selectOnFocus()"
|
|
8411
|
+
[showNavigators]="showNavigators()"
|
|
8412
|
+
>
|
|
8413
|
+
<p-tablist>
|
|
8414
|
+
@for (tab of tabs(); track tab.value()) {
|
|
8415
|
+
<p-tab [value]="tab.value()" [disabled]="tab.disabled()">
|
|
8416
|
+
<ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
|
|
8417
|
+
</p-tab>
|
|
8418
|
+
}
|
|
8419
|
+
</p-tablist>
|
|
8420
|
+
|
|
8421
|
+
<p-tabpanels>
|
|
8422
|
+
@for (tab of tabs(); track tab.value()) {
|
|
8423
|
+
<p-tabpanel [value]="tab.value()">
|
|
8424
|
+
<ng-container [ngTemplateOutlet]="tab._contentTpl()" />
|
|
8425
|
+
</p-tabpanel>
|
|
8426
|
+
}
|
|
8427
|
+
</p-tabpanels>
|
|
8428
|
+
</p-tabs>
|
|
8429
|
+
}
|
|
8430
|
+
`, styles: [":host{display:block}.asc-tab-icon{font-size:14px;vertical-align:middle}.asc-tab-icon--left{margin-right:6px}.asc-tab-icon--right{margin-left:6px}.asc-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:8px;border-radius:9px;background:var(--p-primary-color);color:var(--p-primary-contrast-color, white);font-size:11px;font-weight:600;line-height:1;vertical-align:middle}::ng-deep .p-tab.p-disabled .asc-tab-badge,.asc-vtabs-item:disabled .asc-tab-badge{background:var(--p-surface-400)}::ng-deep .p-tabpanel{padding:1rem 0}::ng-deep .p-tabs.p-tabs-scrollable .p-tablist-tab-list{flex-wrap:nowrap}:host(.asc-tabs--vertical){display:flex;min-height:0;background:var(--asc-surface-base)}.asc-vtabs-nav{flex:0 0 var(--asc-vtabs-nav-width, 160px);display:flex;flex-direction:column;gap:4px;padding:8px;border-right:1px solid var(--asc-border-color);overflow-y:auto}.asc-vtabs-item{display:flex;align-items:center;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--asc-text-muted);font:inherit;font-size:var(--asc-text-sm);line-height:1.4;text-align:left;cursor:pointer;transition:background-color var(--asc-transition-fast),color var(--asc-transition-fast)}.asc-vtabs-item:hover:not(:disabled){color:var(--asc-text-primary)}.asc-vtabs-item:focus-visible{outline:2px solid var(--asc-border-color-focus);outline-offset:-2px}.asc-vtabs-item--active{background:var(--asc-surface-hover);color:var(--asc-text-primary);font-weight:500}.asc-vtabs-item:disabled{color:var(--asc-text-disabled);cursor:not-allowed}.asc-vtabs-item .asc-tab-label{flex:1 1 auto;min-width:0}.asc-vtabs-content{position:relative;flex:1 1 auto;min-width:0;padding:12px 16px;overflow-y:auto}.asc-vtabs-section+.asc-vtabs-section{margin-top:16px}.asc-vtabs-section-title{margin:0 0 8px;color:var(--asc-text-primary);font-size:var(--asc-text-md);font-weight:600;line-height:1.5}\n"] }]
|
|
8431
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], scrollSpy: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollSpy", required: false }] }], showSectionTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSectionTitle", required: false }] }], navWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "navWidth", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], showNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNavigators", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AscTabComponent), { isSignal: true }] }], contentEl: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], sectionEls: [{ type: i0.ViewChildren, args: ['section', { isSignal: true }] }], navItemEls: [{ type: i0.ViewChildren, args: ['navItem', { isSignal: true }] }] } });
|
|
8130
8432
|
|
|
8131
8433
|
/**
|
|
8132
8434
|
* Đặt nội dung của từng step bên trong directive này.
|