@gears-frontx/ui-kit 0.4.0 → 0.4.1
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/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/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/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +385 -367
- package/dist/index.js.map +1 -1
- package/llms.txt +11 -3
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/layout/layout-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,cAAc,CAAC,IAAI,SAAS,MAAM;IACjD,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F;;;;;OAKG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAE5D;;;;;OAKG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,GAAG,SAAS,CAAC;CAC/D;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,GAAG,CAAC,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC;IACzC,aAAa,EAAE,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InternalContext, DataGridItem } from '../../data-grid-types';
|
|
2
|
+
import { LoadInstance, LoadTriggerConfig } from './load-types';
|
|
3
|
+
export declare function createLoadInstance<TItem extends DataGridItem>(context: InternalContext<TItem>, config?: LoadTriggerConfig): LoadInstance<TItem>;
|
|
4
|
+
//# sourceMappingURL=load-instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-instance.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/load/load-instance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EAGb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEpE,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAC3D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,EAC/B,MAAM,CAAC,EAAE,iBAAiB,GACzB,YAAY,CAAC,KAAK,CAAC,CA+GrB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridItem, InternalContext } from '../../data-grid-types';
|
|
2
|
+
import { LoadService } from './load-types';
|
|
3
|
+
export declare function createLoadService<TItem extends DataGridItem>(context: InternalContext<TItem>): LoadService<TItem>;
|
|
4
|
+
//# sourceMappingURL=load-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/load/load-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAIV,WAAW,EAKZ,MAAM,cAAc,CAAC;AAEtB,wBAAgB,iBAAiB,CAAC,KAAK,SAAS,YAAY,EAC1D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,WAAW,CAAC,KAAK,CAAC,CA4IpB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { LoadState, UseLoadStateStore } from '../../utils/load-state';
|
|
2
|
+
import { StoreApi, UseBoundStore } from 'zustand';
|
|
3
|
+
import { DataGridItem, DataGridLoadContext, DataGridLoadResult } from '../../data-grid-types';
|
|
4
|
+
export type LoadInstanceId = number | string;
|
|
5
|
+
export interface LoadStateStore {
|
|
6
|
+
/** Every in-flight load instance, whatever it is loading. */
|
|
7
|
+
loadState: LoadState;
|
|
8
|
+
/**
|
|
9
|
+
* Only the loads that replace what is on screen. A load scoped to a tree parent appends a section
|
|
10
|
+
* under that row, and a `store: false` load (one that pages through the whole data set) never
|
|
11
|
+
* reaches storage at all, so neither changes the visible record set -- and neither should put the
|
|
12
|
+
* grid's loading treatment up over rows the user can still work with.
|
|
13
|
+
*/
|
|
14
|
+
recordsLoadState: LoadState;
|
|
15
|
+
}
|
|
16
|
+
export type UseLoadServiceStateStore = UseBoundStore<StoreApi<LoadStateStore>>;
|
|
17
|
+
export interface RefreshOptions {
|
|
18
|
+
resetFilters: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface RefreshOptionsRaw {
|
|
21
|
+
/**
|
|
22
|
+
* Whether to reset filters to default state
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
resetFilters?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface LoadTriggerConfig {
|
|
28
|
+
id?: LoadInstanceId;
|
|
29
|
+
loadContext?: DataGridLoadContext;
|
|
30
|
+
refresh?: RefreshOptions;
|
|
31
|
+
store?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface LoadInstance<TItem extends DataGridItem> {
|
|
34
|
+
id: LoadInstanceId;
|
|
35
|
+
useLoadState: UseLoadStateStore;
|
|
36
|
+
promise: Promise<void>;
|
|
37
|
+
signal: AbortSignal;
|
|
38
|
+
refresh: RefreshOptions | null;
|
|
39
|
+
abort: () => void;
|
|
40
|
+
loadContext: DataGridLoadContext;
|
|
41
|
+
processResult?: DataGridLoadResult<TItem>;
|
|
42
|
+
fetchResult?: DataGridLoadResult<TItem>;
|
|
43
|
+
error?: Error;
|
|
44
|
+
}
|
|
45
|
+
export interface LoadPublicApi<TItem extends DataGridItem> {
|
|
46
|
+
/**
|
|
47
|
+
* Abort the current load operation.
|
|
48
|
+
*/
|
|
49
|
+
abort: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Refresh data by aborting current load and triggering a new one.
|
|
52
|
+
*
|
|
53
|
+
* @param options - Refresh options (e.g., resetFilters)
|
|
54
|
+
*/
|
|
55
|
+
refresh: (options?: RefreshOptionsRaw) => Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Trigger a data load operation.
|
|
58
|
+
*
|
|
59
|
+
* @param config - Load configuration (context, refresh options, etc.)
|
|
60
|
+
* @returns The load instance
|
|
61
|
+
*/
|
|
62
|
+
triggerLoad: (config?: LoadTriggerConfig) => LoadInstance<TItem>;
|
|
63
|
+
/**
|
|
64
|
+
* Get all active load instances.
|
|
65
|
+
*/
|
|
66
|
+
getLoadInstances: () => LoadInstance<TItem>[];
|
|
67
|
+
/**
|
|
68
|
+
* Zustand store for load instances state (loading when instances exist, blank otherwise).
|
|
69
|
+
* For the stable load state machine (blank → loading → loaded), use core.useLoadStateStore.
|
|
70
|
+
*/
|
|
71
|
+
useLoadStateStore: UseLoadServiceStateStore;
|
|
72
|
+
}
|
|
73
|
+
export interface LoadService<TItem extends DataGridItem> extends LoadPublicApi<TItem> {
|
|
74
|
+
init: () => Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=load-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/load/load-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEnG,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,SAAS,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,gBAAgB,EAAE,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/E,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,cAAc,CAAC;IACpB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY,CAAC,KAAK,SAAS,YAAY;IACtD,EAAE,EAAE,cAAc,CAAC;IACnB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,WAAW,EAAE,mBAAmB,CAAC;IACjC,aAAa,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,aAAa,CAAC,KAAK,SAAS,YAAY;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;OAKG;IACH,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,iBAAiB,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjE;;OAEG;IACH,gBAAgB,EAAE,MAAM,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;IAE9C;;;OAGG;IACH,iBAAiB,EAAE,wBAAwB,CAAC;CAC7C;AAED,MAAM,WAAW,WAAW,CAAC,KAAK,SAAS,YAAY,CAAE,SAAQ,aAAa,CAAC,KAAK,CAAC;IACnF,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the grid should be showing load feedback.
|
|
3
|
+
*
|
|
4
|
+
* Reads `recordsLoadState` rather than the load service's overall state: that one counts every
|
|
5
|
+
* in-flight instance, so loading the children of a tree row or paging through the whole data set
|
|
6
|
+
* would dim and block the whole grid over rows the user can still work with. The core service's state is no use here
|
|
7
|
+
* either -- it latches at `'loaded'` after the first load and would never report a refetch. The
|
|
8
|
+
* idle value is `'blank'`, not `'loaded'`, so the test is an equality check.
|
|
9
|
+
*
|
|
10
|
+
* OR-ed with the consumer's `loading` prop, which covers work the grid cannot see -- a bulk copy, a
|
|
11
|
+
* mutation elsewhere on the screen.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function useDataGridLoading(): boolean;
|
|
16
|
+
//# sourceMappingURL=use-data-grid-loading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-data-grid-loading.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/load/use-data-grid-loading.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAM5C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridItem, InternalContext } from '../../data-grid-types';
|
|
2
|
+
import { PersistentStateService } from './persistent-state-types';
|
|
3
|
+
export declare function createPersistentStateService<TItem extends DataGridItem>(context: InternalContext<TItem>): PersistentStateService;
|
|
4
|
+
//# sourceMappingURL=persistent-state-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistent-state-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/persistent-state/persistent-state-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAGV,sBAAsB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,wBAAgB,4BAA4B,CAAC,KAAK,SAAS,YAAY,EACrE,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,sBAAsB,CAmIxB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface PersistOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Where this one state is stored, overriding the grid's `persistent` setting. For state
|
|
4
|
+
* that belongs to the viewer rather than to the view they would share.
|
|
5
|
+
*
|
|
6
|
+
* @default the grid's `persistent` setting
|
|
7
|
+
*/
|
|
8
|
+
storage?: 'localStorage' | 'sessionStorage' | 'router' | 'memory';
|
|
9
|
+
schema?: Record<string, string>;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this state may live in the URL when the grid is configured with
|
|
12
|
+
* `persistent="router"`. With `false` the state is simply not persisted in
|
|
13
|
+
* router mode — neither written nor read — while the other backends are
|
|
14
|
+
* unaffected.
|
|
15
|
+
*
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
router?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface UsePersistentState<T> {
|
|
21
|
+
value: T | undefined;
|
|
22
|
+
setValue: (value: T | undefined) => void;
|
|
23
|
+
buildStorageItem: (value: T) => Record<string, unknown>;
|
|
24
|
+
}
|
|
25
|
+
export interface PersistentStatePublicApi {
|
|
26
|
+
/**
|
|
27
|
+
* Register persistent state for a plugin.
|
|
28
|
+
*
|
|
29
|
+
* @param key - Unique key for storing the state
|
|
30
|
+
* @param options - Persistence options (storage type, schema)
|
|
31
|
+
* @returns State accessor with value, setValue, and buildStorageItem methods
|
|
32
|
+
*/
|
|
33
|
+
registerPersistentState: <T>(key: string, options?: PersistOptions) => UsePersistentState<T>;
|
|
34
|
+
}
|
|
35
|
+
export type PersistentStateService = PersistentStatePublicApi;
|
|
36
|
+
//# sourceMappingURL=persistent-state-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistent-state-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/persistent-state/persistent-state-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IACzC,gBAAgB,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,uBAAuB,EAAE,CAAC,CAAC,EACzB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,cAAc,KACrB,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAC5B;AAED,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
2
|
+
import { DataGridPluginContext } from './plugins-types';
|
|
3
|
+
export interface DataGridPluginApi<TProps extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
|
+
onPropsChange?: (props: TProps) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Creates a DataGrid plugin as a React component.
|
|
8
|
+
*
|
|
9
|
+
* @param name - Unique plugin name for plugin identification
|
|
10
|
+
* @param setup - Setup function that runs once on mount, returns plugin API
|
|
11
|
+
* @param propsAreEqual - Optional comparison function for React.memo to control re-renders
|
|
12
|
+
* @returns React component that accepts TProps and can be used as child of DataGrid
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* interface TablePluginProps {
|
|
17
|
+
* columns: { id: string; label: string }[];
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* interface TablePluginApi extends DataGridPluginApi<TablePluginProps> {
|
|
21
|
+
* useTableStore: UseBoundStore<StoreApi<{ columns: DataGridTableColumn[] }>>;
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* export const DataGridTablePlugin = createDataGridPlugin<
|
|
25
|
+
* DataGridItem,
|
|
26
|
+
* 'table',
|
|
27
|
+
* TablePluginProps
|
|
28
|
+
* >('table', (context) => {
|
|
29
|
+
* const useTableStore = create(() => ({ columns: [] }));
|
|
30
|
+
*
|
|
31
|
+
* context.registerSlot('main', {
|
|
32
|
+
* id: 'table',
|
|
33
|
+
* component: TableUI,
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* return {
|
|
37
|
+
* useTableStore,
|
|
38
|
+
* onPropsChange,
|
|
39
|
+
* };
|
|
40
|
+
*
|
|
41
|
+
* function onPropsChange(props: TablePluginProps) {
|
|
42
|
+
* useTableStore.setState({ columns: props.columns });
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function createDataGridPlugin<TItem extends DataGridItem = DataGridItem, TName extends string = string, TProps extends Record<string, any> = Record<string, any>, TApi extends DataGridPluginApi<TProps> = DataGridPluginApi<TProps>>(name: TName, setup: (context: DataGridPluginContext<TItem>) => TApi, propsAreEqual?: (prevProps: Readonly<TProps>, nextProps: Readonly<TProps>) => boolean): import('react').NamedExoticComponent<TProps>;
|
|
49
|
+
//# sourceMappingURL=plugins-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/plugins/plugins-helpers.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,iBAAiB,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjG,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,SAAS,YAAY,GAAG,YAAY,EACzC,KAAK,SAAS,MAAM,GAAG,MAAM,EAE7B,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxD,IAAI,SAAS,iBAAiB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,EAElE,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,CAAC,OAAO,EAAE,qBAAqB,CAAC,KAAK,CAAC,KAAK,IAAI,EACtD,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,OAAO,gDA0BtF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridItem, InternalContext } from '../../data-grid-types';
|
|
2
|
+
import { PluginsService } from './plugins-types';
|
|
3
|
+
export declare function createPluginsService<TItem extends DataGridItem>(context: InternalContext<TItem>): PluginsService<TItem>;
|
|
4
|
+
//# sourceMappingURL=plugins-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/plugins/plugins-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAIV,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,YAAY,EAC7D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,cAAc,CAAC,KAAK,CAAC,CA+CvB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
2
|
+
import { DataGridHooked } from '../hooked/hooked-types';
|
|
3
|
+
import { LayoutPublicApi } from '../layout/layout-types';
|
|
4
|
+
import { LoadPublicApi } from '../load/load-types';
|
|
5
|
+
import { PersistentStatePublicApi } from '../persistent-state/persistent-state-types';
|
|
6
|
+
import { DataGridParentId, StoragePublicApi } from '../storage/storage-types';
|
|
7
|
+
import { TablePublicApi } from '../table/table-types';
|
|
8
|
+
export type LoadContextFilterKey = string;
|
|
9
|
+
export type LoadContextFiltersState<Value = any> = {
|
|
10
|
+
value: Value;
|
|
11
|
+
} & Record<PropertyKey, any>;
|
|
12
|
+
export type OrderDirection = 'asc' | 'desc';
|
|
13
|
+
export interface LoadContextOrderItem {
|
|
14
|
+
columnId: string;
|
|
15
|
+
direction: OrderDirection;
|
|
16
|
+
}
|
|
17
|
+
export interface LoadContextTree {
|
|
18
|
+
parentId: DataGridParentId;
|
|
19
|
+
}
|
|
20
|
+
export interface LoadContextOrders {
|
|
21
|
+
value: LoadContextOrderItem[];
|
|
22
|
+
}
|
|
23
|
+
export type LoadContextFilters = Record<LoadContextFilterKey, LoadContextFiltersState>;
|
|
24
|
+
export interface PluginsLoadContext {
|
|
25
|
+
pagination?: {
|
|
26
|
+
page?: number;
|
|
27
|
+
limit?: number;
|
|
28
|
+
};
|
|
29
|
+
filters?: LoadContextFilters;
|
|
30
|
+
orders?: LoadContextOrders;
|
|
31
|
+
tree?: LoadContextTree;
|
|
32
|
+
}
|
|
33
|
+
export interface PluginsPublicApi<TItem extends DataGridItem> {
|
|
34
|
+
/**
|
|
35
|
+
* Register a lifecycle hook handler.
|
|
36
|
+
*
|
|
37
|
+
* @param name - Hook name (e.g., 'load:context', 'load:store')
|
|
38
|
+
* @param handler - Handler function to execute when hook is called
|
|
39
|
+
*/
|
|
40
|
+
hook: DataGridHooked<TItem>['hook'];
|
|
41
|
+
/**
|
|
42
|
+
* Access another plugin's API.
|
|
43
|
+
*
|
|
44
|
+
* @param name - Plugin name
|
|
45
|
+
* @returns The plugin's public API or undefined if not found
|
|
46
|
+
*/
|
|
47
|
+
getPlugin: <TApi>(name: string) => TApi | undefined;
|
|
48
|
+
}
|
|
49
|
+
export type ServicesPublicApiTypes<TItem extends DataGridItem> = LayoutPublicApi | StoragePublicApi<TItem> | PersistentStatePublicApi | LoadPublicApi<TItem> | PluginsPublicApi<TItem> | TablePublicApi<TItem>;
|
|
50
|
+
export interface DataGridPluginContext<TItem extends DataGridItem> extends LayoutPublicApi, StoragePublicApi<TItem>, PersistentStatePublicApi, LoadPublicApi<TItem>, PluginsPublicApi<TItem>, TablePublicApi<TItem> {
|
|
51
|
+
}
|
|
52
|
+
export interface DataGridPlugin<TItem extends DataGridItem = DataGridItem, TName extends string = string, TApi = void> {
|
|
53
|
+
name: TName;
|
|
54
|
+
setup: (context: DataGridPluginContext<TItem>) => TApi;
|
|
55
|
+
}
|
|
56
|
+
export interface PluginsService<TItem extends DataGridItem> extends PluginsPublicApi<TItem> {
|
|
57
|
+
registerPlugin: (plugin: DataGridPlugin<TItem>) => void;
|
|
58
|
+
registerPlugins: (plugins: DataGridPlugin<TItem>[]) => void;
|
|
59
|
+
registerPublicApi: (methods: ServicesPublicApiTypes<TItem>) => void;
|
|
60
|
+
pluginContext: DataGridPluginContext<TItem>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=plugins-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/plugins/plugins-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;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
3
|
+
export declare function getItemKeyValue<TItem extends DataGridItem = DataGridItem>(item: TItem, key: DataGridDataKey<TItem>): DataGridItemId;
|
|
4
|
+
//# sourceMappingURL=storage-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/storage/storage-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE,wBAAgB,eAAe,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EACvE,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,eAAe,CAAC,KAAK,CAAC,kBAU5B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataGridItem, InternalContext } from '../../data-grid-types';
|
|
2
|
+
import { StorageService } from './storage-types';
|
|
3
|
+
export declare function createStorageService<TItem extends DataGridItem>(context: InternalContext<TItem>): StorageService<TItem>;
|
|
4
|
+
//# sourceMappingURL=storage-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/storage/storage-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EASV,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,YAAY,EAC7D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,cAAc,CAAC,KAAK,CAAC,CAqJvB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { StoreApi, UseBoundStore } from 'zustand';
|
|
2
|
+
import { DataGridItem } from '../../data-grid-types';
|
|
3
|
+
import { PluginsLoadContext } from '../plugins/plugins-types';
|
|
4
|
+
export interface DataGridSectionConfig {
|
|
5
|
+
loadContext: PluginsLoadContext;
|
|
6
|
+
parentId?: DataGridParentId;
|
|
7
|
+
}
|
|
8
|
+
export interface DataGridSection<TItem extends DataGridItem> {
|
|
9
|
+
id: DataGridSectionId;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
loadContext: PluginsLoadContext;
|
|
12
|
+
parentId: DataGridParentId;
|
|
13
|
+
records: DataGridRecords<TItem>;
|
|
14
|
+
}
|
|
15
|
+
export type DataGridSectionId = number | string;
|
|
16
|
+
export type DataGridDataKey<TItem extends DataGridItem> = string | ((item: TItem) => DataGridItemId);
|
|
17
|
+
export type DataGridParentId = DataGridItemId | null;
|
|
18
|
+
export type DataGridItemId = string | number;
|
|
19
|
+
export type DataGridRecords<TItem extends DataGridItem> = DataGridRecord<TItem>[];
|
|
20
|
+
export interface DataGridRecord<TItem extends DataGridItem = DataGridItem> {
|
|
21
|
+
id: DataGridItemId;
|
|
22
|
+
item: TItem;
|
|
23
|
+
index: number;
|
|
24
|
+
section: DataGridSection<TItem>;
|
|
25
|
+
}
|
|
26
|
+
export interface StorageStorePublic<TItem extends DataGridItem> {
|
|
27
|
+
visibleRecords: DataGridRecord<TItem>[];
|
|
28
|
+
rootSections: DataGridSection<TItem>[];
|
|
29
|
+
visibleSections: DataGridSection<TItem>[];
|
|
30
|
+
hasActiveFilters: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface StorageStoreInternal<TItem extends DataGridItem> extends StorageStorePublic<TItem> {
|
|
33
|
+
sections: Map<DataGridSectionId, DataGridSection<TItem>>;
|
|
34
|
+
recordSections: Map<DataGridParentId, DataGridSectionId[]>;
|
|
35
|
+
}
|
|
36
|
+
export interface StoragePublicApi<TItem extends DataGridItem> {
|
|
37
|
+
/**
|
|
38
|
+
* Zustand store hook for accessing storage state (visible records and sections).
|
|
39
|
+
*/
|
|
40
|
+
useStore: UseBoundStore<StoreApi<StorageStorePublic<TItem>>>;
|
|
41
|
+
/**
|
|
42
|
+
* Clear all sections from storage.
|
|
43
|
+
*/
|
|
44
|
+
clearSections: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new section with items.
|
|
47
|
+
*
|
|
48
|
+
* @param section - Section configuration (loadContext, parentId)
|
|
49
|
+
* @param items - Items to store in the section
|
|
50
|
+
* @returns The created section
|
|
51
|
+
*/
|
|
52
|
+
createSection: (section: DataGridSectionConfig, items: TItem[]) => DataGridSection<TItem>;
|
|
53
|
+
/**
|
|
54
|
+
* Get all sections as an array.
|
|
55
|
+
*/
|
|
56
|
+
getSections: () => DataGridSection<TItem>[];
|
|
57
|
+
/**
|
|
58
|
+
* Find a record by ID across all sections.
|
|
59
|
+
*
|
|
60
|
+
* @param id - The record ID to find
|
|
61
|
+
* @returns The record or undefined if not found
|
|
62
|
+
*/
|
|
63
|
+
getRecord: (id: DataGridItemId) => DataGridRecord<TItem> | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Get all sections with the specified parentId.
|
|
66
|
+
*
|
|
67
|
+
* @param parentId - The parent ID to filter by (null for root sections)
|
|
68
|
+
*/
|
|
69
|
+
getSectionsByParentId: (parentId: DataGridParentId) => DataGridSection<TItem>[];
|
|
70
|
+
/**
|
|
71
|
+
* Get all records from sections with the specified parentId as a flat array.
|
|
72
|
+
*
|
|
73
|
+
* @param parentId - The parent ID to filter by (null for root records)
|
|
74
|
+
*/
|
|
75
|
+
getRecordsByParentId: (parentId: DataGridParentId) => DataGridRecords<TItem>;
|
|
76
|
+
/**
|
|
77
|
+
* Get the unique ID for an item using the configured itemKey.
|
|
78
|
+
*
|
|
79
|
+
* @param item - The item to extract ID from
|
|
80
|
+
* @returns The item's unique ID
|
|
81
|
+
*/
|
|
82
|
+
getItemId: (item: TItem) => DataGridItemId;
|
|
83
|
+
}
|
|
84
|
+
export interface StorageService<TItem extends DataGridItem> extends StoragePublicApi<TItem> {
|
|
85
|
+
/**
|
|
86
|
+
* Set the filter keys that scope the grid rather than being chosen by the user, and so
|
|
87
|
+
* don't count towards `hasActiveFilters`. Internal: `DataGrid` is the only writer.
|
|
88
|
+
*
|
|
89
|
+
* @param keys - Filter keys to exclude from the active-filter check
|
|
90
|
+
*/
|
|
91
|
+
updateImplicitFilterKeys: (keys: string[]) => void;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=storage-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/storage/storage-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,kBAAkB,CAAC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe,CAAC,KAAK,SAAS,YAAY;IACzD,EAAE,EAAE,iBAAiB,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,kBAAkB,CAAC;IAChC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,YAAY,IAClD,MAAM,GACN,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,cAAc,CAAC,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,IAAI,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,YAAY,IAAI,cAAc,CAAC,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AS,CAAC;IAErE;;;;OAIG;IACH,qBAAqB,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;IAEhF;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,eAAe,CAAC,KAAK,CAAC,CAAC;IAE7E;;;;;OAKG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,cAAc,CAAC;CAC5C;AAED,MAAM,WAAW,cAAc,CAC7B,KAAK,SAAS,YAAY,CAC1B,SAAQ,gBAAgB,CAAC,KAAK,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACpD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridTableColumn } from '../table-types';
|
|
3
|
+
interface DataGridBodyCellContentProps<TItem extends DataGridItem> {
|
|
4
|
+
column: DataGridTableColumn<TItem>;
|
|
5
|
+
item: TItem;
|
|
6
|
+
}
|
|
7
|
+
export declare function DataGridBodyCellContent<TItem extends DataGridItem>({ column, item, }: DataGridBodyCellContentProps<TItem>): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=data-grid-body-cell-content.d.ts.map
|
package/dist/components/data-grid/services/table/components/data-grid-body-cell-content.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-body-cell-content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-body-cell-content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,UAAU,4BAA4B,CAAC,KAAK,SAAS,YAAY;IAC/D,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACnC,IAAI,EAAE,KAAK,CAAC;CACb;AAED,wBAAgB,uBAAuB,CAAC,KAAK,SAAS,YAAY,EAAE,EAClE,MAAM,EACN,IAAI,GACL,EAAE,4BAA4B,CAAC,KAAK,CAAC,+BAmBrC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
3
|
+
import { DataGridTableColumnOverflow } from '../table-types';
|
|
4
|
+
interface DataGridCellProps {
|
|
5
|
+
columnId: string;
|
|
6
|
+
rowspan?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
width?: string | number;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/** Renders a column header (`<th>`) instead of a body cell (`<td>`). */
|
|
12
|
+
header?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Rendered after the overflow-controlled content, outside its clipping contract — used by
|
|
15
|
+
* header cells for the sort-icon / header-cell-end slot, which must stay visible even when the
|
|
16
|
+
* label ellipsizes. Body cells don't pass this.
|
|
17
|
+
*/
|
|
18
|
+
endSlot?: ReactNode;
|
|
19
|
+
/** Drives the shared `data-overflow` attribute that both header and body overflow CSS key off. */
|
|
20
|
+
overflow?: DataGridTableColumnOverflow;
|
|
21
|
+
/**
|
|
22
|
+
* Whether `resolveColumnStyle` resolved a real, active `maxWidth` cap for this column (only
|
|
23
|
+
* possible under `tableLayout="auto"`). Drives `data-capped`, which the overflow CSS uses to
|
|
24
|
+
* enforce the cap for `wrap` too -- `nowrap` already reads the cap var directly (mode-agnostic)
|
|
25
|
+
* -- so the column never grows past `maxWidth` regardless of how it wraps.
|
|
26
|
+
*/
|
|
27
|
+
capped?: boolean;
|
|
28
|
+
title?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Ref onto the `.contentRow` wrapper -- used by `DataGridHeaderCell` to measure a
|
|
31
|
+
* `width: 'min-content'` column's natural content width, under either `tableLayout` (its own
|
|
32
|
+
* `inline-size: min-content` CSS below makes it shrink-wrap regardless of whatever width the
|
|
33
|
+
* `<th>` itself ends up with, so it's a safe, unstretched measurement target -- see
|
|
34
|
+
* `DataGridHeaderCell` for the ResizeObserver that reads it). Only rendered when `endSlot` is
|
|
35
|
+
* passed, which header cells always do; body cells never pass this ref.
|
|
36
|
+
*/
|
|
37
|
+
contentRowRef?: Ref<HTMLSpanElement>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this header cell's content should fill `.contentRow` instead of shrink-wrapping it,
|
|
40
|
+
* via `data-header-fill` (see data-grid-cell.module.css). Set by `DataGridHeaderCell` only for a
|
|
41
|
+
* custom `headerComponent` (e.g. a select-all checkbox) on a non-min-content column -- that kind
|
|
42
|
+
* of header needs to fill/center like a body cell rather than hug its own min-content width the
|
|
43
|
+
* way a default text label does. Body cells and min-content columns never set this (a min-content
|
|
44
|
+
* column's `.contentRow` doubles as its ResizeObserver measurement target and must keep
|
|
45
|
+
* shrink-wrapping).
|
|
46
|
+
*/
|
|
47
|
+
fillContent?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* When `true`, stamps `data-grid-row-ignore-click` onto the cell element so a plugin that reacts
|
|
50
|
+
* to row clicks can skip clicks anywhere in the cell. Set by extra columns that opt out of row
|
|
51
|
+
* clicks (e.g. a column holding a checkbox).
|
|
52
|
+
*/
|
|
53
|
+
ignoreRowClick?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare function DataGridCell<TItem extends DataGridItem = DataGridItem>({ columnId, rowspan, className, style, width, children, header, endSlot, overflow, capped, title, contentRowRef, fillContent, ignoreRowClick, }: DataGridCellProps): import("react").JSX.Element;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=data-grid-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-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|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function DataGridContent({ children }: DataGridContentProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=data-grid-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAEjE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { ExtraColumnPosition } from '../table-types';
|
|
3
|
+
interface DataGridExtraBodyColumnsProps {
|
|
4
|
+
position: ExtraColumnPosition;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridExtraBodyColumns<TItem extends DataGridItem = DataGridItem>({ position, }: DataGridExtraBodyColumnsProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-extra-body-columns.d.ts.map
|
package/dist/components/data-grid/services/table/components/data-grid-extra-body-columns.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-extra-body-columns.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-extra-body-columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,UAAU,6BAA6B;IACrC,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAED,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAAE,EAClF,QAAQ,GACT,EAAE,6BAA6B,+BAkB/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
3
|
+
import { ExtraColumn } from '../table-types';
|
|
4
|
+
interface DataGridExtraHeaderCellProps {
|
|
5
|
+
column: ExtraColumn;
|
|
6
|
+
rowspan?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function DataGridExtraHeaderCell<TItem extends DataGridItem>({ column, rowspan, className, children, }: DataGridExtraHeaderCellProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=data-grid-extra-header-cell.d.ts.map
|
package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-extra-header-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-extra-header-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,UAAU,4BAA4B;IACpC,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,SAAS,YAAY,EAAE,EAClE,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,4BAA4B,+BAgB9B"}
|
package/dist/components/data-grid/services/table/components/data-grid-extra-header-columns.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { ExtraColumnPosition } from '../table-types';
|
|
3
|
+
interface DataGridExtraHeaderColumnsProps {
|
|
4
|
+
position: ExtraColumnPosition;
|
|
5
|
+
isGroupRow?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function DataGridExtraHeaderColumns<TItem extends DataGridItem>({ position, isGroupRow, className, }: DataGridExtraHeaderColumnsProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=data-grid-extra-header-columns.d.ts.map
|
package/dist/components/data-grid/services/table/components/data-grid-extra-header-columns.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-extra-header-columns.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-extra-header-columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,UAAU,+BAA+B;IACvC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,0BAA0B,CAAC,KAAK,SAAS,YAAY,EAAE,EACrE,QAAQ,EACR,UAAU,EACV,SAAS,GACV,EAAE,+BAA+B,+BAsBjC"}
|
package/dist/components/data-grid/services/table/components/data-grid-header-cell-content.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface DataGridHeaderCellContentProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function DataGridHeaderCellContent({ children }: DataGridHeaderCellContentProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=data-grid-header-cell-content.d.ts.map
|
package/dist/components/data-grid/services/table/components/data-grid-header-cell-content.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-header-cell-content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-cell-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,8BAA8B;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE,8BAA8B,+BAErF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridTableColumn } from '../table-types';
|
|
3
|
+
interface DataGridHeaderCellLabelProps<TItem extends DataGridItem> {
|
|
4
|
+
column: DataGridTableColumn<TItem>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataGridHeaderCellLabel<TItem extends DataGridItem>({ column, }: DataGridHeaderCellLabelProps<TItem>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-grid-header-cell-label.d.ts.map
|
package/dist/components/data-grid/services/table/components/data-grid-header-cell-label.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-header-cell-label.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-cell-label.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,UAAU,4BAA4B,CAAC,KAAK,SAAS,YAAY;IAC/D,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;CACpC;AAED,wBAAgB,uBAAuB,CAAC,KAAK,SAAS,YAAY,EAAE,EAClE,MAAM,GACP,EAAE,4BAA4B,CAAC,KAAK,CAAC,+BAErC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataGridItem } from '../../../data-grid-types';
|
|
2
|
+
import { DataGridTableColumn, TableSlot } from '../table-types';
|
|
3
|
+
interface DataGridHeaderCellProps<TItem extends DataGridItem> {
|
|
4
|
+
column: DataGridTableColumn<TItem>;
|
|
5
|
+
rowspan?: number;
|
|
6
|
+
headerCellEndSlots: TableSlot[];
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function DataGridHeaderCell<TItem extends DataGridItem>({ column, rowspan, headerCellEndSlots, className, }: DataGridHeaderCellProps<TItem>): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=data-grid-header-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-header-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKrE,UAAU,uBAAuB,CAAC,KAAK,SAAS,YAAY;IAC1D,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC7D,MAAM,EACN,OAAO,EACP,kBAAkB,EAClB,SAAS,GACV,EAAE,uBAAuB,CAAC,KAAK,CAAC,+BAgHhC"}
|