@1771technologies/lytenyte-pro 2.0.0-dev.0 → 2.0.0-dev.2
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,101 @@
|
|
|
1
|
+
import { useTree } from "./source/use-tree.js";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useRowById } from "./source/use-row-by-id.js";
|
|
4
|
+
import { useControlledState } from "./source/use-controlled-state.js";
|
|
5
|
+
import { useFlattened } from "./source/use-flattened.js";
|
|
6
|
+
import { useEvent, useGlobalRefresh, useOnRowsSelected, usePiece, useRowByIndex, useRowIsSelected, useRows, useRowsBetween, useRowSelection, useRowSelectionState, useRowsSelected, useSortFn, } from "@1771technologies/lytenyte-core/internal";
|
|
7
|
+
import { useRowParents } from "./source/use-row-parents.js";
|
|
8
|
+
import { useRowLeafs } from "./source/use-row-leafs.js";
|
|
9
|
+
import { useRowChildren } from "./source/use-row-children.js";
|
|
10
|
+
import { useOnRowsUpdated } from "./source/use-on-rows-updated.js";
|
|
11
|
+
import { useRowSiblings } from "./source/use-row-siblings.js";
|
|
12
|
+
const emptyKey = [];
|
|
13
|
+
export function useTreeDataSource(p) {
|
|
14
|
+
const sortFn = useSortFn(p.sort);
|
|
15
|
+
const state = useControlledState(p);
|
|
16
|
+
const tree = useTree(p);
|
|
17
|
+
const flat = useFlattened(tree, state.expandedFn, p.topData, p.botData, p.rowSelectionIdUniverseAdditions, p.rowSelectionIdUniverseSubtractions, sortFn);
|
|
18
|
+
const top$ = usePiece(flat.topCount);
|
|
19
|
+
const bot$ = usePiece(flat.botCount);
|
|
20
|
+
const rowCount$ = usePiece(flat.rowCount);
|
|
21
|
+
const maxDepth$ = usePiece(flat.maxDepth);
|
|
22
|
+
const rows$ = usePiece(flat.rows);
|
|
23
|
+
const rows = useRows(flat.rows);
|
|
24
|
+
const globalSignal = useGlobalRefresh();
|
|
25
|
+
const rowById = useRowById(tree);
|
|
26
|
+
const rowParents = useRowParents(tree);
|
|
27
|
+
const idToSpec = useEvent((id) => {
|
|
28
|
+
const node = tree.rowIdToNode.get(id);
|
|
29
|
+
if (!node)
|
|
30
|
+
return null;
|
|
31
|
+
return { size: node.children.size, children: node.children };
|
|
32
|
+
});
|
|
33
|
+
const selectionState = useRowSelection(p.rowSelection, p.onRowSelectionChange, p.rowsIsolatedSelection ?? false, p.rowSelectKey ?? emptyKey, flat.idUniverse, flat.rootIds, flat.rootCount, globalSignal);
|
|
34
|
+
const onRowsSelected = useOnRowsSelected(selectionState, idToSpec, rowParents, p.rowsIsolatedSelection ?? false, globalSignal);
|
|
35
|
+
const rowIsSelected = useRowIsSelected(selectionState, rowParents, rowById);
|
|
36
|
+
const { rowByIndex, rowInvalidate } = useRowByIndex(rows$, globalSignal, selectionState, rowParents);
|
|
37
|
+
const rowsSelected = useRowsSelected(selectionState, tree.rowIdToNode, rowParents);
|
|
38
|
+
const rowSelectionState = useRowSelectionState(selectionState);
|
|
39
|
+
const rowsBetween = useRowsBetween({ current: flat.idToIndex }, rowByIndex);
|
|
40
|
+
const rowLeafs = useRowLeafs(tree);
|
|
41
|
+
const rowChildren = useRowChildren(tree);
|
|
42
|
+
const rowSiblings = useRowSiblings(tree);
|
|
43
|
+
const rowIdToIndex = usePiece(flat.idToIndex);
|
|
44
|
+
const setExpansions = state.onExpansionsChange;
|
|
45
|
+
const onRowsUpdated = useOnRowsUpdated(tree, p);
|
|
46
|
+
const selection$ = usePiece(selectionState.rowSelectionsRaw);
|
|
47
|
+
const source = useMemo(() => {
|
|
48
|
+
const s = {
|
|
49
|
+
rowByIndex,
|
|
50
|
+
rowById,
|
|
51
|
+
rowInvalidate,
|
|
52
|
+
rowParents,
|
|
53
|
+
rowIsSelected,
|
|
54
|
+
rowsSelected,
|
|
55
|
+
rowSelectionState,
|
|
56
|
+
rowsBetween,
|
|
57
|
+
rowLeafs,
|
|
58
|
+
rowChildren,
|
|
59
|
+
rowSiblings,
|
|
60
|
+
rowIndexToRowId: (i) => s.rowByIndex(i).get()?.id ?? null,
|
|
61
|
+
rowIdToRowIndex: (id) => rowIdToIndex.get().get(id) ?? null,
|
|
62
|
+
rowUpdate: onRowsUpdated,
|
|
63
|
+
rowGroupExpansionChange: (delta) => {
|
|
64
|
+
setExpansions(delta);
|
|
65
|
+
},
|
|
66
|
+
onViewChange: () => { },
|
|
67
|
+
useBottomCount: bot$.useValue,
|
|
68
|
+
useRowCount: rowCount$.useValue,
|
|
69
|
+
useTopCount: top$.useValue,
|
|
70
|
+
useRows: rows.useValue,
|
|
71
|
+
useMaxRowGroupDepth: maxDepth$.useValue,
|
|
72
|
+
useSelectionState: selection$.useValue,
|
|
73
|
+
onRowsSelected,
|
|
74
|
+
onRowsUpdated,
|
|
75
|
+
};
|
|
76
|
+
return s;
|
|
77
|
+
}, [
|
|
78
|
+
bot$.useValue,
|
|
79
|
+
maxDepth$.useValue,
|
|
80
|
+
onRowsSelected,
|
|
81
|
+
onRowsUpdated,
|
|
82
|
+
rowById,
|
|
83
|
+
rowByIndex,
|
|
84
|
+
rowChildren,
|
|
85
|
+
rowCount$.useValue,
|
|
86
|
+
rowIdToIndex,
|
|
87
|
+
rowInvalidate,
|
|
88
|
+
rowIsSelected,
|
|
89
|
+
rowLeafs,
|
|
90
|
+
rowParents,
|
|
91
|
+
rowSelectionState,
|
|
92
|
+
rowSiblings,
|
|
93
|
+
rows.useValue,
|
|
94
|
+
rowsBetween,
|
|
95
|
+
rowsSelected,
|
|
96
|
+
selection$.useValue,
|
|
97
|
+
setExpansions,
|
|
98
|
+
top$.useValue,
|
|
99
|
+
]);
|
|
100
|
+
return source;
|
|
101
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isObject(x: any): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isReactVersionAtLeast } from "./react-version.js";
|
|
2
|
+
export function getElementRef(element) {
|
|
3
|
+
// React <=18 in DEV
|
|
4
|
+
if (isReactVersionAtLeast(18)) {
|
|
5
|
+
const getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
6
|
+
const mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
7
|
+
if (mayWarn) {
|
|
8
|
+
return element.ref;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
if (isReactVersionAtLeast(19)) {
|
|
12
|
+
const getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
13
|
+
const mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
14
|
+
if (mayWarn) {
|
|
15
|
+
return element.props.ref;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
// Not DEV
|
|
19
|
+
return element.props.ref || element.ref;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSlot } from "./use-slot.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function mergeProps(slotProps, childProps) {
|
|
2
|
+
// all child props should override
|
|
3
|
+
const overrideProps = { ...childProps };
|
|
4
|
+
for (const propName in childProps) {
|
|
5
|
+
const slotPropValue = slotProps[propName];
|
|
6
|
+
const childPropValue = childProps[propName];
|
|
7
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
8
|
+
if (isHandler) {
|
|
9
|
+
// if the handler exists on both, we compose them
|
|
10
|
+
if (slotPropValue && childPropValue) {
|
|
11
|
+
overrideProps[propName] = (...args) => {
|
|
12
|
+
const result = childPropValue(...args);
|
|
13
|
+
slotPropValue(...args);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
// if it's `style`, we merge them
|
|
19
|
+
else if (propName === "style") {
|
|
20
|
+
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
21
|
+
}
|
|
22
|
+
else if (propName === "className") {
|
|
23
|
+
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return { ...slotProps, ...overrideProps };
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { AnyProps, AnyRef } from "./types.js";
|
|
3
|
+
export interface UseSlotProps {
|
|
4
|
+
readonly ref?: AnyRef;
|
|
5
|
+
readonly props?: AnyProps | AnyProps[];
|
|
6
|
+
readonly slot?: ReactElement | ((...args: any) => ReactElement);
|
|
7
|
+
readonly state?: any;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A React hook to support slots in components.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useSlot({ props, slot, state, ref: forwardedRef }: UseSlotProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cloneElement } from "react";
|
|
3
|
+
import { mergeProps } from "./merge-props.js";
|
|
4
|
+
import { getElementRef } from "./get-element-ref.js";
|
|
5
|
+
import { useCombinedRefs } from "@1771technologies/lytenyte-core/internal";
|
|
6
|
+
/**
|
|
7
|
+
* A React hook to support slots in components.
|
|
8
|
+
*/
|
|
9
|
+
export function useSlot({ props = {}, slot = _jsx("div", {}), state, ref: forwardedRef }) {
|
|
10
|
+
const el = typeof slot === "function" ? slot(state) : slot;
|
|
11
|
+
let merged = {};
|
|
12
|
+
if (Array.isArray(props)) {
|
|
13
|
+
for (let i = 0; i < props.length; i++)
|
|
14
|
+
merged = mergeProps(merged, props[i]);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
merged = props;
|
|
18
|
+
}
|
|
19
|
+
const mergedProps = mergeProps(merged, el.props);
|
|
20
|
+
const ref = getElementRef(el);
|
|
21
|
+
const mergedRefs = useCombinedRefs(forwardedRef, ref);
|
|
22
|
+
// One of the refs should be fined. We have to check for this since
|
|
23
|
+
// not all elements accept a ref (e.g. Fragments)
|
|
24
|
+
if (ref || forwardedRef) {
|
|
25
|
+
mergedProps.ref = mergedRefs;
|
|
26
|
+
}
|
|
27
|
+
return cloneElement(el, mergedProps);
|
|
28
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useEffect, useMemo, useState } from "react";
|
|
2
|
+
import { onAnimationFinished } from "@1771technologies/lytenyte-shared";
|
|
3
|
+
export function useTransitioned(open, el, changeComplete) {
|
|
4
|
+
const [m, setM] = useState(open);
|
|
5
|
+
const t = useMemo(() => {
|
|
6
|
+
if (open && !m)
|
|
7
|
+
return "opening";
|
|
8
|
+
if (!open && m)
|
|
9
|
+
return "closing";
|
|
10
|
+
return "idle";
|
|
11
|
+
}, [m, open]);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (!m || !open || !el)
|
|
14
|
+
return;
|
|
15
|
+
const controller = new AbortController();
|
|
16
|
+
onAnimationFinished({
|
|
17
|
+
element: el,
|
|
18
|
+
fn: () => {
|
|
19
|
+
changeComplete?.(true);
|
|
20
|
+
},
|
|
21
|
+
signal: controller.signal,
|
|
22
|
+
});
|
|
23
|
+
return () => controller.abort();
|
|
24
|
+
}, [changeComplete, el, m, open]);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if ((!open && !m) || (m && open))
|
|
27
|
+
return;
|
|
28
|
+
if (open && !m) {
|
|
29
|
+
requestAnimationFrame(() => setM(open));
|
|
30
|
+
if (!el)
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (!open && m) {
|
|
34
|
+
const controller = new AbortController();
|
|
35
|
+
if (!el)
|
|
36
|
+
return;
|
|
37
|
+
onAnimationFinished({
|
|
38
|
+
element: el,
|
|
39
|
+
fn: () => {
|
|
40
|
+
setM(false);
|
|
41
|
+
changeComplete?.(!m);
|
|
42
|
+
},
|
|
43
|
+
signal: controller.signal,
|
|
44
|
+
});
|
|
45
|
+
return () => controller.abort();
|
|
46
|
+
}
|
|
47
|
+
}, [changeComplete, el, m, open]);
|
|
48
|
+
const shouldMount = open || m;
|
|
49
|
+
return [t, shouldMount];
|
|
50
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export { activateLicense } from "./license.js";
|
|
2
|
+
import { Grid as GridCore } from "@1771technologies/lytenyte-core";
|
|
3
|
+
import type { PropsWithChildren, ReactNode } from "react";
|
|
4
|
+
import { Root } from "./root/root.js";
|
|
5
|
+
import type { RowSource } from "@1771technologies/lytenyte-shared";
|
|
6
|
+
import type * as LnTypes from "./types/index.js";
|
|
7
|
+
export interface GridComponent {
|
|
8
|
+
<Spec extends Root.GridSpec = Root.GridSpec>(props: PropsWithChildren<Root.Props<Spec> & (undefined extends Spec["api"] ? unknown : {
|
|
9
|
+
apiExtension: ((incomplete: Root.API<Spec>) => Spec["api"] | null) | Spec["api"];
|
|
10
|
+
})>): ReactNode;
|
|
11
|
+
Header: typeof GridCore.Header;
|
|
12
|
+
HeaderRow: typeof GridCore.HeaderRow;
|
|
13
|
+
HeaderCell: typeof GridCore.HeaderCell;
|
|
14
|
+
HeaderGroupCell: typeof GridCore.HeaderGroupCell;
|
|
15
|
+
RowsContainer: typeof GridCore.RowsContainer;
|
|
16
|
+
RowsTop: typeof GridCore.RowsTop;
|
|
17
|
+
RowsCenter: typeof GridCore.RowsCenter;
|
|
18
|
+
RowsBottom: typeof GridCore.RowsBottom;
|
|
19
|
+
Row: typeof GridCore.Row;
|
|
20
|
+
RowFullWidth: typeof GridCore.RowFullWidth;
|
|
21
|
+
Cell: typeof GridCore.Cell;
|
|
22
|
+
Viewport: typeof GridCore.Viewport;
|
|
23
|
+
}
|
|
24
|
+
export declare const Grid: GridComponent;
|
|
25
|
+
export declare namespace Grid {
|
|
26
|
+
type GridSpec<T = unknown, C extends Record<string, any> = object, S extends RowSource<T> = RowSource, E extends Record<string, any> = object> = Root.GridSpec<T, C, S, E>;
|
|
27
|
+
type Props<Spec extends GridSpec = GridSpec> = Root.Props<Spec>;
|
|
28
|
+
type API<Spec extends GridSpec = GridSpec> = Root.API<Spec>;
|
|
29
|
+
type Column<Spec extends GridSpec = GridSpec> = Root.Column<Spec>;
|
|
30
|
+
type ColumnBase<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["columnBase"];
|
|
31
|
+
type ColumnMarker<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["columnMarker"];
|
|
32
|
+
type RowGroupColumn<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["rowGroupColumn"];
|
|
33
|
+
type Events<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["events"];
|
|
34
|
+
type Style = LnTypes.GridStyle;
|
|
35
|
+
namespace Components {
|
|
36
|
+
type Header = GridCore.Components.Header;
|
|
37
|
+
type HeaderRow = GridCore.Components.HeaderRow;
|
|
38
|
+
type HeaderCell = GridCore.Components.HeaderCell;
|
|
39
|
+
type HeaderGroupCell = GridCore.Components.HeaderGroupCell;
|
|
40
|
+
type RowsContainer = GridCore.Components.RowsContainer;
|
|
41
|
+
type RowsTop = GridCore.Components.RowsTop;
|
|
42
|
+
type RowsCenter = GridCore.Components.RowsCenter;
|
|
43
|
+
type RowsBottom = GridCore.Components.RowsBottom;
|
|
44
|
+
type Row = GridCore.Components.Row;
|
|
45
|
+
type RowFullWidth = GridCore.Components.RowFullWidth;
|
|
46
|
+
type Cell = GridCore.Components.Cell;
|
|
47
|
+
type Viewport = GridCore.Components.Viewport;
|
|
48
|
+
}
|
|
49
|
+
namespace T {
|
|
50
|
+
type AggregationFn<T> = LnTypes.AggregationFn<T>;
|
|
51
|
+
type Aggregator<T> = LnTypes.Aggregator<T>;
|
|
52
|
+
type CellParams<Spec extends GridSpec> = LnTypes.CellParams<Spec>;
|
|
53
|
+
type CellParamsWithIndex<Spec extends GridSpec> = LnTypes.CellParamsWithIndex<Spec>;
|
|
54
|
+
type CellRendererParams<Spec extends GridSpec> = LnTypes.CellRendererParams<Spec>;
|
|
55
|
+
type DataRect = LnTypes.DataRect;
|
|
56
|
+
type Dimension<T> = LnTypes.Dimension<T>;
|
|
57
|
+
type DimensionAgg<T> = LnTypes.DimensionAgg<T>;
|
|
58
|
+
type DimensionSort<T> = LnTypes.DimensionSort<T>;
|
|
59
|
+
type EditParams<Spec extends GridSpec> = LnTypes.EditParams<Spec>;
|
|
60
|
+
type ExportDataRectResult<Spec extends GridSpec> = LnTypes.ExportDataRectResult<Spec>;
|
|
61
|
+
type Field<T> = LnTypes.Field<T>;
|
|
62
|
+
type FilterFn<T> = LnTypes.FilterFn<T>;
|
|
63
|
+
type GroupFn<T> = LnTypes.GroupFn<T>;
|
|
64
|
+
type GroupIdFn = LnTypes.GroupIdFn;
|
|
65
|
+
type HeaderGroupParams<Spec extends GridSpec> = LnTypes.HeaderGroupParams<Spec>;
|
|
66
|
+
type HeaderParams<Spec extends GridSpec> = LnTypes.HeaderParams<Spec>;
|
|
67
|
+
type LeafIdFn<T> = LnTypes.LeafIdFn<T>;
|
|
68
|
+
type PathField = LnTypes.PathField;
|
|
69
|
+
type RowParams<Spec extends GridSpec> = LnTypes.RowParams<Spec>;
|
|
70
|
+
type RowSelectionState = LnTypes.RowSelectionState;
|
|
71
|
+
type SortFn<T> = LnTypes.SortFn<T>;
|
|
72
|
+
type RowFullWidthRendererParams<Spec extends GridSpec> = LnTypes.RowFullWidthRendererParams<Spec>;
|
|
73
|
+
type RowSelectionIsolated = LnTypes.RowSelectionIsolated;
|
|
74
|
+
type RowSelectionLinked = LnTypes.RowSelectionLinked;
|
|
75
|
+
type RowSelectNode = LnTypes.RowSelectNode;
|
|
76
|
+
type RowDragPlaceholderFn = GridCore.T.RowDragPlaceholderFn;
|
|
77
|
+
type DragItem = GridCore.T.DragItem;
|
|
78
|
+
type DragItemSiteLocal = GridCore.T.DragItemSiteLocal;
|
|
79
|
+
type DragItemTransfer = GridCore.T.DragItemTransfer;
|
|
80
|
+
type RowNode<T> = LnTypes.RowNode<T>;
|
|
81
|
+
type RowLeaf<T> = LnTypes.RowLeaf<T>;
|
|
82
|
+
type RowGroup = LnTypes.RowGroup;
|
|
83
|
+
type RowAggregated = LnTypes.RowAggregated;
|
|
84
|
+
type ColumnPin = LnTypes.ColumnPin;
|
|
85
|
+
type LayoutCell = LnTypes.LayoutCell;
|
|
86
|
+
type LayoutHeader = LnTypes.LayoutHeader;
|
|
87
|
+
type LayoutHeaderCell = LnTypes.LayoutHeaderCell;
|
|
88
|
+
type LayoutHeaderGroup = LnTypes.LayoutHeaderGroup;
|
|
89
|
+
type LayoutHeaderFloating = LnTypes.LayoutHeaderFloating;
|
|
90
|
+
type LayoutFullWidthRow = LnTypes.LayoutFullWidthRow;
|
|
91
|
+
type LayoutRow = LnTypes.LayoutRow;
|
|
92
|
+
type LayoutRowWithCells = LnTypes.LayoutRowWithCells;
|
|
93
|
+
type PositionDetailCell = LnTypes.PositionDetailCell;
|
|
94
|
+
type PositionFloatingCell = LnTypes.PositionFloatingCell;
|
|
95
|
+
type PositionFullWidthRow = LnTypes.PositionFullWidthRow;
|
|
96
|
+
type PositionGridCell = LnTypes.PositionGridCell;
|
|
97
|
+
type PositionGridCellRoot = LnTypes.PositionGridCellRoot;
|
|
98
|
+
type PositionHeaderCell = LnTypes.PositionHeaderCell;
|
|
99
|
+
type PositionHeaderGroupCell = LnTypes.PositionHeaderGroupCell;
|
|
100
|
+
type PositionUnion = LnTypes.PositionUnion;
|
|
101
|
+
type DataRectSplit = LnTypes.DataRectSplit;
|
|
102
|
+
type HavingFilterFn = LnTypes.HavingFilterFn;
|
|
103
|
+
type LabelFilter = LnTypes.LabelFilter;
|
|
104
|
+
type PivotField<Spec extends GridSpec> = LnTypes.PivotField<Spec>;
|
|
105
|
+
type PivotModel<Spec extends GridSpec> = LnTypes.PivotModel<Spec>;
|
|
106
|
+
type PivotState = LnTypes.PivotState;
|
|
107
|
+
type VirtualTarget = LnTypes.VirtualTarget;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export type { UseClientDataSourceParams, RowSourceClient, } from "./data-source-client/use-client-data-source.js";
|
|
111
|
+
export { useClientDataSource } from "./data-source-client/use-client-data-source.js";
|
|
112
|
+
export type { UseServerDataSourceParams, RowSourceServer, } from "./data-source-server/use-server-data-source.js";
|
|
113
|
+
export { useServerDataSource } from "./data-source-server/use-server-data-source.js";
|
|
114
|
+
export type * from "./data-source-server/types.js";
|
|
115
|
+
export type { RowSourceTree, UseTreeDataSourceParams } from "./data-source-tree/use-tree-data-source.js";
|
|
116
|
+
export { useTreeDataSource } from "./data-source-tree/use-tree-data-source.js";
|
|
117
|
+
export { measureText, moveRelative, equal, arrayShallow } from "@1771technologies/lytenyte-shared";
|
|
118
|
+
export { getRowDragData, computeField } from "@1771technologies/lytenyte-core/internal";
|
|
119
|
+
export { virtualFromXY } from "./components/virtual-from-coordinates.js";
|
|
120
|
+
export type { Piece, PieceWritable } from "@1771technologies/lytenyte-core";
|
|
121
|
+
export { usePiece } from "@1771technologies/lytenyte-core";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { activateLicense } from "./license.js";
|
|
2
|
+
import { Grid as GridCore } from "@1771technologies/lytenyte-core";
|
|
3
|
+
import { Root } from "./root/root.js";
|
|
4
|
+
export const Grid = Root;
|
|
5
|
+
Grid.Header = GridCore.Header;
|
|
6
|
+
Grid.HeaderRow = GridCore.HeaderRow;
|
|
7
|
+
Grid.HeaderCell = GridCore.HeaderCell;
|
|
8
|
+
Grid.HeaderGroupCell = GridCore.HeaderGroupCell;
|
|
9
|
+
Grid.RowsContainer = GridCore.RowsContainer;
|
|
10
|
+
Grid.RowsTop = GridCore.RowsTop;
|
|
11
|
+
Grid.RowsCenter = GridCore.RowsCenter;
|
|
12
|
+
Grid.RowsBottom = GridCore.RowsBottom;
|
|
13
|
+
Grid.Row = GridCore.Row;
|
|
14
|
+
Grid.RowFullWidth = GridCore.RowFullWidth;
|
|
15
|
+
Grid.Cell = GridCore.Cell;
|
|
16
|
+
Grid.Viewport = GridCore.Viewport;
|
|
17
|
+
export { useClientDataSource } from "./data-source-client/use-client-data-source.js";
|
|
18
|
+
export { useServerDataSource } from "./data-source-server/use-server-data-source.js";
|
|
19
|
+
export { useTreeDataSource } from "./data-source-tree/use-tree-data-source.js";
|
|
20
|
+
export { measureText, moveRelative, equal, arrayShallow } from "@1771technologies/lytenyte-shared";
|
|
21
|
+
export { getRowDragData, computeField } from "@1771technologies/lytenyte-core/internal";
|
|
22
|
+
export { virtualFromXY } from "./components/virtual-from-coordinates.js";
|
|
23
|
+
export { usePiece } from "@1771technologies/lytenyte-core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { activateLicense, hasAValidLicense } from "./license.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { activateLicense, hasAValidLicense } from "./license.js";
|