@ds-mo/ui 14.15.1 → 14.17.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/dist/.package-ready.json +1 -1
- package/dist/agent-patterns.json +3 -3
- package/dist/agent.json +317 -24
- package/dist/angular/ds-button-unfilled.d.ts +1 -1
- package/dist/angular/ds-button-unfilled.js +3 -3
- package/dist/angular/ds-filter-menu.d.ts +1 -1
- package/dist/angular/ds-filter-menu.js +3 -3
- package/dist/angular/ds-select.d.ts +1 -1
- package/dist/angular/ds-select.js +3 -3
- package/dist/angular/ds-table-filter.d.ts +44 -0
- package/dist/angular/ds-table-filter.js +57 -0
- package/dist/angular/ds-table-sort.d.ts +16 -0
- package/dist/angular/ds-table-sort.js +43 -0
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +2 -0
- package/dist/angular/proxies.d.ts +2 -0
- package/dist/angular/proxies.js +2 -0
- package/dist/components/ds-agent-activity.js +1 -1
- package/dist/components/ds-agent-questionnaire.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-agent-source-list.js +1 -1
- package/dist/components/ds-agent-tool-call.js +1 -1
- package/dist/components/ds-attachment-list.js +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- package/dist/components/ds-banner.js.map +1 -1
- package/dist/components/ds-bar-action.js +1 -1
- package/dist/components/ds-bar-action.js.map +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-title.js +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-bar-workflow.js.map +1 -1
- package/dist/components/ds-breadcrumb.js +1 -1
- package/dist/components/ds-button-filled.js +1 -1
- package/dist/components/ds-button-unfilled.js +1 -1
- package/dist/components/ds-card-chart.js +1 -1
- package/dist/components/ds-card-chart.js.map +1 -1
- package/dist/components/ds-card-overview.js +1 -1
- package/dist/components/ds-card-overview.js.map +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-card-setting.js.map +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-legend.js.map +1 -1
- package/dist/components/ds-chart.js +1 -1
- package/dist/components/ds-chart.js.map +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-chip.js.map +1 -1
- package/dist/components/ds-code-block.js +1 -1
- package/dist/components/ds-conversation-list-item.js +1 -1
- package/dist/components/ds-conversation-list-item.js.map +1 -1
- package/dist/components/ds-conversation-list-section.js +1 -1
- package/dist/components/ds-empty-state.js +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-filter-menu.js +1 -1
- package/dist/components/ds-filter-menu.js.map +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-loader.js +1 -1
- package/dist/components/ds-markdown.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-message-actions.js +1 -1
- package/dist/components/ds-message-actions.js.map +1 -1
- package/dist/components/ds-message-composer.js +1 -1
- package/dist/components/ds-message-composer.js.map +1 -1
- package/dist/components/ds-message-scroller.js +1 -1
- package/dist/components/ds-message-scroller.js.map +1 -1
- package/dist/components/ds-message.js +1 -1
- package/dist/components/ds-mobile-bar-nav.js +1 -1
- package/dist/components/ds-mobile-header.js +1 -1
- package/dist/components/ds-mobile-section-switcher.js +1 -1
- package/dist/components/ds-mobile-sheet-nav.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-pagination.js +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js.map +1 -1
- package/dist/components/ds-panel-tool-header.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-panel-tool-search.js.map +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-paper-texture.js +1 -1
- package/dist/components/ds-radio.js +1 -1
- package/dist/components/ds-scroll-overlay.js +1 -1
- package/dist/components/ds-scroll-overlay.js.map +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-app.js.map +1 -1
- package/dist/components/ds-shell-page.js +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-skeleton.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-slider.js.map +1 -1
- package/dist/components/ds-swatch-picker.js +1 -1
- package/dist/components/ds-switch.js +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-table-filter.d.ts +11 -0
- package/dist/components/ds-table-filter.js +2 -0
- package/dist/components/ds-table-filter.js.map +1 -0
- package/dist/components/ds-table-saved-views.js +1 -1
- package/dist/components/ds-table-saved-views.js.map +1 -1
- package/dist/components/ds-table-sort.d.ts +11 -0
- package/dist/components/ds-table-sort.js +2 -0
- package/dist/components/ds-table-sort.js.map +1 -0
- package/dist/components/ds-table-toolbar.js +1 -1
- package/dist/components/ds-table-toolbar.js.map +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip-chart.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/ds-typing-indicator.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-23u3lIr1.js +2 -0
- package/dist/components/{p-DLkNcCY0.js.map → p-23u3lIr1.js.map} +1 -1
- package/dist/components/{p-C1q-tq3U.js → p-7tZx4ukz.js} +2 -2
- package/dist/components/{p-DfyfrfHL.js → p-Asi9h3pa.js} +2 -2
- package/dist/components/{p-DfyfrfHL.js.map → p-Asi9h3pa.js.map} +1 -1
- package/dist/components/{p-C5TrNd31.js → p-B0PEg5RF.js} +2 -2
- package/dist/components/{p-C5TrNd31.js.map → p-B0PEg5RF.js.map} +1 -1
- package/dist/components/p-BFSLT0yc.js +2 -0
- package/dist/components/p-BFSLT0yc.js.map +1 -0
- package/dist/components/{p-DZFilC--.js → p-BGXqFq2C.js} +2 -2
- package/dist/components/{p-Rfpd5mWO.js → p-BHDkJmrC.js} +2 -2
- package/dist/components/{p-Rfpd5mWO.js.map → p-BHDkJmrC.js.map} +1 -1
- package/dist/components/{p-Cyw9odJX.js → p-BHz78C8h.js} +2 -2
- package/dist/components/{p-Cyw9odJX.js.map → p-BHz78C8h.js.map} +1 -1
- package/dist/components/{p-Dcnd5ZX5.js → p-BKp__CQX.js} +2 -2
- package/dist/components/{p-V2ywPfsR.js → p-BVlfQ8xZ.js} +2 -2
- package/dist/components/{p-V2ywPfsR.js.map → p-BVlfQ8xZ.js.map} +1 -1
- package/dist/components/p-BdnQv7Zl.js +2 -0
- package/dist/components/p-BdnQv7Zl.js.map +1 -0
- package/dist/components/{p-Dsn1RCS5.js → p-Be1sY58w.js} +2 -2
- package/dist/components/{p-Dsn1RCS5.js.map → p-Be1sY58w.js.map} +1 -1
- package/dist/components/p-Bh67XbfB.js +2 -0
- package/dist/components/{p-BzLnSwG9.js.map → p-Bh67XbfB.js.map} +1 -1
- package/dist/components/{p-Btxwp4lJ.js → p-BhYWdbEp.js} +2 -2
- package/dist/components/{p-Btxwp4lJ.js.map → p-BhYWdbEp.js.map} +1 -1
- package/dist/components/{p-D1Nqlrrl.js → p-Bn8NryHK.js} +2 -2
- package/dist/components/{p-D1Nqlrrl.js.map → p-Bn8NryHK.js.map} +1 -1
- package/dist/components/{p-B80NfEqc.js → p-C0X2zKbB.js} +2 -2
- package/dist/components/{p-Ct-m0I6U.js → p-C4TgWJi9.js} +2 -2
- package/dist/components/p-CKmfuK7k.js +2 -0
- package/dist/components/p-CKmfuK7k.js.map +1 -0
- package/dist/components/{p-DTMxwYQj.js → p-CMFvaY05.js} +2 -2
- package/dist/components/{p-PzI11fs8.js → p-CzcWZiH-.js} +2 -2
- package/dist/components/{p-PzI11fs8.js.map → p-CzcWZiH-.js.map} +1 -1
- package/dist/components/{p-BagXfn1G.js → p-D1YhYulL.js} +2 -2
- package/dist/components/{p-BzObtSlo.js → p-D2z2DgtX.js} +2 -2
- package/dist/components/{p-BzObtSlo.js.map → p-D2z2DgtX.js.map} +1 -1
- package/dist/components/{p-BXPQmp7q.js → p-D4K9CE8a.js} +2 -2
- package/dist/components/{p-DcPVSNDr.js → p-D8Qd6gkf.js} +2 -2
- package/dist/components/{p-DcPVSNDr.js.map → p-D8Qd6gkf.js.map} +1 -1
- package/dist/components/{p-BHjw0x3L.js → p-DAqSoyd4.js} +2 -2
- package/dist/components/{p-BHjw0x3L.js.map → p-DAqSoyd4.js.map} +1 -1
- package/dist/components/p-DEjh3klB.js +2 -0
- package/dist/components/{p-CKJzHclc.js.map → p-DEjh3klB.js.map} +1 -1
- package/dist/components/{p-NdahPypA.js → p-DFQ9mcbK.js} +2 -2
- package/dist/components/{p-Ck_VRQYi.js → p-DHuyj-9J.js} +2 -2
- package/dist/components/{p-Ck_VRQYi.js.map → p-DHuyj-9J.js.map} +1 -1
- package/dist/components/p-DIEK54fV.js +2 -0
- package/dist/components/{p-URdgCwEs.js.map → p-DIEK54fV.js.map} +1 -1
- package/dist/components/{p-Bf_D3crn.js → p-DNJTN_s0.js} +2 -2
- package/dist/components/p-DOqnJVos.js +2 -0
- package/dist/components/{p-CWDmHPJC.js.map → p-DOqnJVos.js.map} +1 -1
- package/dist/components/{p-DL_5VENG.js → p-DQqOzDEq.js} +2 -2
- package/dist/components/{p-D-kWb8cF.js → p-DSIOINBK.js} +2 -2
- package/dist/components/{p-C5eosu67.js → p-DZ55e3j9.js} +2 -2
- package/dist/components/{p-C5eosu67.js.map → p-DZ55e3j9.js.map} +1 -1
- package/dist/components/{p-QdI17bl-.js → p-Dg9qiMDa.js} +2 -2
- package/dist/components/p-DsJW5W3W.js +2 -0
- package/dist/components/{p-C2n8A8NA.js.map → p-DsJW5W3W.js.map} +1 -1
- package/dist/components/p-JPTkZ3Ji.js +2 -0
- package/dist/components/p-JPTkZ3Ji.js.map +1 -0
- package/dist/components/p-NzGRAPcF.js +2 -0
- package/dist/components/p-NzGRAPcF.js.map +1 -0
- package/dist/components/{p-B7Hf86NF.js → p-PD1Vfg0t.js} +2 -2
- package/dist/components/{p-B7Hf86NF.js.map → p-PD1Vfg0t.js.map} +1 -1
- package/dist/components/{p-BxqBiVbH.js → p-U8JIZzI2.js} +2 -2
- package/dist/components/{p-BxqBiVbH.js.map → p-U8JIZzI2.js.map} +1 -1
- package/dist/components/{p-CKY989vF.js → p-ZZzC52Ea.js} +2 -2
- package/dist/components/{p-CKY989vF.js.map → p-ZZzC52Ea.js.map} +1 -1
- package/dist/components/p-__lNIImO.js +2 -0
- package/dist/components/{p-CnWC0QvG.js.map → p-__lNIImO.js.map} +1 -1
- package/dist/components/{p-vWK5faWZ.js → p-a6qP60zb.js} +2 -2
- package/dist/components/{p-CjgnFGd6.js → p-rrFMAZkj.js} +2 -2
- package/dist/components/{p-CjgnFGd6.js.map → p-rrFMAZkj.js.map} +1 -1
- package/dist/components/p-ruPTIV6t.js +2 -0
- package/dist/components/{p-M9DPfXbP.js.map → p-ruPTIV6t.js.map} +1 -1
- package/dist/components/{p-jMCRaxQW.js → p-y4jhIkRc.js} +2 -2
- package/dist/components/{p-jMCRaxQW.js.map → p-y4jhIkRc.js.map} +1 -1
- package/dist/docs/components.json +813 -76
- package/dist/mcp-data/registry/button-unfilled.json +26 -7
- package/dist/mcp-data/registry/filter-menu.json +21 -2
- package/dist/mcp-data/registry/loader.json +2 -1
- package/dist/mcp-data/registry/registry.json +322 -23
- package/dist/mcp-data/registry/select.json +22 -3
- package/dist/mcp-data/registry/table-filter.json +399 -0
- package/dist/mcp-data/registry/table-saved-views.json +4 -4
- package/dist/mcp-data/registry/table-sort.json +229 -0
- package/dist/mcp-data/registry/table-toolbar.json +21 -14
- package/dist/mcp-data/registry/table.json +11 -8
- package/dist/react/components.d.ts +2 -0
- package/dist/react/components.js +2 -0
- package/dist/react/ds-table-filter.d.ts +17 -0
- package/dist/react/ds-table-filter.js +19 -0
- package/dist/react/ds-table-sort.d.ts +12 -0
- package/dist/react/ds-table-sort.js +12 -0
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +18 -1
- package/dist/types/components/FilterMenu/FilterMenu.d.ts +13 -0
- package/dist/types/components/Select/Select.d.ts +13 -0
- package/dist/types/components/Table/Table.d.ts +4 -0
- package/dist/types/components/Table/table-column-customizer.d.ts +2 -0
- package/dist/types/components/TableFilter/TableFilter.d.ts +37 -0
- package/dist/types/components/TableSort/TableSort.d.ts +24 -0
- package/dist/types/components/TableSort/table-sort-menu.d.ts +15 -0
- package/dist/types/components.d.ts +254 -2
- package/dist/types/utils/table-caption-compact.d.ts +6 -0
- package/dist/vue/components.d.ts +2 -0
- package/dist/vue/components.js +2 -0
- package/dist/vue/ds-button-unfilled.js +1 -0
- package/dist/vue/ds-filter-menu.js +1 -0
- package/dist/vue/ds-select.js +1 -0
- package/dist/vue/ds-table-filter.d.ts +3 -0
- package/dist/vue/ds-table-filter.js +29 -0
- package/dist/vue/ds-table-sort.d.ts +3 -0
- package/dist/vue/ds-table-sort.js +13 -0
- package/package.json +1 -1
- package/dist/components/p-BzLnSwG9.js +0 -2
- package/dist/components/p-C2n8A8NA.js +0 -2
- package/dist/components/p-C7rzVotG.js +0 -2
- package/dist/components/p-C7rzVotG.js.map +0 -1
- package/dist/components/p-CKJzHclc.js +0 -2
- package/dist/components/p-CWDmHPJC.js +0 -2
- package/dist/components/p-Ca-I2UnB.js +0 -2
- package/dist/components/p-Ca-I2UnB.js.map +0 -1
- package/dist/components/p-CnWC0QvG.js +0 -2
- package/dist/components/p-CooNucm0.js +0 -2
- package/dist/components/p-CooNucm0.js.map +0 -1
- package/dist/components/p-DLkNcCY0.js +0 -2
- package/dist/components/p-M9DPfXbP.js +0 -2
- package/dist/components/p-URdgCwEs.js +0 -2
- /package/dist/components/{p-C1q-tq3U.js.map → p-7tZx4ukz.js.map} +0 -0
- /package/dist/components/{p-DZFilC--.js.map → p-BGXqFq2C.js.map} +0 -0
- /package/dist/components/{p-Dcnd5ZX5.js.map → p-BKp__CQX.js.map} +0 -0
- /package/dist/components/{p-B80NfEqc.js.map → p-C0X2zKbB.js.map} +0 -0
- /package/dist/components/{p-Ct-m0I6U.js.map → p-C4TgWJi9.js.map} +0 -0
- /package/dist/components/{p-DTMxwYQj.js.map → p-CMFvaY05.js.map} +0 -0
- /package/dist/components/{p-BagXfn1G.js.map → p-D1YhYulL.js.map} +0 -0
- /package/dist/components/{p-BXPQmp7q.js.map → p-D4K9CE8a.js.map} +0 -0
- /package/dist/components/{p-NdahPypA.js.map → p-DFQ9mcbK.js.map} +0 -0
- /package/dist/components/{p-Bf_D3crn.js.map → p-DNJTN_s0.js.map} +0 -0
- /package/dist/components/{p-DL_5VENG.js.map → p-DQqOzDEq.js.map} +0 -0
- /package/dist/components/{p-D-kWb8cF.js.map → p-DSIOINBK.js.map} +0 -0
- /package/dist/components/{p-QdI17bl-.js.map → p-Dg9qiMDa.js.map} +0 -0
- /package/dist/components/{p-vWK5faWZ.js.map → p-a6qP60zb.js.map} +0 -0
|
@@ -66,6 +66,7 @@ import { SwatchPickerOption, SwatchPickerSection } from "./components/SwatchPick
|
|
|
66
66
|
import { SwitchSize } from "./components/Switch/Switch";
|
|
67
67
|
import { TabBackground, TabGroupSize as TabGroupSize1, TabGroupWidth } from "./components/TabGroup/TabGroup";
|
|
68
68
|
import { TableCaptionVisibility, TableCellActionDetail, TableColumn, TableColumnsConfigChangeDetail, TableDataMode, TableDataModeChangeDetail, TableGroup, TableGroupCollapseChangeDetail, TableGroupingState, TableGroupLoadMoreDetail, TableLoadMoreDetail, TableLoadMoreMode, TablePaginationState, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortState } from "./components/Table/table-types";
|
|
69
|
+
import { FilterMenuChangeDetail as FilterMenuChangeDetail1, FilterMenuFilter as FilterMenuFilter1, FilterMenuValues as FilterMenuValues1 } from "./components/FilterMenu/FilterMenu";
|
|
69
70
|
import { TableSavedView, TableSavedViewChangeDetail, TableSavedViewCreateDetail, TableSavedViewDiscardDetail, TableSavedViewRemoveDetail, TableSavedViewRenameDetail, TableSavedViewSaveDetail } from "./components/TableSavedViews/table-saved-views-types";
|
|
70
71
|
import { TagContrast, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
71
72
|
import { ToastActionEventDetail, ToastCloseEventDetail, ToastEventDetail, ToastManager, ToastSwipeDirection } from "./toast";
|
|
@@ -132,6 +133,7 @@ export { SwatchPickerOption, SwatchPickerSection } from "./components/SwatchPick
|
|
|
132
133
|
export { SwitchSize } from "./components/Switch/Switch";
|
|
133
134
|
export { TabBackground, TabGroupSize as TabGroupSize1, TabGroupWidth } from "./components/TabGroup/TabGroup";
|
|
134
135
|
export { TableCaptionVisibility, TableCellActionDetail, TableColumn, TableColumnsConfigChangeDetail, TableDataMode, TableDataModeChangeDetail, TableGroup, TableGroupCollapseChangeDetail, TableGroupingState, TableGroupLoadMoreDetail, TableLoadMoreDetail, TableLoadMoreMode, TablePaginationState, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortState } from "./components/Table/table-types";
|
|
136
|
+
export { FilterMenuChangeDetail as FilterMenuChangeDetail1, FilterMenuFilter as FilterMenuFilter1, FilterMenuValues as FilterMenuValues1 } from "./components/FilterMenu/FilterMenu";
|
|
135
137
|
export { TableSavedView, TableSavedViewChangeDetail, TableSavedViewCreateDetail, TableSavedViewDiscardDetail, TableSavedViewRemoveDetail, TableSavedViewRenameDetail, TableSavedViewSaveDetail } from "./components/TableSavedViews/table-saved-views-types";
|
|
136
138
|
export { TagContrast, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
137
139
|
export { ToastActionEventDetail, ToastCloseEventDetail, ToastEventDetail, ToastManager, ToastSwipeDirection } from "./toast";
|
|
@@ -674,6 +676,11 @@ export namespace Components {
|
|
|
674
676
|
* Actual parent surface context. Omit on primary and secondary surfaces.
|
|
675
677
|
*/
|
|
676
678
|
"background": ButtonUnfilledBackground | undefined;
|
|
679
|
+
/**
|
|
680
|
+
* Collapse the visible label and chevron to an icon-only control when the owning `ds-table` caption is narrower than 900px. The trigger omits those parts rather than clipping them.
|
|
681
|
+
* @default false
|
|
682
|
+
*/
|
|
683
|
+
"collapseLabel": boolean;
|
|
677
684
|
"controls": string | undefined;
|
|
678
685
|
/**
|
|
679
686
|
* Show a notification dot at the top-right of the icon zone (icon variant only).
|
|
@@ -694,7 +701,7 @@ export namespace Components {
|
|
|
694
701
|
*/
|
|
695
702
|
"hasBorder": boolean;
|
|
696
703
|
/**
|
|
697
|
-
* Mark the button as a Menu trigger. Implies `aria-haspopup="menu"` and covers both menu-button shapes: - `label` / `icon-label` — the action *has* a menu; a trailing chevron carries the affordance. - `icon` — the button *is* a menu. No chevron is added, so the glyph must convey the menu on its own. Use `Ellipses` for generic more-options; use a specific icon when the menu has a named purpose, such as `
|
|
704
|
+
* Mark the button as a Menu trigger. Implies `aria-haspopup="menu"` and covers both menu-button shapes: - `label` / `icon-label` — the action *has* a menu; a trailing chevron carries the affordance. - `icon` — the button *is* a menu. No chevron is added, so the glyph must convey the menu on its own. Use `Ellipses` for generic more-options; use a specific icon when the menu has a named purpose, such as `Table` for Customize table. Use `haspopup` directly for non-menu popups.
|
|
698
705
|
* @default false
|
|
699
706
|
*/
|
|
700
707
|
"hasMenu": boolean;
|
|
@@ -1222,6 +1229,11 @@ export namespace Components {
|
|
|
1222
1229
|
* @default 'Clear'
|
|
1223
1230
|
*/
|
|
1224
1231
|
"clearLabel": string;
|
|
1232
|
+
/**
|
|
1233
|
+
* Opt into table-caption icon-only chrome below 900px. The trigger omits its visible label and chevron; keep an accessible name via aria-label.
|
|
1234
|
+
* @default false
|
|
1235
|
+
*/
|
|
1236
|
+
"collapseLabel": boolean;
|
|
1225
1237
|
/**
|
|
1226
1238
|
* Product-owned filter categories and option definitions.
|
|
1227
1239
|
* @default []
|
|
@@ -2305,6 +2317,11 @@ export namespace Components {
|
|
|
2305
2317
|
* @default 'Clear'
|
|
2306
2318
|
*/
|
|
2307
2319
|
"clearLabel": string;
|
|
2320
|
+
/**
|
|
2321
|
+
* Opt into table-caption icon-only chrome below 900px. The trigger omits its visible label and chevron; keep an accessible name via aria-label.
|
|
2322
|
+
* @default false
|
|
2323
|
+
*/
|
|
2324
|
+
"collapseLabel": boolean;
|
|
2308
2325
|
/**
|
|
2309
2326
|
* Native disabled state.
|
|
2310
2327
|
* @default false
|
|
@@ -3135,6 +3152,52 @@ export namespace Components {
|
|
|
3135
3152
|
*/
|
|
3136
3153
|
"virtualModeLabel": string;
|
|
3137
3154
|
}
|
|
3155
|
+
interface DsTableFilter {
|
|
3156
|
+
/**
|
|
3157
|
+
* Controlled category shown in the option pane.
|
|
3158
|
+
*/
|
|
3159
|
+
"activeFilterId": string | undefined;
|
|
3160
|
+
/**
|
|
3161
|
+
* Accessible name for the trigger. Defaults to Filter table.
|
|
3162
|
+
* @default null
|
|
3163
|
+
*/
|
|
3164
|
+
"ariaLabel": string | null;
|
|
3165
|
+
/**
|
|
3166
|
+
* Accessible name for the category tab list.
|
|
3167
|
+
* @default 'Filter categories'
|
|
3168
|
+
*/
|
|
3169
|
+
"categoriesLabel": string;
|
|
3170
|
+
/**
|
|
3171
|
+
* Footer action and date-clear accessible label.
|
|
3172
|
+
* @default 'Clear'
|
|
3173
|
+
*/
|
|
3174
|
+
"clearLabel": string;
|
|
3175
|
+
/**
|
|
3176
|
+
* Product-owned filter categories and option definitions.
|
|
3177
|
+
* @default []
|
|
3178
|
+
*/
|
|
3179
|
+
"filters": FilterMenuFilter1[];
|
|
3180
|
+
/**
|
|
3181
|
+
* Visible trigger label.
|
|
3182
|
+
* @default 'Filter'
|
|
3183
|
+
*/
|
|
3184
|
+
"label": string;
|
|
3185
|
+
/**
|
|
3186
|
+
* Accessible name for the non-modal filter dialog. Defaults to the trigger name.
|
|
3187
|
+
* @default null
|
|
3188
|
+
*/
|
|
3189
|
+
"menuLabel": string | null;
|
|
3190
|
+
/**
|
|
3191
|
+
* Controlled popup visibility.
|
|
3192
|
+
* @default false
|
|
3193
|
+
*/
|
|
3194
|
+
"open": boolean;
|
|
3195
|
+
/**
|
|
3196
|
+
* Controlled values keyed by filter id.
|
|
3197
|
+
* @default {}
|
|
3198
|
+
*/
|
|
3199
|
+
"values": FilterMenuValues1;
|
|
3200
|
+
}
|
|
3138
3201
|
interface DsTableSavedViews {
|
|
3139
3202
|
/**
|
|
3140
3203
|
* Footer action label that opens the create-view dialog.
|
|
@@ -3177,6 +3240,24 @@ export namespace Components {
|
|
|
3177
3240
|
*/
|
|
3178
3241
|
"views": TableSavedView[];
|
|
3179
3242
|
}
|
|
3243
|
+
interface DsTableSort {
|
|
3244
|
+
/**
|
|
3245
|
+
* Accessible name for the trigger and menu.
|
|
3246
|
+
* @default null
|
|
3247
|
+
*/
|
|
3248
|
+
"ariaLabel": string | null;
|
|
3249
|
+
/**
|
|
3250
|
+
* Catalog used to derive sortable fields, including compound header segments.
|
|
3251
|
+
* @default []
|
|
3252
|
+
*/
|
|
3253
|
+
"columns": TableColumn[];
|
|
3254
|
+
"setFocus": () => Promise<void>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Controlled table sort. Header sorting and this menu share the same value.
|
|
3257
|
+
* @default null
|
|
3258
|
+
*/
|
|
3259
|
+
"sort": TableSortState | null;
|
|
3260
|
+
}
|
|
3180
3261
|
interface DsTableToolbar {
|
|
3181
3262
|
/**
|
|
3182
3263
|
* Accessible name for the grouped table controls.
|
|
@@ -3627,10 +3708,18 @@ export interface DsTableCustomEvent<T> extends CustomEvent<T> {
|
|
|
3627
3708
|
detail: T;
|
|
3628
3709
|
target: HTMLDsTableElement;
|
|
3629
3710
|
}
|
|
3711
|
+
export interface DsTableFilterCustomEvent<T> extends CustomEvent<T> {
|
|
3712
|
+
detail: T;
|
|
3713
|
+
target: HTMLDsTableFilterElement;
|
|
3714
|
+
}
|
|
3630
3715
|
export interface DsTableSavedViewsCustomEvent<T> extends CustomEvent<T> {
|
|
3631
3716
|
detail: T;
|
|
3632
3717
|
target: HTMLDsTableSavedViewsElement;
|
|
3633
3718
|
}
|
|
3719
|
+
export interface DsTableSortCustomEvent<T> extends CustomEvent<T> {
|
|
3720
|
+
detail: T;
|
|
3721
|
+
target: HTMLDsTableSortElement;
|
|
3722
|
+
}
|
|
3634
3723
|
export interface DsTagCustomEvent<T> extends CustomEvent<T> {
|
|
3635
3724
|
detail: T;
|
|
3636
3725
|
target: HTMLDsTagElement;
|
|
@@ -4644,6 +4733,28 @@ declare global {
|
|
|
4644
4733
|
prototype: HTMLDsTableElement;
|
|
4645
4734
|
new (): HTMLDsTableElement;
|
|
4646
4735
|
};
|
|
4736
|
+
interface HTMLDsTableFilterElementEventMap {
|
|
4737
|
+
"dsChange": FilterMenuChangeDetail1;
|
|
4738
|
+
"dsClear": void;
|
|
4739
|
+
"dsActiveFilterChange": string;
|
|
4740
|
+
"dsClose": void;
|
|
4741
|
+
"dsOpenChange": boolean;
|
|
4742
|
+
"dsAfterClose": void;
|
|
4743
|
+
}
|
|
4744
|
+
interface HTMLDsTableFilterElement extends Components.DsTableFilter, HTMLStencilElement {
|
|
4745
|
+
addEventListener<K extends keyof HTMLDsTableFilterElementEventMap>(type: K, listener: (this: HTMLDsTableFilterElement, ev: DsTableFilterCustomEvent<HTMLDsTableFilterElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4746
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4747
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4748
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4749
|
+
removeEventListener<K extends keyof HTMLDsTableFilterElementEventMap>(type: K, listener: (this: HTMLDsTableFilterElement, ev: DsTableFilterCustomEvent<HTMLDsTableFilterElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4750
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4751
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4752
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4753
|
+
}
|
|
4754
|
+
var HTMLDsTableFilterElement: {
|
|
4755
|
+
prototype: HTMLDsTableFilterElement;
|
|
4756
|
+
new (): HTMLDsTableFilterElement;
|
|
4757
|
+
};
|
|
4647
4758
|
interface HTMLDsTableSavedViewsElementEventMap {
|
|
4648
4759
|
"dsViewChange": TableSavedViewChangeDetail;
|
|
4649
4760
|
"dsViewCreate": TableSavedViewCreateDetail;
|
|
@@ -4666,6 +4777,23 @@ declare global {
|
|
|
4666
4777
|
prototype: HTMLDsTableSavedViewsElement;
|
|
4667
4778
|
new (): HTMLDsTableSavedViewsElement;
|
|
4668
4779
|
};
|
|
4780
|
+
interface HTMLDsTableSortElementEventMap {
|
|
4781
|
+
"dsSortChange": TableSortChangeDetail;
|
|
4782
|
+
}
|
|
4783
|
+
interface HTMLDsTableSortElement extends Components.DsTableSort, HTMLStencilElement {
|
|
4784
|
+
addEventListener<K extends keyof HTMLDsTableSortElementEventMap>(type: K, listener: (this: HTMLDsTableSortElement, ev: DsTableSortCustomEvent<HTMLDsTableSortElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4785
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4786
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4787
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4788
|
+
removeEventListener<K extends keyof HTMLDsTableSortElementEventMap>(type: K, listener: (this: HTMLDsTableSortElement, ev: DsTableSortCustomEvent<HTMLDsTableSortElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4789
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4790
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4791
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4792
|
+
}
|
|
4793
|
+
var HTMLDsTableSortElement: {
|
|
4794
|
+
prototype: HTMLDsTableSortElement;
|
|
4795
|
+
new (): HTMLDsTableSortElement;
|
|
4796
|
+
};
|
|
4669
4797
|
interface HTMLDsTableToolbarElement extends Components.DsTableToolbar, HTMLStencilElement {
|
|
4670
4798
|
}
|
|
4671
4799
|
var HTMLDsTableToolbarElement: {
|
|
@@ -4818,7 +4946,9 @@ declare global {
|
|
|
4818
4946
|
"ds-switch": HTMLDsSwitchElement;
|
|
4819
4947
|
"ds-tab-group": HTMLDsTabGroupElement;
|
|
4820
4948
|
"ds-table": HTMLDsTableElement;
|
|
4949
|
+
"ds-table-filter": HTMLDsTableFilterElement;
|
|
4821
4950
|
"ds-table-saved-views": HTMLDsTableSavedViewsElement;
|
|
4951
|
+
"ds-table-sort": HTMLDsTableSortElement;
|
|
4822
4952
|
"ds-table-toolbar": HTMLDsTableToolbarElement;
|
|
4823
4953
|
"ds-tag": HTMLDsTagElement;
|
|
4824
4954
|
"ds-text": HTMLDsTextElement;
|
|
@@ -5418,6 +5548,11 @@ declare namespace LocalJSX {
|
|
|
5418
5548
|
* Actual parent surface context. Omit on primary and secondary surfaces.
|
|
5419
5549
|
*/
|
|
5420
5550
|
"background"?: ButtonUnfilledBackground | undefined;
|
|
5551
|
+
/**
|
|
5552
|
+
* Collapse the visible label and chevron to an icon-only control when the owning `ds-table` caption is narrower than 900px. The trigger omits those parts rather than clipping them.
|
|
5553
|
+
* @default false
|
|
5554
|
+
*/
|
|
5555
|
+
"collapseLabel"?: boolean;
|
|
5421
5556
|
"controls"?: string | undefined;
|
|
5422
5557
|
/**
|
|
5423
5558
|
* Show a notification dot at the top-right of the icon zone (icon variant only).
|
|
@@ -5438,7 +5573,7 @@ declare namespace LocalJSX {
|
|
|
5438
5573
|
*/
|
|
5439
5574
|
"hasBorder"?: boolean;
|
|
5440
5575
|
/**
|
|
5441
|
-
* Mark the button as a Menu trigger. Implies `aria-haspopup="menu"` and covers both menu-button shapes: - `label` / `icon-label` — the action *has* a menu; a trailing chevron carries the affordance. - `icon` — the button *is* a menu. No chevron is added, so the glyph must convey the menu on its own. Use `Ellipses` for generic more-options; use a specific icon when the menu has a named purpose, such as `
|
|
5576
|
+
* Mark the button as a Menu trigger. Implies `aria-haspopup="menu"` and covers both menu-button shapes: - `label` / `icon-label` — the action *has* a menu; a trailing chevron carries the affordance. - `icon` — the button *is* a menu. No chevron is added, so the glyph must convey the menu on its own. Use `Ellipses` for generic more-options; use a specific icon when the menu has a named purpose, such as `Table` for Customize table. Use `haspopup` directly for non-menu popups.
|
|
5442
5577
|
* @default false
|
|
5443
5578
|
*/
|
|
5444
5579
|
"hasMenu"?: boolean;
|
|
@@ -6004,6 +6139,11 @@ declare namespace LocalJSX {
|
|
|
6004
6139
|
* @default 'Clear'
|
|
6005
6140
|
*/
|
|
6006
6141
|
"clearLabel"?: string;
|
|
6142
|
+
/**
|
|
6143
|
+
* Opt into table-caption icon-only chrome below 900px. The trigger omits its visible label and chevron; keep an accessible name via aria-label.
|
|
6144
|
+
* @default false
|
|
6145
|
+
*/
|
|
6146
|
+
"collapseLabel"?: boolean;
|
|
6007
6147
|
/**
|
|
6008
6148
|
* Product-owned filter categories and option definitions.
|
|
6009
6149
|
* @default []
|
|
@@ -7188,6 +7328,11 @@ declare namespace LocalJSX {
|
|
|
7188
7328
|
* @default 'Clear'
|
|
7189
7329
|
*/
|
|
7190
7330
|
"clearLabel"?: string;
|
|
7331
|
+
/**
|
|
7332
|
+
* Opt into table-caption icon-only chrome below 900px. The trigger omits its visible label and chevron; keep an accessible name via aria-label.
|
|
7333
|
+
* @default false
|
|
7334
|
+
*/
|
|
7335
|
+
"collapseLabel"?: boolean;
|
|
7191
7336
|
/**
|
|
7192
7337
|
* Native disabled state.
|
|
7193
7338
|
* @default false
|
|
@@ -8111,6 +8256,76 @@ declare namespace LocalJSX {
|
|
|
8111
8256
|
*/
|
|
8112
8257
|
"virtualModeLabel"?: string;
|
|
8113
8258
|
}
|
|
8259
|
+
interface DsTableFilter {
|
|
8260
|
+
/**
|
|
8261
|
+
* Controlled category shown in the option pane.
|
|
8262
|
+
*/
|
|
8263
|
+
"activeFilterId"?: string | undefined;
|
|
8264
|
+
/**
|
|
8265
|
+
* Accessible name for the trigger. Defaults to Filter table.
|
|
8266
|
+
* @default null
|
|
8267
|
+
*/
|
|
8268
|
+
"ariaLabel"?: string | null;
|
|
8269
|
+
/**
|
|
8270
|
+
* Accessible name for the category tab list.
|
|
8271
|
+
* @default 'Filter categories'
|
|
8272
|
+
*/
|
|
8273
|
+
"categoriesLabel"?: string;
|
|
8274
|
+
/**
|
|
8275
|
+
* Footer action and date-clear accessible label.
|
|
8276
|
+
* @default 'Clear'
|
|
8277
|
+
*/
|
|
8278
|
+
"clearLabel"?: string;
|
|
8279
|
+
/**
|
|
8280
|
+
* Product-owned filter categories and option definitions.
|
|
8281
|
+
* @default []
|
|
8282
|
+
*/
|
|
8283
|
+
"filters"?: FilterMenuFilter1[];
|
|
8284
|
+
/**
|
|
8285
|
+
* Visible trigger label.
|
|
8286
|
+
* @default 'Filter'
|
|
8287
|
+
*/
|
|
8288
|
+
"label"?: string;
|
|
8289
|
+
/**
|
|
8290
|
+
* Accessible name for the non-modal filter dialog. Defaults to the trigger name.
|
|
8291
|
+
* @default null
|
|
8292
|
+
*/
|
|
8293
|
+
"menuLabel"?: string | null;
|
|
8294
|
+
/**
|
|
8295
|
+
* Requests a controlled active-category replacement.
|
|
8296
|
+
*/
|
|
8297
|
+
"onDsActiveFilterChange"?: (event: DsTableFilterCustomEvent<string>) => void;
|
|
8298
|
+
/**
|
|
8299
|
+
* Emitted after exit motion and rendered popup removal complete.
|
|
8300
|
+
*/
|
|
8301
|
+
"onDsAfterClose"?: (event: DsTableFilterCustomEvent<void>) => void;
|
|
8302
|
+
/**
|
|
8303
|
+
* Requests a controlled value replacement without closing the popup.
|
|
8304
|
+
*/
|
|
8305
|
+
"onDsChange"?: (event: DsTableFilterCustomEvent<FilterMenuChangeDetail1>) => void;
|
|
8306
|
+
/**
|
|
8307
|
+
* Requests that the consumer clear every filter value.
|
|
8308
|
+
*/
|
|
8309
|
+
"onDsClear"?: (event: DsTableFilterCustomEvent<void>) => void;
|
|
8310
|
+
/**
|
|
8311
|
+
* Requests that the controlled popup close.
|
|
8312
|
+
*/
|
|
8313
|
+
"onDsClose"?: (event: DsTableFilterCustomEvent<void>) => void;
|
|
8314
|
+
/**
|
|
8315
|
+
* Emitted whenever trigger activation changes popup visibility.
|
|
8316
|
+
*/
|
|
8317
|
+
"onDsOpenChange"?: (event: DsTableFilterCustomEvent<boolean>) => void;
|
|
8318
|
+
/**
|
|
8319
|
+
* Controlled popup visibility.
|
|
8320
|
+
* @default false
|
|
8321
|
+
*/
|
|
8322
|
+
"open"?: boolean;
|
|
8323
|
+
/**
|
|
8324
|
+
* Controlled values keyed by filter id.
|
|
8325
|
+
* @default {}
|
|
8326
|
+
*/
|
|
8327
|
+
"values"?: FilterMenuValues1;
|
|
8328
|
+
}
|
|
8114
8329
|
interface DsTableSavedViews {
|
|
8115
8330
|
/**
|
|
8116
8331
|
* Footer action label that opens the create-view dialog.
|
|
@@ -8177,6 +8392,24 @@ declare namespace LocalJSX {
|
|
|
8177
8392
|
*/
|
|
8178
8393
|
"views"?: TableSavedView[];
|
|
8179
8394
|
}
|
|
8395
|
+
interface DsTableSort {
|
|
8396
|
+
/**
|
|
8397
|
+
* Accessible name for the trigger and menu.
|
|
8398
|
+
* @default null
|
|
8399
|
+
*/
|
|
8400
|
+
"ariaLabel"?: string | null;
|
|
8401
|
+
/**
|
|
8402
|
+
* Catalog used to derive sortable fields, including compound header segments.
|
|
8403
|
+
* @default []
|
|
8404
|
+
*/
|
|
8405
|
+
"columns"?: TableColumn[];
|
|
8406
|
+
"onDsSortChange"?: (event: DsTableSortCustomEvent<TableSortChangeDetail>) => void;
|
|
8407
|
+
/**
|
|
8408
|
+
* Controlled table sort. Header sorting and this menu share the same value.
|
|
8409
|
+
* @default null
|
|
8410
|
+
*/
|
|
8411
|
+
"sort"?: TableSortState | null;
|
|
8412
|
+
}
|
|
8180
8413
|
interface DsTableToolbar {
|
|
8181
8414
|
/**
|
|
8182
8415
|
* Accessible name for the grouped table controls.
|
|
@@ -8589,6 +8822,7 @@ declare namespace LocalJSX {
|
|
|
8589
8822
|
"expanded": boolean | undefined;
|
|
8590
8823
|
"haspopup": ButtonUnfilledPopup | undefined;
|
|
8591
8824
|
"pressed": boolean | undefined;
|
|
8825
|
+
"collapseLabel": boolean;
|
|
8592
8826
|
"hasMenu": boolean;
|
|
8593
8827
|
"focusTabIndex": number;
|
|
8594
8828
|
}
|
|
@@ -8707,6 +8941,7 @@ declare namespace LocalJSX {
|
|
|
8707
8941
|
"width": FilterMenuWidth;
|
|
8708
8942
|
"hasBorder": boolean;
|
|
8709
8943
|
"activeFill": boolean;
|
|
8944
|
+
"collapseLabel": boolean;
|
|
8710
8945
|
"inputId": string | undefined;
|
|
8711
8946
|
"ariaLabel": string | null;
|
|
8712
8947
|
"activeFilterId": string | undefined;
|
|
@@ -8976,6 +9211,7 @@ declare namespace LocalJSX {
|
|
|
8976
9211
|
"isInactive": boolean;
|
|
8977
9212
|
"isLoading": boolean;
|
|
8978
9213
|
"activeFill": boolean;
|
|
9214
|
+
"collapseLabel": boolean;
|
|
8979
9215
|
"hasBorder": boolean;
|
|
8980
9216
|
"icon": string | undefined;
|
|
8981
9217
|
"indicator": SelectIndicator;
|
|
@@ -9140,6 +9376,15 @@ declare namespace LocalJSX {
|
|
|
9140
9376
|
"groupEndOfResultsLabel": string;
|
|
9141
9377
|
"groupRowsLoadedLabel": string;
|
|
9142
9378
|
}
|
|
9379
|
+
interface DsTableFilterAttributes {
|
|
9380
|
+
"open": boolean;
|
|
9381
|
+
"activeFilterId": string | undefined;
|
|
9382
|
+
"label": string;
|
|
9383
|
+
"ariaLabel": string | null;
|
|
9384
|
+
"menuLabel": string | null;
|
|
9385
|
+
"categoriesLabel": string;
|
|
9386
|
+
"clearLabel": string;
|
|
9387
|
+
}
|
|
9143
9388
|
interface DsTableSavedViewsAttributes {
|
|
9144
9389
|
"value": string;
|
|
9145
9390
|
"dirty": boolean;
|
|
@@ -9149,6 +9394,9 @@ declare namespace LocalJSX {
|
|
|
9149
9394
|
"triggerLabel": string;
|
|
9150
9395
|
"createLabel": string;
|
|
9151
9396
|
}
|
|
9397
|
+
interface DsTableSortAttributes {
|
|
9398
|
+
"ariaLabel": string | null;
|
|
9399
|
+
}
|
|
9152
9400
|
interface DsTableToolbarAttributes {
|
|
9153
9401
|
"label": string;
|
|
9154
9402
|
}
|
|
@@ -9280,7 +9528,9 @@ declare namespace LocalJSX {
|
|
|
9280
9528
|
"ds-switch": Omit<DsSwitch, keyof DsSwitchAttributes> & { [K in keyof DsSwitch & keyof DsSwitchAttributes]?: DsSwitch[K] } & { [K in keyof DsSwitch & keyof DsSwitchAttributes as `attr:${K}`]?: DsSwitchAttributes[K] } & { [K in keyof DsSwitch & keyof DsSwitchAttributes as `prop:${K}`]?: DsSwitch[K] };
|
|
9281
9529
|
"ds-tab-group": Omit<DsTabGroup, keyof DsTabGroupAttributes> & { [K in keyof DsTabGroup & keyof DsTabGroupAttributes]?: DsTabGroup[K] } & { [K in keyof DsTabGroup & keyof DsTabGroupAttributes as `attr:${K}`]?: DsTabGroupAttributes[K] } & { [K in keyof DsTabGroup & keyof DsTabGroupAttributes as `prop:${K}`]?: DsTabGroup[K] };
|
|
9282
9530
|
"ds-table": Omit<DsTable, keyof DsTableAttributes> & { [K in keyof DsTable & keyof DsTableAttributes]?: DsTable[K] } & { [K in keyof DsTable & keyof DsTableAttributes as `attr:${K}`]?: DsTableAttributes[K] } & { [K in keyof DsTable & keyof DsTableAttributes as `prop:${K}`]?: DsTable[K] } & OneOf<"caption", DsTable["caption"], DsTableAttributes["caption"]>;
|
|
9531
|
+
"ds-table-filter": Omit<DsTableFilter, keyof DsTableFilterAttributes> & { [K in keyof DsTableFilter & keyof DsTableFilterAttributes]?: DsTableFilter[K] } & { [K in keyof DsTableFilter & keyof DsTableFilterAttributes as `attr:${K}`]?: DsTableFilterAttributes[K] } & { [K in keyof DsTableFilter & keyof DsTableFilterAttributes as `prop:${K}`]?: DsTableFilter[K] };
|
|
9283
9532
|
"ds-table-saved-views": Omit<DsTableSavedViews, keyof DsTableSavedViewsAttributes> & { [K in keyof DsTableSavedViews & keyof DsTableSavedViewsAttributes]?: DsTableSavedViews[K] } & { [K in keyof DsTableSavedViews & keyof DsTableSavedViewsAttributes as `attr:${K}`]?: DsTableSavedViewsAttributes[K] } & { [K in keyof DsTableSavedViews & keyof DsTableSavedViewsAttributes as `prop:${K}`]?: DsTableSavedViews[K] };
|
|
9533
|
+
"ds-table-sort": Omit<DsTableSort, keyof DsTableSortAttributes> & { [K in keyof DsTableSort & keyof DsTableSortAttributes]?: DsTableSort[K] } & { [K in keyof DsTableSort & keyof DsTableSortAttributes as `attr:${K}`]?: DsTableSortAttributes[K] } & { [K in keyof DsTableSort & keyof DsTableSortAttributes as `prop:${K}`]?: DsTableSort[K] };
|
|
9284
9534
|
"ds-table-toolbar": Omit<DsTableToolbar, keyof DsTableToolbarAttributes> & { [K in keyof DsTableToolbar & keyof DsTableToolbarAttributes]?: DsTableToolbar[K] } & { [K in keyof DsTableToolbar & keyof DsTableToolbarAttributes as `attr:${K}`]?: DsTableToolbarAttributes[K] } & { [K in keyof DsTableToolbar & keyof DsTableToolbarAttributes as `prop:${K}`]?: DsTableToolbar[K] };
|
|
9285
9535
|
"ds-tag": Omit<DsTag, keyof DsTagAttributes> & { [K in keyof DsTag & keyof DsTagAttributes]?: DsTag[K] } & { [K in keyof DsTag & keyof DsTagAttributes as `attr:${K}`]?: DsTagAttributes[K] } & { [K in keyof DsTag & keyof DsTagAttributes as `prop:${K}`]?: DsTag[K] } & OneOf<"label", DsTag["label"], DsTagAttributes["label"]>;
|
|
9286
9536
|
"ds-text": Omit<DsText, keyof DsTextAttributes> & { [K in keyof DsText & keyof DsTextAttributes]?: DsText[K] } & { [K in keyof DsText & keyof DsTextAttributes as `attr:${K}`]?: DsTextAttributes[K] } & { [K in keyof DsText & keyof DsTextAttributes as `prop:${K}`]?: DsText[K] };
|
|
@@ -9375,7 +9625,9 @@ declare module "@stencil/core" {
|
|
|
9375
9625
|
"ds-switch": LocalJSX.IntrinsicElements["ds-switch"] & JSXBase.HTMLAttributes<HTMLDsSwitchElement>;
|
|
9376
9626
|
"ds-tab-group": LocalJSX.IntrinsicElements["ds-tab-group"] & JSXBase.HTMLAttributes<HTMLDsTabGroupElement>;
|
|
9377
9627
|
"ds-table": LocalJSX.IntrinsicElements["ds-table"] & JSXBase.HTMLAttributes<HTMLDsTableElement>;
|
|
9628
|
+
"ds-table-filter": LocalJSX.IntrinsicElements["ds-table-filter"] & JSXBase.HTMLAttributes<HTMLDsTableFilterElement>;
|
|
9378
9629
|
"ds-table-saved-views": LocalJSX.IntrinsicElements["ds-table-saved-views"] & JSXBase.HTMLAttributes<HTMLDsTableSavedViewsElement>;
|
|
9630
|
+
"ds-table-sort": LocalJSX.IntrinsicElements["ds-table-sort"] & JSXBase.HTMLAttributes<HTMLDsTableSortElement>;
|
|
9379
9631
|
"ds-table-toolbar": LocalJSX.IntrinsicElements["ds-table-toolbar"] & JSXBase.HTMLAttributes<HTMLDsTableToolbarElement>;
|
|
9380
9632
|
"ds-tag": LocalJSX.IntrinsicElements["ds-tag"] & JSXBase.HTMLAttributes<HTMLDsTagElement>;
|
|
9381
9633
|
"ds-text": LocalJSX.IntrinsicElements["ds-text"] & JSXBase.HTMLAttributes<HTMLDsTextElement>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Matches `@container ds-table (max-width: 899px)` on caption Filter/Group/Sort. */
|
|
2
|
+
export declare const TABLE_CAPTION_COMPACT_MAX_PX = 899;
|
|
3
|
+
export declare function isTableCaptionCompact(width: number): boolean;
|
|
4
|
+
export declare function tableCaptionInlineSize(entry: ResizeObserverEntry): number;
|
|
5
|
+
export declare function observeTableCaptionCompact(host: HTMLElement, onChange: (compact: boolean) => void): () => void;
|
|
6
|
+
//# sourceMappingURL=table-caption-compact.d.ts.map
|
package/dist/vue/components.d.ts
CHANGED
|
@@ -67,7 +67,9 @@ export { DsSwatchPicker } from './ds-swatch-picker.js';
|
|
|
67
67
|
export { DsSwitch } from './ds-switch.js';
|
|
68
68
|
export { DsTabGroup } from './ds-tab-group.js';
|
|
69
69
|
export { DsTable } from './ds-table.js';
|
|
70
|
+
export { DsTableFilter } from './ds-table-filter.js';
|
|
70
71
|
export { DsTableSavedViews } from './ds-table-saved-views.js';
|
|
72
|
+
export { DsTableSort } from './ds-table-sort.js';
|
|
71
73
|
export { DsTableToolbar } from './ds-table-toolbar.js';
|
|
72
74
|
export { DsTag } from './ds-tag.js';
|
|
73
75
|
export { DsText } from './ds-text.js';
|
package/dist/vue/components.js
CHANGED
|
@@ -69,7 +69,9 @@ export { DsSwatchPicker } from './ds-swatch-picker.js';
|
|
|
69
69
|
export { DsSwitch } from './ds-switch.js';
|
|
70
70
|
export { DsTabGroup } from './ds-tab-group.js';
|
|
71
71
|
export { DsTable } from './ds-table.js';
|
|
72
|
+
export { DsTableFilter } from './ds-table-filter.js';
|
|
72
73
|
export { DsTableSavedViews } from './ds-table-saved-views.js';
|
|
74
|
+
export { DsTableSort } from './ds-table-sort.js';
|
|
73
75
|
export { DsTableToolbar } from './ds-table-toolbar.js';
|
|
74
76
|
export { DsTag } from './ds-tag.js';
|
|
75
77
|
export { DsText } from './ds-text.js';
|
package/dist/vue/ds-select.js
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* auto-generated vue proxies */
|
|
4
|
+
import { defineContainer } from './vue-runtime.js';
|
|
5
|
+
import { defineCustomElement as defineDsTableFilter } from '@ds-mo/ui/components/ds-table-filter.js';
|
|
6
|
+
export const DsTableFilter = /*@__PURE__*/ defineContainer('ds-table-filter', defineDsTableFilter, [
|
|
7
|
+
'open',
|
|
8
|
+
'filters',
|
|
9
|
+
'values',
|
|
10
|
+
'activeFilterId',
|
|
11
|
+
'label',
|
|
12
|
+
'ariaLabel',
|
|
13
|
+
'menuLabel',
|
|
14
|
+
'categoriesLabel',
|
|
15
|
+
'clearLabel',
|
|
16
|
+
'dsChange',
|
|
17
|
+
'dsClear',
|
|
18
|
+
'dsActiveFilterChange',
|
|
19
|
+
'dsClose',
|
|
20
|
+
'dsOpenChange',
|
|
21
|
+
'dsAfterClose'
|
|
22
|
+
], [
|
|
23
|
+
'dsChange',
|
|
24
|
+
'dsClear',
|
|
25
|
+
'dsActiveFilterChange',
|
|
26
|
+
'dsClose',
|
|
27
|
+
'dsOpenChange',
|
|
28
|
+
'dsAfterClose'
|
|
29
|
+
]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* auto-generated vue proxies */
|
|
4
|
+
import { defineContainer } from './vue-runtime.js';
|
|
5
|
+
import { defineCustomElement as defineDsTableSort } from '@ds-mo/ui/components/ds-table-sort.js';
|
|
6
|
+
export const DsTableSort = /*@__PURE__*/ defineContainer('ds-table-sort', defineDsTableSort, [
|
|
7
|
+
'columns',
|
|
8
|
+
'sort',
|
|
9
|
+
'ariaLabel',
|
|
10
|
+
'dsSortChange'
|
|
11
|
+
], [
|
|
12
|
+
'dsSortChange'
|
|
13
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as o,a as i,t as n}from"./index.js";import{p as r}from"./p-NdahPypA.js";import{d as a}from"./p-vWK5faWZ.js";import{d as l}from"./p-C7rzVotG.js";import{d}from"./p-BFfLvMZd.js";import{d as c}from"./p-Ca-I2UnB.js";import{d as h}from"./p-Dsn1RCS5.js";import{d as f}from"./p-DZFilC--.js";import{d as u}from"./p-BXPQmp7q.js";const p=["search","messages","agents","stacks","activity","help"];const m={search:"Search",messages:"Messages",stacks:"Stacks",activity:"Activity",agents:"Agents",help:"Help & Support"};const g={search:"K",agents:"A",messages:"M",stacks:"S",activity:"N",help:"/"};const v=[{id:"search",icon:"MagnifyingGlass",label:m.search,railPlacement:"header",order:0,shortcutKey:g.search,mobileDestination:"search"},{id:"messages",icon:"MessageBubbleStack",label:m.messages,order:1,shortcutKey:g.messages,mobileDestination:"messages"},{id:"agents",icon:"AI",label:m.agents,order:2,shortcutKey:g.agents,mobileDestination:"agents"},{id:"stacks",icon:"ViewMenu",label:m.stacks,order:3,shortcutKey:g.stacks,mobileDestination:"inbox"},{id:"activity",icon:"Bell",label:m.activity,order:4,shortcutKey:g.activity,mobileDestination:"inbox"},{id:"help",icon:"CircleQuestion",label:m.help,railPlacement:"footer",order:5,shortcutKey:g.help,mobileDestination:"help"}];function b(e){const s=new Map;for(const t of e){if(t.id.trim()&&!s.has(t.id))s.set(t.id,t)}const t={header:0,body:1,footer:2};return Array.from(s.values()).sort(((e,s)=>{const o=y(e);const i=y(s);const n=t[o]-t[i];if(n!==0)return n;const r=p.findIndex((s=>s===e.id));const a=p.findIndex((e=>e===s.id));const l=e.order??(r<0?Number.MAX_SAFE_INTEGER:r);const d=s.order??(a<0?Number.MAX_SAFE_INTEGER:a);return l-d}))}function w(e){return typeof e==="string"&&e.trim().length>0}function y(e){if(e.railPlacement)return e.railPlacement;if(e.id==="search")return"header";if(e.id==="help")return"footer";return"body"}function _(e,s,t){if(!t||e.some((e=>e.id===t))){return{open:s,activeTool:t,removedTool:""}}return{open:false,activeTool:"",removedTool:t}}function x(e){const s=e.transitionProperty.split(",").map((e=>e.trim()));const t=e.transitionDuration.split(",").map((e=>r(e.trim(),0)));const o=e.transitionDelay.split(",").map((e=>r(e.trim(),0)));return s.reduce(((e,s,i)=>{if(s!=="all"&&s!=="max-width")return e;const n=t[i%t.length]??0;const r=o[i%o.length]??0;return Math.max(e,n+r,0)}),0)}function k(e,s){return!e&&s==="idle"}function T(e,s,t){if(t==="closing")return e<=.5;if(t==="opening")return s>0&&e>=s-.5;return true}function C(e,s,t){if(e&&s===t){return{open:false,activeTool:t,selected:false}}return{open:true,activeTool:t,selected:true}}const A=()=>`.ds-control--lg,:host(.ds-control--lg),:host(.ds-control--md),.ds-control--md,:host(.ds-control--sm),.ds-control--sm,:host(.ds-control--xs),.ds-control--xs{--ds-control-radius:var(--dimension-radius-025)}:host(.ds-control--lg),.ds-control--lg{--ds-control-height:var(--dimension-size-500);--ds-control-icon:var(--dimension-iconography-lg);--ds-control-padding-inline:var(--dimension-space-100);--ds-control-label-inset:var(--dimension-space-050);--ds-control-gap:var(--dimension-space-050)}:host(.ds-control--md),.ds-control--md{--ds-control-height:var(--dimension-size-400);--ds-control-icon:var(--dimension-iconography-md);--ds-control-padding-inline:var(--dimension-space-075);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:var(--dimension-space-050)}:host(.ds-control--sm),.ds-control--sm{--ds-control-height:var(--dimension-size-300);--ds-control-icon:var(--dimension-iconography-sm);--ds-control-padding-inline:var(--dimension-space-050);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:var(--dimension-space-025)}:host(.ds-control--xs),.ds-control--xs{--ds-control-height:var(--dimension-size-200);--ds-control-icon:var(--dimension-iconography-xs);--ds-control-padding-inline:var(--dimension-space-025);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:0}:host(.ds-chrome-space--sm),.ds-chrome-space--sm{--ds-chrome-padding:var(--dimension-space-050);--ds-chrome-gap:var(--dimension-space-050)}:host(.ds-chrome-space--md),.ds-chrome-space--md{--ds-chrome-padding:var(--dimension-space-100);--ds-chrome-gap:var(--dimension-space-100)}:host(.ds-chrome-space--lg),.ds-chrome-space--lg{--ds-chrome-padding:var(--dimension-space-200);--ds-chrome-gap:var(--dimension-space-200)}:host(.ds-chrome-row),.ds-chrome-row,:host(.ds-chrome-column),.ds-chrome-column,:host(.ds-chrome-grid),.ds-chrome-grid{display:flex;box-sizing:border-box;gap:var(--ds-chrome-gap, var(--dimension-space-100));padding:var(--ds-chrome-padding, var(--dimension-space-100))}:host(.ds-chrome-row),.ds-chrome-row{flex-direction:row;align-items:center}:host(.ds-chrome-column),.ds-chrome-column{flex-direction:column}:host(.ds-chrome-grid),.ds-chrome-grid{display:grid;align-items:center}@media (forced-colors: active){:root,:host,.ds-forced-colors-scope{--ds-forced-color-surface:Canvas;--ds-forced-color-content:CanvasText;--ds-forced-color-control-boundary:ButtonText;--ds-forced-color-selected:Highlight;--ds-forced-color-on-selected:HighlightText;--ds-forced-color-disabled:GrayText}}:host{--ds-focus-ring-width:var(--dimension-stroke-width-025, 2px);--ds-focus-ring-offset:var(--dimension-space-025, 2px);--ds-focus-ring-color:var(--color-interaction-focus)}:host(.ds-focus-ring),.ds-focus-ring,:host(.ds-focus-ring-inset),.ds-focus-ring-inset{outline:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}:host(.ds-focus-ring:focus-visible),.ds-focus-ring:focus-visible{outline:var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);outline-offset:var(--ds-focus-ring-offset)}:host(.ds-focus-ring.ds-focus-ring--visible),.ds-focus-ring.ds-focus-ring--visible{outline:var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);outline-offset:var(--ds-focus-ring-offset)}:host(.ds-focus-ring-inset:focus-visible),.ds-focus-ring-inset:focus-visible{outline:none}:host(.ds-focus-ring-inset:focus-visible)::after,.ds-focus-ring-inset:focus-visible::after{outline:var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);outline-offset:calc(-1 * var(--ds-focus-ring-width))}:host(.ds-focus-ring-inset.ds-focus-ring--visible),.ds-focus-ring-inset.ds-focus-ring--visible{outline:none}:host(.ds-focus-ring-inset.ds-focus-ring--visible)::after,.ds-focus-ring-inset.ds-focus-ring--visible::after{outline:var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);outline-offset:calc(-1 * var(--ds-focus-ring-width))}@media (forced-colors: active){:host{--ds-focus-ring-color:var(--ds-forced-color-selected)}}:host(.ds-scrollbar-hidden),.ds-scrollbar-hidden{scrollbar-width:none}:host(.ds-scrollbar-hidden)::-webkit-scrollbar,.ds-scrollbar-hidden::-webkit-scrollbar{display:none}:host{display:block;flex:0 0 auto;box-sizing:border-box;height:100%;min-height:0;overflow:hidden;--_panel-tools-rail-width:var(--dimension-size-600);--_panel-tools-drawer-width:var(--ds-shell-panel-tools-width, var(--dimension-panel-width-xs));--_panel-tools-border:var(--dimension-stroke-width-012, 1px) solid var(--color-border-tertiary);--_panel-tools-expand-dur:var(--effect-animation-duration-medium-1, 300ms)}.panel-tools__layout{display:flex;flex-direction:row-reverse;align-items:stretch;height:100%;min-height:0;box-sizing:border-box}.panel-tools__drawer{flex:0 0 auto;max-width:0;min-width:0;height:100%;min-height:0;overflow:hidden;box-sizing:border-box;transition:none}:host(.panel-tools--ready) .panel-tools__drawer{transition:max-width var(--_panel-tools-expand-dur) var(--effect-animation-easing-ease-in-out, ease)}:host(.panel-tools--ready.panel-tools--motion-opening) .panel-tools__drawer{transition:max-width var(--_panel-tools-expand-dur) var(--effect-animation-easing-ease-out, ease-out)}:host(.panel-tools--ready.panel-tools--motion-closing) .panel-tools__drawer{transition:max-width var(--_panel-tools-expand-dur) var(--effect-animation-easing-ease-in, ease-in)}:host(.panel-tools--open) .panel-tools__drawer{max-width:var(--_panel-tools-drawer-width)}.panel-tools__drawer--visible{border-left:var(--_panel-tools-border)}.panel-tools__drawer-surface{display:flex;flex-direction:column;width:var(--_panel-tools-drawer-width);height:100%;min-height:0;box-sizing:border-box;background-color:transparent}.panel-tools__full-views,.panel-tools__full-view{flex:1 1 auto;min-height:0;overflow:hidden}.panel-tools__full-view{height:100%}.panel-tools__full-view{display:none}.panel-tools__full-view--active{display:block}:host([presentation='fullscreen']){height:100vh;inset:0;position:fixed;width:100vw;z-index:var(--dimension-z-index-modal)}:host([presentation='fullscreen']) .panel-tools__rail{display:none}:host([presentation='fullscreen']) .panel-tools__drawer{max-width:100vw;transition:none;width:100vw}:host([presentation='fullscreen']) .panel-tools__drawer--visible{border-left:none}:host([presentation='fullscreen']) .panel-tools__drawer-surface{background-color:transparent;width:100vw}:host([presentation='fullscreen']:not(.panel-tools--fullscreen)) .panel-tools__drawer-surface,:host(.panel-tools--fullscreen:not([presentation='fullscreen'])) .panel-tools__drawer-surface{visibility:hidden}:host(.panel-tools--presentation-snap) .panel-tools__drawer{transition:none}.panel-tools__body{flex:1 1 auto;min-height:0;overflow:auto;position:relative}:host(.panel-tools--drawer-resting) .panel-tools__body{content-visibility:auto;contain-intrinsic-size:auto 200px}.panel-tools__view{display:none;height:100%;min-height:0;box-sizing:border-box;padding:var(--dimension-space-200);color:var(--color-foreground-secondary);font-family:var(--typography-font-family-ui);font-size:var(--typography-fontsize-md);line-height:var(--typography-lineheight-md);font-weight:var(--typography-weight-regular);letter-spacing:var(--typography-letterspacing-negative-half)}.panel-tools__view ::slotted(*){margin:0;color:var(--color-foreground-secondary);font-family:var(--typography-font-family-ui);font-size:var(--typography-fontsize-md);line-height:var(--typography-lineheight-md);font-weight:var(--typography-weight-regular);letter-spacing:var(--typography-letterspacing-negative-half)}.panel-tools__view--active{display:block}.panel-tools__rail{flex:0 0 var(--_panel-tools-rail-width);width:var(--_panel-tools-rail-width);min-width:var(--_panel-tools-rail-width);display:flex;flex-direction:column;box-sizing:border-box;height:100%;min-height:0;border-left:var(--_panel-tools-border);background-color:transparent}.panel-tools__rail-header{justify-content:center;height:var(--dimension-size-600);flex-shrink:0;border-bottom:var(--_panel-tools-border)}.panel-tools__rail-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}.panel-tools__rail-actions{display:flex;flex-direction:column;gap:var(--dimension-space-050);width:100%}.panel-tools__rail-footer{justify-content:center;flex-shrink:0;margin-top:auto}.panel-tools__rail-action{display:flex;align-items:center;justify-content:center;width:100%;height:var(--ds-control-height);flex-shrink:0}@media (prefers-reduced-motion: reduce){:host(.panel-tools--ready.panel-tools--motion-opening) .panel-tools__drawer,:host(.panel-tools--ready.panel-tools--motion-closing) .panel-tools__drawer{transition:none}}`;const z=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.dsToolChange=t(this,"dsToolChange");this.dsPresentationChange=t(this,"dsPresentationChange");this.dsHeaderBack=t(this,"dsHeaderBack");this.dsHeaderAction=t(this,"dsHeaderAction");this.dsChromeTransitionStart=t(this,"dsChromeTransitionStart");this.dsChromeTransitionEnd=t(this,"dsChromeTransitionEnd");this.open=false;this.presentation="drawer";this.fullscreenHeaderMode="shared";this.activeTool="";this.items=[];this.toolsLabel="Tools";this.toolShortcutsLabel="Tool shortcuts";this.headers={};this.storageKey="";this.motion="idle";this.drawerSurfaceRetained=false;this.readyForMotion=false;this.presentationMotionSuppressed=false;this.rovingIndex=0;this.fullViewToolIds=[];this.railBodyScrollable=false;this.motionEnableGeneration=0;this.presentationMotionGeneration=0;this.transitionGeneration=0;this.transitionFallbackTimer=null;this.ignoreReplacementTerminal=false;this.focusBeforeFullscreen=null;this.fullViewObserver=null;this.handleComposedHeaderAction=e=>{const s=e.detail;if(!this.activeTool||!s?.id)return;e.stopPropagation();this.dsHeaderAction.emit({tool:this.activeTool,id:s.id})};this.handleTransitionEnd=e=>{const s=this.renderRoot.querySelector(".panel-tools__drawer");if(e.target!==s)return;if(e.propertyName!=="max-width")return;if(this.ignoreReplacementTerminal){this.ignoreReplacementTerminal=false;return}if(e.type==="transitioncancel")return;if(s&&!this.drawerTransitionAtTerminal(s,this.motion))return;this.finishDrawerTransition()};this.handleToolChange=e=>{const s=C(this.open,this.activeTool,e);this.open=s.open;this.activeTool=s.activeTool;this.dsToolChange.emit({id:e,selected:s.selected})};this.handleRailKeyDown=(e,s)=>{const t=this.orderedRailItems;if(!t.length)return;if(e.key==="Enter"||e.key===" "){e.preventDefault();this.handleToolChange(t[s].id);return}if(e.key==="ArrowDown"){if(s>=t.length-1)return;e.preventDefault();this.focusRailAt(s+1);return}if(e.key==="ArrowUp"){if(s<=0)return;e.preventDefault();this.focusRailAt(s-1)}}}get railItems(){return this.items??[]}get orderedRailItems(){return b(this.railItems)}disconnectedCallback(){this.el.removeEventListener("transitionend",this.handleTransitionEnd);this.el.removeEventListener("transitioncancel",this.handleTransitionEnd);this.el.removeEventListener("dsAction",this.handleComposedHeaderAction);this.clearTransitionCompletion();this.motionEnableGeneration+=1;this.fullViewObserver?.disconnect();this.fullViewObserver=null;this.disconnectRailBodyObserver()}presentationChanged(e,t){if(e===t)return;if(this.el.getAttribute("presentation")!==e){this.el.setAttribute("presentation",e)}const o=++this.presentationMotionGeneration;this.presentationMotionSuppressed=true;requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(o!==this.presentationMotionGeneration)return;this.presentationMotionSuppressed=false}))}));if(e==="fullscreen"){this.focusBeforeFullscreen=document.activeElement instanceof s?document.activeElement:null;this.open=true}else if(t==="fullscreen"){const e=this.focusBeforeFullscreen;const s=this.activeHeader().actions?.[0]?.id;requestAnimationFrame((async()=>{if(e?.isConnected){e.focus({preventScroll:true})}const t=e?document.activeElement===e||e.contains(document.activeElement):false;if(!t&&s)await this.focusHeaderAction(s);this.focusBeforeFullscreen=null}))}this.dsPresentationChange.emit({presentation:e})}handleFullscreenEscape(e){if(this.presentation!=="fullscreen"||e.key!=="Escape")return;e.preventDefault();e.stopPropagation();this.presentation="drawer"}deferMotionEnable(){if(this.readyForMotion)return;const e=++this.motionEnableGeneration;requestAnimationFrame((()=>{if(e!==this.motionEnableGeneration)return;requestAnimationFrame((()=>{if(e!==this.motionEnableGeneration)return;this.readyForMotion=true}))}))}connectedCallback(){this.el.addEventListener("transitionend",this.handleTransitionEnd);this.el.addEventListener("transitioncancel",this.handleTransitionEnd);this.el.addEventListener("dsAction",this.handleComposedHeaderAction)}componentWillLoad(){this.restoreLastActiveTool();this.drawerSurfaceRetained=this.open}openChanged(e,s){if(e)this.drawerSurfaceRetained=true;if(this.readyForMotion&&s!==undefined&&s!==e){this.startDrawerTransition(e?"opening":"closing")}else if(!e){this.drawerSurfaceRetained=false}this.deferMotionEnable()}activeToolChanged(){this.persistLastActiveTool();this.deferMotionEnable()}storageKeyChanged(){this.restoreLastActiveTool()}componentDidLoad(){this.deferMotionEnable();this.connectRailBodyObserver();this.updateRailBodyScrollable();this.syncFullViewTools();this.fullViewObserver=new MutationObserver((()=>this.syncFullViewTools()));this.fullViewObserver.observe(this.el,{childList:true,attributes:true,attributeFilter:["slot"]})}componentDidRender(){this.updateRailBodyScrollable()}connectRailBodyObserver(){this.disconnectRailBodyObserver();if(!this.railBodyEl||typeof ResizeObserver==="undefined")return;this.railBodyObserver=new ResizeObserver((()=>this.updateRailBodyScrollable()));this.railBodyObserver.observe(this.railBodyEl)}disconnectRailBodyObserver(){this.railBodyObserver?.disconnect();this.railBodyObserver=undefined}updateRailBodyScrollable(){const e=Boolean(this.railBodyEl&&this.railBodyEl.scrollHeight>this.railBodyEl.clientHeight+1);if(e!==this.railBodyScrollable)this.railBodyScrollable=e}itemsChanged(){this.rovingIndex=0;this.reconcileActiveTool();this.deferMotionEnable()}restoreLastActiveTool(){if(!this.storageKey||this.activeTool)return;try{const e=localStorage.getItem(this.storageKey);if(w(e))this.activeTool=e}catch{}}persistLastActiveTool(){if(!this.storageKey||!this.activeTool)return;try{localStorage.setItem(this.storageKey,this.activeTool)}catch{}}clearPersistedTool(){if(!this.storageKey)return;try{localStorage.removeItem(this.storageKey)}catch{}}reconcileActiveTool(){const e=_(this.railItems,this.open,this.activeTool);if(!e.removedTool)return;this.clearPersistedTool();this.open=e.open;this.activeTool=e.activeTool;this.dsToolChange.emit({id:e.removedTool,selected:false})}startDrawerTransition(e){const s=this.renderRoot.querySelector(".panel-tools__drawer");if(this.motion!=="idle"){this.finishDrawerTransition();this.ignoreReplacementTerminal=true}this.motion=e;this.dsChromeTransitionStart.emit({source:"panel-tools",phase:e});const t=++this.transitionGeneration;requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(t!==this.transitionGeneration||this.motion!==e)return;if(!s){this.finishDrawerTransition();return}if(this.drawerTransitionAtTerminal(s,e)){this.finishDrawerTransition();return}const o=x(getComputedStyle(s));if(o<=0){this.finishDrawerTransition();return}this.transitionFallbackTimer=window.setTimeout((()=>{this.finishDrawerTransition()}),o)}))}))}drawerTransitionAtTerminal(e,s){const t=e.getBoundingClientRect().width;const o=e.querySelector(".panel-tools__drawer-surface");const i=o?.getBoundingClientRect().width??0;return T(t,i,s)}finishDrawerTransition(){const e=this.motion;const s=e!=="idle";this.clearTransitionCompletion();if(!s)return;this.ignoreReplacementTerminal=false;this.motion="idle";if(e==="closing"&&!this.open){this.drawerSurfaceRetained=false}this.dsChromeTransitionEnd.emit({source:"panel-tools"})}clearTransitionCompletion(){this.transitionGeneration+=1;if(this.transitionFallbackTimer!==null){window.clearTimeout(this.transitionFallbackTimer);this.transitionFallbackTimer=null}}isRailSelected(e){return this.open&&this.activeTool===e}isDrawerPresent(){return this.open||this.drawerSurfaceRetained}isViewActive(e){return this.isDrawerPresent()&&this.activeTool===e}hasFullView(e){return this.fullViewToolIds.includes(e)}syncFullViewTools(){const e=this.orderedRailItems.map((e=>e.id));const s=e.filter((e=>Boolean(this.el.querySelector(`[slot="${e}-view"]`))));if(s.join("|")!==this.fullViewToolIds.join("|"))this.fullViewToolIds=s}get renderRoot(){return this.el.shadowRoot??this.el}headerLabel(){if(!this.isDrawerPresent()||!this.activeTool)return"";const e=this.railItems.find((e=>e.id===this.activeTool));return e?.label??m[this.activeTool]??this.activeTool}resolvedHeaders(){return this.headers??{}}activeHeader(){if(!this.activeTool)return{};return this.resolvedHeaders()[this.activeTool]??{}}async activateTool(e){const s=this.railItems.find((s=>s.id===e));if(!s||s.isInactive)return;this.handleToolChange(e)}async closeDrawer(){if(!this.open)return;const e=this.activeTool;this.open=false;if(e){this.dsToolChange.emit({id:e,selected:false})}}async focusHeaderAction(e){const s=this.renderRoot.querySelector(`[data-header-action-id="${CSS.escape(e)}"]`);await(s?.setFocus?.())}focusRailAt(e){const s=this.orderedRailItems;if(!s.length)return;const t=Math.max(0,Math.min(e,s.length-1));if(t===this.rovingIndex)return;this.rovingIndex=t;const o=Array.from(this.renderRoot.querySelectorAll(".panel-tools__rail-action .button-icon"));o[t]?.focus({preventScroll:true})}renderRailAction(e,s){const t=e.ariaLabel??e.label??m[e.id]??e.id;return o("ds-tooltip",{key:e.id,label:t,shortcutKey:e.shortcutKey??g[e.id],side:"left",size:"sm"},o("ds-button-unfilled",{variant:"icon",class:"panel-tools__rail-action",icon:e.icon,isActive:this.isRailSelected(e.id),activeFill:false,hasBorder:false,pressScale:false,dot:e.dot??false,isInactive:e.isInactive,focusTabIndex:s===this.rovingIndex?0:-1,"aria-label":t,pressed:this.isRailSelected(e.id),onFocusin:()=>{this.rovingIndex=s},onKeyDown:e=>this.handleRailKeyDown(e,s),onDsClick:()=>this.handleToolChange(e.id)}))}render(){const e=this.headerLabel();const s=this.activeHeader();const t=s.title?.trim()||e;const n=s.actions??[];const r=this.orderedRailItems;const a=r.filter((e=>y(e)==="header"));const l=r.filter((e=>y(e)==="body"));const d=r.filter((e=>y(e)==="footer"));const c=a.length;const h=c+l.length;const f=this.isDrawerPresent();const u=k(this.open,this.motion);const p=Boolean(f&&this.activeTool&&this.hasFullView(this.activeTool));const m=r.map((e=>e.id));return o(i,{key:"2e78cd4ee2f8458fdb5ad465aeb2e0501cd72951",class:{"panel-tools":true,"panel-tools--open":this.open,"panel-tools--ready":this.readyForMotion,"panel-tools--motion-opening":this.motion==="opening","panel-tools--motion-closing":this.motion==="closing","panel-tools--drawer-resting":u,"panel-tools--fullscreen":this.presentation==="fullscreen","panel-tools--presentation-snap":this.presentationMotionSuppressed},role:this.presentation==="fullscreen"?"dialog":"complementary","aria-modal":this.presentation==="fullscreen"?"true":undefined,"aria-label":this.toolsLabel},o("div",{key:"df58b6f1d89ed84b096c7f6fbb025ea5eabe19fa",class:"panel-tools__layout"},o("nav",{key:"e44b4f7c35f914871bad6fc6907992cdb479b06c",class:"panel-tools__rail","aria-label":this.toolShortcutsLabel},a.length?o("div",{class:"panel-tools__rail-header ds-chrome-row ds-chrome-space--md"},a.map(((e,s)=>this.renderRailAction(e,s)))):null,o("div",{key:"1c2bd85b45f3883313cf9b0cc218068902a33ca3",class:{"panel-tools__rail-body":true,"ds-chrome-column":true,"ds-chrome-space--md":true,"ds-scrollbar-hidden":true,"ds-focus-ring":this.railBodyScrollable},ref:e=>{const s=e??undefined;if(s===this.railBodyEl)return;this.railBodyEl=s;this.connectRailBodyObserver()},role:this.railBodyScrollable?"region":undefined,"aria-label":this.railBodyScrollable?this.toolShortcutsLabel:undefined,tabIndex:this.railBodyScrollable?0:undefined},o("div",{key:"5be836263e97f79b8f7d22691b5f68200fe9e96e",class:"panel-tools__rail-actions"},l.map(((e,s)=>this.renderRailAction(e,c+s))))),d.length?o("div",{class:"panel-tools__rail-footer ds-chrome-row ds-chrome-space--md"},d.map(((e,s)=>this.renderRailAction(e,h+s)))):null),o("div",{key:"d4cbf04d2c78cb98250dec248f11d2f96955576a",class:{"panel-tools__drawer":true,"panel-tools__drawer--visible":f},"aria-hidden":f?null:"true",inert:f?undefined:true},o("div",{key:"b89f164dbeb59a100fc2650377209eaffc8fb02f",class:"panel-tools__drawer-surface"},this.presentation!=="fullscreen"||this.fullscreenHeaderMode==="shared"?o("ds-panel-tool-header",{class:"panel-tools__header",heading:t,showBack:s.showBack??false,backIcon:s.backIcon||"ChevronLeft",backAriaLabel:s.backAriaLabel||"Back",showMenu:false,ref:e=>{const s=e;if(s)s.actions=n},onDsBack:()=>{if(this.activeTool)this.dsHeaderBack.emit({tool:this.activeTool})}}):null,o("div",{key:"5271e06e9f7e4058893d67c4cb7b0fe805e0a90f",class:"panel-tools__body",hidden:p},m.map((e=>{const s=this.isViewActive(e);return o("div",{class:{"panel-tools__view":true,"panel-tools__view--active":s},hidden:!s},o("slot",{name:e}))}))),o("div",{key:"4ce1fc1594dc2c0380187f4adfb54d3fc28efe66",class:"panel-tools__full-views",hidden:!p},m.map((e=>o("div",{class:{"panel-tools__full-view":true,"panel-tools__full-view--active":this.isViewActive(e)&&this.hasFullView(e)},hidden:!(this.isViewActive(e)&&this.hasFullView(e))},o("slot",{name:`${e}-view`})))))))))}get el(){return this}static get watchers(){return{presentation:[{presentationChanged:0}],open:[{openChanged:0}],activeTool:[{activeToolChanged:0}],storageKey:[{storageKeyChanged:0}],items:[{itemsChanged:0}]}}static get style(){return A()}},[257,"ds-panel-tools",{open:[1540],presentation:[1537],fullscreenHeaderMode:[513,"fullscreen-header-mode"],activeTool:[1537,"active-tool"],items:[16],toolsLabel:[1,"tools-label"],toolShortcutsLabel:[1,"tool-shortcuts-label"],headers:[16],storageKey:[1,"storage-key"],motion:[32],drawerSurfaceRetained:[32],readyForMotion:[32],presentationMotionSuppressed:[32],rovingIndex:[32],fullViewToolIds:[32],railBodyScrollable:[32],activateTool:[64],closeDrawer:[64],focusHeaderAction:[64]},[[10,"keydown","handleFullscreenEscape"]],{presentation:[{presentationChanged:0}],open:[{openChanged:0}],activeTool:[{activeToolChanged:0}],storageKey:[{storageKeyChanged:0}],items:[{itemsChanged:0}]}]);function S(){if(typeof customElements==="undefined"){return}const e=["ds-panel-tools","ds-badge","ds-button-unfilled","ds-icon","ds-loader","ds-panel-tool-header","ds-text","ds-tooltip"];e.forEach((e=>{switch(e){case"ds-panel-tools":if(!customElements.get(n(e))){customElements.define(n(e),z)}break;case"ds-badge":if(!customElements.get(n(e))){a()}break;case"ds-button-unfilled":if(!customElements.get(n(e))){l()}break;case"ds-icon":if(!customElements.get(n(e))){d()}break;case"ds-loader":if(!customElements.get(n(e))){c()}break;case"ds-panel-tool-header":if(!customElements.get(n(e))){h()}break;case"ds-text":if(!customElements.get(n(e))){f()}break;case"ds-tooltip":if(!customElements.get(n(e))){u()}break}}))}S();export{z as P,m as a,C as b,v as c,S as d,b as o,_ as r};
|
|
2
|
-
//# sourceMappingURL=p-BzLnSwG9.js.map
|