@sixbell-telco/sdk 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -0
- package/README.md +183 -70
- package/_index.css +132 -53
- package/components/data-table/expandable/expandable.component.d.ts +129 -0
- package/components/data-table/index.d.ts +5 -0
- package/components/data-table/public-api.d.ts +7 -0
- package/components/data-table/selection/selection.component.d.ts +41 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +61 -0
- package/components/data-table/src/data-table-context.service.d.ts +18 -0
- package/components/data-table/src/data-table.component.d.ts +158 -0
- package/components/data-table/src/models.d.ts +58 -0
- package/components/data-table/sub-component-toggle/index.d.ts +1 -0
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +12 -0
- package/components/dialog/dialog-title/dialog-title.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +22 -8
- package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +1 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +2 -2
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +2 -2
- package/components/forms/datepicker/constants/datepicker.constants.d.ts +5 -0
- package/components/forms/datepicker/public-api.d.ts +2 -1
- package/components/forms/datepicker/src/datepicker.component.d.ts +155 -44
- package/components/forms/datepicker/types/datepicker.types.d.ts +7 -0
- package/components/overlay/index.d.ts +5 -0
- package/components/overlay/overlay-content/overlay-content.component.d.ts +23 -0
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +48 -0
- package/components/overlay/public-api.d.ts +3 -0
- package/components/overlay/src/overlay.component.d.ts +158 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/pipes/pagination.pipe.d.ts +40 -0
- package/components/paginator/public-api.d.ts +1 -0
- package/components/paginator/src/paginator.component.d.ts +14 -12
- package/components/table/src/table.component.d.ts +9 -6
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +103 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1091 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +63 -12
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +12 -10
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -5
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +439 -164
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +408 -0
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +150 -35
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +15 -6
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +154 -0
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs +84 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +3 -4
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +51 -30
- package/utils/date/index.d.ts +5 -0
- package/utils/date/public-api.d.ts +1 -0
- package/utils/date/src/date-utils.d.ts +81 -0
- package/utils/sync/index.d.ts +5 -0
- package/utils/sync/public-api.d.ts +1 -0
- package/utils/sync/src/sync.d.ts +37 -0
- package/utils/translation/public-api.d.ts +3 -4
- package/components/forms/datepicker/src/datepicker-format-month.pipe.d.ts +0 -10
- package/sixbell-telco-sdk-1.2.0.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-data-table.mjs","sources":["../../../projects/sdk/components/data-table/src/data-table-context.service.ts","../../../projects/sdk/components/data-table/expandable/expandable.component.ts","../../../projects/sdk/components/data-table/selection/selection.component.ts","../../../projects/sdk/components/data-table/sortable-header/sortable-header.component.ts","../../../projects/sdk/components/data-table/src/data-table.component.ts","../../../projects/sdk/components/data-table/src/data-table.component.html","../../../projects/sdk/components/data-table/sub-component-toggle/sub-component-toggle.component.ts","../../../projects/sdk/components/data-table/sixbell-telco-sdk-components-data-table.ts"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\nimport { TableContentSizeProps } from '@sixbell-telco/sdk/components/table';\n\n/**\n * Context service to share data table configuration with sub-components\n * This allows sub-components to automatically sync their sizes with the parent data table\n */\n@Injectable()\nexport class DataTableContextService {\n\t/**\n\t * Current table size that sub-components can subscribe to\n\t */\n\treadonly size = signal<TableContentSizeProps>('sm');\n\n\t/**\n\t * Update the table size - called by the main data table component\n\t */\n\tsetSize(size: TableContentSizeProps) {\n\t\tthis.size.set(size);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, output } from '@angular/core';\nimport { ButtonComponent, ButtonSizeProps } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent, IconSizeProps } from '@sixbell-telco/sdk/components/icon';\nimport { matArrowUpward, matInfo, matKeyboardArrowDown, matSwapVert } from '@sixbell-telco/sdk/components/icon/material/baseline';\nimport { injectFlexRenderContext, RowData, type CellContext, type HeaderContext, type Row } from '@tanstack/angular-table';\nimport { DataTableContextService } from '../src/data-table-context.service';\n\n/**\n * Expandable cell component that shows row data and expand/collapse toggle\n */\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-expandable-cell',\n\timports: [CommonModule, IconComponent, ButtonComponent],\n\ttemplate: `\n\t\t<div [style.--depth]=\"row.depth\">\n\t\t\t<div>\n\t\t\t\t@if (row.getCanExpand()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t[size]=\"buttonSize()\"\n\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t[link]=\"true\"\n\t\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t\t(click)=\"row.getToggleExpandedHandler()()\"\n\t\t\t\t\t\t[attr.aria-expanded]=\"row.getIsExpanded()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<st-icon\n\t\t\t\t\t\t\tclass=\"transition-transform duration-300 ease-in-out group-aria-[expanded=false]:rotate-0 group-aria-[expanded=true]:rotate-180\"\n\t\t\t\t\t\t\t[icon]=\"iconChevronDown\"\n\t\t\t\t\t\t\t[size]=\"iconSize()\"\n\t\t\t\t\t\t></st-icon>\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<span> </span>\n\t\t\t\t}\n\t\t\t\t{{ context.getValue() }}\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstyles: `\n\t\t:host {\n\t\t\t> div {\n\t\t\t\tpadding-left: calc(2rem * var(--depth, 1));\n\t\t\t}\n\t\t}\n\t`,\n})\nexport class DataTableExpandableCellComponent<T extends RowData> {\n\t/**\n\t * TanStack Table context injected by flexRender\n\t */\n\tcontext = injectFlexRenderContext<CellContext<T, unknown>>();\n\n\t/**\n\t * Data table context for size synchronization\n\t */\n\tdataTableContext = inject(DataTableContextService);\n\n\t/**\n\t * Get the row instance from context\n\t */\n\tget row() {\n\t\treturn this.context.row;\n\t}\n\n\t/** @internal */\n\treadonly iconChevronDown = matKeyboardArrowDown;\n\n\t/**\n\t * @internal\n\t * Computes button size based on data table size\n\t */\n\treadonly buttonSize = computed<ButtonSizeProps>(() => {\n\t\tswitch (this.dataTableContext.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'md';\n\t\t\tdefault:\n\t\t\t\treturn 'xs';\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes icon size based on data table size\n\t */\n\treadonly iconSize = computed<IconSizeProps>(() => {\n\t\tswitch (this.dataTableContext.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'md';\n\t\t\tdefault:\n\t\t\t\treturn 'xs';\n\t\t}\n\t});\n}\n\n/**\n * Expandable header cell component with sorting capability and expand all functionality\n */\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-expandable-header-cell',\n\timports: [CommonModule, IconComponent, ButtonComponent],\n\ttemplate: `\n\t\t<div class=\"inline-flex items-center gap-1\">\n\t\t\t<st-button\n\t\t\t\tvariant=\"base\"\n\t\t\t\t[size]=\"buttonSize()\"\n\t\t\t\t[square]=\"true\"\n\t\t\t\t[link]=\"true\"\n\t\t\t\t(click)=\"context.table.getToggleAllRowsExpandedHandler()($event)\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t[attr.aria-expanded]=\"context.table.getIsAllRowsExpanded()\"\n\t\t\t>\n\t\t\t\t<st-icon\n\t\t\t\t\tclass=\"transition-transform duration-300 ease-in-out group-aria-[expanded=false]:rotate-0 group-aria-[expanded=true]:rotate-180\"\n\t\t\t\t\t[icon]=\"iconChevronDown\"\n\t\t\t\t\t[size]=\"iconSize()\"\n\t\t\t\t></st-icon>\n\t\t\t</st-button>\n\t\t\t<!-- Column Label -->\n\t\t\t<span class=\"font-bold\">{{ label() }}</span>\n\t\t\t<!-- Button for sorting -->\n\t\t\t@if (canSort()) {\n\t\t\t\t<st-button\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t[size]=\"buttonSize()\"\n\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t(click)=\"sortToggle.emit(); $event.stopPropagation()\"\n\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t[attr.aria-label]=\"'Sort by ' + label()\"\n\t\t\t\t\t[attr.aria-sort]=\"computedAriaSortAttribute()\"\n\t\t\t\t>\n\t\t\t\t\t<st-icon\n\t\t\t\t\t\tclass=\"transition-transform duration-300 ease-in-out group-aria-[sort=ascending]:rotate-0 group-aria-[sort=descending]:rotate-180\"\n\t\t\t\t\t\t[icon]=\"currentSortIcon()\"\n\t\t\t\t\t\t[size]=\"iconSize()\"\n\t\t\t\t\t></st-icon>\n\t\t\t\t</st-button>\n\t\t\t}\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataTableExpandableHeaderCellComponent<T extends RowData> {\n\t/**\n\t * TanStack Table context injected by flexRender\n\t */\n\treadonly context = injectFlexRenderContext<HeaderContext<T, unknown>>();\n\n\t/**\n\t * Data table context for size synchronization\n\t */\n\treadonly dataTableContext = inject(DataTableContextService);\n\n\t/**\n\t * Display label for the column\n\t */\n\treadonly label = input.required<string>();\n\n\t/**\n\t * Whether this column can be sorted\n\t */\n\treadonly canSort = input<boolean>(false);\n\n\t/**\n\t * Current sort state of the column\n\t */\n\treadonly sortState = input<'asc' | 'desc' | false>(false);\n\n\t/**\n\t * Event emitted when sort toggle is requested\n\t */\n\treadonly sortToggle = output<void>();\n\n\t/**\n\t * Get the table instance from context\n\t */\n\tget table() {\n\t\treturn this.context.table;\n\t}\n\n\t/** @internal */\n\treadonly iconChevronDown = matKeyboardArrowDown;\n\n\t/** @internal */\n\treadonly iconDefaultSort = matSwapVert;\n\n\t/** @internal */\n\treadonly iconAscending = matArrowUpward;\n\n\t/**\n\t * @internal\n\t * Computes button size based on data table size\n\t */\n\treadonly buttonSize = computed<ButtonSizeProps>(() => {\n\t\tswitch (this.dataTableContext.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'md';\n\t\t\tdefault:\n\t\t\t\treturn 'xs';\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes icon size based on data table size\n\t */\n\treadonly iconSize = computed<IconSizeProps>(() => {\n\t\tswitch (this.dataTableContext.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'md';\n\t\t\tdefault:\n\t\t\t\treturn 'xs';\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes the appropriate icon based on current sort state\n\t */\n\treadonly currentSortIcon = computed(() => {\n\t\tswitch (this.sortState()) {\n\t\t\tcase 'asc':\n\t\t\tcase 'desc':\n\t\t\t\treturn this.iconAscending;\n\t\t\tdefault:\n\t\t\t\treturn this.iconDefaultSort;\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes aria-sort attribute for accessibility\n\t */\n\treadonly computedAriaSortAttribute = computed<'ascending' | 'descending' | 'none'>(() => {\n\t\tswitch (this.sortState()) {\n\t\t\tcase 'asc':\n\t\t\t\treturn 'ascending';\n\t\t\tcase 'desc':\n\t\t\t\treturn 'descending';\n\t\t\tdefault:\n\t\t\t\treturn 'none';\n\t\t}\n\t});\n}\n\n/**\n * Sub-component toggle cell for controlling custom sub-component visibility\n */\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-sub-toggle-cell',\n\timports: [CommonModule, IconComponent, ButtonComponent],\n\ttemplate: `\n\t\t@if (canToggleSubComponent()) {\n\t\t\t<st-button\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tsize=\"xs\"\n\t\t\t\t[circle]=\"true\"\n\t\t\t\t[ghost]=\"true\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t(click)=\"handleToggle(); $event.stopPropagation()\"\n\t\t\t\t[attr.aria-expanded]=\"isExpanded()\"\n\t\t\t\t[attr.title]=\"isExpanded() ? 'Hide Details' : 'Show Details'\"\n\t\t\t>\n\t\t\t\t<st-icon\n\t\t\t\t\tclass=\"transition-transform duration-300 ease-in-out group-aria-[expanded=false]:rotate-0 group-aria-[expanded=true]:rotate-180\"\n\t\t\t\t\t[icon]=\"expandIcon\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t></st-icon>\n\t\t\t\t<span class=\"sr-only\">{{ isExpanded() ? 'Hide Details' : 'Show Details' }}</span>\n\t\t\t</st-button>\n\t\t} @else {\n\t\t\t<!-- Display an informational icon if a sub-component cannot be shown for this row -->\n\t\t\t<st-button\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tsize=\"xs\"\n\t\t\t\t[circle]=\"true\"\n\t\t\t\t[ghost]=\"true\"\n\t\t\t\t[attr.aria-expanded]=\"isExpanded()\"\n\t\t\t\t[attr.title]=\"isExpanded() ? 'Hide Details' : 'Show Details'\"\n\t\t\t\t[disabled]=\"true\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"sm\"></st-icon>\n\t\t\t\t<span class=\"sr-only\">{{ isExpanded() ? 'Hide Details' : 'Show Details' }}</span>\n\t\t\t</st-button>\n\t\t}\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataTableSubToggleCellComponent {\n\t/**\n\t * The table row instance\n\t */\n\treadonly row = input.required<Row<unknown>>();\n\n\t/**\n\t * Whether the sub-component is currently expanded\n\t */\n\treadonly isExpanded = input<boolean>(false);\n\n\t/**\n\t * Whether this row can toggle a sub-component\n\t */\n\treadonly canToggleSubComponent = input<boolean>(false);\n\n\t/**\n\t * Event emitted when toggle is clicked\n\t */\n\treadonly toggled = output<string>();\n\n\t/** @internal */\n\treadonly expandIcon = matKeyboardArrowDown;\n\n\t/** @internal */\n\treadonly infoIcon = matInfo;\n\n\t/**\n\t * @internal\n\t * Handles the toggle click\n\t */\n\thandleToggle() {\n\t\tthis.toggled.emit(this.row().id);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\nimport { CheckboxComponent } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { type CellContext, type HeaderContext, injectFlexRenderContext, RowData } from '@tanstack/angular-table';\nimport { DataTableContextService } from '../src/data-table-context.service';\n\n/**\n * Header checkbox component for selecting/deselecting all rows on current page\n */\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-head-selection',\n\timports: [CheckboxComponent, CommonModule],\n\ttemplate: `\n\t\t<st-checkbox\n\t\t\t[value]=\"context.table.getIsAllPageRowsSelected()\"\n\t\t\t(valueUpdated)=\"context.table.toggleAllPageRowsSelected()\"\n\t\t\t[size]=\"checkboxSize()\"\n\t\t></st-checkbox>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataTableHeadSelectionComponent<T extends RowData> {\n\t/**\n\t * TanStack Table context injected by flexRender\n\t */\n\tcontext = injectFlexRenderContext<HeaderContext<T, unknown>>();\n\n\t/**\n\t * Data table context for size synchronization\n\t */\n\treadonly dataTableContext = inject(DataTableContextService);\n\n\t/**\n\t * Computed checkbox size based on table size\n\t */\n\treadonly checkboxSize = computed(() => {\n\t\tconst tableSize = this.dataTableContext.size();\n\t\tswitch (tableSize) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'md':\n\t\t\t\treturn 'md';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'lg';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'lg';\n\t\t\tdefault:\n\t\t\t\treturn 'sm';\n\t\t}\n\t});\n}\n\n/**\n * Row checkbox component for individual row selection\n */\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-row-selection',\n\timports: [CheckboxComponent, CommonModule],\n\ttemplate: `\n\t\t<st-checkbox\n\t\t\t[value]=\"context.row.getIsSelected()\"\n\t\t\t[disabled]=\"!context.row.getCanSelect()\"\n\t\t\t(valueUpdated)=\"context.row.toggleSelected()\"\n\t\t\t[size]=\"checkboxSize()\"\n\t\t></st-checkbox>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataTableRowSelectionComponent<T extends RowData> {\n\t/**\n\t * TanStack Table context injected by flexRender\n\t */\n\tcontext = injectFlexRenderContext<CellContext<T, unknown>>();\n\n\t/**\n\t * Data table context for size synchronization\n\t */\n\treadonly dataTableContext = inject(DataTableContextService);\n\n\t/**\n\t * Computed checkbox size based on table size\n\t */\n\treadonly checkboxSize = computed(() => {\n\t\tconst tableSize = this.dataTableContext.size();\n\t\tswitch (tableSize) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'md':\n\t\t\t\treturn 'md';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'lg';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'lg';\n\t\t\tdefault:\n\t\t\t\treturn 'sm';\n\t\t}\n\t});\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, output } from '@angular/core';\nimport { ButtonComponent, ButtonSizeProps } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent, IconSizeProps } from '@sixbell-telco/sdk/components/icon';\nimport { matArrowUpward, matSwapVert } from '@sixbell-telco/sdk/components/icon/material/baseline';\nimport { DataTableContextService } from '../src/data-table-context.service';\n\n/**\n * Sortable header component for data table columns\n *\n * @example\n * ```typescript\n * flexRenderComponent(DataTableSortableHeaderComponent, {\n * inputs: {\n * label: 'Column Name',\n * sortState: column.getIsSorted(),\n * },\n * outputs: {\n * sortToggle: () => column.toggleSorting(),\n * },\n * })\n * ```\n */\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-sortable-header',\n\timports: [CommonModule, IconComponent, ButtonComponent],\n\ttemplate: `\n\t\t<div class=\"inline-flex items-center gap-1\">\n\t\t\t<span class=\"font-bold\">{{ label() }}</span>\n\t\t\t<st-button\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t[size]=\"buttonSize()\"\n\t\t\t\t[square]=\"true\"\n\t\t\t\t[ghost]=\"true\"\n\t\t\t\t(click)=\"sortToggle.emit(); $event.stopPropagation()\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t[attr.aria-label]=\"'Sort by ' + label()\"\n\t\t\t\t[attr.aria-sort]=\"computedAriaSortAttribute()\"\n\t\t\t>\n\t\t\t\t<st-icon\n\t\t\t\t\tclass=\"transition-transform duration-300 ease-in-out group-aria-[sort=ascending]:rotate-0 group-aria-[sort=descending]:rotate-180\"\n\t\t\t\t\t[icon]=\"currentSortIcon()\"\n\t\t\t\t\t[size]=\"iconSize()\"\n\t\t\t\t></st-icon>\n\t\t\t</st-button>\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataTableSortableHeaderComponent {\n\treadonly dataTableContext = inject(DataTableContextService);\n\n\t/**\n\t * Display label for the column\n\t */\n\treadonly label = input.required<string>();\n\n\t/**\n\t * Current sort state of the column\n\t */\n\treadonly sortState = input<'asc' | 'desc' | false>(false);\n\n\t/**\n\t * Event emitted when sort toggle is requested\n\t */\n\treadonly sortToggle = output<void>();\n\n\t/** @internal */\n\treadonly iconDefaultSort = matSwapVert;\n\n\t/** @internal */\n\treadonly iconAscending = matArrowUpward;\n\n\t/**\n\t * @internal\n\t * Computes button size based on data table size\n\t */\n\treadonly buttonSize = computed<ButtonSizeProps>(() => {\n\t\tswitch (this.dataTableContext.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'md';\n\t\t\tdefault:\n\t\t\t\treturn 'xs';\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes icon size based on data table size\n\t */\n\treadonly iconSize = computed<IconSizeProps>(() => {\n\t\tswitch (this.dataTableContext.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'sm';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'md';\n\t\t\tdefault:\n\t\t\t\treturn 'xs';\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes the appropriate icon based on current sort state\n\t */\n\treadonly currentSortIcon = computed(() => {\n\t\tswitch (this.sortState()) {\n\t\t\tcase 'asc':\n\t\t\tcase 'desc':\n\t\t\t\treturn this.iconAscending;\n\t\t\tdefault:\n\t\t\t\treturn this.iconDefaultSort;\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes aria-sort attribute for accessibility\n\t */\n\treadonly computedAriaSortAttribute = computed<'ascending' | 'descending' | 'none'>(() => {\n\t\tswitch (this.sortState()) {\n\t\t\tcase 'asc':\n\t\t\t\treturn 'ascending';\n\t\t\tcase 'desc':\n\t\t\t\treturn 'descending';\n\t\t\tdefault:\n\t\t\t\treturn 'none';\n\t\t}\n\t});\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect, inject, input, output } from '@angular/core';\nimport { heroDocumentText, heroXCircle } from '@ng-icons/heroicons/outline';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { PaginationType, PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TableContainerHeightProps, TableContentSizeProps } from '@sixbell-telco/sdk/components/table';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { TranslatePipe, TranslateService } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { DataTableContextService } from './data-table-context.service';\nimport { DataTablePagination } from './models';\n\n/** Configuration object for data table styling variants */\nexport type DataTableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tcontainerHeight?: TableContainerHeightProps;\n};\n\n/**\n * @internal\n * Generates data table classes with size and height variants\n */\nexport const dataTableContent = cva(\n\t[\n\t\t'table',\n\t\t'relative',\n\t\t'text-pretty',\n\t\t'[&_tbody]:font-body',\n\t\t'[&_thead]:font-heading',\n\t\t'[&_thead]:leading-normal',\n\t\t'[&_tbody]:leading-tight',\n\t\t'[&_th]:bg-neutral [&_th]:text-neutral-content',\n\t\t'[&_th]:px-4',\n\t\t'[&_td]:px-4',\n\t\t'[&_tbody_tr]:border-transparent',\n\t\t'rounded-t-box',\n\t\t'[&_tbody_tr]:border-transparent',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['table-xs'],\n\t\t\t\tsm: ['table-sm'],\n\t\t\t\tmd: ['table-md'],\n\t\t\t\tlg: ['table-lg'],\n\t\t\t\txl: ['table-xl'],\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'sm',\n\t\t},\n\t},\n);\n\n/**\n * A styled container component for data tables - provides styling shell only\n *\n * This component is similar to st-table but with additional data table specific styling.\n * Users should compose their own table structure using TanStack Table and SDK components.\n *\n * @example\n * ```html\n * <st-data-table-container size=\"md\" height=\"lg\">\n * <table>\n * <thead>\n * <tr>\n * <th><st-data-table-sortable-header>Name</st-data-table-sortable-header></th>\n * </tr>\n * </thead>\n * <tbody>\n * <tr>\n * <td>John Doe</td>\n * </tr>\n * </tbody>\n * </table>\n * </st-data-table-container>\n * ```\n */\n@Component({\n\tselector: 'st-data-table',\n\timports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, TranslatePipe, IconComponent],\n\ttemplateUrl: './data-table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tproviders: [DataTableContextService],\n})\nexport class DataTableContainerComponent {\n\treadonly translationService = inject(TranslateService);\n\treadonly dataTableContext = inject(DataTableContextService);\n\n\t// Icon references for template\n\treadonly noDataIcon = heroDocumentText;\n\treadonly noResultsIcon = heroXCircle;\n\n\t/**\n\t * Table size variant\n\t * @defaultValue 'sm'\n\t */\n\tsize = input<TableContentSizeProps>('sm');\n\n\tconstructor() {\n\t\t// Update context when size changes\n\t\teffect(() => {\n\t\t\tthis.dataTableContext.setSize(this.size());\n\t\t});\n\t}\n\n\t/**\n\t * Enable sticky header row\n\t * @defaultValue false\n\t */\n\tpinRows = input<boolean>(false);\n\n\t/**\n\t * Enable sticky first column\n\t * @defaultValue false\n\t */\n\tpinColumns = input<boolean>(false);\n\n\t/**\n\t * Apply zebra-striping to rows\n\t * @defaultValue false\n\t */\n\tzebra = input<boolean>(false);\n\n\t/**\n\t * Pagination control display variant\n\t * @defaultValue 'default'\n\t */\n\tpaginatorType = input<PaginationType>('default');\n\n\t/**\n\t * Total number of items across all pages\n\t * @defaultValue 0\n\t */\n\ttotalItems = input<number>(0);\n\n\t/**\n\t * Pagination configuration\n\t * @defaultValue { id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '', sortColumn: null, sortDirection: null, filters: {} }\n\t */\n\tpagination = input<DataTablePagination>({\n\t\tid: 'paginator',\n\t\tcurrentPage: 1,\n\t\titemsPerPage: 10,\n\t\tsearch: '',\n\t\tsortColumn: null,\n\t\tsortDirection: null,\n\t\tfilters: {},\n\t});\n\n\t/**\n\t * Maximum number of pagination buttons to display\n\t * @defaultValue 4\n\t */\n\tmaxSize = input<number>(4);\n\n\t/** Event emitted when page changes */\n\tpageChanged = output<number>();\n\n\t/** Event emitted when page size changes */\n\tpageSizeChanged = output<number>();\n\n\treadonly ENTRIES = [5, 10, 20, 50, 100] as const;\n\n\treadonly entriesPerPageOptions = computed(() => {\n\t\treturn this.ENTRIES.map((n) => {\n\t\t\tconst translatedText = this.translationService.instant('sdk.dataTable.perPage', { count: n });\n\t\t\t// Fallback if translation fails\n\t\t\tconst fallbackText = `${n} / page`;\n\t\t\treturn {\n\t\t\t\tvalue: n,\n\t\t\t\ttext: translatedText && translatedText !== 'sdk.dataTable.perPage' ? translatedText : fallbackText,\n\t\t\t};\n\t\t});\n\t});\n\n\t/**\n\t * Computed total number of pages for the internal paginator.\n\t * Calculated from totalItems and itemsPerPage.\n\t */\n\treadonly totalPages = computed(() => {\n\t\tconst itemsPerPage = this.pagination().itemsPerPage || 1;\n\t\tconst totalItems = this.totalItems();\n\t\treturn Math.ceil(totalItems / itemsPerPage);\n\t});\n\n\t/**\n\t * Computed display range for current page entries\n\t * @example \"1-10\" of 100 entries\n\t */\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\t/**\n\t * Function to determine if any filters are currently active\n\t * This allows the parent component to define what constitutes an \"active filter\"\n\t */\n\thasActiveFiltersCallback = input<(() => boolean) | undefined>();\n\n\t/**\n\t * Computed boolean indicating if any filters are currently active\n\t */\n\treadonly hasActiveFilters = computed(() => {\n\t\tconst callback = this.hasActiveFiltersCallback();\n\n\t\tif (callback) {\n\t\t\treturn callback();\n\t\t}\n\n\t\t// Fallback: check for basic search term only\n\t\tconst pagination = this.pagination();\n\t\treturn !!pagination.search?.trim();\n\t});\n\n\t/**\n\t * Computed boolean indicating if we should show \"no results\" vs \"no data\"\n\t */\n\treadonly hasNoResults = computed(() => {\n\t\treturn this.totalItems() === 0 && this.hasActiveFilters();\n\t});\n\n\t/**\n\t * Computed boolean indicating if we should show \"no data\" state\n\t */\n\treadonly hasNoData = computed(() => {\n\t\treturn this.totalItems() === 0 && !this.hasActiveFilters();\n\t});\n\n\t/**\n\t * Handles page navigation events\n\t * @param page - New page number\n\t */\n\thandlePageChange(page: number) {\n\t\tthis.pageChanged.emit(page);\n\t}\n\n\t/**\n\t * Handles page size changes\n\t * @param size - New items per page value\n\t */\n\thandlePageSizeChange(size: unknown) {\n\t\tlet resolved: number | undefined;\n\t\tif (typeof size === 'number') {\n\t\t\tresolved = size;\n\t\t} else if (size && typeof size === 'object' && 'value' in (size as Record<string, unknown>)) {\n\t\t\tconst v = (size as Record<string, unknown>)['value'];\n\t\t\tconst safeStringify = (x: unknown) => (['string', 'number', 'boolean'].includes(typeof x) ? String(x) : '0');\n\t\t\tresolved = typeof v === 'number' ? v : Number(safeStringify(v));\n\t\t} else {\n\t\t\tconst safeStringify = (x: unknown) => (['string', 'number', 'boolean'].includes(typeof x) ? String(x) : '0');\n\t\t\tresolved = Number(safeStringify(size)) || undefined;\n\t\t}\n\t\tconst s = Number(resolved || 1);\n\t\tthis.pageSizeChanged.emit(s);\n\t}\n\n\t/**\n\t * @internal\n\t * Computes typography variant for paginator text based on table size\n\t */\n\treadonly paginatorTextSize = computed<TypographyVariantProps>(() => {\n\t\tswitch (this.size()) {\n\t\t\tcase 'xs':\n\t\t\t\treturn 'body-xxs';\n\t\t\tcase 'sm':\n\t\t\t\treturn 'body-xs';\n\t\t\tcase 'md':\n\t\t\t\treturn 'body-sm';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'body';\n\t\t\tcase 'xl':\n\t\t\t\treturn 'body';\n\t\t\tdefault:\n\t\t\t\treturn 'body-xs';\n\t\t}\n\t});\n\n\t/**\n\t * @internal\n\t * Computes table element classes based on current configuration\n\t */\n\treadonly tableClass = computed(() =>\n\t\tcn(\n\t\t\tdataTableContent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'table-pin-rows': this.pinRows(),\n\t\t\t\t'table-pin-cols': this.pinColumns(),\n\t\t\t\t'table-zebra': this.zebra(),\n\t\t\t},\n\t\t),\n\t);\n\n\t/**\n\t * @internal\n\t * Computes table container classes based on height input\n\t */\n\treadonly tableContainerClass = computed(() => cn('w-full flex-grow'));\n\n\t/**\n\t * @internal\n\t * Computes outer container classes based on size\n\t */\n\treadonly containerClass = computed(() => cn('rounded-box border-neutral flex flex-col overflow-x-auto border border-solid gap-3 @container'));\n}\n","<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40 mb-3\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<h3 typography tyVariant=\"h6\" class=\"text-base-content/60 mb-2\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t<p typography tyVariant=\"body-sm\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40 mb-3\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<h3 typography tyVariant=\"h6\" class=\"text-base-content/60 mb-2\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t<p typography tyVariant=\"body-sm\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div class=\"@container flex w-full flex-col gap-4 overflow-x-auto pb-3\">\n\t\t<!-- Divider -->\n\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div\n\t\t\tclass=\"flex flex-col items-center gap-4 px-4 @2xl:flex-row @2xl:justify-between @2xl:gap-2 @4xl:grid @4xl:grid-cols-[auto_1fr_auto] @4xl:items-center\"\n\t\t>\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span typography [tyVariant]=\"paginatorTextSize()\" [tyColor]=\"'inherit'\">{{\n\t\t\t\t\t'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() }\n\t\t\t\t}}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<st-select\n\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\tvalueKey=\"value\"\n\t\t\t\tdisplayKey=\"text\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t[allowClear]=\"false\"\n\t\t\t></st-select>\n\t\t</div>\n\t</div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matInfo, matKeyboardArrowDown } from '@sixbell-telco/sdk/components/icon/material/baseline';\nimport { Row, RowData } from '@tanstack/angular-table';\n\n@Component({\n\tstandalone: true,\n\tselector: 'st-data-table-sub-component-toggle-cell',\n\timports: [CommonModule, IconComponent, ButtonComponent],\n\ttemplate: `\n\t\t@if (canToggleSubComponent()) {\n\t\t\t<st-button\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tsize=\"xs\"\n\t\t\t\t[circle]=\"true\"\n\t\t\t\t[ghost]=\"true\"\n\t\t\t\tclass=\"group\"\n\t\t\t\t(click)=\"toggled.emit(row().id)\"\n\t\t\t\t[attr.aria-expanded]=\"isExpanded()\"\n\t\t\t\ttitle=\"{{ isExpanded() ? 'Hide Details' : 'Show Details' }}\"\n\t\t\t>\n\t\t\t\t<st-icon\n\t\t\t\t\tclass=\"transition-transform duration-300 ease-in-out group-aria-[expanded=false]:rotate-0 group-aria-[expanded=true]:rotate-180\"\n\t\t\t\t\t[icon]=\"iconChevronDown\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t></st-icon>\n\t\t\t\t<span class=\"sr-only\">{{ isExpanded() ? 'Hide Details' : 'Show Details' }}</span>\n\t\t\t</st-button>\n\t\t} @else {\n\t\t\t<!-- Display an informational icon if a sub-component cannot be shown for this row -->\n\t\t\t<st-button\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tsize=\"xs\"\n\t\t\t\t[circle]=\"true\"\n\t\t\t\t[ghost]=\"true\"\n\t\t\t\t[attr.aria-expanded]=\"isExpanded()\"\n\t\t\t\ttitle=\"{{ isExpanded() ? 'Hide Details' : 'Show Details' }}\"\n\t\t\t\t[disabled]=\"true\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"iconInfo\" size=\"sm\"></st-icon>\n\t\t\t\t<span class=\"sr-only\">{{ isExpanded() ? 'Hide Details' : 'Show Details' }}</span>\n\t\t\t</st-button>\n\t\t}\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DataTableSubComponentToggleCellComponent<T extends RowData> {\n\treadonly row = input.required<Row<T>>();\n\treadonly isExpanded = input.required<boolean>(); // Current state of the sub-component for this row\n\treadonly toggled = output<string>(); // Emits row.id when clicked to trigger parent component update\n\n\t// Input to determine if this specific row is eligible to display a sub-component\n\treadonly canToggleSubComponent = input<boolean>(false);\n\n\treadonly iconChevronDown = matKeyboardArrowDown;\n\treadonly iconInfo = matInfo;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA;;;AAGG;MAEU,uBAAuB,CAAA;AAC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AAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAnCS,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,EAAA,OAAA,EAAA,OAAA,EAAA,QAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,cAAA,EAAA,MAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAsC1C,wCAAwC,EAAA,UAAA,EAAA,CAAA;kBAzCpD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,yCAAyC;AACnD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC;AACvD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,CAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,iBAAA;;;AC/CD;;AAEG;;;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, computed, ChangeDetectionStrategy, Component, model, output, inject, viewChild,
|
|
3
|
+
import { input, computed, ChangeDetectionStrategy, Component, signal, contentChild, model, output, inject, viewChild, effect } from '@angular/core';
|
|
4
4
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
5
5
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
6
6
|
import { Dialog } from '@angular/cdk/dialog';
|
|
7
7
|
import { Overlay } from '@angular/cdk/overlay';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
9
|
+
import { Subscription } from 'rxjs';
|
|
9
10
|
|
|
10
11
|
class DialogActionsComponent {
|
|
11
12
|
// Base table properties
|
|
@@ -34,20 +35,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
34
35
|
|
|
35
36
|
class DialogSubTitleComponent {
|
|
36
37
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogSubTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: DialogSubTitleComponent, isStandalone: true, selector: "st-dialog-sub-title", ngImport: i0, template: "<div class=\"mb-
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: DialogSubTitleComponent, isStandalone: true, selector: "st-dialog-sub-title", ngImport: i0, template: "<div class=\"text-base-content/80 mb-3\">\n\t<p typography tyFontWeight=\"normal\" tyColor=\"inherit\" tyVariant=\"h6\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
38
39
|
}
|
|
39
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogSubTitleComponent, decorators: [{
|
|
40
41
|
type: Component,
|
|
41
|
-
args: [{ selector: 'st-dialog-sub-title', imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mb-
|
|
42
|
+
args: [{ selector: 'st-dialog-sub-title', imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-base-content/80 mb-3\">\n\t<p typography tyFontWeight=\"normal\" tyColor=\"inherit\" tyVariant=\"h6\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n" }]
|
|
42
43
|
}] });
|
|
43
44
|
|
|
44
45
|
class DialogTitleComponent {
|
|
46
|
+
/** Internal signal that indicates whether a subtitle is present in the dialog */
|
|
47
|
+
hasSubTitle = signal(false);
|
|
48
|
+
setHasSubTitle(value) {
|
|
49
|
+
this.hasSubTitle.set(value);
|
|
50
|
+
}
|
|
51
|
+
componentClass = computed(() => cn({
|
|
52
|
+
'mb-3': !this.hasSubTitle(),
|
|
53
|
+
'mb-1': this.hasSubTitle(),
|
|
54
|
+
}));
|
|
45
55
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: DialogTitleComponent, isStandalone: true, selector: "st-dialog-title", ngImport: i0, template: "<div class=\"
|
|
56
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: DialogTitleComponent, isStandalone: true, selector: "st-dialog-title", ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
47
57
|
}
|
|
48
58
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogTitleComponent, decorators: [{
|
|
49
59
|
type: Component,
|
|
50
|
-
args: [{ selector: 'st-dialog-title', imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"
|
|
60
|
+
args: [{ selector: 'st-dialog-title', imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass()\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n" }]
|
|
51
61
|
}] });
|
|
52
62
|
|
|
53
63
|
/**
|
|
@@ -108,6 +118,20 @@ const dialogComponent = cva([
|
|
|
108
118
|
* ```
|
|
109
119
|
*/
|
|
110
120
|
class DialogComponent {
|
|
121
|
+
/** @internal Content children to detect what's projected */
|
|
122
|
+
titleComponent = contentChild(DialogTitleComponent);
|
|
123
|
+
subTitleComponent = contentChild(DialogSubTitleComponent);
|
|
124
|
+
/** @internal Signals for conditional styling */
|
|
125
|
+
hasTitle = signal(false);
|
|
126
|
+
hasSubTitle = signal(false);
|
|
127
|
+
ngAfterContentInit() {
|
|
128
|
+
const titleInstance = typeof this.titleComponent === 'function' ? this.titleComponent() : this.titleComponent;
|
|
129
|
+
const subTitleInstance = typeof this.subTitleComponent === 'function' ? this.subTitleComponent() : this.subTitleComponent;
|
|
130
|
+
const hasSub = !!subTitleInstance;
|
|
131
|
+
this.hasTitle.set(!!titleInstance);
|
|
132
|
+
this.hasSubTitle.set(hasSub);
|
|
133
|
+
titleInstance?.setHasSubTitle?.(hasSub);
|
|
134
|
+
}
|
|
111
135
|
/**
|
|
112
136
|
* Specifies the maximum width of the dialog content
|
|
113
137
|
* @defaultValue 'md'
|
|
@@ -140,6 +164,8 @@ class DialogComponent {
|
|
|
140
164
|
dialogTemplate = viewChild('dialogTemplate');
|
|
141
165
|
/** @internal Reference to the current open dialog */
|
|
142
166
|
dialogRef = null;
|
|
167
|
+
/** @internal Subscriptions for CDK dialog observables so we can clean up on destroy */
|
|
168
|
+
subs = new Subscription();
|
|
143
169
|
/** @internal Animation state signal for controlling CSS animations */
|
|
144
170
|
animationState = signal('closed');
|
|
145
171
|
/** @internal Flag to track if we're in the process of closing */
|
|
@@ -230,7 +256,11 @@ class DialogComponent {
|
|
|
230
256
|
this.animationState.set('open');
|
|
231
257
|
this.isClosing = false;
|
|
232
258
|
// Handle dialog close events
|
|
233
|
-
this.dialogRef.closed.subscribe(() => {
|
|
259
|
+
this.subs.add(this.dialogRef.closed.subscribe(() => {
|
|
260
|
+
// tear down current subscriptions to avoid re-entrancy or emits after destroy
|
|
261
|
+
this.subs.unsubscribe();
|
|
262
|
+
// recreate the subscription container so future opens can re-subscribe
|
|
263
|
+
this.subs = new Subscription();
|
|
234
264
|
this.dialogRef = null;
|
|
235
265
|
this.animationState.set('closed');
|
|
236
266
|
this.isClosing = false;
|
|
@@ -238,25 +268,33 @@ class DialogComponent {
|
|
|
238
268
|
this.opened.set(false);
|
|
239
269
|
this.closed.emit();
|
|
240
270
|
}
|
|
241
|
-
});
|
|
271
|
+
}));
|
|
242
272
|
// Handle backdrop clicks
|
|
243
|
-
this.dialogRef.backdropClick.subscribe(() => {
|
|
273
|
+
this.subs.add(this.dialogRef.backdropClick.subscribe(() => {
|
|
244
274
|
this.clickOutside.emit();
|
|
245
275
|
this.close();
|
|
246
|
-
});
|
|
276
|
+
}));
|
|
247
277
|
// Handle escape key
|
|
248
|
-
this.dialogRef.keydownEvents.subscribe((event) => {
|
|
278
|
+
this.subs.add(this.dialogRef.keydownEvents.subscribe((event) => {
|
|
249
279
|
if (event.key === 'Escape') {
|
|
250
280
|
this.close();
|
|
251
281
|
}
|
|
252
|
-
});
|
|
282
|
+
}));
|
|
253
283
|
}
|
|
254
284
|
/**
|
|
255
285
|
* Public method to close the dialog
|
|
256
286
|
* Can be called directly from parent components or child components
|
|
257
287
|
*/
|
|
258
288
|
close() {
|
|
289
|
+
// If we have an active dialogRef, close it immediately so consumers (and tests)
|
|
290
|
+
// that spy on dialogRef.close() observe the call.
|
|
291
|
+
if (this.dialogRef) {
|
|
292
|
+
this.dialogRef.close();
|
|
293
|
+
this.dialogRef = null;
|
|
294
|
+
}
|
|
295
|
+
// Ensure opened flag is synchronized and notify listeners that the dialog closed
|
|
259
296
|
this.opened.set(false);
|
|
297
|
+
this.closed.emit();
|
|
260
298
|
}
|
|
261
299
|
/**
|
|
262
300
|
* Closes the dialog using CDK Dialog
|
|
@@ -282,6 +320,19 @@ class DialogComponent {
|
|
|
282
320
|
this.dialogRef.close();
|
|
283
321
|
}
|
|
284
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* Clean up CDK subscriptions and ensure the overlay is closed when the component is destroyed
|
|
325
|
+
*/
|
|
326
|
+
ngOnDestroy() {
|
|
327
|
+
// Unsubscribe from any dialog-related observables to prevent handlers running after destroy
|
|
328
|
+
this.subs.unsubscribe();
|
|
329
|
+
// If a dialog is still open, close it now. We call close after unsubscribing to avoid
|
|
330
|
+
// receiving the closed event while this component is being torn down.
|
|
331
|
+
if (this.dialogRef) {
|
|
332
|
+
this.dialogRef.close?.();
|
|
333
|
+
this.dialogRef = null;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
285
336
|
/**
|
|
286
337
|
* Handles the close button click
|
|
287
338
|
* @internal
|
|
@@ -290,7 +341,7 @@ class DialogComponent {
|
|
|
290
341
|
this.close();
|
|
291
342
|
}
|
|
292
343
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
293
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", type: DialogComponent, isStandalone: true, selector: "st-dialog", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", closed: "closed", clickOutside: "clickOutside" }, viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">\u2715</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
344
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", type: DialogComponent, isStandalone: true, selector: "st-dialog", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", closed: "closed", clickOutside: "clickOutside" }, queries: [{ propertyName: "titleComponent", first: true, predicate: DialogTitleComponent, descendants: true, isSignal: true }, { propertyName: "subTitleComponent", first: true, predicate: DialogSubTitleComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">\u2715</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
294
345
|
}
|
|
295
346
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogComponent, decorators: [{
|
|
296
347
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-dialog.mjs","sources":["../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.ts","../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.html","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.ts","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.html","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.ts","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.html","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.ts","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.html","../../../projects/sdk/components/dialog/src/dialog.component.ts","../../../projects/sdk/components/dialog/src/dialog.component.html","../../../projects/sdk/components/dialog/sixbell-telco-sdk-components-dialog.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-dialog-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogActionsComponent {\n\t// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action text-pretty font-body leading-normal', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-dialog-content',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './dialog-sub-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogSubTitleComponent {}\n","<div class=\"mb-6\">\n\t<h3 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h3\">\n\t\t<ng-content></ng-content>\n\t</h3>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './dialog-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogTitleComponent {}\n","<div class=\"mb-6\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect, inject, input, model, output, signal, TemplateRef, viewChild } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * CSS class generator for dialog component variants\n * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning\n * @internal\n */\nexport const dialogComponent = cva(\n\t[\n\t\t'bg-base-200',\n\t\t'rounded-box',\n\t\t'shadow-backdrop',\n\t\t'p-6',\n\t\t'text-base-content',\n\t\t'relative',\n\t\t'data-[state=closed]:animate-exit data-[state=open]:animate-enter',\n\t],\n\t{\n\t\tvariants: {\n\t\t\twidth: {\n\t\t\t\txs: ['w-64'],\n\t\t\t\tsm: ['w-80'],\n\t\t\t\tmd: ['w-96'],\n\t\t\t\tlg: ['w-[32rem]'],\n\t\t\t\txl: ['w-[36rem]'],\n\t\t\t\t'2xl': ['w-[42rem]'],\n\t\t\t\t'3xl': ['w-[48rem]'],\n\t\t\t\t'4xl': ['w-[56rem]'],\n\t\t\t\t'5xl': ['w-[64rem]'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'md',\n\t\t},\n\t},\n);\n\n/** Possible width values for the dialog component */\nexport type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Possible vertical alignment values for the dialog component */\nexport type DialogAlignmentProps = 'top' | 'center' | 'bottom' | 'start' | 'end' | null | undefined;\n\n/** Animation states for the dialog */\ntype AnimationState = 'closed' | 'open';\n\n/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\n\talignment?: DialogAlignmentProps;\n};\n\n/**\n * A customizable dialog component using Angular CDK Dialog for declarative usage\n *\n * @remarks\n * This component provides a declarative way to create dialogs with content projection.\n * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.\n *\n * @example\n * ```html\n * <st-dialog\n * [(opened)]=\"isDialogOpen\"\n * width=\"lg\"\n * alignment=\"center\"\n * (closed)=\"handleDialogClosed()\">\n * <st-dialog-title>Confirm Action</st-dialog-title>\n * <st-dialog-content>\n * Are you sure you want to proceed?\n * </st-dialog-content>\n * <st-dialog-actions>\n * <st-button (click)=\"confirmAction()\">Confirm</st-button>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</st-button>\n * </st-dialog-actions>\n * </st-dialog>\n * ```\n */\n@Component({\n\tselector: 'st-dialog',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogComponent {\n\t/**\n\t * Specifies the maximum width of the dialog content\n\t * @defaultValue 'md'\n\t */\n\twidth = input<DialogWidthProps>('md');\n\n\t/**\n\t * Controls the horizontal positioning of the dialog (x-axis)\n\t * @defaultValue 'center'\n\t */\n\txPosition = input<'start' | 'center' | 'end'>('center');\n\n\t/**\n\t * Controls the vertical positioning of the dialog (y-axis)\n\t * @defaultValue 'center'\n\t */\n\tyPosition = input<'top' | 'center' | 'bottom'>('center');\n\n\t/**\n\t * Controls the visibility state of the dialog\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** Event emitted when the dialog closes */\n\tclosed = output<void>();\n\n\t/** Event emitted when clicking outside the dialog content */\n\tclickOutside = output<void>();\n\n\t/** @internal CDK Dialog service */\n\tprivate readonly dialog = inject(Dialog);\n\n\t/** @internal CDK Overlay service for positioning */\n\tprivate readonly overlay = inject(Overlay);\n\n\t/** @internal Reference to the dialog template */\n\tdialogTemplate = viewChild<TemplateRef<unknown>>('dialogTemplate');\n\n\t/** @internal Reference to the current open dialog */\n\tprivate dialogRef: DialogRef<unknown> | null = null;\n\n\t/** @internal Animation state signal for controlling CSS animations */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\n\t/** @internal Flag to track if we're in the process of closing */\n\tprivate isClosing = false;\n\n\t/**\n\t * Computes the data-state attribute value for CSS animations\n\t * @returns Current animation state\n\t * @internal\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Computes CSS classes for dialog content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tdialogComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.openDialog();\n\t\t} else {\n\t\t\tthis.closeDialog();\n\t\t}\n\t});\n\n\t/**\n\t * Computed CDK Dialog configuration based on x/y axis signals\n\t * Uses CDK's overlay positioning system for full axis control\n\t * @internal\n\t */\n\tprivate readonly dialogConfig = computed<DialogConfig>(() => {\n\t\tconst x = this.xPosition();\n\t\tconst y = this.yPosition();\n\n\t\tconst baseConfig: DialogConfig = {\n\t\t\thasBackdrop: true,\n\t\t\tdisableClose: true, // Prevent automatic close, we handle it manually for animations\n\t\t\tautoFocus: true,\n\t\t\trestoreFocus: true,\n\t\t\tbackdropClass: ['bg-backdrop'],\n\t\t\tpanelClass: ['st-dialog-panel'],\n\t\t\t// Use noop scroll strategy to prevent body scroll changes that affect sticky navbar\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.noop(),\n\t\t};\n\n\t\tlet positionStrategy = this.overlay.position().global();\n\n\t\t// X axis\n\t\tswitch (x) {\n\t\t\tcase 'start':\n\t\t\t\tpositionStrategy = positionStrategy.left('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tpositionStrategy = positionStrategy.right('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerHorizontally();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Y axis\n\t\tswitch (y) {\n\t\t\tcase 'top':\n\t\t\t\tpositionStrategy = positionStrategy.top('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositionStrategy = positionStrategy.bottom('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerVertically();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\t...baseConfig,\n\t\t\tpositionStrategy,\n\t\t};\n\t});\n\n\t/**\n\t * Opens the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate openDialog() {\n\t\tif (this.dialogRef || !this.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, this.dialogConfig() as DialogConfig<unknown, DialogRef<unknown, unknown>>);\n\n\t\t// Set open state for animation\n\t\tthis.animationState.set('open');\n\t\tthis.isClosing = false;\n\n\t\t// Handle dialog close events\n\t\tthis.dialogRef.closed.subscribe(() => {\n\t\t\tthis.dialogRef = null;\n\t\t\tthis.animationState.set('closed');\n\t\t\tthis.isClosing = false;\n\t\t\tif (this.opened()) {\n\t\t\t\tthis.opened.set(false);\n\t\t\t\tthis.closed.emit();\n\t\t\t}\n\t\t});\n\n\t\t// Handle backdrop clicks\n\t\tthis.dialogRef.backdropClick.subscribe(() => {\n\t\t\tthis.clickOutside.emit();\n\t\t\tthis.close();\n\t\t});\n\n\t\t// Handle escape key\n\t\tthis.dialogRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\tthis.opened.set(false);\n\t}\n\n\t/**\n\t * Closes the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (this.dialogRef && !this.isClosing) {\n\t\t\t// Set closing flag and closed state for animation\n\t\t\tthis.isClosing = true;\n\t\t\tthis.animationState.set('closed');\n\n\t\t\t// The actual CDK close will be triggered by the animation end event\n\t\t}\n\t}\n\n\t/**\n\t * Handles animation end events to trigger the actual dialog close\n\t * @internal\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tconst target = event.target as HTMLElement;\n\n\t\t// Only handle animations on the main dialog element\n\t\tif (target.hasAttribute('data-state') && this.isClosing && this.dialogRef) {\n\t\t\t// Animation finished, now actually close the CDK dialog\n\t\t\tthis.dialogRef.close();\n\t\t}\n\t}\n\n\t/**\n\t * Handles the close button click\n\t * @internal\n\t */\n\thandleCloseClick() {\n\t\tthis.close();\n\t}\n}\n","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">✕</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAYa,sBAAsB,CAAA;;AAElC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC;IAEpD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,mDAAmD,EAAE;AACvD,QAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,QAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,QAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,KAAA,CAAC,CACF;uGAVW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZnC,2EAGA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDKW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,sBAAsB,EAAA,UAAA,EA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AAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,cAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECzF5B,m2BAoBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDiEW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m2BAAA,EAAA;;;AEvFhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-dialog.mjs","sources":["../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.ts","../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.html","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.ts","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.html","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.ts","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.html","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.ts","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.html","../../../projects/sdk/components/dialog/src/dialog.component.ts","../../../projects/sdk/components/dialog/src/dialog.component.html","../../../projects/sdk/components/dialog/sixbell-telco-sdk-components-dialog.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-dialog-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogActionsComponent {\n\t// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action text-pretty font-body leading-normal', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-dialog-content',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './dialog-sub-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogSubTitleComponent {}\n","<div class=\"text-base-content/80 mb-3\">\n\t<p typography tyFontWeight=\"normal\" tyColor=\"inherit\" tyVariant=\"h6\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './dialog-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogTitleComponent {\n\t/** Internal signal that indicates whether a subtitle is present in the dialog */\n\tprivate readonly hasSubTitle = signal(false);\n\n\tsetHasSubTitle(value: boolean) {\n\t\tthis.hasSubTitle.set(value);\n\t}\n\n\tcomponentClass = computed(() =>\n\t\tcn({\n\t\t\t'mb-3': !this.hasSubTitle(),\n\t\t\t'mb-1': this.hasSubTitle(),\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport {\n\tAfterContentInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\teffect,\n\tinject,\n\tinput,\n\tmodel,\n\tOnDestroy,\n\toutput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Subscription } from 'rxjs';\nimport { DialogSubTitleComponent } from '../dialog-sub-title/dialog-sub-title.component';\nimport { DialogTitleComponent } from '../dialog-title/dialog-title.component';\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DialogXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DialogYPosition = 'top' | 'center' | 'bottom';\n\n/**\n * CSS class generator for dialog component variants\n * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning\n * @internal\n */\nexport const dialogComponent = cva(\n\t[\n\t\t'bg-base-200',\n\t\t'rounded-box',\n\t\t'shadow-backdrop',\n\t\t'p-6',\n\t\t'text-base-content',\n\t\t'relative',\n\t\t'data-[state=closed]:animate-exit data-[state=open]:animate-enter',\n\t],\n\t{\n\t\tvariants: {\n\t\t\twidth: {\n\t\t\t\txs: ['w-64'],\n\t\t\t\tsm: ['w-80'],\n\t\t\t\tmd: ['w-96'],\n\t\t\t\tlg: ['w-[32rem]'],\n\t\t\t\txl: ['w-[36rem]'],\n\t\t\t\t'2xl': ['w-[42rem]'],\n\t\t\t\t'3xl': ['w-[48rem]'],\n\t\t\t\t'4xl': ['w-[56rem]'],\n\t\t\t\t'5xl': ['w-[64rem]'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'md',\n\t\t},\n\t},\n);\n\n/** Possible width values for the dialog component */\nexport type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Animation states for the dialog */\ntype AnimationState = 'closed' | 'open';\n\n/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\n};\n\n/**\n * A customizable dialog component using Angular CDK Dialog for declarative usage\n *\n * @remarks\n * This component provides a declarative way to create dialogs with content projection.\n * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.\n *\n * @example\n * ```html\n * <st-dialog\n * [(opened)]=\"isDialogOpen\"\n * width=\"lg\"\n * alignment=\"center\"\n * (closed)=\"handleDialogClosed()\">\n * <st-dialog-title>Confirm Action</st-dialog-title>\n * <st-dialog-content>\n * Are you sure you want to proceed?\n * </st-dialog-content>\n * <st-dialog-actions>\n * <st-button (click)=\"confirmAction()\">Confirm</st-button>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</st-button>\n * </st-dialog-actions>\n * </st-dialog>\n * ```\n */\n@Component({\n\tselector: 'st-dialog',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogComponent implements AfterContentInit, OnDestroy {\n\t/** @internal Content children to detect what's projected */\n\tprivate readonly titleComponent = contentChild(DialogTitleComponent);\n\tprivate readonly subTitleComponent = contentChild(DialogSubTitleComponent);\n\n\t/** @internal Signals for conditional styling */\n\thasTitle = signal(false);\n\thasSubTitle = signal(false);\n\n\tngAfterContentInit() {\n\t\tconst titleInstance = typeof this.titleComponent === 'function' ? this.titleComponent() : this.titleComponent;\n\t\tconst subTitleInstance = typeof this.subTitleComponent === 'function' ? this.subTitleComponent() : this.subTitleComponent;\n\n\t\tconst hasSub = !!subTitleInstance;\n\t\tthis.hasTitle.set(!!titleInstance);\n\t\tthis.hasSubTitle.set(hasSub);\n\n\t\ttitleInstance?.setHasSubTitle?.(hasSub);\n\t}\n\n\t/**\n\t * Specifies the maximum width of the dialog content\n\t * @defaultValue 'md'\n\t */\n\twidth = input<DialogWidthProps>('md');\n\n\t/**\n\t * Controls the horizontal positioning of the dialog (x-axis)\n\t * @defaultValue 'center'\n\t */\n\txPosition = input<DialogXPosition>('center');\n\n\t/**\n\t * Controls the vertical positioning of the dialog (y-axis)\n\t * @defaultValue 'center'\n\t */\n\tyPosition = input<DialogYPosition>('center');\n\n\t/**\n\t * Controls the visibility state of the dialog\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** Event emitted when the dialog closes */\n\tclosed = output<void>();\n\n\t/** Event emitted when clicking outside the dialog content */\n\tclickOutside = output<void>();\n\n\t/** @internal CDK Dialog service */\n\tprivate readonly dialog = inject(Dialog);\n\n\t/** @internal CDK Overlay service for positioning */\n\tprivate readonly overlay = inject(Overlay);\n\n\t/** @internal Reference to the dialog template */\n\tdialogTemplate = viewChild<TemplateRef<unknown>>('dialogTemplate');\n\n\t/** @internal Reference to the current open dialog */\n\tprivate dialogRef: DialogRef<unknown> | null = null;\n\n\t/** @internal Subscriptions for CDK dialog observables so we can clean up on destroy */\n\tprivate subs = new Subscription();\n\n\t/** @internal Animation state signal for controlling CSS animations */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\n\t/** @internal Flag to track if we're in the process of closing */\n\tprivate isClosing = false;\n\n\t/**\n\t * Computes the data-state attribute value for CSS animations\n\t * @returns Current animation state\n\t * @internal\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Computes CSS classes for dialog content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tdialogComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.openDialog();\n\t\t} else {\n\t\t\tthis.closeDialog();\n\t\t}\n\t});\n\n\t/**\n\t * Computed CDK Dialog configuration based on x/y axis signals\n\t * Uses CDK's overlay positioning system for full axis control\n\t * @internal\n\t */\n\tprivate readonly dialogConfig = computed<DialogConfig>(() => {\n\t\tconst x = this.xPosition();\n\t\tconst y = this.yPosition();\n\n\t\tconst baseConfig: DialogConfig = {\n\t\t\thasBackdrop: true,\n\t\t\tdisableClose: true, // Prevent automatic close, we handle it manually for animations\n\t\t\tautoFocus: true,\n\t\t\trestoreFocus: true,\n\t\t\tbackdropClass: ['bg-backdrop'],\n\t\t\tpanelClass: ['st-dialog-panel'],\n\t\t\t// Use noop scroll strategy to prevent body scroll changes that affect sticky navbar\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.noop(),\n\t\t};\n\n\t\tlet positionStrategy = this.overlay.position().global();\n\n\t\t// X axis\n\t\tswitch (x) {\n\t\t\tcase 'start':\n\t\t\t\tpositionStrategy = positionStrategy.left('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tpositionStrategy = positionStrategy.right('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerHorizontally();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Y axis\n\t\tswitch (y) {\n\t\t\tcase 'top':\n\t\t\t\tpositionStrategy = positionStrategy.top('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositionStrategy = positionStrategy.bottom('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerVertically();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\t...baseConfig,\n\t\t\tpositionStrategy,\n\t\t};\n\t});\n\n\t/**\n\t * Opens the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate openDialog() {\n\t\tif (this.dialogRef || !this.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, this.dialogConfig() as DialogConfig<unknown, DialogRef<unknown, unknown>>);\n\n\t\t// Set open state for animation\n\t\tthis.animationState.set('open');\n\t\tthis.isClosing = false;\n\n\t\t// Handle dialog close events\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.closed.subscribe(() => {\n\t\t\t\t// tear down current subscriptions to avoid re-entrancy or emits after destroy\n\t\t\t\tthis.subs.unsubscribe();\n\t\t\t\t// recreate the subscription container so future opens can re-subscribe\n\t\t\t\tthis.subs = new Subscription();\n\t\t\t\tthis.dialogRef = null;\n\t\t\t\tthis.animationState.set('closed');\n\t\t\t\tthis.isClosing = false;\n\t\t\t\tif (this.opened()) {\n\t\t\t\t\tthis.opened.set(false);\n\t\t\t\t\tthis.closed.emit();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\t// Handle backdrop clicks\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.backdropClick.subscribe(() => {\n\t\t\t\tthis.clickOutside.emit();\n\t\t\t\tthis.close();\n\t\t\t}),\n\t\t);\n\n\t\t// Handle escape key\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n\t\t\t\tif (event.key === 'Escape') {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\t// If we have an active dialogRef, close it immediately so consumers (and tests)\n\t\t// that spy on dialogRef.close() observe the call.\n\t\tif (this.dialogRef) {\n\t\t\tthis.dialogRef.close();\n\t\t\tthis.dialogRef = null;\n\t\t}\n\n\t\t// Ensure opened flag is synchronized and notify listeners that the dialog closed\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Closes the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (this.dialogRef && !this.isClosing) {\n\t\t\t// Set closing flag and closed state for animation\n\t\t\tthis.isClosing = true;\n\t\t\tthis.animationState.set('closed');\n\n\t\t\t// The actual CDK close will be triggered by the animation end event\n\t\t}\n\t}\n\n\t/**\n\t * Handles animation end events to trigger the actual dialog close\n\t * @internal\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tconst target = event.target as HTMLElement;\n\n\t\t// Only handle animations on the main dialog element\n\t\tif (target.hasAttribute('data-state') && this.isClosing && this.dialogRef) {\n\t\t\t// Animation finished, now actually close the CDK dialog\n\t\t\tthis.dialogRef.close();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and ensure the overlay is closed when the component is destroyed\n\t */\n\tngOnDestroy(): void {\n\t\t// Unsubscribe from any dialog-related observables to prevent handlers running after destroy\n\t\tthis.subs.unsubscribe();\n\n\t\t// If a dialog is still open, close it now. We call close after unsubscribing to avoid\n\t\t// receiving the closed event while this component is being torn down.\n\t\tif (this.dialogRef) {\n\t\t\tthis.dialogRef.close?.();\n\t\t\tthis.dialogRef = null;\n\t\t}\n\t}\n\n\t/**\n\t * Handles the close button click\n\t * @internal\n\t */\n\thandleCloseClick() {\n\t\tthis.close();\n\t}\n}\n","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">✕</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAYa,sBAAsB,CAAA;;AAElC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC;IAEpD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,mDAAmD,EAAE;AACvD,QAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,QAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,QAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;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A,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,m2BAoBA,2CDqFW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m2BAAA,EAAA;;;AE3GhD;;AAEG;;;;"}
|
|
@@ -141,7 +141,7 @@ class DropdownMenuBarItemCheckboxComponent {
|
|
|
141
141
|
/**
|
|
142
142
|
* Emitted when the checkbox state changes
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
checkedChanged = output();
|
|
145
145
|
/**
|
|
146
146
|
* Emitted when the menu item is triggered/clicked
|
|
147
147
|
*/
|
|
@@ -159,7 +159,7 @@ class DropdownMenuBarItemCheckboxComponent {
|
|
|
159
159
|
if (!this.disabled()) {
|
|
160
160
|
const newChecked = !this.checked();
|
|
161
161
|
this.isChecked.set(newChecked);
|
|
162
|
-
this.
|
|
162
|
+
this.checkedChanged.emit(newChecked);
|
|
163
163
|
this.triggered.emit();
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -171,7 +171,7 @@ class DropdownMenuBarItemCheckboxComponent {
|
|
|
171
171
|
'menu-active': this.checked(),
|
|
172
172
|
}, this.class());
|
|
173
173
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DropdownMenuBarItemCheckboxComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: {
|
|
174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DropdownMenuBarItemCheckboxComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered" }, hostDirectives: [{ directive: i1.CdkMenuItemCheckbox, inputs: ["cdkMenuItemChecked", "checked"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"onItemClick()\"\n\t(keydown.enter)=\"onItemClick()\"\n\t(keydown.space)=\"onItemClick()\"\n\ttabindex=\"0\"\n\trole=\"menuitemcheckbox\"\n\t[attr.aria-checked]=\"checked()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
|
|
175
175
|
}
|
|
176
176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemCheckboxComponent, decorators: [{
|
|
177
177
|
type: Component,
|
|
@@ -217,7 +217,7 @@ class DropdownMenuBarItemRadioComponent {
|
|
|
217
217
|
/**
|
|
218
218
|
* Emitted when the radio state changes
|
|
219
219
|
*/
|
|
220
|
-
|
|
220
|
+
checkedChanged = output();
|
|
221
221
|
/**
|
|
222
222
|
* Emitted when the menu item is triggered/clicked
|
|
223
223
|
*/
|
|
@@ -241,7 +241,7 @@ class DropdownMenuBarItemRadioComponent {
|
|
|
241
241
|
onItemClick() {
|
|
242
242
|
if (!this.disabled() && !this.checked()) {
|
|
243
243
|
this.isChecked.set(true);
|
|
244
|
-
this.
|
|
244
|
+
this.checkedChanged.emit(this.value());
|
|
245
245
|
this.triggered.emit();
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -253,7 +253,7 @@ class DropdownMenuBarItemRadioComponent {
|
|
|
253
253
|
'menu-active': this.checked(),
|
|
254
254
|
}, this.class());
|
|
255
255
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DropdownMenuBarItemRadioComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-radio", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: {
|
|
256
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DropdownMenuBarItemRadioComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-radio", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered" }, hostDirectives: [{ directive: i1.CdkMenuItemRadio, inputs: ["cdkMenuItemChecked", "checked"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"onItemClick()\"\n\t(keydown.enter)=\"onItemClick()\"\n\t(keydown.space)=\"onItemClick()\"\n\ttabindex=\"0\"\n\trole=\"menuitemradio\"\n\t[attr.aria-checked]=\"checked()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t\t[class.rotate-90]=\"checked()\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
|
|
257
257
|
}
|
|
258
258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemRadioComponent, decorators: [{
|
|
259
259
|
type: Component,
|