@superblocksteam/library 2.0.33 → 2.0.34-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/app-internal.d.ts +4 -0
- package/dist-types/docs-utils/generate-docs-utils.d.ts +42 -0
- package/dist-types/docs-utils/generate-docs.d.ts +2 -0
- package/dist-types/docs-utils/generate-docs.test.d.ts +1 -0
- package/dist-types/edit-mode/base-editor-bridge.d.ts +60 -0
- package/dist-types/edit-mode/collisions-layer.d.ts +3 -0
- package/dist-types/edit-mode/create-component.d.ts +11 -0
- package/dist-types/edit-mode/create-component.test.d.ts +1 -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/get-allowed-children.d.ts +2 -0
- package/dist-types/edit-mode/dnd/grid-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +58 -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 +42 -0
- package/dist-types/edit-mode/dnd/utils.test.d.ts +1 -0
- package/dist-types/edit-mode/duplicated-name-popover.d.ts +7 -0
- package/dist-types/edit-mode/edit-store.d.ts +47 -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/extended-clickable-area.d.ts +8 -0
- package/dist-types/edit-mode/features/ai-store.d.ts +34 -0
- package/dist-types/edit-mode/features/connection-manager.d.ts +9 -0
- package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +67 -0
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +23 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +64 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +45 -0
- package/dist-types/edit-mode/features/resizing-store.d.ts +54 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +95 -0
- package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +59 -0
- package/dist-types/edit-mode/features/ui-store.d.ts +49 -0
- package/dist-types/edit-mode/get-edit-store.d.ts +6 -0
- package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +2 -0
- package/dist-types/edit-mode/identifier-context.d.ts +6 -0
- package/dist-types/edit-mode/iframe-wrappers.d.ts +5 -0
- package/dist-types/edit-mode/import-error-notification.d.ts +1 -0
- package/dist-types/edit-mode/interaction-layer/interaction-add-section-button.d.ts +4 -0
- package/dist-types/edit-mode/interaction-layer/interaction-layer.d.ts +11 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-actions.d.ts +9 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-handles.d.ts +7 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-name-pill.d.ts +13 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect.d.ts +49 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +8 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +2 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.test.d.ts +1 -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/mobx-sync/mobx-editor-sync.test.d.ts +1 -0
- package/dist-types/edit-mode/noop-editor-bridge.d.ts +1 -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 +19 -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 +19 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +40 -0
- package/dist-types/edit-mode/vite.d.ts +4 -0
- package/dist-types/internal-testing/components/api.d.ts +3 -0
- package/dist-types/internal-testing/components/broken-app.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/form.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/import-error.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 +3 -0
- package/dist-types/internal-testing/components/section-column.d.ts +1 -0
- package/dist-types/internal-testing/components/slideout.d.ts +3 -0
- package/dist-types/internal-testing/components/switch.d.ts +1 -0
- package/dist-types/internal-testing/components/table.d.ts +3 -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-component-min-size.d.ts +29 -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-key-pressed.d.ts +1 -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 +44 -0
- package/dist-types/lib/internal-details/actions-context.d.ts +9 -0
- package/dist-types/lib/internal-details/app-wrappers.d.ts +5 -0
- package/dist-types/lib/internal-details/component-info-context.d.ts +10 -0
- package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +10 -0
- package/dist-types/lib/internal-details/css-constants.d.ts +4 -0
- package/dist-types/lib/internal-details/entities-state.d.ts +11 -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/external-stack-child.d.ts +13 -0
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +8 -0
- package/dist-types/lib/internal-details/internal-components/common.d.ts +13 -0
- package/dist-types/lib/internal-details/internal-components/error-boundary/index.d.ts +18 -0
- package/dist-types/lib/internal-details/internal-components/route-load-error.d.ts +1 -0
- package/dist-types/lib/internal-details/is-edit-mode.d.ts +1 -0
- package/dist-types/lib/internal-details/is-sb-component.d.ts +11 -0
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +91 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.test.d.ts +1 -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/binding-strings/transform-bindings.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +22 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.test.d.ts +6 -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 +3 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +26 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +96 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.test.d.ts +1 -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 +8 -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/sanitize-object.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +36 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.test.d.ts +1 -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 +51 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +79 -0
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +62 -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 +38 -0
- package/dist-types/lib/internal-details/lib/features/type-defs-utils.d.ts +3 -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 +35 -0
- package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +11 -0
- package/dist-types/lib/internal-details/lib/throttle.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +298 -0
- package/dist-types/lib/internal-details/location-store.d.ts +13 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +11 -0
- package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -0
- package/dist-types/lib/internal-details/routing.d.ts +2 -0
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +98 -0
- package/dist-types/lib/internal-details/sb-wrapper.test.d.ts +1 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +11 -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/scope/types.d.ts +48 -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/internal-details/utils/is-local-link.d.ts +1 -0
- package/dist-types/lib/internal-details/utils/navigation.d.ts +20 -0
- package/dist-types/lib/tracing/context-utils.d.ts +4 -0
- package/dist-types/lib/tracing/early-console-buffer.d.ts +21 -0
- package/dist-types/lib/tracing/logs.d.ts +11 -0
- package/dist-types/lib/triggers/base.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +12 -0
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +3 -0
- package/dist-types/lib/triggers/implementations/call-function.d.ts +15 -0
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +12 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/navigate/utils.d.ts +2 -0
- package/dist-types/lib/triggers/implementations/run-js.d.ts +11 -0
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +13 -0
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +10 -0
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +13 -0
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +13 -0
- package/dist-types/lib/triggers/registry.d.ts +5 -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 +47 -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/components/video.d.ts +19 -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 +21 -0
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +8 -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/format-utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +20 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/button/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +81 -0
- package/dist-types/lib/user-facing/components/button/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +9 -0
- package/dist-types/lib/user-facing/components/checkbox/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +93 -0
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +49 -0
- package/dist-types/lib/user-facing/components/checkbox/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/column/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/column/index.d.ts +73 -0
- package/dist-types/lib/user-facing/components/column/props.d.ts +36 -0
- package/dist-types/lib/user-facing/components/container/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/container/index.d.ts +88 -0
- package/dist-types/lib/user-facing/components/container/props.d.ts +46 -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 +1 -0
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +45 -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 +36 -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/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +141 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +74 -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 +43 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +35 -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/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +150 -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/normalize-values.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +79 -0
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +88 -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/calculate-row-positions.test.d.ts +1 -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 +43 -0
- package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +5 -0
- package/dist-types/lib/user-facing/components/icon/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/icon/index.d.ts +47 -0
- package/dist-types/lib/user-facing/components/icon/props.d.ts +28 -0
- package/dist-types/lib/user-facing/components/image/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/image/image-component.d.ts +40 -0
- package/dist-types/lib/user-facing/components/image/index.d.ts +65 -0
- package/dist-types/lib/user-facing/components/image/props.d.ts +43 -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 +4 -0
- package/dist-types/lib/user-facing/components/input/derived.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/input/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/input/index.d.ts +187 -0
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +58 -0
- package/dist-types/lib/user-facing/components/input/props.d.ts +98 -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/input/utils.test.d.ts +1 -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/editor.d.ts +3 -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/editor-config.d.ts +2 -0
- package/dist-types/lib/user-facing/components/modal/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +85 -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 +45 -0
- package/dist-types/lib/user-facing/components/page/editor.d.ts +2 -0
- package/dist-types/lib/user-facing/components/page/index.d.ts +39 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +22 -0
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +3 -0
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
- package/dist-types/lib/user-facing/components/section/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +49 -0
- package/dist-types/lib/user-facing/components/section/props.d.ts +28 -0
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/components/slideout/editor-config.d.ts +2 -0
- package/dist-types/lib/user-facing/components/slideout/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +85 -0
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
- package/dist-types/lib/user-facing/components/stack/index.d.ts +69 -0
- package/dist-types/lib/user-facing/components/stack/styles.d.ts +11 -0
- package/dist-types/lib/user-facing/components/switch/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/switch/index.d.ts +95 -0
- package/dist-types/lib/user-facing/components/switch/props.d.ts +50 -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 +278 -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 +63 -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 +91 -0
- package/dist-types/lib/user-facing/components/table/default-table-data.d.ts +71 -0
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +721 -0
- package/dist-types/lib/user-facing/components/table/props.d.ts +364 -0
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +101 -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 +73 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +148 -0
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +149 -0
- package/dist-types/lib/user-facing/components/table/types.d.ts +447 -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/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/text/index.d.ts +111 -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 +67 -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 +26 -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 +29 -0
- package/dist-types/lib/user-facing/entities/api/props.test.d.ts +1 -0
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +21 -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/error-pages/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/error-pages/error-component.d.ts +17 -0
- package/dist-types/lib/user-facing/error-pages/page-not-found.d.ts +10 -0
- package/dist-types/lib/user-facing/event-flow.d.ts +107 -0
- package/dist-types/lib/user-facing/event-flow.test.d.ts +1 -0
- package/dist-types/lib/user-facing/global-functions.d.ts +25 -0
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
- package/dist-types/lib/user-facing/hooks/use-editor.d.ts +42 -0
- package/dist-types/lib/user-facing/hooks/use-theme.d.ts +3 -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 +42 -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 +9 -0
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/helpers.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +24 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +8 -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 +129 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +2 -0
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +5 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +308 -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-builder.test.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 +34 -0
- package/dist-types/lib/user-facing/sb-provider.d.ts +11 -0
- package/dist-types/lib/user-facing/state/computed.d.ts +2 -0
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +4 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +17 -0
- package/dist-types/lib/user-facing/state/types.d.ts +10 -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 +87 -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-colors.test.d.ts +1 -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/typefaces/utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.d.ts +33 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.test.d.ts +1 -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 +15 -0
- package/dist-types/lib/user-facing/types.d.ts +17 -0
- package/dist-types/lib/user-facing/utils/create-svg-data-uri.d.ts +9 -0
- package/dist-types/lib/user-facing/utils/form.d.ts +10 -0
- package/dist-types/lib/user-facing/utils/notification.d.ts +16 -0
- package/dist-types/lib/utils/children.d.ts +3 -0
- package/dist-types/lib/utils/clean-object.d.ts +5 -0
- package/dist-types/lib/utils/clean-object.test.d.ts +1 -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/get-component-layout.d.ts +3 -0
- package/dist-types/lib/utils/is-component-grid.d.ts +2 -0
- package/dist-types/lib/utils/is-component-stacklike.d.ts +2 -0
- package/dist-types/lib/utils/is-component-type-detached.d.ts +1 -0
- package/dist-types/lib/utils/is-component-vstack.d.ts +2 -0
- package/dist-types/lib/utils/keyboard-shortcuts.d.ts +3 -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/lib/utils.d.ts +4 -0
- package/dist-types/main.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
|
+
import { type BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
|
|
3
|
+
import type { IconPosition } from "../../icons/constants.js";
|
|
4
|
+
import type { ButtonVariant } from "../button/props.js";
|
|
5
|
+
export declare const columnPanelConfig: {
|
|
6
|
+
general: Section<(Record<string, Prop<any, any, undefined>> & ({
|
|
7
|
+
label: Prop<string, false, undefined>;
|
|
8
|
+
} & (Omit<{
|
|
9
|
+
columnType: Prop<ColumnType, true, undefined>;
|
|
10
|
+
}, "columnType"> & ({
|
|
11
|
+
displayedValue: Prop<string, false, [{
|
|
12
|
+
currentRow: Record<string, unknown>;
|
|
13
|
+
}]>;
|
|
14
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
15
|
+
columnType: Prop<undefined, false, undefined>;
|
|
16
|
+
} | {
|
|
17
|
+
displayedValue: Prop<string, false, [{
|
|
18
|
+
currentRow: Record<string, unknown>;
|
|
19
|
+
}]>;
|
|
20
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
21
|
+
columnType: Prop<"text", true, undefined>;
|
|
22
|
+
} | {
|
|
23
|
+
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false, [{
|
|
24
|
+
currentRow: Record<string, unknown>;
|
|
25
|
+
}]>;
|
|
26
|
+
minimumFractionDigits: Prop<number, false, [{
|
|
27
|
+
currentRow: Record<string, unknown>;
|
|
28
|
+
}]>;
|
|
29
|
+
maximumFractionDigits: Prop<number, false, [{
|
|
30
|
+
currentRow: Record<string, unknown>;
|
|
31
|
+
}]>;
|
|
32
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
33
|
+
columnType: Prop<"number", true, undefined>;
|
|
34
|
+
} | {
|
|
35
|
+
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false, [{
|
|
36
|
+
currentRow: Record<string, unknown>;
|
|
37
|
+
}]>;
|
|
38
|
+
minimumFractionDigits: Prop<number, false, [{
|
|
39
|
+
currentRow: Record<string, unknown>;
|
|
40
|
+
}]>;
|
|
41
|
+
maximumFractionDigits: Prop<number, false, [{
|
|
42
|
+
currentRow: Record<string, unknown>;
|
|
43
|
+
}]>;
|
|
44
|
+
currency: Prop<string, true, [{
|
|
45
|
+
currentRow: Record<string, unknown>;
|
|
46
|
+
}]>;
|
|
47
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
48
|
+
columnType: Prop<"currency", true, undefined>;
|
|
49
|
+
} | {
|
|
50
|
+
minimumFractionDigits: Prop<number, false, [{
|
|
51
|
+
currentRow: Record<string, unknown>;
|
|
52
|
+
}]>;
|
|
53
|
+
maximumFractionDigits: Prop<number, false, [{
|
|
54
|
+
currentRow: Record<string, unknown>;
|
|
55
|
+
}]>;
|
|
56
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
57
|
+
columnType: Prop<"percentage", true, undefined>;
|
|
58
|
+
} | {
|
|
59
|
+
openImageUrl: Prop<boolean, true, undefined>;
|
|
60
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
61
|
+
columnType: Prop<"image", true, undefined>;
|
|
62
|
+
} | {
|
|
63
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
64
|
+
columnType: Prop<"video", true, undefined>;
|
|
65
|
+
} | {
|
|
66
|
+
manageTimezone: Prop<boolean, true, [{
|
|
67
|
+
currentRow: Record<string, unknown>;
|
|
68
|
+
}]>;
|
|
69
|
+
inputFormat: Prop<string, false, [{
|
|
70
|
+
currentRow: Record<string, unknown>;
|
|
71
|
+
}]>;
|
|
72
|
+
outputFormat: Prop<string, false, [{
|
|
73
|
+
currentRow: Record<string, unknown>;
|
|
74
|
+
}]>;
|
|
75
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
76
|
+
columnType: Prop<"date", true, undefined>;
|
|
77
|
+
} | {
|
|
78
|
+
buttonLabel: Prop<string, true, [{
|
|
79
|
+
currentRow: Record<string, unknown>;
|
|
80
|
+
}]>;
|
|
81
|
+
isDisabled: Prop<boolean, false, [{
|
|
82
|
+
currentRow: Record<string, unknown>;
|
|
83
|
+
}]>;
|
|
84
|
+
columnType: Prop<"button", true, undefined>;
|
|
85
|
+
} | {
|
|
86
|
+
linkUrl: Prop<string, false, [{
|
|
87
|
+
currentRow: Record<string, unknown>;
|
|
88
|
+
}]>;
|
|
89
|
+
linkLabel: Prop<string, false, [{
|
|
90
|
+
currentRow: Record<string, unknown>;
|
|
91
|
+
}]>;
|
|
92
|
+
columnType: Prop<"link", true, undefined>;
|
|
93
|
+
} | {
|
|
94
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
95
|
+
columnType: Prop<"boolean", true, undefined>;
|
|
96
|
+
} | {
|
|
97
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
98
|
+
columnType: Prop<"tags", true, undefined>;
|
|
99
|
+
} | {
|
|
100
|
+
displayedValue: Prop<string, false, [{
|
|
101
|
+
currentRow: Record<string, unknown>;
|
|
102
|
+
}]>;
|
|
103
|
+
isDerived: Prop<boolean, true, undefined>;
|
|
104
|
+
columnType: Prop<"email", true, undefined>;
|
|
105
|
+
})))) & {
|
|
106
|
+
isVisible: Prop<boolean, true, undefined>;
|
|
107
|
+
}>;
|
|
108
|
+
presentation: Section<(Record<string, Prop<any, any, undefined>> & ({
|
|
109
|
+
headerIcon: Prop<string, false, undefined>;
|
|
110
|
+
headerIconPosition: Prop<IconPosition, true, undefined>;
|
|
111
|
+
} & (Omit<{
|
|
112
|
+
columnType: Prop<ColumnType, false, undefined>;
|
|
113
|
+
}, "columnType"> & ({
|
|
114
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
115
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
116
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
117
|
+
cellBackground: Prop<string, true, undefined>;
|
|
118
|
+
textWrap: Prop<boolean, false, [{
|
|
119
|
+
currentRow: Record<string, unknown>;
|
|
120
|
+
}]>;
|
|
121
|
+
cellIcon: Prop<string, false, [{
|
|
122
|
+
currentRow: Record<string, unknown>;
|
|
123
|
+
}]>;
|
|
124
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
125
|
+
currentRow: Record<string, unknown>;
|
|
126
|
+
}]>;
|
|
127
|
+
columnType: Prop<undefined, false, undefined>;
|
|
128
|
+
} | {
|
|
129
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
130
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
131
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
132
|
+
cellBackground: Prop<string, true, undefined>;
|
|
133
|
+
textWrap: Prop<boolean, false, [{
|
|
134
|
+
currentRow: Record<string, unknown>;
|
|
135
|
+
}]>;
|
|
136
|
+
cellIcon: Prop<string, false, [{
|
|
137
|
+
currentRow: Record<string, unknown>;
|
|
138
|
+
}]>;
|
|
139
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
140
|
+
currentRow: Record<string, unknown>;
|
|
141
|
+
}]>;
|
|
142
|
+
columnType: Prop<"text", true, undefined>;
|
|
143
|
+
} | {
|
|
144
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
145
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
146
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
147
|
+
cellBackground: Prop<string, true, undefined>;
|
|
148
|
+
textWrap: Prop<boolean, false, [{
|
|
149
|
+
currentRow: Record<string, unknown>;
|
|
150
|
+
}]>;
|
|
151
|
+
cellIcon: Prop<string, false, [{
|
|
152
|
+
currentRow: Record<string, unknown>;
|
|
153
|
+
}]>;
|
|
154
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
155
|
+
currentRow: Record<string, unknown>;
|
|
156
|
+
}]>;
|
|
157
|
+
columnType: Prop<"number", true, undefined>;
|
|
158
|
+
} | {
|
|
159
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
160
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
161
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
162
|
+
cellBackground: Prop<string, true, undefined>;
|
|
163
|
+
textWrap: Prop<boolean, false, [{
|
|
164
|
+
currentRow: Record<string, unknown>;
|
|
165
|
+
}]>;
|
|
166
|
+
cellIcon: Prop<string, false, [{
|
|
167
|
+
currentRow: Record<string, unknown>;
|
|
168
|
+
}]>;
|
|
169
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
170
|
+
currentRow: Record<string, unknown>;
|
|
171
|
+
}]>;
|
|
172
|
+
columnType: Prop<"currency", true, undefined>;
|
|
173
|
+
} | {
|
|
174
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
175
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
176
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
177
|
+
cellBackground: Prop<string, true, undefined>;
|
|
178
|
+
textWrap: Prop<boolean, false, [{
|
|
179
|
+
currentRow: Record<string, unknown>;
|
|
180
|
+
}]>;
|
|
181
|
+
cellIcon: Prop<string, false, [{
|
|
182
|
+
currentRow: Record<string, unknown>;
|
|
183
|
+
}]>;
|
|
184
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
185
|
+
currentRow: Record<string, unknown>;
|
|
186
|
+
}]>;
|
|
187
|
+
columnType: Prop<"percentage", true, undefined>;
|
|
188
|
+
} | {
|
|
189
|
+
imageSize: Prop<ImageSize, false, [{
|
|
190
|
+
currentRow: Record<string, unknown>;
|
|
191
|
+
}]>;
|
|
192
|
+
imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, [{
|
|
193
|
+
currentRow: Record<string, unknown>;
|
|
194
|
+
}]>;
|
|
195
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, [{
|
|
196
|
+
currentRow: Record<string, unknown>;
|
|
197
|
+
}]>;
|
|
198
|
+
cellBackground: Prop<string, true, undefined>;
|
|
199
|
+
columnType: Prop<"image", true, undefined>;
|
|
200
|
+
} | {
|
|
201
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
202
|
+
cellBackground: Prop<string, true, undefined>;
|
|
203
|
+
columnType: Prop<"video", true, undefined>;
|
|
204
|
+
} | {
|
|
205
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
206
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
207
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
208
|
+
cellBackground: Prop<string, true, undefined>;
|
|
209
|
+
textWrap: Prop<boolean, false, [{
|
|
210
|
+
currentRow: Record<string, unknown>;
|
|
211
|
+
}]>;
|
|
212
|
+
cellIcon: Prop<string, false, [{
|
|
213
|
+
currentRow: Record<string, unknown>;
|
|
214
|
+
}]>;
|
|
215
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
216
|
+
currentRow: Record<string, unknown>;
|
|
217
|
+
}]>;
|
|
218
|
+
columnType: Prop<"date", true, undefined>;
|
|
219
|
+
} | {
|
|
220
|
+
buttonIcon: Prop<string, false, [{
|
|
221
|
+
currentRow: Record<string, unknown>;
|
|
222
|
+
}]>;
|
|
223
|
+
buttonIconPosition: Prop<IconPosition, true, undefined>;
|
|
224
|
+
buttonVariant: Prop<ButtonVariant, true, [{
|
|
225
|
+
currentRow: Record<string, unknown>;
|
|
226
|
+
}]>;
|
|
227
|
+
buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
228
|
+
buttonBackgroundColor: Prop<string, false, [{
|
|
229
|
+
currentRow: Record<string, unknown>;
|
|
230
|
+
}]>;
|
|
231
|
+
buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true, undefined>;
|
|
232
|
+
columnType: Prop<"button", true, undefined>;
|
|
233
|
+
} | {
|
|
234
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
235
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
236
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
237
|
+
cellBackground: Prop<string, true, undefined>;
|
|
238
|
+
columnType: Prop<"link", true, undefined>;
|
|
239
|
+
} | {
|
|
240
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
241
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
242
|
+
cellBackground: Prop<string, true, undefined>;
|
|
243
|
+
booleanStyleFalse: Prop<BooleanStyleFalse, true, undefined>;
|
|
244
|
+
columnType: Prop<"boolean", true, undefined>;
|
|
245
|
+
} | {
|
|
246
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
247
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
248
|
+
cellBackground: Prop<string, true, undefined>;
|
|
249
|
+
tagsWrap: Prop<boolean, false, [{
|
|
250
|
+
currentRow: Record<string, unknown>;
|
|
251
|
+
}]>;
|
|
252
|
+
tagDisplayConfig: Prop<any, false, undefined>;
|
|
253
|
+
columnType: Prop<"tags", true, undefined>;
|
|
254
|
+
} | {
|
|
255
|
+
horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
256
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
257
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
258
|
+
cellBackground: Prop<string, true, undefined>;
|
|
259
|
+
textWrap: Prop<boolean, false, [{
|
|
260
|
+
currentRow: Record<string, unknown>;
|
|
261
|
+
}]>;
|
|
262
|
+
cellIcon: Prop<string, false, [{
|
|
263
|
+
currentRow: Record<string, unknown>;
|
|
264
|
+
}]>;
|
|
265
|
+
cellIconPosition: Prop<IconPosition, true, [{
|
|
266
|
+
currentRow: Record<string, unknown>;
|
|
267
|
+
}]>;
|
|
268
|
+
columnType: Prop<"email", true, undefined>;
|
|
269
|
+
})))) & {
|
|
270
|
+
isFrozen: Prop<boolean, false, undefined>;
|
|
271
|
+
}>;
|
|
272
|
+
interaction: Section<Record<string, Prop<any, any, undefined>> & Omit<{
|
|
273
|
+
columnType: Prop<ColumnType, false, undefined>;
|
|
274
|
+
}, "onClick" | "columnType"> & {
|
|
275
|
+
columnType: Prop<"button", true, undefined>;
|
|
276
|
+
onClick: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
277
|
+
}>;
|
|
278
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { RowDensity, SingleCellProperties } from "../types.js";
|
|
3
|
+
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
4
|
+
declare const AutoToolTipComponent: (props: {
|
|
5
|
+
isHidden?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
title: string;
|
|
8
|
+
cellProperties: SingleCellProperties;
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
|
+
handleCellFocus?: () => void;
|
|
11
|
+
maxLinesPerRow?: number;
|
|
12
|
+
hasLeftIcon?: boolean;
|
|
13
|
+
hasRightIcon?: boolean;
|
|
14
|
+
isDropdownType?: boolean;
|
|
15
|
+
tableCellTextStyle?: TextStyleWithVariant;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
export default AutoToolTipComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type BooleanIconProps = {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const RadioButtonControlIcons: {
|
|
9
|
+
empty: (_props: BooleanIconProps) => null;
|
|
10
|
+
check: (props: BooleanIconProps) => React.JSX.Element;
|
|
11
|
+
close: (props: BooleanIconProps) => React.JSX.Element;
|
|
12
|
+
minus: (props: BooleanIconProps) => React.JSX.Element;
|
|
13
|
+
empty_checkbox: (props: BooleanIconProps) => React.JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export type RadioButtonIconNames = keyof typeof RadioButtonControlIcons;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableSizes } from "../constants.js";
|
|
3
|
+
import type { ReactTableColumnProps } from "../types.js";
|
|
4
|
+
type Props = {
|
|
5
|
+
columns: ReactTableColumnProps[];
|
|
6
|
+
updateProperty: (property: string, value: any) => void;
|
|
7
|
+
hiddenColumns?: string[];
|
|
8
|
+
tableSizes: TableSizes;
|
|
9
|
+
};
|
|
10
|
+
declare const ColumnsSetting: (props: Props) => React.JSX.Element;
|
|
11
|
+
export default ColumnsSetting;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
|
+
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
import type { RefObject } from "react";
|
|
6
|
+
declare const EditCell: (props: {
|
|
7
|
+
targetCellRef: RefObject<HTMLDivElement>;
|
|
8
|
+
editProps: EditProps;
|
|
9
|
+
value: any;
|
|
10
|
+
tableName: string;
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
|
+
cellProps: TableCellProps;
|
|
13
|
+
theme: UserAccessibleTheme;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export default EditCell;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type SingleCellProperties, type RowDensity, type EditProps } from "../types.js";
|
|
3
|
+
declare const EditCheckboxCell: (props: {
|
|
4
|
+
editProps: EditProps;
|
|
5
|
+
value: any;
|
|
6
|
+
readModeComponent: JSX.Element;
|
|
7
|
+
rowDensity: RowDensity;
|
|
8
|
+
cellProperties: SingleCellProperties;
|
|
9
|
+
isFocused: boolean;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default EditCheckboxCell;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
|
+
import type { Position } from "./edit-utils.js";
|
|
5
|
+
declare const EditDateCell: (props: {
|
|
6
|
+
editProps: EditProps;
|
|
7
|
+
value: any;
|
|
8
|
+
inputPosition: Position;
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
|
+
cellProps: TableCellProps;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export default EditDateCell;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
|
+
import type { Position } from "./edit-utils.js";
|
|
5
|
+
import type { RefObject } from "react";
|
|
6
|
+
declare const EditInputCell: (props: {
|
|
7
|
+
editProps: EditProps;
|
|
8
|
+
value: any;
|
|
9
|
+
targetCellRef: RefObject<HTMLElement>;
|
|
10
|
+
inputPosition: Position;
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
|
+
cellProps: TableCellProps;
|
|
13
|
+
}) => React.JSX.Element | null;
|
|
14
|
+
export default EditInputCell;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TableCellProps } from "../table-utilities.jsx";
|
|
2
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
3
|
+
import type { Position } from "./edit-utils.js";
|
|
4
|
+
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
declare const EditMultiSelectCell: (props: {
|
|
6
|
+
editProps: EditProps;
|
|
7
|
+
value: any;
|
|
8
|
+
inputPosition: Position;
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
|
+
cellProps: TableCellProps;
|
|
11
|
+
theme: UserAccessibleTheme;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
|
+
export default EditMultiSelectCell;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TableCellProps } from "../table-utilities.jsx";
|
|
2
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
3
|
+
import type { Position } from "./edit-utils.js";
|
|
4
|
+
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
declare const EditSingleSelectCell: (props: {
|
|
6
|
+
editProps: EditProps;
|
|
7
|
+
value: any;
|
|
8
|
+
inputPosition: Position;
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
|
+
cellProps: TableCellProps;
|
|
11
|
+
theme: UserAccessibleTheme;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
|
+
export default EditSingleSelectCell;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SingleCellProperties, RowDensity } from "../types.js";
|
|
2
|
+
export type Position = {
|
|
3
|
+
top: undefined | number;
|
|
4
|
+
left: undefined | number;
|
|
5
|
+
width: undefined | number;
|
|
6
|
+
height: undefined | number;
|
|
7
|
+
maxHeight: undefined | number;
|
|
8
|
+
};
|
|
9
|
+
export declare const DEFAULT_ICON_SIZE = 18;
|
|
10
|
+
export declare const DropdownEntireObjectOption = "$$ENTIRE_OBJECT";
|
|
11
|
+
export declare const INVALID_LABEL_MSG = "Invalid label, should be a string";
|
|
12
|
+
export declare const extractDropdownOptions: (options: string | Array<string | Record<string, string>>, transformation?: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}) => Array<{
|
|
16
|
+
label: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}>;
|
|
19
|
+
type Props = {
|
|
20
|
+
$position: Position;
|
|
21
|
+
$rowDensity: RowDensity;
|
|
22
|
+
cellProperties: SingleCellProperties;
|
|
23
|
+
clearable?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const InputCellWrapper: import("styled-components").StyledComponent<"div", any, Props, never>;
|
|
26
|
+
export declare const DropdownCellWrapper: import("styled-components").StyledComponent<"div", any, Props, never>;
|
|
27
|
+
export declare const DateCellWrapper: import("styled-components").StyledComponent<"div", any, Props, never>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RowDensity, type SingleCellProperties } from "../types.js";
|
|
3
|
+
export declare const EditableLinkCell: (props: {
|
|
4
|
+
url: string;
|
|
5
|
+
label: string;
|
|
6
|
+
openInNewTab: boolean | undefined;
|
|
7
|
+
isHidden: boolean;
|
|
8
|
+
isEdited: boolean;
|
|
9
|
+
value: any;
|
|
10
|
+
cellProperties: SingleCellProperties;
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
|
+
isFocused: boolean;
|
|
13
|
+
position: {
|
|
14
|
+
currentRowIndex: number;
|
|
15
|
+
columnId: string;
|
|
16
|
+
};
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
maxLinesPerRow?: number;
|
|
19
|
+
isMultiselecting: boolean;
|
|
20
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ColumnFilter } from "../constants.js";
|
|
3
|
+
import type { ColumnProperties } from "../types.js";
|
|
4
|
+
import type { UserAccessibleTheme, TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
5
|
+
export declare enum FilterPanel {
|
|
6
|
+
ByCondition = "by-condition",
|
|
7
|
+
ByValue = "by-value"
|
|
8
|
+
}
|
|
9
|
+
type SortKey = null | number | boolean | string;
|
|
10
|
+
interface UniqueValue {
|
|
11
|
+
sortKey: SortKey;
|
|
12
|
+
formattedValue: string;
|
|
13
|
+
rawValue: any;
|
|
14
|
+
index: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function getUniqueValues({ columnId, columnProperties, rawTableData, tableCellTextStyle, }: {
|
|
17
|
+
columnId: string;
|
|
18
|
+
columnProperties: ColumnProperties;
|
|
19
|
+
rawTableData: Record<string, unknown>[];
|
|
20
|
+
tableCellTextStyle?: TextStyleWithVariant;
|
|
21
|
+
}): {
|
|
22
|
+
uniqueValuesSorted: UniqueValue[];
|
|
23
|
+
uniqueValuesBySortKey: Map<SortKey, UniqueValue>;
|
|
24
|
+
};
|
|
25
|
+
interface FilterPopoverContentProps {
|
|
26
|
+
columnId: string;
|
|
27
|
+
columnProperties: ColumnProperties;
|
|
28
|
+
rawTableData: Record<string, unknown>[];
|
|
29
|
+
filter: ColumnFilter;
|
|
30
|
+
setFilter: (filter: ColumnFilter) => void;
|
|
31
|
+
expandedPanels: FilterPanel[];
|
|
32
|
+
onCollapsePanelsChange: (keys: string | string[]) => void;
|
|
33
|
+
onClose: () => void;
|
|
34
|
+
theme: UserAccessibleTheme;
|
|
35
|
+
}
|
|
36
|
+
declare const FilterPopoverContent: ({ columnId, columnProperties, rawTableData, filter, setFilter, expandedPanels, onCollapsePanelsChange, onClose, theme, }: FilterPopoverContentProps) => React.JSX.Element;
|
|
37
|
+
export default FilterPopoverContent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableSizes } from "../constants.js";
|
|
3
|
+
interface TableActionIconProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
onSelectMenu: (selected: boolean) => void;
|
|
8
|
+
tableSizes: TableSizes;
|
|
9
|
+
tooltip: string;
|
|
10
|
+
dataTest?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const TableActionIcon: ({ children, icon, onSelectMenu, selected, tableSizes, tooltip, dataTest, }: TableActionIconProps) => React.JSX.Element;
|
|
13
|
+
export default TableActionIcon;
|
package/dist-types/lib/user-facing/components/table/components/table-column-header-button.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ColumnFilter } from "../constants.js";
|
|
3
|
+
import type { ColumnProperties } from "../types.js";
|
|
4
|
+
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
interface TableColumnHeaderBtnProps {
|
|
6
|
+
columnId: string;
|
|
7
|
+
columnProperties: ColumnProperties;
|
|
8
|
+
rawTableData: Record<string, unknown>[];
|
|
9
|
+
filter?: ColumnFilter;
|
|
10
|
+
setFilter: (filter: ColumnFilter) => void;
|
|
11
|
+
hiddenColumns?: string[];
|
|
12
|
+
columnFreezes?: Record<string, boolean>;
|
|
13
|
+
isFilterable: boolean;
|
|
14
|
+
isFrozen?: boolean;
|
|
15
|
+
updateProperty: (property: string, value: any) => void;
|
|
16
|
+
theme: UserAccessibleTheme;
|
|
17
|
+
}
|
|
18
|
+
declare const TableColumnHeaderBtn: ({ columnId, columnProperties, rawTableData, filter, setFilter, updateProperty, hiddenColumns, isFilterable, columnFreezes, isFrozen, theme, }: TableColumnHeaderBtnProps) => React.JSX.Element;
|
|
19
|
+
export default TableColumnHeaderBtn;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableSizes } from "../constants.js";
|
|
3
|
+
import type { ReactTableColumnProps } from "../types.js";
|
|
4
|
+
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
5
|
+
interface TableDataDownloadProps {
|
|
6
|
+
data: Array<Record<string, unknown>>;
|
|
7
|
+
filteredOrderMap: number[] | undefined;
|
|
8
|
+
columns: ReactTableColumnProps[];
|
|
9
|
+
tableSizes: TableSizes;
|
|
10
|
+
widgetName: string;
|
|
11
|
+
header: string;
|
|
12
|
+
tableCellTextStyle?: TextStyleWithVariant;
|
|
13
|
+
}
|
|
14
|
+
declare const TableDataDownload: ({ data, filteredOrderMap, columns, tableSizes, widgetName, header, tableCellTextStyle, }: TableDataDownloadProps) => React.JSX.Element;
|
|
15
|
+
export default TableDataDownload;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { InsertRowOptions, TableSizes } from "../constants.js";
|
|
3
|
+
import type { PaginationType, ReactTableColumnProps } from "../types.js";
|
|
4
|
+
import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
interface TableFooterProps {
|
|
6
|
+
columns: ReactTableColumnProps[];
|
|
7
|
+
count: number;
|
|
8
|
+
currentPageIndex: number;
|
|
9
|
+
nextPageClick: () => void;
|
|
10
|
+
prevPageClick: () => void;
|
|
11
|
+
pageNo: number;
|
|
12
|
+
pageCount: number;
|
|
13
|
+
paginationType: PaginationType;
|
|
14
|
+
tableColumns: ReactTableColumnProps[];
|
|
15
|
+
tableData: Array<Record<string, unknown>>;
|
|
16
|
+
filteredOrderMap: number[] | undefined;
|
|
17
|
+
header: string;
|
|
18
|
+
tableSizes: TableSizes;
|
|
19
|
+
updatePageNo: (pageNo: number) => void;
|
|
20
|
+
isDownloadable: boolean;
|
|
21
|
+
multiRowSelection: boolean;
|
|
22
|
+
selectedRowIndices: number[];
|
|
23
|
+
widgetName: string;
|
|
24
|
+
numEdits: number;
|
|
25
|
+
numEditErrors: number;
|
|
26
|
+
validationMessages?: string[];
|
|
27
|
+
onEditSave: () => void;
|
|
28
|
+
onEditCancel: () => void;
|
|
29
|
+
onRowInsertion: (options?: InsertRowOptions) => void;
|
|
30
|
+
isInsertionEnabled: boolean;
|
|
31
|
+
onRowDeletion: (rowIndices: number[]) => void;
|
|
32
|
+
isDeletionEnabled: boolean;
|
|
33
|
+
isSaving: boolean;
|
|
34
|
+
selectedRowIndex: number | undefined;
|
|
35
|
+
tableCellTextStyle?: TextStyleWithVariant;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
theme: UserAccessibleTheme;
|
|
38
|
+
}
|
|
39
|
+
declare const TableFooter: ({ count, currentPageIndex, nextPageClick, prevPageClick, pageNo, pageCount, paginationType, tableColumns, tableData, filteredOrderMap, header, tableSizes, borderColor, updatePageNo, isDownloadable, multiRowSelection, selectedRowIndices, widgetName, numEdits, numEditErrors, validationMessages, onEditSave, onEditCancel, onRowInsertion, onRowDeletion, isInsertionEnabled, isDeletionEnabled, isSaving, selectedRowIndex, tableCellTextStyle, theme, }: TableFooterProps) => React.JSX.Element;
|
|
40
|
+
export default TableFooter;
|