@superblocksteam/library 1.99.99-next.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/LICENSE.txt +87 -0
- package/README.md +108 -0
- package/dist/allPaths-CCZMME3l.js +17 -0
- package/dist/allPaths-CCZMME3l.js.map +1 -0
- package/dist/allPaths-CHXNxDVP.js +17 -0
- package/dist/allPaths-CHXNxDVP.js.map +1 -0
- package/dist/allPathsLoader-DTWFaGcd.js +22 -0
- package/dist/allPathsLoader-DTWFaGcd.js.map +1 -0
- package/dist/allPathsLoader-Fr8EhLGp.js +22 -0
- package/dist/allPathsLoader-Fr8EhLGp.js.map +1 -0
- package/dist/icons-BrNMuu_I.js +40 -0
- package/dist/icons-BrNMuu_I.js.map +1 -0
- package/dist/index-BxzKdlqH.js +1353 -0
- package/dist/index-BxzKdlqH.js.map +1 -0
- package/dist/index-DIJYif9G.js +1341 -0
- package/dist/index-DIJYif9G.js.map +1 -0
- package/dist/index-DIn-fanT.js +1353 -0
- package/dist/index-DIn-fanT.js.map +1 -0
- package/dist/index-LHtbj0-V.js +1341 -0
- package/dist/index-LHtbj0-V.js.map +1 -0
- package/dist/index-U0oPeutu.js +189889 -0
- package/dist/index-U0oPeutu.js.map +1 -0
- package/dist/index.css +34239 -0
- package/dist/index.js +164 -0
- package/dist/index.js.map +1 -0
- package/dist/splitPathsBySizeLoader-DHk6oFvg.js +34 -0
- package/dist/splitPathsBySizeLoader-DHk6oFvg.js.map +1 -0
- package/dist/splitPathsBySizeLoader-PcZVWYaJ.js +34 -0
- package/dist/splitPathsBySizeLoader-PcZVWYaJ.js.map +1 -0
- package/dist-types/app-internal.d.ts +4 -0
- package/dist-types/docs-utils/generate-docs.d.ts +2 -0
- package/dist-types/edit-mode/collisions-layer.d.ts +3 -0
- package/dist-types/edit-mode/create-component.d.ts +8 -0
- package/dist-types/edit-mode/debug-tools.d.ts +11 -0
- package/dist-types/edit-mode/dnd/collision-detection.d.ts +3 -0
- package/dist-types/edit-mode/dnd/dnd-provider.d.ts +4 -0
- package/dist-types/edit-mode/dnd/draggable-widget.d.ts +7 -0
- package/dist-types/edit-mode/dnd/drop-layer.d.ts +5 -0
- package/dist-types/edit-mode/dnd/droppable-widget.d.ts +10 -0
- package/dist-types/edit-mode/dnd/grid-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +33 -0
- package/dist-types/edit-mode/dnd/grid-utils.d.ts +8 -0
- package/dist-types/edit-mode/dnd/handle-grid-drop.d.ts +9 -0
- package/dist-types/edit-mode/dnd/handle-stack-drop.d.ts +9 -0
- package/dist-types/edit-mode/dnd/hooks/use-component-draggable.d.ts +5 -0
- package/dist-types/edit-mode/dnd/hooks/use-component-droppable.d.ts +6 -0
- package/dist-types/edit-mode/dnd/hooks/use-handle-dnd-events.d.ts +1 -0
- package/dist-types/edit-mode/dnd/hooks/use-widget-node-ref.d.ts +2 -0
- package/dist-types/edit-mode/dnd/new-components-drag-layer.d.ts +6 -0
- package/dist-types/edit-mode/dnd/stack-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/stack-store.d.ts +10 -0
- package/dist-types/edit-mode/dnd/stack-utils.d.ts +13 -0
- package/dist-types/edit-mode/dnd/types.d.ts +45 -0
- package/dist-types/edit-mode/dnd/utils.d.ts +13 -0
- package/dist-types/edit-mode/duplicated-name-popover.d.ts +7 -0
- package/dist-types/edit-mode/edit-store.d.ts +28 -0
- package/dist-types/edit-mode/edit-wrapper.d.ts +18 -0
- package/dist-types/edit-mode/editor-hotkeys.d.ts +3 -0
- package/dist-types/edit-mode/features/connection-manager.d.ts +10 -0
- package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +69 -0
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +17 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +49 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +31 -0
- package/dist-types/edit-mode/features/resizing-store.d.ts +53 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +94 -0
- package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +55 -0
- package/dist-types/edit-mode/features/ui-store.d.ts +41 -0
- package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +2 -0
- package/dist-types/edit-mode/iframe-wrappers.d.ts +4 -0
- package/dist-types/edit-mode/interaction-add-section-button.d.ts +4 -0
- package/dist-types/edit-mode/interaction-layer.d.ts +11 -0
- package/dist-types/edit-mode/interaction-rect-handles.d.ts +7 -0
- package/dist-types/edit-mode/interaction-rect-name-pill.d.ts +13 -0
- package/dist-types/edit-mode/interaction-rect.d.ts +44 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +4 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +2 -0
- package/dist-types/edit-mode/mobx-sync/deep-observe.d.ts +24 -0
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.d.ts +23 -0
- package/dist-types/edit-mode/properties.d.ts +13 -0
- package/dist-types/edit-mode/resize-capabilities.d.ts +5 -0
- package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +14 -0
- package/dist-types/edit-mode/roots.d.ts +9 -0
- package/dist-types/edit-mode/runtime-children.d.ts +14 -0
- package/dist-types/edit-mode/sb-component-from-meta.d.ts +2 -0
- package/dist-types/edit-mode/source-update-api.d.ts +26 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +34 -0
- package/dist-types/internal-testing/components/api.d.ts +3 -0
- package/dist-types/internal-testing/components/button.d.ts +1 -0
- package/dist-types/internal-testing/components/checkbox.d.ts +1 -0
- package/dist-types/internal-testing/components/container.d.ts +1 -0
- package/dist-types/internal-testing/components/date-picker.d.ts +1 -0
- package/dist-types/internal-testing/components/dropdown.d.ts +1 -0
- package/dist-types/internal-testing/components/icon.d.ts +1 -0
- package/dist-types/internal-testing/components/image.d.ts +1 -0
- package/dist-types/internal-testing/components/input.d.ts +1 -0
- package/dist-types/internal-testing/components/key-value.d.ts +1 -0
- package/dist-types/internal-testing/components/modal.d.ts +1 -0
- package/dist-types/internal-testing/components/section-column.d.ts +1 -0
- package/dist-types/internal-testing/components/switch.d.ts +1 -0
- package/dist-types/internal-testing/components/table.d.ts +1 -0
- package/dist-types/internal-testing/components/timer.d.ts +3 -0
- package/dist-types/internal-testing/components/variable.d.ts +3 -0
- package/dist-types/internal-testing/utils.d.ts +5 -0
- package/dist-types/internal-testing/widgets.d.ts +2 -0
- package/dist-types/lib/hooks/use-alignment-styles.d.ts +9 -0
- package/dist-types/lib/hooks/use-cached-value.d.ts +11 -0
- package/dist-types/lib/hooks/use-callback-as-ref.d.ts +1 -0
- package/dist-types/lib/hooks/use-deep-memo.d.ts +9 -0
- package/dist-types/lib/hooks/use-editor-hotkeys.d.ts +3 -0
- package/dist-types/lib/hooks/use-element-rect.d.ts +7 -0
- package/dist-types/lib/hooks/use-observer-memo.d.ts +14 -0
- package/dist-types/lib/hooks/use-observer-memo.test.d.ts +1 -0
- package/dist-types/lib/hooks/use-pointer-down-outside.d.ts +15 -0
- package/dist-types/lib/hooks/use-stable-effect.d.ts +22 -0
- package/dist-types/lib/hooks/use-stable-effect.test.d.ts +1 -0
- package/dist-types/lib/index.d.ts +40 -0
- package/dist-types/lib/internal-details/actions-context.d.ts +9 -0
- package/dist-types/lib/internal-details/component-info-context.d.ts +10 -0
- package/dist-types/lib/internal-details/entities-state.d.ts +10 -0
- package/dist-types/lib/internal-details/entities.d.ts +5 -0
- package/dist-types/lib/internal-details/env.d.ts +1 -0
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +9 -0
- package/dist-types/lib/internal-details/is-sb-component.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/devtools.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +97 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +20 -0
- package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +27 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +83 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-types.d.ts +16 -0
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/names.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +32 -0
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +36 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +77 -0
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +27 -0
- package/dist-types/lib/internal-details/lib/features/injected-features.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/features/name-manager.d.ts +36 -0
- package/dist-types/lib/internal-details/lib/iframe.d.ts +44 -0
- package/dist-types/lib/internal-details/lib/mobx-cached-getter.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/resolve-id-singleton.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/root-store.d.ts +30 -0
- package/dist-types/lib/internal-details/lib/throttle.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +226 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +10 -0
- package/dist-types/lib/internal-details/sb-wrapper-notes.d.ts +1 -0
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +14 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +9 -0
- package/dist-types/lib/internal-details/scope/scope-context.d.ts +8 -0
- package/dist-types/lib/internal-details/scope/scope.d.ts +12 -0
- package/dist-types/lib/internal-details/size.d.ts +1 -0
- package/dist-types/lib/internal-details/theme-context.d.ts +8 -0
- package/dist-types/lib/internal-details/use-track-runtime-widget.d.ts +15 -0
- package/dist-types/lib/sb-trigger.d.ts +53 -0
- package/dist-types/lib/triggers/base.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +19 -0
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +21 -0
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +20 -0
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +20 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +28 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +23 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +26 -0
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/run-js.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +22 -0
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +15 -0
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +17 -0
- package/dist-types/lib/triggers/registry.d.ts +174 -0
- package/dist-types/lib/triggers/run-event-handlers.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/components/autolinked-text.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +46 -0
- package/dist-types/lib/user-facing/component-base/components/checkbox.d.ts +12 -0
- package/dist-types/lib/user-facing/component-base/components/dropdown-select.d.ts +4 -0
- package/dist-types/lib/user-facing/component-base/components/dynamic-svg.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/components/expand-button.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/components/loading-animator.d.ts +4 -0
- package/dist-types/lib/user-facing/component-base/components/plain-link.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/components/popper.d.ts +20 -0
- package/dist-types/lib/user-facing/component-base/components/search-component.d.ts +19 -0
- package/dist-types/lib/user-facing/component-base/components/span-trunc-middle.d.ts +9 -0
- package/dist-types/lib/user-facing/component-base/components/switch.d.ts +6 -0
- package/dist-types/lib/user-facing/component-base/constants.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/error/error-inline-message.d.ts +36 -0
- package/dist-types/lib/user-facing/component-base/error/error-tooltip.d.ts +11 -0
- package/dist-types/lib/user-facing/component-base/error/error-utils.d.ts +13 -0
- package/dist-types/lib/user-facing/component-base/error/widget-errors-wrapper.d.ts +15 -0
- package/dist-types/lib/user-facing/component-base/error-boundary.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +16 -0
- package/dist-types/lib/user-facing/component-base/styles/hover-styles.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/styles/input-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/component-base/use-passthrough-props.d.ts +6 -0
- package/dist-types/lib/user-facing/component-base/utils/format-utils.d.ts +37 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +17 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +37 -0
- package/dist-types/lib/user-facing/components/button/props.d.ts +48 -0
- package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +9 -0
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +43 -0
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +44 -0
- package/dist-types/lib/user-facing/components/checkbox/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/column/index.d.ts +51 -0
- package/dist-types/lib/user-facing/components/column/props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/container/index.d.ts +63 -0
- package/dist-types/lib/user-facing/components/container/props.d.ts +58 -0
- package/dist-types/lib/user-facing/components/custom/context.d.ts +11 -0
- package/dist-types/lib/user-facing/components/custom/index.d.ts +2 -0
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +27 -0
- package/dist-types/lib/user-facing/components/date-picker/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +29 -0
- package/dist-types/lib/user-facing/components/date-picker/date-picker.d.ts +2 -0
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +63 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +65 -0
- package/dist-types/lib/user-facing/components/date-picker/props.test-d.d.ts +1 -0
- package/dist-types/lib/user-facing/components/date-picker/side-effects.d.ts +3 -0
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +40 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +24 -0
- package/dist-types/lib/user-facing/components/dropdown/constants.d.ts +5 -0
- package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +106 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +73 -0
- package/dist-types/lib/user-facing/components/dropdown/multi-dropdown.d.ts +18 -0
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.d.ts +2 -0
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +76 -0
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +89 -0
- package/dist-types/lib/user-facing/components/dropdown/utils.d.ts +8 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-constraints.d.ts +26 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/calculations/order-constraints.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/index.d.ts +36 -0
- package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +5 -0
- package/dist-types/lib/user-facing/components/grid/utils.d.ts +1 -0
- package/dist-types/lib/user-facing/components/icon/index.d.ts +22 -0
- package/dist-types/lib/user-facing/components/icon/props.d.ts +24 -0
- package/dist-types/lib/user-facing/components/image/image-component.d.ts +38 -0
- package/dist-types/lib/user-facing/components/image/index.d.ts +29 -0
- package/dist-types/lib/user-facing/components/image/props.d.ts +39 -0
- package/dist-types/lib/user-facing/components/input/constants.d.ts +24 -0
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +5 -0
- package/dist-types/lib/user-facing/components/input/index.d.ts +96 -0
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +57 -0
- package/dist-types/lib/user-facing/components/input/props.d.ts +100 -0
- package/dist-types/lib/user-facing/components/input/styles.d.ts +6 -0
- package/dist-types/lib/user-facing/components/input/types.d.ts +45 -0
- package/dist-types/lib/user-facing/components/input/utils.d.ts +15 -0
- package/dist-types/lib/user-facing/components/key-value/components/key-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/components/key-value/components/property-key.d.ts +7 -0
- package/dist-types/lib/user-facing/components/key-value/components/property-value.d.ts +12 -0
- package/dist-types/lib/user-facing/components/key-value/components/value-styles.d.ts +6 -0
- package/dist-types/lib/user-facing/components/key-value/constants.d.ts +7 -0
- package/dist-types/lib/user-facing/components/key-value/derived-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/components/key-value/index.d.ts +6 -0
- package/dist-types/lib/user-facing/components/key-value/key-value-component.d.ts +2 -0
- package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +38 -0
- package/dist-types/lib/user-facing/components/key-value/styles.d.ts +22 -0
- package/dist-types/lib/user-facing/components/key-value/types.d.ts +106 -0
- package/dist-types/lib/user-facing/components/key-value/utils.d.ts +11 -0
- package/dist-types/lib/user-facing/components/modal/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +49 -0
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +37 -0
- package/dist-types/lib/user-facing/components/modal/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/page/index.d.ts +13 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +15 -0
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +2 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +22 -0
- package/dist-types/lib/user-facing/components/section/props.d.ts +25 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +15 -0
- package/dist-types/lib/user-facing/components/stack/index.d.ts +60 -0
- package/dist-types/lib/user-facing/components/switch/index.d.ts +44 -0
- package/dist-types/lib/user-facing/components/switch/props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +5 -0
- package/dist-types/lib/user-facing/components/switch/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +178 -0
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +17 -0
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +16 -0
- package/dist-types/lib/user-facing/components/table/components/column-settings.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +15 -0
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +12 -0
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +14 -0
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +28 -0
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/components/filter-popover-content.d.ts +37 -0
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +5 -0
- package/dist-types/lib/user-facing/components/table/components/table-action-icon.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/table-column-header-button.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +15 -0
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +40 -0
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +62 -0
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/table-pagination-input.d.ts +10 -0
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +18 -0
- package/dist-types/lib/user-facing/components/table/components/table-row-context-menu.d.ts +17 -0
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +25 -0
- package/dist-types/lib/user-facing/components/table/constants.d.ts +111 -0
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +255 -0
- package/dist-types/lib/user-facing/components/table/props.d.ts +259 -0
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +100 -0
- package/dist-types/lib/user-facing/components/table/table-manager.d.ts +23 -0
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +78 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +147 -0
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +148 -0
- package/dist-types/lib/user-facing/components/table/types.d.ts +471 -0
- package/dist-types/lib/user-facing/components/table/use-sticky.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/index.d.ts +51 -0
- package/dist-types/lib/user-facing/components/text/long-text-button.d.ts +8 -0
- package/dist-types/lib/user-facing/components/text/props.d.ts +60 -0
- package/dist-types/lib/user-facing/components/text/styles.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/utils.d.ts +25 -0
- package/dist-types/lib/user-facing/constants.d.ts +2 -0
- package/dist-types/lib/user-facing/entities/api/index.d.ts +14 -0
- package/dist-types/lib/user-facing/entities/api/props.d.ts +20 -0
- package/dist-types/lib/user-facing/entities/timer/index.d.ts +16 -0
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +19 -0
- package/dist-types/lib/user-facing/entities/variable/index.d.ts +14 -0
- package/dist-types/lib/user-facing/entities/variable/props.d.ts +13 -0
- package/dist-types/lib/user-facing/global-functions.d.ts +23 -0
- package/dist-types/lib/user-facing/hooks/use-editor.d.ts +42 -0
- package/dist-types/lib/user-facing/hooks/use-update-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/icons/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/icons/encoded.d.ts +1 -0
- package/dist-types/lib/user-facing/icons/helpers.d.ts +21 -0
- package/dist-types/lib/user-facing/icons/index.d.ts +2 -0
- package/dist-types/lib/user-facing/internal-index.d.ts +4 -0
- package/dist-types/lib/user-facing/layers.d.ts +43 -0
- package/dist-types/lib/user-facing/properties-panel/constants.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +5 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +22 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +12 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +44 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +114 -0
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +6 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +253 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.test-d.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/props-panel-utils.d.ts +3 -0
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +33 -0
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +52 -0
- package/dist-types/lib/user-facing/sb-provider.d.ts +12 -0
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +6 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +17 -0
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +2 -0
- package/dist-types/lib/user-facing/state/types.d.ts +17 -0
- package/dist-types/lib/user-facing/styling/color-utils.d.ts +13 -0
- package/dist-types/lib/user-facing/styling/colors.d.ts +67 -0
- package/dist-types/lib/user-facing/styling/style-as-class.d.ts +1 -0
- package/dist-types/lib/user-facing/styling/styles.d.ts +4 -0
- package/dist-types/lib/user-facing/styling/widget-label-styles.d.ts +11 -0
- package/dist-types/lib/user-facing/themes/classnames.d.ts +72 -0
- package/dist-types/lib/user-facing/themes/constants.d.ts +80 -0
- package/dist-types/lib/user-facing/themes/default-theme.d.ts +8 -0
- package/dist-types/lib/user-facing/themes/generate-border-css.d.ts +25 -0
- package/dist-types/lib/user-facing/themes/generate-border-styles.d.ts +15 -0
- package/dist-types/lib/user-facing/themes/generate-class-name.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generate-colors.d.ts +45 -0
- package/dist-types/lib/user-facing/themes/generate-theme.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generate-typographies.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/button-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/container-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/datepicker-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/dropdown-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/editor-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-component-styles.d.ts +16 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-padding-style.d.ts +19 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/icon-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/input-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/paginator-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/popper-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/styles-utils.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/text-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/theme-styles.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/utils.d.ts +23 -0
- package/dist-types/lib/user-facing/themes/index.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/layers.d.ts +6 -0
- package/dist-types/lib/user-facing/themes/padding-constants.d.ts +10 -0
- package/dist-types/lib/user-facing/themes/typeface-constants.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/typefaces/utils.d.ts +28 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.d.ts +33 -0
- package/dist-types/lib/user-facing/themes/typeography/use-typography-styling.d.ts +15 -0
- package/dist-types/lib/user-facing/themes/typography-constants.d.ts +34 -0
- package/dist-types/lib/user-facing/themes/utils.d.ts +16 -0
- package/dist-types/lib/user-facing/types.d.ts +22 -0
- package/dist-types/lib/user-facing/utils/form.d.ts +10 -0
- package/dist-types/lib/utils/clean-object.d.ts +5 -0
- package/dist-types/lib/utils/fast-clone.d.ts +1 -0
- package/dist-types/lib/utils/generate-id.d.ts +1 -0
- package/dist-types/lib/utils/is-user-on-mac.d.ts +1 -0
- package/dist-types/lib/utils/is-widget-grid.d.ts +2 -0
- package/dist-types/lib/utils/is-widget-vstack.d.ts +2 -0
- package/dist-types/lib/utils/shallow-equal.d.ts +1 -0
- package/dist-types/lib/utils/widget-wrapper-naming.d.ts +6 -0
- package/dist-types/main.d.ts +1 -0
- package/package.json +151 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableManager } from "./table-manager.js";
|
|
3
|
+
import type { InsertRowOptions } from "./constants.js";
|
|
4
|
+
import type { ColumnFilter, ColumnProperties, ReactTableColumnProps, TableWidgetProps } from "./types.js";
|
|
5
|
+
interface TableWidgetState {
|
|
6
|
+
isSaving: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class TableWidget extends React.Component<TableWidgetProps, TableWidgetState> {
|
|
9
|
+
customEditValidation: Record<string, undefined | string>;
|
|
10
|
+
customEditMessage: Record<string, undefined | string>;
|
|
11
|
+
editOptions: Record<string, undefined | string | Array<string | {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}>>;
|
|
15
|
+
tableElement: null | HTMLElement;
|
|
16
|
+
tableScroller?: null | HTMLElement;
|
|
17
|
+
dropdownValueToLabelMaps: Record<string, Record<string, string>>;
|
|
18
|
+
totalRowsInserted: number;
|
|
19
|
+
suppressLoading: boolean;
|
|
20
|
+
tableManager: TableManager;
|
|
21
|
+
state: TableWidgetState;
|
|
22
|
+
currentCellFocus: {
|
|
23
|
+
row: number;
|
|
24
|
+
columnId: string;
|
|
25
|
+
}[];
|
|
26
|
+
eventListenerController: AbortController | undefined;
|
|
27
|
+
componentDidMount(): void;
|
|
28
|
+
componentDidUpdate(): void;
|
|
29
|
+
addEventListeners(): void;
|
|
30
|
+
componentWillUnmount(): void;
|
|
31
|
+
getDisplayedValueForEditCell: ({ columnId, rawValue, displayedValue, useLabelAsDisplayValue, }: {
|
|
32
|
+
columnId: string;
|
|
33
|
+
rawValue: string;
|
|
34
|
+
displayedValue?: string;
|
|
35
|
+
useLabelAsDisplayValue?: boolean;
|
|
36
|
+
}) => string | undefined;
|
|
37
|
+
previousColumnsString: string;
|
|
38
|
+
previousColumns: ReactTableColumnProps[];
|
|
39
|
+
getReactTableColumns(): ReactTableColumnProps[];
|
|
40
|
+
static transformData: (tableData: Array<Record<string, unknown>>, filteredOrderMap: Array<number>, columns: ReactTableColumnProps[], editOverrides: Record<number, Record<string, {
|
|
41
|
+
value: unknown;
|
|
42
|
+
validationErrors?: Array<string>;
|
|
43
|
+
}>>) => {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}[];
|
|
46
|
+
static getParsedComputedValues(value: string | Array<unknown>): unknown[];
|
|
47
|
+
getEmptyRow: () => {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
getSelectedRow: (filteredTableData?: Array<Record<string, unknown>>, selectedRowIndex?: number) => {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
updateDefaultSelectedRow: (filteredTableData: Array<Record<string, unknown>> | undefined) => void;
|
|
54
|
+
getSelectedRowIndexes: (selectedRowIndices: string) => number[];
|
|
55
|
+
getComputedSelectedRowIndices: () => number[];
|
|
56
|
+
getOriginalRowIndex: (index?: number) => number;
|
|
57
|
+
getCurrentRowIndex: (originalIndex: number) => number;
|
|
58
|
+
getIsRowEdited: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
59
|
+
getIsRowInserted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
60
|
+
getCellBackground: (currentRowIndex: number, columnId: string) => any;
|
|
61
|
+
getIsLoading: () => boolean;
|
|
62
|
+
getDropdownOptionsLoading: () => boolean;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
|
+
handleReorderColumn: (columnOrder: string[]) => void;
|
|
65
|
+
handleColumnSorting: (column: string, asc: boolean) => void;
|
|
66
|
+
handleResizeColumn: (columnSizeMap: {
|
|
67
|
+
[key: string]: number;
|
|
68
|
+
}) => void;
|
|
69
|
+
handleSearchTable: (searchKey: any) => void;
|
|
70
|
+
assignTagColors(tableData: Array<Record<string, unknown>>, columns: ReactTableColumnProps[]): void;
|
|
71
|
+
selectRows: (rows?: "ALL" | "NONE") => void;
|
|
72
|
+
handleRowSelect: (index: number, shiftKey?: boolean) => void;
|
|
73
|
+
getRowContext: (idx?: number) => {
|
|
74
|
+
row: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
rowIndex: number | undefined;
|
|
78
|
+
currentRow: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
handleRowClick: (_rowData: Record<string, unknown>, index: number) => void;
|
|
83
|
+
updatePageNumber: (pageNo: number) => void;
|
|
84
|
+
handleNextPageClick: () => void;
|
|
85
|
+
handlePrevPageClick: () => void;
|
|
86
|
+
resetSelectedRowIndex: () => void;
|
|
87
|
+
handleSetColumnFilter: (columnId: string, filter: ColumnFilter) => void;
|
|
88
|
+
setCurrentCellFocus: (focus: {
|
|
89
|
+
row: number;
|
|
90
|
+
columnId: string;
|
|
91
|
+
}[]) => void;
|
|
92
|
+
clearCellFocus: () => void;
|
|
93
|
+
handleClickOutside: () => void;
|
|
94
|
+
getTopVisibleIndex: () => number;
|
|
95
|
+
getBottomVisibleIndex: () => number;
|
|
96
|
+
handlePaste: (event: Event) => void;
|
|
97
|
+
handleCopy: (event: Event) => void;
|
|
98
|
+
handleKeyDown: (event: React.KeyboardEvent) => void;
|
|
99
|
+
handleEditStart: (rowIndex: number, columnId: string, startingValue: string) => void;
|
|
100
|
+
getCellValue: (originalRowIndex: number, columnId: string, includeEdits?: boolean) => unknown;
|
|
101
|
+
handleOneClickEdit: (columnProperties: ColumnProperties, row: number, newValue: unknown) => void;
|
|
102
|
+
handleEditChange: (value: any, dropdownOptions?: Array<{
|
|
103
|
+
label: string;
|
|
104
|
+
value: string;
|
|
105
|
+
}>) => void;
|
|
106
|
+
debouncedEditChange: import("lodash").DebouncedFunc<(value: any, dropdownOptions?: Array<{
|
|
107
|
+
label: string;
|
|
108
|
+
value: string;
|
|
109
|
+
}>) => void>;
|
|
110
|
+
onDropdownEdit: (columnId: string, selectedOption: {
|
|
111
|
+
label: string;
|
|
112
|
+
value: string;
|
|
113
|
+
}) => void;
|
|
114
|
+
onEditStop: (columnProperties: ColumnProperties, currentRowIndex: number, editStopProps: {
|
|
115
|
+
shouldSave: boolean;
|
|
116
|
+
value?: any;
|
|
117
|
+
validationErrors?: Array<string>;
|
|
118
|
+
overrideEditFocus?: {
|
|
119
|
+
row: number;
|
|
120
|
+
columnId: string;
|
|
121
|
+
};
|
|
122
|
+
dropdownOption?: {
|
|
123
|
+
label: string;
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
126
|
+
}) => void;
|
|
127
|
+
handleEditStop: ({ shouldSave, value, validationErrors, overrideEditFocus, dropdownOption, }: {
|
|
128
|
+
shouldSave: boolean;
|
|
129
|
+
value?: any;
|
|
130
|
+
validationErrors?: Array<string>;
|
|
131
|
+
overrideEditFocus?: {
|
|
132
|
+
row: number;
|
|
133
|
+
columnId: string;
|
|
134
|
+
};
|
|
135
|
+
dropdownOption?: {
|
|
136
|
+
label: string;
|
|
137
|
+
value: string;
|
|
138
|
+
};
|
|
139
|
+
}) => void;
|
|
140
|
+
handleEditCancel: () => void;
|
|
141
|
+
handleEditSave: () => void;
|
|
142
|
+
handleRowDeletion: (currentIndices: number[]) => void;
|
|
143
|
+
getIsRowDeleted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
144
|
+
insertRow: (defaultRow: Record<string, any>, validationErrors: Record<string, string[]>, options?: InsertRowOptions) => number;
|
|
145
|
+
handleRowInsertion: (options?: InsertRowOptions) => void;
|
|
146
|
+
getTableScroller: () => HTMLElement | null | undefined;
|
|
147
|
+
}
|
|
148
|
+
export default TableWidget;
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import type { IconPosition } from "../../icons/constants";
|
|
2
|
+
import type { Dim, DimModes } from "@superblocksteam/library-shared";
|
|
3
|
+
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare enum PaginationTypes {
|
|
5
|
+
NONE = "NONE",
|
|
6
|
+
CLIENT_SIDE = "CLIENT_SIDE",
|
|
7
|
+
SERVER_SIDE = "SERVER_SIDE"
|
|
8
|
+
}
|
|
9
|
+
export interface TableFilters {
|
|
10
|
+
byColumn?: {
|
|
11
|
+
[column: string]: ColumnFilter;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface ColumnFilter {
|
|
15
|
+
byValue?: FilterByValue;
|
|
16
|
+
condition?: Condition;
|
|
17
|
+
}
|
|
18
|
+
interface FilterByValue {
|
|
19
|
+
excluded?: any[];
|
|
20
|
+
}
|
|
21
|
+
type Condition = Condition0 | Condition1 | Condition2;
|
|
22
|
+
export type ConditionType = Condition["type"];
|
|
23
|
+
export declare enum Condition0Type {
|
|
24
|
+
all = "all",
|
|
25
|
+
isEmpty = "isEmpty",
|
|
26
|
+
isNotEmpty = "isNotEmpty",
|
|
27
|
+
isTrue = "isTrue",
|
|
28
|
+
isFalse = "isFalse"
|
|
29
|
+
}
|
|
30
|
+
export declare enum Condition1Type {
|
|
31
|
+
textIs = "textIs",
|
|
32
|
+
textContains = "textContains",
|
|
33
|
+
textDoesNotContain = "textDoesNotContain",
|
|
34
|
+
textStartsWith = "textStartsWith",
|
|
35
|
+
textEndsWith = "textEndsWith",
|
|
36
|
+
isEqualTo = "isEqualTo",
|
|
37
|
+
isNotEqualTo = "isNotEqualTo",
|
|
38
|
+
isLessThan = "isLessThan",
|
|
39
|
+
isLessThanOrEqualTo = "isLessThanOrEqualTo",
|
|
40
|
+
isGreaterThan = "isGreaterThan",
|
|
41
|
+
isGreaterThanOrEqualTo = "isGreaterThanOrEqualTo",
|
|
42
|
+
dateIs = "dateIs",
|
|
43
|
+
dateIsBefore = "dateIsBefore",
|
|
44
|
+
dateIsAfter = "dateIsAfter"
|
|
45
|
+
}
|
|
46
|
+
export declare enum Condition2Type {
|
|
47
|
+
isBetween = "isBetween",
|
|
48
|
+
dateIsBetween = "dateIsBetween"
|
|
49
|
+
}
|
|
50
|
+
interface Condition0 {
|
|
51
|
+
type: Condition0Type;
|
|
52
|
+
}
|
|
53
|
+
interface Condition1 {
|
|
54
|
+
type: Condition1Type;
|
|
55
|
+
param: any;
|
|
56
|
+
}
|
|
57
|
+
interface Condition2 {
|
|
58
|
+
type: Condition2Type;
|
|
59
|
+
param1: any;
|
|
60
|
+
param2: any;
|
|
61
|
+
}
|
|
62
|
+
export declare const CompactMode: {
|
|
63
|
+
readonly SHORT: "SHORT";
|
|
64
|
+
readonly DEFAULT: "DEFAULT";
|
|
65
|
+
readonly TALL: "TALL";
|
|
66
|
+
readonly VERY_SHORT: "VERY_SHORT";
|
|
67
|
+
};
|
|
68
|
+
export type CompactMode = (typeof CompactMode)[keyof typeof CompactMode];
|
|
69
|
+
export declare enum CellAlignmentTypes {
|
|
70
|
+
LEFT = "LEFT",
|
|
71
|
+
RIGHT = "RIGHT",
|
|
72
|
+
CENTER = "CENTER"
|
|
73
|
+
}
|
|
74
|
+
export declare enum VerticalAlignmentTypes {
|
|
75
|
+
TOP = "TOP",
|
|
76
|
+
BOTTOM = "BOTTOM",
|
|
77
|
+
CENTER = "CENTER"
|
|
78
|
+
}
|
|
79
|
+
export declare enum TextSizes {
|
|
80
|
+
HEADING1 = "HEADING1",
|
|
81
|
+
HEADING2 = "HEADING2",
|
|
82
|
+
HEADING3 = "HEADING3",
|
|
83
|
+
PARAGRAPH = "PARAGRAPH",
|
|
84
|
+
PARAGRAPH2 = "PARAGRAPH2"
|
|
85
|
+
}
|
|
86
|
+
export declare enum EditInputType {
|
|
87
|
+
Text = "TEXT",
|
|
88
|
+
Number = "NUMBER",
|
|
89
|
+
Email = "EMAIL",
|
|
90
|
+
Dropdown = "DROPDOWN",
|
|
91
|
+
Checkbox = "CHECKBOX",
|
|
92
|
+
Date = "DATE"
|
|
93
|
+
}
|
|
94
|
+
export declare enum BooleanStyleFalse {
|
|
95
|
+
EMPTY = "EMPTY",
|
|
96
|
+
CLOSE = "CLOSE",
|
|
97
|
+
MINUS = "MINUS",
|
|
98
|
+
EMPTY_CHECKBOX = "EMPTY_CHECKBOX"
|
|
99
|
+
}
|
|
100
|
+
export declare enum ImageSize {
|
|
101
|
+
Fixed = "FIXED",
|
|
102
|
+
Fit = "FIT",
|
|
103
|
+
Cover = "COVER",
|
|
104
|
+
Grow = "GROW"
|
|
105
|
+
}
|
|
106
|
+
export declare enum IconSize {
|
|
107
|
+
XXS = "extraExtraSmall",
|
|
108
|
+
XS = "extraSmall",
|
|
109
|
+
SMALL = "small",
|
|
110
|
+
MEDIUM = "medium",
|
|
111
|
+
LARGE = "large",
|
|
112
|
+
XL = "extraLarge",
|
|
113
|
+
XXL = "extraExtraLarge",
|
|
114
|
+
XXXL = "extraExtraExtraLarge"
|
|
115
|
+
}
|
|
116
|
+
export type TableInserts = {
|
|
117
|
+
insertedRowsById?: Record<number, Record<string, unknown>>;
|
|
118
|
+
insertedRowIdsByIndex?: Record<number, Array<number>>;
|
|
119
|
+
insertedRowValidations?: Record<number, Record<string, undefined | string[]>>;
|
|
120
|
+
};
|
|
121
|
+
export type RowContext = {
|
|
122
|
+
row: undefined | Record<string, unknown>;
|
|
123
|
+
rowIndex: undefined | number;
|
|
124
|
+
currentRow: undefined | Record<string, unknown>;
|
|
125
|
+
};
|
|
126
|
+
export type ColumnContext = {
|
|
127
|
+
value: any;
|
|
128
|
+
currentRowIndex: number;
|
|
129
|
+
currentRow: undefined | Record<string, unknown>;
|
|
130
|
+
};
|
|
131
|
+
interface TableFunctions {
|
|
132
|
+
setSelectedRowData: (data: {
|
|
133
|
+
selectedRowIndex: number;
|
|
134
|
+
selectedRow?: Record<string, unknown>;
|
|
135
|
+
selectedRowIndices?: number[];
|
|
136
|
+
selectedRows?: Array<Record<string, unknown>>;
|
|
137
|
+
}, rowContext: RowContext, triggerEventHandlers: boolean) => void;
|
|
138
|
+
setPageNo: (value: number, rowContext: RowContext, triggerEventHandlers?: boolean) => void;
|
|
139
|
+
setTableFilters: (columnId: string, filter: ColumnFilter, rowContext: RowContext) => void;
|
|
140
|
+
setColumnOrder: (value: string[]) => void;
|
|
141
|
+
setSortedColumn: (value: undefined | TableSortColumn) => void;
|
|
142
|
+
setColumnSizeMap: (value: {
|
|
143
|
+
[key: string]: number;
|
|
144
|
+
}) => void;
|
|
145
|
+
setSearchText: (value: string, context: RowContext) => void;
|
|
146
|
+
updateTagColorAssignment: (value: TagsColorAssignment) => void;
|
|
147
|
+
onRowClicked: (context: RowContext, onComplete?: () => void) => void;
|
|
148
|
+
selectAllRows: (rowIndices: number[], rows: Array<Record<string, unknown>>, rowContext: RowContext) => void;
|
|
149
|
+
deselectAllRows: (rowContext: RowContext) => void;
|
|
150
|
+
setCurrentCellFocus: (focus: undefined | {
|
|
151
|
+
row: number;
|
|
152
|
+
columnId: string;
|
|
153
|
+
}[]) => void;
|
|
154
|
+
setCurrentEditFocus: (focus: undefined | {
|
|
155
|
+
row: number;
|
|
156
|
+
columnId: string;
|
|
157
|
+
}, editValue?: string) => void;
|
|
158
|
+
cancelChanges: () => void;
|
|
159
|
+
saveChanges: (onComplete: () => void) => void;
|
|
160
|
+
updateProperties: (updates: Record<string, any>) => void;
|
|
161
|
+
onRowsDeleted: (rowIndices: number[]) => void;
|
|
162
|
+
onRowInserted: (rowContext: RowContext) => void;
|
|
163
|
+
}
|
|
164
|
+
export declare const ColumnType: {
|
|
165
|
+
readonly DATE: "date";
|
|
166
|
+
readonly VIDEO: "video";
|
|
167
|
+
readonly IMAGE: "image";
|
|
168
|
+
readonly TEXT: "text";
|
|
169
|
+
readonly NUMBER: "number";
|
|
170
|
+
readonly CURRENCY: "currency";
|
|
171
|
+
readonly PERCENTAGE: "percentage";
|
|
172
|
+
readonly BOOLEAN: "boolean";
|
|
173
|
+
readonly TAGS: "tags";
|
|
174
|
+
readonly BUTTON: "button";
|
|
175
|
+
readonly EMAIL: "email";
|
|
176
|
+
readonly LINK: "link";
|
|
177
|
+
};
|
|
178
|
+
export type ColumnType = (typeof ColumnType)[keyof typeof ColumnType];
|
|
179
|
+
export interface TableStyles {
|
|
180
|
+
cellBackground?: string;
|
|
181
|
+
textColor?: string;
|
|
182
|
+
textSize?: TextSize;
|
|
183
|
+
fontStyle?: string;
|
|
184
|
+
horizontalAlign?: CellAlignment;
|
|
185
|
+
verticalAlign?: VerticalAlignment;
|
|
186
|
+
}
|
|
187
|
+
export type Pagination = keyof typeof PaginationTypes;
|
|
188
|
+
type CellAlignment = keyof typeof CellAlignmentTypes;
|
|
189
|
+
type VerticalAlignment = keyof typeof VerticalAlignmentTypes;
|
|
190
|
+
type TextSize = keyof typeof TextSizes;
|
|
191
|
+
export type SingleCellProperties = ColumnPropertiesForEditing & {
|
|
192
|
+
horizontalAlign?: CellAlignment;
|
|
193
|
+
verticalAlign?: VerticalAlignment;
|
|
194
|
+
textSize?: TextSize;
|
|
195
|
+
fontStyle?: string;
|
|
196
|
+
textColor?: string;
|
|
197
|
+
cellTextStyle?: TextStyleWithVariant;
|
|
198
|
+
cellBackground?: string;
|
|
199
|
+
buttonBackgroundColor?: string;
|
|
200
|
+
buttonVariant?: string;
|
|
201
|
+
buttonLabelColor?: string;
|
|
202
|
+
buttonLabel?: string;
|
|
203
|
+
cellIcon?: string;
|
|
204
|
+
cellIconPosition?: IconPosition;
|
|
205
|
+
linkUrl?: string;
|
|
206
|
+
linkLabel?: string;
|
|
207
|
+
openInNewTab?: boolean;
|
|
208
|
+
isDisabled?: boolean;
|
|
209
|
+
displayedValue?: string;
|
|
210
|
+
textWrap?: boolean;
|
|
211
|
+
dropdownIcon?: string;
|
|
212
|
+
imageBorderRadius?: Dim<DimModes>;
|
|
213
|
+
imageSize?: ImageSize;
|
|
214
|
+
openImageUrl?: boolean;
|
|
215
|
+
inputFormat?: string;
|
|
216
|
+
outputFormat?: string;
|
|
217
|
+
manageTimezone?: boolean;
|
|
218
|
+
timezone?: string;
|
|
219
|
+
displayTimezone?: string;
|
|
220
|
+
};
|
|
221
|
+
interface TableColumnMetaProps {
|
|
222
|
+
isHidden: boolean;
|
|
223
|
+
type: string;
|
|
224
|
+
}
|
|
225
|
+
export interface ReactTableColumnProps {
|
|
226
|
+
id: string;
|
|
227
|
+
Header: string;
|
|
228
|
+
accessor: (data: any) => any;
|
|
229
|
+
width?: number;
|
|
230
|
+
actualFlexWidth?: number;
|
|
231
|
+
minWidth: number;
|
|
232
|
+
draggable: boolean;
|
|
233
|
+
isHidden?: boolean;
|
|
234
|
+
isAscOrder?: boolean;
|
|
235
|
+
metaProperties?: TableColumnMetaProps;
|
|
236
|
+
isDerived?: boolean;
|
|
237
|
+
columnProperties: ColumnProperties;
|
|
238
|
+
Cell: (props: any) => JSX.Element;
|
|
239
|
+
sticky?: string;
|
|
240
|
+
}
|
|
241
|
+
interface ColumnPropertiesForEditing {
|
|
242
|
+
manageTimezone?: boolean;
|
|
243
|
+
timezone?: string;
|
|
244
|
+
displayTimezone?: string;
|
|
245
|
+
dropdownOptions?: string;
|
|
246
|
+
notation?: Intl.NumberFormatOptions["notation"] | "unformatted";
|
|
247
|
+
currency?: string;
|
|
248
|
+
minimumFractionDigits?: number;
|
|
249
|
+
maximumFractionDigits?: number;
|
|
250
|
+
}
|
|
251
|
+
export type TagDisplayConfig = {
|
|
252
|
+
color: string;
|
|
253
|
+
};
|
|
254
|
+
export type ColumnPropertyFunctionArgs = {
|
|
255
|
+
onComplete?: () => void;
|
|
256
|
+
context: ColumnContext | Record<string, unknown>;
|
|
257
|
+
};
|
|
258
|
+
export type ColumnPropertyFunctions = {
|
|
259
|
+
onClick?: (args: ColumnPropertyFunctionArgs) => void;
|
|
260
|
+
onDropdownSearchTextChanged?: (args: ColumnPropertyFunctionArgs) => void;
|
|
261
|
+
onOptionChange?: (args: ColumnPropertyFunctionArgs) => void;
|
|
262
|
+
onFocusOut?: (args: ColumnPropertyFunctionArgs) => void;
|
|
263
|
+
onDateSelected?: (args: ColumnPropertyFunctionArgs) => void;
|
|
264
|
+
onCheckChange?: (args: ColumnPropertyFunctionArgs) => void;
|
|
265
|
+
};
|
|
266
|
+
export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
|
|
267
|
+
id: string;
|
|
268
|
+
label: string;
|
|
269
|
+
columnType: string;
|
|
270
|
+
headerIcon?: string;
|
|
271
|
+
headerIconPosition?: IconPosition;
|
|
272
|
+
isVisible: boolean;
|
|
273
|
+
index: number;
|
|
274
|
+
width: number;
|
|
275
|
+
cellBackground?: string;
|
|
276
|
+
horizontalAlign?: CellAlignment;
|
|
277
|
+
verticalAlign?: VerticalAlignment;
|
|
278
|
+
textSize?: TextSize;
|
|
279
|
+
fontStyle?: string;
|
|
280
|
+
textColor?: string;
|
|
281
|
+
cellProps?: {
|
|
282
|
+
textStyle: TextStyleWithVariant;
|
|
283
|
+
};
|
|
284
|
+
enableFilter?: boolean;
|
|
285
|
+
enableSort?: boolean;
|
|
286
|
+
isDerived: boolean;
|
|
287
|
+
computedValue: string | string[];
|
|
288
|
+
displayedValue?: string | string[];
|
|
289
|
+
buttonLabel?: string;
|
|
290
|
+
buttonStyle?: string;
|
|
291
|
+
buttonVariant?: string;
|
|
292
|
+
buttonLabelColor?: string;
|
|
293
|
+
cellIcon?: string;
|
|
294
|
+
cellIconPosition?: IconPosition;
|
|
295
|
+
isDisabled?: boolean;
|
|
296
|
+
linkUrl?: string;
|
|
297
|
+
linkLabel?: string;
|
|
298
|
+
openInNewTab?: boolean;
|
|
299
|
+
booleanStyleFalse?: BooleanStyleFalse;
|
|
300
|
+
isEditable?: boolean | string;
|
|
301
|
+
isFrozen?: boolean;
|
|
302
|
+
textWrap?: boolean;
|
|
303
|
+
tagDisplayConfig: Record<string, TagDisplayConfig>;
|
|
304
|
+
imageSize?: ImageSize;
|
|
305
|
+
imageBorderRadius?: Dim<DimModes>;
|
|
306
|
+
openImageUrl?: boolean;
|
|
307
|
+
outputFormat?: string | string[];
|
|
308
|
+
inputFormat?: string | string[];
|
|
309
|
+
}
|
|
310
|
+
export type EditProps = ColumnEditConfigs & {
|
|
311
|
+
handleEditStart: () => void;
|
|
312
|
+
handleEditChange: (value: any, dropdownOptions?: Array<{
|
|
313
|
+
label: string;
|
|
314
|
+
value: string;
|
|
315
|
+
}>) => void;
|
|
316
|
+
handleEditStop: (props: {
|
|
317
|
+
shouldSave: boolean;
|
|
318
|
+
value?: any;
|
|
319
|
+
validationErrors?: Array<string>;
|
|
320
|
+
moveFocus?: "UP" | "DOWN" | "LEFT" | "RIGHT";
|
|
321
|
+
overrideEditFocus?: {
|
|
322
|
+
row: number;
|
|
323
|
+
columnId: string;
|
|
324
|
+
};
|
|
325
|
+
dropdownOption?: {
|
|
326
|
+
label: string;
|
|
327
|
+
value: string;
|
|
328
|
+
};
|
|
329
|
+
}) => void;
|
|
330
|
+
handleOneClickEdit: (value: any) => void;
|
|
331
|
+
isEditFocused: boolean;
|
|
332
|
+
isEdited: boolean;
|
|
333
|
+
onDropdownSearchTextChanged?: (value: string) => void;
|
|
334
|
+
onDropdownIconChange?: (iconName: string) => void;
|
|
335
|
+
currentEditDropdownSearchText?: string;
|
|
336
|
+
dropdownOptionsLoading?: boolean;
|
|
337
|
+
validationErrors: Array<string>;
|
|
338
|
+
currentEditValue: any;
|
|
339
|
+
};
|
|
340
|
+
type ColumnEditConfigs = {
|
|
341
|
+
editInputType?: string;
|
|
342
|
+
editCustomValidationRule?: string;
|
|
343
|
+
editCustomErrorMessage?: string;
|
|
344
|
+
editMaxLength?: number;
|
|
345
|
+
editMinLength?: number;
|
|
346
|
+
editIsRequired?: boolean;
|
|
347
|
+
editMultiSelect?: boolean;
|
|
348
|
+
allowClearing?: boolean;
|
|
349
|
+
editDropdownClientSideFiltering?: boolean;
|
|
350
|
+
editOptions?: string | Array<string | {
|
|
351
|
+
label: string;
|
|
352
|
+
value: string;
|
|
353
|
+
}>;
|
|
354
|
+
useLabelAsDisplayValue?: boolean;
|
|
355
|
+
transformation?: undefined | {
|
|
356
|
+
label: string;
|
|
357
|
+
value: string;
|
|
358
|
+
};
|
|
359
|
+
editMinDate?: string;
|
|
360
|
+
editMaxDate?: string;
|
|
361
|
+
editTwentyFourHourTime?: boolean;
|
|
362
|
+
defaultValue?: any;
|
|
363
|
+
isEditableOnInsertion?: boolean;
|
|
364
|
+
isRequiredOnInsertion?: boolean;
|
|
365
|
+
};
|
|
366
|
+
export type UnknownRow = Record<string, unknown>;
|
|
367
|
+
export type UnknownRows = Array<UnknownRow>;
|
|
368
|
+
export interface TableSortColumn {
|
|
369
|
+
column: string;
|
|
370
|
+
asc: boolean;
|
|
371
|
+
}
|
|
372
|
+
export interface TagsColorAssignment {
|
|
373
|
+
uniqueTagsCount: number;
|
|
374
|
+
mapping: Record<string, number>;
|
|
375
|
+
}
|
|
376
|
+
export interface TableWidgetProps extends TableFunctions {
|
|
377
|
+
sourceId: string;
|
|
378
|
+
widgetName: string;
|
|
379
|
+
isLoading: boolean;
|
|
380
|
+
defaultSearchText: string;
|
|
381
|
+
searchPlaceholder: string;
|
|
382
|
+
pageSize: number;
|
|
383
|
+
configuredPageSize?: number;
|
|
384
|
+
pageType: Pagination;
|
|
385
|
+
multiRowSelection?: boolean;
|
|
386
|
+
columnOrder?: string[];
|
|
387
|
+
columnSizeMap?: {
|
|
388
|
+
[key: string]: number;
|
|
389
|
+
};
|
|
390
|
+
columns: Record<string, ColumnProperties>;
|
|
391
|
+
sortedColumn?: TableSortColumn;
|
|
392
|
+
defaultSort?: TableSortColumn;
|
|
393
|
+
isDownloadable: boolean;
|
|
394
|
+
isFilterable: boolean;
|
|
395
|
+
showColumnBorders: boolean;
|
|
396
|
+
defaultFilters: string;
|
|
397
|
+
isSearchable: boolean;
|
|
398
|
+
tableHeader: string;
|
|
399
|
+
compactMode: CompactMode;
|
|
400
|
+
enableRowDeletion: boolean;
|
|
401
|
+
enableRowInsertion: boolean;
|
|
402
|
+
maxLinesPerRow?: number;
|
|
403
|
+
cellProps?: {
|
|
404
|
+
textStyle: TextStyleWithVariant;
|
|
405
|
+
};
|
|
406
|
+
headerProps?: {
|
|
407
|
+
textStyle: TextStyleWithVariant;
|
|
408
|
+
};
|
|
409
|
+
columnHeaderProps?: {
|
|
410
|
+
textStyle: TextStyleWithVariant;
|
|
411
|
+
};
|
|
412
|
+
searchProps?: {
|
|
413
|
+
textStyle?: TextStyleWithVariant;
|
|
414
|
+
border?: PerSideBorder;
|
|
415
|
+
borderRadius?: PerCornerBorderRadius;
|
|
416
|
+
backgroundColor?: string;
|
|
417
|
+
};
|
|
418
|
+
selectedRowBackgroundColor?: string;
|
|
419
|
+
backgroundColor?: string;
|
|
420
|
+
borderRadius?: PerCornerBorderRadius;
|
|
421
|
+
tableData: UnknownRows;
|
|
422
|
+
tableDataWithInserts: UnknownRows;
|
|
423
|
+
tableDataWithInsertsOrderMap: Array<number>;
|
|
424
|
+
defaultSelectedRow?: number | number[];
|
|
425
|
+
canvasScaleFactor: number;
|
|
426
|
+
tagsColorAssignment?: TagsColorAssignment;
|
|
427
|
+
theme: UserAccessibleTheme;
|
|
428
|
+
border: PerSideBorder;
|
|
429
|
+
disableNudge: (disable: boolean) => void;
|
|
430
|
+
filteredTableData?: UnknownRows;
|
|
431
|
+
filteredOrderMap?: Array<number>;
|
|
432
|
+
editedRows?: {
|
|
433
|
+
originalRows: UnknownRows;
|
|
434
|
+
updatedRows: UnknownRows;
|
|
435
|
+
deletedRows: UnknownRows;
|
|
436
|
+
insertedRows: UnknownRows;
|
|
437
|
+
};
|
|
438
|
+
editedRowIndices?: {
|
|
439
|
+
deleted?: {
|
|
440
|
+
absolute: number[];
|
|
441
|
+
relative: number[];
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
allEdits?: UnknownRows;
|
|
445
|
+
validationErrors?: Array<string>;
|
|
446
|
+
searchText: string;
|
|
447
|
+
currentEditDropdownSearchText: string;
|
|
448
|
+
filters?: TableFilters;
|
|
449
|
+
hiddenColumns?: string[];
|
|
450
|
+
columnFreezes?: Record<string, boolean>;
|
|
451
|
+
selectedRowIndex?: number;
|
|
452
|
+
selectedRowIndices: number[];
|
|
453
|
+
selectedRowSchema?: Record<string, unknown>;
|
|
454
|
+
selectedRows: Record<string, unknown>[];
|
|
455
|
+
pageNo: number;
|
|
456
|
+
editOverrides?: Record<number, Record<string, {
|
|
457
|
+
value: unknown;
|
|
458
|
+
validationErrors?: string[];
|
|
459
|
+
}>>;
|
|
460
|
+
currentEditValue?: any;
|
|
461
|
+
currentEditFocus?: {
|
|
462
|
+
row: number;
|
|
463
|
+
columnId: string;
|
|
464
|
+
};
|
|
465
|
+
deletedRowIndices?: Record<number, boolean>;
|
|
466
|
+
inserts?: TableInserts;
|
|
467
|
+
updatedRows?: Record<number, Record<string, unknown>>;
|
|
468
|
+
height?: Dim<DimModes>;
|
|
469
|
+
width?: Dim<DimModes>;
|
|
470
|
+
}
|
|
471
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSticky: (hooks: any) => void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const SbText: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
|
+
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
|
+
text: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
4
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", true>;
|
|
5
|
+
}>;
|
|
6
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ({
|
|
7
|
+
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
8
|
+
textAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").TextAlign, true>;
|
|
9
|
+
verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("./props.js").VerticalAlign, true>;
|
|
10
|
+
wrapText: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
11
|
+
animateLoading: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
12
|
+
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
13
|
+
icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
14
|
+
} & (Omit<{
|
|
15
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
16
|
+
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
17
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
18
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
19
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
20
|
+
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
21
|
+
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
22
|
+
dateInputFormat?: undefined;
|
|
23
|
+
dateOutputFormat?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
26
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
27
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
28
|
+
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
29
|
+
dateInputFormat?: undefined;
|
|
30
|
+
dateOutputFormat?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
|
|
33
|
+
dateInputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
34
|
+
dateOutputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
35
|
+
})))>;
|
|
36
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
37
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
38
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
39
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
40
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
41
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
42
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
+
} & {
|
|
44
|
+
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
45
|
+
} & {
|
|
46
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
47
|
+
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
48
|
+
} & {
|
|
49
|
+
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
50
|
+
}>;
|
|
51
|
+
}>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ButtonProps as AntButtonProps } from "antd/lib/button";
|
|
3
|
+
interface ButtonProps extends AntButtonProps {
|
|
4
|
+
width?: string;
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>>;
|
|
8
|
+
export {};
|