@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
package/dist/listbox/panel.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useEffect, useState } from "react";
|
|
3
|
-
import { useListboxContext } from "./context.js";
|
|
4
|
-
import { useCombinedRefs } from "@1771technologies/lytenyte-react-hooks";
|
|
5
|
-
import { getTabbables } from "@1771technologies/lytenyte-dom-utils";
|
|
6
|
-
export const Panel = forwardRef(function Panel(props, forwarded) {
|
|
7
|
-
const [ref, setRef] = useState();
|
|
8
|
-
const combinedRef = useCombinedRefs(setRef, forwarded);
|
|
9
|
-
const ctx = useListboxContext();
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (!ref)
|
|
12
|
-
return;
|
|
13
|
-
const controller = new AbortController();
|
|
14
|
-
const isVert = ctx.orientation === "vertical";
|
|
15
|
-
const nextKey = isVert ? "ArrowDown" : ctx.rtl ? "ArrowLeft" : "ArrowRight";
|
|
16
|
-
const prevKey = isVert ? "ArrowUp" : ctx.rtl ? "ArrowRight" : "ArrowLeft";
|
|
17
|
-
ref.addEventListener("keydown", (ev) => {
|
|
18
|
-
if (ev.key === "Tab") {
|
|
19
|
-
if (ref.contains(document.activeElement) || document.activeElement === ref) {
|
|
20
|
-
ref.inert = true;
|
|
21
|
-
setTimeout(() => {
|
|
22
|
-
ref.inert = false;
|
|
23
|
-
}, 10);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (ev.key === nextKey) {
|
|
27
|
-
const items = getTabbables(ref).filter((c) => c.getAttribute("data-ln-listbox-item") === "true");
|
|
28
|
-
const currentIndex = items.findIndex((c) => c.contains(document.activeElement) || c === document.activeElement);
|
|
29
|
-
const focusItem = currentIndex === -1 ? items[0] : (items[currentIndex + 1] ?? items[0]);
|
|
30
|
-
if (!focusItem)
|
|
31
|
-
return;
|
|
32
|
-
focusItem.focus();
|
|
33
|
-
ev.preventDefault();
|
|
34
|
-
ev.stopPropagation();
|
|
35
|
-
}
|
|
36
|
-
if (ev.key === prevKey) {
|
|
37
|
-
const items = getTabbables(ref).filter((c) => c.getAttribute("data-ln-listbox-item") === "true");
|
|
38
|
-
const currentIndex = items.findIndex((c) => c.contains(document.activeElement) || c === document.activeElement);
|
|
39
|
-
const focusItem = currentIndex === -1 ? items.at(-1) : (items[currentIndex - 1] ?? items.at(-1));
|
|
40
|
-
if (!focusItem)
|
|
41
|
-
return;
|
|
42
|
-
focusItem.focus();
|
|
43
|
-
ev.preventDefault();
|
|
44
|
-
ev.stopPropagation();
|
|
45
|
-
}
|
|
46
|
-
}, { signal: controller.signal });
|
|
47
|
-
return () => controller.abort();
|
|
48
|
-
}, [ctx.orientation, ctx.rtl, ref]);
|
|
49
|
-
return (_jsxs("div", { "aria-label": "Generic listbox with keyboard navigable items", ...props, ref: combinedRef, "data-ln-listbox-panel": true, role: "listbox", tabIndex: 0, children: [props.children, _jsx("div", { "aria-label": "a presentational item that can be ignored", tabIndex: 0, onFocus: () => ref?.focus(), role: "option" })] }));
|
|
50
|
-
});
|
package/dist/listbox/root.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type PropsWithChildren } from "react";
|
|
2
|
-
export interface RootProps {
|
|
3
|
-
readonly orientation?: "horizontal" | "vertical";
|
|
4
|
-
readonly rtl?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function Root(props: PropsWithChildren<RootProps>): import("react/jsx-runtime").JSX.Element;
|
package/dist/listbox/root.js
DELETED
|
@@ -1,12 +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(props) {
|
|
5
|
-
const value = useMemo(() => {
|
|
6
|
-
return {
|
|
7
|
-
orientation: props.orientation ?? "vertical",
|
|
8
|
-
rtl: props.rtl ?? false,
|
|
9
|
-
};
|
|
10
|
-
}, [props.orientation, props.rtl]);
|
|
11
|
-
return _jsx(context.Provider, { value: value, children: props.children });
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function DialogDriver(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useGridRoot } from "../context.js";
|
|
3
|
-
export function DialogDriver() {
|
|
4
|
-
const grid = useGridRoot().grid;
|
|
5
|
-
const openFrameState = grid.internal.dialogFrames.useValue();
|
|
6
|
-
const frames = grid.state.dialogFrames.useValue();
|
|
7
|
-
const frameIds = Object.keys(openFrameState);
|
|
8
|
-
const openFrames = frameIds
|
|
9
|
-
.map((c) => {
|
|
10
|
-
const frame = frames[c];
|
|
11
|
-
if (!frame) {
|
|
12
|
-
console.error(`Failed to find a dialog frame with id ${c}`);
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return frame;
|
|
16
|
-
})
|
|
17
|
-
.filter((c) => c);
|
|
18
|
-
return (_jsx(_Fragment, { children: openFrames.map((frame, i) => {
|
|
19
|
-
return (_jsx(frame.component, { frame: frame, grid: grid, context: openFrameState[frameIds[i]] }, frameIds[i]));
|
|
20
|
-
}) }));
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function PopoverDriver(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useGridRoot } from "../context.js";
|
|
3
|
-
export function PopoverDriver() {
|
|
4
|
-
const grid = useGridRoot().grid;
|
|
5
|
-
const openFrameState = grid.internal.popoverFrames.useValue();
|
|
6
|
-
const frames = grid.state.popoverFrames.useValue();
|
|
7
|
-
const frameIds = Object.keys(openFrameState);
|
|
8
|
-
const openFrames = frameIds
|
|
9
|
-
.map((c) => {
|
|
10
|
-
const frame = frames[c];
|
|
11
|
-
if (!frame) {
|
|
12
|
-
console.error(`Failed to find a dialog frame with id ${c}`);
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return frame;
|
|
16
|
-
})
|
|
17
|
-
.filter((c) => c);
|
|
18
|
-
return (_jsx(_Fragment, { children: openFrames.map((frame, i) => {
|
|
19
|
-
return (_jsx(frame.component, { frame: frame, grid: grid, context: openFrameState[frameIds[i]].context, target: openFrameState[frameIds[i]].target }, frameIds[i]));
|
|
20
|
-
}) }));
|
|
21
|
-
}
|
package/dist/root/root.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type PropsWithChildren } from "react";
|
|
2
|
-
import type { Grid, GridEvents } from "../+types";
|
|
3
|
-
export type RootProps<T> = {
|
|
4
|
-
readonly grid: Grid<T>;
|
|
5
|
-
} & {
|
|
6
|
-
[k in keyof GridEvents<T> as `on${Capitalize<k>}`]: GridEvents<T>[k];
|
|
7
|
-
};
|
|
8
|
-
export declare function Root<T = any>({ grid, children, ...events }: PropsWithChildren<RootProps<T>>): import("react/jsx-runtime").JSX.Element;
|
package/dist/root/root.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useLayoutEffect, useMemo } from "react";
|
|
3
|
-
import { useEvent, useMeasure } from "@1771technologies/lytenyte-react-hooks";
|
|
4
|
-
import { RootProvider } from "../context.js";
|
|
5
|
-
import { DialogDriver } from "./dialog-driver.js";
|
|
6
|
-
import { PopoverDriver } from "./popover-driver.js";
|
|
7
|
-
import { CellSelectionDriver } from "../cell-selection/cell-selection-driver.js";
|
|
8
|
-
import { hasAValidLicense, licenseState } from "../license.js";
|
|
9
|
-
export function Root({ grid, children, ...events }) {
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (hasAValidLicense)
|
|
12
|
-
return;
|
|
13
|
-
const existing = document.getElementById("lng1771-watermark");
|
|
14
|
-
if (existing)
|
|
15
|
-
return;
|
|
16
|
-
const invalidLicenseWatermark = document.createElement("div");
|
|
17
|
-
invalidLicenseWatermark.style.position = "fixed";
|
|
18
|
-
invalidLicenseWatermark.style.bottom = "0px";
|
|
19
|
-
invalidLicenseWatermark.style.insetInlineEnd = "0px";
|
|
20
|
-
invalidLicenseWatermark.style.background = "rgb(255, 167, 167)";
|
|
21
|
-
invalidLicenseWatermark.style.color = "black";
|
|
22
|
-
invalidLicenseWatermark.style.fontSize = "1.2rem";
|
|
23
|
-
invalidLicenseWatermark.style.fontWeight = "bold";
|
|
24
|
-
invalidLicenseWatermark.style.border = "1px solid black";
|
|
25
|
-
invalidLicenseWatermark.style.padding = "16px";
|
|
26
|
-
if (licenseState === "expired")
|
|
27
|
-
invalidLicenseWatermark.innerHTML = `LyteNyte Grid: License key expired. Your license covers earlier versions only.`;
|
|
28
|
-
else if (licenseState === "invalid")
|
|
29
|
-
invalidLicenseWatermark.innerHTML = `LyteNyte Grid: Invalid license key. Please verify the key and try again.`;
|
|
30
|
-
else
|
|
31
|
-
invalidLicenseWatermark.innerHTML = `LyteNyte Grid PRO is being used for evaluation.
|
|
32
|
-
<a href="https://1771Technologies.com/pricing">Click here</a> to secure your license.`;
|
|
33
|
-
document.body.appendChild(invalidLicenseWatermark);
|
|
34
|
-
return () => invalidLicenseWatermark.remove();
|
|
35
|
-
}, []);
|
|
36
|
-
const onViewportChange = useEvent((bounds) => {
|
|
37
|
-
grid.state.viewport.set(element ?? null);
|
|
38
|
-
grid.state.viewportHeightOuter.set(bounds.height);
|
|
39
|
-
grid.state.viewportWidthOuter.set(bounds.width);
|
|
40
|
-
grid.state.viewportWidthInner.set(element?.clientWidth ?? 0);
|
|
41
|
-
grid.state.viewportHeightInner.set(element?.clientHeight ?? 0);
|
|
42
|
-
});
|
|
43
|
-
// Add event listeners in the standard react way
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
const ev = Object.entries(events).map(([onName, fn]) => {
|
|
46
|
-
if (!onName.startsWith("on"))
|
|
47
|
-
return;
|
|
48
|
-
const name = onName[2].toLowerCase() + onName.slice(3);
|
|
49
|
-
return grid.api.eventAddListener(name, fn);
|
|
50
|
-
});
|
|
51
|
-
return () => ev.forEach((c) => c?.());
|
|
52
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
53
|
-
}, [Object.values(events)]);
|
|
54
|
-
const [ref, bounds, , element] = useMeasure({
|
|
55
|
-
onChange: onViewportChange,
|
|
56
|
-
});
|
|
57
|
-
// Add css variables so that we can avoid re-renders
|
|
58
|
-
useEffect(() => {
|
|
59
|
-
return grid.state.widthTotal.watch(() => {
|
|
60
|
-
const vp = grid.state.viewport.get();
|
|
61
|
-
const width = grid.state.widthTotal.get();
|
|
62
|
-
if (!vp)
|
|
63
|
-
return;
|
|
64
|
-
vp.style.setProperty("--lng-vp-total-width", `${width}px`);
|
|
65
|
-
});
|
|
66
|
-
}, [grid]);
|
|
67
|
-
const internal = grid.internal;
|
|
68
|
-
// Listen to size changes of the window
|
|
69
|
-
useLayoutEffect(() => {
|
|
70
|
-
if (!element)
|
|
71
|
-
return;
|
|
72
|
-
const obs = new ResizeObserver(() => {
|
|
73
|
-
grid.state.viewport.set(element ?? null);
|
|
74
|
-
grid.state.viewportHeightOuter.set(bounds.height);
|
|
75
|
-
grid.state.viewportWidthOuter.set(bounds.width);
|
|
76
|
-
grid.state.viewportWidthInner.set(element?.clientWidth ?? 0);
|
|
77
|
-
grid.state.viewportHeightInner.set(element?.clientHeight ?? 0);
|
|
78
|
-
});
|
|
79
|
-
obs.observe(element);
|
|
80
|
-
const controller = new AbortController();
|
|
81
|
-
element.addEventListener("scroll", () => {
|
|
82
|
-
internal.xScroll.set(Math.abs(element.scrollLeft));
|
|
83
|
-
internal.yScroll.set(element.scrollTop);
|
|
84
|
-
}, { signal: controller.signal });
|
|
85
|
-
return () => {
|
|
86
|
-
obs.disconnect();
|
|
87
|
-
controller.abort();
|
|
88
|
-
};
|
|
89
|
-
}, [
|
|
90
|
-
bounds.height,
|
|
91
|
-
bounds.width,
|
|
92
|
-
element,
|
|
93
|
-
grid.state.viewport,
|
|
94
|
-
grid.state.viewportHeightInner,
|
|
95
|
-
grid.state.viewportHeightOuter,
|
|
96
|
-
grid.state.viewportWidthInner,
|
|
97
|
-
grid.state.viewportWidthOuter,
|
|
98
|
-
internal.xScroll,
|
|
99
|
-
internal.yScroll,
|
|
100
|
-
]);
|
|
101
|
-
useEffect(() => {
|
|
102
|
-
return internal.focusActive.watch(() => {
|
|
103
|
-
const editActive = internal.editActivePos.get();
|
|
104
|
-
if (!editActive)
|
|
105
|
-
return;
|
|
106
|
-
const focus = internal.focusActive.get();
|
|
107
|
-
if (focus?.kind !== "cell") {
|
|
108
|
-
grid.api.editEnd();
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
if (grid.api.editIsCellActive({ rowIndex: focus.rowIndex, column: focus.colIndex }))
|
|
112
|
-
return;
|
|
113
|
-
grid.api.editEnd();
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}, [grid.api, internal.editActivePos, internal.focusActive]);
|
|
117
|
-
const value = useMemo(() => {
|
|
118
|
-
return {
|
|
119
|
-
ref,
|
|
120
|
-
grid: grid,
|
|
121
|
-
};
|
|
122
|
-
}, [grid, ref]);
|
|
123
|
-
const cellSelectionMode = grid.state.cellSelectionMode.useValue();
|
|
124
|
-
return (_jsxs(RootProvider, { value: value, children: [_jsx(DialogDriver, {}), _jsx(PopoverDriver, {}), cellSelectionMode !== "none" && _jsx(CellSelectionDriver, {}), children] }));
|
|
125
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface GroupItem<Data> {
|
|
2
|
-
readonly fn: (d: Data) => string | null | undefined;
|
|
3
|
-
}
|
|
4
|
-
export interface AggregationItem<Data> {
|
|
5
|
-
readonly fn: (d: Data[]) => unknown;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
}
|
|
8
|
-
export interface LeafNode<Data> {
|
|
9
|
-
readonly kind: 1;
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly data: Data;
|
|
12
|
-
readonly depth: number;
|
|
13
|
-
readonly parent: BranchNode<Data> | null;
|
|
14
|
-
}
|
|
15
|
-
export interface BranchNode<Data> {
|
|
16
|
-
readonly kind: 2;
|
|
17
|
-
readonly depth: number;
|
|
18
|
-
readonly id: string;
|
|
19
|
-
readonly key: string;
|
|
20
|
-
readonly children: Map<string | null, TreeNode<Data>>;
|
|
21
|
-
readonly data: Record<string, unknown>;
|
|
22
|
-
readonly parent: BranchNode<Data> | null;
|
|
23
|
-
readonly leafIds: Set<string>;
|
|
24
|
-
readonly leafData: Data[];
|
|
25
|
-
}
|
|
26
|
-
export type TreeNode<Data> = LeafNode<Data> | BranchNode<Data>;
|
|
27
|
-
export type Root<Data> = Map<string | null, TreeNode<Data>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the average (mean) of non-null values in an array.
|
|
3
|
-
* @param data - An array of numbers that may include null values
|
|
4
|
-
* @returns The average of all non-null numbers. Returns 0 for empty arrays.
|
|
5
|
-
* @example
|
|
6
|
-
* avg([1, 2, null, 3]) // Returns 2
|
|
7
|
-
* avg([]) // Returns 0
|
|
8
|
-
* avg([null, null]) // Returns 0
|
|
9
|
-
*/
|
|
10
|
-
export declare function avg(data: (number | null)[]): number;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { sum } from "./sum.js";
|
|
2
|
-
/**
|
|
3
|
-
* Calculates the average (mean) of non-null values in an array.
|
|
4
|
-
* @param data - An array of numbers that may include null values
|
|
5
|
-
* @returns The average of all non-null numbers. Returns 0 for empty arrays.
|
|
6
|
-
* @example
|
|
7
|
-
* avg([1, 2, null, 3]) // Returns 2
|
|
8
|
-
* avg([]) // Returns 0
|
|
9
|
-
* avg([null, null]) // Returns 0
|
|
10
|
-
*/
|
|
11
|
-
export function avg(data) {
|
|
12
|
-
if (!data.length)
|
|
13
|
-
return 0;
|
|
14
|
-
const total = sum(data);
|
|
15
|
-
return total / data.length;
|
|
16
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { avg } from "./avg.js";
|
|
2
|
-
import { count } from "./count.js";
|
|
3
|
-
import { first } from "./first.js";
|
|
4
|
-
import { group } from "./group.js";
|
|
5
|
-
import { last } from "./last.js";
|
|
6
|
-
import { max } from "./max.js";
|
|
7
|
-
import { min } from "./min.js";
|
|
8
|
-
import { sum } from "./sum.js";
|
|
9
|
-
/**
|
|
10
|
-
* Collection of built-in array utility functions for numerical and statistical operations.
|
|
11
|
-
* Each function handles null and undefined values gracefully.
|
|
12
|
-
* @example
|
|
13
|
-
* import { builtIns } from './builtIns.js';
|
|
14
|
-
*
|
|
15
|
-
* const data = [1, null, 3, 2];
|
|
16
|
-
* builtIns.sum(data); // Returns 6
|
|
17
|
-
* builtIns.avg(data); // Returns 2
|
|
18
|
-
*/
|
|
19
|
-
export declare const builtIns: {
|
|
20
|
-
/** Calculate sum of non-null numbers in array */
|
|
21
|
-
sum: typeof sum;
|
|
22
|
-
/** Count non-null/undefined elements in array */
|
|
23
|
-
count: typeof count;
|
|
24
|
-
/** Calculate average of non-null numbers in array */
|
|
25
|
-
avg: typeof avg;
|
|
26
|
-
/** Get first non-null/undefined element in array */
|
|
27
|
-
first: typeof first;
|
|
28
|
-
/** Get last non-null/undefined element in array */
|
|
29
|
-
last: typeof last;
|
|
30
|
-
/** Find minimum value among non-null/undefined numbers in array */
|
|
31
|
-
min: typeof min;
|
|
32
|
-
/** Find maximum value among non-null/undefined numbers in array */
|
|
33
|
-
max: typeof max;
|
|
34
|
-
/** Return the aggregation group */
|
|
35
|
-
group: typeof group;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Set containing valid built-in function names.
|
|
39
|
-
* Used for validating function names and checking available operations.
|
|
40
|
-
* @example
|
|
41
|
-
* const isValidFunction = validBuiltIns.has('sum'); // Returns true
|
|
42
|
-
* const isInvalidFunction = validBuiltIns.has('median'); // Returns false
|
|
43
|
-
*/
|
|
44
|
-
export declare const validBuiltIns: Set<string>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { avg } from "./avg.js";
|
|
2
|
-
import { count } from "./count.js";
|
|
3
|
-
import { first } from "./first.js";
|
|
4
|
-
import { group } from "./group.js";
|
|
5
|
-
import { last } from "./last.js";
|
|
6
|
-
import { max } from "./max.js";
|
|
7
|
-
import { min } from "./min.js";
|
|
8
|
-
import { sum } from "./sum.js";
|
|
9
|
-
/**
|
|
10
|
-
* Collection of built-in array utility functions for numerical and statistical operations.
|
|
11
|
-
* Each function handles null and undefined values gracefully.
|
|
12
|
-
* @example
|
|
13
|
-
* import { builtIns } from './builtIns.js';
|
|
14
|
-
*
|
|
15
|
-
* const data = [1, null, 3, 2];
|
|
16
|
-
* builtIns.sum(data); // Returns 6
|
|
17
|
-
* builtIns.avg(data); // Returns 2
|
|
18
|
-
*/
|
|
19
|
-
export const builtIns = {
|
|
20
|
-
/** Calculate sum of non-null numbers in array */
|
|
21
|
-
sum: sum,
|
|
22
|
-
/** Count non-null/undefined elements in array */
|
|
23
|
-
count: count,
|
|
24
|
-
/** Calculate average of non-null numbers in array */
|
|
25
|
-
avg: avg,
|
|
26
|
-
/** Get first non-null/undefined element in array */
|
|
27
|
-
first: first,
|
|
28
|
-
/** Get last non-null/undefined element in array */
|
|
29
|
-
last: last,
|
|
30
|
-
/** Find minimum value among non-null/undefined numbers in array */
|
|
31
|
-
min: min,
|
|
32
|
-
/** Find maximum value among non-null/undefined numbers in array */
|
|
33
|
-
max: max,
|
|
34
|
-
/** Return the aggregation group */
|
|
35
|
-
group: group,
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Set containing valid built-in function names.
|
|
39
|
-
* Used for validating function names and checking available operations.
|
|
40
|
-
* @example
|
|
41
|
-
* const isValidFunction = validBuiltIns.has('sum'); // Returns true
|
|
42
|
-
* const isInvalidFunction = validBuiltIns.has('median'); // Returns false
|
|
43
|
-
*/
|
|
44
|
-
export const validBuiltIns = new Set(Object.keys(builtIns));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Counts the number of non-null elements in an array.
|
|
3
|
-
* @param data - An array of any type
|
|
4
|
-
* @returns The count of elements that are neither null nor undefined
|
|
5
|
-
* @example
|
|
6
|
-
* count([1, null, 'a', undefined]) // Returns 2
|
|
7
|
-
* count([]) // Returns 0
|
|
8
|
-
* count([null, undefined]) // Returns 0
|
|
9
|
-
*/
|
|
10
|
-
export declare function count(d: unknown[]): number;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Counts the number of non-null elements in an array.
|
|
3
|
-
* @param data - An array of any type
|
|
4
|
-
* @returns The count of elements that are neither null nor undefined
|
|
5
|
-
* @example
|
|
6
|
-
* count([1, null, 'a', undefined]) // Returns 2
|
|
7
|
-
* count([]) // Returns 0
|
|
8
|
-
* count([null, undefined]) // Returns 0
|
|
9
|
-
*/
|
|
10
|
-
export function count(d) {
|
|
11
|
-
let c = 0;
|
|
12
|
-
for (let i = d.length - 1; i >= 0; i--)
|
|
13
|
-
if (d[i] != null)
|
|
14
|
-
c++;
|
|
15
|
-
return c;
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the first non-null element in an array.
|
|
3
|
-
* @param data - An array of any type
|
|
4
|
-
* @returns The first element that is neither null nor undefined, or undefined if no such element exists
|
|
5
|
-
* @example
|
|
6
|
-
* first([null, 1, 2]) // Returns 1
|
|
7
|
-
* first([]) // Returns undefined
|
|
8
|
-
* first([null, undefined]) // Returns undefined
|
|
9
|
-
*/
|
|
10
|
-
export declare function first(d: unknown[]): {} | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the first non-null element in an array.
|
|
3
|
-
* @param data - An array of any type
|
|
4
|
-
* @returns The first element that is neither null nor undefined, or undefined if no such element exists
|
|
5
|
-
* @example
|
|
6
|
-
* first([null, 1, 2]) // Returns 1
|
|
7
|
-
* first([]) // Returns undefined
|
|
8
|
-
* first([null, undefined]) // Returns undefined
|
|
9
|
-
*/
|
|
10
|
-
export function first(d) {
|
|
11
|
-
return d.find((c) => c != null);
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function group(data: unknown[]): unknown[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the last non-null element in an array.
|
|
3
|
-
* @param data - An array of any type
|
|
4
|
-
* @returns The last element that is neither null nor undefined, or undefined if no such element exists
|
|
5
|
-
* @example
|
|
6
|
-
* last([1, 2, null]) // Returns 2
|
|
7
|
-
* last([]) // Returns undefined
|
|
8
|
-
* last([null, undefined]) // Returns undefined
|
|
9
|
-
*/
|
|
10
|
-
export declare function last(d: unknown[]): {} | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the last non-null element in an array.
|
|
3
|
-
* @param data - An array of any type
|
|
4
|
-
* @returns The last element that is neither null nor undefined, or undefined if no such element exists
|
|
5
|
-
* @example
|
|
6
|
-
* last([1, 2, null]) // Returns 2
|
|
7
|
-
* last([]) // Returns undefined
|
|
8
|
-
* last([null, undefined]) // Returns undefined
|
|
9
|
-
*/
|
|
10
|
-
export function last(d) {
|
|
11
|
-
return d.findLast((c) => c != null);
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Finds the maximum value in an array of numbers that may include null or undefined values.
|
|
3
|
-
* Iterates through the array from right to left.
|
|
4
|
-
* @param data - An array of numbers that may include null or undefined values
|
|
5
|
-
* @returns The maximum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
|
|
6
|
-
* @example
|
|
7
|
-
* max([1, null, 3, undefined, 2]) // Returns 3
|
|
8
|
-
* max([]) // Returns 0
|
|
9
|
-
* max([null, undefined]) // Returns 0
|
|
10
|
-
*/
|
|
11
|
-
export declare function max(data: (number | null | undefined)[]): number;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Finds the maximum value in an array of numbers that may include null or undefined values.
|
|
3
|
-
* Iterates through the array from right to left.
|
|
4
|
-
* @param data - An array of numbers that may include null or undefined values
|
|
5
|
-
* @returns The maximum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
|
|
6
|
-
* @example
|
|
7
|
-
* max([1, null, 3, undefined, 2]) // Returns 3
|
|
8
|
-
* max([]) // Returns 0
|
|
9
|
-
* max([null, undefined]) // Returns 0
|
|
10
|
-
*/
|
|
11
|
-
export function max(data) {
|
|
12
|
-
if (!data.length)
|
|
13
|
-
return 0;
|
|
14
|
-
let max = data[0];
|
|
15
|
-
for (let i = data.length - 1; i > 0; i--) {
|
|
16
|
-
const d = data[i];
|
|
17
|
-
if (d != null && max == null)
|
|
18
|
-
max = d;
|
|
19
|
-
else if (d == null)
|
|
20
|
-
continue;
|
|
21
|
-
else if (d > max)
|
|
22
|
-
max = data[i];
|
|
23
|
-
}
|
|
24
|
-
return max ?? 0;
|
|
25
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Finds the minimum value in an array of numbers that may include null or undefined values.
|
|
3
|
-
* Iterates through the array from right to left.
|
|
4
|
-
* @param data - An array of numbers that may include null or undefined values
|
|
5
|
-
* @returns The minimum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
|
|
6
|
-
* @example
|
|
7
|
-
* min([1, null, 3, undefined, 2]) // Returns 1
|
|
8
|
-
* min([]) // Returns 0
|
|
9
|
-
* min([null, undefined]) // Returns 0
|
|
10
|
-
*/
|
|
11
|
-
export declare function min(data: (number | null | undefined)[]): number;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Finds the minimum value in an array of numbers that may include null or undefined values.
|
|
3
|
-
* Iterates through the array from right to left.
|
|
4
|
-
* @param data - An array of numbers that may include null or undefined values
|
|
5
|
-
* @returns The minimum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
|
|
6
|
-
* @example
|
|
7
|
-
* min([1, null, 3, undefined, 2]) // Returns 1
|
|
8
|
-
* min([]) // Returns 0
|
|
9
|
-
* min([null, undefined]) // Returns 0
|
|
10
|
-
*/
|
|
11
|
-
export function min(data) {
|
|
12
|
-
if (!data.length)
|
|
13
|
-
return 0;
|
|
14
|
-
let min = data[0];
|
|
15
|
-
for (let i = data.length - 1; i > 0; i--) {
|
|
16
|
-
const d = data[i];
|
|
17
|
-
if (d != null && min == null)
|
|
18
|
-
min = d;
|
|
19
|
-
else if (d == null)
|
|
20
|
-
continue;
|
|
21
|
-
else if (d < min)
|
|
22
|
-
min = data[i];
|
|
23
|
-
}
|
|
24
|
-
return min ?? 0;
|
|
25
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the sum of all non-null numbers in an array.
|
|
3
|
-
* @param data - An array of numbers that may include null values
|
|
4
|
-
* @returns The sum of all non-null numbers in the array. Returns 0 for empty arrays or arrays containing only null values.
|
|
5
|
-
* @example
|
|
6
|
-
* sum([1, 2, null, 3]) // Returns 6
|
|
7
|
-
* sum([]) // Returns 0
|
|
8
|
-
* sum([null, null]) // Returns 0
|
|
9
|
-
*/
|
|
10
|
-
export declare function sum(data: (number | null)[]): number;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the sum of all non-null numbers in an array.
|
|
3
|
-
* @param data - An array of numbers that may include null values
|
|
4
|
-
* @returns The sum of all non-null numbers in the array. Returns 0 for empty arrays or arrays containing only null values.
|
|
5
|
-
* @example
|
|
6
|
-
* sum([1, 2, null, 3]) // Returns 6
|
|
7
|
-
* sum([]) // Returns 0
|
|
8
|
-
* sum([null, null]) // Returns 0
|
|
9
|
-
*/
|
|
10
|
-
export function sum(data) {
|
|
11
|
-
if (!data.length)
|
|
12
|
-
return 0;
|
|
13
|
-
let total = 0;
|
|
14
|
-
for (let i = data.length - 1; i >= 0; i--) {
|
|
15
|
-
const d = data[i];
|
|
16
|
-
if (d == null)
|
|
17
|
-
continue;
|
|
18
|
-
total += d;
|
|
19
|
-
}
|
|
20
|
-
return total;
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FilterDateSetting, FilterNumberSettings, FilterStringSettings } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import type { FilterCombinationOperator, FilterDate, FilterFunc, FilterIn, FilterNumber, FilterString } from "../../+types";
|
|
3
|
-
export interface FilterDateWithSettings extends FilterDate {
|
|
4
|
-
readonly field: string;
|
|
5
|
-
readonly settings: FilterDateSetting;
|
|
6
|
-
}
|
|
7
|
-
export interface FilterStringWithSettings extends FilterString {
|
|
8
|
-
readonly field: string;
|
|
9
|
-
readonly settings: FilterStringSettings;
|
|
10
|
-
}
|
|
11
|
-
export interface FilterNumberWithSettings extends FilterNumber {
|
|
12
|
-
readonly field: string;
|
|
13
|
-
readonly settings: FilterNumberSettings;
|
|
14
|
-
}
|
|
15
|
-
export interface FilterInWithField extends FilterIn {
|
|
16
|
-
readonly field: string;
|
|
17
|
-
}
|
|
18
|
-
export interface FilterCombinationWithSettings {
|
|
19
|
-
readonly kind: "combination";
|
|
20
|
-
readonly operator: FilterCombinationOperator;
|
|
21
|
-
readonly filters: Array<FilterStringWithSettings | FilterNumberWithSettings | FilterDateWithSettings | FilterCombinationWithSettings>;
|
|
22
|
-
}
|
|
23
|
-
export type FilterWithSettings<T> = FilterDateWithSettings | FilterStringWithSettings | FilterNumberWithSettings | FilterCombinationWithSettings | FilterInWithField | FilterFunc<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { FilterIn, FilterModelItem, FilterQuickSearchSensitivity, Grid, RowLeaf } from "../../+types";
|
|
2
|
-
export declare function computeFilteredRows<T>(rows: RowLeaf<T>[], grid: Grid<T> | null, filterModel: Record<string, FilterModelItem<T>>, filterInModel: Record<string, FilterIn>, quickSearch: string | null, sensitivity: FilterQuickSearchSensitivity, isPivot: boolean): RowLeaf<T>[];
|