@gears-frontx/ui-kit 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/actions.iasfkjWq.css +1 -0
- package/dist/chunks/create-column-auto-size.js +62 -0
- package/dist/chunks/create-column-auto-size.js.map +1 -0
- package/dist/chunks/data-grid-record-context.js +13 -0
- package/dist/chunks/data-grid-record-context.js.map +1 -0
- package/dist/chunks/data-grid.-6P4UQGJ.css +1 -0
- package/dist/chunks/debounce.js +17 -0
- package/dist/chunks/debounce.js.map +1 -0
- package/dist/chunks/empty.Cfg5lE0n.css +1 -0
- package/dist/chunks/filters.DcFdZpNG.css +1 -0
- package/dist/chunks/hooked.js +44 -0
- package/dist/chunks/hooked.js.map +1 -0
- package/dist/chunks/ignore-row-click.js +5 -0
- package/dist/chunks/ignore-row-click.js.map +1 -0
- package/dist/chunks/messages.js +34 -3
- package/dist/chunks/messages.js.map +1 -1
- package/dist/chunks/pagination.DPVITj_D.css +1 -0
- package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +1 -0
- package/dist/chunks/resolve-body-cell-props.js +140 -0
- package/dist/chunks/resolve-body-cell-props.js.map +1 -0
- package/dist/chunks/row-actions.BprAXgu2.css +1 -0
- package/dist/chunks/row-click.DAYTmSBO.css +1 -0
- package/dist/chunks/row-number.C7fNu9Bw.css +1 -0
- package/dist/chunks/row-select.BjKdiMf5.css +1 -0
- package/dist/chunks/table-configuration.a6C_fp7B.css +1 -0
- package/dist/chunks/table-context.js +8 -0
- package/dist/chunks/table-context.js.map +1 -0
- package/dist/chunks/table-types.js +11 -0
- package/dist/chunks/table-types.js.map +1 -0
- package/dist/chunks/table.Dmz7LEk7.css +1 -0
- package/dist/components/data-grid/components/filter-chip.d.ts +21 -0
- package/dist/components/data-grid/components/filter-chip.d.ts.map +1 -0
- package/dist/components/data-grid/components/filter-control-area.d.ts +9 -0
- package/dist/components/data-grid/components/filter-control-area.d.ts.map +1 -0
- package/dist/components/data-grid/components/filter-options-search-input.d.ts +11 -0
- package/dist/components/data-grid/components/filter-options-search-input.d.ts.map +1 -0
- package/dist/components/data-grid/components/filter-popover-content.d.ts +8 -0
- package/dist/components/data-grid/components/filter-popover-content.d.ts.map +1 -0
- package/dist/components/data-grid/components/filter-reset-button.d.ts +8 -0
- package/dist/components/data-grid/components/filter-reset-button.d.ts.map +1 -0
- package/dist/components/data-grid/components/filter-scrollable-wrapper.d.ts +8 -0
- package/dist/components/data-grid/components/filter-scrollable-wrapper.d.ts.map +1 -0
- package/dist/components/data-grid/messages.d.ts +31 -0
- package/dist/components/data-grid/messages.d.ts.map +1 -1
- package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts +4 -0
- package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions/actions-types.d.ts +11 -0
- package/dist/components/data-grid/plugins/actions/actions-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts +25 -0
- package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/actions-menu/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/adaptive-popover.d.ts +20 -0
- package/dist/components/data-grid/plugins/filters/components/adaptive-popover.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts +3 -0
- package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/all-filters-dialog.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/components/all-filters-dialog.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/dialog-filter-item.d.ts +9 -0
- package/dist/components/data-grid/plugins/filters/components/dialog-filter-item.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/filter-label.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/components/filter-label.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/filter-popover.d.ts +9 -0
- package/dist/components/data-grid/plugins/filters/components/filter-popover.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/filter-single.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/components/filter-single.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/components/filters-bar.d.ts +3 -0
- package/dist/components/data-grid/plugins/filters/components/filters-bar.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-dialog-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-dialog-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.d.ts +12 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-quick-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-quick-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/filter-checkbox-group.d.ts +20 -0
- package/dist/components/data-grid/plugins/filters/entities/checkbox-group/filter-checkbox-group.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-calendar.d.ts +17 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-calendar.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-dialog-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-dialog-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-quick-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-quick-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-selection.d.ts +16 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-selection.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-value.d.ts +19 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-value.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/filter-date-range.d.ts +16 -0
- package/dist/components/data-grid/plugins/filters/entities/date-range/filter-date-range.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/entities.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/entities.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/search/filter-search.d.ts +10 -0
- package/dist/components/data-grid/plugins/filters/entities/search/filter-search.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/search/search-quick-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/search/search-quick-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/filter-tag-group.d.ts +14 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/filter-tag-group.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-dialog-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-dialog-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.d.ts +11 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-quick-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-quick-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/toggle/filter-toggle.d.ts +10 -0
- package/dist/components/data-grid/plugins/filters/entities/toggle/filter-toggle.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/toggle/toggle-quick-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/toggle/toggle-quick-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/filter-tree.d.ts +20 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/filter-tree.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/resolve-filter-tree-value.d.ts +8 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/resolve-filter-tree-value.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-dialog-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-dialog-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-list.d.ts +12 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-list.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-quick-filter.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-quick-filter.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.d.ts +13 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/use-tree-search.d.ts +8 -0
- package/dist/components/data-grid/plugins/filters/entities/tree/use-tree-search.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/filters-plugin.d.ts +3 -0
- package/dist/components/data-grid/plugins/filters/filters-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/filters-types.d.ts +141 -0
- package/dist/components/data-grid/plugins/filters/filters-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/public.d.ts +11 -0
- package/dist/components/data-grid/plugins/filters/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/services/read-option-values.d.ts +7 -0
- package/dist/components/data-grid/plugins/filters/services/read-option-values.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/services/use-async-filter-search.d.ts +20 -0
- package/dist/components/data-grid/plugins/filters/services/use-async-filter-search.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/filters/services/use-filter-search.d.ts +12 -0
- package/dist/components/data-grid/plugins/filters/services/use-filter-search.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-actions/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts +6 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts +24 -0
- package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts +8 -0
- package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-click/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts +14 -0
- package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts +9 -0
- package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-number/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts +4 -0
- package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts +6 -0
- package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts +2 -0
- package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/row-select/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts +5 -0
- package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts +113 -0
- package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts +10 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts +10 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts +8 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts +3 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts +3 -0
- package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/public.d.ts +3 -0
- package/dist/components/data-grid/plugins/table-configuration/public.d.ts.map +1 -0
- package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts +5 -0
- package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts.map +1 -0
- package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts.map +1 -1
- package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts +2 -0
- package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts.map +1 -0
- package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
- package/dist/components/data-grid/services/table/table-sticky.d.ts +16 -0
- package/dist/components/data-grid/services/table/table-sticky.d.ts.map +1 -1
- package/dist/components/data-grid/tree/components/tree-actions.d.ts +7 -0
- package/dist/components/data-grid/tree/components/tree-actions.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-content.d.ts +3 -0
- package/dist/components/data-grid/tree/components/tree-content.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-layout-slot.d.ts +9 -0
- package/dist/components/data-grid/tree/components/tree-layout-slot.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-left-slot.d.ts +7 -0
- package/dist/components/data-grid/tree/components/tree-left-slot.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-list-item.d.ts +10 -0
- package/dist/components/data-grid/tree/components/tree-list-item.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-main.d.ts +3 -0
- package/dist/components/data-grid/tree/components/tree-main.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-node-content.d.ts +7 -0
- package/dist/components/data-grid/tree/components/tree-node-content.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-node-directory-item.d.ts +7 -0
- package/dist/components/data-grid/tree/components/tree-node-directory-item.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-node-leaf.d.ts +7 -0
- package/dist/components/data-grid/tree/components/tree-node-leaf.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-nodes.d.ts +7 -0
- package/dist/components/data-grid/tree/components/tree-nodes.d.ts.map +1 -0
- package/dist/components/data-grid/tree/components/tree-placeholder.d.ts +6 -0
- package/dist/components/data-grid/tree/components/tree-placeholder.d.ts.map +1 -0
- package/dist/components/data-grid/tree/create-tree.d.ts +5 -0
- package/dist/components/data-grid/tree/create-tree.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/core/tree-context.d.ts +21 -0
- package/dist/components/data-grid/tree/services/core/tree-context.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/focus/focus-service.d.ts +5 -0
- package/dist/components/data-grid/tree/services/focus/focus-service.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/focus/focus-types.d.ts +25 -0
- package/dist/components/data-grid/tree/services/focus/focus-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/focus/navigation-helpers.d.ts +27 -0
- package/dist/components/data-grid/tree/services/focus/navigation-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/hooked/hooked-types.d.ts +8 -0
- package/dist/components/data-grid/tree/services/hooked/hooked-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/hooked/hooked.d.ts +3 -0
- package/dist/components/data-grid/tree/services/hooked/hooked.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/internal/internal-helpers.d.ts +2 -0
- package/dist/components/data-grid/tree/services/internal/internal-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/layout/layout-service.d.ts +5 -0
- package/dist/components/data-grid/tree/services/layout/layout-service.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/layout/layout-types.d.ts +124 -0
- package/dist/components/data-grid/tree/services/layout/layout-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/plugins/plugins-helpers.d.ts +50 -0
- package/dist/components/data-grid/tree/services/plugins/plugins-helpers.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/plugins/plugins-service.d.ts +5 -0
- package/dist/components/data-grid/tree/services/plugins/plugins-service.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/plugins/plugins-types.d.ts +43 -0
- package/dist/components/data-grid/tree/services/plugins/plugins-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/settings/settings-service.d.ts +5 -0
- package/dist/components/data-grid/tree/services/settings/settings-service.d.ts.map +1 -0
- package/dist/components/data-grid/tree/services/settings/settings-types.d.ts +73 -0
- package/dist/components/data-grid/tree/services/settings/settings-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree/tree-types.d.ts +44 -0
- package/dist/components/data-grid/tree/tree-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree/tree.d.ts +4 -0
- package/dist/components/data-grid/tree/tree.d.ts.map +1 -0
- package/dist/components/data-grid/tree-structure/tree-structure-types.d.ts +89 -0
- package/dist/components/data-grid/tree-structure/tree-structure-types.d.ts.map +1 -0
- package/dist/components/data-grid/tree-structure/tree-structure.d.ts +19 -0
- package/dist/components/data-grid/tree-structure/tree-structure.d.ts.map +1 -0
- package/dist/components/data-grid/utils/components-stack.d.ts +12 -0
- package/dist/components/data-grid/utils/components-stack.d.ts.map +1 -0
- package/dist/components/data-grid/utils/use-is-tablet-up.d.ts +3 -0
- package/dist/components/data-grid/utils/use-is-tablet-up.d.ts.map +1 -0
- package/dist/components/table/table.d.ts +20 -3
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/data-grid/actions-menu.d.ts +1 -0
- package/dist/data-grid/actions-menu.js +57 -0
- package/dist/data-grid/actions-menu.js.map +1 -0
- package/dist/data-grid/actions.d.ts +1 -0
- package/dist/data-grid/actions.js +36 -0
- package/dist/data-grid/actions.js.map +1 -0
- package/dist/data-grid/filters.d.ts +1 -0
- package/dist/data-grid/filters.js +1634 -0
- package/dist/data-grid/filters.js.map +1 -0
- package/dist/data-grid/pagination.js +41 -40
- package/dist/data-grid/pagination.js.map +1 -1
- package/dist/data-grid/row-actions.d.ts +1 -0
- package/dist/data-grid/row-actions.js +52 -0
- package/dist/data-grid/row-actions.js.map +1 -0
- package/dist/data-grid/row-click.d.ts +1 -0
- package/dist/data-grid/row-click.js +69 -0
- package/dist/data-grid/row-click.js.map +1 -0
- package/dist/data-grid/row-number.d.ts +1 -0
- package/dist/data-grid/row-number.js +38 -0
- package/dist/data-grid/row-number.js.map +1 -0
- package/dist/data-grid/row-select.d.ts +1 -0
- package/dist/data-grid/row-select.js +293 -0
- package/dist/data-grid/row-select.js.map +1 -0
- package/dist/data-grid/table-configuration.d.ts +1 -0
- package/dist/data-grid/table-configuration.js +165 -0
- package/dist/data-grid/table-configuration.js.map +1 -0
- package/dist/data-grid/text-search.js +55 -67
- package/dist/data-grid/text-search.js.map +1 -1
- package/dist/data-grid.js +901 -1009
- package/dist/data-grid.js.map +1 -1
- package/dist/docs/data-grid.md +504 -11
- package/dist/docs/table.md +57 -2
- package/dist/empty.js +34 -34
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +418 -393
- package/dist/index.js.map +1 -1
- package/dist/table.js +114 -112
- package/dist/table.js.map +1 -1
- package/llms.txt +9 -7
- package/package.json +1 -1
- package/dist/chunks/data-grid.DIkpRRaf.css +0 -1
- package/dist/chunks/empty.DWqLrSfF.css +0 -1
- package/dist/chunks/pagination.BAAl9D_S.css +0 -1
- package/dist/chunks/table.CMm41tvy.css +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export interface ComponentsStackService {
|
|
3
|
+
registerComponent: (component: ComponentType) => void;
|
|
4
|
+
getStackedComponent: <TProps = unknown>() => ComponentType<TProps>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A stack of components that render the same element, merged into one when it is rendered. A
|
|
8
|
+
* component registered later wraps the ones before it, with the fallback at the bottom, so each
|
|
9
|
+
* can add behaviour or styling to the element without replacing it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createComponentsStack(fallbackComponent: ComponentType<any>): ComponentsStackService;
|
|
12
|
+
//# sourceMappingURL=components-stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components-stack.d.ts","sourceRoot":"","sources":["../../../../src/components/data-grid/utils/components-stack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,WAAW,sBAAsB;IACrC,iBAAiB,EAAE,CAAC,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IACtD,mBAAmB,EAAE,CAAC,MAAM,GAAG,OAAO,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;CACpE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAEnC,iBAAiB,EAAE,aAAa,CAAC,GAAG,CAAC,GACpC,sBAAsB,CAyBxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-is-tablet-up.d.ts","sourceRoot":"","sources":["../../../../src/components/data-grid/utils/use-is-tablet-up.ts"],"names":[],"mappings":"AAoBA,yFAAyF;AACzF,wBAAgB,aAAa,YAE5B"}
|
|
@@ -51,6 +51,12 @@ export declare function TableFooter({ className, ...props }: TableFooterProps):
|
|
|
51
51
|
export type TableRowProps = ComponentProps<'tr'>;
|
|
52
52
|
export declare function TableRow({ className, ...props }: TableRowProps): import("react").JSX.Element;
|
|
53
53
|
export interface TableHeadProps extends ComponentProps<'th'> {
|
|
54
|
+
/**
|
|
55
|
+
* Pins the cell to an inline edge so the other columns scroll under it. The offset is the
|
|
56
|
+
* caller's: give `insetInlineStart` or `insetInlineEnd` in `style`. See `TableCellProps.pinned`.
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
pinned?: boolean;
|
|
54
60
|
/**
|
|
55
61
|
* Renders a draggable, keyboard-resizable handle on the column's trailing
|
|
56
62
|
* edge. Off by default: the spec's own default is on, but turning it on
|
|
@@ -64,9 +70,20 @@ export interface TableHeadProps extends ComponentProps<'th'> {
|
|
|
64
70
|
*/
|
|
65
71
|
resizeMinWidth?: number;
|
|
66
72
|
}
|
|
67
|
-
export declare function TableHead({ className, resizable, resizeMinWidth, children, ...props }: TableHeadProps): import("react").JSX.Element;
|
|
68
|
-
export
|
|
69
|
-
|
|
73
|
+
export declare function TableHead({ className, pinned, resizable, resizeMinWidth, children, ...props }: TableHeadProps): import("react").JSX.Element;
|
|
74
|
+
export interface TableCellProps extends ComponentProps<'td'> {
|
|
75
|
+
/**
|
|
76
|
+
* Pins the cell to an inline edge, for a column that stays in view while the rest of a table
|
|
77
|
+
* wider than its wrapper scrolls under it. Table makes the cell sticky, stacks it above the
|
|
78
|
+
* cells beneath and fills it with the row's own fill over an opaque base (`--table-pinned-fill`,
|
|
79
|
+
* `--card` by default), so it follows hover, `data-state` and the rest of the row. The offset is
|
|
80
|
+
* the caller's: a column pins at the sum of the widths pinned before it, which only the caller
|
|
81
|
+
* knows, so give `insetInlineStart` or `insetInlineEnd` in `style`.
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
pinned?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export declare function TableCell({ className, pinned, ...props }: TableCellProps): import("react").JSX.Element;
|
|
70
87
|
/**
|
|
71
88
|
* A table's accessible name/description, kept as a real semantic caption
|
|
72
89
|
* regardless of where it's drawn — `.table`'s `caption-side: bottom` (see
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGlB,KAAK,GAAG,EAKT,MAAM,OAAO,CAAC;AAqYf,QAAA,MAAM,aAAa;;8EAejB,CAAC;AAEH,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAC7F;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACnC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,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AE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,MAAM,EACN,SAAS,EACT,cAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAOhB;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC1D;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAExE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAE1D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data-grid/plugins/actions-menu/public.js'
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { create as l } from "zustand";
|
|
3
|
+
import { u as I, c as f } from "../chunks/plugins-helpers.js";
|
|
4
|
+
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { EllipsisIcon as D } from "lucide-react";
|
|
6
|
+
import { m as S } from "../chunks/messages.js";
|
|
7
|
+
import { DropdownMenu as w, DropdownMenuTrigger as G, DropdownMenuContent as P } from "../dropdown-menu.js";
|
|
8
|
+
import { Button as x } from "../button.js";
|
|
9
|
+
function b() {
|
|
10
|
+
const c = I().getPlugin("actionsMenu").useMenuItems();
|
|
11
|
+
return /* @__PURE__ */ h(w, { children: [
|
|
12
|
+
/* @__PURE__ */ r(
|
|
13
|
+
G,
|
|
14
|
+
{
|
|
15
|
+
render: /* @__PURE__ */ r(
|
|
16
|
+
x,
|
|
17
|
+
{
|
|
18
|
+
variant: "ghost",
|
|
19
|
+
size: "sm",
|
|
20
|
+
icon: /* @__PURE__ */ r(D, {}),
|
|
21
|
+
"aria-label": S.actionsMenu.actions
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
/* @__PURE__ */ r(P, { side: "bottom", align: "end", children: c.map((s) => /* @__PURE__ */ r(s.component, { params: s.params }, s.id)) })
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
const T = f("actionsMenu", (u) => {
|
|
30
|
+
const n = l(() => ({
|
|
31
|
+
menuItems: []
|
|
32
|
+
}));
|
|
33
|
+
return u.registerSlot("top-end", {
|
|
34
|
+
id: "actionsMenu",
|
|
35
|
+
component: b,
|
|
36
|
+
order: 100
|
|
37
|
+
}), {
|
|
38
|
+
registerMenuItem: d,
|
|
39
|
+
useMenuItems: () => n((e) => e.menuItems),
|
|
40
|
+
onPropsChange: p
|
|
41
|
+
};
|
|
42
|
+
function d(e) {
|
|
43
|
+
const i = Math.random().toString(), t = n.getState().menuItems, o = e.order ?? (t.length + 1) * 10, a = { id: i, ...e, order: o }, m = [...t, a].sort((g, M) => g.order - M.order);
|
|
44
|
+
n.setState({ menuItems: m });
|
|
45
|
+
}
|
|
46
|
+
function p(e) {
|
|
47
|
+
const i = e.menuItems.map((t, o) => {
|
|
48
|
+
const a = Math.random().toString(), m = t.order ?? (o + 1) * 10;
|
|
49
|
+
return { id: a, ...t, order: m };
|
|
50
|
+
});
|
|
51
|
+
i.sort((t, o) => t.order - o.order), n.setState({ menuItems: i });
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
T as DataGridActionsMenuPlugin
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=actions-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-menu.js","sources":["../../src/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.tsx","../../src/components/data-grid/plugins/actions-menu/actions-menu-plugin.tsx"],"sourcesContent":["import { EllipsisIcon } from 'lucide-react';\n\nimport { Button } from '../../../../button/public.js';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuTrigger,\n} from '../../../../dropdown-menu/public.js';\nimport { messages } from '../../../messages';\nimport { useDataGrid } from '../../../services/core/data-grid-context';\nimport type { DataGridActionsMenuPluginApi } from '../actions-menu-types';\n\nexport function DataGridActionsMenu() {\n const grid = useDataGrid();\n const actionsMenu = grid.getPlugin<DataGridActionsMenuPluginApi>('actionsMenu')!;\n const menuItems = actionsMenu.useMenuItems();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<EllipsisIcon />}\n aria-label={messages.actionsMenu.actions}\n />\n }\n />\n <DropdownMenuContent side=\"bottom\" align=\"end\">\n {menuItems.map((menuItem) => (\n <menuItem.component key={menuItem.id} params={menuItem.params} />\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type {\n DataGridActionsMenuItem,\n DataGridActionsMenuItemOption,\n DataGridActionsMenuPluginApi,\n DataGridActionsMenuPluginProps,\n} from './actions-menu-types';\nimport { DataGridActionsMenu } from './components/data-grid-actions-menu';\n\ninterface ActionsMenuStore {\n menuItems: DataGridActionsMenuItem[];\n}\n\nexport const DataGridActionsMenuPlugin = createDataGridPlugin<\n DataGridItem,\n 'actionsMenu',\n DataGridActionsMenuPluginProps,\n DataGridActionsMenuPluginApi\n>('actionsMenu', (context) => {\n const useStore = create<ActionsMenuStore>(() => ({\n menuItems: [],\n }));\n\n context.registerSlot('top-end', {\n id: 'actionsMenu',\n component: DataGridActionsMenu,\n order: 100,\n });\n\n const useMenuItems = () => useStore((s) => s.menuItems);\n\n const api: DataGridActionsMenuPluginApi = {\n registerMenuItem,\n useMenuItems,\n onPropsChange,\n };\n\n return api;\n\n function registerMenuItem(options: DataGridActionsMenuItemOption) {\n const id = Math.random().toString();\n const currentItems = useStore.getState().menuItems;\n const order = options.order ?? (currentItems.length + 1) * 10;\n const newMenuItem = { id, ...options, order };\n const updatedItems = [...currentItems, newMenuItem].sort((a, b) => a.order - b.order);\n useStore.setState({ menuItems: updatedItems });\n }\n\n function onPropsChange(props: DataGridActionsMenuPluginProps) {\n const items: DataGridActionsMenuItem[] = props.menuItems.map((options, index) => {\n const id = Math.random().toString();\n const order = options.order ?? (index + 1) * 10;\n return { id, ...options, order } satisfies DataGridActionsMenuItem;\n });\n items.sort((a, b) => a.order - b.order);\n useStore.setState({ menuItems: items });\n }\n});\n"],"names":["DataGridActionsMenu","menuItems","useDataGrid","DropdownMenu","jsx","DropdownMenuTrigger","Button","EllipsisIcon","messages","DropdownMenuContent","menuItem","DataGridActionsMenuPlugin","createDataGridPlugin","context","useStore","create","registerMenuItem","s","onPropsChange","options","id","currentItems","order","newMenuItem","updatedItems","a","b","props","items","index"],"mappings":";;;;;;;;AAYO,SAASA,IAAsB;AAGpC,QAAMC,IAFOC,EAAA,EACY,UAAwC,aAAa,EAChD,aAAA;AAE9B,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QACE,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,wBAAOC,GAAA,EAAa;AAAA,YACpB,cAAYC,EAAS,YAAY;AAAA,UAAA;AAAA,QAAA;AAAA,MACnC;AAAA,IAAA;AAAA,IA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S,SAAS,EAAE,WAAWc,EAAA,CAAO;AAAA,EACxC;AACF,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data-grid/plugins/actions/public.js'
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { create as c } from "zustand";
|
|
3
|
+
import { u as i, c as a } from "../chunks/plugins-helpers.js";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
import '../chunks/actions.iasfkjWq.css';const u = "_wrapper_18zhb_1", m = {
|
|
6
|
+
wrapper: u
|
|
7
|
+
};
|
|
8
|
+
function d() {
|
|
9
|
+
const o = i().getPlugin("actions"), t = o.useComponent(), e = o.useProps();
|
|
10
|
+
return t ? /* @__PURE__ */ s("div", { className: m.wrapper, children: /* @__PURE__ */ s(t, { ...e }) }) : null;
|
|
11
|
+
}
|
|
12
|
+
const C = a("actions", (r) => {
|
|
13
|
+
const o = c(() => ({
|
|
14
|
+
component: null,
|
|
15
|
+
props: void 0
|
|
16
|
+
}));
|
|
17
|
+
return r.registerSlot("top-end", {
|
|
18
|
+
id: "actions",
|
|
19
|
+
component: d,
|
|
20
|
+
order: 0
|
|
21
|
+
}), {
|
|
22
|
+
useComponent: () => o((n) => n.component),
|
|
23
|
+
useProps: () => o((n) => n.props),
|
|
24
|
+
onPropsChange: p
|
|
25
|
+
};
|
|
26
|
+
function p(n) {
|
|
27
|
+
o.setState({
|
|
28
|
+
component: n.component,
|
|
29
|
+
props: n.props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
C as DataGridActionsPlugin
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sources":["../../src/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.tsx","../../src/components/data-grid/plugins/actions/actions-plugin.tsx"],"sourcesContent":["import { useDataGrid } from '../../../services/core/data-grid-context';\nimport type { DataGridActionsPluginApi } from '../actions-types';\nimport styles from './data-grid-actions-wrapper.module.css';\n\nexport function DataGridActionsWrapper() {\n const grid = useDataGrid();\n const actions = grid.getPlugin<DataGridActionsPluginApi>('actions')!;\n\n const ActionComponent = actions.useComponent();\n const actionProps = actions.useProps();\n\n if (!ActionComponent) {\n return null;\n }\n\n return (\n <div className={styles.wrapper}>\n {/* eslint-disable-next-line react-hooks/static-components -- ActionComponent is the consumer's component held in the plugin's store, so it is the same component on every render; the rule cannot see through the store. */}\n <ActionComponent {...actionProps} />\n </div>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport type { ComponentType } from 'react';\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type { DataGridActionsPluginApi, DataGridActionsPluginProps } from './actions-types';\nimport { DataGridActionsWrapper } from './components/data-grid-actions-wrapper';\n\nexport type { DataGridActionsPluginApi, DataGridActionsPluginProps };\n\ninterface ActionsStore {\n component: ComponentType | null;\n props?: Record<string, unknown>;\n}\n\nexport const DataGridActionsPlugin = createDataGridPlugin<\n DataGridItem,\n 'actions',\n DataGridActionsPluginProps\n>('actions', (context) => {\n const useStore = create<ActionsStore>(() => ({\n component: null,\n props: undefined,\n }));\n\n context.registerSlot('top-end', {\n id: 'actions',\n component: DataGridActionsWrapper,\n order: 0,\n });\n\n const useComponent = () => useStore((s) => s.component);\n const useProps = () => useStore((s) => s.props);\n\n const api: DataGridActionsPluginApi = {\n useComponent,\n useProps,\n onPropsChange,\n };\n\n return api;\n\n function onPropsChange(props: DataGridActionsPluginProps) {\n useStore.setState({\n component: props.component,\n props: props.props,\n });\n }\n});\n"],"names":["DataGridActionsWrapper","actions","useDataGrid","ActionComponent","actionProps","jsx","styles","DataGridActionsPlugin","createDataGridPlugin","context","useStore","create","s","onPropsChange","props"],"mappings":";;;;;;;AAIO,SAASA,IAAyB;AAEvC,QAAMC,IADOC,EAAA,EACQ,UAAoC,SAAS,GAE5DC,IAAkBF,EAAQ,aAAA,GAC1BG,IAAcH,EAAQ,SAAA;AAE5B,SAAKE,IAKH,gBAAAE,EAAC,SAAI,WAAWC,EAAO,SAErB,UAAA,gBAAAD,EAACF,GAAA,EAAiB,GAAGC,EAAA,CAAa,EAAA,CACpC,IAPO;AASX;ACAO,MAAMG,IAAwBC,EAInC,WAAW,CAACC,MAAY;AACxB,QAAMC,IAAWC,EAAqB,OAAO;AAAA,IAC3C,WAAW;AAAA,IACX,OAAO;AAAA,EAAA,EACP;AAEF,SAAAF,EAAQ,aAAa,WAAW;AAAA,IAC9B,IAAI;AAAA,IACJ,WAAWT;AAAA,IACX,OAAO;AAAA,EAAA,CACR,GAKqC;AAAA,IACpC,cAJmB,MAAMU,EAAS,CAACE,MAAMA,EAAE,SAAS;AAAA,IAKpD,UAJe,MAAMF,EAAS,CAACE,MAAMA,EAAE,KAAK;AAAA,IAK5C,eAAAC;AAAA,EAAA;AAKF,WAASA,EAAcC,GAAmC;AACxD,IAAAJ,EAAS,SAAS;AAAA,MAChB,WAAWI,EAAM;AAAA,MACjB,OAAOA,EAAM;AAAA,IAAA,CACd;AAAA,EACH;AACF,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data-grid/plugins/filters/public.js'
|