@gears-frontx/ui-kit 0.4.0 → 0.4.2
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/NOTICE +1 -0
- package/README.md +2 -1
- package/dist/chunks/data-grid.DIkpRRaf.css +1 -0
- package/dist/chunks/deep-equal.js +15 -0
- package/dist/chunks/deep-equal.js.map +1 -0
- package/dist/chunks/messages.js +42 -0
- package/dist/chunks/messages.js.map +1 -0
- package/dist/chunks/order.D7Jg_Mg8.css +1 -0
- package/dist/chunks/page-header.72nfJNkg.css +1 -0
- package/dist/chunks/pagination.Cn8tIWMX.css +1 -0
- package/dist/chunks/plugins-helpers.js +41 -0
- package/dist/chunks/plugins-helpers.js.map +1 -0
- package/dist/chunks/segment.js +18 -0
- package/dist/chunks/segment.js.map +1 -0
- package/dist/chunks/text-search.BeZYac6V.css +1 -0
- package/dist/components/data-grid/components/data-grid-content.d.ts +3 -0
- package/dist/components/data-grid/components/data-grid-content.d.ts.map +1 -0
- package/dist/components/data-grid/components/data-grid-empty-state.d.ts +3 -0
- package/dist/components/data-grid/components/data-grid-empty-state.d.ts.map +1 -0
- package/dist/components/data-grid/components/data-grid-spinner.d.ts +16 -0
- package/dist/components/data-grid/components/data-grid-spinner.d.ts.map +1 -0
- package/dist/components/data-grid/components/load-controlled.d.ts +15 -0
- package/dist/components/data-grid/components/load-controlled.d.ts.map +1 -0
- package/dist/components/data-grid/components/segment.d.ts +15 -0
- package/dist/components/data-grid/components/segment.d.ts.map +1 -0
- package/dist/components/data-grid/create-data-grid.d.ts +4 -0
- package/dist/components/data-grid/create-data-grid.d.ts.map +1 -0
- package/dist/components/data-grid/data-grid-types.d.ts +142 -0
- package/dist/components/data-grid/data-grid-types.d.ts.map +1 -0
- package/dist/components/data-grid/data-grid.d.ts +3 -0
- package/dist/components/data-grid/data-grid.d.ts.map +1 -0
- package/dist/components/data-grid/messages.d.ts +39 -0
- package/dist/components/data-grid/messages.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/empty-state/empty-state-plugin.d.ts +5 -0
- package/dist/components/data-grid/plugins/empty-state/empty-state-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/empty-state/empty-state-types.d.ts +14 -0
- package/dist/components/data-grid/plugins/empty-state/empty-state-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/empty-state/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/empty-state/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/components/data-grid-order-button.d.ts +3 -0
- package/dist/components/data-grid/plugins/order/components/data-grid-order-button.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.d.ts +8 -0
- package/dist/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/components/data-grid-order-icon.d.ts +7 -0
- package/dist/components/data-grid/plugins/order/components/data-grid-order-icon.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/order-plugin.d.ts +4 -0
- package/dist/components/data-grid/plugins/order/order-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/order-types.d.ts +66 -0
- package/dist/components/data-grid/plugins/order/order-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/public.d.ts +5 -0
- package/dist/components/data-grid/plugins/order/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/services/order-labels.d.ts +8 -0
- package/dist/components/data-grid/plugins/order/services/order-labels.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/order/services/order-option.d.ts +3 -0
- package/dist/components/data-grid/plugins/order/services/order-option.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/pagination/components/data-grid-pagination.d.ts +3 -0
- package/dist/components/data-grid/plugins/pagination/components/data-grid-pagination.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/pagination/components/pager.d.ts +22 -0
- package/dist/components/data-grid/plugins/pagination/components/pager.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/pagination/pagination-plugin.d.ts +31 -0
- package/dist/components/data-grid/plugins/pagination/pagination-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/pagination/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/pagination/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/pagination/services/pagination-items.d.ts +14 -0
- package/dist/components/data-grid/plugins/pagination/services/pagination-items.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/text-search/components/data-grid-text-search.d.ts +3 -0
- package/dist/components/data-grid/plugins/text-search/components/data-grid-text-search.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/text-search/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/text-search/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/text-search/text-search-plugin.d.ts +38 -0
- package/dist/components/data-grid/plugins/text-search/text-search-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/public.d.ts +12 -0
- package/dist/components/data-grid/public.d.ts.map +1 -0
- package/dist/components/data-grid/services/columns/create-column-auto-size.d.ts +7 -0
- package/dist/components/data-grid/services/columns/create-column-auto-size.d.ts.map +1 -0
- package/dist/components/data-grid/services/core/core-service.d.ts +3 -0
- package/dist/components/data-grid/services/core/core-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/core/core-types.d.ts +28 -0
- package/dist/components/data-grid/services/core/core-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/core/data-grid-context.d.ts +17 -0
- package/dist/components/data-grid/services/core/data-grid-context.d.ts.map +1 -0
- package/dist/components/data-grid/services/hooked/hooked-types.d.ts +34 -0
- package/dist/components/data-grid/services/hooked/hooked-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/hooked/hooked.d.ts +4 -0
- package/dist/components/data-grid/services/hooked/hooked.d.ts.map +1 -0
- package/dist/components/data-grid/services/internal/internal-helpers.d.ts +2 -0
- package/dist/components/data-grid/services/internal/internal-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-content.d.ts +7 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-content.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-main-slot-selector.d.ts +4 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-main-slot-selector.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-main.d.ts +3 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-main.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-slot.d.ts +7 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-slot.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-top-default.d.ts +3 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-top-default.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts +3 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/data-grid-view.d.ts +16 -0
- package/dist/components/data-grid/services/layout/data-grid-view.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/layout-service.d.ts +4 -0
- package/dist/components/data-grid/services/layout/layout-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/layout-slot-ids.d.ts +3 -0
- package/dist/components/data-grid/services/layout/layout-slot-ids.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/layout-types.d.ts +74 -0
- package/dist/components/data-grid/services/layout/layout-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/load/load-instance.d.ts +4 -0
- package/dist/components/data-grid/services/load/load-instance.d.ts.map +1 -0
- package/dist/components/data-grid/services/load/load-service.d.ts +4 -0
- package/dist/components/data-grid/services/load/load-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/load/load-types.d.ts +76 -0
- package/dist/components/data-grid/services/load/load-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/load/use-data-grid-loading.d.ts +16 -0
- package/dist/components/data-grid/services/load/use-data-grid-loading.d.ts.map +1 -0
- package/dist/components/data-grid/services/persistent-state/persistent-state-service.d.ts +4 -0
- package/dist/components/data-grid/services/persistent-state/persistent-state-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/persistent-state/persistent-state-types.d.ts +36 -0
- package/dist/components/data-grid/services/persistent-state/persistent-state-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/plugins/plugins-helpers.d.ts +49 -0
- package/dist/components/data-grid/services/plugins/plugins-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/services/plugins/plugins-service.d.ts +4 -0
- package/dist/components/data-grid/services/plugins/plugins-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/plugins/plugins-types.d.ts +62 -0
- package/dist/components/data-grid/services/plugins/plugins-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/storage/storage-helpers.d.ts +4 -0
- package/dist/components/data-grid/services/storage/storage-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/services/storage/storage-service.d.ts +4 -0
- package/dist/components/data-grid/services/storage/storage-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/storage/storage-types.d.ts +93 -0
- package/dist/components/data-grid/services/storage/storage-types.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-body-cell-content.d.ts +9 -0
- package/dist/components/data-grid/services/table/components/data-grid-body-cell-content.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts +57 -0
- package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-content.d.ts +7 -0
- package/dist/components/data-grid/services/table/components/data-grid-content.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-extra-body-columns.d.ts +8 -0
- package/dist/components/data-grid/services/table/components/data-grid-extra-body-columns.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts +12 -0
- package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-extra-header-columns.d.ts +10 -0
- package/dist/components/data-grid/services/table/components/data-grid-extra-header-columns.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-cell-content.d.ts +7 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-cell-content.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-cell-label.d.ts +8 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-cell-label.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts +11 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts +10 -0
- package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-row.d.ts +8 -0
- package/dist/components/data-grid/services/table/components/data-grid-row.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-body.d.ts +3 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-body.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-header.d.ts +3 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-header.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-record.d.ts +8 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-record.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-records.d.ts +8 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-records.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-slot.d.ts +7 -0
- package/dist/components/data-grid/services/table/components/data-grid-table-slot.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-table.d.ts +3 -0
- package/dist/components/data-grid/services/table/components/data-grid-table.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/data-grid-record-context.d.ts +5 -0
- package/dist/components/data-grid/services/table/data-grid-record-context.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/ignore-row-click.d.ts +2 -0
- package/dist/components/data-grid/services/table/ignore-row-click.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/resolve-body-cell-props.d.ts +21 -0
- package/dist/components/data-grid/services/table/resolve-body-cell-props.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/resolve-column-style.d.ts +62 -0
- package/dist/components/data-grid/services/table/resolve-column-style.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-columns-persistence.d.ts +19 -0
- package/dist/components/data-grid/services/table/table-columns-persistence.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-columns.d.ts +15 -0
- package/dist/components/data-grid/services/table/table-columns.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-context.d.ts +4 -0
- package/dist/components/data-grid/services/table/table-context.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-extra-columns.d.ts +12 -0
- package/dist/components/data-grid/services/table/table-extra-columns.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-header.d.ts +11 -0
- package/dist/components/data-grid/services/table/table-header.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-helpers.d.ts +13 -0
- package/dist/components/data-grid/services/table/table-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-min-content-width.d.ts +36 -0
- package/dist/components/data-grid/services/table/table-min-content-width.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-service.d.ts +4 -0
- package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-slots.d.ts +9 -0
- package/dist/components/data-grid/services/table/table-slots.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-sticky.d.ts +35 -0
- package/dist/components/data-grid/services/table/table-sticky.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-store.d.ts +4 -0
- package/dist/components/data-grid/services/table/table-store.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/table-types.d.ts +239 -0
- package/dist/components/data-grid/services/table/table-types.d.ts.map +1 -0
- package/dist/components/data-grid/utils/debounce.d.ts +7 -0
- package/dist/components/data-grid/utils/debounce.d.ts.map +1 -0
- package/dist/components/data-grid/utils/deep-equal.d.ts +7 -0
- package/dist/components/data-grid/utils/deep-equal.d.ts.map +1 -0
- package/dist/components/data-grid/utils/hooked.d.ts +17 -0
- package/dist/components/data-grid/utils/hooked.d.ts.map +1 -0
- package/dist/components/data-grid/utils/is-record.d.ts +3 -0
- package/dist/components/data-grid/utils/is-record.d.ts.map +1 -0
- package/dist/components/data-grid/utils/load-state.d.ts +22 -0
- package/dist/components/data-grid/utils/load-state.d.ts.map +1 -0
- package/dist/components/data-grid/utils/use-latest.d.ts +4 -0
- package/dist/components/data-grid/utils/use-latest.d.ts.map +1 -0
- package/dist/components/page-header/page-header.d.ts +50 -0
- package/dist/components/page-header/page-header.d.ts.map +1 -0
- package/dist/components/page-header/public.d.ts +2 -0
- package/dist/components/page-header/public.d.ts.map +1 -0
- package/dist/data-grid/empty-state.d.ts +1 -0
- package/dist/data-grid/empty-state.js +27 -0
- package/dist/data-grid/empty-state.js.map +1 -0
- package/dist/data-grid/order.d.ts +1 -0
- package/dist/data-grid/order.js +254 -0
- package/dist/data-grid/order.js.map +1 -0
- package/dist/data-grid/pagination.d.ts +1 -0
- package/dist/data-grid/pagination.js +215 -0
- package/dist/data-grid/pagination.js.map +1 -0
- package/dist/data-grid/text-search.d.ts +1 -0
- package/dist/data-grid/text-search.js +112 -0
- package/dist/data-grid/text-search.js.map +1 -0
- package/dist/data-grid.d.ts +1 -0
- package/dist/data-grid.js +1650 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/docs/data-grid.md +588 -0
- package/dist/docs/page-header.md +266 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +408 -381
- package/dist/index.js.map +1 -1
- package/dist/page-header.d.ts +1 -0
- package/dist/page-header.js +88 -0
- package/dist/page-header.js.map +1 -0
- package/llms.txt +21 -3
- package/package.json +4 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridTableGroup } from '../table-types';
|
|
3
|
+
interface DataGridHeaderGroupProps<TItem extends DataGridItem> {
|
|
4
|
+
group: DataGridTableGroup<TItem>;
|
|
5
|
+
colspan?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function DataGridHeaderGroup<TItem extends DataGridItem>({ group, colspan, className, }: DataGridHeaderGroupProps<TItem>): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=data-grid-header-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-header-group.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-group.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKzD,UAAU,wBAAwB,CAAC,KAAK,SAAS,YAAY;IAC3D,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC9D,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BA+BjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridRecord } from '../../storage/storage-types';
|
|
3
|
+
interface DataGridRowProps<TItem extends DataGridItem> {
|
|
4
|
+
record: DataGridRecord<TItem>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridRow<TItem extends DataGridItem>({ record }: DataGridRowProps<TItem>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-row.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-row.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAQlE,UAAU,gBAAgB,CAAC,KAAK,SAAS,YAAY;IACnD,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CAC/B;AAED,wBAAgB,WAAW,CAAC,KAAK,SAAS,YAAY,EAAE,EAAE,MAAM,EAAE,EAAE,gBAAgB,CAAC,KAAK,CAAC,+BAgC1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-body.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-table-body.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,wBAAgB,iBAAiB,CAAC,KAAK,SAAS,YAAY,iCAa3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-table-header.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQ7D,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,iCAgF7D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridRecord } from '../../storage/storage-types';
|
|
3
|
+
interface DataGridTableRecordProps<TItem extends DataGridItem> {
|
|
4
|
+
record: DataGridRecord<TItem>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridTableRecord<TItem extends DataGridItem>({ record, }: DataGridTableRecordProps<TItem>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-table-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-record.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-table-record.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,wBAAwB,CAAC,KAAK,SAAS,YAAY;IAC3D,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC9D,MAAM,GACP,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAMjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridRecord } from '../../storage/storage-types';
|
|
3
|
+
interface DataGridTableRecordsProps<TItem extends DataGridItem> {
|
|
4
|
+
records: DataGridRecord<TItem>[];
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridTableRecords<TItem extends DataGridItem>({ records, }: DataGridTableRecordsProps<TItem>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-table-records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-records.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-table-records.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,yBAAyB,CAAC,KAAK,SAAS,YAAY;IAC5D,OAAO,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC/D,OAAO,GACR,EAAE,yBAAyB,CAAC,KAAK,CAAC,+BAQlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TableSlot } from '../table-types';
|
|
2
|
+
interface DataGridTableSlotProps {
|
|
3
|
+
slots: TableSlot[];
|
|
4
|
+
}
|
|
5
|
+
export declare function DataGridTableSlot({ slots }: DataGridTableSlotProps): import("react").JSX.Element | null;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=data-grid-table-slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table-slot.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-table-slot.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,UAAU,sBAAsB;IAC9B,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,sBAAsB,sCAWlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-table.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-table.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAa7D,wBAAgB,aAAa,CAAC,KAAK,SAAS,YAAY,iCA0BvD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
2
|
+
import { DataGridRecord } from '../storage/storage-types';
|
|
3
|
+
export declare const DataGridRecordProvider: import('react').Provider<DataGridRecord<DataGridItem> | null>;
|
|
4
|
+
export declare function useDataGridRecord<TItem extends DataGridItem = DataGridItem>(): DataGridRecord<TItem>;
|
|
5
|
+
//# sourceMappingURL=data-grid-record-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-record-context.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/data-grid-record-context.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D,eAAO,MAAM,sBAAsB,+DAAiC,CAAC;AAErE,wBAAgB,iBAAiB,CAC/B,KAAK,SAAS,YAAY,GAAG,YAAY,KACtC,cAAc,CAAC,KAAK,CAAC,CAMzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-row-click.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/ignore-row-click.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridTableColumn, DataGridTableColumnOverflow, DataGridTableLayout } from './table-types';
|
|
4
|
+
export interface ResolvedBodyCellProps {
|
|
5
|
+
/** Content-cap CSS var(s) forwarded to `DataGridCell`'s `style` prop -- see `resolveColumnStyle`. */
|
|
6
|
+
style: CSSProperties;
|
|
7
|
+
/** Drives `DataGridCell`'s `data-overflow` attribute; defaults to `'wrap'` when unset on the column. */
|
|
8
|
+
overflow: DataGridTableColumnOverflow;
|
|
9
|
+
/** Whether a real, active `maxWidth` cap applies -- forwarded to `DataGridCell`'s `capped` prop. */
|
|
10
|
+
capped: boolean;
|
|
11
|
+
/** Stringified cell value for the native `title` tooltip, or `undefined` when there's none to show. */
|
|
12
|
+
title: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Single source of the per-cell overflow/width props a body row forwards to `DataGridCell`, kept
|
|
16
|
+
* apart from `DataGridRow` so the derivation is pure and can be tested without rendering a row.
|
|
17
|
+
*
|
|
18
|
+
* Pure: `useTableLayout()` stays a hook call at each call site, its result passed in here.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveBodyCellProps<TItem extends DataGridItem>(column: DataGridTableColumn<TItem>, item: TItem, tableLayout: DataGridTableLayout): ResolvedBodyCellProps;
|
|
21
|
+
//# sourceMappingURL=resolve-body-cell-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-body-cell-props.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/resolve-body-cell-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE3G,MAAM,WAAW,qBAAqB;IACpC,qGAAqG;IACrG,KAAK,EAAE,aAAa,CAAC;IACrB,wGAAwG;IACxG,QAAQ,EAAE,2BAA2B,CAAC;IACtC,oGAAoG;IACpG,MAAM,EAAE,OAAO,CAAC;IAChB,uGAAuG;IACvG,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,YAAY,EAC7D,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAClC,IAAI,EAAE,KAAK,EACX,WAAW,EAAE,mBAAmB,GAC/B,qBAAqB,CAcvB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { DataGridTableColumn, DataGridTableLayout } from './table-types';
|
|
4
|
+
/**
|
|
5
|
+
* Internal CSS var carrying the `tableLayout="auto"` `maxWidth` cap into the per-row content-cap
|
|
6
|
+
* wrapper (`DataGridCell`'s `.content` span). Not documented as public API.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DATA_GRID_COLUMN_MAX_WIDTH_VAR = "--_data-grid-col-max";
|
|
9
|
+
export interface ResolvedColumnStyle {
|
|
10
|
+
/**
|
|
11
|
+
* `width`/`minWidth`/`maxWidth` mapped to CSS for the header `<th>`. Body cells intentionally
|
|
12
|
+
* receive no box sizing from this — width lives on the header only, since the table already
|
|
13
|
+
* shares one track per column.
|
|
14
|
+
*/
|
|
15
|
+
headerStyle: CSSProperties;
|
|
16
|
+
/**
|
|
17
|
+
* Content-cap CSS var(s) needed by the per-row overflow wrapper. Applied on both header and
|
|
18
|
+
* body cells: a CSS custom property set via inline style on one row's `<td>` does not reach a
|
|
19
|
+
* sibling row's `<td>` for the same column, so each row needs its own copy.
|
|
20
|
+
*/
|
|
21
|
+
contentVars: CSSProperties;
|
|
22
|
+
/**
|
|
23
|
+
* Whether `maxWidth` is a real, active cap (`tableLayout="auto"` with `maxWidth` set) that the
|
|
24
|
+
* content wrapper's CSS must enforce regardless of overflow mode — `nowrap` reads the cap var
|
|
25
|
+
* directly (mode-agnostic), `wrap` needs this flag to also force word-breaking, so the column
|
|
26
|
+
* never grows past the cap. Always `false` under `tableLayout="fixed"`, where `maxWidth`
|
|
27
|
+
* aliases into the shared track instead.
|
|
28
|
+
*/
|
|
29
|
+
isCapped: boolean;
|
|
30
|
+
}
|
|
31
|
+
type ColumnWidthProps<TItem extends DataGridItem> = Pick<DataGridTableColumn<TItem>, 'width' | 'minWidth' | 'maxWidth'>;
|
|
32
|
+
/**
|
|
33
|
+
* Single source of CSS for column `width`/`minWidth`/`maxWidth`, branching on `tableLayout`.
|
|
34
|
+
*
|
|
35
|
+
* - `fixed`: the three props collapse to one shared track. `width` wins when present; a lone
|
|
36
|
+
* `minWidth`/`maxWidth` aliases to the track. (Detecting the contradictory combination — width
|
|
37
|
+
* set alongside `minWidth`/`maxWidth` — is a DEV-only warning emitted separately at column
|
|
38
|
+
* ingestion; this function stays pure and has no side effects.) `width: 'min-content'` opts the
|
|
39
|
+
* column into the same measurement pipeline as under `auto` (see below) -- once
|
|
40
|
+
* `DataGridHeaderCell`'s ResizeObserver has measured it, the pixel value becomes this column's
|
|
41
|
+
* track, same as a literal numeric `width`.
|
|
42
|
+
* - `auto`: the three are independent constraints — `width` sets a preferred size and, absent an
|
|
43
|
+
* explicit `minWidth`, an implicit floor at that same size; `minWidth` is the floor; `maxWidth`
|
|
44
|
+
* is a real cap. A `maxWidth`-without-`width` column also gets its header `width` set to the
|
|
45
|
+
* cap so it stops absorbing container slack under `inline-size: 100%` fill, and `maxWidth`
|
|
46
|
+
* always drives the content-cap CSS var read by the per-row wrapper. `width: 'min-content'` is
|
|
47
|
+
* special-cased: the literal CSS keyword isn't honored by the browser's auto table-layout
|
|
48
|
+
* algorithm as a hint to hold this column narrow against a widthless sibling, so
|
|
49
|
+
* `minContentWidth` (a measured pixel value from `DataGridHeaderCell`'s ResizeObserver, via
|
|
50
|
+
* `table-min-content-width.ts`) stands in for it once measurement has landed.
|
|
51
|
+
*
|
|
52
|
+
* Before the first measurement lands: under `auto`, the raw `'min-content'` keyword still flows
|
|
53
|
+
* through as an inert one-frame fallback (harmless -- the browser ignores it as a `width`/
|
|
54
|
+
* `min-inline-size` value and the column renders under ordinary layout sizing until the
|
|
55
|
+
* ResizeObserver's first callback fires); under `fixed`, the width is simply unset instead
|
|
56
|
+
* (falls to a lone `minWidth`/`maxWidth` alias, or no track at all).
|
|
57
|
+
*
|
|
58
|
+
* `%` strings map to `inline-size`; any other value maps to `width` + `min-inline-size`.
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveColumnStyle<TItem extends DataGridItem>(column: ColumnWidthProps<TItem>, tableLayout: DataGridTableLayout, minContentWidth?: number): ResolvedColumnStyle;
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=resolve-column-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-column-style.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/resolve-column-style.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,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,yBAAyB,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,WAAW,EAAE,aAAa,CAAC;IAC3B;;;;OAIG;IACH,WAAW,EAAE,aAAa,CAAC;IAC3B;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,gBAAgB,CAAC,KAAK,SAAS,YAAY,IAAI,IAAI,CACtD,mBAAmB,CAAC,KAAK,CAAC,EAC1B,OAAO,GAAG,UAAU,GAAG,UAAU,CAClC,CAAC;AAWF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAC3D,MAAM,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAC/B,WAAW,EAAE,mBAAmB,EAChC,eAAe,CAAC,EAAE,MAAM,GACvB,mBAAmB,CAIrB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataGridItem, InternalContext } from '../../data-grid-types';
|
|
2
|
+
export interface TableColumnsPersistence {
|
|
3
|
+
/** The columns the user toggled, by id. Columns never toggled are absent. */
|
|
4
|
+
read: () => Record<string, boolean>;
|
|
5
|
+
record: (columnId: string, visible: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
/** Namespaced by the grid's `name`, so two grids on a page keep separate selections. */
|
|
8
|
+
export declare const COLUMN_VISIBILITY_KEY = "columnVisibility";
|
|
9
|
+
/**
|
|
10
|
+
* Keeps the columns a user showed or hid, when the grid asked for it with
|
|
11
|
+
* `persistentColumnVisibility`. Returns `undefined` otherwise, so a grid that did not opt in
|
|
12
|
+
* registers no state and reads none.
|
|
13
|
+
*
|
|
14
|
+
* Pinned to `localStorage` whatever the grid's `persistent` setting is: a column selection is
|
|
15
|
+
* how one person likes to read the table, not part of the view they would share by copying the
|
|
16
|
+
* URL, so it sits beside filters that stay in the query string rather than displacing them.
|
|
17
|
+
*/
|
|
18
|
+
export declare function prepareTableColumnsPersistence<TItem extends DataGridItem = DataGridItem>(context: InternalContext<TItem>): TableColumnsPersistence | undefined;
|
|
19
|
+
//# sourceMappingURL=table-columns-persistence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-columns-persistence.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-columns-persistence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAM3E,MAAM,WAAW,uBAAuB;IACtC,6EAA6E;IAC7E,IAAI,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtD;AAED,wFAAwF;AACxF,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EACtF,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,uBAAuB,GAAG,SAAS,CA4BrC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { UseBoundStore } from 'zustand/react';
|
|
3
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
4
|
+
import { TableColumnsPersistence } from './table-columns-persistence';
|
|
5
|
+
import { TableStickyService } from './table-sticky';
|
|
6
|
+
import { DataGridTableColumn, DataGridTableGroup, TableStore } from './table-types';
|
|
7
|
+
export declare function prepareTableColumns<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>, stickyApi: TableStickyService<TItem>, persistence?: TableColumnsPersistence): {
|
|
8
|
+
initializeColumns: (columns: (DataGridTableColumn<TItem> | DataGridTableGroup<TItem>)[]) => {
|
|
9
|
+
columns: (DataGridTableColumn<TItem> | DataGridTableGroup<TItem>)[];
|
|
10
|
+
flatColumns: DataGridTableColumn<TItem>[];
|
|
11
|
+
columnVisibility: Map<string, boolean>;
|
|
12
|
+
};
|
|
13
|
+
useVisibleColumns: () => DataGridTableColumn<TItem>[];
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=table-columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-columns.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-columns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAuB,UAAU,EAAE,MAAM,eAAe,CAAC;AAK9G,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAC3E,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EACzD,SAAS,EAAE,kBAAkB,CAAC,KAAK,CAAC,EACpC,WAAW,CAAC,EAAE,uBAAuB;iCAuKD,CAAC,oBAAoB,KAAK,CAAC,GAAG,mBAAmB,KAAK,CAAC,CAAC,EAAE;;;;;6BAThE,oBAAoB,KAAK,CAAC,EAAE;EAyB3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-context.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,wBAAgB,eAAe,CAC7B,KAAK,SAAS,YAAY,GAAG,YAAY,KACtC,YAAY,CAAC,KAAK,CAAC,CAEvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { UseBoundStore } from 'zustand/react';
|
|
3
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
4
|
+
import { ExtraColumn, ExtraColumnOption, ExtraColumnPosition, TableStore } from './table-types';
|
|
5
|
+
export declare function prepareTableExtraColumns<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>): {
|
|
6
|
+
registerExtraColumn: (option: ExtraColumnOption) => void;
|
|
7
|
+
updateExtraColumnWidth: (columnId: string, width: string) => void;
|
|
8
|
+
updateExtraColumnOrder: (columnId: string, order: number) => void;
|
|
9
|
+
updateExtraColumnSticky: (columnId: string, sticky: boolean) => void;
|
|
10
|
+
useExtraColumns: (position: ExtraColumnPosition) => ExtraColumn[];
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=table-extra-columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-extra-columns.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-extra-columns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACX,MAAM,eAAe,CAAC;AAEvB,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAChF,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;kCAcpB,iBAAiB;uCAqDZ,MAAM,SAAS,MAAM;uCAuBrB,MAAM,SAAS,MAAM;wCAoCpB,MAAM,UAAU,OAAO;gCAmB/B,mBAAmB,KAAG,WAAW,EAAE;EAGvE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { UseBoundStore } from 'zustand/react';
|
|
3
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
4
|
+
import { TableStickyService } from './table-sticky';
|
|
5
|
+
import { DataGridTableColumn, RegisteredTableComponent, TableComponentName, TableHeaderCell, TableStore } from './table-types';
|
|
6
|
+
export declare function prepareTableHeader<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>, stickyApi: TableStickyService<TItem>, defaultComponents: Map<TableComponentName, RegisteredTableComponent>): {
|
|
7
|
+
useHasGroups: () => boolean;
|
|
8
|
+
useFirstRowHeaderCells: () => TableHeaderCell<TItem>[];
|
|
9
|
+
useSecondRowHeaderColumns: () => DataGridTableColumn<TItem>[];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=table-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-header.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACX,MAAM,eAAe,CAAC;AAGvB,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAC1E,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EACzD,SAAS,EAAE,kBAAkB,CAAC,KAAK,CAAC,EACpC,iBAAiB,EAAE,GAAG,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;;kCAyFjC,gBAAgB,KAAK,CAAC,EAAE;qCAWrB,oBAAoB,KAAK,CAAC,EAAE;EAUnE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
2
|
+
import { DataGridTableColumn } from './table-types';
|
|
3
|
+
export declare function resolveLabel(label: string | (() => string)): string;
|
|
4
|
+
export declare function getNestedValue(obj: Record<string, unknown>, path: string): unknown;
|
|
5
|
+
/**
|
|
6
|
+
* Resolves a body cell's plain-string display value — the same value the default cell renderer
|
|
7
|
+
* shows — or `undefined` when the column uses `component`/`render` (output the kit cannot safely
|
|
8
|
+
* stringify, e.g. for an auto-set `title` fallback). Shared by `DataGridBodyCellContent` (the
|
|
9
|
+
* renderer) and `resolveBodyCellProps` (the `title` fallback for `cellOverflow: 'nowrap'`) so the
|
|
10
|
+
* two never drift on what counts as "plain string" content.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveCellDisplayValue<TItem extends DataGridItem>(column: DataGridTableColumn<TItem>, item: TItem): string | undefined;
|
|
13
|
+
//# sourceMappingURL=table-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,CAEnE;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAOlF;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,SAAS,YAAY,EAChE,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAClC,IAAI,EAAE,KAAK,GACV,MAAM,GAAG,SAAS,CASpB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { UseBoundStore } from 'zustand/react';
|
|
3
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
4
|
+
import { TableStore } from './table-types';
|
|
5
|
+
/**
|
|
6
|
+
* Store-backed home for the measured pixel width of columns whose `width` is `'min-content'`,
|
|
7
|
+
* under either `tableLayout`. `DataGridHeaderCell` measures its header content's natural size
|
|
8
|
+
* with a ResizeObserver and calls `setMinContentWidth`; `resolveColumnStyle` reads it back via
|
|
9
|
+
* `useMinContentWidth` to size the column's track -- under `auto`, the literal CSS `min-content`
|
|
10
|
+
* keyword isn't honored by the browser's algorithm as a hint to hold a column narrow against a
|
|
11
|
+
* widthless sibling; under `fixed`, there is no content-driven sizing at all, so the keyword has
|
|
12
|
+
* nothing to act on either way. A measured pixel value stands in for it in both modes.
|
|
13
|
+
*
|
|
14
|
+
* `setMinContentWidth` skips the store write when the measured value hasn't changed. This is the
|
|
15
|
+
* loop guard: the measured value drives the column's own CSS width, so an unconditional write on
|
|
16
|
+
* every ResizeObserver callback would risk apply-width -> relayout -> re-measure -> apply-width
|
|
17
|
+
* spinning forever. (The measurement target itself is also chosen to be size-independent of the
|
|
18
|
+
* column's own width -- see `DataGridHeaderCell` -- so in practice this dedup is a backstop, not
|
|
19
|
+
* the only thing preventing a loop.)
|
|
20
|
+
*/
|
|
21
|
+
export declare function prepareTableMinContentWidth<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>): {
|
|
22
|
+
setMinContentWidth: (columnId: string, width: number) => void;
|
|
23
|
+
useMinContentWidth: (columnId: string) => number | undefined;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Computes the pixel width to apply to a `width: 'min-content'` column's header `<th>` from a
|
|
27
|
+
* ResizeObserver entry on its `.contentRow` wrapper (see `DataGridHeaderCell`'s measurement
|
|
28
|
+
* effect) -- the wrapper's own `inline-size: min-content` CSS keeps its measured content-box size
|
|
29
|
+
* independent of whatever width the `<th>` itself currently has, so this reads the column's true
|
|
30
|
+
* natural content width regardless of where in the measure -> apply -> re-render cycle it's
|
|
31
|
+
* called (see the loop-safety note on `setMinContentWidth` above). Adds the cell's own
|
|
32
|
+
* padding/border (cells are `border-box`) so the applied width holds the full, unclipped content,
|
|
33
|
+
* and rounds up to guard against sub-pixel drift across repeated measurements of the same content.
|
|
34
|
+
*/
|
|
35
|
+
export declare function measureMinContentWidth(entry: ResizeObserverEntry, cell: Element | null): number;
|
|
36
|
+
//# sourceMappingURL=table-min-content-width.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-min-content-width.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-min-content-width.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EACnF,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;mCAOnB,MAAM,SAAS,MAAM;mCASrB,MAAM,KAAG,MAAM,GAAG,SAAS;EAGlE;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,MAAM,CAY/F"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridItem, InternalContext } from '../../data-grid-types';
|
|
2
|
+
import { TableService } from './table-types';
|
|
3
|
+
export declare function createTableService<TItem extends DataGridItem>(context: InternalContext<TItem>): TableService<TItem>;
|
|
4
|
+
//# sourceMappingURL=table-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAgB3E,OAAO,KAAK,EASV,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAC3D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,YAAY,CAAC,KAAK,CAAC,CAyKrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { UseBoundStore } from 'zustand/react';
|
|
3
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
4
|
+
import { TableSlot, TableSlotName, TableSlotOptions, TableStore } from './table-types';
|
|
5
|
+
export declare function prepareTableSlots<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>): {
|
|
6
|
+
registerSlot: <T extends TableSlotName>(name: T, options: TableSlotOptions[T]) => void;
|
|
7
|
+
useSlots: <T_1 extends TableSlotName>(name: T_1) => TableSlot[];
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=table-slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-slots.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-slots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI5F,wBAAgB,iBAAiB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EACzE,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;kDAOJ,CAAC,WAAW,gBAAgB,CAAC,CAAC,CAAC;wDAmB/B,SAAS,EAAE;EAGjE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { UseBoundStore } from 'zustand/react';
|
|
3
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
4
|
+
import { DataGridTableColumn, DataGridTableGroup, TableStore } from './table-types';
|
|
5
|
+
/** The slice of the table store the inline-end offsets are derived from. */
|
|
6
|
+
type EndStickyState = Pick<TableStore, 'extraColumnsEnd' | 'columnWidths'>;
|
|
7
|
+
export type TableStickyService<TItem extends DataGridItem = DataGridItem> = ReturnType<typeof prepareTableSticky<TItem>>;
|
|
8
|
+
export declare function prepareTableSticky<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>): {
|
|
9
|
+
initializeStickyState: (columns: (DataGridTableColumn<TItem> | DataGridTableGroup<TItem>)[]) => {
|
|
10
|
+
columnSticky: Map<string, boolean>;
|
|
11
|
+
groupSticky: Map<string, boolean>;
|
|
12
|
+
};
|
|
13
|
+
getOrderedColumnsWithSticky: (visibleColumns: DataGridTableColumn<TItem>[], columnSticky: Map<string, boolean>) => DataGridTableColumn<TItem>[];
|
|
14
|
+
onResizeColumn: (columnId: string, width: number) => void;
|
|
15
|
+
isColumnSticky: (columnId: string) => boolean;
|
|
16
|
+
isGroupSticky: (groupId: string) => boolean;
|
|
17
|
+
useColumnStickyOffset: (columnId: string) => number | undefined;
|
|
18
|
+
useColumnEndStickyOffset: (columnId: string) => number | undefined;
|
|
19
|
+
useGroupStickyOffset: (groupId: string) => number | undefined;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Offset from the table's inline-end edge for a pinned `end` extra column, or `undefined` when
|
|
23
|
+
* the column is not an `end` column that pins.
|
|
24
|
+
*
|
|
25
|
+
* Walked right to left so each pinned column sits outside the ones already pinned beyond it,
|
|
26
|
+
* mirroring how the start-edge offsets accumulate left to right. Unpinned columns in between
|
|
27
|
+
* contribute nothing -- they scroll away, so the pinned ones stack against each other.
|
|
28
|
+
*
|
|
29
|
+
* Pure and store-shaped rather than a hook body so the arithmetic is directly testable, and so
|
|
30
|
+
* `useColumnEndStickyOffset` returns a plain number: a `Map` built inside a zustand selector would be a
|
|
31
|
+
* fresh reference on every store read and re-render forever.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getEndStickyOffset(s: EndStickyState, columnId: string): number | undefined;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=table-sticky.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-sticky.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-sticky.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAe,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGtG,4EAA4E;AAC5E,KAAK,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAK3E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,IAAI,UAAU,CACpF,OAAO,kBAAkB,CAAC,KAAK,CAAC,CACjC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAC1E,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;qCAajB,CAAC,oBAAoB,KAAK,CAAC,GAAG,mBAAmB,KAAK,CAAC,CAAC,EAAE;sBAClF,IAAI,MAAM,EAAE,OAAO,CAAC;qBACrB,IAAI,MAAM,EAAE,OAAO,CAAC;;kDAoBjB,oBAAoB,KAAK,CAAC,EAAE,gBAC9B,IAAI,MAAM,EAAE,OAAO,CAAC,KACjC,oBAAoB,KAAK,CAAC,EAAE;+BAmBG,MAAM,SAAS,MAAM;+BASrB,MAAM;6BAIR,MAAM;sCAIG,MAAM,KAAG,MAAM,GAAG,SAAS;yCAgBxB,MAAM,KAAG,MAAM,GAAG,SAAS;oCAIhC,MAAM,KAAG,MAAM,GAAG,SAAS;EAuBnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAW1F"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
2
|
+
import { TableStore } from './table-types';
|
|
3
|
+
export declare function createTableStore<TItem extends DataGridItem = DataGridItem>(): import('zustand').UseBoundStore<import('zustand').StoreApi<TableStore<TItem>>>;
|
|
4
|
+
//# sourceMappingURL=table-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-store.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,oFAgBzE"}
|