@1771technologies/lytenyte-pro 1.0.19 → 2.0.0-dev.0
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/css/all-colors.css +8 -0
- package/css/components/button.css +176 -0
- package/css/components/checkbox.css +54 -0
- package/css/components/input.css +64 -0
- package/css/components/tree-view.css +108 -0
- package/css/components.css +300 -0
- package/css/cotton-candy.css +1 -0
- package/css/dark.css +1 -0
- package/css/design.css +1 -0
- package/css/fonts.css +1 -0
- package/css/grid-full.css +3 -0
- package/css/grid.css +81 -0
- package/css/light-dark.css +3 -0
- package/css/light.css +1 -0
- package/css/pill-manager.css +184 -0
- package/css/shadcn-vars.css +1 -0
- package/css/shadcn.css +1 -0
- package/css/teal.css +1 -0
- package/css/term.css +1 -0
- package/css/tw.css +1 -0
- package/package.json +29 -16
- package/dist/+types.d.ts +0 -6177
- package/dist/+types.js +0 -1
- package/dist/__play__/cell-selections/cell-selection.play.d.ts +0 -5
- package/dist/__play__/cell-selections/cell-selection.play.js +0 -80
- package/dist/__play__/filter-select/filter-select.play.d.ts +0 -4
- package/dist/__play__/filter-select/filter-select.play.js +0 -76
- package/dist/__play__/test-utils/bank-data-smaller.d.ts +0 -19
- package/dist/__play__/test-utils/bank-data-smaller.js +0 -252
- package/dist/__play__/test-utils/row-handler.d.ts +0 -6
- package/dist/__play__/test-utils/row-handler.js +0 -32
- 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 -289
- 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/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 -72
- 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 -11
- package/dist/context.js +0 -5
- package/dist/filter-selects/apply.d.ts +0 -7
- package/dist/filter-selects/apply.js +0 -22
- package/dist/filter-selects/clear.d.ts +0 -7
- package/dist/filter-selects/clear.js +0 -22
- package/dist/filter-selects/context.d.ts +0 -13
- package/dist/filter-selects/context.js +0 -3
- package/dist/filter-selects/filter-combinator.d.ts +0 -10
- package/dist/filter-selects/filter-combinator.js +0 -19
- package/dist/filter-selects/filter-row-context.d.ts +0 -30
- package/dist/filter-selects/filter-row-context.js +0 -3
- package/dist/filter-selects/filter-row.d.ts +0 -13
- package/dist/filter-selects/filter-row.js +0 -118
- package/dist/filter-selects/index.d.ts +0 -22
- package/dist/filter-selects/index.js +0 -20
- package/dist/filter-selects/is-complete-filter.d.ts +0 -2
- package/dist/filter-selects/is-complete-filter.js +0 -5
- package/dist/filter-selects/operator-select.d.ts +0 -14
- package/dist/filter-selects/operator-select.js +0 -25
- package/dist/filter-selects/options.d.ts +0 -9
- package/dist/filter-selects/options.js +0 -100
- package/dist/filter-selects/reset.d.ts +0 -7
- package/dist/filter-selects/reset.js +0 -22
- package/dist/filter-selects/root.d.ts +0 -14
- package/dist/filter-selects/root.js +0 -5
- package/dist/filter-selects/to-filter-item.d.ts +0 -3
- package/dist/filter-selects/to-filter-item.js +0 -7
- package/dist/filter-selects/use-filter-select.d.ts +0 -38
- package/dist/filter-selects/use-filter-select.js +0 -167
- package/dist/filter-selects/value-input.d.ts +0 -12
- package/dist/filter-selects/value-input.js +0 -27
- 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/cell.d.ts +0 -6
- package/dist/grid/cell.js +0 -3
- package/dist/grid/dialog-driver.d.ts +0 -1
- package/dist/grid/dialog-driver.js +0 -21
- package/dist/grid/header-cell.d.ts +0 -10
- package/dist/grid/header-cell.js +0 -3
- package/dist/grid/header-group-cell.d.ts +0 -6
- package/dist/grid/header-group-cell.js +0 -3
- package/dist/grid/header-row.d.ts +0 -5
- package/dist/grid/header-row.js +0 -2
- package/dist/grid/header.d.ts +0 -1
- package/dist/grid/header.js +0 -2
- package/dist/grid/popover-driver.d.ts +0 -1
- package/dist/grid/popover-driver.js +0 -21
- package/dist/grid/root.d.ts +0 -8
- package/dist/grid/root.js +0 -37
- package/dist/grid/row-full-width.d.ts +0 -9
- package/dist/grid/row-full-width.js +0 -3
- package/dist/grid/row.d.ts +0 -8
- package/dist/grid/row.js +0 -3
- package/dist/grid/rows-container.d.ts +0 -1
- package/dist/grid/rows-container.js +0 -2
- package/dist/grid/rows-sections.d.ts +0 -3
- package/dist/grid/rows-sections.js +0 -13
- package/dist/grid/viewport.d.ts +0 -1
- package/dist/grid/viewport.js +0 -9
- 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 -62
- 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/icons/index.d.ts +0 -1
- package/dist/icons/index.js +0 -1
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -14
- package/dist/license/index.d.ts +0 -1
- package/dist/license/index.js +0 -1
- package/dist/license/license.d.ts +0 -3
- package/dist/license/license.js +0 -215
- package/dist/license/md5-hash.d.ts +0 -9
- package/dist/license/md5-hash.js +0 -167
- 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/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 -573
- 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 -667
- 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 -512
- 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 -70
- package/dist/row-data-source-server/server-data.js +0 -519
- 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 -413
- 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/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 -36
- 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 -65
- 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/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 -5
- 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 -20
- 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 -45
- 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 -162
- package/dist/state/use-lytenyte.d.ts +0 -3
- package/dist/state/use-lytenyte.js +0 -686
- 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/main.css +0 -453
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { getRootCell } from "./get-root-cell.js";
|
|
2
|
-
export function expandCellSelectionEnd(grid, meta) {
|
|
3
|
-
const selections = grid.state.cellSelections.get();
|
|
4
|
-
const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
|
|
5
|
-
const rect = selections.at(-1);
|
|
6
|
-
const pivot = cellSelectionPivot;
|
|
7
|
-
if (!rect || !pivot)
|
|
8
|
-
return;
|
|
9
|
-
if (meta) {
|
|
10
|
-
const colCount = grid.state.columnMeta.get().columnsVisible.length;
|
|
11
|
-
if (pivot.columnStart === colCount - 1)
|
|
12
|
-
return;
|
|
13
|
-
const next = { ...rect, columnStart: pivot.columnStart, columnEnd: colCount };
|
|
14
|
-
const nextSelections = [...selections];
|
|
15
|
-
nextSelections[nextSelections.length - 1] = next;
|
|
16
|
-
grid.state.cellSelections.set(nextSelections);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
let next;
|
|
20
|
-
let focusColumn;
|
|
21
|
-
if (rect.columnStart < pivot.columnStart) {
|
|
22
|
-
let colOffset = 1;
|
|
23
|
-
for (let i = rect.rowStart; i < rect.rowEnd; i++) {
|
|
24
|
-
const cell = getRootCell(grid, i, rect.columnStart);
|
|
25
|
-
if (cell)
|
|
26
|
-
colOffset = Math.max(colOffset, cell.colSpan);
|
|
27
|
-
}
|
|
28
|
-
focusColumn = rect.columnStart + colOffset;
|
|
29
|
-
next = { ...rect, columnStart: focusColumn };
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
focusColumn = rect.columnEnd + 1;
|
|
33
|
-
next = { ...rect, columnEnd: focusColumn };
|
|
34
|
-
focusColumn -= 1;
|
|
35
|
-
}
|
|
36
|
-
grid.api.scrollIntoView({ column: focusColumn });
|
|
37
|
-
const nextSelections = [...selections];
|
|
38
|
-
nextSelections[nextSelections.length - 1] = next;
|
|
39
|
-
grid.state.cellSelections.set(nextSelections);
|
|
40
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { getRootCell } from "./get-root-cell.js";
|
|
2
|
-
export function expandCellSelectionStart(grid, meta) {
|
|
3
|
-
const selections = grid.state.cellSelections.get();
|
|
4
|
-
const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
|
|
5
|
-
const rect = selections.at(-1);
|
|
6
|
-
const pivot = cellSelectionPivot;
|
|
7
|
-
if (!rect || !pivot)
|
|
8
|
-
return;
|
|
9
|
-
if (meta) {
|
|
10
|
-
if (pivot.columnStart === 0)
|
|
11
|
-
return;
|
|
12
|
-
const next = { ...rect, columnStart: 0, columnEnd: pivot.columnEnd };
|
|
13
|
-
const nextSelections = [...selections];
|
|
14
|
-
nextSelections[nextSelections.length - 1] = next;
|
|
15
|
-
grid.state.cellSelections.set(nextSelections);
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
let next;
|
|
19
|
-
let focusColumn;
|
|
20
|
-
if (rect.columnEnd > pivot.columnEnd) {
|
|
21
|
-
let colOffset = 1;
|
|
22
|
-
for (let i = rect.rowStart; i < rect.rowEnd; i++) {
|
|
23
|
-
const cell = getRootCell(grid, i, rect.columnEnd - 1);
|
|
24
|
-
if (cell)
|
|
25
|
-
colOffset = Math.max(colOffset, cell.colSpan);
|
|
26
|
-
}
|
|
27
|
-
focusColumn = rect.columnEnd - colOffset;
|
|
28
|
-
next = { ...rect, columnEnd: focusColumn };
|
|
29
|
-
focusColumn -= 1;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
focusColumn = rect.columnStart - 1;
|
|
33
|
-
next = { ...rect, columnStart: focusColumn };
|
|
34
|
-
}
|
|
35
|
-
grid.api.scrollIntoView({ column: focusColumn });
|
|
36
|
-
const nextSelections = [...selections];
|
|
37
|
-
nextSelections[nextSelections.length - 1] = next;
|
|
38
|
-
grid.state.cellSelections.set(nextSelections);
|
|
39
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { getRootCell } from "./get-root-cell.js";
|
|
2
|
-
export function expandCellSelectionUp(grid, meta) {
|
|
3
|
-
const selections = grid.state.cellSelections.get();
|
|
4
|
-
const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
|
|
5
|
-
const rect = selections.at(-1);
|
|
6
|
-
const pivot = cellSelectionPivot;
|
|
7
|
-
if (!rect || !pivot)
|
|
8
|
-
return;
|
|
9
|
-
if (meta) {
|
|
10
|
-
if (pivot.rowStart === 0)
|
|
11
|
-
return;
|
|
12
|
-
const next = { ...rect, rowEnd: pivot.rowEnd, rowStart: 0 };
|
|
13
|
-
const nextSelections = [...selections];
|
|
14
|
-
nextSelections[nextSelections.length - 1] = next;
|
|
15
|
-
grid.state.cellSelections.set(nextSelections);
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
let next;
|
|
19
|
-
let focusRow;
|
|
20
|
-
if (rect.rowEnd > pivot.rowEnd) {
|
|
21
|
-
let rowOffset = 1;
|
|
22
|
-
for (let i = rect.columnStart; i < rect.columnEnd; i++) {
|
|
23
|
-
const cell = getRootCell(grid, rect.rowEnd - 1, i);
|
|
24
|
-
if (cell)
|
|
25
|
-
rowOffset = Math.max(rowOffset, cell.rowSpan);
|
|
26
|
-
}
|
|
27
|
-
focusRow = rect.rowEnd - rowOffset;
|
|
28
|
-
next = { ...rect, rowEnd: focusRow };
|
|
29
|
-
focusRow -= 1;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
focusRow = rect.rowStart - 1;
|
|
33
|
-
next = { ...rect, rowStart: focusRow };
|
|
34
|
-
}
|
|
35
|
-
grid.api.scrollIntoView({ row: focusRow });
|
|
36
|
-
const nextSelections = [...selections];
|
|
37
|
-
nextSelections[nextSelections.length - 1] = next;
|
|
38
|
-
grid.state.cellSelections.set(nextSelections);
|
|
39
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { isWithinSelectionRect } from "./is-within-selection-rect.js";
|
|
2
|
-
export { splitCellSelectionRect } from "./split-cell-selection-rect.js";
|
|
3
|
-
export { boundSelectionRect } from "./bound-selection-rect.js";
|
|
4
|
-
export { fullWidthStartEndIndex } from "./full-width-start-end-index.js";
|
|
5
|
-
export { areRectsEqual } from "./are-rects-equal.js";
|
|
6
|
-
export { deselectRectRange } from "./deselect-rect-range.js";
|
|
7
|
-
export { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
|
|
8
|
-
export { updateAdditiveCellSelection } from "./update-additive-cell-selection.js";
|
|
9
|
-
export { expandCellSelectionDown } from "./expand-cell-selection-down.js";
|
|
10
|
-
export { expandCellSelectionUp } from "./expand-cell-selection-up.js";
|
|
11
|
-
export { expandCellSelectionStart } from "./expand-cell-selection-start.js";
|
|
12
|
-
export { expandCellSelectionEnd } from "./expand-cell-selection-end.js";
|
|
13
|
-
export { isBottomRect } from "./is-bottom-rect.js";
|
|
14
|
-
export { isCenterRect } from "./is-center-rect.js";
|
|
15
|
-
export { isTopRect } from "./is-top-rect.js";
|
|
16
|
-
export { isCenterColRect } from "./is-center-col-rect.js";
|
|
17
|
-
export { isStartRect } from "./is-start-rect.js";
|
|
18
|
-
export { isEndRect } from "./is-end-rect.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { isWithinSelectionRect } from "./is-within-selection-rect.js";
|
|
2
|
-
export { splitCellSelectionRect } from "./split-cell-selection-rect.js";
|
|
3
|
-
export { boundSelectionRect } from "./bound-selection-rect.js";
|
|
4
|
-
export { fullWidthStartEndIndex } from "./full-width-start-end-index.js";
|
|
5
|
-
export { areRectsEqual } from "./are-rects-equal.js";
|
|
6
|
-
export { deselectRectRange } from "./deselect-rect-range.js";
|
|
7
|
-
export { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
|
|
8
|
-
export { updateAdditiveCellSelection } from "./update-additive-cell-selection.js";
|
|
9
|
-
export { expandCellSelectionDown } from "./expand-cell-selection-down.js";
|
|
10
|
-
export { expandCellSelectionUp } from "./expand-cell-selection-up.js";
|
|
11
|
-
export { expandCellSelectionStart } from "./expand-cell-selection-start.js";
|
|
12
|
-
export { expandCellSelectionEnd } from "./expand-cell-selection-end.js";
|
|
13
|
-
export { isBottomRect } from "./is-bottom-rect.js";
|
|
14
|
-
export { isCenterRect } from "./is-center-rect.js";
|
|
15
|
-
export { isTopRect } from "./is-top-rect.js";
|
|
16
|
-
export { isCenterColRect } from "./is-center-col-rect.js";
|
|
17
|
-
export { isStartRect } from "./is-start-rect.js";
|
|
18
|
-
export { isEndRect } from "./is-end-rect.js";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { DataRect } from "../+types.js";
|
|
2
|
-
interface SplitCellSelectionRectArgs {
|
|
3
|
-
readonly rect: DataRect;
|
|
4
|
-
readonly colStartCount: number;
|
|
5
|
-
readonly colCenterCount: number;
|
|
6
|
-
readonly rowTopCount: number;
|
|
7
|
-
readonly rowCenterCount: number;
|
|
8
|
-
}
|
|
9
|
-
export interface DataRectSplit extends DataRect {
|
|
10
|
-
readonly isUnit: boolean;
|
|
11
|
-
readonly borderTop?: boolean;
|
|
12
|
-
readonly borderBottom?: boolean;
|
|
13
|
-
readonly borderStart?: boolean;
|
|
14
|
-
readonly borderEnd?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Splits a cell selection rectangle into multiple rectangles when it crosses specified boundary regions.
|
|
18
|
-
* This is useful for handling selections that span across different grid sections (e.g., fixed columns/rows,
|
|
19
|
-
* scrollable areas).
|
|
20
|
-
*
|
|
21
|
-
* The splitting process happens in two phases:
|
|
22
|
-
* 1. Column-wise splitting: Splits rectangles that cross column section boundaries
|
|
23
|
-
* 2. Row-wise splitting: Further splits the resulting rectangles if they cross row section boundaries
|
|
24
|
-
*
|
|
25
|
-
* Splitting does not support full width rows. It is assumed that if full width rows are present then
|
|
26
|
-
* the cell selection will just be drawn over them
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* // For a grid with 2 fixed start columns and 1 fixed top row:
|
|
30
|
-
* const splits = splitCellSelectionRect({
|
|
31
|
-
* rect: { columnStart: 0, columnEnd: 3, rowStart: 0, rowEnd: 2 },
|
|
32
|
-
* colStartCount: 2, // Number of fixed start columns
|
|
33
|
-
* colCenterCount: 10, // Number of scrollable columns
|
|
34
|
-
* rowTopCount: 1, // Number of fixed top rows
|
|
35
|
-
* rowCenterCount: 50 // Number of scrollable rows
|
|
36
|
-
* });
|
|
37
|
-
*
|
|
38
|
-
* @param rect - The original cell selection rectangle to split
|
|
39
|
-
* @param colStartCount - Number of columns in the start (usually fixed) section
|
|
40
|
-
* @param colCenterCount - Number of columns in the center (usually scrollable) section
|
|
41
|
-
* @param rowTopCount - Number of rows in the top (usually fixed) section
|
|
42
|
-
* @param rowCenterCount - Number of rows in the center (usually scrollable) section
|
|
43
|
-
* @returns An array of split rectangles. If no splits were necessary, returns an array with just the original rectangle
|
|
44
|
-
*/
|
|
45
|
-
export declare function splitCellSelectionRect({ rect, colStartCount, colCenterCount, rowTopCount, rowCenterCount, }: SplitCellSelectionRectArgs): DataRectSplit[];
|
|
46
|
-
export {};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Splits a cell selection rectangle into multiple rectangles when it crosses specified boundary regions.
|
|
3
|
-
* This is useful for handling selections that span across different grid sections (e.g., fixed columns/rows,
|
|
4
|
-
* scrollable areas).
|
|
5
|
-
*
|
|
6
|
-
* The splitting process happens in two phases:
|
|
7
|
-
* 1. Column-wise splitting: Splits rectangles that cross column section boundaries
|
|
8
|
-
* 2. Row-wise splitting: Further splits the resulting rectangles if they cross row section boundaries
|
|
9
|
-
*
|
|
10
|
-
* Splitting does not support full width rows. It is assumed that if full width rows are present then
|
|
11
|
-
* the cell selection will just be drawn over them
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // For a grid with 2 fixed start columns and 1 fixed top row:
|
|
15
|
-
* const splits = splitCellSelectionRect({
|
|
16
|
-
* rect: { columnStart: 0, columnEnd: 3, rowStart: 0, rowEnd: 2 },
|
|
17
|
-
* colStartCount: 2, // Number of fixed start columns
|
|
18
|
-
* colCenterCount: 10, // Number of scrollable columns
|
|
19
|
-
* rowTopCount: 1, // Number of fixed top rows
|
|
20
|
-
* rowCenterCount: 50 // Number of scrollable rows
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* @param rect - The original cell selection rectangle to split
|
|
24
|
-
* @param colStartCount - Number of columns in the start (usually fixed) section
|
|
25
|
-
* @param colCenterCount - Number of columns in the center (usually scrollable) section
|
|
26
|
-
* @param rowTopCount - Number of rows in the top (usually fixed) section
|
|
27
|
-
* @param rowCenterCount - Number of rows in the center (usually scrollable) section
|
|
28
|
-
* @returns An array of split rectangles. If no splits were necessary, returns an array with just the original rectangle
|
|
29
|
-
*/
|
|
30
|
-
export function splitCellSelectionRect({ rect, colStartCount, colCenterCount, rowTopCount, rowCenterCount, }) {
|
|
31
|
-
// Calculate the boundary positions for columns
|
|
32
|
-
const colStartBound = colStartCount;
|
|
33
|
-
const colEndBound = colStartCount + colCenterCount;
|
|
34
|
-
const isUnit = rect.rowEnd - rect.rowStart === 1 && rect.columnEnd - rect.columnStart === 1;
|
|
35
|
-
const colSplits = [];
|
|
36
|
-
// Handle column splits first
|
|
37
|
-
// Case 1: Selection starts before the fixed columns and extends into the scrollable area
|
|
38
|
-
if (rect.columnStart < colStartBound && rect.columnEnd > colStartBound) {
|
|
39
|
-
const startSplit = {
|
|
40
|
-
...rect,
|
|
41
|
-
columnEnd: colStartBound,
|
|
42
|
-
isUnit,
|
|
43
|
-
};
|
|
44
|
-
colSplits.push(startSplit);
|
|
45
|
-
rect = { ...rect, columnStart: colStartBound };
|
|
46
|
-
}
|
|
47
|
-
// Case 2: Selection starts in the scrollable area and extends into the end section
|
|
48
|
-
if (rect.columnStart < colEndBound && rect.columnEnd > colEndBound) {
|
|
49
|
-
const endSplit = {
|
|
50
|
-
...rect,
|
|
51
|
-
columnStart: colEndBound,
|
|
52
|
-
isUnit,
|
|
53
|
-
};
|
|
54
|
-
rect = { ...rect, columnEnd: colEndBound };
|
|
55
|
-
colSplits.push(endSplit);
|
|
56
|
-
}
|
|
57
|
-
// Add the remaining rectangle after column splits
|
|
58
|
-
colSplits.push({ ...rect, isUnit });
|
|
59
|
-
// Calculate the boundary positions for rows
|
|
60
|
-
const topBound = rowTopCount;
|
|
61
|
-
const bottomBound = rowTopCount + rowCenterCount;
|
|
62
|
-
// Process row splits for each column-split rectangle
|
|
63
|
-
const rowSplits = [];
|
|
64
|
-
for (let split of colSplits) {
|
|
65
|
-
// Case 1: Selection spans from top section into center section
|
|
66
|
-
if (split.rowStart < topBound && split.rowEnd > topBound) {
|
|
67
|
-
const topSplit = { ...split, rowEnd: topBound, isUnit };
|
|
68
|
-
split = { ...split, rowStart: topBound };
|
|
69
|
-
rowSplits.push(topSplit);
|
|
70
|
-
}
|
|
71
|
-
// Case 2: Selection spans from center section into bottom section
|
|
72
|
-
if (split.rowStart < bottomBound && split.rowEnd > bottomBound) {
|
|
73
|
-
const bottomSplit = {
|
|
74
|
-
...split,
|
|
75
|
-
rowStart: bottomBound,
|
|
76
|
-
isUnit,
|
|
77
|
-
};
|
|
78
|
-
split = { ...split, rowEnd: bottomBound };
|
|
79
|
-
rowSplits.push(bottomSplit);
|
|
80
|
-
}
|
|
81
|
-
rowSplits.push(split);
|
|
82
|
-
}
|
|
83
|
-
return rowSplits
|
|
84
|
-
.map((c) => ({ ...c, borderTop: true, borderBottom: true, borderEnd: true, borderStart: true }))
|
|
85
|
-
.sort((l, r) => {
|
|
86
|
-
return l.rowStart - r.rowStart || l.columnStart - r.columnStart;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { areRectsEqual } from "./are-rects-equal.js";
|
|
2
|
-
export function splitOnPivot(rect, pivot) {
|
|
3
|
-
if (rect.isUnit || areRectsEqual(rect, pivot))
|
|
4
|
-
return null;
|
|
5
|
-
const splits = [];
|
|
6
|
-
const isAfter = pivot.columnStart > rect.columnStart;
|
|
7
|
-
const isSame = pivot.columnStart === rect.columnStart && pivot.columnEnd === rect.columnEnd;
|
|
8
|
-
// The pivot is on the right side of the rect. So we split by end
|
|
9
|
-
if (isAfter) {
|
|
10
|
-
const split = { ...rect, columnEnd: rect.columnEnd - 1, borderEnd: false };
|
|
11
|
-
if (split.columnStart !== split.columnEnd)
|
|
12
|
-
splits.push(split);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
const split = {
|
|
16
|
-
...rect,
|
|
17
|
-
columnStart: rect.columnStart + 1,
|
|
18
|
-
borderStart: false,
|
|
19
|
-
};
|
|
20
|
-
if (split.columnStart !== split.columnEnd)
|
|
21
|
-
splits.push(split);
|
|
22
|
-
}
|
|
23
|
-
if (pivot.rowStart > rect.rowStart) {
|
|
24
|
-
const split = {
|
|
25
|
-
...rect,
|
|
26
|
-
columnStart: pivot.columnStart,
|
|
27
|
-
columnEnd: pivot.columnEnd,
|
|
28
|
-
rowEnd: rect.rowEnd - 1,
|
|
29
|
-
borderBottom: false,
|
|
30
|
-
borderStart: !isAfter,
|
|
31
|
-
borderEnd: isSame || isAfter,
|
|
32
|
-
};
|
|
33
|
-
if (split.rowStart !== split.rowEnd)
|
|
34
|
-
splits.push(split);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
const split = {
|
|
38
|
-
...rect,
|
|
39
|
-
columnStart: pivot.columnStart,
|
|
40
|
-
columnEnd: pivot.columnEnd,
|
|
41
|
-
rowStart: rect.rowStart + 1,
|
|
42
|
-
borderTop: false,
|
|
43
|
-
borderStart: !isAfter,
|
|
44
|
-
borderEnd: isSame || isAfter,
|
|
45
|
-
};
|
|
46
|
-
if (split.rowStart !== split.rowEnd)
|
|
47
|
-
splits.push(split);
|
|
48
|
-
}
|
|
49
|
-
return splits;
|
|
50
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { boundSelectionRect } from "./bound-selection-rect.js";
|
|
2
|
-
import { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
|
|
3
|
-
import { areRectsEqual } from "./are-rects-equal.js";
|
|
4
|
-
import { splitCellSelectionRect } from "./split-cell-selection-rect.js";
|
|
5
|
-
export function updateAdditiveCellSelection(grid, rect) {
|
|
6
|
-
const s = grid.state.columnMeta.get();
|
|
7
|
-
const ds = grid.state.rowDataStore;
|
|
8
|
-
const rowTopCount = ds.rowTopCount.get();
|
|
9
|
-
const adjustedRect = adjustRectForRowAndCellSpan(grid, rect);
|
|
10
|
-
const rects = splitCellSelectionRect({
|
|
11
|
-
rect: boundSelectionRect(grid, adjustedRect),
|
|
12
|
-
colCenterCount: s.columnVisibleCenterCount,
|
|
13
|
-
colStartCount: s.columnVisibleStartCount,
|
|
14
|
-
rowCenterCount: ds.rowCenterCount.get(),
|
|
15
|
-
rowTopCount: rowTopCount,
|
|
16
|
-
});
|
|
17
|
-
const current = grid.internal.cellSelectionAdditiveRects.get();
|
|
18
|
-
if (current && current.length === rects.length) {
|
|
19
|
-
if (current.every((c, i) => areRectsEqual(c, rects[i])))
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
grid.internal.cellSelectionAdditiveRects.set(rects);
|
|
23
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Grid } from "../+types.js";
|
|
2
|
-
import type { InternalAtoms } from "../state/+types.js";
|
|
3
|
-
export declare function useEdgeScroll(grid: Grid<any> & {
|
|
4
|
-
internal: InternalAtoms;
|
|
5
|
-
}): {
|
|
6
|
-
cancelX: () => void;
|
|
7
|
-
edgeScrollX: (visualPositionX: number, isRtl: boolean) => void;
|
|
8
|
-
cancelY: () => void;
|
|
9
|
-
edgeScrollY: (visualPositionY: number) => void;
|
|
10
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { useCallback, useRef } from "react";
|
|
2
|
-
export function useEdgeScroll(grid) {
|
|
3
|
-
const intervalIdX = useRef(null);
|
|
4
|
-
const intervalIdY = useRef(null);
|
|
5
|
-
const cancelX = useCallback(() => {
|
|
6
|
-
if (intervalIdX.current) {
|
|
7
|
-
clearInterval(intervalIdX.current);
|
|
8
|
-
intervalIdX.current = null;
|
|
9
|
-
}
|
|
10
|
-
}, []);
|
|
11
|
-
const cancelY = useCallback(() => {
|
|
12
|
-
if (intervalIdY.current) {
|
|
13
|
-
clearInterval(intervalIdY.current);
|
|
14
|
-
intervalIdY.current = null;
|
|
15
|
-
}
|
|
16
|
-
}, []);
|
|
17
|
-
const edgeScrollY = useCallback((visualPositionY) => {
|
|
18
|
-
const viewport = grid.state.viewport.get();
|
|
19
|
-
if (!viewport)
|
|
20
|
-
return;
|
|
21
|
-
const viewportClientHeight = grid.state.viewportHeightInner.get();
|
|
22
|
-
const viewportHeight = Math.min(viewportClientHeight * 0.1, 100);
|
|
23
|
-
const buffer = viewportHeight;
|
|
24
|
-
const topBound = buffer + grid.internal.headerHeightTotal.get();
|
|
25
|
-
const botBound = viewportClientHeight - buffer;
|
|
26
|
-
const speed = 6;
|
|
27
|
-
if (visualPositionY < topBound && !intervalIdY.current) {
|
|
28
|
-
intervalIdY.current = setInterval(() => {
|
|
29
|
-
viewport.scrollBy({ top: -speed });
|
|
30
|
-
}, 6);
|
|
31
|
-
}
|
|
32
|
-
else if (visualPositionY > botBound && !intervalIdY.current) {
|
|
33
|
-
intervalIdY.current = setInterval(() => {
|
|
34
|
-
viewport.scrollBy({ top: speed });
|
|
35
|
-
}, 6);
|
|
36
|
-
}
|
|
37
|
-
if (intervalIdY.current && visualPositionY > topBound && visualPositionY < botBound) {
|
|
38
|
-
cancelY();
|
|
39
|
-
}
|
|
40
|
-
}, [cancelY, grid.internal.headerHeightTotal, grid.state.viewport, grid.state.viewportHeightInner]);
|
|
41
|
-
const edgeScrollX = useCallback((visualPositionX, isRtl) => {
|
|
42
|
-
const viewport = grid.state.viewport.get();
|
|
43
|
-
if (!viewport)
|
|
44
|
-
return;
|
|
45
|
-
const viewportClientWidth = grid.state.viewportWidthInner.get();
|
|
46
|
-
const viewportWidth = Math.min(viewportClientWidth * 0.1, 100);
|
|
47
|
-
const buffer = viewportWidth;
|
|
48
|
-
const leftBound = buffer;
|
|
49
|
-
const rightBound = viewportClientWidth - buffer;
|
|
50
|
-
const speed = 3;
|
|
51
|
-
if (visualPositionX < leftBound && !intervalIdX.current) {
|
|
52
|
-
intervalIdX.current = setInterval(() => {
|
|
53
|
-
viewport.scrollBy({ left: isRtl ? speed : -speed });
|
|
54
|
-
}, 6);
|
|
55
|
-
}
|
|
56
|
-
else if (visualPositionX > rightBound && !intervalIdX.current) {
|
|
57
|
-
intervalIdX.current = setInterval(() => {
|
|
58
|
-
viewport.scrollBy({ left: isRtl ? -speed : speed });
|
|
59
|
-
}, 6);
|
|
60
|
-
}
|
|
61
|
-
if (intervalIdX.current && visualPositionX > leftBound && visualPositionX < rightBound) {
|
|
62
|
-
cancelX();
|
|
63
|
-
}
|
|
64
|
-
}, [cancelX, grid.state.viewport, grid.state.viewportWidthInner]);
|
|
65
|
-
return { cancelX, edgeScrollX, cancelY, edgeScrollY };
|
|
66
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Column } from "../+types";
|
|
2
|
-
import type { PathBranch } from "@1771technologies/lytenyte-shared";
|
|
3
|
-
export declare const branchLookupContext: import("react").Context<Record<string, PathBranch<Column<any>>>>;
|
|
4
|
-
export declare const useBranchLookup: () => Record<string, PathBranch<Column<any>>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from "react";
|
|
2
|
-
import type { Column } from "../+types";
|
|
3
|
-
import type { PathBranch } from "@1771technologies/lytenyte-shared";
|
|
4
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
|
-
export interface ColumnManagerBranchProps {
|
|
6
|
-
readonly item: PathBranch<Column<any>>;
|
|
7
|
-
readonly label: SlotComponent;
|
|
8
|
-
readonly expander?: SlotComponent<{
|
|
9
|
-
expanded: boolean;
|
|
10
|
-
toggle: () => void;
|
|
11
|
-
}>;
|
|
12
|
-
readonly labelWrapClassName?: string;
|
|
13
|
-
readonly labelWrapStyle?: CSSProperties;
|
|
14
|
-
}
|
|
15
|
-
export declare const Branch: import("react").ForwardRefExoticComponent<Omit<ColumnManagerBranchProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|