@1771technologies/lytenyte-pro 2.0.0-dev.0 → 2.0.0-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/dist/__play__/alpha.play.d.ts +3 -0
- package/dist/__play__/alpha.play.js +56 -0
- package/dist/__play__/basic-server-data/data.d.ts +10 -0
- package/dist/__play__/basic-server-data/data.js +17746 -0
- package/dist/__play__/basic-server-data/server.d.ts +36 -0
- package/dist/__play__/basic-server-data/server.js +105 -0
- package/dist/__play__/buttons.play.d.ts +4 -0
- package/dist/__play__/buttons.play.js +7 -0
- package/dist/__play__/inputs.play.d.ts +3 -0
- package/dist/__play__/inputs.play.js +13 -0
- package/dist/__play__/server.play.d.ts +3 -0
- package/dist/__play__/server.play.js +66 -0
- package/dist/__play__/tree.play.d.ts +3 -0
- package/dist/__play__/tree.play.js +47 -0
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +2 -0
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +43 -0
- package/dist/cell-selection/are-rects-equal.d.ts +2 -0
- package/dist/cell-selection/are-rects-equal.js +6 -0
- package/dist/cell-selection/bound-selection-rect.d.ts +3 -0
- package/dist/cell-selection/bound-selection-rect.js +16 -0
- package/dist/cell-selection/cell-selection-containers.d.ts +3 -0
- package/dist/cell-selection/cell-selection-containers.js +86 -0
- package/dist/cell-selection/cell-selection-driver/cell-selection-driver.d.ts +1 -0
- package/dist/cell-selection/cell-selection-driver/cell-selection-driver.js +279 -0
- package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.d.ts +6 -0
- package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.js +34 -0
- package/dist/cell-selection/cell-style-row.d.ts +8 -0
- package/dist/cell-selection/cell-style-row.js +79 -0
- package/dist/cell-selection/data-rect-from-cell-position.d.ts +3 -0
- package/dist/cell-selection/data-rect-from-cell-position.js +17 -0
- package/dist/cell-selection/deselect-rect-range.d.ts +2 -0
- package/dist/cell-selection/deselect-rect-range.js +43 -0
- package/dist/cell-selection/expand-selection-down.d.ts +3 -0
- package/dist/cell-selection/expand-selection-down.js +78 -0
- package/dist/cell-selection/expand-selection-end.d.ts +3 -0
- package/dist/cell-selection/expand-selection-end.js +76 -0
- package/dist/cell-selection/expand-selection-start.d.ts +3 -0
- package/dist/cell-selection/expand-selection-start.js +73 -0
- package/dist/cell-selection/expand-selection-up.d.ts +3 -0
- package/dist/cell-selection/expand-selection-up.js +74 -0
- package/dist/cell-selection/full-width-start-end-index.d.ts +2 -0
- package/dist/cell-selection/full-width-start-end-index.js +4 -0
- package/dist/cell-selection/get-root-cell.d.ts +3 -0
- package/dist/cell-selection/get-root-cell.js +6 -0
- package/dist/cell-selection/index.d.ts +13 -0
- package/dist/cell-selection/index.js +13 -0
- package/dist/cell-selection/is-bottom-rect.d.ts +2 -0
- package/dist/cell-selection/is-bottom-rect.js +4 -0
- package/dist/cell-selection/is-center-col-rect.d.ts +5 -0
- package/dist/cell-selection/is-center-col-rect.js +3 -0
- package/dist/cell-selection/is-center-rect.d.ts +2 -0
- package/dist/cell-selection/is-center-rect.js +4 -0
- package/dist/cell-selection/is-end-rect.d.ts +5 -0
- package/dist/cell-selection/is-end-rect.js +3 -0
- package/dist/cell-selection/is-fully-within-rect.d.ts +2 -0
- package/dist/cell-selection/is-fully-within-rect.js +6 -0
- package/dist/cell-selection/is-overlapping-rect.d.ts +2 -0
- package/dist/cell-selection/is-overlapping-rect.js +5 -0
- package/dist/cell-selection/is-start-rect.d.ts +5 -0
- package/dist/cell-selection/is-start-rect.js +3 -0
- package/dist/cell-selection/is-top-rect.d.ts +2 -0
- package/dist/cell-selection/is-top-rect.js +3 -0
- package/dist/cell-selection/is-within-selection-rect.d.ts +2 -0
- package/dist/cell-selection/is-within-selection-rect.js +3 -0
- package/dist/cell-selection/split-cell-selection-rect.d.ts +47 -0
- package/dist/cell-selection/split-cell-selection-rect.js +88 -0
- package/dist/cell-selection/split-on-pivot.d.ts +3 -0
- package/dist/cell-selection/split-on-pivot.js +50 -0
- package/dist/cell-selection/update-additive-cell-selection.d.ts +4 -0
- package/dist/cell-selection/update-additive-cell-selection.js +21 -0
- package/dist/cell-selection/use-edge-scroll.d.ts +6 -0
- package/dist/cell-selection/use-edge-scroll.js +71 -0
- package/dist/components/checkbox/checkbox.d.ts +15 -0
- package/dist/components/checkbox/checkbox.js +42 -0
- package/dist/components/checkbox/checkbox.play.d.ts +2 -0
- package/dist/components/checkbox/checkbox.play.js +6 -0
- package/dist/components/column-manager/column-manager.d.ts +13 -0
- package/dist/components/column-manager/column-manager.js +47 -0
- package/dist/components/external/clsx.d.ts +2 -0
- package/dist/components/external/clsx.js +44 -0
- package/dist/components/external/floating-ui.d.ts +268 -0
- package/dist/components/external/floating-ui.js +1802 -0
- package/dist/components/headless/dialog/arrow.d.ts +6 -0
- package/dist/components/headless/dialog/arrow.js +16 -0
- package/dist/components/headless/dialog/close.d.ts +10 -0
- package/dist/components/headless/dialog/close.js +22 -0
- package/dist/components/headless/dialog/container.d.ts +5 -0
- package/dist/components/headless/dialog/container.js +221 -0
- package/dist/components/headless/dialog/context.d.ts +32 -0
- package/dist/components/headless/dialog/context.js +3 -0
- package/dist/components/headless/dialog/description.d.ts +9 -0
- package/dist/components/headless/dialog/description.js +20 -0
- package/dist/components/headless/dialog/index.parts.d.ts +30 -0
- package/dist/components/headless/dialog/index.parts.js +17 -0
- package/dist/components/headless/dialog/root.d.ts +32 -0
- package/dist/components/headless/dialog/root.js +75 -0
- package/dist/components/headless/dialog/title.d.ts +9 -0
- package/dist/components/headless/dialog/title.js +20 -0
- package/dist/components/headless/dialog/transform-origin.d.ts +5 -0
- package/dist/components/headless/dialog/transform-origin.js +38 -0
- package/dist/components/headless/dialog/trigger.d.ts +10 -0
- package/dist/components/headless/dialog/trigger.js +24 -0
- package/dist/components/headless/dialog/use-dialog.d.ts +4 -0
- package/dist/components/headless/dialog/use-dialog.js +12 -0
- package/dist/components/headless/menu/checkbox-item.d.ts +11 -0
- package/dist/components/headless/menu/checkbox-item.js +42 -0
- package/dist/components/headless/menu/combo/combo-checkbox.d.ts +11 -0
- package/dist/components/headless/menu/combo/combo-checkbox.js +38 -0
- package/dist/components/headless/menu/combo/combo-context.d.ts +9 -0
- package/dist/components/headless/menu/combo/combo-context.js +3 -0
- package/dist/components/headless/menu/combo/combo-input.d.ts +7 -0
- package/dist/components/headless/menu/combo/combo-input.js +58 -0
- package/dist/components/headless/menu/combo/combo-menu.d.ts +5 -0
- package/dist/components/headless/menu/combo/combo-menu.js +24 -0
- package/dist/components/headless/menu/combo/combo-option.d.ts +9 -0
- package/dist/components/headless/menu/combo/combo-option.js +37 -0
- package/dist/components/headless/menu/container.d.ts +5 -0
- package/dist/components/headless/menu/container.js +19 -0
- package/dist/components/headless/menu/dom.d.ts +4 -0
- package/dist/components/headless/menu/dom.js +20 -0
- package/dist/components/headless/menu/index.d.ts +54 -0
- package/dist/components/headless/menu/index.js +39 -0
- package/dist/components/headless/menu/item/handle-vertical-navigation.d.ts +2 -0
- package/dist/components/headless/menu/item/handle-vertical-navigation.js +28 -0
- package/dist/components/headless/menu/item/item.d.ts +9 -0
- package/dist/components/headless/menu/item/item.js +45 -0
- package/dist/components/headless/menu/item/use-menu-item-events.d.ts +1 -0
- package/dist/components/headless/menu/item/use-menu-item-events.js +25 -0
- package/dist/components/headless/menu/menu-divider.d.ts +5 -0
- package/dist/components/headless/menu/menu-divider.js +6 -0
- package/dist/components/headless/menu/menu-group.d.ts +5 -0
- package/dist/components/headless/menu/menu-group.js +6 -0
- package/dist/components/headless/menu/menu-header.d.ts +5 -0
- package/dist/components/headless/menu/menu-header.js +6 -0
- package/dist/components/headless/menu/popover.d.ts +5 -0
- package/dist/components/headless/menu/popover.js +7 -0
- package/dist/components/headless/menu/radio-group/context.d.ts +11 -0
- package/dist/components/headless/menu/radio-group/context.js +7 -0
- package/dist/components/headless/menu/radio-group/radio-item.d.ts +10 -0
- package/dist/components/headless/menu/radio-group/radio-item.js +44 -0
- package/dist/components/headless/menu/submenu/submenu-context.d.ts +9 -0
- package/dist/components/headless/menu/submenu/submenu-context.js +3 -0
- package/dist/components/headless/menu/submenu/submenu-trigger.d.ts +7 -0
- package/dist/components/headless/menu/submenu/submenu-trigger.js +70 -0
- package/dist/components/headless/menu/submenu/submenu.d.ts +21 -0
- package/dist/components/headless/menu/submenu/submenu.js +55 -0
- package/dist/components/headless/menu/submenu/use-submenu-position.d.ts +5 -0
- package/dist/components/headless/menu/submenu/use-submenu-position.js +31 -0
- package/dist/components/headless/menu/use-menu.d.ts +1 -0
- package/dist/components/headless/menu/use-menu.js +52 -0
- package/dist/components/headless/popover/container.d.ts +5 -0
- package/dist/components/headless/popover/container.js +7 -0
- package/dist/components/headless/popover/context.d.ts +6 -0
- package/dist/components/headless/popover/context.js +3 -0
- package/dist/components/headless/popover/index.d.ts +30 -0
- package/dist/components/headless/popover/index.js +17 -0
- package/dist/components/headless/popover/root.d.ts +6 -0
- package/dist/components/headless/popover/root.js +8 -0
- package/dist/components/headless/popover/trigger.d.ts +7 -0
- package/dist/components/headless/popover/trigger.js +11 -0
- package/dist/components/pill-manager/container.d.ts +5 -0
- package/dist/components/pill-manager/container.js +127 -0
- package/dist/components/pill-manager/expander.d.ts +9 -0
- package/dist/components/pill-manager/expander.js +21 -0
- package/dist/components/pill-manager/icons.d.ts +12 -0
- package/dist/components/pill-manager/icons.js +35 -0
- package/dist/components/pill-manager/index.d.ts +33 -0
- package/dist/components/pill-manager/index.js +13 -0
- package/dist/components/pill-manager/item.d.ts +10 -0
- package/dist/components/pill-manager/item.js +178 -0
- package/dist/components/pill-manager/label.d.ts +10 -0
- package/dist/components/pill-manager/label.js +31 -0
- package/dist/components/pill-manager/pill-manager.play.d.ts +3 -0
- package/dist/components/pill-manager/pill-manager.play.js +73 -0
- package/dist/components/pill-manager/pill-row.context.d.ts +8 -0
- package/dist/components/pill-manager/pill-row.context.js +4 -0
- package/dist/components/pill-manager/pill-row.d.ts +12 -0
- package/dist/components/pill-manager/pill-row.js +22 -0
- package/dist/components/pill-manager/root.context.d.ts +40 -0
- package/dist/components/pill-manager/root.context.js +4 -0
- package/dist/components/pill-manager/root.d.ts +25 -0
- package/dist/components/pill-manager/root.js +33 -0
- package/dist/components/pill-manager/row-default.d.ts +3 -0
- package/dist/components/pill-manager/row-default.js +14 -0
- package/dist/components/pill-manager/types.d.ts +21 -0
- package/dist/components/pill-manager/types.js +1 -0
- package/dist/components/row-group-cell.d.ts +13 -0
- package/dist/components/row-group-cell.js +40 -0
- package/dist/components/select-all.d.ts +12 -0
- package/dist/components/select-all.js +34 -0
- package/dist/components/smart-select/chip-context.d.ts +8 -0
- package/dist/components/smart-select/chip-context.js +4 -0
- package/dist/components/smart-select/chip-remove.d.ts +1 -0
- package/dist/components/smart-select/chip-remove.js +13 -0
- package/dist/components/smart-select/chip.d.ts +13 -0
- package/dist/components/smart-select/chip.js +79 -0
- package/dist/components/smart-select/container.d.ts +1 -0
- package/dist/components/smart-select/container.js +13 -0
- package/dist/components/smart-select/context.d.ts +31 -0
- package/dist/components/smart-select/context.js +4 -0
- package/dist/components/smart-select/index.d.ts +30 -0
- package/dist/components/smart-select/index.js +19 -0
- package/dist/components/smart-select/option.d.ts +8 -0
- package/dist/components/smart-select/option.js +36 -0
- package/dist/components/smart-select/root.d.ts +17 -0
- package/dist/components/smart-select/root.js +165 -0
- package/dist/components/smart-select/smart-select.play.d.ts +2 -0
- package/dist/components/smart-select/smart-select.play.js +36 -0
- package/dist/components/smart-select/triggers/basic-trigger.d.ts +1 -0
- package/dist/components/smart-select/triggers/basic-trigger.js +18 -0
- package/dist/components/smart-select/triggers/combo-trigger.d.ts +1 -0
- package/dist/components/smart-select/triggers/combo-trigger.js +17 -0
- package/dist/components/smart-select/triggers/is-selectable-option.d.ts +1 -0
- package/dist/components/smart-select/triggers/is-selectable-option.js +3 -0
- package/dist/components/smart-select/triggers/multi-combo-trigger.d.ts +11 -0
- package/dist/components/smart-select/triggers/multi-combo-trigger.js +38 -0
- package/dist/components/smart-select/triggers/multi-trigger.d.ts +6 -0
- package/dist/components/smart-select/triggers/multi-trigger.js +8 -0
- package/dist/components/smart-select/triggers/use-combo-controls.d.ts +9 -0
- package/dist/components/smart-select/triggers/use-combo-controls.js +145 -0
- package/dist/components/smart-select/triggers/use-trigger-controls.d.ts +5 -0
- package/dist/components/smart-select/triggers/use-trigger-controls.js +126 -0
- package/dist/components/smart-select/type.d.ts +44 -0
- package/dist/components/smart-select/type.js +1 -0
- package/dist/components/smart-select/use-async-options.d.ts +8 -0
- package/dist/components/smart-select/use-async-options.js +42 -0
- package/dist/components/tree-view/index.d.ts +4 -0
- package/dist/components/tree-view/index.js +2 -0
- package/dist/components/tree-view/root.d.ts +37 -0
- package/dist/components/tree-view/root.js +139 -0
- package/dist/components/tree-view/select-all.d.ts +7 -0
- package/dist/components/tree-view/select-all.js +22 -0
- package/dist/components/tree-view/tree-children.d.ts +2 -0
- package/dist/components/tree-view/tree-children.js +15 -0
- package/dist/components/tree-view/types.d.ts +31 -0
- package/dist/components/tree-view/types.js +1 -0
- package/dist/components/types.d.ts +4 -0
- package/dist/components/types.js +1 -0
- package/dist/components/virtual-from-coordinates.d.ts +2 -0
- package/dist/components/virtual-from-coordinates.js +15 -0
- package/dist/components.d.ts +16 -0
- package/dist/components.js +11 -0
- package/dist/data-source-client/hooks/get-valid-leafs.d.ts +3 -0
- package/dist/data-source-client/hooks/get-valid-leafs.js +11 -0
- package/dist/data-source-client/hooks/use-controlled-ds-state.d.ts +13 -0
- package/dist/data-source-client/hooks/use-controlled-ds-state.js +39 -0
- package/dist/data-source-client/hooks/use-flattened-data.d.ts +18 -0
- package/dist/data-source-client/hooks/use-flattened-data.js +40 -0
- package/dist/data-source-client/hooks/use-flattened-groups.d.ts +5 -0
- package/dist/data-source-client/hooks/use-flattened-groups.js +63 -0
- package/dist/data-source-client/hooks/use-flattened-piece.d.ts +14 -0
- package/dist/data-source-client/hooks/use-flattened-piece.js +55 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-child.d.ts +2 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-child.js +11 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-last.d.ts +2 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-last.js +14 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse.d.ts +2 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse.js +17 -0
- package/dist/data-source-client/hooks/use-group-tree/use-group-tree.d.ts +31 -0
- package/dist/data-source-client/hooks/use-group-tree/use-group-tree.js +152 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.d.ts +2 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.js +22 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/evaluate-label-filter.d.ts +2 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/evaluate-label-filter.js +9 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths-with-totals.d.ts +18 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths-with-totals.js +140 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.d.ts +4 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.js +31 -0
- package/dist/data-source-client/hooks/use-pivot/use-agg-model.d.ts +4 -0
- package/dist/data-source-client/hooks/use-pivot/use-agg-model.js +45 -0
- package/dist/data-source-client/hooks/use-pivot/use-filtered-data.d.ts +2 -0
- package/dist/data-source-client/hooks/use-pivot/use-filtered-data.js +18 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.d.ts +14 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.js +151 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-data.d.ts +32 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-data.js +83 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.d.ts +4 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.js +23 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-state.d.ts +16 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-state.js +40 -0
- package/dist/data-source-client/use-client-data-source.d.ts +91 -0
- package/dist/data-source-client/use-client-data-source.js +169 -0
- package/dist/data-source-server/async-tree/+constants.async-tree.d.ts +1 -0
- package/dist/data-source-server/async-tree/+constants.async-tree.js +1 -0
- package/dist/data-source-server/async-tree/apply-delete-action-to-tree.d.ts +2 -0
- package/dist/data-source-server/async-tree/apply-delete-action-to-tree.js +27 -0
- package/dist/data-source-server/async-tree/apply-set-action-to-tree.d.ts +2 -0
- package/dist/data-source-server/async-tree/apply-set-action-to-tree.js +26 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-unique.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-unique.js +20 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-valid.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-valid.js +12 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-fit.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-fit.js +18 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-kinds.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-kinds.js +12 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action.js +24 -0
- package/dist/data-source-server/async-tree/get-parent-node-by-path.d.ts +2 -0
- package/dist/data-source-server/async-tree/get-parent-node-by-path.js +18 -0
- package/dist/data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +2 -0
- package/dist/data-source-server/async-tree/is-set-action-a-no-op-on-node.js +3 -0
- package/dist/data-source-server/async-tree/make-async-tree.d.ts +2 -0
- package/dist/data-source-server/async-tree/make-async-tree.js +64 -0
- package/dist/data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +2 -0
- package/dist/data-source-server/async-tree/maybe-apply-parent-remove-self.js +8 -0
- package/dist/data-source-server/async-tree/maybe-apply-resize.d.ts +2 -0
- package/dist/data-source-server/async-tree/maybe-apply-resize.js +17 -0
- package/dist/data-source-server/async-tree/maybe-apply-set-action-items.d.ts +2 -0
- package/dist/data-source-server/async-tree/maybe-apply-set-action-items.js +54 -0
- package/dist/data-source-server/async-tree/types.d.ts +70 -0
- package/dist/data-source-server/async-tree/types.js +1 -0
- package/dist/data-source-server/range-tree/range-tree.d.ts +66 -0
- package/dist/data-source-server/range-tree/range-tree.js +102 -0
- package/dist/data-source-server/server-data.d.ts +73 -0
- package/dist/data-source-server/server-data.js +553 -0
- package/dist/data-source-server/source/use-on-rows-updated.d.ts +4 -0
- package/dist/data-source-server/source/use-on-rows-updated.js +29 -0
- package/dist/data-source-server/source/use-on-view-change.d.ts +3 -0
- package/dist/data-source-server/source/use-on-view-change.js +13 -0
- package/dist/data-source-server/source/use-row-add.d.ts +3 -0
- package/dist/data-source-server/source/use-row-add.js +36 -0
- package/dist/data-source-server/source/use-row-by-id.d.ts +2 -0
- package/dist/data-source-server/source/use-row-by-id.js +8 -0
- package/dist/data-source-server/source/use-row-by-index.d.ts +9 -0
- package/dist/data-source-server/source/use-row-by-index.js +89 -0
- package/dist/data-source-server/source/use-row-children.d.ts +2 -0
- package/dist/data-source-server/source/use-row-children.js +16 -0
- package/dist/data-source-server/source/use-row-delete.d.ts +3 -0
- package/dist/data-source-server/source/use-row-delete.js +39 -0
- package/dist/data-source-server/source/use-row-id-to-row-index.d.ts +2 -0
- package/dist/data-source-server/source/use-row-id-to-row-index.js +7 -0
- package/dist/data-source-server/source/use-row-index-to-row-id.d.ts +2 -0
- package/dist/data-source-server/source/use-row-index-to-row-id.js +7 -0
- package/dist/data-source-server/source/use-row-leafs.d.ts +2 -0
- package/dist/data-source-server/source/use-row-leafs.js +20 -0
- package/dist/data-source-server/source/use-row-parents.d.ts +2 -0
- package/dist/data-source-server/source/use-row-parents.js +16 -0
- package/dist/data-source-server/source/use-row-siblings.d.ts +2 -0
- package/dist/data-source-server/source/use-row-siblings.js +15 -0
- package/dist/data-source-server/source/use-rows-between.d.ts +2 -0
- package/dist/data-source-server/source/use-rows-between.js +20 -0
- package/dist/data-source-server/source/use-source-state.d.ts +28 -0
- package/dist/data-source-server/source/use-source-state.js +47 -0
- package/dist/data-source-server/source/use-source.d.ts +5 -0
- package/dist/data-source-server/source/use-source.js +66 -0
- package/dist/data-source-server/types.d.ts +42 -0
- package/dist/data-source-server/types.js +1 -0
- package/dist/data-source-server/use-server-data-source.d.ts +51 -0
- package/dist/data-source-server/use-server-data-source.js +192 -0
- package/dist/data-source-server/utils/get-node-depth.d.ts +2 -0
- package/dist/data-source-server/utils/get-node-depth.js +9 -0
- package/dist/data-source-server/utils/get-node-path.d.ts +2 -0
- package/dist/data-source-server/utils/get-node-path.js +9 -0
- package/dist/data-source-server/utils/get-request-id.d.ts +1 -0
- package/dist/data-source-server/utils/get-request-id.js +6 -0
- package/dist/data-source-tree/source/use-controlled-state.d.ts +8 -0
- package/dist/data-source-tree/source/use-controlled-state.js +21 -0
- package/dist/data-source-tree/source/use-flattened.d.ts +17 -0
- package/dist/data-source-tree/source/use-flattened.js +65 -0
- package/dist/data-source-tree/source/use-on-rows-updated.d.ts +3 -0
- package/dist/data-source-tree/source/use-on-rows-updated.js +49 -0
- package/dist/data-source-tree/source/use-row-by-id.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-by-id.js +7 -0
- package/dist/data-source-tree/source/use-row-children.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-children.js +11 -0
- package/dist/data-source-tree/source/use-row-leafs.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-leafs.js +20 -0
- package/dist/data-source-tree/source/use-row-parents.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-parents.js +16 -0
- package/dist/data-source-tree/source/use-row-siblings.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-siblings.js +12 -0
- package/dist/data-source-tree/source/use-tree.d.ts +3 -0
- package/dist/data-source-tree/source/use-tree.js +59 -0
- package/dist/data-source-tree/types.d.ts +16 -0
- package/dist/data-source-tree/types.js +1 -0
- package/dist/data-source-tree/use-tree-data-source.d.ts +41 -0
- package/dist/data-source-tree/use-tree-data-source.js +101 -0
- package/dist/data-source-tree/utils/is-object.d.ts +1 -0
- package/dist/data-source-tree/utils/is-object.js +3 -0
- package/dist/hooks/use-slot/get-element-ref.d.ts +2 -0
- package/dist/hooks/use-slot/get-element-ref.js +20 -0
- package/dist/hooks/use-slot/index.d.ts +3 -0
- package/dist/hooks/use-slot/index.js +1 -0
- package/dist/hooks/use-slot/merge-props.d.ts +4 -0
- package/dist/hooks/use-slot/merge-props.js +27 -0
- package/dist/hooks/use-slot/react-version.d.ts +3 -0
- package/dist/hooks/use-slot/react-version.js +5 -0
- package/dist/hooks/use-slot/types.d.ts +4 -0
- package/dist/hooks/use-slot/types.js +1 -0
- package/dist/hooks/use-slot/use-slot.d.ts +12 -0
- package/dist/hooks/use-slot/use-slot.js +28 -0
- package/dist/hooks/use-transitioned-open.d.ts +2 -0
- package/dist/hooks/use-transitioned-open.js +50 -0
- package/dist/index.d.ts +121 -0
- package/dist/index.js +23 -0
- package/dist/license/index.d.ts +1 -0
- package/dist/license/index.js +1 -0
- package/dist/license/license.d.ts +3 -0
- package/dist/license/license.js +215 -0
- package/dist/license/md5-hash.d.ts +9 -0
- package/dist/license/md5-hash.js +167 -0
- package/dist/license.d.ts +3 -0
- package/dist/license.js +214 -0
- package/dist/root/context.d.ts +16 -0
- package/dist/root/context.js +4 -0
- package/dist/root/hooks/use-pro-api.d.ts +2 -0
- package/dist/root/hooks/use-pro-api.js +8 -0
- package/dist/root/root.d.ts +15 -0
- package/dist/root/root.js +112 -0
- package/dist/types/api.d.ts +100 -0
- package/dist/types/api.js +1 -0
- package/dist/types/column.d.ts +73 -0
- package/dist/types/column.js +1 -0
- package/dist/types/events.d.ts +56 -0
- package/dist/types/events.js +1 -0
- package/dist/types/grid.d.ts +47 -0
- package/dist/types/grid.js +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +1 -0
- package/dist/types/props.d.ts +187 -0
- package/dist/types/props.js +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
const hashSalt = "faec0f3c45281b1fe12d87e64a6c3271";
|
|
2
|
+
// @ts-expect-error will be replaced by build script
|
|
3
|
+
const issueDate = globalThis.ISSUE_DATE ?? new Date("2023-03-01");
|
|
4
|
+
function getHostname() {
|
|
5
|
+
const win = globalThis?.document?.defaultView || (typeof window !== "undefined" ? window : null);
|
|
6
|
+
const loc = win?.location;
|
|
7
|
+
const { hostname = "" } = loc ?? {};
|
|
8
|
+
return hostname;
|
|
9
|
+
}
|
|
10
|
+
function isWebsiteUrl() {
|
|
11
|
+
const hostname = getHostname();
|
|
12
|
+
return hostname.match(/^((?:\w+\.)?1771technologies\.com)$/) !== null;
|
|
13
|
+
}
|
|
14
|
+
function isLocalhost() {
|
|
15
|
+
const hostname = getHostname();
|
|
16
|
+
return hostname.match(/^(?:127\.0\.0\.1|localhost)$/) !== null;
|
|
17
|
+
}
|
|
18
|
+
export let hasAValidLicense = isWebsiteUrl() || isLocalhost();
|
|
19
|
+
export let licenseState = null;
|
|
20
|
+
export function activateLicense(license) {
|
|
21
|
+
const parts = license.split("|");
|
|
22
|
+
const details = parts[0];
|
|
23
|
+
const hash = parts[1];
|
|
24
|
+
const detailHash = new MD5().md5(details + hashSalt);
|
|
25
|
+
if (detailHash !== hash) {
|
|
26
|
+
console.error(`
|
|
27
|
+
********************************************************************************
|
|
28
|
+
LyteNyte Grid PRO
|
|
29
|
+
|
|
30
|
+
Invalid license key. Please verify the key and try again.
|
|
31
|
+
|
|
32
|
+
Visit https://1771technolgies.com for more information.
|
|
33
|
+
********************************************************************************
|
|
34
|
+
`);
|
|
35
|
+
licenseState = "invalid";
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
const detailParts = details.split(" ");
|
|
39
|
+
const endDate = new Date(detailParts[1]);
|
|
40
|
+
if (issueDate > endDate) {
|
|
41
|
+
console.error(`
|
|
42
|
+
********************************************************************************
|
|
43
|
+
LyteNyte Grid PRO
|
|
44
|
+
|
|
45
|
+
License key expired. Your license covers earlier versions only.
|
|
46
|
+
|
|
47
|
+
Visit https://1771technolgies.com for more information.
|
|
48
|
+
********************************************************************************
|
|
49
|
+
`);
|
|
50
|
+
licenseState = "expired";
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
hasAValidLicense = true;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
// see: https://www.myersdaily.org/joseph/javascript/md5-text.html
|
|
57
|
+
// https://stackoverflow.com/a/1655795
|
|
58
|
+
class MD5 {
|
|
59
|
+
md5cycle(x, k) {
|
|
60
|
+
let a = x[0];
|
|
61
|
+
let b = x[1];
|
|
62
|
+
let c = x[2];
|
|
63
|
+
let d = x[3];
|
|
64
|
+
a = this.ff(a, b, c, d, k[0], 7, -680876936);
|
|
65
|
+
d = this.ff(d, a, b, c, k[1], 12, -389564586);
|
|
66
|
+
c = this.ff(c, d, a, b, k[2], 17, 606105819);
|
|
67
|
+
b = this.ff(b, c, d, a, k[3], 22, -1044525330);
|
|
68
|
+
a = this.ff(a, b, c, d, k[4], 7, -176418897);
|
|
69
|
+
d = this.ff(d, a, b, c, k[5], 12, 1200080426);
|
|
70
|
+
c = this.ff(c, d, a, b, k[6], 17, -1473231341);
|
|
71
|
+
b = this.ff(b, c, d, a, k[7], 22, -45705983);
|
|
72
|
+
a = this.ff(a, b, c, d, k[8], 7, 1770035416);
|
|
73
|
+
d = this.ff(d, a, b, c, k[9], 12, -1958414417);
|
|
74
|
+
c = this.ff(c, d, a, b, k[10], 17, -42063);
|
|
75
|
+
b = this.ff(b, c, d, a, k[11], 22, -1990404162);
|
|
76
|
+
a = this.ff(a, b, c, d, k[12], 7, 1804603682);
|
|
77
|
+
d = this.ff(d, a, b, c, k[13], 12, -40341101);
|
|
78
|
+
c = this.ff(c, d, a, b, k[14], 17, -1502002290);
|
|
79
|
+
b = this.ff(b, c, d, a, k[15], 22, 1236535329);
|
|
80
|
+
a = this.gg(a, b, c, d, k[1], 5, -165796510);
|
|
81
|
+
d = this.gg(d, a, b, c, k[6], 9, -1069501632);
|
|
82
|
+
c = this.gg(c, d, a, b, k[11], 14, 643717713);
|
|
83
|
+
b = this.gg(b, c, d, a, k[0], 20, -373897302);
|
|
84
|
+
a = this.gg(a, b, c, d, k[5], 5, -701558691);
|
|
85
|
+
d = this.gg(d, a, b, c, k[10], 9, 38016083);
|
|
86
|
+
c = this.gg(c, d, a, b, k[15], 14, -660478335);
|
|
87
|
+
b = this.gg(b, c, d, a, k[4], 20, -405537848);
|
|
88
|
+
a = this.gg(a, b, c, d, k[9], 5, 568446438);
|
|
89
|
+
d = this.gg(d, a, b, c, k[14], 9, -1019803690);
|
|
90
|
+
c = this.gg(c, d, a, b, k[3], 14, -187363961);
|
|
91
|
+
b = this.gg(b, c, d, a, k[8], 20, 1163531501);
|
|
92
|
+
a = this.gg(a, b, c, d, k[13], 5, -1444681467);
|
|
93
|
+
d = this.gg(d, a, b, c, k[2], 9, -51403784);
|
|
94
|
+
c = this.gg(c, d, a, b, k[7], 14, 1735328473);
|
|
95
|
+
b = this.gg(b, c, d, a, k[12], 20, -1926607734);
|
|
96
|
+
a = this.hh(a, b, c, d, k[5], 4, -378558);
|
|
97
|
+
d = this.hh(d, a, b, c, k[8], 11, -2022574463);
|
|
98
|
+
c = this.hh(c, d, a, b, k[11], 16, 1839030562);
|
|
99
|
+
b = this.hh(b, c, d, a, k[14], 23, -35309556);
|
|
100
|
+
a = this.hh(a, b, c, d, k[1], 4, -1530992060);
|
|
101
|
+
d = this.hh(d, a, b, c, k[4], 11, 1272893353);
|
|
102
|
+
c = this.hh(c, d, a, b, k[7], 16, -155497632);
|
|
103
|
+
b = this.hh(b, c, d, a, k[10], 23, -1094730640);
|
|
104
|
+
a = this.hh(a, b, c, d, k[13], 4, 681279174);
|
|
105
|
+
d = this.hh(d, a, b, c, k[0], 11, -358537222);
|
|
106
|
+
c = this.hh(c, d, a, b, k[3], 16, -722521979);
|
|
107
|
+
b = this.hh(b, c, d, a, k[6], 23, 76029189);
|
|
108
|
+
a = this.hh(a, b, c, d, k[9], 4, -640364487);
|
|
109
|
+
d = this.hh(d, a, b, c, k[12], 11, -421815835);
|
|
110
|
+
c = this.hh(c, d, a, b, k[15], 16, 530742520);
|
|
111
|
+
b = this.hh(b, c, d, a, k[2], 23, -995338651);
|
|
112
|
+
a = this.ii(a, b, c, d, k[0], 6, -198630844);
|
|
113
|
+
d = this.ii(d, a, b, c, k[7], 10, 1126891415);
|
|
114
|
+
c = this.ii(c, d, a, b, k[14], 15, -1416354905);
|
|
115
|
+
b = this.ii(b, c, d, a, k[5], 21, -57434055);
|
|
116
|
+
a = this.ii(a, b, c, d, k[12], 6, 1700485571);
|
|
117
|
+
d = this.ii(d, a, b, c, k[3], 10, -1894986606);
|
|
118
|
+
c = this.ii(c, d, a, b, k[10], 15, -1051523);
|
|
119
|
+
b = this.ii(b, c, d, a, k[1], 21, -2054922799);
|
|
120
|
+
a = this.ii(a, b, c, d, k[8], 6, 1873313359);
|
|
121
|
+
d = this.ii(d, a, b, c, k[15], 10, -30611744);
|
|
122
|
+
c = this.ii(c, d, a, b, k[6], 15, -1560198380);
|
|
123
|
+
b = this.ii(b, c, d, a, k[13], 21, 1309151649);
|
|
124
|
+
a = this.ii(a, b, c, d, k[4], 6, -145523070);
|
|
125
|
+
d = this.ii(d, a, b, c, k[11], 10, -1120210379);
|
|
126
|
+
c = this.ii(c, d, a, b, k[2], 15, 718787259);
|
|
127
|
+
b = this.ii(b, c, d, a, k[9], 21, -343485551);
|
|
128
|
+
x[0] = this.add32(a, x[0]);
|
|
129
|
+
x[1] = this.add32(b, x[1]);
|
|
130
|
+
x[2] = this.add32(c, x[2]);
|
|
131
|
+
x[3] = this.add32(d, x[3]);
|
|
132
|
+
}
|
|
133
|
+
cmn(q, a, b, x, s, t) {
|
|
134
|
+
a = this.add32(this.add32(a, q), this.add32(x, t));
|
|
135
|
+
return this.add32((a << s) | (a >>> (32 - s)), b);
|
|
136
|
+
}
|
|
137
|
+
ff(a, b, c, d, x, s, t) {
|
|
138
|
+
return this.cmn((b & c) | (~b & d), a, b, x, s, t);
|
|
139
|
+
}
|
|
140
|
+
gg(a, b, c, d, x, s, t) {
|
|
141
|
+
return this.cmn((b & d) | (c & ~d), a, b, x, s, t);
|
|
142
|
+
}
|
|
143
|
+
hh(a, b, c, d, x, s, t) {
|
|
144
|
+
return this.cmn(b ^ c ^ d, a, b, x, s, t);
|
|
145
|
+
}
|
|
146
|
+
ii(a, b, c, d, x, s, t) {
|
|
147
|
+
return this.cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
148
|
+
}
|
|
149
|
+
md51(s) {
|
|
150
|
+
const n = s.length;
|
|
151
|
+
const state = [1732584193, -271733879, -1732584194, 271733878];
|
|
152
|
+
let i;
|
|
153
|
+
for (i = 64; i <= s.length; i += 64) {
|
|
154
|
+
this.md5cycle(state, this.md5blk(s.substring(i - 64, i)));
|
|
155
|
+
}
|
|
156
|
+
s = s.substring(i - 64);
|
|
157
|
+
const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
158
|
+
for (i = 0; i < s.length; i++) {
|
|
159
|
+
tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
|
|
160
|
+
}
|
|
161
|
+
tail[i >> 2] |= 0x80 << (i % 4 << 3);
|
|
162
|
+
if (i > 55) {
|
|
163
|
+
this.md5cycle(state, tail);
|
|
164
|
+
for (i = 0; i < 16; i++) {
|
|
165
|
+
tail[i] = 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
tail[14] = n * 8;
|
|
169
|
+
this.md5cycle(state, tail);
|
|
170
|
+
return state;
|
|
171
|
+
}
|
|
172
|
+
/* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5
|
|
173
|
+
* algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and
|
|
174
|
+
* shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character
|
|
175
|
+
* was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched?
|
|
176
|
+
* There is no way to standardize text to something like UTF-8 before transformation; speed cost is
|
|
177
|
+
* utterly prohibitive. The JavaScript standard itself needs to look at this: it should start
|
|
178
|
+
* providing access to strings as preformed UTF-8 8-bit unsigned value arrays.
|
|
179
|
+
*/
|
|
180
|
+
md5blk(s) {
|
|
181
|
+
const md5blks = [];
|
|
182
|
+
for (let i = 0; i < 64; i += 4) {
|
|
183
|
+
md5blks[i >> 2] =
|
|
184
|
+
s.charCodeAt(i) +
|
|
185
|
+
(s.charCodeAt(i + 1) << 8) +
|
|
186
|
+
(s.charCodeAt(i + 2) << 16) +
|
|
187
|
+
(s.charCodeAt(i + 3) << 24);
|
|
188
|
+
}
|
|
189
|
+
return md5blks;
|
|
190
|
+
}
|
|
191
|
+
rhex(n) {
|
|
192
|
+
const hex_chr = "0123456789abcdef".split("");
|
|
193
|
+
let s = "";
|
|
194
|
+
let j = 0;
|
|
195
|
+
for (; j < 4; j++) {
|
|
196
|
+
s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f];
|
|
197
|
+
}
|
|
198
|
+
return s;
|
|
199
|
+
}
|
|
200
|
+
hex(x) {
|
|
201
|
+
for (let i = 0; i < x.length; i++) {
|
|
202
|
+
x[i] = this.rhex(x[i]);
|
|
203
|
+
}
|
|
204
|
+
return x.join("");
|
|
205
|
+
}
|
|
206
|
+
md5(s) {
|
|
207
|
+
return this.hex(this.md51(s));
|
|
208
|
+
}
|
|
209
|
+
add32(a, b) {
|
|
210
|
+
return this.add32Std(a, b);
|
|
211
|
+
}
|
|
212
|
+
add32Std(a, b) {
|
|
213
|
+
return (a + b) & 0xffffffff;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface GetHashArguments {
|
|
2
|
+
companyName: string;
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
randomString: string;
|
|
6
|
+
licenseType: "seated" | "company-wide";
|
|
7
|
+
}
|
|
8
|
+
export declare function getHash({ companyName, startDate, endDate, licenseType, randomString }: GetHashArguments): string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// WARNING --- DO NOT TOUCH THIS STRING OR THIS MODULE.
|
|
2
|
+
const hashSalt = "faec0f3c45281b1fe12d87e64a6c3271";
|
|
3
|
+
export function getHash({ companyName, startDate, endDate, licenseType, randomString }) {
|
|
4
|
+
const details = `${startDate} ${endDate} ${companyName} ${licenseType} ${randomString}`;
|
|
5
|
+
const hash = new MD5().md5(details + hashSalt);
|
|
6
|
+
return `${details}|${hash}`;
|
|
7
|
+
}
|
|
8
|
+
// see: https://www.myersdaily.org/joseph/javascript/md5-text.html
|
|
9
|
+
// https://stackoverflow.com/a/1655795
|
|
10
|
+
class MD5 {
|
|
11
|
+
md5cycle(x, k) {
|
|
12
|
+
let a = x[0];
|
|
13
|
+
let b = x[1];
|
|
14
|
+
let c = x[2];
|
|
15
|
+
let d = x[3];
|
|
16
|
+
a = this.ff(a, b, c, d, k[0], 7, -680876936);
|
|
17
|
+
d = this.ff(d, a, b, c, k[1], 12, -389564586);
|
|
18
|
+
c = this.ff(c, d, a, b, k[2], 17, 606105819);
|
|
19
|
+
b = this.ff(b, c, d, a, k[3], 22, -1044525330);
|
|
20
|
+
a = this.ff(a, b, c, d, k[4], 7, -176418897);
|
|
21
|
+
d = this.ff(d, a, b, c, k[5], 12, 1200080426);
|
|
22
|
+
c = this.ff(c, d, a, b, k[6], 17, -1473231341);
|
|
23
|
+
b = this.ff(b, c, d, a, k[7], 22, -45705983);
|
|
24
|
+
a = this.ff(a, b, c, d, k[8], 7, 1770035416);
|
|
25
|
+
d = this.ff(d, a, b, c, k[9], 12, -1958414417);
|
|
26
|
+
c = this.ff(c, d, a, b, k[10], 17, -42063);
|
|
27
|
+
b = this.ff(b, c, d, a, k[11], 22, -1990404162);
|
|
28
|
+
a = this.ff(a, b, c, d, k[12], 7, 1804603682);
|
|
29
|
+
d = this.ff(d, a, b, c, k[13], 12, -40341101);
|
|
30
|
+
c = this.ff(c, d, a, b, k[14], 17, -1502002290);
|
|
31
|
+
b = this.ff(b, c, d, a, k[15], 22, 1236535329);
|
|
32
|
+
a = this.gg(a, b, c, d, k[1], 5, -165796510);
|
|
33
|
+
d = this.gg(d, a, b, c, k[6], 9, -1069501632);
|
|
34
|
+
c = this.gg(c, d, a, b, k[11], 14, 643717713);
|
|
35
|
+
b = this.gg(b, c, d, a, k[0], 20, -373897302);
|
|
36
|
+
a = this.gg(a, b, c, d, k[5], 5, -701558691);
|
|
37
|
+
d = this.gg(d, a, b, c, k[10], 9, 38016083);
|
|
38
|
+
c = this.gg(c, d, a, b, k[15], 14, -660478335);
|
|
39
|
+
b = this.gg(b, c, d, a, k[4], 20, -405537848);
|
|
40
|
+
a = this.gg(a, b, c, d, k[9], 5, 568446438);
|
|
41
|
+
d = this.gg(d, a, b, c, k[14], 9, -1019803690);
|
|
42
|
+
c = this.gg(c, d, a, b, k[3], 14, -187363961);
|
|
43
|
+
b = this.gg(b, c, d, a, k[8], 20, 1163531501);
|
|
44
|
+
a = this.gg(a, b, c, d, k[13], 5, -1444681467);
|
|
45
|
+
d = this.gg(d, a, b, c, k[2], 9, -51403784);
|
|
46
|
+
c = this.gg(c, d, a, b, k[7], 14, 1735328473);
|
|
47
|
+
b = this.gg(b, c, d, a, k[12], 20, -1926607734);
|
|
48
|
+
a = this.hh(a, b, c, d, k[5], 4, -378558);
|
|
49
|
+
d = this.hh(d, a, b, c, k[8], 11, -2022574463);
|
|
50
|
+
c = this.hh(c, d, a, b, k[11], 16, 1839030562);
|
|
51
|
+
b = this.hh(b, c, d, a, k[14], 23, -35309556);
|
|
52
|
+
a = this.hh(a, b, c, d, k[1], 4, -1530992060);
|
|
53
|
+
d = this.hh(d, a, b, c, k[4], 11, 1272893353);
|
|
54
|
+
c = this.hh(c, d, a, b, k[7], 16, -155497632);
|
|
55
|
+
b = this.hh(b, c, d, a, k[10], 23, -1094730640);
|
|
56
|
+
a = this.hh(a, b, c, d, k[13], 4, 681279174);
|
|
57
|
+
d = this.hh(d, a, b, c, k[0], 11, -358537222);
|
|
58
|
+
c = this.hh(c, d, a, b, k[3], 16, -722521979);
|
|
59
|
+
b = this.hh(b, c, d, a, k[6], 23, 76029189);
|
|
60
|
+
a = this.hh(a, b, c, d, k[9], 4, -640364487);
|
|
61
|
+
d = this.hh(d, a, b, c, k[12], 11, -421815835);
|
|
62
|
+
c = this.hh(c, d, a, b, k[15], 16, 530742520);
|
|
63
|
+
b = this.hh(b, c, d, a, k[2], 23, -995338651);
|
|
64
|
+
a = this.ii(a, b, c, d, k[0], 6, -198630844);
|
|
65
|
+
d = this.ii(d, a, b, c, k[7], 10, 1126891415);
|
|
66
|
+
c = this.ii(c, d, a, b, k[14], 15, -1416354905);
|
|
67
|
+
b = this.ii(b, c, d, a, k[5], 21, -57434055);
|
|
68
|
+
a = this.ii(a, b, c, d, k[12], 6, 1700485571);
|
|
69
|
+
d = this.ii(d, a, b, c, k[3], 10, -1894986606);
|
|
70
|
+
c = this.ii(c, d, a, b, k[10], 15, -1051523);
|
|
71
|
+
b = this.ii(b, c, d, a, k[1], 21, -2054922799);
|
|
72
|
+
a = this.ii(a, b, c, d, k[8], 6, 1873313359);
|
|
73
|
+
d = this.ii(d, a, b, c, k[15], 10, -30611744);
|
|
74
|
+
c = this.ii(c, d, a, b, k[6], 15, -1560198380);
|
|
75
|
+
b = this.ii(b, c, d, a, k[13], 21, 1309151649);
|
|
76
|
+
a = this.ii(a, b, c, d, k[4], 6, -145523070);
|
|
77
|
+
d = this.ii(d, a, b, c, k[11], 10, -1120210379);
|
|
78
|
+
c = this.ii(c, d, a, b, k[2], 15, 718787259);
|
|
79
|
+
b = this.ii(b, c, d, a, k[9], 21, -343485551);
|
|
80
|
+
x[0] = this.add32(a, x[0]);
|
|
81
|
+
x[1] = this.add32(b, x[1]);
|
|
82
|
+
x[2] = this.add32(c, x[2]);
|
|
83
|
+
x[3] = this.add32(d, x[3]);
|
|
84
|
+
}
|
|
85
|
+
cmn(q, a, b, x, s, t) {
|
|
86
|
+
a = this.add32(this.add32(a, q), this.add32(x, t));
|
|
87
|
+
return this.add32((a << s) | (a >>> (32 - s)), b);
|
|
88
|
+
}
|
|
89
|
+
ff(a, b, c, d, x, s, t) {
|
|
90
|
+
return this.cmn((b & c) | (~b & d), a, b, x, s, t);
|
|
91
|
+
}
|
|
92
|
+
gg(a, b, c, d, x, s, t) {
|
|
93
|
+
return this.cmn((b & d) | (c & ~d), a, b, x, s, t);
|
|
94
|
+
}
|
|
95
|
+
hh(a, b, c, d, x, s, t) {
|
|
96
|
+
return this.cmn(b ^ c ^ d, a, b, x, s, t);
|
|
97
|
+
}
|
|
98
|
+
ii(a, b, c, d, x, s, t) {
|
|
99
|
+
return this.cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
100
|
+
}
|
|
101
|
+
md51(s) {
|
|
102
|
+
const n = s.length;
|
|
103
|
+
const state = [1732584193, -271733879, -1732584194, 271733878];
|
|
104
|
+
let i;
|
|
105
|
+
for (i = 64; i <= s.length; i += 64) {
|
|
106
|
+
this.md5cycle(state, this.md5blk(s.substring(i - 64, i)));
|
|
107
|
+
}
|
|
108
|
+
s = s.substring(i - 64);
|
|
109
|
+
const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
110
|
+
for (i = 0; i < s.length; i++) {
|
|
111
|
+
tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
|
|
112
|
+
}
|
|
113
|
+
tail[i >> 2] |= 0x80 << (i % 4 << 3);
|
|
114
|
+
if (i > 55) {
|
|
115
|
+
this.md5cycle(state, tail);
|
|
116
|
+
for (i = 0; i < 16; i++) {
|
|
117
|
+
tail[i] = 0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
tail[14] = n * 8;
|
|
121
|
+
this.md5cycle(state, tail);
|
|
122
|
+
return state;
|
|
123
|
+
}
|
|
124
|
+
/* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5
|
|
125
|
+
* algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and
|
|
126
|
+
* shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character
|
|
127
|
+
* was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched?
|
|
128
|
+
* There is no way to standardize text to something like UTF-8 before transformation; speed cost is
|
|
129
|
+
* utterly prohibitive. The JavaScript standard itself needs to look at this: it should start
|
|
130
|
+
* providing access to strings as preformed UTF-8 8-bit unsigned value arrays.
|
|
131
|
+
*/
|
|
132
|
+
md5blk(s) {
|
|
133
|
+
const md5blks = [];
|
|
134
|
+
for (let i = 0; i < 64; i += 4) {
|
|
135
|
+
md5blks[i >> 2] =
|
|
136
|
+
s.charCodeAt(i) +
|
|
137
|
+
(s.charCodeAt(i + 1) << 8) +
|
|
138
|
+
(s.charCodeAt(i + 2) << 16) +
|
|
139
|
+
(s.charCodeAt(i + 3) << 24);
|
|
140
|
+
}
|
|
141
|
+
return md5blks;
|
|
142
|
+
}
|
|
143
|
+
rhex(n) {
|
|
144
|
+
const hex_chr = "0123456789abcdef".split("");
|
|
145
|
+
let s = "";
|
|
146
|
+
let j = 0;
|
|
147
|
+
for (; j < 4; j++) {
|
|
148
|
+
s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f];
|
|
149
|
+
}
|
|
150
|
+
return s;
|
|
151
|
+
}
|
|
152
|
+
hex(x) {
|
|
153
|
+
for (let i = 0; i < x.length; i++) {
|
|
154
|
+
x[i] = this.rhex(x[i]);
|
|
155
|
+
}
|
|
156
|
+
return x.join("");
|
|
157
|
+
}
|
|
158
|
+
md5(s) {
|
|
159
|
+
return this.hex(this.md51(s));
|
|
160
|
+
}
|
|
161
|
+
add32(a, b) {
|
|
162
|
+
return this.add32Std(a, b);
|
|
163
|
+
}
|
|
164
|
+
add32Std(a, b) {
|
|
165
|
+
return (a + b) & 0xffffffff;
|
|
166
|
+
}
|
|
167
|
+
}
|
package/dist/license.js
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Dispatch, type RefObject, type SetStateAction } from "react";
|
|
2
|
+
import type { API, DataRect, DataRectSplit } from "../types";
|
|
3
|
+
export interface ProContext {
|
|
4
|
+
readonly api: API;
|
|
5
|
+
readonly excludeMarker: boolean;
|
|
6
|
+
readonly keepSelection: boolean;
|
|
7
|
+
readonly cellSelections: DataRect[];
|
|
8
|
+
readonly onCellSelectionChange: (rect: DataRect[]) => void;
|
|
9
|
+
readonly cellSelectionMode: "range" | "multi-range" | "none";
|
|
10
|
+
readonly cellSelectionAdditiveRects: DataRectSplit[] | null;
|
|
11
|
+
readonly setCellSelectionAdditiveRects: Dispatch<SetStateAction<DataRectSplit[] | null>>;
|
|
12
|
+
readonly cellSelectionIsDeselect: RefObject<boolean>;
|
|
13
|
+
readonly cellSelectionSplits: DataRectSplit[];
|
|
14
|
+
}
|
|
15
|
+
export declare const ProRootProvider: import("react").Provider<ProContext>;
|
|
16
|
+
export declare const useProRoot: () => ProContext;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useEvent, useRoot } from "@1771technologies/lytenyte-core/internal";
|
|
2
|
+
import {} from "@1771technologies/lytenyte-shared";
|
|
3
|
+
export function useProAPI(cellSelections) {
|
|
4
|
+
const { api: coreApi } = useRoot();
|
|
5
|
+
const api = coreApi;
|
|
6
|
+
api.cellSelections = useEvent(() => cellSelections);
|
|
7
|
+
return api;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
import type { GridSpec as LnSpec } from "../types/grid.js";
|
|
3
|
+
import type { Column as LnColumn } from "../types/column.js";
|
|
4
|
+
import type { API as LnAPI } from "../types/api.js";
|
|
5
|
+
import type { Props as LnProps } from "../types/props.js";
|
|
6
|
+
import type { RowSource } from "@1771technologies/lytenyte-shared";
|
|
7
|
+
export declare const Root: <Spec extends Root.GridSpec = Root.GridSpec>(props: PropsWithChildren<Root.Props<Spec> & (undefined extends Spec["api"] ? object : {
|
|
8
|
+
apiExtension: Spec["api"];
|
|
9
|
+
})>) => ReactNode;
|
|
10
|
+
export declare namespace Root {
|
|
11
|
+
type GridSpec<T = unknown, C extends Record<string, any> = object, S extends RowSource<T> = RowSource, E extends Record<string, any> = object> = LnSpec<T, C, S, E>;
|
|
12
|
+
type Props<Spec extends GridSpec = GridSpec> = LnProps<Spec>;
|
|
13
|
+
type API<Spec extends GridSpec = GridSpec> = LnAPI<Spec>;
|
|
14
|
+
type Column<Spec extends GridSpec = GridSpec> = LnColumn<Spec>;
|
|
15
|
+
}
|