@1771technologies/lytenyte-pro 1.0.20 → 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 -465
package/dist/license.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
const hashSalt = "faec0f3c45281b1fe12d87e64a6c3271";
|
|
2
|
-
const issueDate = new Date("2025-10-05");
|
|
3
|
-
function getHostname() {
|
|
4
|
-
const win = globalThis?.document?.defaultView || (typeof window !== "undefined" ? window : null);
|
|
5
|
-
const loc = win?.location;
|
|
6
|
-
const { hostname = "" } = loc ?? {};
|
|
7
|
-
return hostname;
|
|
8
|
-
}
|
|
9
|
-
function isWebsiteUrl() {
|
|
10
|
-
const hostname = getHostname();
|
|
11
|
-
return hostname.match(/^((?:\w+\.)?1771technologies\.com)$/) !== null;
|
|
12
|
-
}
|
|
13
|
-
function isLocalhost() {
|
|
14
|
-
const hostname = getHostname();
|
|
15
|
-
return hostname.match(/^(?:127\.0\.0\.1|localhost)$/) !== null;
|
|
16
|
-
}
|
|
17
|
-
export let hasAValidLicense = isWebsiteUrl() || isLocalhost();
|
|
18
|
-
export let licenseState = null;
|
|
19
|
-
export function activateLicense(license) {
|
|
20
|
-
const parts = license.split("|");
|
|
21
|
-
const details = parts[0];
|
|
22
|
-
const hash = parts[1];
|
|
23
|
-
const detailHash = new MD5().md5(details + hashSalt);
|
|
24
|
-
if (detailHash !== hash) {
|
|
25
|
-
console.error(`
|
|
26
|
-
********************************************************************************
|
|
27
|
-
LyteNyte Grid PRO
|
|
28
|
-
|
|
29
|
-
Invalid license key. Please verify the key and try again.
|
|
30
|
-
|
|
31
|
-
Visit https://1771technolgies.com for more information.
|
|
32
|
-
********************************************************************************
|
|
33
|
-
`);
|
|
34
|
-
licenseState = "invalid";
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
const detailParts = details.split(" ");
|
|
38
|
-
const endDate = new Date(detailParts[1]);
|
|
39
|
-
if (issueDate > endDate) {
|
|
40
|
-
console.error(`
|
|
41
|
-
********************************************************************************
|
|
42
|
-
LyteNyte Grid PRO
|
|
43
|
-
|
|
44
|
-
License key expired. Your license covers earlier versions only.
|
|
45
|
-
|
|
46
|
-
Visit https://1771technolgies.com for more information.
|
|
47
|
-
********************************************************************************
|
|
48
|
-
`);
|
|
49
|
-
licenseState = "expired";
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
hasAValidLicense = true;
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
// see: https://www.myersdaily.org/joseph/javascript/md5-text.html
|
|
56
|
-
// https://stackoverflow.com/a/1655795
|
|
57
|
-
class MD5 {
|
|
58
|
-
md5cycle(x, k) {
|
|
59
|
-
let a = x[0];
|
|
60
|
-
let b = x[1];
|
|
61
|
-
let c = x[2];
|
|
62
|
-
let d = x[3];
|
|
63
|
-
a = this.ff(a, b, c, d, k[0], 7, -680876936);
|
|
64
|
-
d = this.ff(d, a, b, c, k[1], 12, -389564586);
|
|
65
|
-
c = this.ff(c, d, a, b, k[2], 17, 606105819);
|
|
66
|
-
b = this.ff(b, c, d, a, k[3], 22, -1044525330);
|
|
67
|
-
a = this.ff(a, b, c, d, k[4], 7, -176418897);
|
|
68
|
-
d = this.ff(d, a, b, c, k[5], 12, 1200080426);
|
|
69
|
-
c = this.ff(c, d, a, b, k[6], 17, -1473231341);
|
|
70
|
-
b = this.ff(b, c, d, a, k[7], 22, -45705983);
|
|
71
|
-
a = this.ff(a, b, c, d, k[8], 7, 1770035416);
|
|
72
|
-
d = this.ff(d, a, b, c, k[9], 12, -1958414417);
|
|
73
|
-
c = this.ff(c, d, a, b, k[10], 17, -42063);
|
|
74
|
-
b = this.ff(b, c, d, a, k[11], 22, -1990404162);
|
|
75
|
-
a = this.ff(a, b, c, d, k[12], 7, 1804603682);
|
|
76
|
-
d = this.ff(d, a, b, c, k[13], 12, -40341101);
|
|
77
|
-
c = this.ff(c, d, a, b, k[14], 17, -1502002290);
|
|
78
|
-
b = this.ff(b, c, d, a, k[15], 22, 1236535329);
|
|
79
|
-
a = this.gg(a, b, c, d, k[1], 5, -165796510);
|
|
80
|
-
d = this.gg(d, a, b, c, k[6], 9, -1069501632);
|
|
81
|
-
c = this.gg(c, d, a, b, k[11], 14, 643717713);
|
|
82
|
-
b = this.gg(b, c, d, a, k[0], 20, -373897302);
|
|
83
|
-
a = this.gg(a, b, c, d, k[5], 5, -701558691);
|
|
84
|
-
d = this.gg(d, a, b, c, k[10], 9, 38016083);
|
|
85
|
-
c = this.gg(c, d, a, b, k[15], 14, -660478335);
|
|
86
|
-
b = this.gg(b, c, d, a, k[4], 20, -405537848);
|
|
87
|
-
a = this.gg(a, b, c, d, k[9], 5, 568446438);
|
|
88
|
-
d = this.gg(d, a, b, c, k[14], 9, -1019803690);
|
|
89
|
-
c = this.gg(c, d, a, b, k[3], 14, -187363961);
|
|
90
|
-
b = this.gg(b, c, d, a, k[8], 20, 1163531501);
|
|
91
|
-
a = this.gg(a, b, c, d, k[13], 5, -1444681467);
|
|
92
|
-
d = this.gg(d, a, b, c, k[2], 9, -51403784);
|
|
93
|
-
c = this.gg(c, d, a, b, k[7], 14, 1735328473);
|
|
94
|
-
b = this.gg(b, c, d, a, k[12], 20, -1926607734);
|
|
95
|
-
a = this.hh(a, b, c, d, k[5], 4, -378558);
|
|
96
|
-
d = this.hh(d, a, b, c, k[8], 11, -2022574463);
|
|
97
|
-
c = this.hh(c, d, a, b, k[11], 16, 1839030562);
|
|
98
|
-
b = this.hh(b, c, d, a, k[14], 23, -35309556);
|
|
99
|
-
a = this.hh(a, b, c, d, k[1], 4, -1530992060);
|
|
100
|
-
d = this.hh(d, a, b, c, k[4], 11, 1272893353);
|
|
101
|
-
c = this.hh(c, d, a, b, k[7], 16, -155497632);
|
|
102
|
-
b = this.hh(b, c, d, a, k[10], 23, -1094730640);
|
|
103
|
-
a = this.hh(a, b, c, d, k[13], 4, 681279174);
|
|
104
|
-
d = this.hh(d, a, b, c, k[0], 11, -358537222);
|
|
105
|
-
c = this.hh(c, d, a, b, k[3], 16, -722521979);
|
|
106
|
-
b = this.hh(b, c, d, a, k[6], 23, 76029189);
|
|
107
|
-
a = this.hh(a, b, c, d, k[9], 4, -640364487);
|
|
108
|
-
d = this.hh(d, a, b, c, k[12], 11, -421815835);
|
|
109
|
-
c = this.hh(c, d, a, b, k[15], 16, 530742520);
|
|
110
|
-
b = this.hh(b, c, d, a, k[2], 23, -995338651);
|
|
111
|
-
a = this.ii(a, b, c, d, k[0], 6, -198630844);
|
|
112
|
-
d = this.ii(d, a, b, c, k[7], 10, 1126891415);
|
|
113
|
-
c = this.ii(c, d, a, b, k[14], 15, -1416354905);
|
|
114
|
-
b = this.ii(b, c, d, a, k[5], 21, -57434055);
|
|
115
|
-
a = this.ii(a, b, c, d, k[12], 6, 1700485571);
|
|
116
|
-
d = this.ii(d, a, b, c, k[3], 10, -1894986606);
|
|
117
|
-
c = this.ii(c, d, a, b, k[10], 15, -1051523);
|
|
118
|
-
b = this.ii(b, c, d, a, k[1], 21, -2054922799);
|
|
119
|
-
a = this.ii(a, b, c, d, k[8], 6, 1873313359);
|
|
120
|
-
d = this.ii(d, a, b, c, k[15], 10, -30611744);
|
|
121
|
-
c = this.ii(c, d, a, b, k[6], 15, -1560198380);
|
|
122
|
-
b = this.ii(b, c, d, a, k[13], 21, 1309151649);
|
|
123
|
-
a = this.ii(a, b, c, d, k[4], 6, -145523070);
|
|
124
|
-
d = this.ii(d, a, b, c, k[11], 10, -1120210379);
|
|
125
|
-
c = this.ii(c, d, a, b, k[2], 15, 718787259);
|
|
126
|
-
b = this.ii(b, c, d, a, k[9], 21, -343485551);
|
|
127
|
-
x[0] = this.add32(a, x[0]);
|
|
128
|
-
x[1] = this.add32(b, x[1]);
|
|
129
|
-
x[2] = this.add32(c, x[2]);
|
|
130
|
-
x[3] = this.add32(d, x[3]);
|
|
131
|
-
}
|
|
132
|
-
cmn(q, a, b, x, s, t) {
|
|
133
|
-
a = this.add32(this.add32(a, q), this.add32(x, t));
|
|
134
|
-
return this.add32((a << s) | (a >>> (32 - s)), b);
|
|
135
|
-
}
|
|
136
|
-
ff(a, b, c, d, x, s, t) {
|
|
137
|
-
return this.cmn((b & c) | (~b & d), a, b, x, s, t);
|
|
138
|
-
}
|
|
139
|
-
gg(a, b, c, d, x, s, t) {
|
|
140
|
-
return this.cmn((b & d) | (c & ~d), a, b, x, s, t);
|
|
141
|
-
}
|
|
142
|
-
hh(a, b, c, d, x, s, t) {
|
|
143
|
-
return this.cmn(b ^ c ^ d, a, b, x, s, t);
|
|
144
|
-
}
|
|
145
|
-
ii(a, b, c, d, x, s, t) {
|
|
146
|
-
return this.cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
147
|
-
}
|
|
148
|
-
md51(s) {
|
|
149
|
-
const n = s.length;
|
|
150
|
-
const state = [1732584193, -271733879, -1732584194, 271733878];
|
|
151
|
-
let i;
|
|
152
|
-
for (i = 64; i <= s.length; i += 64) {
|
|
153
|
-
this.md5cycle(state, this.md5blk(s.substring(i - 64, i)));
|
|
154
|
-
}
|
|
155
|
-
s = s.substring(i - 64);
|
|
156
|
-
const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
157
|
-
for (i = 0; i < s.length; i++) {
|
|
158
|
-
tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
|
|
159
|
-
}
|
|
160
|
-
tail[i >> 2] |= 0x80 << (i % 4 << 3);
|
|
161
|
-
if (i > 55) {
|
|
162
|
-
this.md5cycle(state, tail);
|
|
163
|
-
for (i = 0; i < 16; i++) {
|
|
164
|
-
tail[i] = 0;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
tail[14] = n * 8;
|
|
168
|
-
this.md5cycle(state, tail);
|
|
169
|
-
return state;
|
|
170
|
-
}
|
|
171
|
-
/* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5
|
|
172
|
-
* algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and
|
|
173
|
-
* shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character
|
|
174
|
-
* was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched?
|
|
175
|
-
* There is no way to standardize text to something like UTF-8 before transformation; speed cost is
|
|
176
|
-
* utterly prohibitive. The JavaScript standard itself needs to look at this: it should start
|
|
177
|
-
* providing access to strings as preformed UTF-8 8-bit unsigned value arrays.
|
|
178
|
-
*/
|
|
179
|
-
md5blk(s) {
|
|
180
|
-
const md5blks = [];
|
|
181
|
-
for (let i = 0; i < 64; i += 4) {
|
|
182
|
-
md5blks[i >> 2] =
|
|
183
|
-
s.charCodeAt(i) +
|
|
184
|
-
(s.charCodeAt(i + 1) << 8) +
|
|
185
|
-
(s.charCodeAt(i + 2) << 16) +
|
|
186
|
-
(s.charCodeAt(i + 3) << 24);
|
|
187
|
-
}
|
|
188
|
-
return md5blks;
|
|
189
|
-
}
|
|
190
|
-
rhex(n) {
|
|
191
|
-
const hex_chr = "0123456789abcdef".split("");
|
|
192
|
-
let s = "";
|
|
193
|
-
let j = 0;
|
|
194
|
-
for (; j < 4; j++) {
|
|
195
|
-
s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f];
|
|
196
|
-
}
|
|
197
|
-
return s;
|
|
198
|
-
}
|
|
199
|
-
hex(x) {
|
|
200
|
-
for (let i = 0; i < x.length; i++) {
|
|
201
|
-
x[i] = this.rhex(x[i]);
|
|
202
|
-
}
|
|
203
|
-
return x.join("");
|
|
204
|
-
}
|
|
205
|
-
md5(s) {
|
|
206
|
-
return this.hex(this.md51(s));
|
|
207
|
-
}
|
|
208
|
-
add32(a, b) {
|
|
209
|
-
return this.add32Std(a, b);
|
|
210
|
-
}
|
|
211
|
-
add32Std(a, b) {
|
|
212
|
-
return (a + b) & 0xffffffff;
|
|
213
|
-
}
|
|
214
|
-
}
|
package/dist/listbox/context.js
DELETED
package/dist/listbox/item.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/listbox/item.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { useListboxContext } from "./context.js";
|
|
4
|
-
import { getTabbables } from "@1771technologies/lytenyte-shared";
|
|
5
|
-
export const Item = forwardRef(function Item(props, forwarded) {
|
|
6
|
-
const ctx = useListboxContext();
|
|
7
|
-
return (_jsx("div", { ...props, role: "option", onKeyDownCapture: (ev) => {
|
|
8
|
-
const next = ctx.rtl ? "ArrowLeft" : "ArrowRight";
|
|
9
|
-
const prev = ctx.rtl ? "ArrowRight" : "ArrowLeft";
|
|
10
|
-
if (ev.key !== next && ev.key !== prev)
|
|
11
|
-
return;
|
|
12
|
-
ev.preventDefault();
|
|
13
|
-
const items = getTabbables(ev.currentTarget);
|
|
14
|
-
if (!items.length)
|
|
15
|
-
return;
|
|
16
|
-
items.unshift(ev.currentTarget);
|
|
17
|
-
const index = items.findIndex((c) => document.activeElement === c);
|
|
18
|
-
const nextIndex = ev.key === next ? index + 1 : index - 1;
|
|
19
|
-
const itemToFocus = items[nextIndex];
|
|
20
|
-
if (!itemToFocus)
|
|
21
|
-
return;
|
|
22
|
-
ev.stopPropagation();
|
|
23
|
-
itemToFocus.focus();
|
|
24
|
-
}, ref: forwarded, tabIndex: 0, "data-ln-listbox-item": true }));
|
|
25
|
-
});
|
package/dist/listbox/panel.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Panel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
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 { getTabbables } from "@1771technologies/lytenyte-shared";
|
|
5
|
-
import { useCombinedRefs } from "@1771technologies/lytenyte-core/yinternal";
|
|
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,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
|
-
}
|