@aseansc/ui 4.1.0 → 5.1.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.
@@ -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,6 +424,7 @@ const ASC_PRESET = definePreset(Aura, {
424
424
  },
425
425
  formField: {
426
426
  background: 'var(--asc-formfield-bg, #F2F3F5)',
427
+ disabledBackground: 'var(--asc-formfield-disabled-bg, #F2F3F5)', // Aura mặc định {surface.200} = #c0c0c2 — quá đậm
427
428
  borderColor: 'var(--asc-formfield-border-color, #DEDFE0)',
428
429
  hoverBorderColor: '{surface.400}',
429
430
  focusBorderColor: '{blue.500}',
@@ -482,6 +483,11 @@ const ASC_PRESET = definePreset(Aura, {
482
483
  },
483
484
  // ── Component-level overrides ──────────────────────────────────────────────
484
485
  components: {
486
+ breadcrumb: {
487
+ root: {
488
+ background: 'transparent', // nằm trên topbar blur — không phủ nền riêng
489
+ },
490
+ },
485
491
  button: {
486
492
  root: {
487
493
  borderRadius: '999px',
@@ -548,6 +554,15 @@ const ASC_PRESET = definePreset(Aura, {
548
554
  root: {
549
555
  borderColor: '{surface.200}',
550
556
  },
557
+ // Aura khai báo root.borderColor riêng trong colorScheme (light = content.border.color,
558
+ // dark = surface.800) → ghi đè root ở trên, nên phải override tại colorScheme.
559
+ colorScheme: {
560
+ light: {
561
+ root: {
562
+ borderColor: 'var(--asc-table-border-color)', // #0C0C0D1A — xem _semantic.scss
563
+ },
564
+ },
565
+ },
551
566
  headerCell: {
552
567
  padding: '10px 8px',
553
568
  },
@@ -3036,7 +3051,7 @@ class AscSelectComponent extends BaseControlAccessor {
3036
3051
  />
3037
3052
  }
3038
3053
  }
3039
- `, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-select,::ng-deep p-multiselect,::ng-deep .p-select,::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}::ng-deep .p-select,::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;display:flex;align-items:center}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3054
+ `, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;display:flex;align-items:center}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3040
3055
  }
3041
3056
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
3042
3057
  type: Component,
@@ -3198,7 +3213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
3198
3213
  />
3199
3214
  }
3200
3215
  }
3201
- `, styles: [":host{display:block;width:100%}::ng-deep p-select,::ng-deep p-multiselect,::ng-deep .p-select,::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}::ng-deep .p-select,::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;display:flex;align-items:center}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
3216
+ `, styles: [":host{display:block;width:100%}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}.asc-select-view{width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:12px;font-weight:400;display:flex;align-items:center}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:14px;font-weight:400;display:flex;align-items:center}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:16px;font-weight:400;display:flex;align-items:center}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float):not(.asc-select--labeled)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:18px;font-weight:400;display:flex;align-items:center}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
3202
3217
  }], 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"] }] } });
3203
3218
 
3204
3219
  // ─────────────────────────────────────────────────────────────────────────────
@@ -5879,7 +5894,7 @@ class AscTableComponent {
5879
5894
  ...(ngDevMode ? [{ debugName: "virtualScrollItemSize" }] : /* istanbul ignore next */ []));
5880
5895
  this.showGridlines = input(true, /* @ts-ignore */
5881
5896
  ...(ngDevMode ? [{ debugName: "showGridlines" }] : /* istanbul ignore next */ []));
5882
- this.stripedRows = input(true, /* @ts-ignore */
5897
+ this.stripedRows = input(false, /* @ts-ignore */
5883
5898
  ...(ngDevMode ? [{ debugName: "stripedRows" }] : /* istanbul ignore next */ []));
5884
5899
  this.resizableColumns = input(false, /* @ts-ignore */
5885
5900
  ...(ngDevMode ? [{ debugName: "resizableColumns" }] : /* istanbul ignore next */ []));
@@ -6528,7 +6543,7 @@ class AscTableComponent {
6528
6543
  URL.revokeObjectURL(url);
6529
6544
  }
6530
6545
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6531
- 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:500;color:var(--asc-text-primary);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-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 }); }
6546
+ 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 }); }
6532
6547
  }
6533
6548
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTableComponent, decorators: [{
6534
6549
  type: Component,
@@ -6550,7 +6565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
6550
6565
  MenuModule,
6551
6566
  RippleModule,
6552
6567
  AscIconComponent,
6553
- ], 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:500;color:var(--asc-text-primary);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-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"] }]
6568
+ ], 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"] }]
6554
6569
  }], 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"] }] } });
6555
6570
 
6556
6571
  // ─────────────────────────────────────────────────────────────────────────────
@@ -7973,12 +7988,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
7973
7988
  }]
7974
7989
  }], 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 }] }] } });
7975
7990
 
7991
+ /** 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 */
7992
+ const SCROLL_SPY_OFFSET = 24;
7976
7993
  // ─────────────────────────────────────────────────────────────────────────────
7977
7994
  // AscTabsComponent
7978
7995
  //
7979
7996
  // Wrapper của PrimeNG Tabs — quản lý tab header + panel content thông qua
7980
7997
  // content children là <asc-tab>.
7981
7998
  //
7999
+ // orientation="vertical" render menu dọc bên trái (tự dựng, không dùng p-tabs):
8000
+ // - mặc định: chỉ hiện panel đang active (giống tab ngang).
8001
+ // - [scrollSpy]="true": hiện TẤT CẢ panel nối tiếp nhau thành các section có
8002
+ // tiêu đề; click menu → cuộn tới section, cuộn nội dung → menu tự active.
8003
+ // Cần đặt chiều cao cho asc-tabs (vd style="height: 480px") để vùng nội
8004
+ // dung cuộn được.
8005
+ //
7982
8006
  // @example
7983
8007
  // <!-- Basic -->
7984
8008
  // <asc-tabs [(value)]="activeTab">
@@ -7996,24 +8020,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
7996
8020
  // ...
7997
8021
  // </asc-tabs>
7998
8022
  //
7999
- // <!-- Controlled từ bên ngoài -->
8000
- // <asc-tabs [(value)]="currentTab">
8001
- // <asc-tab value="a" label="A" [disabled]="aDisabled">...</asc-tab>
8023
+ // <!-- Vertical + scroll-spy (form nhiều nhóm thông tin) -->
8024
+ // <asc-tabs orientation="vertical" [scrollSpy]="true" style="height: 480px">
8025
+ // <asc-tab value="general" label="Thông tin chung">...</asc-tab>
8026
+ // <asc-tab value="bank" label="Thông tin ngân hàng">...</asc-tab>
8002
8027
  // </asc-tabs>
8003
8028
  // ─────────────────────────────────────────────────────────────────────────────
8004
8029
  class AscTabsComponent {
8005
8030
  constructor() {
8031
+ this.destroyRef = inject(DestroyRef);
8006
8032
  // ── Two-way binding ────────────────────────────────────────────────────────
8007
8033
  /** Giá trị tab đang active. Dùng [(value)]="..." để two-way bind. */
8008
8034
  this.value = model(undefined, /* @ts-ignore */
8009
8035
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
8010
8036
  // ── Inputs ────────────────────────────────────────────────────────────────
8037
+ /** Hướng hiển thị: 'horizontal' (tab ngang, mặc định) | 'vertical' (menu dọc bên trái) */
8038
+ this.orientation = input('horizontal', /* @ts-ignore */
8039
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
8040
+ /**
8041
+ * Chỉ áp dụng khi orientation='vertical'. Hiện tất cả panel nối tiếp nhau,
8042
+ * click menu → cuộn tới section, cuộn nội dung → menu tự active theo.
8043
+ */
8044
+ this.scrollSpy = input(false, /* @ts-ignore */
8045
+ ...(ngDevMode ? [{ debugName: "scrollSpy" }] : /* istanbul ignore next */ []));
8046
+ /** Chỉ áp dụng khi scrollSpy=true — hiện label của tab làm tiêu đề mỗi section */
8047
+ this.showSectionTitle = input(true, /* @ts-ignore */
8048
+ ...(ngDevMode ? [{ debugName: "showSectionTitle" }] : /* istanbul ignore next */ []));
8049
+ /** Chiều rộng menu dọc (CSS length) */
8050
+ this.navWidth = input('160px', /* @ts-ignore */
8051
+ ...(ngDevMode ? [{ debugName: "navWidth" }] : /* istanbul ignore next */ []));
8011
8052
  /** Kích hoạt scroll ngang khi tab list vượt quá chiều rộng container */
8012
8053
  this.scrollable = input(false, /* @ts-ignore */
8013
8054
  ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
8014
8055
  /**
8015
8056
  * Lazy rendering — panel content không được render cho đến khi tab được
8016
8057
  * kích hoạt lần đầu. Hữu ích khi panel chứa content nặng.
8058
+ * Không áp dụng cho scrollSpy (mọi section luôn được render).
8017
8059
  */
8018
8060
  this.lazy = input(false, /* @ts-ignore */
8019
8061
  ...(ngDevMode ? [{ debugName: "lazy" }] : /* istanbul ignore next */ []));
@@ -8025,94 +8067,311 @@ class AscTabsComponent {
8025
8067
  ...(ngDevMode ? [{ debugName: "showNavigators" }] : /* istanbul ignore next */ []));
8026
8068
  this.styleClass = input('', /* @ts-ignore */
8027
8069
  ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
8028
- // ── Content children ──────────────────────────────────────────────────────
8070
+ // ── Content / view children ───────────────────────────────────────────────
8029
8071
  this.tabs = contentChildren(AscTabComponent, /* @ts-ignore */
8030
8072
  ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
8073
+ this.contentEl = viewChild('content', /* @ts-ignore */
8074
+ ...(ngDevMode ? [{ debugName: "contentEl" }] : /* istanbul ignore next */ []));
8075
+ this.sectionEls = viewChildren('section', /* @ts-ignore */
8076
+ ...(ngDevMode ? [{ debugName: "sectionEls" }] : /* istanbul ignore next */ []));
8077
+ this.navItemEls = viewChildren('navItem', /* @ts-ignore */
8078
+ ...(ngDevMode ? [{ debugName: "navItemEls" }] : /* istanbul ignore next */ []));
8079
+ // ── State ─────────────────────────────────────────────────────────────────
8080
+ /** Các tab đã từng active — dùng cho lazy ở chế độ vertical */
8081
+ this.visited = signal(new Set(), /* @ts-ignore */
8082
+ ...(ngDevMode ? [{ debugName: "visited" }] : /* istanbul ignore next */ []));
8083
+ /** Đang cuộn bằng code (click menu) — tạm tắt scroll-spy tới khi cuộn xong */
8084
+ this.programmaticScroll = false;
8031
8085
  // ── Computed ──────────────────────────────────────────────────────────────
8032
- this.hostCls = computed(() => ascCls('asc-tabs', this.styleClass()), /* @ts-ignore */
8086
+ this.hostCls = computed(() => ascCls('asc-tabs', this.orientation() === 'vertical' && 'asc-tabs--vertical', this.styleClass()), /* @ts-ignore */
8033
8087
  ...(ngDevMode ? [{ debugName: "hostCls" }] : /* istanbul ignore next */ []));
8088
+ /** Tab active thực tế — vertical chưa set value thì lấy tab đầu tiên không disabled */
8089
+ this.activeValue = computed(() => {
8090
+ const value = this.value();
8091
+ if (value !== undefined || this.orientation() !== 'vertical')
8092
+ return value;
8093
+ return this.tabs().find((t) => !t.disabled())?.value();
8094
+ }, /* @ts-ignore */
8095
+ ...(ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []));
8096
+ effect(() => {
8097
+ const active = this.activeValue();
8098
+ if (active === undefined)
8099
+ return;
8100
+ untracked(() => this.visited.update((s) => (s.has(active) ? s : new Set(s).add(active))));
8101
+ });
8102
+ // [(value)] đổi từ ngoài (hoặc click menu) ở chế độ scroll-spy → cuộn tới section
8103
+ effect(() => {
8104
+ const active = this.activeValue();
8105
+ if (!this.scrollSpy() || this.orientation() !== 'vertical' || active === undefined)
8106
+ return;
8107
+ if (this.sectionEls().length === 0)
8108
+ return;
8109
+ untracked(() => {
8110
+ if (active === this.spiedValue)
8111
+ return;
8112
+ this.scrollToSection(active);
8113
+ });
8114
+ });
8115
+ this.destroyRef.onDestroy(() => clearTimeout(this.programmaticScrollTimer));
8116
+ }
8117
+ // ── Handlers ──────────────────────────────────────────────────────────────
8118
+ select(tab) {
8119
+ if (tab.disabled())
8120
+ return;
8121
+ if (tab.value() === this.activeValue()) {
8122
+ // Click lại tab đang active (vd sau khi đã cuộn lệch) → vẫn cuộn về đầu section
8123
+ if (this.scrollSpy())
8124
+ this.scrollToSection(tab.value());
8125
+ return;
8126
+ }
8127
+ this.spiedValue = undefined;
8128
+ this.value.set(tab.value());
8129
+ }
8130
+ onNavKeydown(event, index) {
8131
+ const tabs = this.tabs();
8132
+ const enabled = tabs.map((t, i) => (t.disabled() ? -1 : i)).filter((i) => i >= 0);
8133
+ if (enabled.length === 0)
8134
+ return;
8135
+ let target;
8136
+ const pos = enabled.indexOf(index);
8137
+ switch (event.key) {
8138
+ case 'ArrowDown':
8139
+ target = enabled[(pos + 1) % enabled.length];
8140
+ break;
8141
+ case 'ArrowUp':
8142
+ target = enabled[(pos - 1 + enabled.length) % enabled.length];
8143
+ break;
8144
+ case 'Home':
8145
+ target = enabled[0];
8146
+ break;
8147
+ case 'End':
8148
+ target = enabled[enabled.length - 1];
8149
+ break;
8150
+ default:
8151
+ return;
8152
+ }
8153
+ event.preventDefault();
8154
+ this.navItemEls()[target]?.nativeElement.focus();
8155
+ if (this.selectOnFocus())
8156
+ this.select(tabs[target]);
8157
+ }
8158
+ onContentScroll() {
8159
+ if (!this.scrollSpy())
8160
+ return;
8161
+ if (this.programmaticScroll) {
8162
+ // Mỗi event scroll gia hạn timer — hết cuộn ~120ms thì bật lại scroll-spy
8163
+ this.armProgrammaticScrollTimer();
8164
+ return;
8165
+ }
8166
+ const container = this.contentEl()?.nativeElement;
8167
+ const sections = this.sectionEls();
8168
+ if (!container || sections.length === 0)
8169
+ return;
8170
+ let index = 0;
8171
+ const atBottom = container.scrollTop + container.clientHeight >= container.scrollHeight - 1;
8172
+ if (atBottom) {
8173
+ index = sections.length - 1;
8174
+ }
8175
+ else {
8176
+ const mark = container.scrollTop + SCROLL_SPY_OFFSET;
8177
+ sections.forEach((s, i) => {
8178
+ if (s.nativeElement.offsetTop <= mark)
8179
+ index = i;
8180
+ });
8181
+ }
8182
+ const next = this.tabs()[index]?.value();
8183
+ if (next === undefined || next === this.activeValue())
8184
+ return;
8185
+ this.spiedValue = next;
8186
+ this.value.set(next);
8187
+ }
8188
+ // ── Helpers ───────────────────────────────────────────────────────────────
8189
+ scrollToSection(value) {
8190
+ const container = this.contentEl()?.nativeElement;
8191
+ const index = this.tabs().findIndex((t) => t.value() === value);
8192
+ const section = this.sectionEls()[index]?.nativeElement;
8193
+ if (!container || !section)
8194
+ return;
8195
+ const paddingTop = parseFloat(getComputedStyle(container).paddingTop) || 0;
8196
+ const top = Math.max(0, section.offsetTop - paddingTop);
8197
+ if (Math.abs(container.scrollTop - top) < 1)
8198
+ return;
8199
+ this.programmaticScroll = true;
8200
+ this.armProgrammaticScrollTimer();
8201
+ container.scrollTo({ top, behavior: 'smooth' });
8202
+ }
8203
+ armProgrammaticScrollTimer() {
8204
+ clearTimeout(this.programmaticScrollTimer);
8205
+ this.programmaticScrollTimer = setTimeout(() => (this.programmaticScroll = false), 120);
8034
8206
  }
8035
8207
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8036
- 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: `
8037
- <p-tabs
8038
- [value]="value()"
8039
- (valueChange)="value.set($event)"
8040
- [scrollable]="scrollable()"
8041
- [lazy]="lazy()"
8042
- [selectOnFocus]="selectOnFocus()"
8043
- [showNavigators]="showNavigators()"
8044
- >
8045
- <!-- ── Tab headers ───────────────────────────────────────────────── -->
8046
- <p-tablist>
8208
+ 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: `
8209
+ <!-- ── Header content (dùng chung cho tab ngang + menu dọc) ─────────── -->
8210
+ <ng-template #headerTpl let-tab>
8211
+ @if (tab.icon() && tab.iconPos() === 'left') {
8212
+ <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--left"></i>
8213
+ }
8214
+ <span class="asc-tab-label">{{ tab.label() }}</span>
8215
+ @if (tab.icon() && tab.iconPos() === 'right') {
8216
+ <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--right"></i>
8217
+ }
8218
+ @if (tab.badge() !== undefined && tab.badge() !== null) {
8219
+ <span class="asc-tab-badge">{{ tab.badge() }}</span>
8220
+ }
8221
+ </ng-template>
8222
+
8223
+ @if (orientation() === 'vertical') {
8224
+ <!-- ── Vertical ─────────────────────────────────────────────────── -->
8225
+ <div class="asc-vtabs-nav" role="tablist" aria-orientation="vertical">
8047
8226
  @for (tab of tabs(); track tab.value()) {
8048
- <p-tab [value]="tab.value()" [disabled]="tab.disabled()">
8049
- @if (tab.icon() && tab.iconPos() === 'left') {
8050
- <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--left"></i>
8051
- }
8052
- <span>{{ tab.label() }}</span>
8053
- @if (tab.icon() && tab.iconPos() === 'right') {
8054
- <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--right"></i>
8055
- }
8056
- @if (tab.badge() !== undefined && tab.badge() !== null) {
8057
- <span class="asc-tab-badge">{{ tab.badge() }}</span>
8058
- }
8059
- </p-tab>
8227
+ <button
8228
+ #navItem
8229
+ type="button"
8230
+ role="tab"
8231
+ class="asc-vtabs-item"
8232
+ [class.asc-vtabs-item--active]="tab.value() === activeValue()"
8233
+ [attr.aria-selected]="tab.value() === activeValue()"
8234
+ [attr.tabindex]="tab.value() === activeValue() ? 0 : -1"
8235
+ [disabled]="tab.disabled()"
8236
+ (click)="select(tab)"
8237
+ (keydown)="onNavKeydown($event, $index)"
8238
+ >
8239
+ <ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
8240
+ </button>
8060
8241
  }
8061
- </p-tablist>
8242
+ </div>
8062
8243
 
8063
- <!-- ── Tab panels ────────────────────────────────────────────────── -->
8064
- <p-tabpanels>
8244
+ <div #content class="asc-vtabs-content" (scroll)="onContentScroll()">
8065
8245
  @for (tab of tabs(); track tab.value()) {
8066
- <p-tabpanel [value]="tab.value()">
8067
- <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8068
- </p-tabpanel>
8246
+ @if (scrollSpy()) {
8247
+ <section #section class="asc-vtabs-section" role="tabpanel" [attr.aria-label]="tab.label()">
8248
+ @if (showSectionTitle()) {
8249
+ <h3 class="asc-vtabs-section-title">{{ tab.label() }}</h3>
8250
+ }
8251
+ <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8252
+ </section>
8253
+ } @else if (!lazy() || visited().has(tab.value())) {
8254
+ <div class="asc-vtabs-panel" role="tabpanel" [hidden]="tab.value() !== activeValue()">
8255
+ <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8256
+ </div>
8257
+ }
8069
8258
  }
8070
- </p-tabpanels>
8071
- </p-tabs>
8072
- `, 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{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}\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 }); }
8259
+ </div>
8260
+ } @else {
8261
+ <!-- ── Horizontal (PrimeNG Tabs) ─────────────────────────────────── -->
8262
+ <p-tabs
8263
+ [value]="value()"
8264
+ (valueChange)="value.set($event)"
8265
+ [scrollable]="scrollable()"
8266
+ [lazy]="lazy()"
8267
+ [selectOnFocus]="selectOnFocus()"
8268
+ [showNavigators]="showNavigators()"
8269
+ >
8270
+ <p-tablist>
8271
+ @for (tab of tabs(); track tab.value()) {
8272
+ <p-tab [value]="tab.value()" [disabled]="tab.disabled()">
8273
+ <ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
8274
+ </p-tab>
8275
+ }
8276
+ </p-tablist>
8277
+
8278
+ <p-tabpanels>
8279
+ @for (tab of tabs(); track tab.value()) {
8280
+ <p-tabpanel [value]="tab.value()">
8281
+ <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8282
+ </p-tabpanel>
8283
+ }
8284
+ </p-tabpanels>
8285
+ </p-tabs>
8286
+ }
8287
+ `, 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 }); }
8073
8288
  }
8074
8289
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscTabsComponent, decorators: [{
8075
8290
  type: Component,
8076
8291
  args: [{ selector: 'asc-tabs', standalone: true, imports: [NgTemplateOutlet, TabsModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
8077
8292
  '[class]': 'hostCls()',
8293
+ '[style.--asc-vtabs-nav-width]': 'navWidth()',
8078
8294
  }, template: `
8079
- <p-tabs
8080
- [value]="value()"
8081
- (valueChange)="value.set($event)"
8082
- [scrollable]="scrollable()"
8083
- [lazy]="lazy()"
8084
- [selectOnFocus]="selectOnFocus()"
8085
- [showNavigators]="showNavigators()"
8086
- >
8087
- <!-- ── Tab headers ───────────────────────────────────────────────── -->
8088
- <p-tablist>
8295
+ <!-- ── Header content (dùng chung cho tab ngang + menu dọc) ─────────── -->
8296
+ <ng-template #headerTpl let-tab>
8297
+ @if (tab.icon() && tab.iconPos() === 'left') {
8298
+ <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--left"></i>
8299
+ }
8300
+ <span class="asc-tab-label">{{ tab.label() }}</span>
8301
+ @if (tab.icon() && tab.iconPos() === 'right') {
8302
+ <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--right"></i>
8303
+ }
8304
+ @if (tab.badge() !== undefined && tab.badge() !== null) {
8305
+ <span class="asc-tab-badge">{{ tab.badge() }}</span>
8306
+ }
8307
+ </ng-template>
8308
+
8309
+ @if (orientation() === 'vertical') {
8310
+ <!-- ── Vertical ─────────────────────────────────────────────────── -->
8311
+ <div class="asc-vtabs-nav" role="tablist" aria-orientation="vertical">
8089
8312
  @for (tab of tabs(); track tab.value()) {
8090
- <p-tab [value]="tab.value()" [disabled]="tab.disabled()">
8091
- @if (tab.icon() && tab.iconPos() === 'left') {
8092
- <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--left"></i>
8093
- }
8094
- <span>{{ tab.label() }}</span>
8095
- @if (tab.icon() && tab.iconPos() === 'right') {
8096
- <i [class]="tab.icon()" class="asc-tab-icon asc-tab-icon--right"></i>
8097
- }
8098
- @if (tab.badge() !== undefined && tab.badge() !== null) {
8099
- <span class="asc-tab-badge">{{ tab.badge() }}</span>
8100
- }
8101
- </p-tab>
8313
+ <button
8314
+ #navItem
8315
+ type="button"
8316
+ role="tab"
8317
+ class="asc-vtabs-item"
8318
+ [class.asc-vtabs-item--active]="tab.value() === activeValue()"
8319
+ [attr.aria-selected]="tab.value() === activeValue()"
8320
+ [attr.tabindex]="tab.value() === activeValue() ? 0 : -1"
8321
+ [disabled]="tab.disabled()"
8322
+ (click)="select(tab)"
8323
+ (keydown)="onNavKeydown($event, $index)"
8324
+ >
8325
+ <ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
8326
+ </button>
8102
8327
  }
8103
- </p-tablist>
8328
+ </div>
8104
8329
 
8105
- <!-- ── Tab panels ────────────────────────────────────────────────── -->
8106
- <p-tabpanels>
8330
+ <div #content class="asc-vtabs-content" (scroll)="onContentScroll()">
8107
8331
  @for (tab of tabs(); track tab.value()) {
8108
- <p-tabpanel [value]="tab.value()">
8109
- <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8110
- </p-tabpanel>
8332
+ @if (scrollSpy()) {
8333
+ <section #section class="asc-vtabs-section" role="tabpanel" [attr.aria-label]="tab.label()">
8334
+ @if (showSectionTitle()) {
8335
+ <h3 class="asc-vtabs-section-title">{{ tab.label() }}</h3>
8336
+ }
8337
+ <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8338
+ </section>
8339
+ } @else if (!lazy() || visited().has(tab.value())) {
8340
+ <div class="asc-vtabs-panel" role="tabpanel" [hidden]="tab.value() !== activeValue()">
8341
+ <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8342
+ </div>
8343
+ }
8111
8344
  }
8112
- </p-tabpanels>
8113
- </p-tabs>
8114
- `, 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{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}\n"] }]
8115
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], 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 }] }] } });
8345
+ </div>
8346
+ } @else {
8347
+ <!-- ── Horizontal (PrimeNG Tabs) ─────────────────────────────────── -->
8348
+ <p-tabs
8349
+ [value]="value()"
8350
+ (valueChange)="value.set($event)"
8351
+ [scrollable]="scrollable()"
8352
+ [lazy]="lazy()"
8353
+ [selectOnFocus]="selectOnFocus()"
8354
+ [showNavigators]="showNavigators()"
8355
+ >
8356
+ <p-tablist>
8357
+ @for (tab of tabs(); track tab.value()) {
8358
+ <p-tab [value]="tab.value()" [disabled]="tab.disabled()">
8359
+ <ng-container [ngTemplateOutlet]="headerTpl" [ngTemplateOutletContext]="{ $implicit: tab }" />
8360
+ </p-tab>
8361
+ }
8362
+ </p-tablist>
8363
+
8364
+ <p-tabpanels>
8365
+ @for (tab of tabs(); track tab.value()) {
8366
+ <p-tabpanel [value]="tab.value()">
8367
+ <ng-container [ngTemplateOutlet]="tab._contentTpl()" />
8368
+ </p-tabpanel>
8369
+ }
8370
+ </p-tabpanels>
8371
+ </p-tabs>
8372
+ }
8373
+ `, 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"] }]
8374
+ }], 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 }] }] } });
8116
8375
 
8117
8376
  /**
8118
8377
  * Đặt nội dung của từng step bên trong directive này.
@@ -9799,10 +10058,15 @@ class AppSidebar {
9799
10058
 
9800
10059
  <div class="layout-sidebar">
9801
10060
  @if (sideBarLogo()) {
9802
- <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
10061
+ <div class="layout-sidebar-logo">
10062
+ <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
10063
+ </div>
9803
10064
  }
9804
- <asc-menu [model]="menuItems()"></asc-menu>
9805
- <ng-content></ng-content>
10065
+ <!-- Cuộn ở lớp trong để scrollbar bị clip theo border-radius của .layout-sidebar -->
10066
+ <div class="layout-sidebar-content">
10067
+ <asc-menu [model]="menuItems()"></asc-menu>
10068
+ <ng-content></ng-content>
10069
+ </div>
9806
10070
  </div>
9807
10071
  `, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "asc-menu", inputs: ["model"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9808
10072
  }
@@ -9817,10 +10081,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
9817
10081
 
9818
10082
  <div class="layout-sidebar">
9819
10083
  @if (sideBarLogo()) {
9820
- <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
10084
+ <div class="layout-sidebar-logo">
10085
+ <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
10086
+ </div>
9821
10087
  }
9822
- <asc-menu [model]="menuItems()"></asc-menu>
9823
- <ng-content></ng-content>
10088
+ <!-- Cuộn ở lớp trong để scrollbar bị clip theo border-radius của .layout-sidebar -->
10089
+ <div class="layout-sidebar-content">
10090
+ <asc-menu [model]="menuItems()"></asc-menu>
10091
+ <ng-content></ng-content>
10092
+ </div>
9824
10093
  </div>
9825
10094
  `,
9826
10095
  }]