@gears-frontx/ui-kit 0.4.5 → 0.4.6
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/chunks/actions.iasfkjWq.css +1 -0
- package/dist/chunks/create-column-auto-size.js +62 -0
- package/dist/chunks/create-column-auto-size.js.map +1 -0
- package/dist/chunks/data-grid-record-context.js +13 -0
- package/dist/chunks/data-grid-record-context.js.map +1 -0
- package/dist/chunks/data-grid.-6P4UQGJ.css +1 -0
- package/dist/chunks/hooked.js +27 -35
- package/dist/chunks/hooked.js.map +1 -1
- package/dist/chunks/ignore-row-click.js +5 -0
- package/dist/chunks/ignore-row-click.js.map +1 -0
- package/dist/chunks/messages.js +19 -3
- package/dist/chunks/messages.js.map +1 -1
- package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +1 -0
- package/dist/chunks/resolve-body-cell-props.js +140 -0
- package/dist/chunks/resolve-body-cell-props.js.map +1 -0
- package/dist/chunks/row-actions.BprAXgu2.css +1 -0
- package/dist/chunks/row-click.DAYTmSBO.css +1 -0
- package/dist/chunks/row-number.C7fNu9Bw.css +1 -0
- package/dist/chunks/row-select.BjKdiMf5.css +1 -0
- package/dist/chunks/table-configuration.a6C_fp7B.css +1 -0
- package/dist/chunks/table-context.js +8 -0
- package/dist/chunks/table-context.js.map +1 -0
- package/dist/chunks/table-types.js +11 -0
- package/dist/chunks/table-types.js.map +1 -0
- package/dist/chunks/table.Dmz7LEk7.css +1 -0
- package/dist/components/data-grid/messages.d.ts +16 -0
- package/dist/components/data-grid/messages.d.ts.map +1 -1
- package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts +4 -0
- package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions/actions-types.d.ts +11 -0
- package/dist/components/data-grid/plugins/actions/actions-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts +25 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-actions/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts +6 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts +24 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts +8 -0
- package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-click/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts +14 -0
- package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts +9 -0
- package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-number/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts +4 -0
- package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts +6 -0
- package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts +2 -0
- package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts +5 -0
- package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts +113 -0
- package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts +10 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts +10 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts +8 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts +3 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts +3 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/table-configuration/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts +5 -0
- package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts.map +1 -1
- package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts +2 -0
- package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/table-sticky.d.ts +16 -0
- package/dist/components/data-grid/services/table/table-sticky.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +20 -3
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/data-grid/actions-menu.d.ts +1 -0
- package/dist/data-grid/actions-menu.js +57 -0
- package/dist/data-grid/actions-menu.js.map +1 -0
- package/dist/data-grid/actions.d.ts +1 -0
- package/dist/data-grid/actions.js +36 -0
- package/dist/data-grid/actions.js.map +1 -0
- package/dist/data-grid/filters.js +24 -23
- package/dist/data-grid/filters.js.map +1 -1
- package/dist/data-grid/row-actions.d.ts +1 -0
- package/dist/data-grid/row-actions.js +52 -0
- package/dist/data-grid/row-actions.js.map +1 -0
- package/dist/data-grid/row-click.d.ts +1 -0
- package/dist/data-grid/row-click.js +69 -0
- package/dist/data-grid/row-click.js.map +1 -0
- package/dist/data-grid/row-number.d.ts +1 -0
- package/dist/data-grid/row-number.js +38 -0
- package/dist/data-grid/row-number.js.map +1 -0
- package/dist/data-grid/row-select.d.ts +1 -0
- package/dist/data-grid/row-select.js +293 -0
- package/dist/data-grid/row-select.js.map +1 -0
- package/dist/data-grid/table-configuration.d.ts +1 -0
- package/dist/data-grid/table-configuration.js +165 -0
- package/dist/data-grid/table-configuration.js.map +1 -0
- package/dist/data-grid.js +853 -921
- package/dist/data-grid.js.map +1 -1
- package/dist/docs/data-grid.md +336 -9
- package/dist/docs/table.md +57 -2
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +397 -382
- package/dist/index.js.map +1 -1
- package/dist/table.js +114 -112
- package/dist/table.js.map +1 -1
- package/llms.txt +9 -7
- package/package.json +1 -1
- package/dist/chunks/data-grid.DYrZEU-F.css +0 -1
- package/dist/chunks/table.CMm41tvy.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tableContainer_16yux_8{position:relative;width:100%;overflow:auto}._tableContainer_16yux_8:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._tableContainer_16yux_8:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._table_16yux_8{width:100%;border-collapse:collapse;caption-side:bottom;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking)}._stickyHeader_16yux_79{border-collapse:separate;border-spacing:0}:where(._stickyHeader_16yux_79) ._tableHeader_16yux_91 ._tableHead_16yux_70{position:sticky;top:0;z-index:2;background-color:var(--table-header-fill, var(--card))}._tableRow_16yux_59{--_table-row-fill: transparent;background-color:var(--_table-row-fill);transition:color .15s ease,background-color .15s ease}._tableBody_16yux_147:last-child ._tableRow_16yux_59:last-child>*{border-bottom:0}._tableBody_16yux_147 ._tableRow_16yux_59:hover,._tableBody_16yux_147 ._tableRow_16yux_59:has([aria-expanded=true]){--_table-row-fill: var(--card-hover)}._tableBody_16yux_147 ._tableRow_16yux_59[data-state=selected]{--_table-row-fill: var(--selection-subtle)}._tableBody_16yux_147 ._tableRow_16yux_59[data-state=stale]{--_table-row-fill: var(--warning-soft)}._tableBody_16yux_147 ._tableRow_16yux_59[data-state=restricted]{--_table-row-fill: var(--danger-soft)}._tableHead_16yux_70{box-sizing:border-box;position:relative;height:var(--control-height-md);padding:0 var(--space-4);border-bottom:var(--border-width) solid var(--border);text-align:start;vertical-align:middle;font-family:var(--font-mono);font-size:var(--text-mono-size);line-height:var(--text-mono-line-height);font-weight:var(--text-mono-weight);letter-spacing:var(--text-mono-tracking);text-transform:uppercase;white-space:nowrap;color:var(--subtle-foreground)}._tableHead_16yux_70:has([role=checkbox]){padding-inline-end:0}._columnResizer_16yux_279{position:absolute;top:0;bottom:0;z-index:1;padding:0;border:0;background:none;cursor:col-resize;touch-action:none;outline:none}._columnResizer_16yux_279:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:var(--border-width);translate:-50% 0;background-color:var(--border);transition:width var(--duration-micro) var(--ease-standard),background-color var(--duration-micro) var(--ease-standard)}._columnResizer_16yux_279:hover:after,._columnResizer_16yux_279:focus-visible:after,._columnResizer_16yux_279:active:after{width:var(--border-width-focus);background-color:var(--primary)}@media(forced-colors:active){._columnResizer_16yux_279:focus-visible:after{background-color:Highlight}}._tableCell_16yux_127{box-sizing:border-box;padding:var(--space-3) var(--space-4);height:var(--control-height-lg);border-bottom:var(--border-width) solid var(--border);vertical-align:middle;white-space:nowrap}._tableCell_16yux_127:has([role=checkbox]){padding-inline-end:0}._pinned_16yux_397{position:sticky;z-index:1;background-color:var(--table-pinned-fill, var(--card));background-image:linear-gradient(var(--_table-row-fill, transparent),var(--_table-row-fill, transparent))}._tableHead_16yux_70._pinned_16yux_397{z-index:2}:where(._stickyHeader_16yux_79) ._tableHeader_16yux_91 ._tableHead_16yux_70._pinned_16yux_397{z-index:3}._variantCollection_16yux_94 ._tableHead_16yux_70._pinned_16yux_397{z-index:3}._variantCollection_16yux_94{table-layout:fixed;min-width:960px}._variantCollection_16yux_94 ._tableHead_16yux_70{position:sticky;top:0;z-index:2;height:var(--control-height-lg);padding:0 var(--space-3);background-color:var(--card);color:var(--muted-foreground);line-height:16px}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59{height:4rem}._variantCollection_16yux_94 ._tableCell_16yux_127{height:auto;padding:var(--space-3) var(--space-2);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);white-space:normal}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--border-width-focus) var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible>._pinned_16yux_397:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border-block:var(--border-width-focus) solid var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible>._pinned_16yux_397:first-child:after{border-inline-start:var(--border-width-focus) solid var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible>._pinned_16yux_397:last-child:after{border-inline-end:var(--border-width-focus) solid var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59[tabindex]{cursor:pointer;transition:background-color var(--duration-micro) var(--ease-standard)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59[data-pending]{--_table-row-fill: var(--muted);cursor:progress}._densityCompact_16yux_531 ._tableHead_16yux_70{height:var(--control-height-sm)}._densityCompact_16yux_531 ._tableCell_16yux_127{padding-block:var(--space-2);height:auto}._tableCaption_16yux_540{margin-top:var(--space-4);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--muted-foreground)}._tableFooter_16yux_562{font-weight:var(--text-label-weight)}._tableFooter_16yux_562 ._tableRow_16yux_59{--_table-row-fill: var(--muted)}._tableFooter_16yux_562 ._tableRow_16yux_59:last-child>*{border-bottom:0}
|
|
@@ -27,6 +27,22 @@ export declare const messages: {
|
|
|
27
27
|
ascDate: string;
|
|
28
28
|
descDate: string;
|
|
29
29
|
};
|
|
30
|
+
actionsMenu: {
|
|
31
|
+
actions: string;
|
|
32
|
+
};
|
|
33
|
+
tableConfiguration: {
|
|
34
|
+
header: string;
|
|
35
|
+
configureColumns: string;
|
|
36
|
+
pinColumn: string;
|
|
37
|
+
unpinColumn: string;
|
|
38
|
+
};
|
|
39
|
+
rowSelect: {
|
|
40
|
+
itemsSelected: (count: number) => string;
|
|
41
|
+
pageSelected: (count: number) => string;
|
|
42
|
+
selectAll: (count: number) => string;
|
|
43
|
+
allSelected: (count: number) => string;
|
|
44
|
+
clearSelection: string;
|
|
45
|
+
};
|
|
30
46
|
pagination: {
|
|
31
47
|
ariaLabel: string;
|
|
32
48
|
limitSelectorAriaLabel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/messages.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;qCAqBY,MAAM
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/messages.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;qCAqBY,MAAM;;;;;;;;;;;;;;;;;;+BAkBZ,MAAM;8BACP,MAAM;2BAET,MAAM;6BACJ,MAAM;;;;;;;;yBASV,MAAM;yBACN,MAAM,cAAc,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;;CAkB7D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridActionsPluginApi, DataGridActionsPluginProps } from './actions-types';
|
|
2
|
+
export type { DataGridActionsPluginApi, DataGridActionsPluginProps };
|
|
3
|
+
export declare const DataGridActionsPlugin: import('react').NamedExoticComponent<DataGridActionsPluginProps>;
|
|
4
|
+
//# sourceMappingURL=actions-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions/actions-plugin.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAG5F,YAAY,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,CAAC;AAOrE,eAAO,MAAM,qBAAqB,kEAiChC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { DataGridPluginApi } from '../../services/plugins/plugins-helpers';
|
|
3
|
+
export interface DataGridActionsPluginProps extends Record<string, unknown> {
|
|
4
|
+
component: ComponentType;
|
|
5
|
+
props?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface DataGridActionsPluginApi extends DataGridPluginApi<DataGridActionsPluginProps> {
|
|
8
|
+
useComponent: () => ComponentType | null;
|
|
9
|
+
useProps: () => Record<string, unknown> | undefined;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=actions-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions/actions-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,WAAW,0BAA2B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzE,SAAS,EAAE,aAAa,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,CAAC,0BAA0B,CAAC;IAC7F,YAAY,EAAE,MAAM,aAAa,GAAG,IAAI,CAAC;IACzC,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CACrD"}
|
package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-actions-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.tsx"],"names":[],"mappings":";AAIA,wBAAgB,sBAAsB,uCAiBrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-menu-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions-menu/actions-menu-plugin.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAIV,8BAA8B,EAC/B,MAAM,sBAAsB,CAAC;AAO9B,eAAO,MAAM,yBAAyB,sEA4CpC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { DataGridPluginApi } from '../../services/plugins/plugins-helpers';
|
|
3
|
+
export interface DataGridActionsMenuItemOption<Params extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
|
+
order?: number;
|
|
5
|
+
component: ComponentType<{
|
|
6
|
+
params?: Params;
|
|
7
|
+
}>;
|
|
8
|
+
params?: Params;
|
|
9
|
+
}
|
|
10
|
+
export interface DataGridActionsMenuItem {
|
|
11
|
+
id: string;
|
|
12
|
+
order: number;
|
|
13
|
+
component: ComponentType<{
|
|
14
|
+
params?: Record<string, unknown>;
|
|
15
|
+
}>;
|
|
16
|
+
params?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
export interface DataGridActionsMenuPluginApi extends DataGridPluginApi<DataGridActionsMenuPluginProps> {
|
|
19
|
+
registerMenuItem: (item: DataGridActionsMenuItemOption) => void;
|
|
20
|
+
useMenuItems: () => DataGridActionsMenuItem[];
|
|
21
|
+
}
|
|
22
|
+
export interface DataGridActionsMenuPluginProps extends Record<string, unknown> {
|
|
23
|
+
menuItems: DataGridActionsMenuItemOption[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=actions-menu-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-menu-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions-menu/actions-menu-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,WAAW,6BAA6B,CAC5C,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEhE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,aAAa,CAAC;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB,CAAC,8BAA8B,CAAC;IACrG,gBAAgB,EAAE,CAAC,IAAI,EAAE,6BAA6B,KAAK,IAAI,CAAC;IAChE,YAAY,EAAE,MAAM,uBAAuB,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,8BAA+B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7E,SAAS,EAAE,6BAA6B,EAAE,CAAC;CAC5C"}
|
package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-actions-menu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.tsx"],"names":[],"mappings":";AAYA,wBAAgB,mBAAmB,gCAwBlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions-menu/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,YAAY,EACV,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC"}
|
package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-actions-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.tsx"],"names":[],"mappings":";AAOA,wBAAgB,sBAAsB,uCAuBrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-actions/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EACV,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridRowActionsPluginApi, DataGridRowActionsPluginProps } from './row-actions-types';
|
|
4
|
+
export type { DataGridRowActionsPluginApi, DataGridRowActionsPluginProps };
|
|
5
|
+
export declare const DataGridRowActionsPlugin: <TItem extends DataGridItem = DataGridItem>(props: DataGridRowActionsPluginProps<TItem>) => ReactNode;
|
|
6
|
+
//# sourceMappingURL=row-actions-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-actions-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-actions/row-actions-plugin.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAI1D,OAAO,KAAK,EACV,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,CAAC;AA6D3E,eAAO,MAAM,wBAAwB,qDAG5B,8BAA8B,KAAK,CAAC,KACxC,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridPluginApi } from '../../services/plugins/plugins-helpers';
|
|
4
|
+
export interface DataGridRowActionsPluginProps<TItem extends DataGridItem = DataGridItem> extends Record<string, unknown> {
|
|
5
|
+
component: ComponentType<{
|
|
6
|
+
item: TItem;
|
|
7
|
+
}>;
|
|
8
|
+
order?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Pins the actions column to the table's inline-end edge, so the row menu stays reachable on a
|
|
12
|
+
* table wide enough to scroll sideways instead of sitting past that edge.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
sticky?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface DataGridRowActionsPluginApi<TItem extends DataGridItem = DataGridItem> extends DataGridPluginApi<DataGridRowActionsPluginProps<TItem>> {
|
|
18
|
+
useComponent: () => ComponentType<{
|
|
19
|
+
item: TItem;
|
|
20
|
+
}> | null;
|
|
21
|
+
useClassName: () => string | undefined;
|
|
22
|
+
measureRef: (element: HTMLElement | null) => void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=row-actions-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-actions-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-actions/row-actions-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,WAAW,6BAA6B,CAC5C,KAAK,SAAS,YAAY,GAAG,YAAY,CACzC,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B,CAC1C,KAAK,SAAS,YAAY,GAAG,YAAY,CACzC,SAAQ,iBAAiB,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC;IAC/D,YAAY,EAAE,MAAM,aAAa,CAAC;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAC1D,YAAY,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACvC,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridRecord } from '../../../services/storage/storage-types';
|
|
3
|
+
interface DataGridRowClickProps<TItem extends DataGridItem> {
|
|
4
|
+
record: DataGridRecord<TItem>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridRowClick<TItem extends DataGridItem>({ record, }: DataGridRowClickProps<TItem>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-row-click.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-click.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-click/components/data-grid-row-click.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAU9E,UAAU,qBAAqB,CAAC,KAAK,SAAS,YAAY;IACxD,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CAC/B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC3D,MAAM,GACP,EAAE,qBAAqB,CAAC,KAAK,CAAC,+BAiD9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-click/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridPluginApi } from '../../services/plugins/plugins-helpers';
|
|
4
|
+
export type DataGridRowClickCallback<Item extends DataGridItem = DataGridItem> = (item: Item) => void;
|
|
5
|
+
export interface DataGridRowClickPluginProps<Item extends DataGridItem = DataGridItem> extends Record<string, unknown> {
|
|
6
|
+
click?: DataGridRowClickCallback<Item>;
|
|
7
|
+
dblclick?: DataGridRowClickCallback<Item>;
|
|
8
|
+
}
|
|
9
|
+
export interface DataGridRowClickPluginApi<Item extends DataGridItem = DataGridItem> extends DataGridPluginApi<DataGridRowClickPluginProps<Item>> {
|
|
10
|
+
click?: DataGridRowClickCallback<Item>;
|
|
11
|
+
dblclick?: DataGridRowClickCallback<Item>;
|
|
12
|
+
}
|
|
13
|
+
export declare const DataGridRowClickPlugin: <TItem extends DataGridItem = DataGridItem>(props: DataGridRowClickPluginProps<TItem>) => ReactNode;
|
|
14
|
+
//# sourceMappingURL=row-click-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-click-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-click/row-click-plugin.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAGhF,MAAM,MAAM,wBAAwB,CAAC,IAAI,SAAS,YAAY,GAAG,YAAY,IAAI,CAC/E,IAAI,EAAE,IAAI,KACP,IAAI,CAAC;AAEV,MAAM,WAAW,2BAA2B,CAC1C,IAAI,SAAS,YAAY,GAAG,YAAY,CACxC,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/B,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,yBAAyB,CACxC,IAAI,SAAS,YAAY,GAAG,YAAY,CACxC,SAAQ,iBAAiB,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAC5D,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAuBD,eAAO,MAAM,sBAAsB,qDAG1B,4BAA4B,KAAK,CAAC,KACtC,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KeyboardEvent, MouseEvent } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridRowClickCallback } from './row-click-plugin';
|
|
4
|
+
/**
|
|
5
|
+
* Accepts a getter so the callback is read at event time from the mutable plugin API,
|
|
6
|
+
* avoiding stale closures when onPropsChange updates the API without re-rendering the row.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getClickListener<TItem extends DataGridItem>(item: TItem, getCb: () => DataGridRowClickCallback<TItem> | undefined): (event: MouseEvent | KeyboardEvent) => void;
|
|
9
|
+
//# sourceMappingURL=row-click-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-click-utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-click/row-click-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAInE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,YAAY,EACzD,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,MAAM,wBAAwB,CAAC,KAAK,CAAC,GAAG,SAAS,WAEzC,UAAU,GAAG,aAAa,UAU1C"}
|
package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-number-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.tsx"],"names":[],"mappings":";AAMA,wBAAgB,qBAAqB,gCAepC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-number/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-number-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-number/row-number-plugin.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAKrE,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C,eAAO,MAAM,uBAAuB,2DA0BnC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DataGridPluginApi } from '../../services/plugins/plugins-helpers';
|
|
2
|
+
export interface DataGridRowNumberPluginApi extends DataGridPluginApi {
|
|
3
|
+
columnId: string;
|
|
4
|
+
measureRef: (element: HTMLElement | null) => void;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=row-number-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-number-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-number/row-number-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-number-formula.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-number/services/row-number-formula.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnF"}
|
package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-select-banner.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.tsx"],"names":[],"mappings":";AAOA,wBAAgB,uBAAuB,uCA4CtC"}
|
package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-select-body.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-select/components/data-grid-row-select-body.tsx"],"names":[],"mappings":";AAMA,wBAAgB,qBAAqB,uCAepC"}
|
package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-select-header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-select/components/data-grid-row-select-header.tsx"],"names":[],"mappings":";AAIA,wBAAgB,uBAAuB,uCAkBtC"}
|
package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row-select-top.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/row-select/components/data-grid-row-select-top.tsx"],"names":[],"mappings":";AAMA,wBAAgB,oBAAoB,uCA+BnC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DataGridRowSelectPlugin } from './row-select-plugin.js';
|
|
2
|
+
export type { DataGridRowSelectPluginApi, DataGridRowSelectPluginProps, DataGridRowSelectMode, DataGridRowSelectDescriptor, DataGridRowSelectChangeMeta, } from './row-select-types.js';
|
|
3
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-select/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridRowSelectPluginProps } from './row-select-types';
|
|
4
|
+
export declare const DataGridRowSelectPlugin: <TItem extends DataGridItem = DataGridItem>(props: DataGridRowSelectPluginProps<TItem>) => ReactNode;
|
|
5
|
+
//# sourceMappingURL=row-select-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-select-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-select/row-select-plugin.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,OAAO,KAAK,EAKV,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAyX5B,eAAO,MAAM,uBAAuB,qDAG3B,6BAA6B,KAAK,CAAC,KACvC,SAAS,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridItemId } from '../../services/storage/storage-types';
|
|
4
|
+
/** A consumer component rendered into the row-select action bar, given the plugin API. */
|
|
5
|
+
type RowSelectSlotComponent<TItem extends DataGridItem = DataGridItem> = ComponentType<{
|
|
6
|
+
rowSelect: DataGridRowSelectPluginApi<TItem>;
|
|
7
|
+
}>;
|
|
8
|
+
/** Effective selection state of the row-select plugin. */
|
|
9
|
+
export type DataGridRowSelectMode = 'none' | 'page' | 'all';
|
|
10
|
+
/**
|
|
11
|
+
* Describes what a bulk action should operate on.
|
|
12
|
+
*
|
|
13
|
+
* In `'all-matching'` mode the consumer sends its active filter/query plus a
|
|
14
|
+
* "select all matching" flag — never a materialised id list.
|
|
15
|
+
*/
|
|
16
|
+
export type DataGridRowSelectDescriptor = {
|
|
17
|
+
mode: 'ids';
|
|
18
|
+
ids: DataGridItemId[];
|
|
19
|
+
} | {
|
|
20
|
+
mode: 'all-matching';
|
|
21
|
+
};
|
|
22
|
+
/** Metadata passed alongside the selected items to `onSelectionChange`. */
|
|
23
|
+
export interface DataGridRowSelectChangeMeta {
|
|
24
|
+
/** The current selection mode. */
|
|
25
|
+
mode: DataGridRowSelectMode;
|
|
26
|
+
/** Effective count: total matching when `mode` is `'all'`, else selected-id count. */
|
|
27
|
+
count: number;
|
|
28
|
+
}
|
|
29
|
+
export interface DataGridRowSelectPluginProps<TItem extends DataGridItem = DataGridItem> extends Record<string, unknown> {
|
|
30
|
+
/** Custom component rendered in the action bar when rows are selected. */
|
|
31
|
+
component?: RowSelectSlotComponent<TItem>;
|
|
32
|
+
/**
|
|
33
|
+
* Custom component that replaces the default "N items selected" indicator in
|
|
34
|
+
* the action bar. Receives the plugin API so it can derive its own content
|
|
35
|
+
* from the selection (e.g. computed capacities). When omitted the default
|
|
36
|
+
* localized count is shown.
|
|
37
|
+
*/
|
|
38
|
+
statusComponent?: RowSelectSlotComponent<TItem>;
|
|
39
|
+
/** Called whenever the set of selected items changes. */
|
|
40
|
+
onSelectionChange?: (selectedItems: TItem[], meta: DataGridRowSelectChangeMeta) => void;
|
|
41
|
+
/** Allows selecting multiple rows simultaneously. Defaults to `true`. */
|
|
42
|
+
multiple?: boolean;
|
|
43
|
+
/** Predicate to hide the checkbox for specific rows. */
|
|
44
|
+
visible?: (item: TItem) => boolean;
|
|
45
|
+
/** Whether to show the per-page select-all checkbox in the header. Defaults to `true`. */
|
|
46
|
+
showSelectAll?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Opt in to the "Select all N" banner and all-matching mode. Defaults to
|
|
49
|
+
* `false` — enable it only once the consumer handles the all-matching scope
|
|
50
|
+
* via the `meta` argument of `onSelectionChange` or `getSelectionDescriptor()`
|
|
51
|
+
* (in all-matching mode `selectedItems` only holds the current page). Also
|
|
52
|
+
* requires an action `component` and a load result whose `total` exceeds the
|
|
53
|
+
* number of rows on the current page.
|
|
54
|
+
*/
|
|
55
|
+
showSelectAllMatching?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* When true, explicitly selected rows stay selected even when they are not
|
|
58
|
+
* visible (filtered out, searched away, or on a different page) instead of
|
|
59
|
+
* being pruned to the current page. `onSelectionChange` then reports every
|
|
60
|
+
* selected item across pages, and the header select-all/indeterminate state
|
|
61
|
+
* reflects the current page only. Defaults to `false`.
|
|
62
|
+
*
|
|
63
|
+
* Mutually exclusive in spirit with `showSelectAllMatching`: this keeps a
|
|
64
|
+
* hand-picked cross-page set, that offers a single "all matching" scope.
|
|
65
|
+
*/
|
|
66
|
+
keepHiddenSelection?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface RowSelectStore {
|
|
69
|
+
selectedIds: Set<DataGridItemId>;
|
|
70
|
+
/** Whether all-matching mode is active (every record matching the active filter). */
|
|
71
|
+
selectAllMatching: boolean;
|
|
72
|
+
/** Total matching count, mirrored from the load result's `total`. */
|
|
73
|
+
total: number;
|
|
74
|
+
}
|
|
75
|
+
export interface RowSelectConfigStore<TItem extends DataGridItem = DataGridItem> {
|
|
76
|
+
multiple: boolean;
|
|
77
|
+
showSelectAll: boolean;
|
|
78
|
+
showSelectAllMatching: boolean;
|
|
79
|
+
keepHiddenSelection: boolean;
|
|
80
|
+
visible: ((item: TItem) => boolean) | undefined;
|
|
81
|
+
onSelectionChange: ((selectedItems: TItem[], meta: DataGridRowSelectChangeMeta) => void) | undefined;
|
|
82
|
+
component: RowSelectSlotComponent<TItem> | undefined;
|
|
83
|
+
statusComponent: RowSelectSlotComponent<TItem> | undefined;
|
|
84
|
+
}
|
|
85
|
+
export interface DataGridRowSelectPluginApi<TItem extends DataGridItem = DataGridItem> {
|
|
86
|
+
useSelectedIds: () => Set<DataGridItemId>;
|
|
87
|
+
useIsSelected: (itemId: DataGridItemId) => boolean;
|
|
88
|
+
useMultiple: () => boolean;
|
|
89
|
+
useShowSelectAll: () => boolean;
|
|
90
|
+
useShowSelectAllMatching: () => boolean;
|
|
91
|
+
useComponent: () => RowSelectSlotComponent<TItem> | undefined;
|
|
92
|
+
useStatusComponent: () => RowSelectSlotComponent<TItem> | undefined;
|
|
93
|
+
useIsAllSelected: () => boolean;
|
|
94
|
+
useIsPartialSelected: () => boolean;
|
|
95
|
+
useIsVisible: (item: TItem) => boolean;
|
|
96
|
+
useIsSelectAllMatching: () => boolean;
|
|
97
|
+
useSelectionMode: () => DataGridRowSelectMode;
|
|
98
|
+
useSelectionCount: () => number;
|
|
99
|
+
useTotalCount: () => number;
|
|
100
|
+
/** Number of selectable (visible-predicate-passing) records on the current page. */
|
|
101
|
+
useSelectableCount: () => number;
|
|
102
|
+
/** Number of records loaded on the current page (ignores the `visible` predicate). */
|
|
103
|
+
useVisibleCount: () => number;
|
|
104
|
+
toggleSelection: (itemId: DataGridItemId) => void;
|
|
105
|
+
clearSelection: () => void;
|
|
106
|
+
toggleSelectAll: (value: boolean) => void;
|
|
107
|
+
/** Enter all-matching mode (records intent; performs no id enumeration). */
|
|
108
|
+
selectAllMatching: () => void;
|
|
109
|
+
/** Describe what a bulk action should target: explicit ids or the whole matching set. */
|
|
110
|
+
getSelectionDescriptor: () => DataGridRowSelectDescriptor;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
113
|
+
//# sourceMappingURL=row-select-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-select-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/row-select/row-select-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConfigurationGroup } from '../../../services/table/table-types';
|
|
2
|
+
interface DataGridTableConfigurationGroupItemProps {
|
|
3
|
+
group: ConfigurationGroup;
|
|
4
|
+
hasSticky?: boolean;
|
|
5
|
+
onVisibilityToggle: (columnId: string, visible: boolean) => void;
|
|
6
|
+
onStickyToggle: (id: string, sticky: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DataGridTableConfigurationGroupItem({ group, hasSticky, onVisibilityToggle, onStickyToggle, }: DataGridTableConfigurationGroupItemProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=data-grid-table-configuration-group-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-configuration-group-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAK9E,UAAU,wCAAwC;IAChD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,mCAAmC,CAAC,EAClD,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,cAAc,GACf,EAAE,wCAAwC,+BAyB1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConfigurationColumn } from '../../../services/table/table-types';
|
|
2
|
+
interface DataGridTableConfigurationItemProps {
|
|
3
|
+
column: ConfigurationColumn;
|
|
4
|
+
hasSticky?: boolean;
|
|
5
|
+
onVisibilityToggle: (columnId: string, visible: boolean) => void;
|
|
6
|
+
onStickyToggle: (columnId: string, sticky: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DataGridTableConfigurationItem({ column, hasSticky, onVisibilityToggle, onStickyToggle, }: DataGridTableConfigurationItemProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=data-grid-table-configuration-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-configuration-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI/E,UAAU,mCAAmC;IAC3C,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7D;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,MAAM,EACN,SAAS,EACT,kBAAkB,EAClB,cAAc,GACf,EAAE,mCAAmC,+BA2BrC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface DataGridTableConfigurationPinButtonProps {
|
|
3
|
+
sticky?: boolean;
|
|
4
|
+
onToggle: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridTableConfigurationPinButton({ sticky, onToggle, }: DataGridTableConfigurationPinButtonProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-table-configuration-pin-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-configuration-pin-button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.tsx"],"names":[],"mappings":";AAOA,UAAU,wCAAwC;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,mCAAmC,CAAC,EAClD,MAAM,EACN,QAAQ,GACT,EAAE,wCAAwC,+BAiB1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-configuration-trigger.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.tsx"],"names":[],"mappings":";AAQA,wBAAgB,iCAAiC,gCAkBhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-configuration.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.tsx"],"names":[],"mappings":";AAUA,wBAAgB,0BAA0B,gCA2CzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/table-configuration/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,YAAY,EAAE,qCAAqC,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** The plugin takes no props; the type is public so a consumer can name it. */
|
|
3
|
+
export type DataGridTableConfigurationPluginProps = Record<string, never>;
|
|
4
|
+
export declare const DataGridTableConfigurationPlugin: import('react').NamedExoticComponent<DataGridTableConfigurationPluginProps>;
|
|
5
|
+
//# sourceMappingURL=table-configuration-plugin.d.ts.map
|
package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-configuration-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/table-configuration/table-configuration-plugin.tsx"],"names":[],"mappings":";AAWA,+EAA+E;AAC/E,MAAM,MAAM,qCAAqC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1E,eAAO,MAAM,gCAAgC,6EAY3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-grid-layout-top.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/layout/components/data-grid-layout-top.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"data-grid-layout-top.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/layout/components/data-grid-layout-top.tsx"],"names":[],"mappings":";AAOA,wBAAgB,iBAAiB,uCA6ChC"}
|