@1771technologies/lytenyte-pro 1.0.11 → 1.0.12-dev.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/package.json +7 -7
- package/dist/+types.d.ts +0 -5836
- package/dist/+types.js +0 -1
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +0 -2
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +0 -43
- package/dist/cell-selection/are-rects-equal.d.ts +0 -2
- package/dist/cell-selection/are-rects-equal.js +0 -6
- package/dist/cell-selection/bound-selection-rect.d.ts +0 -2
- package/dist/cell-selection/bound-selection-rect.js +0 -17
- package/dist/cell-selection/cell-selection-containers.d.ts +0 -3
- package/dist/cell-selection/cell-selection-containers.js +0 -91
- package/dist/cell-selection/cell-selection-driver.d.ts +0 -1
- package/dist/cell-selection/cell-selection-driver.js +0 -281
- package/dist/cell-selection/cell-style-row.d.ts +0 -8
- package/dist/cell-selection/cell-style-row.js +0 -84
- package/dist/cell-selection/deselect-rect-range.d.ts +0 -2
- package/dist/cell-selection/deselect-rect-range.js +0 -43
- package/dist/cell-selection/expand-cell-selection-down.d.ts +0 -5
- package/dist/cell-selection/expand-cell-selection-down.js +0 -39
- package/dist/cell-selection/expand-cell-selection-end.d.ts +0 -5
- package/dist/cell-selection/expand-cell-selection-end.js +0 -40
- package/dist/cell-selection/expand-cell-selection-start.d.ts +0 -5
- package/dist/cell-selection/expand-cell-selection-start.js +0 -39
- package/dist/cell-selection/expand-cell-selection-up.d.ts +0 -5
- package/dist/cell-selection/expand-cell-selection-up.js +0 -39
- package/dist/cell-selection/full-width-start-end-index.d.ts +0 -2
- package/dist/cell-selection/full-width-start-end-index.js +0 -5
- package/dist/cell-selection/get-root-cell.d.ts +0 -2
- package/dist/cell-selection/get-root-cell.js +0 -6
- package/dist/cell-selection/index.d.ts +0 -18
- package/dist/cell-selection/index.js +0 -18
- package/dist/cell-selection/is-bottom-rect.d.ts +0 -2
- package/dist/cell-selection/is-bottom-rect.js +0 -7
- package/dist/cell-selection/is-center-col-rect.d.ts +0 -5
- package/dist/cell-selection/is-center-col-rect.js +0 -5
- package/dist/cell-selection/is-center-rect.d.ts +0 -2
- package/dist/cell-selection/is-center-rect.js +0 -5
- package/dist/cell-selection/is-end-rect.d.ts +0 -5
- package/dist/cell-selection/is-end-rect.js +0 -4
- package/dist/cell-selection/is-overlapping-rect.d.ts +0 -2
- package/dist/cell-selection/is-overlapping-rect.js +0 -6
- package/dist/cell-selection/is-start-rect.d.ts +0 -5
- package/dist/cell-selection/is-start-rect.js +0 -4
- package/dist/cell-selection/is-top-rect.d.ts +0 -2
- package/dist/cell-selection/is-top-rect.js +0 -4
- package/dist/cell-selection/is-within-selection-rect.d.ts +0 -2
- package/dist/cell-selection/is-within-selection-rect.js +0 -3
- package/dist/cell-selection/split-cell-selection-rect.d.ts +0 -46
- package/dist/cell-selection/split-cell-selection-rect.js +0 -88
- package/dist/cell-selection/split-on-pivot.d.ts +0 -3
- package/dist/cell-selection/split-on-pivot.js +0 -50
- package/dist/cell-selection/update-additive-cell-selection.d.ts +0 -5
- package/dist/cell-selection/update-additive-cell-selection.js +0 -23
- package/dist/cell-selection/use-edge-scroll.d.ts +0 -10
- package/dist/cell-selection/use-edge-scroll.js +0 -66
- package/dist/cells/+types.cell.d.ts +0 -13
- package/dist/cells/+types.cell.js +0 -1
- package/dist/cells/cell-default.d.ts +0 -2
- package/dist/cells/cell-default.js +0 -8
- package/dist/cells/cell-editor.d.ts +0 -6
- package/dist/cells/cell-editor.js +0 -103
- package/dist/cells/cell-spacer.d.ts +0 -9
- package/dist/cells/cell-spacer.js +0 -34
- package/dist/cells/cell.d.ts +0 -5
- package/dist/cells/cell.js +0 -43
- package/dist/cells/use-cell-style.d.ts +0 -3
- package/dist/cells/use-cell-style.js +0 -51
- package/dist/column-manager/branch-lookup-context.d.ts +0 -4
- package/dist/column-manager/branch-lookup-context.js +0 -3
- package/dist/column-manager/branch.d.ts +0 -15
- package/dist/column-manager/branch.js +0 -54
- package/dist/column-manager/column-manager.d.ts +0 -13
- package/dist/column-manager/column-manager.js +0 -18
- package/dist/column-manager/context.d.ts +0 -7
- package/dist/column-manager/context.js +0 -3
- package/dist/column-manager/label.d.ts +0 -5
- package/dist/column-manager/label.js +0 -18
- package/dist/column-manager/leaf.d.ts +0 -6
- package/dist/column-manager/leaf.js +0 -58
- package/dist/column-manager/move-handle.d.ts +0 -5
- package/dist/column-manager/move-handle.js +0 -73
- package/dist/column-manager/panel.d.ts +0 -1
- package/dist/column-manager/panel.js +0 -2
- package/dist/column-manager/root.d.ts +0 -8
- package/dist/column-manager/root.js +0 -7
- package/dist/column-manager/use-column-manager.d.ts +0 -10
- package/dist/column-manager/use-column-manager.js +0 -24
- package/dist/column-manager/use-columns-from-context.d.ts +0 -3
- package/dist/column-manager/use-columns-from-context.js +0 -23
- package/dist/column-manager/visibility-checkbox.d.ts +0 -9
- package/dist/column-manager/visibility-checkbox.js +0 -30
- package/dist/context.d.ts +0 -10
- package/dist/context.js +0 -4
- package/dist/filter-tree/branch.d.ts +0 -13
- package/dist/filter-tree/branch.js +0 -21
- package/dist/filter-tree/context.d.ts +0 -27
- package/dist/filter-tree/context.js +0 -5
- package/dist/filter-tree/filter-tree.d.ts +0 -14
- package/dist/filter-tree/filter-tree.js +0 -18
- package/dist/filter-tree/hooks/use-filter-tree.d.ts +0 -38
- package/dist/filter-tree/hooks/use-filter-tree.js +0 -101
- package/dist/filter-tree/hooks/use-tree-item.d.ts +0 -8
- package/dist/filter-tree/hooks/use-tree-item.js +0 -116
- package/dist/filter-tree/inclusion-checkbox.d.ts +0 -9
- package/dist/filter-tree/inclusion-checkbox.js +0 -14
- package/dist/filter-tree/label.d.ts +0 -5
- package/dist/filter-tree/label.js +0 -18
- package/dist/filter-tree/leaf.d.ts +0 -6
- package/dist/filter-tree/leaf.js +0 -14
- package/dist/filter-tree/root.d.ts +0 -13
- package/dist/filter-tree/root.js +0 -30
- package/dist/grid-box/+types.d.ts +0 -15
- package/dist/grid-box/+types.js +0 -1
- package/dist/grid-box/context.d.ts +0 -9
- package/dist/grid-box/context.js +0 -3
- package/dist/grid-box/grid-box.d.ts +0 -12
- package/dist/grid-box/grid-box.js +0 -14
- package/dist/grid-box/item.d.ts +0 -10
- package/dist/grid-box/item.js +0 -63
- package/dist/grid-box/panel.d.ts +0 -1
- package/dist/grid-box/panel.js +0 -9
- package/dist/grid-box/root.d.ts +0 -9
- package/dist/grid-box/root.js +0 -8
- package/dist/grid-box/use-aggregation-box-items.d.ts +0 -18
- package/dist/grid-box/use-aggregation-box-items.js +0 -61
- package/dist/grid-box/use-column-box-items.d.ts +0 -34
- package/dist/grid-box/use-column-box-items.js +0 -78
- package/dist/grid-box/use-row-group-box-items.d.ts +0 -18
- package/dist/grid-box/use-row-group-box-items.js +0 -169
- package/dist/grid-provider/context.d.ts +0 -5
- package/dist/grid-provider/context.js +0 -2
- package/dist/grid-provider/provider.d.ts +0 -3
- package/dist/grid-provider/provider.js +0 -2
- package/dist/grid-provider/use-grid.d.ts +0 -3
- package/dist/grid-provider/use-grid.js +0 -3
- package/dist/grid.d.ts +0 -18
- package/dist/grid.js +0 -28
- package/dist/header/header-cell.d.ts +0 -10
- package/dist/header/header-cell.js +0 -24
- package/dist/header/header-group-cell.d.ts +0 -5
- package/dist/header/header-group-cell.js +0 -16
- package/dist/header/header-row.d.ts +0 -4
- package/dist/header/header-row.js +0 -10
- package/dist/header/header.d.ts +0 -1
- package/dist/header/header.js +0 -10
- package/dist/header/resize-handler.d.ts +0 -12
- package/dist/header/resize-handler.js +0 -139
- package/dist/header/use-drag-move.d.ts +0 -14
- package/dist/header/use-drag-move.js +0 -97
- package/dist/header/use-header-cell-renderer.d.ts +0 -4
- package/dist/header/use-header-cell-renderer.js +0 -36
- package/dist/icons/index.d.ts +0 -1
- package/dist/icons/index.js +0 -3
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -13
- package/dist/license.d.ts +0 -3
- package/dist/license.js +0 -214
- package/dist/listbox/context.d.ts +0 -6
- package/dist/listbox/context.js +0 -3
- package/dist/listbox/item.d.ts +0 -1
- package/dist/listbox/item.js +0 -25
- package/dist/listbox/panel.d.ts +0 -1
- package/dist/listbox/panel.js +0 -50
- package/dist/listbox/root.d.ts +0 -6
- package/dist/listbox/root.js +0 -12
- package/dist/root/dialog-driver.d.ts +0 -1
- package/dist/root/dialog-driver.js +0 -21
- package/dist/root/popover-driver.d.ts +0 -1
- package/dist/root/popover-driver.js +0 -21
- package/dist/root/root.d.ts +0 -8
- package/dist/root/root.js +0 -125
- package/dist/row-data-source-client/+constants.d.ts +0 -2
- package/dist/row-data-source-client/+constants.js +0 -2
- package/dist/row-data-source-client/+types.d.ts +0 -27
- package/dist/row-data-source-client/+types.js +0 -1
- package/dist/row-data-source-client/built-ins/avg.d.ts +0 -10
- package/dist/row-data-source-client/built-ins/avg.js +0 -16
- package/dist/row-data-source-client/built-ins/built-ins.d.ts +0 -44
- package/dist/row-data-source-client/built-ins/built-ins.js +0 -44
- package/dist/row-data-source-client/built-ins/count.d.ts +0 -10
- package/dist/row-data-source-client/built-ins/count.js +0 -16
- package/dist/row-data-source-client/built-ins/first.d.ts +0 -10
- package/dist/row-data-source-client/built-ins/first.js +0 -12
- package/dist/row-data-source-client/built-ins/group.d.ts +0 -1
- package/dist/row-data-source-client/built-ins/group.js +0 -3
- package/dist/row-data-source-client/built-ins/last.d.ts +0 -10
- package/dist/row-data-source-client/built-ins/last.js +0 -12
- package/dist/row-data-source-client/built-ins/max.d.ts +0 -11
- package/dist/row-data-source-client/built-ins/max.js +0 -25
- package/dist/row-data-source-client/built-ins/min.d.ts +0 -11
- package/dist/row-data-source-client/built-ins/min.js +0 -25
- package/dist/row-data-source-client/built-ins/sum.d.ts +0 -10
- package/dist/row-data-source-client/built-ins/sum.js +0 -21
- package/dist/row-data-source-client/filter/+types.d.ts +0 -23
- package/dist/row-data-source-client/filter/+types.js +0 -1
- package/dist/row-data-source-client/filter/compute-filtered-rows.d.ts +0 -2
- package/dist/row-data-source-client/filter/compute-filtered-rows.js +0 -109
- package/dist/row-data-source-client/pivots/create-agg-model.d.ts +0 -6
- package/dist/row-data-source-client/pivots/create-agg-model.js +0 -13
- package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.d.ts +0 -2
- package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.js +0 -50
- package/dist/row-data-source-client/pivots/create-pivot-columns.d.ts +0 -2
- package/dist/row-data-source-client/pivots/create-pivot-columns.js +0 -22
- package/dist/row-data-source-client/pivots/create-pivot-tree.d.ts +0 -2
- package/dist/row-data-source-client/pivots/create-pivot-tree.js +0 -23
- package/dist/row-data-source-client/tree/client-tree.d.ts +0 -18
- package/dist/row-data-source-client/tree/client-tree.js +0 -76
- package/dist/row-data-source-client/tree/evaluator-aggregation.d.ts +0 -2
- package/dist/row-data-source-client/tree/evaluator-aggregation.js +0 -8
- package/dist/row-data-source-client/tree/evaluator-group.d.ts +0 -2
- package/dist/row-data-source-client/tree/evaluator-group.js +0 -9
- package/dist/row-data-source-client/tree/traverse.d.ts +0 -2
- package/dist/row-data-source-client/tree/traverse.js +0 -22
- package/dist/row-data-source-client/use-client-data-source-paginated.d.ts +0 -10
- package/dist/row-data-source-client/use-client-data-source-paginated.js +0 -572
- package/dist/row-data-source-client/use-client-data-source.d.ts +0 -10
- package/dist/row-data-source-client/use-client-data-source.js +0 -666
- package/dist/row-data-source-client/use-client-tree-data-source.d.ts +0 -9
- package/dist/row-data-source-client/use-client-tree-data-source.js +0 -511
- package/dist/row-data-source-server/async-tree/+constants.async-tree.d.ts +0 -1
- package/dist/row-data-source-server/async-tree/+constants.async-tree.js +0 -1
- package/dist/row-data-source-server/async-tree/+types.async-tree.d.ts +0 -59
- package/dist/row-data-source-server/async-tree/+types.async-tree.js +0 -1
- package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.js +0 -27
- package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.js +0 -36
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.js +0 -24
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.js +0 -14
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.js +0 -18
- package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.js +0 -14
- package/dist/row-data-source-server/async-tree/get-parent-node-by-path.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/get-parent-node-by-path.js +0 -18
- package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.js +0 -3
- package/dist/row-data-source-server/async-tree/make-async-tree.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/make-async-tree.js +0 -19
- package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.js +0 -8
- package/dist/row-data-source-server/async-tree/maybe-apply-resize.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/maybe-apply-resize.js +0 -17
- package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.d.ts +0 -2
- package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.js +0 -52
- package/dist/row-data-source-server/range-tree/range-tree.d.ts +0 -66
- package/dist/row-data-source-server/range-tree/range-tree.js +0 -102
- package/dist/row-data-source-server/server-data.d.ts +0 -48
- package/dist/row-data-source-server/server-data.js +0 -378
- package/dist/row-data-source-server/use-server-data-source.d.ts +0 -3
- package/dist/row-data-source-server/use-server-data-source.js +0 -344
- package/dist/row-data-source-server/utils/get-node-depth.d.ts +0 -2
- package/dist/row-data-source-server/utils/get-node-depth.js +0 -9
- package/dist/row-data-source-server/utils/get-node-path.d.ts +0 -2
- package/dist/row-data-source-server/utils/get-node-path.js +0 -9
- package/dist/row-data-source-server/utils/get-request-id.d.ts +0 -1
- package/dist/row-data-source-server/utils/get-request-id.js +0 -6
- package/dist/rows/row/context.d.ts +0 -14
- package/dist/rows/row/context.js +0 -13
- package/dist/rows/row/row.d.ts +0 -7
- package/dist/rows/row/row.js +0 -25
- package/dist/rows/row/use-row-context-value.d.ts +0 -6
- package/dist/rows/row/use-row-context-value.js +0 -44
- package/dist/rows/row-detail-row.d.ts +0 -4
- package/dist/rows/row-detail-row.js +0 -130
- package/dist/rows/row-full-width.d.ts +0 -8
- package/dist/rows/row-full-width.js +0 -19
- package/dist/rows/rows-container.d.ts +0 -1
- package/dist/rows/rows-container.js +0 -9
- package/dist/rows/rows-sections.d.ts +0 -3
- package/dist/rows/rows-sections.js +0 -27
- package/dist/rows/scrollers/native-scroller.d.ts +0 -2
- package/dist/rows/scrollers/native-scroller.js +0 -4
- package/dist/sort-manager/+types.d.ts +0 -13
- package/dist/sort-manager/+types.js +0 -1
- package/dist/sort-manager/context.d.ts +0 -14
- package/dist/sort-manager/context.js +0 -5
- package/dist/sort-manager/hooks/use-sort-manager.d.ts +0 -15
- package/dist/sort-manager/hooks/use-sort-manager.js +0 -56
- package/dist/sort-manager/hooks/use-sort-row-item.d.ts +0 -51
- package/dist/sort-manager/hooks/use-sort-row-item.js +0 -145
- package/dist/sort-manager/hooks/use-sortable-column-items.d.ts +0 -5
- package/dist/sort-manager/hooks/use-sortable-column-items.js +0 -13
- package/dist/sort-manager/root.d.ts +0 -3
- package/dist/sort-manager/root.js +0 -14
- package/dist/sort-manager/sort-add.d.ts +0 -8
- package/dist/sort-manager/sort-add.js +0 -14
- package/dist/sort-manager/sort-apply.d.ts +0 -7
- package/dist/sort-manager/sort-apply.js +0 -24
- package/dist/sort-manager/sort-cancel.d.ts +0 -7
- package/dist/sort-manager/sort-cancel.js +0 -27
- package/dist/sort-manager/sort-clear.d.ts +0 -7
- package/dist/sort-manager/sort-clear.js +0 -22
- package/dist/sort-manager/sort-column-select.d.ts +0 -10
- package/dist/sort-manager/sort-column-select.js +0 -20
- package/dist/sort-manager/sort-direction-select.d.ts +0 -10
- package/dist/sort-manager/sort-direction-select.js +0 -24
- package/dist/sort-manager/sort-manager.d.ts +0 -16
- package/dist/sort-manager/sort-manager.js +0 -26
- package/dist/sort-manager/sort-remove.d.ts +0 -7
- package/dist/sort-manager/sort-remove.js +0 -14
- package/dist/sort-manager/sort-row.d.ts +0 -5
- package/dist/sort-manager/sort-row.js +0 -7
- package/dist/sort-manager/sort-rows.d.ts +0 -1
- package/dist/sort-manager/sort-rows.js +0 -6
- package/dist/sort-manager/sort-value-select.d.ts +0 -11
- package/dist/sort-manager/sort-value-select.js +0 -25
- package/dist/sort-manager/utils/sort-item-to-sort-model.d.ts +0 -3
- package/dist/sort-manager/utils/sort-item-to-sort-model.js +0 -62
- package/dist/sort-manager/utils/sort-model-to-sort-items.d.ts +0 -3
- package/dist/sort-manager/utils/sort-model-to-sort-items.js +0 -50
- package/dist/state/+types.d.ts +0 -35
- package/dist/state/+types.js +0 -1
- package/dist/state/api/cell-root.d.ts +0 -5
- package/dist/state/api/cell-root.js +0 -64
- package/dist/state/api/column-autosize.d.ts +0 -5
- package/dist/state/api/column-autosize.js +0 -72
- package/dist/state/api/column-by-id.d.ts +0 -2
- package/dist/state/api/column-by-id.js +0 -6
- package/dist/state/api/column-field.d.ts +0 -2
- package/dist/state/api/column-field.js +0 -23
- package/dist/state/api/column-from-index.d.ts +0 -2
- package/dist/state/api/column-from-index.js +0 -6
- package/dist/state/api/column-group-toggle.d.ts +0 -2
- package/dist/state/api/column-group-toggle.js +0 -10
- package/dist/state/api/column-index.d.ts +0 -2
- package/dist/state/api/column-index.js +0 -7
- package/dist/state/api/column-move.d.ts +0 -2
- package/dist/state/api/column-move.js +0 -49
- package/dist/state/api/column-resize.d.ts +0 -2
- package/dist/state/api/column-resize.js +0 -9
- package/dist/state/api/column-update.d.ts +0 -5
- package/dist/state/api/column-update.js +0 -26
- package/dist/state/api/dialog-frame.d.ts +0 -8
- package/dist/state/api/dialog-frame.js +0 -16
- package/dist/state/api/edit-begin.d.ts +0 -5
- package/dist/state/api/edit-begin.js +0 -87
- package/dist/state/api/edit-end.d.ts +0 -5
- package/dist/state/api/edit-end.js +0 -43
- package/dist/state/api/edit-is-cell-active.d.ts +0 -5
- package/dist/state/api/edit-is-cell-active.js +0 -22
- package/dist/state/api/edit-update.d.ts +0 -5
- package/dist/state/api/edit-update.js +0 -88
- package/dist/state/api/event-listeners.d.ts +0 -5
- package/dist/state/api/event-listeners.js +0 -19
- package/dist/state/api/export-csv.d.ts +0 -3
- package/dist/state/api/export-csv.js +0 -40
- package/dist/state/api/export-data-rect.d.ts +0 -2
- package/dist/state/api/export-data-rect.js +0 -24
- package/dist/state/api/focus-cell.d.ts +0 -5
- package/dist/state/api/focus-cell.js +0 -117
- package/dist/state/api/popover-frame.d.ts +0 -8
- package/dist/state/api/popover-frame.js +0 -16
- package/dist/state/api/position-from-element.d.ts +0 -2
- package/dist/state/api/position-from-element.js +0 -9
- package/dist/state/api/row-by-id.d.ts +0 -2
- package/dist/state/api/row-by-id.js +0 -5
- package/dist/state/api/row-by-index.d.ts +0 -2
- package/dist/state/api/row-by-index.js +0 -9
- package/dist/state/api/row-detail-is-expanded.d.ts +0 -2
- package/dist/state/api/row-detail-is-expanded.js +0 -6
- package/dist/state/api/row-detail-rendered-height.d.ts +0 -5
- package/dist/state/api/row-detail-rendered-height.js +0 -14
- package/dist/state/api/row-detail-toggle.d.ts +0 -2
- package/dist/state/api/row-detail-toggle.js +0 -32
- package/dist/state/api/row-group-apply-expansions.d.ts +0 -2
- package/dist/state/api/row-group-apply-expansions.js +0 -20
- package/dist/state/api/row-group-column-index.d.ts +0 -2
- package/dist/state/api/row-group-column-index.js +0 -14
- package/dist/state/api/row-group-is-expanded.d.ts +0 -2
- package/dist/state/api/row-group-is-expanded.js +0 -15
- package/dist/state/api/row-group-toggle.d.ts +0 -2
- package/dist/state/api/row-group-toggle.js +0 -7
- package/dist/state/api/row-handle-select.d.ts +0 -5
- package/dist/state/api/row-handle-select.js +0 -43
- package/dist/state/api/row-select-all.d.ts +0 -2
- package/dist/state/api/row-select-all.js +0 -17
- package/dist/state/api/row-select.d.ts +0 -5
- package/dist/state/api/row-select.js +0 -35
- package/dist/state/api/row-selected.d.ts +0 -2
- package/dist/state/api/row-selected.js +0 -13
- package/dist/state/api/scroll-into-view.d.ts +0 -5
- package/dist/state/api/scroll-into-view.js +0 -50
- package/dist/state/api/sort-for-column.d.ts +0 -2
- package/dist/state/api/sort-for-column.js +0 -9
- package/dist/state/api/use-row-drag.d.ts +0 -2
- package/dist/state/api/use-row-drag.js +0 -27
- package/dist/state/helpers/cell-row-group.d.ts +0 -2
- package/dist/state/helpers/cell-row-group.js +0 -19
- package/dist/state/helpers/column-add-row-group.d.ts +0 -10
- package/dist/state/helpers/column-add-row-group.js +0 -74
- package/dist/state/helpers/column-layout.d.ts +0 -3
- package/dist/state/helpers/column-layout.js +0 -59
- package/dist/state/helpers/column-marker.d.ts +0 -8
- package/dist/state/helpers/column-marker.js +0 -43
- package/dist/state/helpers/column-view.d.ts +0 -21
- package/dist/state/helpers/column-view.js +0 -33
- package/dist/state/helpers/edit-on-change.d.ts +0 -15
- package/dist/state/helpers/edit-on-change.js +0 -27
- package/dist/state/helpers/empty-row-data-source.d.ts +0 -2
- package/dist/state/helpers/empty-row-data-source.js +0 -18
- package/dist/state/helpers/get-data-rect.d.ts +0 -13
- package/dist/state/helpers/get-data-rect.js +0 -65
- package/dist/state/helpers/get-full-width-callback.d.ts +0 -2
- package/dist/state/helpers/get-full-width-callback.js +0 -10
- package/dist/state/helpers/get-span-callback.d.ts +0 -2
- package/dist/state/helpers/get-span-callback.js +0 -22
- package/dist/state/helpers/resolve-column.d.ts +0 -4
- package/dist/state/helpers/resolve-column.js +0 -29
- package/dist/state/helpers/row-layout/get-focus-criteria.d.ts +0 -17
- package/dist/state/helpers/row-layout/get-focus-criteria.js +0 -62
- package/dist/state/helpers/row-layout/row-layout.d.ts +0 -19
- package/dist/state/helpers/row-layout/row-layout.js +0 -181
- package/dist/state/use-lytenyte.d.ts +0 -3
- package/dist/state/use-lytenyte.js +0 -673
- package/dist/tree-view/branch/branch.d.ts +0 -14
- package/dist/tree-view/branch/branch.js +0 -63
- package/dist/tree-view/branch/use-branch-keys.d.ts +0 -2
- package/dist/tree-view/branch/use-branch-keys.js +0 -87
- package/dist/tree-view/context.d.ts +0 -22
- package/dist/tree-view/context.js +0 -3
- package/dist/tree-view/depth-provider.d.ts +0 -2
- package/dist/tree-view/depth-provider.js +0 -3
- package/dist/tree-view/hooks/use-tree-view-paths.d.ts +0 -2
- package/dist/tree-view/hooks/use-tree-view-paths.js +0 -9
- package/dist/tree-view/index.d.ts +0 -16
- package/dist/tree-view/index.js +0 -16
- package/dist/tree-view/leaf.d.ts +0 -4
- package/dist/tree-view/leaf.js +0 -28
- package/dist/tree-view/navigation/get-all-ids.d.ts +0 -1
- package/dist/tree-view/navigation/get-all-ids.js +0 -7
- package/dist/tree-view/navigation/get-first-node.d.ts +0 -1
- package/dist/tree-view/navigation/get-first-node.js +0 -7
- package/dist/tree-view/navigation/get-last-node.d.ts +0 -1
- package/dist/tree-view/navigation/get-last-node.js +0 -7
- package/dist/tree-view/navigation/get-next-node.d.ts +0 -1
- package/dist/tree-view/navigation/get-next-node.js +0 -13
- package/dist/tree-view/navigation/get-prev-node.d.ts +0 -1
- package/dist/tree-view/navigation/get-prev-node.js +0 -13
- package/dist/tree-view/panel/make-handle-navigation.d.ts +0 -2
- package/dist/tree-view/panel/make-handle-navigation.js +0 -39
- package/dist/tree-view/panel/make-handle-selection.d.ts +0 -2
- package/dist/tree-view/panel/make-handle-selection.js +0 -92
- package/dist/tree-view/panel/make-handle-typeahead.d.ts +0 -1
- package/dist/tree-view/panel/make-handle-typeahead.js +0 -45
- package/dist/tree-view/panel/panel.d.ts +0 -1
- package/dist/tree-view/panel/panel.js +0 -30
- package/dist/tree-view/panel/use-tree-navigation.d.ts +0 -1
- package/dist/tree-view/panel/use-tree-navigation.js +0 -63
- package/dist/tree-view/root.d.ts +0 -17
- package/dist/tree-view/root.js +0 -63
- package/dist/tree-view/utils/get-focusable-nodes.d.ts +0 -1
- package/dist/tree-view/utils/get-focusable-nodes.js +0 -5
- package/dist/tree-view/utils/get-focused-node.d.ts +0 -1
- package/dist/tree-view/utils/get-focused-node.js +0 -14
- package/dist/tree-view/utils/get-ids-between-nodes.d.ts +0 -1
- package/dist/tree-view/utils/get-ids-between-nodes.js +0 -15
- package/dist/tree-view/utils/get-panel.d.ts +0 -1
- package/dist/tree-view/utils/get-panel.js +0 -7
- package/dist/tree-view/utils/get-parent-node.d.ts +0 -1
- package/dist/tree-view/utils/get-parent-node.js +0 -10
- package/dist/tree-view/utils/get-sibling-branches.d.ts +0 -1
- package/dist/tree-view/utils/get-sibling-branches.js +0 -14
- package/dist/tree-view/utils/get-tree-node-id.d.ts +0 -1
- package/dist/tree-view/utils/get-tree-node-id.js +0 -3
- package/dist/tree-view/utils/is-branch-node.d.ts +0 -1
- package/dist/tree-view/utils/is-branch-node.js +0 -3
- package/dist/tree-view/utils/is-leaf-node.d.ts +0 -1
- package/dist/tree-view/utils/is-leaf-node.js +0 -3
- package/dist/tree-view/utils/is-tree-node-disabled.d.ts +0 -1
- package/dist/tree-view/utils/is-tree-node-disabled.js +0 -3
- package/dist/tree-view/utils/select-node.d.ts +0 -2
- package/dist/tree-view/utils/select-node.js +0 -15
- package/dist/tree-view/utils/toggle-all-selections.d.ts +0 -2
- package/dist/tree-view/utils/toggle-all-selections.js +0 -9
- package/dist/tree-view/utils/toggle-selection.d.ts +0 -2
- package/dist/tree-view/utils/toggle-selection.js +0 -21
- package/dist/tree-view/virtualized/force-sync-scrolling.d.ts +0 -2
- package/dist/tree-view/virtualized/force-sync-scrolling.js +0 -23
- package/dist/tree-view/virtualized/get-virtual-tree-paths.d.ts +0 -2
- package/dist/tree-view/virtualized/get-virtual-tree-paths.js +0 -14
- package/dist/tree-view/virtualized/make-virtual-tree.d.ts +0 -31
- package/dist/tree-view/virtualized/make-virtual-tree.js +0 -90
- package/dist/tree-view/virtualized/use-flattened-tree.d.ts +0 -9
- package/dist/tree-view/virtualized/use-flattened-tree.js +0 -36
- package/dist/tree-view/virtualized/use-row-start-and-end.d.ts +0 -2
- package/dist/tree-view/virtualized/use-row-start-and-end.js +0 -27
- package/dist/tree-view/virtualized/use-virtualized-tree.d.ts +0 -22
- package/dist/tree-view/virtualized/use-virtualized-tree.js +0 -100
- package/dist/types/types.d.ts +0 -8
- package/dist/types/types.js +0 -1
- package/dist/utils/cycle-sorts.d.ts +0 -2
- package/dist/utils/cycle-sorts.js +0 -16
- package/dist/viewport/begin-editing.d.ts +0 -5
- package/dist/viewport/begin-editing.js +0 -15
- package/dist/viewport/viewport.d.ts +0 -1
- package/dist/viewport/viewport.js +0 -78
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { useGridRoot } from "../context.js";
|
|
4
|
-
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
5
|
-
import { RowsContainerReact } from "@1771technologies/lytenyte-shared";
|
|
6
|
-
export const RowsContainer = fastDeepMemo(forwardRef(function Rows(props, forwarded) {
|
|
7
|
-
const ctx = useGridRoot().grid;
|
|
8
|
-
return (_jsx(RowsContainerReact, { ...props, ref: forwarded, height: ctx.state.heightTotal.useValue(), width: ctx.state.widthTotal.useValue(), viewportHeight: ctx.state.viewportHeightInner.useValue(), viewportWidth: ctx.state.viewportWidthInner.useValue() }));
|
|
9
|
-
}));
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const RowsTop: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
2
|
-
export declare const RowsCenter: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export declare const RowsBottom: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
4
|
-
import { useGridRoot } from "../context.js";
|
|
5
|
-
import { NativeScroller } from "./scrollers/native-scroller.js";
|
|
6
|
-
import { RowsBottomReact, RowsCenterReact, RowsTopReact } from "@1771technologies/lytenyte-shared";
|
|
7
|
-
import { CellSelectionBottom, CellSelectionCenter, CellSelectionTop, } from "../cell-selection/cell-selection-containers.js";
|
|
8
|
-
export const RowsTop = fastDeepMemo(forwardRef(function RowsTop(props, forwarded) {
|
|
9
|
-
const cx = useGridRoot().grid;
|
|
10
|
-
const view = cx.view.useValue().rows;
|
|
11
|
-
const topCount = cx.state.rowDataStore.rowTopCount.useValue();
|
|
12
|
-
return (_jsxs(RowsTopReact, { ...props, rowFirst: topCount || -1, rowLast: topCount, ref: forwarded, top: cx.internal.headerHeightTotal.useValue(), height: view.rowTopTotalHeight, children: [props.children, _jsx(CellSelectionTop, {})] }));
|
|
13
|
-
}));
|
|
14
|
-
export const RowsCenter = fastDeepMemo(forwardRef(function RowsCenter({ children, ...props }, forwarded) {
|
|
15
|
-
const cx = useGridRoot().grid;
|
|
16
|
-
const view = cx.view.useValue().rows;
|
|
17
|
-
const rowCenterCount = cx.state.rowDataStore.rowCenterCount.useValue();
|
|
18
|
-
return (_jsx(RowsCenterReact, { ...props, ref: forwarded, rowFirst: cx.state.rowDataStore.rowTopCount.useValue(), rowLast: rowCenterCount + cx.state.rowDataStore.rowTopCount.useValue(), height: view.rowCenterTotalHeight, pinSectionHeights: view.rowBottomTotalHeight + view.rowTopTotalHeight, children: _jsxs(NativeScroller, { children: [_jsx(CellSelectionCenter, {}), children] }) }));
|
|
19
|
-
}));
|
|
20
|
-
export const RowsBottom = fastDeepMemo(forwardRef(function RowsBottom(props, forwarded) {
|
|
21
|
-
const cx = useGridRoot().grid;
|
|
22
|
-
const view = cx.view.useValue().rows;
|
|
23
|
-
const rowCenterCount = cx.state.rowDataStore.rowCenterCount.useValue();
|
|
24
|
-
const rowTopCount = cx.state.rowDataStore.rowTopCount.useValue();
|
|
25
|
-
const rowBottomCount = cx.state.rowDataStore.rowBottomCount.useValue();
|
|
26
|
-
return (_jsxs(RowsBottomReact, { ...props, ref: forwarded, rowFirst: rowCenterCount + rowTopCount, rowLast: rowCenterCount + rowBottomCount + rowTopCount, height: view.rowBottomTotalHeight, children: [_jsx(CellSelectionBottom, {}), props.children] }));
|
|
27
|
-
}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SortModelItem } from "../+types";
|
|
2
|
-
export interface SortItem {
|
|
3
|
-
readonly isCustom: boolean;
|
|
4
|
-
readonly columnId?: string;
|
|
5
|
-
readonly label?: string;
|
|
6
|
-
readonly sortOn?: "values" | "values_absolute" | "values_accented" | "values_nulls_first" | "values_absolute_nulls_first" | "values_accented_nulls_first" | "values_absolute_accented_nulls_first";
|
|
7
|
-
readonly sortDirection: "ascending" | "descending";
|
|
8
|
-
readonly originalSort?: SortModelItem<any>;
|
|
9
|
-
}
|
|
10
|
-
export interface Option {
|
|
11
|
-
readonly label: string;
|
|
12
|
-
readonly value: string;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
-
import type { SortItem } from "./+types.js";
|
|
3
|
-
import type { SortRowItem } from "./hooks/use-sort-row-item.js";
|
|
4
|
-
import type { Grid } from "../+types.js";
|
|
5
|
-
export interface SortManagerContext {
|
|
6
|
-
readonly grid: Grid<any>;
|
|
7
|
-
readonly sortItems: SortItem[];
|
|
8
|
-
readonly setSortItems: Dispatch<SetStateAction<SortItem[]>>;
|
|
9
|
-
readonly mode: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const context: import("react").Context<SortManagerContext>;
|
|
12
|
-
export declare const useSortManagerCtx: () => SortManagerContext;
|
|
13
|
-
export declare const rowContext: import("react").Context<SortRowItem>;
|
|
14
|
-
export declare const useSortRowCtx: () => SortRowItem;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Grid } from "../../+types";
|
|
2
|
-
import type { SortItem } from "../+types.js";
|
|
3
|
-
export interface UseSortManagerArgs<T> {
|
|
4
|
-
readonly grid: Grid<T>;
|
|
5
|
-
readonly pivotMode?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function useSortManager<T>({ grid, pivotMode }: UseSortManagerArgs<T>): {
|
|
8
|
-
rootProps: {
|
|
9
|
-
sortItems: SortItem[];
|
|
10
|
-
setSortItems: import("react").Dispatch<import("react").SetStateAction<SortItem[]>>;
|
|
11
|
-
mode: boolean;
|
|
12
|
-
grid: Grid<T>;
|
|
13
|
-
};
|
|
14
|
-
rows: import("./use-sort-row-item.js").SortRowItem[];
|
|
15
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { sortModelToSortItems } from "../utils/sort-model-to-sort-items.js";
|
|
3
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
4
|
-
import { useSortRowItems } from "./use-sort-row-item.js";
|
|
5
|
-
import { useEvent } from "@1771technologies/lytenyte-react-hooks";
|
|
6
|
-
export function useSortManager({ grid, pivotMode }) {
|
|
7
|
-
const statePivotMode = grid.state.columnPivotMode.useValue();
|
|
8
|
-
const mode = pivotMode ?? statePivotMode;
|
|
9
|
-
const cb = useCallback(() => {
|
|
10
|
-
if (mode) {
|
|
11
|
-
const pivotSortModel = grid.state.columnPivotModel.get().sorts;
|
|
12
|
-
const lookup = itemsWithIdToMap(grid.state.columnPivotColumns.get());
|
|
13
|
-
const model = sortModelToSortItems(pivotSortModel, lookup);
|
|
14
|
-
if (!model.length)
|
|
15
|
-
return [{ sortDirection: "ascending", isCustom: false }];
|
|
16
|
-
return model;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
const sortModel = grid.state.sortModel.get();
|
|
20
|
-
const lookup = itemsWithIdToMap(grid.state.columns.get());
|
|
21
|
-
const model = sortModelToSortItems(sortModel, lookup);
|
|
22
|
-
if (!model.length)
|
|
23
|
-
return [{ sortDirection: "ascending", isCustom: false }];
|
|
24
|
-
return model;
|
|
25
|
-
}
|
|
26
|
-
}, [
|
|
27
|
-
grid.state.columnPivotColumns,
|
|
28
|
-
grid.state.columnPivotModel,
|
|
29
|
-
grid.state.columns,
|
|
30
|
-
grid.state.sortModel,
|
|
31
|
-
mode,
|
|
32
|
-
]);
|
|
33
|
-
const fn = useEvent(() => cb());
|
|
34
|
-
const [sortItems, setSortItems] = useState(() => {
|
|
35
|
-
return cb();
|
|
36
|
-
});
|
|
37
|
-
const prevMode = useRef(mode);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (prevMode.current !== mode) {
|
|
40
|
-
setSortItems(fn());
|
|
41
|
-
prevMode.current = mode;
|
|
42
|
-
}
|
|
43
|
-
if (mode) {
|
|
44
|
-
return grid.state.columnPivotModel.watch(() => {
|
|
45
|
-
setSortItems(fn());
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return grid.state.sortModel.watch(() => {
|
|
50
|
-
setSortItems(fn());
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}, [fn, grid.state.columnPivotModel, grid.state.sortModel, mode]);
|
|
54
|
-
const sortRows = useSortRowItems(sortItems, setSortItems, grid, mode);
|
|
55
|
-
return { rootProps: { sortItems, setSortItems, mode, grid }, rows: sortRows };
|
|
56
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
-
import type { SortItem } from "../+types.js";
|
|
3
|
-
import type { Grid } from "../../+types";
|
|
4
|
-
export interface SortRowItem {
|
|
5
|
-
readonly isCustom: boolean;
|
|
6
|
-
readonly columnItem: {
|
|
7
|
-
value: string;
|
|
8
|
-
label: string;
|
|
9
|
-
} | null;
|
|
10
|
-
readonly index: number;
|
|
11
|
-
readonly columnOptions: {
|
|
12
|
-
value: string;
|
|
13
|
-
label: string;
|
|
14
|
-
}[];
|
|
15
|
-
readonly columnSelected: {
|
|
16
|
-
value: string;
|
|
17
|
-
label: string;
|
|
18
|
-
} | null;
|
|
19
|
-
readonly columnOnSelect: (c: {
|
|
20
|
-
value: string;
|
|
21
|
-
label: string;
|
|
22
|
-
} | null) => void;
|
|
23
|
-
readonly sortOptions: {
|
|
24
|
-
value: string;
|
|
25
|
-
label: string;
|
|
26
|
-
}[];
|
|
27
|
-
readonly sortSelected: {
|
|
28
|
-
value: string;
|
|
29
|
-
label: string;
|
|
30
|
-
} | null;
|
|
31
|
-
readonly sortOnSelect: (c: {
|
|
32
|
-
value: string;
|
|
33
|
-
label: string;
|
|
34
|
-
} | null) => void;
|
|
35
|
-
readonly sortDirectionOptions: {
|
|
36
|
-
value: string;
|
|
37
|
-
label: string;
|
|
38
|
-
}[];
|
|
39
|
-
readonly sortDirectionSelected: {
|
|
40
|
-
value: string;
|
|
41
|
-
label: string;
|
|
42
|
-
} | null;
|
|
43
|
-
readonly sortDirectionOnSelect: (c: {
|
|
44
|
-
value: string;
|
|
45
|
-
label: string;
|
|
46
|
-
} | null) => void;
|
|
47
|
-
readonly canAdd: boolean;
|
|
48
|
-
readonly onAdd: () => void;
|
|
49
|
-
readonly onDelete: () => void;
|
|
50
|
-
}
|
|
51
|
-
export declare function useSortRowItems(sortItems: SortItem[], setSortItems: Dispatch<SetStateAction<SortItem[]>>, grid: Grid<any>, pivotMode: boolean): SortRowItem[];
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { useSortableColumnItems } from "./use-sortable-column-items.js";
|
|
3
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
4
|
-
export function useSortRowItems(sortItems, setSortItems, grid, pivotMode) {
|
|
5
|
-
const columnItems = useSortableColumnItems(grid, pivotMode);
|
|
6
|
-
const pivotColumns = grid.state.columnPivotColumns.useValue();
|
|
7
|
-
const columns = grid.state.columns.useValue();
|
|
8
|
-
const lookup = useMemo(() => {
|
|
9
|
-
return itemsWithIdToMap(pivotMode ? pivotColumns : columns);
|
|
10
|
-
}, [columns, pivotColumns, pivotMode]);
|
|
11
|
-
const unselectedSortedColumns = useMemo(() => {
|
|
12
|
-
const selected = new Set(sortItems.map((c) => c.columnId).filter((c) => c != null));
|
|
13
|
-
return columnItems.filter((c) => !selected.has(c.value));
|
|
14
|
-
}, [columnItems, sortItems]);
|
|
15
|
-
const sortRows = useMemo(() => {
|
|
16
|
-
return sortItems.map((item, i) => {
|
|
17
|
-
const columnItem = columnItems.find((s) => item.columnId === s.value) ?? null;
|
|
18
|
-
const columnOptions = columnItem
|
|
19
|
-
? [columnItem, ...unselectedSortedColumns]
|
|
20
|
-
: unselectedSortedColumns;
|
|
21
|
-
// Handle select
|
|
22
|
-
const columnOnSelect = (column) => {
|
|
23
|
-
setSortItems((prev) => {
|
|
24
|
-
const v = { ...prev[i] };
|
|
25
|
-
v.columnId = column?.value;
|
|
26
|
-
const next = [...prev];
|
|
27
|
-
next.splice(i, 1, v);
|
|
28
|
-
return next;
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
const columnSelected = columnItem;
|
|
32
|
-
const column = lookup.get(item.columnId);
|
|
33
|
-
let sortOptions;
|
|
34
|
-
if (!column)
|
|
35
|
-
sortOptions = [];
|
|
36
|
-
else if (column?.type === "number")
|
|
37
|
-
sortOptions = sortValuesForNumber;
|
|
38
|
-
else if (column?.type === "date")
|
|
39
|
-
sortOptions = sortValuesForDateAndDateTime;
|
|
40
|
-
else
|
|
41
|
-
sortOptions = sortValuesString;
|
|
42
|
-
const sortSelected = sortOptions.find((v) => v.value === item.sortOn) ?? null;
|
|
43
|
-
const sortOnSelect = (sortOn) => {
|
|
44
|
-
if (!sortOn)
|
|
45
|
-
return;
|
|
46
|
-
setSortItems((prev) => {
|
|
47
|
-
const v = { ...prev[i] };
|
|
48
|
-
v.sortOn = sortOn.value;
|
|
49
|
-
const next = [...prev];
|
|
50
|
-
next.splice(i, 1, v);
|
|
51
|
-
return next;
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
const sortDirectionOptions = sortDirectionValues;
|
|
55
|
-
const sortDirectionSelected = item.sortDirection === "ascending"
|
|
56
|
-
? { label: "Asc", value: "ascending" }
|
|
57
|
-
: { label: "Desc", value: "descending" };
|
|
58
|
-
const sortDirectionOnSelect = (item) => {
|
|
59
|
-
if (!item)
|
|
60
|
-
return;
|
|
61
|
-
setSortItems((prev) => {
|
|
62
|
-
const v = { ...prev[i] };
|
|
63
|
-
v.sortDirection = item.value;
|
|
64
|
-
const next = [...prev];
|
|
65
|
-
next.splice(i, 1, v);
|
|
66
|
-
return next;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
const onDelete = () => {
|
|
70
|
-
setSortItems((prev) => {
|
|
71
|
-
const next = [...prev];
|
|
72
|
-
next.splice(i, 1);
|
|
73
|
-
if (!next.length) {
|
|
74
|
-
return [{ sortDirection: "ascending", isCustom: false }];
|
|
75
|
-
}
|
|
76
|
-
return next;
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
const onAdd = () => {
|
|
80
|
-
setSortItems((prev) => {
|
|
81
|
-
const next = [...prev];
|
|
82
|
-
next.splice(i + 1, 0, { sortDirection: "ascending", isCustom: false });
|
|
83
|
-
return next;
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
const maxSortCount = columnItems.length;
|
|
87
|
-
return {
|
|
88
|
-
index: i,
|
|
89
|
-
isCustom: item.isCustom,
|
|
90
|
-
columnItem,
|
|
91
|
-
columnOptions,
|
|
92
|
-
columnSelected,
|
|
93
|
-
columnOnSelect,
|
|
94
|
-
sortOptions,
|
|
95
|
-
sortSelected,
|
|
96
|
-
sortOnSelect,
|
|
97
|
-
sortDirectionOptions,
|
|
98
|
-
sortDirectionSelected,
|
|
99
|
-
sortDirectionOnSelect,
|
|
100
|
-
canAdd: maxSortCount > sortItems.length,
|
|
101
|
-
onAdd,
|
|
102
|
-
onDelete,
|
|
103
|
-
};
|
|
104
|
-
});
|
|
105
|
-
}, [columnItems, lookup, setSortItems, sortItems, unselectedSortedColumns]);
|
|
106
|
-
return sortRows;
|
|
107
|
-
}
|
|
108
|
-
const sortValuesForNumber = [
|
|
109
|
-
{ label: "Values", value: "values" },
|
|
110
|
-
{ label: "Absolute", value: "values_absolute" },
|
|
111
|
-
{ label: "Nulls First", value: "values_nulls_first" },
|
|
112
|
-
{ label: "Nulls First, Absolute", value: "values_nulls_first_absolute" },
|
|
113
|
-
];
|
|
114
|
-
const sortValuesForDateAndDateTime = [
|
|
115
|
-
{ label: "Values", value: "values" },
|
|
116
|
-
{ label: "Nulls First", value: "values_nulls_first" },
|
|
117
|
-
];
|
|
118
|
-
const sortValuesString = [
|
|
119
|
-
{ label: "Values", value: "values" },
|
|
120
|
-
{ label: "Insensitive", value: "values_insensitive" },
|
|
121
|
-
{ label: "Insensitive, Ignore Punctuation", value: "values_insensitive_ignore" },
|
|
122
|
-
{ label: "Insensitive, Trim", value: "values_insensitive_trim" },
|
|
123
|
-
{ label: "Insensitive, Ignore Punctuation, Trim", value: "values_insensitive_ignore_trim" },
|
|
124
|
-
{ label: "Ignore Punctuation", value: "values_ignore" },
|
|
125
|
-
{ label: "Ignore Punctuation, Trim", value: "values_ignore_trim" },
|
|
126
|
-
{ label: "Trim Whitespace", value: "values_trim" },
|
|
127
|
-
{ label: "Nulls First", value: "values_nulls_first" },
|
|
128
|
-
{ label: "Nulls First, Insensitive", value: "values_nulls_first_insensitive" },
|
|
129
|
-
{ label: "Nulls First, Trim", value: "values_nulls_first_trim" },
|
|
130
|
-
{ label: "Nulls First, Ignore Punctuation", value: "values_nulls_first_ignore" },
|
|
131
|
-
{ label: "Nulls First, Insensitive, Trim", value: "values_nulls_first_insensitive_trim" },
|
|
132
|
-
{
|
|
133
|
-
label: "Nulls First, Insensitive, Ignore Punctuation",
|
|
134
|
-
value: "values_nulls_first_insensitive_ignore",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: "Nulls First, Insensitive, Ignore Punctuation, Trim",
|
|
138
|
-
value: "values_nulls_first_insensitive_ignore_trim",
|
|
139
|
-
},
|
|
140
|
-
{ label: "Nulls First, Ignore Punctuation, Trim", value: "values_nulls_first_ignore_trim" },
|
|
141
|
-
];
|
|
142
|
-
const sortDirectionValues = [
|
|
143
|
-
{ label: "Asc", value: "ascending" },
|
|
144
|
-
{ label: "Desc", value: "descending" },
|
|
145
|
-
];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
export function useSortableColumnItems(grid, pivotMode) {
|
|
3
|
-
const columns = grid.state.columns.useValue();
|
|
4
|
-
const pivotColumns = grid.state.columnPivotColumns.useValue();
|
|
5
|
-
const base = grid.state.columnBase.useValue();
|
|
6
|
-
const candidateColumns = useMemo(() => {
|
|
7
|
-
const candidates = pivotMode ? pivotColumns : columns;
|
|
8
|
-
return candidates.filter((c) => c.uiHints?.sortable ?? base.uiHints?.sortable);
|
|
9
|
-
}, [base.uiHints?.sortable, columns, pivotColumns, pivotMode]);
|
|
10
|
-
return useMemo(() => {
|
|
11
|
-
return candidateColumns.map((c) => ({ label: c.name ?? c.id, value: c.id }));
|
|
12
|
-
}, [candidateColumns]);
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { context } from "./context.js";
|
|
4
|
-
export function Root({ sortItems, setSortItems, grid, mode, children, }) {
|
|
5
|
-
const value = useMemo(() => {
|
|
6
|
-
return {
|
|
7
|
-
sortItems,
|
|
8
|
-
setSortItems,
|
|
9
|
-
grid,
|
|
10
|
-
mode,
|
|
11
|
-
};
|
|
12
|
-
}, [grid, mode, setSortItems, sortItems]);
|
|
13
|
-
return _jsx(context.Provider, { value: value, children: children });
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
|
-
export interface SortAddProps {
|
|
3
|
-
readonly as?: SlotComponent<{
|
|
4
|
-
onAdd: () => void;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
}
|
|
8
|
-
export declare const SortAdd: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & SortAddProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context.js";
|
|
5
|
-
export const SortAdd = forwardRef(function SortAdd({ as: as, ...props }, forwarded) {
|
|
6
|
-
const row = useSortRowCtx();
|
|
7
|
-
const renderer = useSlot({
|
|
8
|
-
props: [typeof as !== "function" ? { onClick: row.onAdd, disabled: !row.canAdd } : {}, props],
|
|
9
|
-
ref: forwarded,
|
|
10
|
-
slot: as ?? _jsx("button", { children: "+" }),
|
|
11
|
-
state: { onAdd: row.onAdd, disabled: !row.canAdd },
|
|
12
|
-
});
|
|
13
|
-
return renderer;
|
|
14
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
|
-
export interface SortApplyProps {
|
|
3
|
-
readonly as?: SlotComponent<{
|
|
4
|
-
onApply: () => void;
|
|
5
|
-
}>;
|
|
6
|
-
}
|
|
7
|
-
export declare const SortApply: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & SortApplyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { useSortManagerCtx } from "./context.js";
|
|
5
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
6
|
-
import { sortItemsToSortModel } from "./utils/sort-item-to-sort-model.js";
|
|
7
|
-
export const SortApply = forwardRef(function SortApply({ as, ...props }, forwarded) {
|
|
8
|
-
const ctx = useSortManagerCtx();
|
|
9
|
-
const onApply = useEvent(() => {
|
|
10
|
-
const lookup = itemsWithIdToMap(ctx.mode ? ctx.grid.state.columnPivotColumns.get() : ctx.grid.state.columns.get());
|
|
11
|
-
const model = sortItemsToSortModel(ctx.sortItems, lookup);
|
|
12
|
-
if (ctx.mode)
|
|
13
|
-
ctx.grid.state.columnPivotModel.set((prev) => ({ ...prev, sort: model }));
|
|
14
|
-
else
|
|
15
|
-
ctx.grid.state.sortModel.set(model);
|
|
16
|
-
});
|
|
17
|
-
const renderer = useSlot({
|
|
18
|
-
props: [typeof as !== "function" ? { onClick: onApply } : {}, props],
|
|
19
|
-
ref: forwarded,
|
|
20
|
-
slot: as ?? _jsx("button", {}),
|
|
21
|
-
state: { onApply },
|
|
22
|
-
});
|
|
23
|
-
return renderer;
|
|
24
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
|
-
export interface SortCancelProps {
|
|
3
|
-
readonly as?: SlotComponent<{
|
|
4
|
-
onCancel: () => void;
|
|
5
|
-
}>;
|
|
6
|
-
}
|
|
7
|
-
export declare const SortCancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & SortCancelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { useSortManagerCtx } from "./context.js";
|
|
5
|
-
import { sortModelToSortItems } from "./utils/sort-model-to-sort-items.js";
|
|
6
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
7
|
-
export const SortCancel = forwardRef(function SortCancel({ as, ...props }, forwarded) {
|
|
8
|
-
const ctx = useSortManagerCtx();
|
|
9
|
-
const onCancel = useEvent(() => {
|
|
10
|
-
const model = ctx.mode
|
|
11
|
-
? ctx.grid.state.columnPivotModel.get().sorts
|
|
12
|
-
: ctx.grid.state.sortModel.get();
|
|
13
|
-
const lookup = itemsWithIdToMap(ctx.mode ? ctx.grid.state.columnPivotColumns.get() : ctx.grid.state.columns.get());
|
|
14
|
-
const state = sortModelToSortItems(model, lookup);
|
|
15
|
-
if (!state.length)
|
|
16
|
-
ctx.setSortItems([{ isCustom: false, sortDirection: "ascending" }]);
|
|
17
|
-
else
|
|
18
|
-
ctx.setSortItems(state);
|
|
19
|
-
});
|
|
20
|
-
const renderer = useSlot({
|
|
21
|
-
props: [typeof as !== "function" ? { onClick: onCancel } : {}, props],
|
|
22
|
-
ref: forwarded,
|
|
23
|
-
slot: as ?? _jsx("button", {}),
|
|
24
|
-
state: { onCancel },
|
|
25
|
-
});
|
|
26
|
-
return renderer;
|
|
27
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
|
-
export interface SortClearProps {
|
|
3
|
-
readonly as?: SlotComponent<{
|
|
4
|
-
onClear: () => void;
|
|
5
|
-
}>;
|
|
6
|
-
}
|
|
7
|
-
export declare const SortClear: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & SortClearProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { useSortManagerCtx } from "./context.js";
|
|
5
|
-
export const SortClear = forwardRef(function SortClear({ as, ...props }, forwarded) {
|
|
6
|
-
const ctx = useSortManagerCtx();
|
|
7
|
-
const onClear = useEvent(() => {
|
|
8
|
-
if (ctx.mode) {
|
|
9
|
-
ctx.grid.state.columnPivotModel.set((prev) => ({ ...prev, sorts: [] }));
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
ctx.grid.state.sortModel.set([]);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const renderer = useSlot({
|
|
16
|
-
props: [typeof as !== "function" ? { onClick: onClear } : {}, props],
|
|
17
|
-
ref: forwarded,
|
|
18
|
-
slot: as ?? _jsx("button", {}),
|
|
19
|
-
state: { onClear },
|
|
20
|
-
});
|
|
21
|
-
return renderer;
|
|
22
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
|
-
import type { Option } from "./+types";
|
|
3
|
-
export interface SortColumnSelectProps {
|
|
4
|
-
readonly as?: SlotComponent<{
|
|
5
|
-
options: Option[];
|
|
6
|
-
onSelect: (v: Option | null) => void;
|
|
7
|
-
value: Option | null;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
export declare const SortColumnSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & SortColumnSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context.js";
|
|
5
|
-
export const SortColumnSelect = forwardRef(function SortColumnSelect({ as, ...props }, forwarded) {
|
|
6
|
-
const row = useSortRowCtx();
|
|
7
|
-
const el = (_jsxs("select", { "aria-label": "Select column to sort", value: row.columnItem?.value ?? "", onChange: (e) => {
|
|
8
|
-
const item = row.columnOptions.find((c) => c.value === e.target.value);
|
|
9
|
-
row.columnOnSelect(item ?? null);
|
|
10
|
-
}, children: [_jsx("option", { value: "", children: "Select..." }), row.columnOptions.map((c) => {
|
|
11
|
-
return (_jsx("option", { value: c.value, children: c.label }, c.value));
|
|
12
|
-
})] }));
|
|
13
|
-
const renderer = useSlot({
|
|
14
|
-
props: [props],
|
|
15
|
-
ref: forwarded,
|
|
16
|
-
slot: as ?? el,
|
|
17
|
-
state: { options: row.columnOptions, onSelect: row.columnOnSelect, value: row.columnSelected },
|
|
18
|
-
});
|
|
19
|
-
return renderer;
|
|
20
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
|
-
import type { Option } from "./+types";
|
|
3
|
-
export interface SortDirectionSelectProps {
|
|
4
|
-
readonly as?: SlotComponent<{
|
|
5
|
-
options: Option[];
|
|
6
|
-
onSelect: (v: Option | null) => void;
|
|
7
|
-
value: Option | null;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
export declare const SortDirectionSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & SortDirectionSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context.js";
|
|
5
|
-
export const SortDirectionSelect = forwardRef(function SortDirectionSelect({ as, ...props }, forwarded) {
|
|
6
|
-
const row = useSortRowCtx();
|
|
7
|
-
const el = (_jsx("select", { "aria-label": "Select sort direction", value: row.sortDirectionSelected?.value ?? "", onChange: (e) => {
|
|
8
|
-
const item = row.sortDirectionOptions.find((c) => c.value === e.target.value);
|
|
9
|
-
row.sortDirectionOnSelect(item ?? null);
|
|
10
|
-
}, children: row.sortDirectionOptions.map((c) => {
|
|
11
|
-
return (_jsx("option", { value: c.value, children: c.label }, c.value));
|
|
12
|
-
}) }));
|
|
13
|
-
const renderer = useSlot({
|
|
14
|
-
props: [props],
|
|
15
|
-
ref: forwarded,
|
|
16
|
-
slot: as ?? el,
|
|
17
|
-
state: {
|
|
18
|
-
options: row.sortDirectionOptions,
|
|
19
|
-
onSelect: row.sortDirectionOnSelect,
|
|
20
|
-
value: row.sortDirectionSelected,
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
return renderer;
|
|
24
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Root } from "./root.js";
|
|
2
|
-
import { useSortManager } from "./hooks/use-sort-manager.js";
|
|
3
|
-
export declare const SortManager: {
|
|
4
|
-
Root: typeof Root;
|
|
5
|
-
Row: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-row.js").SortRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
Rows: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
ColumnSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-column-select.js").SortColumnSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
8
|
-
ValueSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-value-select.js").SortValueSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
9
|
-
DirectionSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-direction-select.js").SortDirectionSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
10
|
-
Add: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-add.js").SortAddProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
Remove: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-remove.js").SortRemoveProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
Cancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-cancel.js").SortCancelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
Clear: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-clear.js").SortClearProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
Apply: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-apply.js").SortApplyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
-
useSortManager: typeof useSortManager;
|
|
16
|
-
};
|