@ds-mo/ui 14.6.0 → 14.8.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 +6 -6
- package/dist/agent.json +316 -21
- package/dist/angular/ds-menu.d.ts +7 -1
- package/dist/angular/ds-menu.js +5 -2
- package/dist/angular/ds-select.d.ts +7 -1
- package/dist/angular/ds-select.js +5 -2
- package/dist/angular/ds-table-saved-views.d.ts +49 -0
- package/dist/angular/ds-table-saved-views.js +57 -0
- package/dist/angular/ds-table-toolbar.d.ts +12 -0
- package/dist/angular/ds-table-toolbar.js +38 -0
- package/dist/angular/ds-table.d.ts +7 -1
- package/dist/angular/ds-table.js +10 -4
- 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-questionnaire.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-banner.js +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-button-unfilled.js +1 -1
- package/dist/components/ds-card-chart.js +1 -1
- package/dist/components/ds-card-setting.js +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-field.js +1 -1
- package/dist/components/ds-field.js.map +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-input.js.map +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-composer.js +1 -1
- package/dist/components/ds-message-scroller.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-modal.js.map +1 -1
- package/dist/components/ds-pagination.js +1 -1
- package/dist/components/ds-panel-nav.js +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-tools.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-table-saved-views.d.ts +11 -0
- package/dist/components/ds-table-saved-views.js +2 -0
- package/dist/components/ds-table-saved-views.js.map +1 -0
- package/dist/components/ds-table-toolbar.d.ts +11 -0
- package/dist/components/ds-table-toolbar.js +2 -0
- package/dist/components/ds-table-toolbar.js.map +1 -0
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-typing-indicator.js +1 -1
- package/dist/components/{p-C7-ylLcB.js → p-BCg_6ErW.js} +2 -2
- package/dist/components/p-BFSnIEsC.js +2 -0
- package/dist/components/p-BFSnIEsC.js.map +1 -0
- package/dist/components/p-BPnmiiIS.js +2 -0
- package/dist/components/p-BPnmiiIS.js.map +1 -0
- package/dist/components/p-BVmKcpyP.js +2 -0
- package/dist/components/p-BVmKcpyP.js.map +1 -0
- package/dist/components/p-BiTwXttN.js +2 -0
- package/dist/components/p-BiTwXttN.js.map +1 -0
- package/dist/components/{p-C5230yJY.js → p-BmWWU20X.js} +2 -2
- package/dist/components/{p-K_vg9Eng.js → p-BuGGwWmt.js} +2 -2
- package/dist/components/{p-DL12lNtv.js → p-Bv1CFHgD.js} +2 -2
- package/dist/components/{p-CDEME0Uc.js → p-C-L4InQ0.js} +2 -2
- package/dist/components/{p-BGQUiJuJ.js → p-C-Zgq_Fx.js} +2 -2
- package/dist/components/{p-BykcjUd6.js → p-C1jsgfeh.js} +2 -2
- package/dist/components/p-C1q-tq3U.js +2 -0
- package/dist/components/p-C1q-tq3U.js.map +1 -0
- package/dist/components/p-C6DNhlES.js +2 -0
- package/dist/components/p-C6DNhlES.js.map +1 -0
- package/dist/components/{p-BFDKKBYh.js → p-CoQSB3tl.js} +2 -2
- package/dist/components/{p-CCpJcSTE.js → p-CqbMoVDQ.js} +2 -2
- package/dist/components/{p-DJ-n-gyr.js → p-CvwtYbmh.js} +2 -2
- package/dist/components/{p-BAgjMUt3.js → p-Cxr0IQjC.js} +1 -1
- package/dist/components/p-Cxr0IQjC.js.map +1 -0
- package/dist/components/{p-os90t2-f.js → p-D5VglrfF.js} +2 -2
- package/dist/components/{p-BX-R5EhL.js → p-D5bPuNiF.js} +2 -2
- package/dist/components/{p-DTf90AyI.js → p-bQm3gfr1.js} +2 -2
- package/dist/components/{p-CTTDiW33.js → p-c_5SXjwx.js} +2 -2
- package/dist/components/p-c_5SXjwx.js.map +1 -0
- package/dist/docs/components.json +951 -20
- package/dist/lib/utils/choice-list.d.ts +8 -1
- package/dist/mcp-data/registry/button-unfilled.json +6 -6
- package/dist/mcp-data/registry/menu.json +40 -12
- package/dist/mcp-data/registry/registry.json +321 -20
- package/dist/mcp-data/registry/select.json +20 -3
- package/dist/mcp-data/registry/table-saved-views.json +383 -0
- package/dist/mcp-data/registry/table-toolbar.json +146 -0
- package/dist/mcp-data/registry/table.json +188 -11
- package/dist/react/components.d.ts +2 -0
- package/dist/react/components.js +2 -0
- package/dist/react/ds-menu.d.ts +2 -1
- package/dist/react/ds-menu.js +2 -1
- package/dist/react/ds-select.d.ts +2 -1
- package/dist/react/ds-select.js +2 -1
- package/dist/react/ds-table-saved-views.d.ts +17 -0
- package/dist/react/ds-table-saved-views.js +19 -0
- package/dist/react/ds-table-toolbar.d.ts +9 -0
- package/dist/react/ds-table-toolbar.js +12 -0
- package/dist/react/ds-table.d.ts +3 -1
- package/dist/react/ds-table.js +3 -1
- package/dist/styles/table.css +34 -1
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +4 -2
- package/dist/types/components/Menu/Menu.d.ts +18 -1
- package/dist/types/components/Menu/menu-reorder.d.ts +21 -0
- package/dist/types/components/Menu/menu-types.d.ts +12 -0
- package/dist/types/components/Select/Select.d.ts +7 -0
- package/dist/types/components/Select/index.d.ts +1 -1
- package/dist/types/components/Table/Table.d.ts +46 -1
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Table/table-column-customizer.d.ts +33 -0
- package/dist/types/components/Table/table-data-mode-switcher.d.ts +9 -0
- package/dist/types/components/Table/table-types.d.ts +10 -0
- package/dist/types/components/TableSavedViews/TableSavedViews.d.ts +61 -0
- package/dist/types/components/TableSavedViews/index.d.ts +2 -0
- package/dist/types/components/TableSavedViews/table-saved-views-types.d.ts +24 -0
- package/dist/types/components/TableToolbar/TableToolbar.d.ts +6 -0
- package/dist/types/components.d.ts +274 -8
- package/dist/types/utils/choice-list-parts.d.ts +1 -0
- package/dist/types/utils/choice-list.d.ts +8 -1
- package/package.json +1 -1
- package/dist/components/p-3r4TfcZX.js +0 -2
- package/dist/components/p-3r4TfcZX.js.map +0 -1
- package/dist/components/p-BAgjMUt3.js.map +0 -1
- package/dist/components/p-CRi7P5gQ.js +0 -2
- package/dist/components/p-CRi7P5gQ.js.map +0 -1
- package/dist/components/p-CTTDiW33.js.map +0 -1
- package/dist/components/p-tR8INOIN.js +0 -2
- package/dist/components/p-tR8INOIN.js.map +0 -1
- /package/dist/components/{p-C7-ylLcB.js.map → p-BCg_6ErW.js.map} +0 -0
- /package/dist/components/{p-C5230yJY.js.map → p-BmWWU20X.js.map} +0 -0
- /package/dist/components/{p-K_vg9Eng.js.map → p-BuGGwWmt.js.map} +0 -0
- /package/dist/components/{p-DL12lNtv.js.map → p-Bv1CFHgD.js.map} +0 -0
- /package/dist/components/{p-CDEME0Uc.js.map → p-C-L4InQ0.js.map} +0 -0
- /package/dist/components/{p-BGQUiJuJ.js.map → p-C-Zgq_Fx.js.map} +0 -0
- /package/dist/components/{p-BykcjUd6.js.map → p-C1jsgfeh.js.map} +0 -0
- /package/dist/components/{p-BFDKKBYh.js.map → p-CoQSB3tl.js.map} +0 -0
- /package/dist/components/{p-CCpJcSTE.js.map → p-CqbMoVDQ.js.map} +0 -0
- /package/dist/components/{p-DJ-n-gyr.js.map → p-CvwtYbmh.js.map} +0 -0
- /package/dist/components/{p-os90t2-f.js.map → p-D5VglrfF.js.map} +0 -0
- /package/dist/components/{p-BX-R5EhL.js.map → p-D5bPuNiF.js.map} +0 -0
- /package/dist/components/{p-DTf90AyI.js.map → p-bQm3gfr1.js.map} +0 -0
|
@@ -65,6 +65,8 @@ export { DsSlider } from "./ds-slider.js";
|
|
|
65
65
|
export { DsSwatchPicker } from "./ds-swatch-picker.js";
|
|
66
66
|
export { DsSwitch } from "./ds-switch.js";
|
|
67
67
|
export { DsTabGroup } from "./ds-tab-group.js";
|
|
68
|
+
export { DsTableSavedViews } from "./ds-table-saved-views.js";
|
|
69
|
+
export { DsTableToolbar } from "./ds-table-toolbar.js";
|
|
68
70
|
export { DsTable } from "./ds-table.js";
|
|
69
71
|
export { DsTag } from "./ds-tag.js";
|
|
70
72
|
export { DsText } from "./ds-text.js";
|
package/dist/react/components.js
CHANGED
|
@@ -66,6 +66,8 @@ export { DsSlider } from "./ds-slider.js";
|
|
|
66
66
|
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
|
+
export { DsTableSavedViews } from "./ds-table-saved-views.js";
|
|
70
|
+
export { DsTableToolbar } from "./ds-table-toolbar.js";
|
|
69
71
|
export { DsTable } from "./ds-table.js";
|
|
70
72
|
export { DsTag } from "./ds-tag.js";
|
|
71
73
|
export { DsText } from "./ds-text.js";
|
package/dist/react/ds-menu.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import { type DsMenuCustomEvent, type MenuItemData } from "@ds-mo/ui";
|
|
6
|
+
import { type DsMenuCustomEvent, type MenuItemData, type MenuReorderDetail } from "@ds-mo/ui";
|
|
7
7
|
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
8
|
import { DsMenu as DsMenuElement } from "@ds-mo/ui/dist/components/ds-menu.js";
|
|
9
9
|
export type DsMenuEvents = {
|
|
@@ -11,5 +11,6 @@ export type DsMenuEvents = {
|
|
|
11
11
|
onDsAfterClose: EventName<DsMenuCustomEvent<void>>;
|
|
12
12
|
onDsSelect: EventName<DsMenuCustomEvent<MenuItemData>>;
|
|
13
13
|
onDsSwatchSelect: EventName<DsMenuCustomEvent<string>>;
|
|
14
|
+
onDsReorder: EventName<DsMenuCustomEvent<MenuReorderDetail>>;
|
|
14
15
|
};
|
|
15
16
|
export declare const DsMenu: StencilReactComponent<DsMenuElement, DsMenuEvents, Components.DsMenu>;
|
package/dist/react/ds-menu.js
CHANGED
|
@@ -11,7 +11,8 @@ export const DsMenu = /*@__PURE__*/ createComponent({
|
|
|
11
11
|
onDsClose: 'dsClose',
|
|
12
12
|
onDsAfterClose: 'dsAfterClose',
|
|
13
13
|
onDsSelect: 'dsSelect',
|
|
14
|
-
onDsSwatchSelect: 'dsSwatchSelect'
|
|
14
|
+
onDsSwatchSelect: 'dsSwatchSelect',
|
|
15
|
+
onDsReorder: 'dsReorder'
|
|
15
16
|
},
|
|
16
17
|
defineCustomElement: defineDsMenu
|
|
17
18
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import { type DsSelectCustomEvent, type SelectOptionActionDetail, type SelectValue } from "@ds-mo/ui";
|
|
6
|
+
import { type DsSelectCustomEvent, type SelectOptionActionDetail, type SelectOptionSubtextActionDetail, type SelectValue } from "@ds-mo/ui";
|
|
7
7
|
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
8
|
import { DsSelect as DsSelectElement } from "@ds-mo/ui/dist/components/ds-select.js";
|
|
9
9
|
export type DsSelectEvents = {
|
|
@@ -12,5 +12,6 @@ export type DsSelectEvents = {
|
|
|
12
12
|
onDsOpenChange: EventName<DsSelectCustomEvent<boolean>>;
|
|
13
13
|
onDsFooterAction: EventName<DsSelectCustomEvent<void>>;
|
|
14
14
|
onDsOptionAction: EventName<DsSelectCustomEvent<SelectOptionActionDetail>>;
|
|
15
|
+
onDsOptionSubtextAction: EventName<DsSelectCustomEvent<SelectOptionSubtextActionDetail>>;
|
|
15
16
|
};
|
|
16
17
|
export declare const DsSelect: StencilReactComponent<DsSelectElement, DsSelectEvents, Components.DsSelect>;
|
package/dist/react/ds-select.js
CHANGED
|
@@ -12,7 +12,8 @@ export const DsSelect = /*@__PURE__*/ createComponent({
|
|
|
12
12
|
onDsClear: 'dsClear',
|
|
13
13
|
onDsOpenChange: 'dsOpenChange',
|
|
14
14
|
onDsFooterAction: 'dsFooterAction',
|
|
15
|
-
onDsOptionAction: 'dsOptionAction'
|
|
15
|
+
onDsOptionAction: 'dsOptionAction',
|
|
16
|
+
onDsOptionSubtextAction: 'dsOptionSubtextAction'
|
|
16
17
|
},
|
|
17
18
|
defineCustomElement: defineDsSelect
|
|
18
19
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from './react-runtime.js';
|
|
6
|
+
import { type DsTableSavedViewsCustomEvent, type TableSavedViewChangeDetail, type TableSavedViewCreateDetail, type TableSavedViewDiscardDetail, type TableSavedViewRemoveDetail, type TableSavedViewRenameDetail, type TableSavedViewSaveDetail } from "@ds-mo/ui";
|
|
7
|
+
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
|
+
import { DsTableSavedViews as DsTableSavedViewsElement } from "@ds-mo/ui/dist/components/ds-table-saved-views.js";
|
|
9
|
+
export type DsTableSavedViewsEvents = {
|
|
10
|
+
onDsViewChange: EventName<DsTableSavedViewsCustomEvent<TableSavedViewChangeDetail>>;
|
|
11
|
+
onDsViewCreate: EventName<DsTableSavedViewsCustomEvent<TableSavedViewCreateDetail>>;
|
|
12
|
+
onDsViewRename: EventName<DsTableSavedViewsCustomEvent<TableSavedViewRenameDetail>>;
|
|
13
|
+
onDsViewRemove: EventName<DsTableSavedViewsCustomEvent<TableSavedViewRemoveDetail>>;
|
|
14
|
+
onDsViewSave: EventName<DsTableSavedViewsCustomEvent<TableSavedViewSaveDetail>>;
|
|
15
|
+
onDsViewDiscard: EventName<DsTableSavedViewsCustomEvent<TableSavedViewDiscardDetail>>;
|
|
16
|
+
};
|
|
17
|
+
export declare const DsTableSavedViews: StencilReactComponent<DsTableSavedViewsElement, DsTableSavedViewsEvents, Components.DsTableSavedViews>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from './react-runtime.js';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DsTableSavedViews as DsTableSavedViewsElement, defineCustomElement as defineDsTableSavedViews } from "@ds-mo/ui/dist/components/ds-table-saved-views.js";
|
|
5
|
+
export const DsTableSavedViews = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'ds-table-saved-views',
|
|
7
|
+
elementClass: DsTableSavedViewsElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: {
|
|
11
|
+
onDsViewChange: 'dsViewChange',
|
|
12
|
+
onDsViewCreate: 'dsViewCreate',
|
|
13
|
+
onDsViewRename: 'dsViewRename',
|
|
14
|
+
onDsViewRemove: 'dsViewRemove',
|
|
15
|
+
onDsViewSave: 'dsViewSave',
|
|
16
|
+
onDsViewDiscard: 'dsViewDiscard'
|
|
17
|
+
},
|
|
18
|
+
defineCustomElement: defineDsTableSavedViews
|
|
19
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { StencilReactComponent } from './react-runtime.js';
|
|
6
|
+
import type { Components } from "@ds-mo/ui/dist/components";
|
|
7
|
+
import { DsTableToolbar as DsTableToolbarElement } from "@ds-mo/ui/dist/components/ds-table-toolbar.js";
|
|
8
|
+
export type DsTableToolbarEvents = NonNullable<unknown>;
|
|
9
|
+
export declare const DsTableToolbar: StencilReactComponent<DsTableToolbarElement, DsTableToolbarEvents, Components.DsTableToolbar>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from './react-runtime.js';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DsTableToolbar as DsTableToolbarElement, defineCustomElement as defineDsTableToolbar } from "@ds-mo/ui/dist/components/ds-table-toolbar.js";
|
|
5
|
+
export const DsTableToolbar = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'ds-table-toolbar',
|
|
7
|
+
elementClass: DsTableToolbarElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: {},
|
|
11
|
+
defineCustomElement: defineDsTableToolbar
|
|
12
|
+
});
|
package/dist/react/ds-table.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import { type DsTableCustomEvent, type PaginationChangeDetail, type TableCellActionDetail, type TableGroupCollapseChangeDetail, type TableGroupLoadMoreDetail, type TableLoadMoreDetail, type TableRowActivateDetail, type TableSelectionChangeDetail, type TableSortChangeDetail } from "@ds-mo/ui";
|
|
6
|
+
import { type DsTableCustomEvent, type PaginationChangeDetail, type TableCellActionDetail, type TableColumnsConfigChangeDetail, type TableDataModeChangeDetail, type TableGroupCollapseChangeDetail, type TableGroupLoadMoreDetail, type TableLoadMoreDetail, type TableRowActivateDetail, type TableSelectionChangeDetail, type TableSortChangeDetail } from "@ds-mo/ui";
|
|
7
7
|
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
8
|
import { DsTable as DsTableElement } from "@ds-mo/ui/dist/components/ds-table.js";
|
|
9
9
|
export type DsTableEvents = {
|
|
@@ -15,5 +15,7 @@ export type DsTableEvents = {
|
|
|
15
15
|
onDsPaginationChange: EventName<DsTableCustomEvent<PaginationChangeDetail>>;
|
|
16
16
|
onDsCellAction: EventName<DsTableCustomEvent<TableCellActionDetail>>;
|
|
17
17
|
onDsRowActivate: EventName<DsTableCustomEvent<TableRowActivateDetail>>;
|
|
18
|
+
onDsColumnsConfigChange: EventName<DsTableCustomEvent<TableColumnsConfigChangeDetail>>;
|
|
19
|
+
onDsDataModeChange: EventName<DsTableCustomEvent<TableDataModeChangeDetail>>;
|
|
18
20
|
};
|
|
19
21
|
export declare const DsTable: StencilReactComponent<DsTableElement, DsTableEvents, Components.DsTable, 'caption'>;
|
package/dist/react/ds-table.js
CHANGED
|
@@ -15,7 +15,9 @@ export const DsTable = /*@__PURE__*/ createComponent({
|
|
|
15
15
|
onDsGroupLoadMore: 'dsGroupLoadMore',
|
|
16
16
|
onDsPaginationChange: 'dsPaginationChange',
|
|
17
17
|
onDsCellAction: 'dsCellAction',
|
|
18
|
-
onDsRowActivate: 'dsRowActivate'
|
|
18
|
+
onDsRowActivate: 'dsRowActivate',
|
|
19
|
+
onDsColumnsConfigChange: 'dsColumnsConfigChange',
|
|
20
|
+
onDsDataModeChange: 'dsDataModeChange'
|
|
19
21
|
},
|
|
20
22
|
defineCustomElement: defineDsTable
|
|
21
23
|
});
|
package/dist/styles/table.css
CHANGED
|
@@ -25,6 +25,18 @@
|
|
|
25
25
|
+ var(--dimension-space-025)
|
|
26
26
|
+ var(--dimension-size-250)
|
|
27
27
|
);
|
|
28
|
+
--_table-image-column-inline-size: calc(
|
|
29
|
+
((var(--_table-image-block-size) * 16) / 9)
|
|
30
|
+
+ (var(--_table-cell-padding-inline) * 2)
|
|
31
|
+
);
|
|
32
|
+
--_table-image-column-inline-size-multi: calc(
|
|
33
|
+
((var(--_table-image-block-size-multi) * 16) / 9)
|
|
34
|
+
+ (var(--_table-cell-padding-inline) * 2)
|
|
35
|
+
);
|
|
36
|
+
--_table-image-column-inline-size-triple: calc(
|
|
37
|
+
((var(--_table-image-block-size-triple) * 16) / 9)
|
|
38
|
+
+ (var(--_table-cell-padding-inline) * 2)
|
|
39
|
+
);
|
|
28
40
|
/*
|
|
29
41
|
* Wrapping primary on a 1-track cell occupies later tracks instead of a
|
|
30
42
|
* private leading scale. Keep body-medium size; add the 2px stack gap to
|
|
@@ -285,7 +297,28 @@
|
|
|
285
297
|
max-inline-size: 100%;
|
|
286
298
|
}
|
|
287
299
|
|
|
288
|
-
:where(.ds-table__caption-content
|
|
300
|
+
:where(.ds-table__caption-content--trailing) {
|
|
301
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
302
|
+
column-gap: var(--dimension-space-100);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
:where(.ds-table__caption-trailing) {
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
flex: 0 0 auto;
|
|
309
|
+
min-inline-size: 0;
|
|
310
|
+
gap: var(--dimension-space-100);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:where(.ds-table__caption-leading) {
|
|
314
|
+
display: grid;
|
|
315
|
+
grid-template-columns: minmax(0, 1fr);
|
|
316
|
+
align-items: center;
|
|
317
|
+
min-inline-size: 0;
|
|
318
|
+
max-inline-size: 100%;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
:where(.ds-table__caption-leading > slot) {
|
|
289
322
|
display: contents;
|
|
290
323
|
}
|
|
291
324
|
|
|
@@ -76,8 +76,10 @@ export declare class ButtonUnfilled {
|
|
|
76
76
|
*
|
|
77
77
|
* - `label` / `icon-label` — the action *has* a menu; a trailing chevron carries
|
|
78
78
|
* the affordance.
|
|
79
|
-
* - `icon` — the button *is* a menu,
|
|
80
|
-
*
|
|
79
|
+
* - `icon` — the button *is* a menu. No chevron is added, so the glyph must
|
|
80
|
+
* convey the menu on its own. Use `Ellipses` for generic more-options;
|
|
81
|
+
* use a specific icon when the menu has a named purpose, such as
|
|
82
|
+
* `Preferences` for Customize table.
|
|
81
83
|
*
|
|
82
84
|
* Use `haspopup` directly for non-menu popups.
|
|
83
85
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { type ChoicePopupAnchorAlignment, type ControlSize } from '../../utils';
|
|
3
3
|
import type { MenuAlign, MenuSide } from './menu-position';
|
|
4
|
-
import { type MenuItemData, type MenuSection } from './menu-types';
|
|
4
|
+
import { type MenuItemData, type MenuReorderDetail, type MenuSection } from './menu-types';
|
|
5
5
|
export type MenuSelectionMode = 'none' | 'single';
|
|
6
6
|
export type MenuSize = ControlSize;
|
|
7
7
|
export declare class Menu {
|
|
@@ -38,15 +38,22 @@ export declare class Menu {
|
|
|
38
38
|
private focusedIndex;
|
|
39
39
|
private positionReady;
|
|
40
40
|
private focusRingVisible;
|
|
41
|
+
private reorderFromFlat;
|
|
42
|
+
private reorderInsertBefore;
|
|
43
|
+
private reorderAnnouncement;
|
|
41
44
|
dsClose: EventEmitter<void>;
|
|
42
45
|
/** Emitted after the popup's exit motion is complete and its rendered content is removed. */
|
|
43
46
|
dsAfterClose: EventEmitter<void>;
|
|
44
47
|
dsSelect: EventEmitter<MenuItemData>;
|
|
45
48
|
/** Emitted when a generic `swatch-picker` section option is chosen. */
|
|
46
49
|
dsSwatchSelect: EventEmitter<string>;
|
|
50
|
+
/** Emitted after a pointer drop or keyboard move; Menu never mutates item order. */
|
|
51
|
+
dsReorder: EventEmitter<MenuReorderDetail>;
|
|
47
52
|
private clickOutsideHandler;
|
|
48
53
|
private closeTimer;
|
|
49
54
|
private positionReadyCallback;
|
|
55
|
+
private suppressItemClick;
|
|
56
|
+
private reorderPointer;
|
|
50
57
|
/**
|
|
51
58
|
* Anchored placement. The choice-cell measurement stays here on purpose: the
|
|
52
59
|
* inner-cell align offset and the `--dimension-menu-width-xs` floor are Menu
|
|
@@ -95,6 +102,16 @@ export declare class Menu {
|
|
|
95
102
|
private focusItem;
|
|
96
103
|
private handleItemClick;
|
|
97
104
|
private handleSwatchSelect;
|
|
105
|
+
private handleReorderKey;
|
|
106
|
+
private emitReorder;
|
|
107
|
+
private flatIndexFor;
|
|
108
|
+
private announceReorder;
|
|
109
|
+
private onReorderPointerDown;
|
|
110
|
+
private onReorderPointerMove;
|
|
111
|
+
private onReorderPointerUp;
|
|
112
|
+
private onReorderPointerCancel;
|
|
113
|
+
private resolveReorderInsertBefore;
|
|
114
|
+
private clearReorderPointer;
|
|
98
115
|
render(): any;
|
|
99
116
|
}
|
|
100
117
|
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type MenuItemData, type MenuReorderDetail, type MenuSection } from './menu-types';
|
|
2
|
+
export interface MenuReorderRange {
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
}
|
|
6
|
+
/** Contiguous reorderable run containing `index`, or null when that row cannot move. */
|
|
7
|
+
export declare function menuReorderableRange(items: readonly MenuItemData[], index: number): MenuReorderRange | null;
|
|
8
|
+
/**
|
|
9
|
+
* Move a reorderable row so it would be inserted before `insertBefore`.
|
|
10
|
+
* `insertBefore` is clamped to the contiguous reorderable run.
|
|
11
|
+
*/
|
|
12
|
+
export declare function moveReorderableMenuItemBefore(items: readonly MenuItemData[], fromIndex: number, insertBefore: number): MenuItemData[] | null;
|
|
13
|
+
/** Keyboard step: move one slot within the reorderable run. */
|
|
14
|
+
export declare function moveReorderableMenuItemBy(items: readonly MenuItemData[], fromIndex: number, offset: number): MenuItemData[] | null;
|
|
15
|
+
export declare function locateMenuItem(sections: readonly MenuSection[], flatIndex: number): {
|
|
16
|
+
sectionIndex: number;
|
|
17
|
+
itemIndex: number;
|
|
18
|
+
items: MenuItemData[];
|
|
19
|
+
} | null;
|
|
20
|
+
export declare function createMenuReorderDetail(items: MenuItemData[], fromIndex: number, nextItems: MenuItemData[], sectionIndex: number): MenuReorderDetail | null;
|
|
21
|
+
//# sourceMappingURL=menu-reorder.d.ts.map
|
|
@@ -12,6 +12,8 @@ export interface MenuItemData {
|
|
|
12
12
|
label: string;
|
|
13
13
|
value?: string;
|
|
14
14
|
subtext?: string;
|
|
15
|
+
/** Leading decorative icon. Ignored when `reorderable` is true. */
|
|
16
|
+
icon?: string;
|
|
15
17
|
/** Show a supplemental brand notification dot. */
|
|
16
18
|
dot?: boolean;
|
|
17
19
|
/** Show a non-interactive tag at the trailing edge of the row. */
|
|
@@ -22,6 +24,16 @@ export interface MenuItemData {
|
|
|
22
24
|
/** Render a compact switch indicator; the menu row owns interaction. */
|
|
23
25
|
showSwitch?: boolean;
|
|
24
26
|
switchValue?: boolean;
|
|
27
|
+
/** Prefix a drag handle and allow pointer and keyboard reorder within the contiguous reorderable run. */
|
|
28
|
+
reorderable?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Next section item order after a pointer or keyboard reorder. */
|
|
31
|
+
export interface MenuReorderDetail {
|
|
32
|
+
item: MenuItemData;
|
|
33
|
+
fromIndex: number;
|
|
34
|
+
toIndex: number;
|
|
35
|
+
sectionIndex: number;
|
|
36
|
+
items: MenuItemData[];
|
|
25
37
|
}
|
|
26
38
|
export interface MenuItemsSection {
|
|
27
39
|
header?: string;
|
|
@@ -14,6 +14,11 @@ export interface SelectOptionActionDetail {
|
|
|
14
14
|
anchorId: string;
|
|
15
15
|
originalEvent: MouseEvent;
|
|
16
16
|
}
|
|
17
|
+
export interface SelectOptionSubtextActionDetail {
|
|
18
|
+
value: string;
|
|
19
|
+
actionValue: string;
|
|
20
|
+
originalEvent: MouseEvent;
|
|
21
|
+
}
|
|
17
22
|
export declare class Select {
|
|
18
23
|
el: HTMLElement;
|
|
19
24
|
internals: ElementInternals;
|
|
@@ -101,6 +106,8 @@ export declare class Select {
|
|
|
101
106
|
dsFooterAction: EventEmitter<void>;
|
|
102
107
|
/** Emitted when an option's contextual ellipsis action is activated. */
|
|
103
108
|
dsOptionAction: EventEmitter<SelectOptionActionDetail>;
|
|
109
|
+
/** Emitted when an option's supporting text action is activated. */
|
|
110
|
+
dsOptionSubtextAction: EventEmitter<SelectOptionSubtextActionDetail>;
|
|
104
111
|
private activeIndex;
|
|
105
112
|
private searchTerm;
|
|
106
113
|
private formDisabled;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { SelectBackground, SelectIndicator, SelectOption, SelectSection, SelectSize, SelectValue, SelectWidth, } from './Select';
|
|
1
|
+
export type { SelectBackground, SelectIndicator, SelectOption, SelectOptionActionDetail, SelectOptionSubtextActionDetail, SelectSection, SelectSize, SelectValue, SelectWidth, } from './Select';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { PaginationChangeDetail } from '../Pagination/pagination-types';
|
|
3
|
-
import type { TableCaptionVisibility, TableCellActionDetail, TableColumn, TableDataMode, TableGroup, TableGroupCollapseChangeDetail, TableGroupLoadMoreDetail, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TablePaginationState, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortState } from './table-types';
|
|
3
|
+
import type { TableCaptionVisibility, TableCellActionDetail, TableColumn, TableColumnsConfigChangeDetail, TableDataMode, TableDataModeChangeDetail, TableGroup, TableGroupCollapseChangeDetail, TableGroupLoadMoreDetail, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TablePaginationState, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortState } from './table-types';
|
|
4
4
|
export declare class Table {
|
|
5
5
|
el: HTMLElement;
|
|
6
6
|
/** Stable column definitions. Assign through JavaScript. */
|
|
@@ -19,6 +19,16 @@ export declare class Table {
|
|
|
19
19
|
caption: string;
|
|
20
20
|
/** Shows a matching presentational title bar above the native table frame. */
|
|
21
21
|
captionVisibility: TableCaptionVisibility;
|
|
22
|
+
/**
|
|
23
|
+
* Opt in to the table-owned column customizer. The `columns` prop remains the
|
|
24
|
+
* catalog; hidden and ordered columns are controlled separately. The trigger
|
|
25
|
+
* opens the shared Menu of live show/hide switch rows.
|
|
26
|
+
*/
|
|
27
|
+
columnCustomizer: boolean;
|
|
28
|
+
/** Controlled hidden data-column identities. Action ids are ignored. */
|
|
29
|
+
hiddenColumnIds: string[];
|
|
30
|
+
/** Controlled data-column identities in display order. Omitted ids append in catalog order. */
|
|
31
|
+
columnOrder: string[];
|
|
22
32
|
/**
|
|
23
33
|
* Optional result summary footer. When both `displayedCount` and `totalCount`
|
|
24
34
|
* are finite numbers, the table shows “Displaying {displayed} of {total}”.
|
|
@@ -56,6 +66,12 @@ export declare class Table {
|
|
|
56
66
|
emptyCellLabel: string;
|
|
57
67
|
/** Top-level data-window strategy. Group member loading remains group-owned. */
|
|
58
68
|
dataMode: TableDataMode;
|
|
69
|
+
/** Opt in to the table-owned control for choosing between supported data modes. */
|
|
70
|
+
dataModeSwitcher: boolean;
|
|
71
|
+
dataModeSwitcherLabel: string;
|
|
72
|
+
dataModeMenuLabel: string;
|
|
73
|
+
infiniteModeLabel: string;
|
|
74
|
+
paginationModeLabel: string;
|
|
59
75
|
/** Controlled top-level pagination state. Required when dataMode is pagination. */
|
|
60
76
|
pagination: TablePaginationState | null;
|
|
61
77
|
loadMoreMode: TableLoadMoreMode;
|
|
@@ -91,6 +107,8 @@ export declare class Table {
|
|
|
91
107
|
dsPaginationChange: EventEmitter<PaginationChangeDetail>;
|
|
92
108
|
dsCellAction: EventEmitter<TableCellActionDetail>;
|
|
93
109
|
dsRowActivate: EventEmitter<TableRowActivateDetail>;
|
|
110
|
+
dsColumnsConfigChange: EventEmitter<TableColumnsConfigChangeDetail>;
|
|
111
|
+
dsDataModeChange: EventEmitter<TableDataModeChangeDetail>;
|
|
94
112
|
private overflowStart;
|
|
95
113
|
private overflowEnd;
|
|
96
114
|
private scrollable;
|
|
@@ -102,7 +120,13 @@ export declare class Table {
|
|
|
102
120
|
private actionMenu;
|
|
103
121
|
private actionMenuInitialFocusVisible;
|
|
104
122
|
private truncateTooltipLabel;
|
|
123
|
+
private columnCustomizerOpen;
|
|
124
|
+
private columnCustomizerInitialFocusVisible;
|
|
125
|
+
private dataModeSwitcherOpen;
|
|
126
|
+
private dataModeSwitcherInitialFocusVisible;
|
|
105
127
|
private readonly actionMenuElementId;
|
|
128
|
+
private readonly columnCustomizerElementId;
|
|
129
|
+
private readonly dataModeSwitcherElementId;
|
|
106
130
|
private truncateTooltipEl?;
|
|
107
131
|
private truncateAnchor;
|
|
108
132
|
private truncateTooltipBound;
|
|
@@ -149,9 +173,15 @@ export declare class Table {
|
|
|
149
173
|
handleLoadingMoreChange(loading: boolean): void;
|
|
150
174
|
handleLoadMoreErrorChange(error: string | undefined): void;
|
|
151
175
|
handleHasMoreChange(hasMore: boolean, hadMore: boolean): void;
|
|
176
|
+
handleColumnCustomizerAvailability(): void;
|
|
177
|
+
handleDataModeSwitcherAvailability(): void;
|
|
152
178
|
private get grouped();
|
|
153
179
|
private get hasIncrementalState();
|
|
154
180
|
private get selectable();
|
|
181
|
+
private get visibleColumns();
|
|
182
|
+
private get showsColumnCustomizer();
|
|
183
|
+
private get showsDataModeSwitcher();
|
|
184
|
+
private get showsCaptionTrailing();
|
|
155
185
|
private get documentStickyHeader();
|
|
156
186
|
private get fixedHeight();
|
|
157
187
|
private get boundedComposition();
|
|
@@ -217,6 +247,21 @@ export declare class Table {
|
|
|
217
247
|
private get hasResultFooter();
|
|
218
248
|
private renderResultFooter;
|
|
219
249
|
private renderCaptionBar;
|
|
250
|
+
private renderCaptionTrailing;
|
|
251
|
+
private renderDataModeSwitcherTrigger;
|
|
252
|
+
private renderDataModeSwitcherMenu;
|
|
253
|
+
private toggleDataModeSwitcher;
|
|
254
|
+
private openDataModeSwitcher;
|
|
255
|
+
private closeDataModeSwitcher;
|
|
256
|
+
private handleDataModeSwitcherSelect;
|
|
257
|
+
private renderColumnCustomizerTrigger;
|
|
258
|
+
private renderColumnCustomizerMenu;
|
|
259
|
+
private toggleColumnCustomizer;
|
|
260
|
+
private openColumnCustomizer;
|
|
261
|
+
private closeColumnCustomizer;
|
|
262
|
+
private emitColumnsConfigChange;
|
|
263
|
+
private handleColumnCustomizerReorder;
|
|
264
|
+
private handleColumnCustomizerSelect;
|
|
220
265
|
render(): any;
|
|
221
266
|
}
|
|
222
267
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TableCaptionVisibility, TableCellAlign, TableCellAction, TableCellActionDetail, TableCellActionDivider, TableCellActionMenuEntry, TableCellActionMenuItem, TableCellBlank, TableCellEmpty, TableCellLinkTarget, TableCellIcon, TableCellIconText, TableCellImage, TableCellImageTracks, TableCellPrimaryText, TableCellSkeleton, TableCellText, TableCellTextRun, TableCellTextTrack, TableCellTag, TableCellTagVariant, TableCellValue, TableSkeletonWidth, TableColumn, TableColumnSticky, TableColumnWidth, TableDataMode, TableGroup, TableGroupCollapseChangeDetail, TableGroupLoadMoreDetail, TableGroupIntent, TableHeaderSegment, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TableLoadMoreReason, TablePaginationState, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortDirection, TableSortState, } from './table-types';
|
|
1
|
+
export type { TableCaptionVisibility, TableCellAlign, TableCellAction, TableCellActionDetail, TableCellActionDivider, TableCellActionMenuEntry, TableCellActionMenuItem, TableCellBlank, TableCellEmpty, TableCellLinkTarget, TableCellIcon, TableCellIconText, TableCellImage, TableCellImageTracks, TableCellPrimaryText, TableCellSkeleton, TableCellText, TableCellTextRun, TableCellTextTrack, TableCellTag, TableCellTagVariant, TableCellValue, TableSkeletonWidth, TableColumn, TableColumnsConfigChangeDetail, TableColumnSticky, TableColumnWidth, TableDataMode, TableDataModeChangeDetail, TableGroup, TableGroupCollapseChangeDetail, TableGroupLoadMoreDetail, TableGroupIntent, TableHeaderSegment, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TableLoadMoreReason, TablePaginationState, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortDirection, TableSortState, } from './table-types';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { MenuItemData } from '../Menu/menu-types';
|
|
2
|
+
import type { TableColumn } from './table-types';
|
|
3
|
+
export declare function nextTableColumnCustomizerElementId(): string;
|
|
4
|
+
export declare function isTableActionColumn(column: TableColumn): boolean;
|
|
5
|
+
export declare function tableColumnCustomizerLabel(column: TableColumn): string;
|
|
6
|
+
export declare function tableDataColumns(columns: TableColumn[]): TableColumn[];
|
|
7
|
+
/** Data-column ids in display order. Unknown, duplicate, and action ids are ignored. */
|
|
8
|
+
export declare function resolveTableColumnOrder(columns: TableColumn[], columnOrder: string[] | undefined): string[];
|
|
9
|
+
/**
|
|
10
|
+
* Hidden data-column ids. Action and unknown ids are dropped. At least one data
|
|
11
|
+
* column remains visible when the catalog has any data columns.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveTableHiddenColumnIds(columns: TableColumn[], hiddenColumnIds: string[] | undefined): string[];
|
|
14
|
+
export declare function resolveTableVisibleColumns(columns: TableColumn[], options?: {
|
|
15
|
+
columnCustomizer?: boolean;
|
|
16
|
+
hiddenColumnIds?: string[];
|
|
17
|
+
columnOrder?: string[];
|
|
18
|
+
}): TableColumn[];
|
|
19
|
+
export declare function canToggleTableColumnHidden(columns: TableColumn[], hiddenColumnIds: string[] | undefined, columnId: string): boolean;
|
|
20
|
+
export declare function toggleTableColumnHidden(columns: TableColumn[], hiddenColumnIds: string[] | undefined, columnId: string): string[];
|
|
21
|
+
export declare function moveTableColumnOrder(order: string[], fromId: string, toId: string): string[];
|
|
22
|
+
export declare function moveTableColumnInOrder(order: string[], columnId: string, offset: number): string[];
|
|
23
|
+
export interface TableColumnCustomizerItem {
|
|
24
|
+
column: TableColumn;
|
|
25
|
+
label: string;
|
|
26
|
+
visible: boolean;
|
|
27
|
+
hideable: boolean;
|
|
28
|
+
reorderable: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function tableColumnCustomizerItems(columns: TableColumn[], hiddenColumnIds: string[] | undefined, columnOrder: string[] | undefined): TableColumnCustomizerItem[];
|
|
31
|
+
/** Menu switch rows for the table-owned column customizer. */
|
|
32
|
+
export declare function tableColumnCustomizerMenuItems(columns: TableColumn[], hiddenColumnIds: string[] | undefined, columnOrder: string[] | undefined): MenuItemData[];
|
|
33
|
+
//# sourceMappingURL=table-column-customizer.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MenuItemData } from '../Menu/menu-types';
|
|
2
|
+
import type { TableDataMode } from './table-types';
|
|
3
|
+
export declare function nextTableDataModeSwitcherElementId(): string;
|
|
4
|
+
export declare function tableDataModeMenuItems(dataMode: TableDataMode, labels: {
|
|
5
|
+
infinite: string;
|
|
6
|
+
pagination: string;
|
|
7
|
+
}): MenuItemData[];
|
|
8
|
+
export declare function tableDataModeFromMenuItem(item: MenuItemData): TableDataMode | null;
|
|
9
|
+
//# sourceMappingURL=table-data-mode-switcher.d.ts.map
|
|
@@ -10,6 +10,9 @@ export type TableColumnSticky = 'start' | 'end';
|
|
|
10
10
|
export type TableCaptionVisibility = 'visible' | 'hidden';
|
|
11
11
|
export type TableLoadMoreMode = 'auto' | 'manual';
|
|
12
12
|
export type TableDataMode = 'infinite' | 'pagination';
|
|
13
|
+
export interface TableDataModeChangeDetail {
|
|
14
|
+
dataMode: TableDataMode;
|
|
15
|
+
}
|
|
13
16
|
export type TableLoadMoreReason = 'auto' | 'manual' | 'retry';
|
|
14
17
|
export type TableColumnWidth = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
15
18
|
/** Visible line budget before a text track ellipsizes. */
|
|
@@ -251,6 +254,8 @@ export interface TableColumn {
|
|
|
251
254
|
sortable?: boolean;
|
|
252
255
|
/** Preferred TokoMo table-column width. Numbers remain available for exceptional custom pixel widths. */
|
|
253
256
|
size?: TableColumnWidth | number;
|
|
257
|
+
/** Derive a fixed image-column width from the matching 1, 2, or 3 track cell geometry. Ignored when size is set. */
|
|
258
|
+
imageTracks?: TableCellImageTracks;
|
|
254
259
|
/** Minimum accepted preferred width in CSS pixels. */
|
|
255
260
|
minSize?: number;
|
|
256
261
|
/** Maximum accepted preferred width in CSS pixels. */
|
|
@@ -340,6 +345,11 @@ export interface TableGroupCollapseChangeDetail {
|
|
|
340
345
|
export interface TableRowActivateDetail {
|
|
341
346
|
rowId: string;
|
|
342
347
|
}
|
|
348
|
+
/** Controlled show/hide and data-column order for the table-owned customizer. */
|
|
349
|
+
export interface TableColumnsConfigChangeDetail {
|
|
350
|
+
hiddenColumnIds: string[];
|
|
351
|
+
columnOrder: string[];
|
|
352
|
+
}
|
|
343
353
|
/** Controlled top-level pagination state. Rows or groups contain only the active page. */
|
|
344
354
|
export interface TablePaginationState extends PaginationState {
|
|
345
355
|
/** Change to request one fresh fitted-capacity snapshot for the current query shape. */
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { TableSavedView, TableSavedViewChangeDetail, TableSavedViewCreateDetail, TableSavedViewDiscardDetail, TableSavedViewRemoveDetail, TableSavedViewRenameDetail, TableSavedViewSaveDetail } from './table-saved-views-types';
|
|
3
|
+
export declare class TableSavedViews {
|
|
4
|
+
el: HTMLElement;
|
|
5
|
+
/** Application-owned custom saved views. Assign arrays through the JavaScript property. */
|
|
6
|
+
views: TableSavedView[];
|
|
7
|
+
/** ID of the controlled active view, including the default view ID. */
|
|
8
|
+
value: string;
|
|
9
|
+
/** Whether the current table state differs from the selected view. */
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
/** ID used for the built-in default view. */
|
|
12
|
+
defaultViewId: string;
|
|
13
|
+
/** Label used for the built-in default view. */
|
|
14
|
+
defaultViewLabel: string;
|
|
15
|
+
/** Accessible name for the saved-views select. */
|
|
16
|
+
label: string;
|
|
17
|
+
/** Trigger label shown while the default view is selected. */
|
|
18
|
+
triggerLabel: string;
|
|
19
|
+
/** Footer action label that opens the create-view dialog. */
|
|
20
|
+
createLabel: string;
|
|
21
|
+
/** Emitted when a view selection is requested. */
|
|
22
|
+
dsViewChange: EventEmitter<TableSavedViewChangeDetail>;
|
|
23
|
+
/** Emitted after a valid create-view name is submitted. */
|
|
24
|
+
dsViewCreate: EventEmitter<TableSavedViewCreateDetail>;
|
|
25
|
+
/** Emitted after a valid renamed view name is submitted. */
|
|
26
|
+
dsViewRename: EventEmitter<TableSavedViewRenameDetail>;
|
|
27
|
+
/** Emitted when a custom view removal is requested. */
|
|
28
|
+
dsViewRemove: EventEmitter<TableSavedViewRemoveDetail>;
|
|
29
|
+
/** Emitted when changes to the active custom view should replace its stored payload. */
|
|
30
|
+
dsViewSave: EventEmitter<TableSavedViewSaveDetail>;
|
|
31
|
+
/** Emitted when the active custom view's stored payload should be restored. */
|
|
32
|
+
dsViewDiscard: EventEmitter<TableSavedViewDiscardDetail>;
|
|
33
|
+
private actionViewId;
|
|
34
|
+
private actionAnchorId;
|
|
35
|
+
private actionMenuOpen;
|
|
36
|
+
private actionMenuInitialFocusVisible;
|
|
37
|
+
private dialogOpen;
|
|
38
|
+
private dialogMode;
|
|
39
|
+
private dialogViewId;
|
|
40
|
+
private nameDraft;
|
|
41
|
+
private nameError;
|
|
42
|
+
private readonly componentId;
|
|
43
|
+
private readonly selectId;
|
|
44
|
+
private readonly actionMenuId;
|
|
45
|
+
private readonly fieldId;
|
|
46
|
+
private readonly inputId;
|
|
47
|
+
private readonly actionItems;
|
|
48
|
+
private get selectedCustomView();
|
|
49
|
+
private get dialogView();
|
|
50
|
+
private get sections();
|
|
51
|
+
private handleViewChange;
|
|
52
|
+
private handleSubtextAction;
|
|
53
|
+
private handleOptionAction;
|
|
54
|
+
private handleActionSelect;
|
|
55
|
+
private openDialog;
|
|
56
|
+
private validateName;
|
|
57
|
+
private submitDialog;
|
|
58
|
+
private finishDialogClose;
|
|
59
|
+
render(): any;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=TableSavedViews.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface TableSavedView {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TableSavedViewChangeDetail {
|
|
6
|
+
viewId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TableSavedViewCreateDetail {
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TableSavedViewRenameDetail {
|
|
12
|
+
viewId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TableSavedViewRemoveDetail {
|
|
16
|
+
viewId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TableSavedViewSaveDetail {
|
|
19
|
+
viewId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface TableSavedViewDiscardDetail {
|
|
22
|
+
viewId: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=table-saved-views-types.d.ts.map
|