@aseansc/ui 5.10.0 → 5.12.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.
@@ -89,7 +89,7 @@ import { Accordion, AccordionPanel, AccordionHeader, AccordionContent } from 'pr
89
89
  import { ProgressSpinner } from 'primeng/progressspinner';
90
90
  import { ProgressBar } from 'primeng/progressbar';
91
91
  import * as i1$a from '@angular/router';
92
- import { RouterModule, NavigationEnd, Router, ActivatedRoute } from '@angular/router';
92
+ import { RouterModule, PRIMARY_OUTLET, NavigationEnd, Router, ActivatedRoute } from '@angular/router';
93
93
  import { StyleClassModule } from 'primeng/styleclass';
94
94
  import { Breadcrumb } from 'primeng/breadcrumb';
95
95
 
@@ -127,6 +127,8 @@ const ASC_UI_DEFAULT_CONFIG = {
127
127
  },
128
128
  layout: {
129
129
  showFooter: true,
130
+ sidebarCollapse: 'hidden',
131
+ menuActiveMatch: 'exact',
130
132
  },
131
133
  button: {
132
134
  size: 'md',
@@ -569,6 +571,45 @@ const ASC_PRESET = definePreset(Aura, {
569
571
  light: { root: { placeholderColor: '{grey.500}' } },
570
572
  dark: { root: { placeholderColor: '{grey.300}' } },
571
573
  },
574
+ // Option dài (tên TCPH…) — SEAHDR-496: PrimeNG nở khung theo option dài nhất rồi đẩy sang trái
575
+ // cho vừa màn → khung rộng cả màn hình. Chặn max-width, option xuống dòng (trừ virtual scroll:
576
+ // chiều cao option cố định).
577
+ css: `
578
+ .p-select-overlay {
579
+ max-width: var(--asc-overlay-max-width, min(30rem, calc(100vw - 2rem)));
580
+ }
581
+ .p-select-overlay:not(:has(.p-virtualscroller)) .p-select-option {
582
+ white-space: normal;
583
+ overflow-wrap: anywhere;
584
+ }
585
+ `,
586
+ },
587
+ // AutoComplete — SEAHDR-522: option dài bị cắt + cuộn ngang. Khung tối thiểu rộng bằng ô nhập
588
+ // (PrimeNG), nở theo chữ tới max-width, option xuống dòng. Riêng virtual scroll (lazy): scroller
589
+ // `contain: strict` + chiều cao option cố định → khung không nở theo chữ, không xuống dòng được →
590
+ // đặt rộng sẵn --asc-autocomplete-virtual-overlay-width (20rem) và cắt chữ bằng dấu …
591
+ autocomplete: {
592
+ css: `
593
+ .p-autocomplete-overlay {
594
+ max-width: var(--asc-overlay-max-width, min(30rem, calc(100vw - 2rem)));
595
+ }
596
+ .p-autocomplete-overlay:not(:has(.p-virtualscroller)) .p-autocomplete-option {
597
+ white-space: normal;
598
+ overflow-wrap: anywhere;
599
+ }
600
+ .p-autocomplete-overlay:has(.p-virtualscroller) {
601
+ width: var(--asc-autocomplete-virtual-overlay-width, 20rem);
602
+ }
603
+ .p-autocomplete-overlay .p-virtualscroller .p-autocomplete-option > span {
604
+ min-width: 0;
605
+ overflow: hidden;
606
+ text-overflow: ellipsis;
607
+ }
608
+ .p-autocomplete-overlay .p-virtualscroller-content {
609
+ min-width: 0;
610
+ width: 100%;
611
+ }
612
+ `,
572
613
  },
573
614
  multiselect: {
574
615
  extend: {
@@ -655,6 +696,23 @@ const ASC_PRESET = definePreset(Aura, {
655
696
  borderRadius: '8px',
656
697
  shadow: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
657
698
  },
699
+ // Tiêu đề card (asc-card [title] → .p-card-title) — UX SeAHolder: 14px / 400
700
+ // (Aura 1.25rem = 17.5px vì html 14px). App ghi đè: --p-card-title-font-size / --p-card-title-font-weight.
701
+ title: {
702
+ fontSize: '14px',
703
+ fontWeight: '400',
704
+ },
705
+ },
706
+ // Popover (asc-popover: Bộ lọc nâng cao, menu user…) — UX: bo 16px liền mạch với nút pill,
707
+ // padding nội dung 12px (Aura 0.75rem = 10.5px). App ghi đè: --p-popover-border-radius /
708
+ // --p-popover-content-padding.
709
+ popover: {
710
+ root: {
711
+ borderRadius: '16px',
712
+ },
713
+ content: {
714
+ padding: '12px',
715
+ },
658
716
  },
659
717
  dialog: {
660
718
  extend: {
@@ -2974,7 +3032,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
2974
3032
 
2975
3033
  // Path lấy từ ./svg/*.svg — sửa SVG thì chép lại path tương ứng vào đây.
2976
3034
  // - approve/view/edit/delete/search: bộ icon thao tác của designer, viewBox 0 0 20 20.
2977
- // - more/caret-down/caret-right: Phosphor Regular (MIT), viewBox 0 0 256 256 — xem ASC_BUILTIN_ICON_VIEWBOX.
3035
+ // - more/caret-down/caret-right/calendar-dots: Phosphor Regular (MIT), viewBox 0 0 256 256 — xem ASC_BUILTIN_ICON_VIEWBOX.
2978
3036
  /** viewBox mặc định của icon dựng sẵn. */
2979
3037
  const ASC_BUILTIN_ICON_DEFAULT_VIEWBOX = '0 0 20 20';
2980
3038
  /** viewBox riêng của icon không theo lưới 20 (icon Phosphor lưới 256). */
@@ -2982,6 +3040,7 @@ const ASC_BUILTIN_ICON_VIEWBOX = {
2982
3040
  more: '0 0 256 256',
2983
3041
  'caret-down': '0 0 256 256',
2984
3042
  'caret-right': '0 0 256 256',
3043
+ 'calendar-dots': '0 0 256 256',
2985
3044
  };
2986
3045
  /** Path data của từng icon — render với fill="currentColor". viewBox: xem ASC_BUILTIN_ICON_VIEWBOX. */
2987
3046
  const ASC_BUILTIN_ICONS = {
@@ -2996,6 +3055,8 @@ const ASC_BUILTIN_ICONS = {
2996
3055
  'caret-down': 'M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z',
2997
3056
  // Phosphor CaretRight (Regular)
2998
3057
  'caret-right': 'M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z',
3058
+ // Phosphor CalendarDots (Regular) — icon lịch của asc-datepicker
3059
+ 'calendar-dots': 'M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-68-76a12,12,0,1,1-12-12A12,12,0,0,1,140,132Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,132ZM96,172a12,12,0,1,1-12-12A12,12,0,0,1,96,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,172Z',
2999
3060
  };
3000
3061
 
3001
3062
  /** Class PrimeIcons cũ → icon dựng sẵn tương ứng (để `icon="pi pi-trash"` tự đổi sang bộ icon mới). */
@@ -3871,7 +3932,7 @@ class AscSelectComponent extends BaseControlAccessor {
3871
3932
  </p-select>
3872
3933
  }
3873
3934
  }
3874
- `, isInline: true, styles: [":host{display:block;width:100%}.asc-select-filter-icon{color:var(--asc-icon-secondary)}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}:host(.asc-select--xs){--asc-select-font-size: var(--asc-control-font-size-xs);--asc-select-line-height: var(--asc-control-line-height-xs)}:host(.asc-select--sm){--asc-select-font-size: var(--asc-control-font-size-sm);--asc-select-line-height: var(--asc-control-line-height-sm)}:host(.asc-select--md){--asc-select-font-size: var(--asc-control-font-size-md);--asc-select-line-height: var(--asc-control-line-height-md)}:host(.asc-select--lg){--asc-select-font-size: var(--asc-control-font-size-lg);--asc-select-line-height: var(--asc-control-line-height-lg)}:host(.asc-select--xl){--asc-select-font-size: var(--asc-control-font-size-xl);--asc-select-line-height: var(--asc-control-line-height-xl)}.asc-select-view{font-size:var(--asc-select-font-size);line-height:var(--asc-select-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-dropdown,:host ::ng-deep .p-multiselect-dropdown{--p-icon-size: 13px}:host ::ng-deep .p-select-dropdown-icon,:host ::ng-deep .p-multiselect-dropdown-icon{font-size:13px}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3935
+ `, isInline: true, styles: [":host{display:block;width:100%;min-width:0}.asc-select-filter-icon{color:var(--asc-icon-secondary)}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}:host(.asc-select--xs){--asc-select-font-size: var(--asc-control-font-size-xs);--asc-select-line-height: var(--asc-control-line-height-xs)}:host(.asc-select--sm){--asc-select-font-size: var(--asc-control-font-size-sm);--asc-select-line-height: var(--asc-control-line-height-sm)}:host(.asc-select--md){--asc-select-font-size: var(--asc-control-font-size-md);--asc-select-line-height: var(--asc-control-line-height-md)}:host(.asc-select--lg){--asc-select-font-size: var(--asc-control-font-size-lg);--asc-select-line-height: var(--asc-control-line-height-lg)}:host(.asc-select--xl){--asc-select-font-size: var(--asc-control-font-size-xl);--asc-select-line-height: var(--asc-control-line-height-xl)}.asc-select-view{font-size:var(--asc-select-font-size);line-height:var(--asc-select-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-dropdown,:host ::ng-deep .p-multiselect-dropdown{--p-icon-size: 13px}:host ::ng-deep .p-select-dropdown-icon,:host ::ng-deep .p-multiselect-dropdown-icon{font-size:13px}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$3.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$2.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3875
3936
  }
3876
3937
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscSelectComponent, decorators: [{
3877
3938
  type: Component,
@@ -4053,7 +4114,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
4053
4114
  </p-select>
4054
4115
  }
4055
4116
  }
4056
- `, styles: [":host{display:block;width:100%}.asc-select-filter-icon{color:var(--asc-icon-secondary)}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}:host(.asc-select--xs){--asc-select-font-size: var(--asc-control-font-size-xs);--asc-select-line-height: var(--asc-control-line-height-xs)}:host(.asc-select--sm){--asc-select-font-size: var(--asc-control-font-size-sm);--asc-select-line-height: var(--asc-control-line-height-sm)}:host(.asc-select--md){--asc-select-font-size: var(--asc-control-font-size-md);--asc-select-line-height: var(--asc-control-line-height-md)}:host(.asc-select--lg){--asc-select-font-size: var(--asc-control-font-size-lg);--asc-select-line-height: var(--asc-control-line-height-lg)}:host(.asc-select--xl){--asc-select-font-size: var(--asc-control-font-size-xl);--asc-select-line-height: var(--asc-control-line-height-xl)}.asc-select-view{font-size:var(--asc-select-font-size);line-height:var(--asc-select-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-dropdown,:host ::ng-deep .p-multiselect-dropdown{--p-icon-size: 13px}:host ::ng-deep .p-select-dropdown-icon,:host ::ng-deep .p-multiselect-dropdown-icon{font-size:13px}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
4117
+ `, styles: [":host{display:block;width:100%;min-width:0}.asc-select-filter-icon{color:var(--asc-icon-secondary)}:host ::ng-deep p-select,:host ::ng-deep p-multiselect,:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{width:100%}:host(.asc-select--xs){--asc-select-font-size: var(--asc-control-font-size-xs);--asc-select-line-height: var(--asc-control-line-height-xs)}:host(.asc-select--sm){--asc-select-font-size: var(--asc-control-font-size-sm);--asc-select-line-height: var(--asc-control-line-height-sm)}:host(.asc-select--md){--asc-select-font-size: var(--asc-control-font-size-md);--asc-select-line-height: var(--asc-control-line-height-md)}:host(.asc-select--lg){--asc-select-font-size: var(--asc-control-font-size-lg);--asc-select-line-height: var(--asc-control-line-height-lg)}:host(.asc-select--xl){--asc-select-font-size: var(--asc-control-font-size-xl);--asc-select-line-height: var(--asc-control-line-height-xl)}.asc-select-view{font-size:var(--asc-select-font-size);line-height:var(--asc-select-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}:host ::ng-deep .p-select,:host ::ng-deep .p-multiselect{transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host ::ng-deep .p-multiselect-label-container{display:flex;align-items:center}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xs);border-radius:12px}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-sm);border-radius:12px}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-md);border-radius:12px}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 8px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-lg);border-radius:12px}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 10px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select{height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect{min-height:var(--asc-h-xl);border-radius:12px}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label,:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-multiselect-label{padding:0 12px;font-size:var(--asc-select-font-size);font-weight:400;line-height:var(--asc-select-line-height);display:block;align-content:center}:host ::ng-deep .p-select-label,:host ::ng-deep .p-multiselect-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}:host ::ng-deep .p-multiselect-label{flex:1 1 auto}:host(.asc-select--multi) ::ng-deep .p-multiselect-display-chip .p-multiselect-label{display:flex;align-items:center}:host(.asc-select--xs) ::ng-deep .p-select-label,:host(.asc-select--xs) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--sm) ::ng-deep .p-select-label,:host(.asc-select--sm) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--md) ::ng-deep .p-select-label,:host(.asc-select--md) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--lg) ::ng-deep .p-select-label,:host(.asc-select--lg) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xl) ::ng-deep .p-select-label,:host(.asc-select--xl) ::ng-deep .p-multiselect-label{line-height:var(--asc-select-line-height)}:host(.asc-select--xs:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xs)}:host(.asc-select--sm:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-sm)}:host(.asc-select--md:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-md)}:host(.asc-select--lg:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-lg)}:host(.asc-select--xl:not(.asc-select--float-in)) ::ng-deep .p-select-label{height:var(--asc-h-xl)}:host{--p-icon-size: 20px}:host(.asc-select--xs){--p-icon-size: 14px}:host(.asc-select--xl){--p-icon-size: 24px}:host ::ng-deep .p-select-overlay,:host ::ng-deep .p-multiselect-overlay{--p-icon-size: 1rem}:host ::ng-deep .p-select-dropdown,:host ::ng-deep .p-multiselect-dropdown{--p-icon-size: 13px}:host ::ng-deep .p-select-dropdown-icon,:host ::ng-deep .p-multiselect-dropdown-icon{font-size:13px}:host ::ng-deep .p-select-clear-icon,:host ::ng-deep .p-multiselect-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF);cursor:pointer}:host ::ng-deep .p-select-clear-icon:hover,:host ::ng-deep .p-multiselect-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-select--disabled) ::ng-deep .p-select,:host(.asc-select--disabled) ::ng-deep .p-multiselect{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5)}:host(.asc-select--invalid) ::ng-deep .p-select,:host(.asc-select--invalid) ::ng-deep .p-multiselect{border-color:var(--asc-border-color-invalid)!important}:host(.asc-select--invalid) ::ng-deep .p-select:focus-within,:host(.asc-select--invalid) ::ng-deep .p-multiselect:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}\n"] }]
4057
4118
  }], 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"] }] } });
4058
4119
 
4059
4120
  // ─────────────────────────────────────────────────────────────────────────────
@@ -4353,7 +4414,12 @@ class AscDatepickerComponent extends BaseControlAccessor {
4353
4414
  (onClearClick)="clearClick.emit($event)"
4354
4415
  (onMonthChange)="viewDateChange.emit($event)"
4355
4416
  (onYearChange)="viewDateChange.emit($event)"
4356
- ></p-datepicker>
4417
+ >
4418
+ <!-- Figma: icon lịch Phosphor CalendarDots (thay icon PrimeIcons) — cỡ theo --p-icon-size của size ô -->
4419
+ <ng-template #inputicon let-clickCallBack="clickCallBack">
4420
+ <asc-svg-icon name="calendar-dots" size="var(--p-icon-size)" class="p-datepicker-input-icon" (click)="clickCallBack($event)" />
4421
+ </ng-template>
4422
+ </p-datepicker>
4357
4423
  <label [for]="pickerId()">{{ label() }}</label>
4358
4424
  </p-floatlabel>
4359
4425
  } @else {
@@ -4392,13 +4458,18 @@ class AscDatepickerComponent extends BaseControlAccessor {
4392
4458
  (onClearClick)="clearClick.emit($event)"
4393
4459
  (onMonthChange)="viewDateChange.emit($event)"
4394
4460
  (onYearChange)="viewDateChange.emit($event)"
4395
- ></p-datepicker>
4461
+ >
4462
+ <!-- Figma: icon lịch Phosphor CalendarDots (thay icon PrimeIcons) — cỡ theo --p-icon-size của size ô -->
4463
+ <ng-template #inputicon let-clickCallBack="clickCallBack">
4464
+ <asc-svg-icon name="calendar-dots" size="var(--p-icon-size)" class="p-datepicker-input-icon" (click)="clickCallBack($event)" />
4465
+ </ng-template>
4466
+ </p-datepicker>
4396
4467
  }
4397
- `, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-secondary)}:host(.asc-datepicker--filled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-primary)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-disabled)}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5);color:var(--asc-text-disabled)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input::placeholder{color:var(--asc-text-disabled)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}:host(.asc-datepicker--xs){--asc-datepicker-font-size: var(--asc-control-font-size-xs);--asc-datepicker-line-height: var(--asc-control-line-height-xs)}:host(.asc-datepicker--sm){--asc-datepicker-font-size: var(--asc-control-font-size-sm);--asc-datepicker-line-height: var(--asc-control-line-height-sm)}:host(.asc-datepicker--md){--asc-datepicker-font-size: var(--asc-control-font-size-md);--asc-datepicker-line-height: var(--asc-control-line-height-md)}:host(.asc-datepicker--lg){--asc-datepicker-font-size: var(--asc-control-font-size-lg);--asc-datepicker-line-height: var(--asc-control-line-height-lg)}:host(.asc-datepicker--xl){--asc-datepicker-font-size: var(--asc-control-font-size-xl);--asc-datepicker-line-height: var(--asc-control-line-height-xl)}.asc-datepicker-view{font-size:var(--asc-datepicker-font-size);line-height:var(--asc-datepicker-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4468
+ `, isInline: true, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-secondary)}:host(.asc-datepicker--filled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-primary)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-disabled)}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5);color:var(--asc-text-disabled)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input::placeholder{color:var(--asc-text-disabled)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}:host(.asc-datepicker--xs){--asc-datepicker-font-size: var(--asc-control-font-size-xs);--asc-datepicker-line-height: var(--asc-control-line-height-xs)}:host(.asc-datepicker--sm){--asc-datepicker-font-size: var(--asc-control-font-size-sm);--asc-datepicker-line-height: var(--asc-control-line-height-sm)}:host(.asc-datepicker--md){--asc-datepicker-font-size: var(--asc-control-font-size-md);--asc-datepicker-line-height: var(--asc-control-line-height-md)}:host(.asc-datepicker--lg){--asc-datepicker-font-size: var(--asc-control-font-size-lg);--asc-datepicker-line-height: var(--asc-control-line-height-lg)}:host(.asc-datepicker--xl){--asc-datepicker-font-size: var(--asc-control-font-size-xl);--asc-datepicker-line-height: var(--asc-control-line-height-xl)}.asc-datepicker-view{font-size:var(--asc-datepicker-font-size);line-height:var(--asc-datepicker-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i3.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4398
4469
  }
4399
4470
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDatepickerComponent, decorators: [{
4400
4471
  type: Component,
4401
- args: [{ selector: 'asc-datepicker', standalone: true, imports: [FormsModule, DatePickerModule, FloatLabelModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
4472
+ args: [{ selector: 'asc-datepicker', standalone: true, imports: [FormsModule, DatePickerModule, FloatLabelModule, AscSvgIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
4402
4473
  {
4403
4474
  provide: ASC_BASE_CONTROL,
4404
4475
  useExisting: forwardRef(() => AscDatepickerComponent),
@@ -4445,7 +4516,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
4445
4516
  (onClearClick)="clearClick.emit($event)"
4446
4517
  (onMonthChange)="viewDateChange.emit($event)"
4447
4518
  (onYearChange)="viewDateChange.emit($event)"
4448
- ></p-datepicker>
4519
+ >
4520
+ <!-- Figma: icon lịch Phosphor CalendarDots (thay icon PrimeIcons) — cỡ theo --p-icon-size của size ô -->
4521
+ <ng-template #inputicon let-clickCallBack="clickCallBack">
4522
+ <asc-svg-icon name="calendar-dots" size="var(--p-icon-size)" class="p-datepicker-input-icon" (click)="clickCallBack($event)" />
4523
+ </ng-template>
4524
+ </p-datepicker>
4449
4525
  <label [for]="pickerId()">{{ label() }}</label>
4450
4526
  </p-floatlabel>
4451
4527
  } @else {
@@ -4484,7 +4560,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
4484
4560
  (onClearClick)="clearClick.emit($event)"
4485
4561
  (onMonthChange)="viewDateChange.emit($event)"
4486
4562
  (onYearChange)="viewDateChange.emit($event)"
4487
- ></p-datepicker>
4563
+ >
4564
+ <!-- Figma: icon lịch Phosphor CalendarDots (thay icon PrimeIcons) — cỡ theo --p-icon-size của size ô -->
4565
+ <ng-template #inputicon let-clickCallBack="clickCallBack">
4566
+ <asc-svg-icon name="calendar-dots" size="var(--p-icon-size)" class="p-datepicker-input-icon" (click)="clickCallBack($event)" />
4567
+ </ng-template>
4568
+ </p-datepicker>
4488
4569
  }
4489
4570
  `, styles: [":host{display:block;width:100%}::ng-deep p-datepicker,::ng-deep .p-datepicker{width:100%}::ng-deep .p-datepicker-input{width:100%;transition:border-color var(--asc-transition-fast),box-shadow var(--asc-transition-fast)}:host(.asc-datepicker--xs) ::ng-deep .p-datepicker-input{height:var(--asc-h-xs);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--sm) ::ng-deep .p-datepicker-input{height:var(--asc-h-sm);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--md) ::ng-deep .p-datepicker-input{height:var(--asc-h-md);padding-inline-start:8px;padding-inline-end:8px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--lg) ::ng-deep .p-datepicker-input{height:var(--asc-h-lg);padding-inline-start:10px;padding-inline-end:10px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host(.asc-datepicker--xl) ::ng-deep .p-datepicker-input{height:var(--asc-h-xl);padding-inline-start:12px;padding-inline-end:12px;border-radius:12px;font-size:var(--asc-datepicker-font-size);font-weight:400;line-height:var(--asc-datepicker-line-height)}:host ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-secondary)}:host(.asc-datepicker--filled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-primary)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input-icon{color:var(--asc-icon-disabled)}:host{--p-icon-size: 20px}:host(.asc-datepicker--xs){--p-icon-size: 14px}:host(.asc-datepicker--xl){--p-icon-size: 24px}:host ::ng-deep .p-datepicker-panel{--p-icon-size: 1rem}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input,:host ::ng-deep .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 2) + var(--p-icon-size))}:host ::ng-deep .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input{padding-inline-end:calc((var(--p-form-field-padding-x) * 3) + (var(--p-icon-size) * 2))}:host ::ng-deep .p-datepicker-clear-icon{box-sizing:border-box;padding:calc(var(--p-icon-size) / 4);margin-top:calc(var(--p-icon-size) / -2);border-radius:50%;background:var(--asc-input-clear-bg, #DEDFE0);color:var(--asc-input-clear-color, #FFFFFF)}:host ::ng-deep .p-datepicker-clear-icon:hover{background:var(--asc-input-clear-bg-hover, #C0C0C2)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input{border-color:var(--asc-formfield-disabled-border-color, #F2F3F5);color:var(--asc-text-disabled)}:host(.asc-datepicker--disabled) ::ng-deep .p-datepicker-input::placeholder{color:var(--asc-text-disabled)}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input{border-color:var(--asc-border-color-invalid)!important}:host(.asc-datepicker--invalid) ::ng-deep .p-datepicker-input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--asc-color-danger) 20%,transparent)}:host(.asc-datepicker--inline){width:auto}::ng-deep .p-datepicker-day-cell.p-datepicker-day-in-range{background:var(--asc-color-primary-lighter)}:host(.asc-datepicker--xs){--asc-datepicker-font-size: var(--asc-control-font-size-xs);--asc-datepicker-line-height: var(--asc-control-line-height-xs)}:host(.asc-datepicker--sm){--asc-datepicker-font-size: var(--asc-control-font-size-sm);--asc-datepicker-line-height: var(--asc-control-line-height-sm)}:host(.asc-datepicker--md){--asc-datepicker-font-size: var(--asc-control-font-size-md);--asc-datepicker-line-height: var(--asc-control-line-height-md)}:host(.asc-datepicker--lg){--asc-datepicker-font-size: var(--asc-control-font-size-lg);--asc-datepicker-line-height: var(--asc-control-line-height-lg)}:host(.asc-datepicker--xl){--asc-datepicker-font-size: var(--asc-control-font-size-xl);--asc-datepicker-line-height: var(--asc-control-line-height-xl)}.asc-datepicker-view{font-size:var(--asc-datepicker-font-size);line-height:var(--asc-datepicker-line-height);display:block;width:100%;min-height:20px;box-sizing:border-box;color:var(--asc-text-primary);word-break:break-word}\n"] }]
4490
4571
  }], propDecorators: { selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatLabelVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabelVariant", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], todayClick: [{ type: i0.Output, args: ["todayClick"] }], clearClick: [{ type: i0.Output, args: ["clearClick"] }] } });
@@ -7984,7 +8065,7 @@ class AscDialogComponent {
7984
8065
  this.showed.emit();
7985
8066
  }
7986
8067
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7987
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscDialogComponent, isStandalone: true, selector: "asc-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, headerIcon: { classPropertyName: "headerIcon", publicName: "headerIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, confirmSeverity: { classPropertyName: "confirmSeverity", publicName: "confirmSeverity", isSignal: true, isRequired: false, transformFunction: null }, confirmIcon: { classPropertyName: "confirmIcon", publicName: "confirmIcon", isSignal: true, isRequired: false, transformFunction: null }, confirmLoading: { classPropertyName: "confirmLoading", publicName: "confirmLoading", isSignal: true, isRequired: false, transformFunction: null }, confirmDisabled: { classPropertyName: "confirmDisabled", publicName: "confirmDisabled", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", confirmed: "confirmed", cancelled: "cancelled", showed: "showed", hidden: "hidden" }, queries: [{ propertyName: "headerTpl", first: true, predicate: AscDialogHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerTpl", first: true, predicate: AscDialogFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- @file asc-dialog.html -->\n<p-dialog\n [(visible)]=\"visible\"\n [modal]=\"modal()\"\n [closable]=\"closable()\"\n [closeOnEscape]=\"closeOnEscape()\"\n [dismissableMask]=\"dismissableMask()\"\n [maximizable]=\"maximizable()\"\n [draggable]=\"draggable()\"\n [resizable]=\"resizable()\"\n [position]=\"position()\"\n [style]=\"{ width: dialogWidth() }\"\n [styleClass]=\"dialogStyleClass()\"\n [contentStyleClass]=\"'asc-dialog-content'\"\n (onShow)=\"onShow()\"\n (onHide)=\"onHide()\"\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\u2500 -->\n <ng-template #header>\n @if (headerTpl()) {\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\n } @else {\n <div class=\"asc-dialog-header-default\">\n @if (headerIcon()) {\n <i [class]=\"headerIcon() + ' asc-dialog-header-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"asc-dialog-title\">{{ headerLabel() }}</span>\n </div>\n }\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\u2500 -->\n <ng-content />\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\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 #footer>\n @if (footerTpl()) {\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\n } @else if (showFooter()) {\n <div class=\"asc-dialog-footer-default\">\n <!-- H\u1EE7y: Outline thu\u1EA7n (kh\u00F4ng secondary) \u2014 Figma Button/Outline -->\n <asc-button\n [label]=\"resolvedCancelLabel()\"\n variant=\"outlined\"\n [disabled]=\"confirmLoading()\"\n (clicked)=\"onCancel()\"\n />\n <asc-button\n [label]=\"resolvedConfirmLabel()\"\n [severity]=\"confirmSeverity()\"\n [icon]=\"confirmIcon()\"\n [loading]=\"confirmLoading()\"\n [disabled]=\"confirmDisabled()\"\n (clicked)=\"onConfirm()\"\n />\n </div>\n }\n </ng-template>\n</p-dialog>\n", styles: [":host{display:contents}::ng-deep .asc-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}.asc-dialog-header-default{display:flex;align-items:center;gap:.625rem}.asc-dialog-header-icon{font-size:1.125rem;color:var(--p-primary-500)}.asc-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}.asc-dialog-footer-default{display:flex;align-items:center;justify-content:flex-end;gap:.625rem}\n"], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i1$3.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: AscButtonComponent, selector: "asc-button", inputs: ["label", "icon", "iconSrc", "iconPos", "severity", "variant", "size", "loading", "disabled", "raised", "fullWidth", "type", "tooltip", "tooltipPos", "ariaLabel", "styleClass", "rounded"], outputs: ["clicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8068
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscDialogComponent, isStandalone: true, selector: "asc-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, headerIcon: { classPropertyName: "headerIcon", publicName: "headerIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, confirmSeverity: { classPropertyName: "confirmSeverity", publicName: "confirmSeverity", isSignal: true, isRequired: false, transformFunction: null }, confirmIcon: { classPropertyName: "confirmIcon", publicName: "confirmIcon", isSignal: true, isRequired: false, transformFunction: null }, confirmLoading: { classPropertyName: "confirmLoading", publicName: "confirmLoading", isSignal: true, isRequired: false, transformFunction: null }, confirmDisabled: { classPropertyName: "confirmDisabled", publicName: "confirmDisabled", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", confirmed: "confirmed", cancelled: "cancelled", showed: "showed", hidden: "hidden" }, queries: [{ propertyName: "headerTpl", first: true, predicate: AscDialogHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerTpl", first: true, predicate: AscDialogFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- @file asc-dialog.html -->\r\n<p-dialog\r\n [(visible)]=\"visible\"\r\n [modal]=\"modal()\"\r\n [closable]=\"closable()\"\r\n [closeOnEscape]=\"closeOnEscape()\"\r\n [dismissableMask]=\"dismissableMask()\"\r\n [maximizable]=\"maximizable()\"\r\n [draggable]=\"draggable()\"\r\n [resizable]=\"resizable()\"\r\n [position]=\"position()\"\r\n [style]=\"{ width: dialogWidth() }\"\r\n [styleClass]=\"dialogStyleClass()\"\r\n [contentStyleClass]=\"'asc-dialog-content'\"\r\n (onShow)=\"onShow()\"\r\n (onHide)=\"onHide()\"\r\n>\r\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #header>\r\n @if (headerTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\r\n } @else {\r\n <div class=\"asc-dialog-header-default\">\r\n @if (headerIcon()) {\r\n <i [class]=\"headerIcon() + ' asc-dialog-header-icon'\" aria-hidden=\"true\"></i>\r\n }\r\n <span class=\"asc-dialog-title\">{{ headerLabel() }}</span>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-content />\r\n\r\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <!-- Kh\u00F4ng c\u00F3 footer (showFooter=false, kh\u00F4ng ascDialogFooter) \u2192 kh\u00F4ng khai template \u0111\u1EC3 p-dialog\r\n kh\u00F4ng render .p-dialog-footer r\u1ED7ng (margin + padding th\u1EEBa ~28px d\u01B0\u1EDBi \u0111\u00E1y) -->\r\n @if (footerTpl() || showFooter()) {\r\n <ng-template #footer>\r\n @if (footerTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\r\n } @else {\r\n <div class=\"asc-dialog-footer-default\">\r\n <!-- H\u1EE7y: Outline thu\u1EA7n (kh\u00F4ng secondary) \u2014 Figma Button/Outline -->\r\n <asc-button\r\n [label]=\"resolvedCancelLabel()\"\r\n variant=\"outlined\"\r\n [disabled]=\"confirmLoading()\"\r\n (clicked)=\"onCancel()\"\r\n />\r\n <asc-button\r\n [label]=\"resolvedConfirmLabel()\"\r\n [severity]=\"confirmSeverity()\"\r\n [icon]=\"confirmIcon()\"\r\n [loading]=\"confirmLoading()\"\r\n [disabled]=\"confirmDisabled()\"\r\n (clicked)=\"onConfirm()\"\r\n />\r\n </div>\r\n }\r\n </ng-template>\r\n }\r\n</p-dialog>\r\n", styles: [":host{display:contents}::ng-deep .asc-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}.asc-dialog-header-default{display:flex;align-items:center;gap:.625rem}.asc-dialog-header-icon{font-size:1.125rem;color:var(--p-primary-500)}.asc-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}.asc-dialog-footer-default{display:flex;align-items:center;justify-content:flex-end;gap:.625rem}\n"], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i1$3.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: AscButtonComponent, selector: "asc-button", inputs: ["label", "icon", "iconSrc", "iconPos", "severity", "variant", "size", "loading", "disabled", "raised", "fullWidth", "type", "tooltip", "tooltipPos", "ariaLabel", "styleClass", "rounded"], outputs: ["clicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7988
8069
  }
7989
8070
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscDialogComponent, decorators: [{
7990
8071
  type: Component,
@@ -7992,7 +8073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
7992
8073
  DialogModule,
7993
8074
  AscButtonComponent,
7994
8075
  NgTemplateOutlet,
7995
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- @file asc-dialog.html -->\n<p-dialog\n [(visible)]=\"visible\"\n [modal]=\"modal()\"\n [closable]=\"closable()\"\n [closeOnEscape]=\"closeOnEscape()\"\n [dismissableMask]=\"dismissableMask()\"\n [maximizable]=\"maximizable()\"\n [draggable]=\"draggable()\"\n [resizable]=\"resizable()\"\n [position]=\"position()\"\n [style]=\"{ width: dialogWidth() }\"\n [styleClass]=\"dialogStyleClass()\"\n [contentStyleClass]=\"'asc-dialog-content'\"\n (onShow)=\"onShow()\"\n (onHide)=\"onHide()\"\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\u2500 -->\n <ng-template #header>\n @if (headerTpl()) {\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\n } @else {\n <div class=\"asc-dialog-header-default\">\n @if (headerIcon()) {\n <i [class]=\"headerIcon() + ' asc-dialog-header-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"asc-dialog-title\">{{ headerLabel() }}</span>\n </div>\n }\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\u2500 -->\n <ng-content />\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\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 #footer>\n @if (footerTpl()) {\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\n } @else if (showFooter()) {\n <div class=\"asc-dialog-footer-default\">\n <!-- H\u1EE7y: Outline thu\u1EA7n (kh\u00F4ng secondary) \u2014 Figma Button/Outline -->\n <asc-button\n [label]=\"resolvedCancelLabel()\"\n variant=\"outlined\"\n [disabled]=\"confirmLoading()\"\n (clicked)=\"onCancel()\"\n />\n <asc-button\n [label]=\"resolvedConfirmLabel()\"\n [severity]=\"confirmSeverity()\"\n [icon]=\"confirmIcon()\"\n [loading]=\"confirmLoading()\"\n [disabled]=\"confirmDisabled()\"\n (clicked)=\"onConfirm()\"\n />\n </div>\n }\n </ng-template>\n</p-dialog>\n", styles: [":host{display:contents}::ng-deep .asc-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}.asc-dialog-header-default{display:flex;align-items:center;gap:.625rem}.asc-dialog-header-icon{font-size:1.125rem;color:var(--p-primary-500)}.asc-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}.asc-dialog-footer-default{display:flex;align-items:center;justify-content:flex-end;gap:.625rem}\n"] }]
8076
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- @file asc-dialog.html -->\r\n<p-dialog\r\n [(visible)]=\"visible\"\r\n [modal]=\"modal()\"\r\n [closable]=\"closable()\"\r\n [closeOnEscape]=\"closeOnEscape()\"\r\n [dismissableMask]=\"dismissableMask()\"\r\n [maximizable]=\"maximizable()\"\r\n [draggable]=\"draggable()\"\r\n [resizable]=\"resizable()\"\r\n [position]=\"position()\"\r\n [style]=\"{ width: dialogWidth() }\"\r\n [styleClass]=\"dialogStyleClass()\"\r\n [contentStyleClass]=\"'asc-dialog-content'\"\r\n (onShow)=\"onShow()\"\r\n (onHide)=\"onHide()\"\r\n>\r\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-template #header>\r\n @if (headerTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\r\n } @else {\r\n <div class=\"asc-dialog-header-default\">\r\n @if (headerIcon()) {\r\n <i [class]=\"headerIcon() + ' asc-dialog-header-icon'\" aria-hidden=\"true\"></i>\r\n }\r\n <span class=\"asc-dialog-title\">{{ headerLabel() }}</span>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <ng-content />\r\n\r\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\r\n <!-- Kh\u00F4ng c\u00F3 footer (showFooter=false, kh\u00F4ng ascDialogFooter) \u2192 kh\u00F4ng khai template \u0111\u1EC3 p-dialog\r\n kh\u00F4ng render .p-dialog-footer r\u1ED7ng (margin + padding th\u1EEBa ~28px d\u01B0\u1EDBi \u0111\u00E1y) -->\r\n @if (footerTpl() || showFooter()) {\r\n <ng-template #footer>\r\n @if (footerTpl()) {\r\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\r\n } @else {\r\n <div class=\"asc-dialog-footer-default\">\r\n <!-- H\u1EE7y: Outline thu\u1EA7n (kh\u00F4ng secondary) \u2014 Figma Button/Outline -->\r\n <asc-button\r\n [label]=\"resolvedCancelLabel()\"\r\n variant=\"outlined\"\r\n [disabled]=\"confirmLoading()\"\r\n (clicked)=\"onCancel()\"\r\n />\r\n <asc-button\r\n [label]=\"resolvedConfirmLabel()\"\r\n [severity]=\"confirmSeverity()\"\r\n [icon]=\"confirmIcon()\"\r\n [loading]=\"confirmLoading()\"\r\n [disabled]=\"confirmDisabled()\"\r\n (clicked)=\"onConfirm()\"\r\n />\r\n </div>\r\n }\r\n </ng-template>\r\n }\r\n</p-dialog>\r\n", styles: [":host{display:contents}::ng-deep .asc-dialog.p-dialog{background:var(--asc-dialog-bg, color-mix(in srgb, var(--asc-surface-overlay, #FFFFFF) 95%, transparent));border:none;border-radius:var(--asc-dialog-radius, 16px)}::ng-deep .asc-dialog .p-dialog-header{margin:0 var(--asc-dialog-padding-x, 16px);padding:var(--asc-dialog-header-padding-y, 12px) 0;border-bottom:1px solid var(--asc-dialog-divider-color, var(--asc-border-color, #DEDFE0))}::ng-deep .asc-dialog .p-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button{width:20px;height:20px;min-width:20px;padding:0;color:var(--asc-dialog-close-color, var(--asc-icon-disabled, #C0C0C2))}::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-icon,::ng-deep .asc-dialog .p-dialog-header .p-dialog-close-button .p-button-icon{width:20px;height:20px;font-size:20px}::ng-deep .asc-dialog.p-dialog .p-dialog-content{padding:var(--p-dialog-content-padding, 16px)}::ng-deep .asc-dialog .p-dialog-footer{margin-top:12px;padding:0 var(--asc-dialog-padding-x, 16px) 16px;border-top:none;display:flex;align-items:center;justify-content:flex-end;gap:.625rem}.asc-dialog-header-default{display:flex;align-items:center;gap:.625rem}.asc-dialog-header-icon{font-size:1.125rem;color:var(--p-primary-500)}.asc-dialog-title{font-family:var(--asc-font-family, \"Inter\", sans-serif);font-size:14px;font-weight:600;line-height:20px;color:var(--asc-dialog-title-color, var(--asc-text-primary, #0F0F0F))}.asc-dialog-footer-default{display:flex;align-items:center;justify-content:flex-end;gap:.625rem}\n"] }]
7996
8077
  }], propDecorators: { headerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscDialogHeaderDirective), { isSignal: true }] }], footerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscDialogFooterDirective), { isSignal: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], headerIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerIcon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], maximizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizable", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFooter", required: false }] }], confirmLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmLabel", required: false }] }], confirmSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmSeverity", required: false }] }], confirmIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmIcon", required: false }] }], confirmLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmLoading", required: false }] }], confirmDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmDisabled", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], cancelled: [{ type: i0.Output, args: ["cancelled"] }], showed: [{ type: i0.Output, args: ["showed"] }], hidden: [{ type: i0.Output, args: ["hidden"] }] } });
7997
8078
 
7998
8079
  /**
@@ -9589,6 +9670,12 @@ class AscCardComponent {
9589
9670
  /** Border radius — none · xs · sm · md · lg (mặc định) · xl · 2xl · 3xl · full */
9590
9671
  this.rounded = input('lg', /* @ts-ignore */
9591
9672
  ...(ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []));
9673
+ /**
9674
+ * Kiểu card: `default` (nền + shadow) · `flat` (bỏ nền, shadow, padding thân — dùng cho card lồng
9675
+ * trong trang, tiêu đề + nội dung thẳng hàng với nội dung trang).
9676
+ */
9677
+ this.variant = input('default', /* @ts-ignore */
9678
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
9592
9679
  /** CSS class bổ sung vào host */
9593
9680
  this.styleClass = input('', /* @ts-ignore */
9594
9681
  ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
@@ -9599,56 +9686,56 @@ class AscCardComponent {
9599
9686
  ...(ngDevMode ? [{ debugName: "_simpleSubtitle" }] : /* istanbul ignore next */ []));
9600
9687
  this._innerCls = computed(() => ascCls(SHADOW_CLS[this.shadow()], RADIUS_CLS[this.rounded()]), /* @ts-ignore */
9601
9688
  ...(ngDevMode ? [{ debugName: "_innerCls" }] : /* istanbul ignore next */ []));
9602
- this._hostCls = computed(() => ascCls('asc-card', this.styleClass()), /* @ts-ignore */
9689
+ this._hostCls = computed(() => ascCls('asc-card', this.variant() === 'flat' && 'asc-card--flat', this.shadow() === 'none' && 'asc-card--shadow-none', this.styleClass()), /* @ts-ignore */
9603
9690
  ...(ngDevMode ? [{ debugName: "_hostCls" }] : /* istanbul ignore next */ []));
9604
9691
  }
9605
9692
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9606
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscCardComponent, isStandalone: true, selector: "asc-card", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_hostCls()" } }, queries: [{ propertyName: "_headerTpl", first: true, predicate: AscCardHeaderDirective, descendants: true, isSignal: true }, { propertyName: "_footerTpl", first: true, predicate: AscCardFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
9607
- <p-card
9608
- [header]="_simpleTitle()"
9609
- [subheader]="_simpleSubtitle()"
9610
- [class]="_innerCls()">
9611
-
9612
- @if (_headerTpl()) {
9613
- <ng-template #header>
9614
- <ng-container [ngTemplateOutlet]="_headerTpl()!.templateRef" />
9615
- </ng-template>
9616
- }
9617
-
9618
- @if (_footerTpl()) {
9619
- <ng-template #footer>
9620
- <ng-container [ngTemplateOutlet]="_footerTpl()!.templateRef" />
9621
- </ng-template>
9622
- }
9623
-
9624
- <ng-content />
9625
- </p-card>
9626
- `, isInline: true, styles: [":host{display:block}:host ::ng-deep .p-card-header{padding:16px 20px;border-bottom:1px solid var(--p-surface-200)}\n"], dependencies: [{ kind: "component", type: Card, selector: "p-card", inputs: ["header", "subheader", "style", "styleClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9693
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscCardComponent, isStandalone: true, selector: "asc-card", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_hostCls()" } }, queries: [{ propertyName: "_headerTpl", first: true, predicate: AscCardHeaderDirective, descendants: true, isSignal: true }, { propertyName: "_footerTpl", first: true, predicate: AscCardFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
9694
+ <p-card
9695
+ [header]="_simpleTitle()"
9696
+ [subheader]="_simpleSubtitle()"
9697
+ [class]="_innerCls()">
9698
+
9699
+ @if (_headerTpl()) {
9700
+ <ng-template #header>
9701
+ <ng-container [ngTemplateOutlet]="_headerTpl()!.templateRef" />
9702
+ </ng-template>
9703
+ }
9704
+
9705
+ @if (_footerTpl()) {
9706
+ <ng-template #footer>
9707
+ <ng-container [ngTemplateOutlet]="_footerTpl()!.templateRef" />
9708
+ </ng-template>
9709
+ }
9710
+
9711
+ <ng-content />
9712
+ </p-card>
9713
+ `, isInline: true, styles: [":host{display:block}:host ::ng-deep .p-card-header{padding:16px 20px;border-bottom:1px solid var(--p-surface-200)}:host(.asc-card--shadow-none) ::ng-deep .p-card{box-shadow:none}:host(.asc-card--flat) ::ng-deep .p-card{background:var(--asc-card-flat-bg, transparent);box-shadow:none;border:none}:host(.asc-card--flat) ::ng-deep .p-card-body{padding:var(--asc-card-flat-body-padding, 0)}\n"], dependencies: [{ kind: "component", type: Card, selector: "p-card", inputs: ["header", "subheader", "style", "styleClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9627
9714
  }
9628
9715
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscCardComponent, decorators: [{
9629
9716
  type: Component,
9630
- args: [{ selector: 'asc-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [Card, NgTemplateOutlet], host: { '[class]': '_hostCls()' }, template: `
9631
- <p-card
9632
- [header]="_simpleTitle()"
9633
- [subheader]="_simpleSubtitle()"
9634
- [class]="_innerCls()">
9635
-
9636
- @if (_headerTpl()) {
9637
- <ng-template #header>
9638
- <ng-container [ngTemplateOutlet]="_headerTpl()!.templateRef" />
9639
- </ng-template>
9640
- }
9641
-
9642
- @if (_footerTpl()) {
9643
- <ng-template #footer>
9644
- <ng-container [ngTemplateOutlet]="_footerTpl()!.templateRef" />
9645
- </ng-template>
9646
- }
9647
-
9648
- <ng-content />
9649
- </p-card>
9650
- `, styles: [":host{display:block}:host ::ng-deep .p-card-header{padding:16px 20px;border-bottom:1px solid var(--p-surface-200)}\n"] }]
9651
- }], propDecorators: { _headerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscCardHeaderDirective), { isSignal: true }] }], _footerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscCardFooterDirective), { isSignal: true }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
9717
+ args: [{ selector: 'asc-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [Card, NgTemplateOutlet], host: { '[class]': '_hostCls()' }, template: `
9718
+ <p-card
9719
+ [header]="_simpleTitle()"
9720
+ [subheader]="_simpleSubtitle()"
9721
+ [class]="_innerCls()">
9722
+
9723
+ @if (_headerTpl()) {
9724
+ <ng-template #header>
9725
+ <ng-container [ngTemplateOutlet]="_headerTpl()!.templateRef" />
9726
+ </ng-template>
9727
+ }
9728
+
9729
+ @if (_footerTpl()) {
9730
+ <ng-template #footer>
9731
+ <ng-container [ngTemplateOutlet]="_footerTpl()!.templateRef" />
9732
+ </ng-template>
9733
+ }
9734
+
9735
+ <ng-content />
9736
+ </p-card>
9737
+ `, styles: [":host{display:block}:host ::ng-deep .p-card-header{padding:16px 20px;border-bottom:1px solid var(--p-surface-200)}:host(.asc-card--shadow-none) ::ng-deep .p-card{box-shadow:none}:host(.asc-card--flat) ::ng-deep .p-card{background:var(--asc-card-flat-bg, transparent);box-shadow:none;border:none}:host(.asc-card--flat) ::ng-deep .p-card-body{padding:var(--asc-card-flat-body-padding, 0)}\n"] }]
9738
+ }], propDecorators: { _headerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscCardHeaderDirective), { isSignal: true }] }], _footerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AscCardFooterDirective), { isSignal: true }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
9652
9739
 
9653
9740
  /**
9654
9741
  * Divider phân cách nội dung theo chiều ngang hoặc dọc, với nội dung tuỳ chọn ở giữa.
@@ -10274,6 +10361,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10274
10361
  `, styles: [":host{position:fixed;inset:0;z-index:10000;background:#00000073;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.overlay-message{color:#fff;font-size:14px;font-weight:500;letter-spacing:.01em;text-shadow:0 1px 3px rgba(0,0,0,.4)}\n"] }]
10275
10362
  }], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }] } });
10276
10363
 
10364
+ /** `prefix` là tiền tố theo segment của `path`. Đường dẫn rỗng (`/`) chỉ khớp đường dẫn rỗng. */
10365
+ function isPathPrefix(prefix, path) {
10366
+ if (prefix.length === 0)
10367
+ return path.length === 0;
10368
+ return prefix.length <= path.length && prefix.every((seg, i) => seg === path[i]);
10369
+ }
10277
10370
  class LayoutService {
10278
10371
  constructor() {
10279
10372
  this.configUpdate = new Subject();
@@ -10313,8 +10406,28 @@ class LayoutService {
10313
10406
  ...(ngDevMode ? [{ debugName: "getSurface" }] : /* istanbul ignore next */ []));
10314
10407
  this.isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', /* @ts-ignore */
10315
10408
  ...(ngDevMode ? [{ debugName: "isOverlay" }] : /* istanbul ignore next */ []));
10409
+ /** Kiểu thu gọn sidebar desktop — AscLayout đặt theo input / config `layout.sidebarCollapse`. */
10410
+ this.sidebarCollapse = signal('hidden', /* @ts-ignore */
10411
+ ...(ngDevMode ? [{ debugName: "sidebarCollapse" }] : /* istanbul ignore next */ []));
10412
+ /**
10413
+ * Sidebar đang thu gọn dạng dải icon (menu static + đã bấm thu gọn + kiểu 'rail').
10414
+ * Chỉ có hiệu lực giao diện ở desktop (CSS trong media ≥ 992px) — logic click dùng kèm `isDesktop()`.
10415
+ */
10416
+ this.isRail = computed(() => this.sidebarCollapse() === 'rail' &&
10417
+ this.layoutConfig().menuMode === 'static' &&
10418
+ !!this.layoutState().staticMenuDesktopInactive, /* @ts-ignore */
10419
+ ...(ngDevMode ? [{ debugName: "isRail" }] : /* istanbul ignore next */ []));
10316
10420
  this.transitionComplete = signal(false, /* @ts-ignore */
10317
10421
  ...(ngDevMode ? [{ debugName: "transitionComplete" }] : /* istanbul ignore next */ []));
10422
+ /** Cách xác định mục menu active — AscLayout đặt theo input / config `layout.menuActiveMatch`. */
10423
+ this.menuActiveMatch = signal('exact', /* @ts-ignore */
10424
+ ...(ngDevMode ? [{ debugName: "menuActiveMatch" }] : /* istanbul ignore next */ []));
10425
+ /** Đường dẫn (theo segment) của mọi mục menu có `routerLink` đang hiển thị — AppMenu cập nhật theo model. */
10426
+ this.menuLinkPaths = signal([], /* @ts-ignore */
10427
+ ...(ngDevMode ? [{ debugName: "menuLinkPaths" }] : /* istanbul ignore next */ []));
10428
+ /** URL hiện tại (AppMenu cập nhật sau mỗi lần điều hướng) — để template mục menu tính lại active. */
10429
+ this.menuUrl = signal('', /* @ts-ignore */
10430
+ ...(ngDevMode ? [{ debugName: "menuUrl" }] : /* istanbul ignore next */ []));
10318
10431
  effect(() => {
10319
10432
  const config = this.layoutConfig();
10320
10433
  if (config) {
@@ -10390,6 +10503,16 @@ class LayoutService {
10390
10503
  this.transitionComplete.set(false);
10391
10504
  });
10392
10505
  }
10506
+ /**
10507
+ * Chế độ 'longest-prefix': `linkPath` có phải mục menu khớp dài nhất với `urlPath` không.
10508
+ * Khớp = `linkPath` là tiền tố (theo segment) của `urlPath`; mục gốc (`/`, không segment) chỉ khớp đúng `/`.
10509
+ */
10510
+ isLongestMenuPrefix(linkPath, urlPath) {
10511
+ if (!isPathPrefix(linkPath, urlPath))
10512
+ return false;
10513
+ const longest = this.menuLinkPaths().reduce((max, p) => (p.length > max && isPathPrefix(p, urlPath) ? p.length : max), 0);
10514
+ return linkPath.length === longest;
10515
+ }
10393
10516
  isDesktop() {
10394
10517
  return window.innerWidth > 991;
10395
10518
  }
@@ -10530,6 +10653,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10530
10653
  }]
10531
10654
  }], ctorParameters: () => [{ type: LayoutService }], propDecorators: { dropdownTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownTpl", required: false }] }], topBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "topBarLogo", required: false }] }], breadCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadCrumb", required: false }] }], iconToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconToggle", required: false }] }] } });
10532
10655
 
10656
+ /** Khoảng cách popup dạng dải ↔ mép sidebar / mép màn hình */
10657
+ const RAIL_POPUP_GAP = 8;
10658
+ const EXACT_MATCH = {
10659
+ paths: 'exact',
10660
+ queryParams: 'ignored',
10661
+ matrixParams: 'ignored',
10662
+ fragment: 'ignored',
10663
+ };
10664
+ const SUBSET_MATCH = { ...EXACT_MATCH, paths: 'subset' };
10665
+ /** Các segment đường dẫn (outlet chính) của một UrlTree — bỏ query / fragment / matrix. */
10666
+ function treePath(tree) {
10667
+ return tree.root.children[PRIMARY_OUTLET]?.segments.map((s) => s.path) ?? [];
10668
+ }
10669
+ /** Các segment đường dẫn của `routerLink` một mục menu; `null` nếu link không hợp lệ. */
10670
+ function menuLinkPath(router, routerLink) {
10671
+ try {
10672
+ const commands = Array.isArray(routerLink) ? routerLink : [routerLink];
10673
+ return treePath(router.createUrlTree(commands));
10674
+ }
10675
+ catch {
10676
+ return null;
10677
+ }
10678
+ }
10679
+ /** Menu con → model cho popup dạng dải: giữ điều hướng, bỏ icon; mục ẩn (`visible: false`) bị loại. */
10680
+ function toRailMenuModel(items) {
10681
+ return items
10682
+ .filter((it) => it.visible !== false)
10683
+ .map((it) => {
10684
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10685
+ const { icon, iconSrc, iconSize, iconWidth, iconHeight, items: children, ...rest } = it;
10686
+ return children?.length ? { ...rest, items: toRailMenuModel(children) } : rest;
10687
+ });
10688
+ }
10533
10689
  class AppMenuitem {
10534
10690
  get submenuExpanded() {
10535
10691
  return this.root || this.active;
@@ -10537,11 +10693,25 @@ class AppMenuitem {
10537
10693
  get activeClass() {
10538
10694
  return this.active && !this.root;
10539
10695
  }
10696
+ /** Chữ cái đầu của label — thay icon khi mục không có icon ở dạng dải */
10697
+ get initial() {
10698
+ return (this.item.label ?? '').trim().charAt(0).toUpperCase();
10699
+ }
10700
+ /** Tooltip tên mục chỉ hiện ở dạng dải (chữ bị ẩn), cho các mục hiển thị trên dải (không phải root) */
10701
+ get showRailTooltip() {
10702
+ return !this.root && this.layoutService.isRail();
10703
+ }
10540
10704
  constructor(router, layoutService) {
10541
10705
  this.router = router;
10542
10706
  this.layoutService = layoutService;
10543
10707
  this.active = false;
10544
10708
  this.key = '';
10709
+ /** Popup menu con khi sidebar dạng dải ('rail') */
10710
+ this.railMenu = viewChild('railMenu', /* @ts-ignore */
10711
+ ...(ngDevMode ? [{ debugName: "railMenu" }] : /* istanbul ignore next */ []));
10712
+ /** Mục menu con hiển thị trong popup — bỏ icon (Figma popup chỉ có chữ) */
10713
+ this.railModel = [];
10714
+ this.railAnchor = null;
10545
10715
  this.menuSourceSubscription = this.layoutService.menuSource$.subscribe((value) => {
10546
10716
  Promise.resolve(null).then(() => {
10547
10717
  if (value.routeEvent) {
@@ -10562,6 +10732,31 @@ class AppMenuitem {
10562
10732
  this.updateActiveStateFromRoute();
10563
10733
  }
10564
10734
  });
10735
+ // Đổi cách sáng mục (AscLayout đặt sau khi mục đã khởi tạo) → tính lại để mở nhóm cha
10736
+ effect(() => {
10737
+ this.layoutService.menuActiveMatch();
10738
+ this.layoutService.menuLinkPaths();
10739
+ untracked(() => {
10740
+ if (this.key && this.item?.routerLink && !this.item.items)
10741
+ this.updateActiveStateFromRoute();
10742
+ });
10743
+ });
10744
+ }
10745
+ /**
10746
+ * Options cho routerLinkActive khi mục không tự khai `routerLinkActiveOptions`.
10747
+ * 'longest-prefix': mục khớp dài nhất với URL dùng `subset` (trang con vẫn sáng), mục khác `exact`.
10748
+ * Đọc signal `menuUrl` để template tính lại sau mỗi lần điều hướng.
10749
+ */
10750
+ get linkActiveOptions() {
10751
+ if (this.layoutService.menuActiveMatch() !== 'longest-prefix')
10752
+ return EXACT_MATCH;
10753
+ return this.isLongestPrefixMatch(this.layoutService.menuUrl() || this.router.url) ? SUBSET_MATCH : EXACT_MATCH;
10754
+ }
10755
+ isLongestPrefixMatch(url) {
10756
+ const linkPath = menuLinkPath(this.router, this.item.routerLink);
10757
+ if (!linkPath)
10758
+ return false;
10759
+ return this.layoutService.isLongestMenuPrefix(linkPath, treePath(this.router.parseUrl(url)));
10565
10760
  }
10566
10761
  ngOnInit() {
10567
10762
  this.key = this.parentKey ? this.parentKey + '-' + this.index : String(this.index);
@@ -10570,12 +10765,10 @@ class AppMenuitem {
10570
10765
  }
10571
10766
  }
10572
10767
  updateActiveStateFromRoute() {
10573
- const activeRoute = this.router.isActive(this.item.routerLink[0], {
10574
- paths: 'exact',
10575
- queryParams: 'ignored',
10576
- matrixParams: 'ignored',
10577
- fragment: 'ignored',
10578
- });
10768
+ // 'longest-prefix': vào thẳng trang con (F5, link trực tiếp) vẫn mở nhóm chứa mục cha
10769
+ const activeRoute = this.layoutService.menuActiveMatch() === 'longest-prefix'
10770
+ ? this.isLongestPrefixMatch(this.router.url)
10771
+ : this.router.isActive(this.item.routerLink[0], EXACT_MATCH);
10579
10772
  if (activeRoute) {
10580
10773
  this.layoutService.onMenuStateChange({ key: this.key, routeEvent: true });
10581
10774
  }
@@ -10590,12 +10783,38 @@ class AppMenuitem {
10590
10783
  if (this.item.command) {
10591
10784
  this.item.command({ originalEvent: event, item: this.item });
10592
10785
  }
10786
+ // Dạng dải (desktop): nhóm có menu con → mở popup cạnh dải thay vì xổ xuống
10787
+ if (this.item.items && !this.root && this.layoutService.isRail() && this.layoutService.isDesktop()) {
10788
+ event.preventDefault();
10789
+ this.railModel = toRailMenuModel(this.item.items);
10790
+ this.railAnchor = event.currentTarget;
10791
+ this.railMenu()?.toggle(event);
10792
+ return;
10793
+ }
10593
10794
  // toggle active state
10594
10795
  if (this.item.items) {
10595
10796
  this.active = !this.active;
10596
10797
  }
10597
10798
  this.layoutService.onMenuStateChange({ key: this.key });
10598
10799
  }
10800
+ /**
10801
+ * p-menu popup tự đặt dưới mục được bấm — dời sang cạnh phải dải sidebar, ngang hàng với mục
10802
+ * (Figma "Trạng thái Thu gọn": popup nằm cạnh dải).
10803
+ */
10804
+ positionRailMenu() {
10805
+ const container = this.railMenu()?.container;
10806
+ const anchor = this.railAnchor;
10807
+ if (!container || !anchor)
10808
+ return;
10809
+ const sidebar = anchor.closest('.layout-sidebar');
10810
+ const anchorRect = anchor.getBoundingClientRect();
10811
+ const left = (sidebar?.getBoundingClientRect().right ?? anchorRect.right) + RAIL_POPUP_GAP;
10812
+ // Không để popup tràn đáy màn hình
10813
+ const maxTop = window.innerHeight - container.offsetHeight - RAIL_POPUP_GAP;
10814
+ const top = Math.max(RAIL_POPUP_GAP, Math.min(anchorRect.top, maxTop));
10815
+ container.style.left = `${left + window.scrollX}px`;
10816
+ container.style.top = `${top + window.scrollY}px`;
10817
+ }
10599
10818
  ngOnDestroy() {
10600
10819
  if (this.menuSourceSubscription) {
10601
10820
  this.menuSourceSubscription.unsubscribe();
@@ -10605,7 +10824,7 @@ class AppMenuitem {
10605
10824
  }
10606
10825
  }
10607
10826
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AppMenuitem, deps: [{ token: i1$a.Router }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
10608
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AppMenuitem, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, ngImport: i0, template: `
10827
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AppMenuitem, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, viewQueries: [{ propertyName: "railMenu", first: true, predicate: ["railMenu"], descendants: true, isSignal: true }], ngImport: i0, template: `
10609
10828
  <ng-container>
10610
10829
  @if (root && item.visible !== false) {
10611
10830
  <div class="layout-menuitem-root-text">
@@ -10621,24 +10840,11 @@ class AppMenuitem {
10621
10840
  [attr.target]="item.target"
10622
10841
  tabindex="0"
10623
10842
  pRipple
10843
+ [pTooltip]="item.label"
10844
+ tooltipPosition="right"
10845
+ [tooltipDisabled]="!showRailTooltip"
10624
10846
  >
10625
- @if (item.iconSrc) {
10626
- <asc-icon
10627
- [src]="item.iconSrc"
10628
- class="layout-menuitem-icon"
10629
- [size]="item.iconSize || '1em'"
10630
- [width]="item.iconWidth"
10631
- [height]="item.iconHeight"
10632
- />
10633
- } @else {
10634
- <i
10635
- [ngClass]="item.icon"
10636
- class="layout-menuitem-icon"
10637
- [style.font-size]="item.iconSize"
10638
- [style.width]="item.iconWidth"
10639
- [style.height]="item.iconHeight"
10640
- ></i>
10641
- }
10847
+ <ng-container [ngTemplateOutlet]="iconTpl"></ng-container>
10642
10848
  <span class="layout-menuitem-text">{{ item.label }}</span>
10643
10849
  @if (item.items) {
10644
10850
  <!-- Figma: CaretRight khi đóng, CaretDown khi mở (xoay 90° qua CSS) -->
@@ -10653,14 +10859,7 @@ class AppMenuitem {
10653
10859
  [ngClass]="item.styleClass"
10654
10860
  [routerLink]="item.routerLink"
10655
10861
  routerLinkActive="active-route"
10656
- [routerLinkActiveOptions]="
10657
- item.routerLinkActiveOptions || {
10658
- paths: 'exact',
10659
- queryParams: 'ignored',
10660
- matrixParams: 'ignored',
10661
- fragment: 'ignored',
10662
- }
10663
- "
10862
+ [routerLinkActiveOptions]="item.routerLinkActiveOptions || linkActiveOptions"
10664
10863
  [fragment]="item.fragment"
10665
10864
  [queryParamsHandling]="item.queryParamsHandling"
10666
10865
  [preserveFragment]="item.preserveFragment"
@@ -10671,24 +10870,11 @@ class AppMenuitem {
10671
10870
  [attr.target]="item.target"
10672
10871
  tabindex="0"
10673
10872
  pRipple
10873
+ [pTooltip]="item.label"
10874
+ tooltipPosition="right"
10875
+ [tooltipDisabled]="!showRailTooltip"
10674
10876
  >
10675
- @if (item.iconSrc) {
10676
- <asc-icon
10677
- [src]="item.iconSrc"
10678
- class="layout-menuitem-icon"
10679
- [size]="item.iconSize || '1em'"
10680
- [width]="item.iconWidth"
10681
- [height]="item.iconHeight"
10682
- />
10683
- } @else {
10684
- <i
10685
- [ngClass]="item.icon"
10686
- class="layout-menuitem-icon"
10687
- [style.font-size]="item.iconSize"
10688
- [style.width]="item.iconWidth"
10689
- [style.height]="item.iconHeight"
10690
- ></i>
10691
- }
10877
+ <ng-container [ngTemplateOutlet]="iconTpl"></ng-container>
10692
10878
  <span class="layout-menuitem-text">{{ item.label }}</span>
10693
10879
  </a>
10694
10880
  }
@@ -10699,15 +10885,52 @@ class AppMenuitem {
10699
10885
  }
10700
10886
  </ul>
10701
10887
  }
10888
+
10889
+ <!-- Sidebar dạng dải ('rail'): nhóm có menu con mở popup cạnh dải, gắn vào body để không bị
10890
+ overflow:hidden của .layout-sidebar cắt -->
10891
+ @if (item.items && !root && layoutService.isRail()) {
10892
+ <p-menu
10893
+ #railMenu
10894
+ [model]="railModel"
10895
+ [popup]="true"
10896
+ appendTo="body"
10897
+ styleClass="asc-sidebar-rail-popup"
10898
+ [ariaLabel]="item.label"
10899
+ (onShow)="positionRailMenu()"
10900
+ />
10901
+ }
10702
10902
  </ng-container>
10703
- `, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$a.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$a.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { 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"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10903
+
10904
+ <ng-template #iconTpl>
10905
+ @if (item.iconSrc) {
10906
+ <asc-icon
10907
+ [src]="item.iconSrc"
10908
+ class="layout-menuitem-icon"
10909
+ [size]="item.iconSize || '1em'"
10910
+ [width]="item.iconWidth"
10911
+ [height]="item.iconHeight"
10912
+ />
10913
+ } @else if (item.icon) {
10914
+ <i
10915
+ [ngClass]="item.icon"
10916
+ class="layout-menuitem-icon"
10917
+ [style.font-size]="item.iconSize"
10918
+ [style.width]="item.iconWidth"
10919
+ [style.height]="item.iconHeight"
10920
+ ></i>
10921
+ } @else {
10922
+ <!-- Không có icon: dạng dải hiện chữ cái đầu (dạng đầy đủ ẩn qua CSS) -->
10923
+ <span class="layout-menuitem-icon layout-menuitem-initial" aria-hidden="true">{{ initial }}</span>
10924
+ }
10925
+ </ng-template>
10926
+ `, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$a.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$a.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i15.Ripple, selector: "[pRipple]" }, { 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: 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: "component", type: AscIconComponent, selector: "asc-icon", inputs: ["src", "size", "width", "height"], outputs: ["loadError"] }, { kind: "component", type: AscSvgIconComponent, selector: "asc-svg-icon", inputs: ["name", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10704
10927
  }
10705
10928
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AppMenuitem, decorators: [{
10706
10929
  type: Component,
10707
10930
  args: [{
10708
10931
  // eslint-disable-next-line @angular-eslint/component-selector
10709
10932
  selector: '[app-menuitem]',
10710
- imports: [CommonModule, RouterModule, RippleModule, AscIconComponent, AscSvgIconComponent],
10933
+ imports: [CommonModule, RouterModule, RippleModule, MenuModule, TooltipModule, AscIconComponent, AscSvgIconComponent],
10711
10934
  template: `
10712
10935
  <ng-container>
10713
10936
  @if (root && item.visible !== false) {
@@ -10724,24 +10947,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10724
10947
  [attr.target]="item.target"
10725
10948
  tabindex="0"
10726
10949
  pRipple
10950
+ [pTooltip]="item.label"
10951
+ tooltipPosition="right"
10952
+ [tooltipDisabled]="!showRailTooltip"
10727
10953
  >
10728
- @if (item.iconSrc) {
10729
- <asc-icon
10730
- [src]="item.iconSrc"
10731
- class="layout-menuitem-icon"
10732
- [size]="item.iconSize || '1em'"
10733
- [width]="item.iconWidth"
10734
- [height]="item.iconHeight"
10735
- />
10736
- } @else {
10737
- <i
10738
- [ngClass]="item.icon"
10739
- class="layout-menuitem-icon"
10740
- [style.font-size]="item.iconSize"
10741
- [style.width]="item.iconWidth"
10742
- [style.height]="item.iconHeight"
10743
- ></i>
10744
- }
10954
+ <ng-container [ngTemplateOutlet]="iconTpl"></ng-container>
10745
10955
  <span class="layout-menuitem-text">{{ item.label }}</span>
10746
10956
  @if (item.items) {
10747
10957
  <!-- Figma: CaretRight khi đóng, CaretDown khi mở (xoay 90° qua CSS) -->
@@ -10756,14 +10966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10756
10966
  [ngClass]="item.styleClass"
10757
10967
  [routerLink]="item.routerLink"
10758
10968
  routerLinkActive="active-route"
10759
- [routerLinkActiveOptions]="
10760
- item.routerLinkActiveOptions || {
10761
- paths: 'exact',
10762
- queryParams: 'ignored',
10763
- matrixParams: 'ignored',
10764
- fragment: 'ignored',
10765
- }
10766
- "
10969
+ [routerLinkActiveOptions]="item.routerLinkActiveOptions || linkActiveOptions"
10767
10970
  [fragment]="item.fragment"
10768
10971
  [queryParamsHandling]="item.queryParamsHandling"
10769
10972
  [preserveFragment]="item.preserveFragment"
@@ -10774,24 +10977,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10774
10977
  [attr.target]="item.target"
10775
10978
  tabindex="0"
10776
10979
  pRipple
10980
+ [pTooltip]="item.label"
10981
+ tooltipPosition="right"
10982
+ [tooltipDisabled]="!showRailTooltip"
10777
10983
  >
10778
- @if (item.iconSrc) {
10779
- <asc-icon
10780
- [src]="item.iconSrc"
10781
- class="layout-menuitem-icon"
10782
- [size]="item.iconSize || '1em'"
10783
- [width]="item.iconWidth"
10784
- [height]="item.iconHeight"
10785
- />
10786
- } @else {
10787
- <i
10788
- [ngClass]="item.icon"
10789
- class="layout-menuitem-icon"
10790
- [style.font-size]="item.iconSize"
10791
- [style.width]="item.iconWidth"
10792
- [style.height]="item.iconHeight"
10793
- ></i>
10794
- }
10984
+ <ng-container [ngTemplateOutlet]="iconTpl"></ng-container>
10795
10985
  <span class="layout-menuitem-text">{{ item.label }}</span>
10796
10986
  </a>
10797
10987
  }
@@ -10802,7 +10992,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10802
10992
  }
10803
10993
  </ul>
10804
10994
  }
10995
+
10996
+ <!-- Sidebar dạng dải ('rail'): nhóm có menu con mở popup cạnh dải, gắn vào body để không bị
10997
+ overflow:hidden của .layout-sidebar cắt -->
10998
+ @if (item.items && !root && layoutService.isRail()) {
10999
+ <p-menu
11000
+ #railMenu
11001
+ [model]="railModel"
11002
+ [popup]="true"
11003
+ appendTo="body"
11004
+ styleClass="asc-sidebar-rail-popup"
11005
+ [ariaLabel]="item.label"
11006
+ (onShow)="positionRailMenu()"
11007
+ />
11008
+ }
10805
11009
  </ng-container>
11010
+
11011
+ <ng-template #iconTpl>
11012
+ @if (item.iconSrc) {
11013
+ <asc-icon
11014
+ [src]="item.iconSrc"
11015
+ class="layout-menuitem-icon"
11016
+ [size]="item.iconSize || '1em'"
11017
+ [width]="item.iconWidth"
11018
+ [height]="item.iconHeight"
11019
+ />
11020
+ } @else if (item.icon) {
11021
+ <i
11022
+ [ngClass]="item.icon"
11023
+ class="layout-menuitem-icon"
11024
+ [style.font-size]="item.iconSize"
11025
+ [style.width]="item.iconWidth"
11026
+ [style.height]="item.iconHeight"
11027
+ ></i>
11028
+ } @else {
11029
+ <!-- Không có icon: dạng dải hiện chữ cái đầu (dạng đầy đủ ẩn qua CSS) -->
11030
+ <span class="layout-menuitem-icon layout-menuitem-initial" aria-hidden="true">{{ initial }}</span>
11031
+ }
11032
+ </ng-template>
10806
11033
  `,
10807
11034
  standalone: true,
10808
11035
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -10821,15 +11048,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10821
11048
  }], activeClass: [{
10822
11049
  type: HostBinding,
10823
11050
  args: ['class.active-menuitem']
10824
- }] } });
11051
+ }], railMenu: [{ type: i0.ViewChild, args: ['railMenu', { isSignal: true }] }] } });
10825
11052
 
11053
+ /** Đường dẫn (segment) của mọi mục có `routerLink` đang hiển thị, kể cả trong nhóm lồng nhau. */
11054
+ function collectLinkPaths(router, items, out = []) {
11055
+ for (const item of items) {
11056
+ if (item.visible === false)
11057
+ continue;
11058
+ if (item.routerLink && !item.items) {
11059
+ const path = menuLinkPath(router, item.routerLink);
11060
+ if (path)
11061
+ out.push(path);
11062
+ }
11063
+ if (item.items?.length)
11064
+ collectLinkPaths(router, item.items, out);
11065
+ }
11066
+ return out;
11067
+ }
10826
11068
  class AppMenu {
10827
11069
  constructor() {
10828
11070
  this.model = input.required(/* @ts-ignore */
10829
11071
  ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
11072
+ this.router = inject(Router);
11073
+ this.layoutService = inject(LayoutService);
11074
+ this.router.events
11075
+ .pipe(filter((e) => e instanceof NavigationEnd), takeUntilDestroyed(inject(DestroyRef)))
11076
+ .subscribe(() => this.layoutService.menuUrl.set(this.router.url));
11077
+ }
11078
+ // ngOnChanges chạy trước khi tạo các mục menu con → mục nào ngOnInit cũng đã có danh sách link
11079
+ ngOnChanges() {
11080
+ this.layoutService.menuLinkPaths.set(collectLinkPaths(this.router, this.model() ?? []));
11081
+ this.layoutService.menuUrl.set(this.router.url);
10830
11082
  }
10831
11083
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10832
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AppMenu, isStandalone: true, selector: "asc-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
11084
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AppMenu, isStandalone: true, selector: "asc-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: `
10833
11085
  <ul class="layout-menu">
10834
11086
  @for (item of model(); track item) {
10835
11087
  @if (!item.separator) {
@@ -10860,7 +11112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10860
11112
  </ul>
10861
11113
  `,
10862
11114
  }]
10863
- }], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: true }] }] } });
11115
+ }], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: true }] }] } });
10864
11116
 
10865
11117
  class AppSidebar {
10866
11118
  constructor(el) {
@@ -10869,14 +11121,27 @@ class AppSidebar {
10869
11121
  ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
10870
11122
  this.sideBarLogo = input(/* @ts-ignore */
10871
11123
  ...(ngDevMode ? [undefined, { debugName: "sideBarLogo" }] : /* istanbul ignore next */ []));
11124
+ /** Logo nhỏ khi sidebar thu gọn dạng dải ('rail') */
11125
+ this.sideBarLogoCollapsed = input(/* @ts-ignore */
11126
+ ...(ngDevMode ? [undefined, { debugName: "sideBarLogoCollapsed" }] : /* istanbul ignore next */ []));
10872
11127
  }
10873
11128
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
10874
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AppSidebar, isStandalone: true, selector: "asc-sidebar", inputs: { menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, sideBarLogo: { classPropertyName: "sideBarLogo", publicName: "sideBarLogo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
11129
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AppSidebar, isStandalone: true, selector: "asc-sidebar", inputs: { menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, sideBarLogo: { classPropertyName: "sideBarLogo", publicName: "sideBarLogo", isSignal: true, isRequired: false, transformFunction: null }, sideBarLogoCollapsed: { classPropertyName: "sideBarLogoCollapsed", publicName: "sideBarLogoCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
10875
11130
 
10876
11131
  <div class="layout-sidebar">
10877
- @if (sideBarLogo()) {
10878
- <div class="layout-sidebar-logo">
10879
- <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
11132
+ @if (sideBarLogo() || sideBarLogoCollapsed()) {
11133
+ <div class="layout-sidebar-logo" [class.layout-sidebar-logo--has-collapsed]="!!sideBarLogoCollapsed()">
11134
+ <!-- Có logo thu gọn thì 2 bản cùng render, CSS đổi bản hiện khi sidebar dạng dải ('rail') -->
11135
+ @if (sideBarLogo()) {
11136
+ <div class="layout-sidebar-logo-full">
11137
+ <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
11138
+ </div>
11139
+ }
11140
+ @if (sideBarLogoCollapsed()) {
11141
+ <div class="layout-sidebar-logo-collapsed">
11142
+ <ng-template [ngTemplateOutlet]="sideBarLogoCollapsed()"></ng-template>
11143
+ </div>
11144
+ }
10880
11145
  </div>
10881
11146
  }
10882
11147
  <!-- Cuộn ở lớp trong để scrollbar bị clip theo border-radius của .layout-sidebar -->
@@ -10897,9 +11162,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10897
11162
  template: `
10898
11163
 
10899
11164
  <div class="layout-sidebar">
10900
- @if (sideBarLogo()) {
10901
- <div class="layout-sidebar-logo">
10902
- <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
11165
+ @if (sideBarLogo() || sideBarLogoCollapsed()) {
11166
+ <div class="layout-sidebar-logo" [class.layout-sidebar-logo--has-collapsed]="!!sideBarLogoCollapsed()">
11167
+ <!-- Có logo thu gọn thì 2 bản cùng render, CSS đổi bản hiện khi sidebar dạng dải ('rail') -->
11168
+ @if (sideBarLogo()) {
11169
+ <div class="layout-sidebar-logo-full">
11170
+ <ng-template [ngTemplateOutlet]="sideBarLogo()"></ng-template>
11171
+ </div>
11172
+ }
11173
+ @if (sideBarLogoCollapsed()) {
11174
+ <div class="layout-sidebar-logo-collapsed">
11175
+ <ng-template [ngTemplateOutlet]="sideBarLogoCollapsed()"></ng-template>
11176
+ </div>
11177
+ }
10903
11178
  </div>
10904
11179
  }
10905
11180
  <!-- Cuộn ở lớp trong để scrollbar bị clip theo border-radius của .layout-sidebar -->
@@ -10910,7 +11185,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10910
11185
  </div>
10911
11186
  `,
10912
11187
  }]
10913
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: true }] }], sideBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogo", required: false }] }] } });
11188
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: true }] }], sideBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogo", required: false }] }], sideBarLogoCollapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogoCollapsed", required: false }] }] } });
10914
11189
 
10915
11190
  class AppFooter {
10916
11191
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -10930,6 +11205,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10930
11205
  }]
10931
11206
  }] });
10932
11207
 
11208
+ /** Khóa localStorage lưu trạng thái thu gọn sidebar (chỉ dùng ở kiểu 'rail'). */
11209
+ const ASC_SIDEBAR_COLLAPSED_STORAGE_KEY = 'asc-layout.sidebar-collapsed';
10933
11210
  class AscLayout {
10934
11211
  constructor(layoutService, renderer, router) {
10935
11212
  this.layoutService = layoutService;
@@ -10939,6 +11216,9 @@ class AscLayout {
10939
11216
  ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
10940
11217
  this.sideBarLogo = input(/* @ts-ignore */
10941
11218
  ...(ngDevMode ? [undefined, { debugName: "sideBarLogo" }] : /* istanbul ignore next */ []));
11219
+ /** Logo nhỏ hiện khi sidebar thu gọn dạng dải ('rail'). Không truyền → vẫn dùng `sideBarLogo`. */
11220
+ this.sideBarLogoCollapsed = input(/* @ts-ignore */
11221
+ ...(ngDevMode ? [undefined, { debugName: "sideBarLogoCollapsed" }] : /* istanbul ignore next */ []));
10942
11222
  this.topBarLogo = input(/* @ts-ignore */
10943
11223
  ...(ngDevMode ? [undefined, { debugName: "topBarLogo" }] : /* istanbul ignore next */ []));
10944
11224
  this.iconToggle = input(/* @ts-ignore */
@@ -10955,6 +11235,23 @@ class AscLayout {
10955
11235
  this.config = inject(ASC_UI_CONFIG, { optional: true }) ?? ASC_UI_DEFAULT_CONFIG;
10956
11236
  this.resolvedShowFooter = computed(() => this.showFooter() ?? this.config.layout?.showFooter ?? true, /* @ts-ignore */
10957
11237
  ...(ngDevMode ? [{ debugName: "resolvedShowFooter" }] : /* istanbul ignore next */ []));
11238
+ /**
11239
+ * Kiểu thu gọn sidebar desktop: 'hidden' (ẩn hẳn) | 'rail' (dải icon 84px).
11240
+ * Không truyền thì fallback về config.layout.sidebarCollapse → 'hidden'.
11241
+ */
11242
+ this.sidebarCollapse = input(undefined, /* @ts-ignore */
11243
+ ...(ngDevMode ? [{ debugName: "sidebarCollapse" }] : /* istanbul ignore next */ []));
11244
+ this.resolvedSidebarCollapse = computed(() => this.sidebarCollapse() ?? this.config.layout?.sidebarCollapse ?? 'hidden', /* @ts-ignore */
11245
+ ...(ngDevMode ? [{ debugName: "resolvedSidebarCollapse" }] : /* istanbul ignore next */ []));
11246
+ /**
11247
+ * Cách sáng mục menu: 'exact' | 'longest-prefix' (trang con sáng mục cha + mở nhóm).
11248
+ * Không truyền thì fallback về config.layout.menuActiveMatch → 'exact'.
11249
+ */
11250
+ this.menuActiveMatch = input(undefined, /* @ts-ignore */
11251
+ ...(ngDevMode ? [{ debugName: "menuActiveMatch" }] : /* istanbul ignore next */ []));
11252
+ this.resolvedMenuActiveMatch = computed(() => this.menuActiveMatch() ?? this.config.layout?.menuActiveMatch ?? 'exact', /* @ts-ignore */
11253
+ ...(ngDevMode ? [{ debugName: "resolvedMenuActiveMatch" }] : /* istanbul ignore next */ []));
11254
+ this.collapsedRestored = false;
10958
11255
  this.menuOutsideClickListener = null;
10959
11256
  this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
10960
11257
  if (!this.menuOutsideClickListener) {
@@ -10971,13 +11268,39 @@ class AscLayout {
10971
11268
  this.router.events.pipe(filter$1((event) => event instanceof NavigationEnd)).subscribe(() => {
10972
11269
  this.hideMenu();
10973
11270
  });
11271
+ // Đồng bộ cách sáng mục menu vào LayoutService (mục menu tự tính lại khi đổi)
11272
+ effect(() => {
11273
+ const match = this.resolvedMenuActiveMatch();
11274
+ untracked(() => this.layoutService.menuActiveMatch.set(match));
11275
+ });
11276
+ // Đồng bộ kiểu thu gọn vào LayoutService; ở kiểu 'rail' khôi phục / lưu trạng thái thu gọn qua localStorage
11277
+ effect(() => {
11278
+ const mode = this.resolvedSidebarCollapse();
11279
+ const collapsed = !!this.layoutService.layoutState().staticMenuDesktopInactive;
11280
+ untracked(() => {
11281
+ this.layoutService.sidebarCollapse.set(mode);
11282
+ if (mode !== 'rail')
11283
+ return;
11284
+ if (!this.collapsedRestored) {
11285
+ this.collapsedRestored = true;
11286
+ if (readStoredCollapsed() && !collapsed) {
11287
+ this.layoutService.layoutState.update((prev) => ({ ...prev, staticMenuDesktopInactive: true }));
11288
+ return;
11289
+ }
11290
+ }
11291
+ writeStoredCollapsed(collapsed);
11292
+ });
11293
+ });
10974
11294
  }
10975
11295
  get containerClass() {
11296
+ const isStatic = this.layoutService.layoutConfig().menuMode === 'static';
11297
+ const collapsed = !!this.layoutService.layoutState().staticMenuDesktopInactive;
11298
+ const rail = this.layoutService.sidebarCollapse() === 'rail';
10976
11299
  return {
10977
11300
  'layout-overlay': this.layoutService.layoutConfig().menuMode === 'overlay',
10978
- 'layout-static': this.layoutService.layoutConfig().menuMode === 'static',
10979
- 'layout-static-inactive': this.layoutService.layoutState().staticMenuDesktopInactive &&
10980
- this.layoutService.layoutConfig().menuMode === 'static',
11301
+ 'layout-static': isStatic,
11302
+ 'layout-static-inactive': isStatic && collapsed && !rail,
11303
+ 'layout-sidebar-rail': isStatic && collapsed && rail,
10981
11304
  'layout-overlay-active': this.layoutService.layoutState().overlayMenuActive,
10982
11305
  'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive,
10983
11306
  };
@@ -11029,7 +11352,7 @@ class AscLayout {
11029
11352
  }
11030
11353
  }
11031
11354
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1$a.Router }], target: i0.ɵɵFactoryTarget.Component }); }
11032
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscLayout, isStandalone: true, selector: "asc-layout", inputs: { menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, sideBarLogo: { classPropertyName: "sideBarLogo", publicName: "sideBarLogo", isSignal: true, isRequired: false, transformFunction: null }, topBarLogo: { classPropertyName: "topBarLogo", publicName: "topBarLogo", isSignal: true, isRequired: false, transformFunction: null }, iconToggle: { classPropertyName: "iconToggle", publicName: "iconToggle", isSignal: true, isRequired: false, transformFunction: null }, breadCrumb: { classPropertyName: "breadCrumb", publicName: "breadCrumb", isSignal: true, isRequired: false, transformFunction: null }, dropdownTpl: { classPropertyName: "dropdownTpl", publicName: "dropdownTpl", isSignal: true, isRequired: false, transformFunction: null }, footerSidebarTpl: { classPropertyName: "footerSidebarTpl", publicName: "footerSidebarTpl", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
11355
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: AscLayout, isStandalone: true, selector: "asc-layout", inputs: { menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, sideBarLogo: { classPropertyName: "sideBarLogo", publicName: "sideBarLogo", isSignal: true, isRequired: false, transformFunction: null }, sideBarLogoCollapsed: { classPropertyName: "sideBarLogoCollapsed", publicName: "sideBarLogoCollapsed", isSignal: true, isRequired: false, transformFunction: null }, topBarLogo: { classPropertyName: "topBarLogo", publicName: "topBarLogo", isSignal: true, isRequired: false, transformFunction: null }, iconToggle: { classPropertyName: "iconToggle", publicName: "iconToggle", isSignal: true, isRequired: false, transformFunction: null }, breadCrumb: { classPropertyName: "breadCrumb", publicName: "breadCrumb", isSignal: true, isRequired: false, transformFunction: null }, dropdownTpl: { classPropertyName: "dropdownTpl", publicName: "dropdownTpl", isSignal: true, isRequired: false, transformFunction: null }, footerSidebarTpl: { classPropertyName: "footerSidebarTpl", publicName: "footerSidebarTpl", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, sidebarCollapse: { classPropertyName: "sidebarCollapse", publicName: "sidebarCollapse", isSignal: true, isRequired: false, transformFunction: null }, menuActiveMatch: { classPropertyName: "menuActiveMatch", publicName: "menuActiveMatch", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
11033
11356
  <div class="layout-wrapper" [ngClass]="containerClass">
11034
11357
  <asc-topbar
11035
11358
  [iconToggle]="iconToggle()"
@@ -11037,7 +11360,11 @@ class AscLayout {
11037
11360
  [topBarLogo]="topBarLogo()"
11038
11361
  [dropdownTpl]="dropdownTpl()"
11039
11362
  ></asc-topbar>
11040
- <asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
11363
+ <asc-sidebar
11364
+ [sideBarLogo]="sideBarLogo()"
11365
+ [sideBarLogoCollapsed]="sideBarLogoCollapsed()"
11366
+ [menuItems]="menuItems()"
11367
+ >
11041
11368
  <ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
11042
11369
  </asc-sidebar>
11043
11370
  <div class="layout-main-container">
@@ -11050,7 +11377,7 @@ class AscLayout {
11050
11377
  </div>
11051
11378
  <div class="layout-mask animate-fadein"></div>
11052
11379
  </div>
11053
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AppTopbar, selector: "asc-topbar", inputs: ["dropdownTpl", "topBarLogo", "breadCrumb", "iconToggle"] }, { kind: "component", type: AppSidebar, selector: "asc-sidebar", inputs: ["menuItems", "sideBarLogo"] }, { kind: "ngmodule", type: RouterModule }, { kind: "component", type: AppFooter, selector: "asc-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11380
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AppTopbar, selector: "asc-topbar", inputs: ["dropdownTpl", "topBarLogo", "breadCrumb", "iconToggle"] }, { kind: "component", type: AppSidebar, selector: "asc-sidebar", inputs: ["menuItems", "sideBarLogo", "sideBarLogoCollapsed"] }, { kind: "ngmodule", type: RouterModule }, { kind: "component", type: AppFooter, selector: "asc-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11054
11381
  }
11055
11382
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: AscLayout, decorators: [{
11056
11383
  type: Component,
@@ -11067,7 +11394,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
11067
11394
  [topBarLogo]="topBarLogo()"
11068
11395
  [dropdownTpl]="dropdownTpl()"
11069
11396
  ></asc-topbar>
11070
- <asc-sidebar [sideBarLogo]="sideBarLogo()" [menuItems]="menuItems()">
11397
+ <asc-sidebar
11398
+ [sideBarLogo]="sideBarLogo()"
11399
+ [sideBarLogoCollapsed]="sideBarLogoCollapsed()"
11400
+ [menuItems]="menuItems()"
11401
+ >
11071
11402
  <ng-container [ngTemplateOutlet]="footerSidebarTpl()"></ng-container>
11072
11403
  </asc-sidebar>
11073
11404
  <div class="layout-main-container">
@@ -11082,7 +11413,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
11082
11413
  </div>
11083
11414
  `,
11084
11415
  }]
11085
- }], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1$a.Router }], propDecorators: { menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: true }] }], sideBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogo", required: false }] }], topBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "topBarLogo", required: false }] }], iconToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconToggle", required: false }] }], breadCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadCrumb", required: false }] }], dropdownTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownTpl", required: false }] }], footerSidebarTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerSidebarTpl", required: false }] }], showFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFooter", required: false }] }] } });
11416
+ }], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1$a.Router }], propDecorators: { menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: true }] }], sideBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogo", required: false }] }], sideBarLogoCollapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideBarLogoCollapsed", required: false }] }], topBarLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "topBarLogo", required: false }] }], iconToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconToggle", required: false }] }], breadCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadCrumb", required: false }] }], dropdownTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownTpl", required: false }] }], footerSidebarTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerSidebarTpl", required: false }] }], showFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFooter", required: false }] }], sidebarCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarCollapse", required: false }] }], menuActiveMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuActiveMatch", required: false }] }] } });
11417
+ // localStorage có thể ném lỗi (chế độ riêng tư, chặn dữ liệu trang) — lỗi thì coi như không lưu
11418
+ function readStoredCollapsed() {
11419
+ try {
11420
+ return localStorage.getItem(ASC_SIDEBAR_COLLAPSED_STORAGE_KEY) === '1';
11421
+ }
11422
+ catch {
11423
+ return false;
11424
+ }
11425
+ }
11426
+ function writeStoredCollapsed(collapsed) {
11427
+ try {
11428
+ localStorage.setItem(ASC_SIDEBAR_COLLAPSED_STORAGE_KEY, collapsed ? '1' : '0');
11429
+ }
11430
+ catch {
11431
+ /* bỏ qua */
11432
+ }
11433
+ }
11086
11434
 
11087
11435
  class AscBreadcrumb {
11088
11436
  constructor() {