@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.
Files changed (407) hide show
  1. package/LICENSE.txt +87 -0
  2. package/README.md +108 -0
  3. package/dist/allPaths-CCZMME3l.js +17 -0
  4. package/dist/allPaths-CCZMME3l.js.map +1 -0
  5. package/dist/allPaths-CHXNxDVP.js +17 -0
  6. package/dist/allPaths-CHXNxDVP.js.map +1 -0
  7. package/dist/allPathsLoader-DTWFaGcd.js +22 -0
  8. package/dist/allPathsLoader-DTWFaGcd.js.map +1 -0
  9. package/dist/allPathsLoader-Fr8EhLGp.js +22 -0
  10. package/dist/allPathsLoader-Fr8EhLGp.js.map +1 -0
  11. package/dist/icons-BrNMuu_I.js +40 -0
  12. package/dist/icons-BrNMuu_I.js.map +1 -0
  13. package/dist/index-BxzKdlqH.js +1353 -0
  14. package/dist/index-BxzKdlqH.js.map +1 -0
  15. package/dist/index-DIJYif9G.js +1341 -0
  16. package/dist/index-DIJYif9G.js.map +1 -0
  17. package/dist/index-DIn-fanT.js +1353 -0
  18. package/dist/index-DIn-fanT.js.map +1 -0
  19. package/dist/index-LHtbj0-V.js +1341 -0
  20. package/dist/index-LHtbj0-V.js.map +1 -0
  21. package/dist/index-U0oPeutu.js +189889 -0
  22. package/dist/index-U0oPeutu.js.map +1 -0
  23. package/dist/index.css +34239 -0
  24. package/dist/index.js +164 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/splitPathsBySizeLoader-DHk6oFvg.js +34 -0
  27. package/dist/splitPathsBySizeLoader-DHk6oFvg.js.map +1 -0
  28. package/dist/splitPathsBySizeLoader-PcZVWYaJ.js +34 -0
  29. package/dist/splitPathsBySizeLoader-PcZVWYaJ.js.map +1 -0
  30. package/dist-types/app-internal.d.ts +4 -0
  31. package/dist-types/docs-utils/generate-docs.d.ts +2 -0
  32. package/dist-types/edit-mode/collisions-layer.d.ts +3 -0
  33. package/dist-types/edit-mode/create-component.d.ts +8 -0
  34. package/dist-types/edit-mode/debug-tools.d.ts +11 -0
  35. package/dist-types/edit-mode/dnd/collision-detection.d.ts +3 -0
  36. package/dist-types/edit-mode/dnd/dnd-provider.d.ts +4 -0
  37. package/dist-types/edit-mode/dnd/draggable-widget.d.ts +7 -0
  38. package/dist-types/edit-mode/dnd/drop-layer.d.ts +5 -0
  39. package/dist-types/edit-mode/dnd/droppable-widget.d.ts +10 -0
  40. package/dist-types/edit-mode/dnd/grid-drop.d.ts +4 -0
  41. package/dist-types/edit-mode/dnd/grid-store.d.ts +33 -0
  42. package/dist-types/edit-mode/dnd/grid-utils.d.ts +8 -0
  43. package/dist-types/edit-mode/dnd/handle-grid-drop.d.ts +9 -0
  44. package/dist-types/edit-mode/dnd/handle-stack-drop.d.ts +9 -0
  45. package/dist-types/edit-mode/dnd/hooks/use-component-draggable.d.ts +5 -0
  46. package/dist-types/edit-mode/dnd/hooks/use-component-droppable.d.ts +6 -0
  47. package/dist-types/edit-mode/dnd/hooks/use-handle-dnd-events.d.ts +1 -0
  48. package/dist-types/edit-mode/dnd/hooks/use-widget-node-ref.d.ts +2 -0
  49. package/dist-types/edit-mode/dnd/new-components-drag-layer.d.ts +6 -0
  50. package/dist-types/edit-mode/dnd/stack-drop.d.ts +4 -0
  51. package/dist-types/edit-mode/dnd/stack-store.d.ts +10 -0
  52. package/dist-types/edit-mode/dnd/stack-utils.d.ts +13 -0
  53. package/dist-types/edit-mode/dnd/types.d.ts +45 -0
  54. package/dist-types/edit-mode/dnd/utils.d.ts +13 -0
  55. package/dist-types/edit-mode/duplicated-name-popover.d.ts +7 -0
  56. package/dist-types/edit-mode/edit-store.d.ts +28 -0
  57. package/dist-types/edit-mode/edit-wrapper.d.ts +18 -0
  58. package/dist-types/edit-mode/editor-hotkeys.d.ts +3 -0
  59. package/dist-types/edit-mode/features/connection-manager.d.ts +10 -0
  60. package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +69 -0
  61. package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +17 -0
  62. package/dist-types/edit-mode/features/operation-store.d.ts +49 -0
  63. package/dist-types/edit-mode/features/properties-panel-manager.d.ts +31 -0
  64. package/dist-types/edit-mode/features/resizing-store.d.ts +53 -0
  65. package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +94 -0
  66. package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +55 -0
  67. package/dist-types/edit-mode/features/ui-store.d.ts +41 -0
  68. package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +2 -0
  69. package/dist-types/edit-mode/iframe-wrappers.d.ts +4 -0
  70. package/dist-types/edit-mode/interaction-add-section-button.d.ts +4 -0
  71. package/dist-types/edit-mode/interaction-layer.d.ts +11 -0
  72. package/dist-types/edit-mode/interaction-rect-handles.d.ts +7 -0
  73. package/dist-types/edit-mode/interaction-rect-name-pill.d.ts +13 -0
  74. package/dist-types/edit-mode/interaction-rect.d.ts +44 -0
  75. package/dist-types/edit-mode/interaction-utils.d.ts +4 -0
  76. package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +2 -0
  77. package/dist-types/edit-mode/mobx-sync/deep-observe.d.ts +24 -0
  78. package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.d.ts +23 -0
  79. package/dist-types/edit-mode/properties.d.ts +13 -0
  80. package/dist-types/edit-mode/resize-capabilities.d.ts +5 -0
  81. package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +14 -0
  82. package/dist-types/edit-mode/roots.d.ts +9 -0
  83. package/dist-types/edit-mode/runtime-children.d.ts +14 -0
  84. package/dist-types/edit-mode/sb-component-from-meta.d.ts +2 -0
  85. package/dist-types/edit-mode/source-update-api.d.ts +26 -0
  86. package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +34 -0
  87. package/dist-types/internal-testing/components/api.d.ts +3 -0
  88. package/dist-types/internal-testing/components/button.d.ts +1 -0
  89. package/dist-types/internal-testing/components/checkbox.d.ts +1 -0
  90. package/dist-types/internal-testing/components/container.d.ts +1 -0
  91. package/dist-types/internal-testing/components/date-picker.d.ts +1 -0
  92. package/dist-types/internal-testing/components/dropdown.d.ts +1 -0
  93. package/dist-types/internal-testing/components/icon.d.ts +1 -0
  94. package/dist-types/internal-testing/components/image.d.ts +1 -0
  95. package/dist-types/internal-testing/components/input.d.ts +1 -0
  96. package/dist-types/internal-testing/components/key-value.d.ts +1 -0
  97. package/dist-types/internal-testing/components/modal.d.ts +1 -0
  98. package/dist-types/internal-testing/components/section-column.d.ts +1 -0
  99. package/dist-types/internal-testing/components/switch.d.ts +1 -0
  100. package/dist-types/internal-testing/components/table.d.ts +1 -0
  101. package/dist-types/internal-testing/components/timer.d.ts +3 -0
  102. package/dist-types/internal-testing/components/variable.d.ts +3 -0
  103. package/dist-types/internal-testing/utils.d.ts +5 -0
  104. package/dist-types/internal-testing/widgets.d.ts +2 -0
  105. package/dist-types/lib/hooks/use-alignment-styles.d.ts +9 -0
  106. package/dist-types/lib/hooks/use-cached-value.d.ts +11 -0
  107. package/dist-types/lib/hooks/use-callback-as-ref.d.ts +1 -0
  108. package/dist-types/lib/hooks/use-deep-memo.d.ts +9 -0
  109. package/dist-types/lib/hooks/use-editor-hotkeys.d.ts +3 -0
  110. package/dist-types/lib/hooks/use-element-rect.d.ts +7 -0
  111. package/dist-types/lib/hooks/use-observer-memo.d.ts +14 -0
  112. package/dist-types/lib/hooks/use-observer-memo.test.d.ts +1 -0
  113. package/dist-types/lib/hooks/use-pointer-down-outside.d.ts +15 -0
  114. package/dist-types/lib/hooks/use-stable-effect.d.ts +22 -0
  115. package/dist-types/lib/hooks/use-stable-effect.test.d.ts +1 -0
  116. package/dist-types/lib/index.d.ts +40 -0
  117. package/dist-types/lib/internal-details/actions-context.d.ts +9 -0
  118. package/dist-types/lib/internal-details/component-info-context.d.ts +10 -0
  119. package/dist-types/lib/internal-details/entities-state.d.ts +10 -0
  120. package/dist-types/lib/internal-details/entities.d.ts +5 -0
  121. package/dist-types/lib/internal-details/env.d.ts +1 -0
  122. package/dist-types/lib/internal-details/identifier-normalizer.d.ts +9 -0
  123. package/dist-types/lib/internal-details/is-sb-component.d.ts +7 -0
  124. package/dist-types/lib/internal-details/lib/devtools.d.ts +1 -0
  125. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +97 -0
  126. package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +2 -0
  127. package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +6 -0
  128. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +20 -0
  129. package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +7 -0
  130. package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +2 -0
  131. package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +27 -0
  132. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +83 -0
  133. package/dist-types/lib/internal-details/lib/evaluator/entity-types.d.ts +16 -0
  134. package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +7 -0
  135. package/dist-types/lib/internal-details/lib/evaluator/names.d.ts +7 -0
  136. package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +2 -0
  137. package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +32 -0
  138. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -0
  139. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.test.d.ts +1 -0
  140. package/dist-types/lib/internal-details/lib/features/api-store.d.ts +36 -0
  141. package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +77 -0
  142. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +27 -0
  143. package/dist-types/lib/internal-details/lib/features/injected-features.d.ts +8 -0
  144. package/dist-types/lib/internal-details/lib/features/name-manager.d.ts +36 -0
  145. package/dist-types/lib/internal-details/lib/iframe.d.ts +44 -0
  146. package/dist-types/lib/internal-details/lib/mobx-cached-getter.d.ts +1 -0
  147. package/dist-types/lib/internal-details/lib/resolve-id-singleton.d.ts +4 -0
  148. package/dist-types/lib/internal-details/lib/root-store.d.ts +30 -0
  149. package/dist-types/lib/internal-details/lib/throttle.d.ts +2 -0
  150. package/dist-types/lib/internal-details/lib/types.d.ts +226 -0
  151. package/dist-types/lib/internal-details/reactive-component.d.ts +10 -0
  152. package/dist-types/lib/internal-details/sb-wrapper-notes.d.ts +1 -0
  153. package/dist-types/lib/internal-details/sb-wrapper.d.ts +14 -0
  154. package/dist-types/lib/internal-details/scope/global.d.ts +9 -0
  155. package/dist-types/lib/internal-details/scope/scope-context.d.ts +8 -0
  156. package/dist-types/lib/internal-details/scope/scope.d.ts +12 -0
  157. package/dist-types/lib/internal-details/size.d.ts +1 -0
  158. package/dist-types/lib/internal-details/theme-context.d.ts +8 -0
  159. package/dist-types/lib/internal-details/use-track-runtime-widget.d.ts +15 -0
  160. package/dist-types/lib/sb-trigger.d.ts +53 -0
  161. package/dist-types/lib/triggers/base.d.ts +17 -0
  162. package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +19 -0
  163. package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +21 -0
  164. package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +17 -0
  165. package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +17 -0
  166. package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +20 -0
  167. package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +20 -0
  168. package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +28 -0
  169. package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +23 -0
  170. package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +26 -0
  171. package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +18 -0
  172. package/dist-types/lib/triggers/implementations/run-js.d.ts +18 -0
  173. package/dist-types/lib/triggers/implementations/set-profile.d.ts +17 -0
  174. package/dist-types/lib/triggers/implementations/show-alert.d.ts +22 -0
  175. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +15 -0
  176. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +18 -0
  177. package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +17 -0
  178. package/dist-types/lib/triggers/implementations/trigger-event.d.ts +17 -0
  179. package/dist-types/lib/triggers/registry.d.ts +174 -0
  180. package/dist-types/lib/triggers/run-event-handlers.d.ts +10 -0
  181. package/dist-types/lib/user-facing/component-base/components/autolinked-text.d.ts +8 -0
  182. package/dist-types/lib/user-facing/component-base/components/button.d.ts +46 -0
  183. package/dist-types/lib/user-facing/component-base/components/checkbox.d.ts +12 -0
  184. package/dist-types/lib/user-facing/component-base/components/dropdown-select.d.ts +4 -0
  185. package/dist-types/lib/user-facing/component-base/components/dynamic-svg.d.ts +10 -0
  186. package/dist-types/lib/user-facing/component-base/components/expand-button.d.ts +8 -0
  187. package/dist-types/lib/user-facing/component-base/components/loading-animator.d.ts +4 -0
  188. package/dist-types/lib/user-facing/component-base/components/plain-link.d.ts +1 -0
  189. package/dist-types/lib/user-facing/component-base/components/popper.d.ts +20 -0
  190. package/dist-types/lib/user-facing/component-base/components/search-component.d.ts +19 -0
  191. package/dist-types/lib/user-facing/component-base/components/span-trunc-middle.d.ts +9 -0
  192. package/dist-types/lib/user-facing/component-base/components/switch.d.ts +6 -0
  193. package/dist-types/lib/user-facing/component-base/constants.d.ts +18 -0
  194. package/dist-types/lib/user-facing/component-base/error/error-inline-message.d.ts +36 -0
  195. package/dist-types/lib/user-facing/component-base/error/error-tooltip.d.ts +11 -0
  196. package/dist-types/lib/user-facing/component-base/error/error-utils.d.ts +13 -0
  197. package/dist-types/lib/user-facing/component-base/error/widget-errors-wrapper.d.ts +15 -0
  198. package/dist-types/lib/user-facing/component-base/error-boundary.d.ts +18 -0
  199. package/dist-types/lib/user-facing/component-base/sb-component.d.ts +18 -0
  200. package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +16 -0
  201. package/dist-types/lib/user-facing/component-base/styles/hover-styles.d.ts +10 -0
  202. package/dist-types/lib/user-facing/component-base/styles/input-styles.d.ts +2 -0
  203. package/dist-types/lib/user-facing/component-base/use-passthrough-props.d.ts +6 -0
  204. package/dist-types/lib/user-facing/component-base/utils/format-utils.d.ts +37 -0
  205. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +17 -0
  206. package/dist-types/lib/user-facing/components/button/index.d.ts +37 -0
  207. package/dist-types/lib/user-facing/components/button/props.d.ts +48 -0
  208. package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +9 -0
  209. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +43 -0
  210. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +44 -0
  211. package/dist-types/lib/user-facing/components/checkbox/types.d.ts +19 -0
  212. package/dist-types/lib/user-facing/components/column/index.d.ts +51 -0
  213. package/dist-types/lib/user-facing/components/column/props.d.ts +45 -0
  214. package/dist-types/lib/user-facing/components/container/index.d.ts +63 -0
  215. package/dist-types/lib/user-facing/components/container/props.d.ts +58 -0
  216. package/dist-types/lib/user-facing/components/custom/context.d.ts +11 -0
  217. package/dist-types/lib/user-facing/components/custom/index.d.ts +2 -0
  218. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +27 -0
  219. package/dist-types/lib/user-facing/components/date-picker/constants.d.ts +8 -0
  220. package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +29 -0
  221. package/dist-types/lib/user-facing/components/date-picker/date-picker.d.ts +2 -0
  222. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +63 -0
  223. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +65 -0
  224. package/dist-types/lib/user-facing/components/date-picker/props.test-d.d.ts +1 -0
  225. package/dist-types/lib/user-facing/components/date-picker/side-effects.d.ts +3 -0
  226. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +40 -0
  227. package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +24 -0
  228. package/dist-types/lib/user-facing/components/dropdown/constants.d.ts +5 -0
  229. package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +106 -0
  230. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +73 -0
  231. package/dist-types/lib/user-facing/components/dropdown/multi-dropdown.d.ts +18 -0
  232. package/dist-types/lib/user-facing/components/dropdown/normalize-values.d.ts +2 -0
  233. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +76 -0
  234. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +89 -0
  235. package/dist-types/lib/user-facing/components/dropdown/utils.d.ts +8 -0
  236. package/dist-types/lib/user-facing/components/grid/calculations/calculate-constraints.d.ts +26 -0
  237. package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.d.ts +2 -0
  238. package/dist-types/lib/user-facing/components/grid/calculations/order-constraints.d.ts +2 -0
  239. package/dist-types/lib/user-facing/components/grid/index.d.ts +36 -0
  240. package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +5 -0
  241. package/dist-types/lib/user-facing/components/grid/utils.d.ts +1 -0
  242. package/dist-types/lib/user-facing/components/icon/index.d.ts +22 -0
  243. package/dist-types/lib/user-facing/components/icon/props.d.ts +24 -0
  244. package/dist-types/lib/user-facing/components/image/image-component.d.ts +38 -0
  245. package/dist-types/lib/user-facing/components/image/index.d.ts +29 -0
  246. package/dist-types/lib/user-facing/components/image/props.d.ts +39 -0
  247. package/dist-types/lib/user-facing/components/input/constants.d.ts +24 -0
  248. package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +5 -0
  249. package/dist-types/lib/user-facing/components/input/index.d.ts +96 -0
  250. package/dist-types/lib/user-facing/components/input/input-component.d.ts +57 -0
  251. package/dist-types/lib/user-facing/components/input/props.d.ts +100 -0
  252. package/dist-types/lib/user-facing/components/input/styles.d.ts +6 -0
  253. package/dist-types/lib/user-facing/components/input/types.d.ts +45 -0
  254. package/dist-types/lib/user-facing/components/input/utils.d.ts +15 -0
  255. package/dist-types/lib/user-facing/components/key-value/components/key-styles.d.ts +3 -0
  256. package/dist-types/lib/user-facing/components/key-value/components/property-key.d.ts +7 -0
  257. package/dist-types/lib/user-facing/components/key-value/components/property-value.d.ts +12 -0
  258. package/dist-types/lib/user-facing/components/key-value/components/value-styles.d.ts +6 -0
  259. package/dist-types/lib/user-facing/components/key-value/constants.d.ts +7 -0
  260. package/dist-types/lib/user-facing/components/key-value/derived-properties.d.ts +1 -0
  261. package/dist-types/lib/user-facing/components/key-value/index.d.ts +6 -0
  262. package/dist-types/lib/user-facing/components/key-value/key-value-component.d.ts +2 -0
  263. package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +45 -0
  264. package/dist-types/lib/user-facing/components/key-value/props.d.ts +38 -0
  265. package/dist-types/lib/user-facing/components/key-value/styles.d.ts +22 -0
  266. package/dist-types/lib/user-facing/components/key-value/types.d.ts +106 -0
  267. package/dist-types/lib/user-facing/components/key-value/utils.d.ts +11 -0
  268. package/dist-types/lib/user-facing/components/modal/constants.d.ts +8 -0
  269. package/dist-types/lib/user-facing/components/modal/index.d.ts +49 -0
  270. package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +37 -0
  271. package/dist-types/lib/user-facing/components/modal/props.d.ts +46 -0
  272. package/dist-types/lib/user-facing/components/page/index.d.ts +13 -0
  273. package/dist-types/lib/user-facing/components/page/props.d.ts +15 -0
  274. package/dist-types/lib/user-facing/components/page/register-page.d.ts +2 -0
  275. package/dist-types/lib/user-facing/components/section/index.d.ts +22 -0
  276. package/dist-types/lib/user-facing/components/section/props.d.ts +25 -0
  277. package/dist-types/lib/user-facing/components/slideout/index.d.ts +1 -0
  278. package/dist-types/lib/user-facing/components/slideout/props.d.ts +15 -0
  279. package/dist-types/lib/user-facing/components/stack/index.d.ts +60 -0
  280. package/dist-types/lib/user-facing/components/switch/index.d.ts +44 -0
  281. package/dist-types/lib/user-facing/components/switch/props.d.ts +45 -0
  282. package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +5 -0
  283. package/dist-types/lib/user-facing/components/switch/types.d.ts +19 -0
  284. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +178 -0
  285. package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +17 -0
  286. package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +16 -0
  287. package/dist-types/lib/user-facing/components/table/components/column-settings.d.ts +11 -0
  288. package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +15 -0
  289. package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +11 -0
  290. package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +12 -0
  291. package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +14 -0
  292. package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +13 -0
  293. package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +13 -0
  294. package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +28 -0
  295. package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +20 -0
  296. package/dist-types/lib/user-facing/components/table/components/filter-popover-content.d.ts +37 -0
  297. package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +5 -0
  298. package/dist-types/lib/user-facing/components/table/components/table-action-icon.d.ts +13 -0
  299. package/dist-types/lib/user-facing/components/table/components/table-column-header-button.d.ts +19 -0
  300. package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +15 -0
  301. package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +40 -0
  302. package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +62 -0
  303. package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +11 -0
  304. package/dist-types/lib/user-facing/components/table/components/table-pagination-input.d.ts +10 -0
  305. package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +18 -0
  306. package/dist-types/lib/user-facing/components/table/components/table-row-context-menu.d.ts +17 -0
  307. package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +25 -0
  308. package/dist-types/lib/user-facing/components/table/constants.d.ts +111 -0
  309. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +20 -0
  310. package/dist-types/lib/user-facing/components/table/index.d.ts +255 -0
  311. package/dist-types/lib/user-facing/components/table/props.d.ts +259 -0
  312. package/dist-types/lib/user-facing/components/table/table-component.d.ts +100 -0
  313. package/dist-types/lib/user-facing/components/table/table-manager.d.ts +23 -0
  314. package/dist-types/lib/user-facing/components/table/table-styles.d.ts +78 -0
  315. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +147 -0
  316. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +148 -0
  317. package/dist-types/lib/user-facing/components/table/types.d.ts +471 -0
  318. package/dist-types/lib/user-facing/components/table/use-sticky.d.ts +1 -0
  319. package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -0
  320. package/dist-types/lib/user-facing/components/text/index.d.ts +51 -0
  321. package/dist-types/lib/user-facing/components/text/long-text-button.d.ts +8 -0
  322. package/dist-types/lib/user-facing/components/text/props.d.ts +60 -0
  323. package/dist-types/lib/user-facing/components/text/styles.d.ts +2 -0
  324. package/dist-types/lib/user-facing/components/text/utils.d.ts +25 -0
  325. package/dist-types/lib/user-facing/constants.d.ts +2 -0
  326. package/dist-types/lib/user-facing/entities/api/index.d.ts +14 -0
  327. package/dist-types/lib/user-facing/entities/api/props.d.ts +20 -0
  328. package/dist-types/lib/user-facing/entities/timer/index.d.ts +16 -0
  329. package/dist-types/lib/user-facing/entities/timer/props.d.ts +19 -0
  330. package/dist-types/lib/user-facing/entities/variable/index.d.ts +14 -0
  331. package/dist-types/lib/user-facing/entities/variable/props.d.ts +13 -0
  332. package/dist-types/lib/user-facing/global-functions.d.ts +23 -0
  333. package/dist-types/lib/user-facing/hooks/use-editor.d.ts +42 -0
  334. package/dist-types/lib/user-facing/hooks/use-update-properties.d.ts +1 -0
  335. package/dist-types/lib/user-facing/icons/constants.d.ts +8 -0
  336. package/dist-types/lib/user-facing/icons/encoded.d.ts +1 -0
  337. package/dist-types/lib/user-facing/icons/helpers.d.ts +21 -0
  338. package/dist-types/lib/user-facing/icons/index.d.ts +2 -0
  339. package/dist-types/lib/user-facing/internal-index.d.ts +4 -0
  340. package/dist-types/lib/user-facing/layers.d.ts +43 -0
  341. package/dist-types/lib/user-facing/properties-panel/constants.d.ts +1 -0
  342. package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +5 -0
  343. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +22 -0
  344. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +12 -0
  345. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +44 -0
  346. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +114 -0
  347. package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +6 -0
  348. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +253 -0
  349. package/dist-types/lib/user-facing/properties-panel/props-builder.test-d.d.ts +1 -0
  350. package/dist-types/lib/user-facing/properties-panel/props-panel-utils.d.ts +3 -0
  351. package/dist-types/lib/user-facing/properties-panel/validators.d.ts +33 -0
  352. package/dist-types/lib/user-facing/sb-event-flow.d.ts +52 -0
  353. package/dist-types/lib/user-facing/sb-provider.d.ts +12 -0
  354. package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +6 -0
  355. package/dist-types/lib/user-facing/state/create-scope.d.ts +17 -0
  356. package/dist-types/lib/user-facing/state/sb-computed.d.ts +2 -0
  357. package/dist-types/lib/user-facing/state/types.d.ts +17 -0
  358. package/dist-types/lib/user-facing/styling/color-utils.d.ts +13 -0
  359. package/dist-types/lib/user-facing/styling/colors.d.ts +67 -0
  360. package/dist-types/lib/user-facing/styling/style-as-class.d.ts +1 -0
  361. package/dist-types/lib/user-facing/styling/styles.d.ts +4 -0
  362. package/dist-types/lib/user-facing/styling/widget-label-styles.d.ts +11 -0
  363. package/dist-types/lib/user-facing/themes/classnames.d.ts +72 -0
  364. package/dist-types/lib/user-facing/themes/constants.d.ts +80 -0
  365. package/dist-types/lib/user-facing/themes/default-theme.d.ts +8 -0
  366. package/dist-types/lib/user-facing/themes/generate-border-css.d.ts +25 -0
  367. package/dist-types/lib/user-facing/themes/generate-border-styles.d.ts +15 -0
  368. package/dist-types/lib/user-facing/themes/generate-class-name.d.ts +2 -0
  369. package/dist-types/lib/user-facing/themes/generate-colors.d.ts +45 -0
  370. package/dist-types/lib/user-facing/themes/generate-theme.d.ts +3 -0
  371. package/dist-types/lib/user-facing/themes/generate-typographies.d.ts +5 -0
  372. package/dist-types/lib/user-facing/themes/generatedStyles/button-styles.d.ts +2 -0
  373. package/dist-types/lib/user-facing/themes/generatedStyles/container-styles.d.ts +2 -0
  374. package/dist-types/lib/user-facing/themes/generatedStyles/datepicker-styles.d.ts +2 -0
  375. package/dist-types/lib/user-facing/themes/generatedStyles/dropdown-styles.d.ts +2 -0
  376. package/dist-types/lib/user-facing/themes/generatedStyles/editor-styles.d.ts +2 -0
  377. package/dist-types/lib/user-facing/themes/generatedStyles/generate-component-styles.d.ts +16 -0
  378. package/dist-types/lib/user-facing/themes/generatedStyles/generate-padding-style.d.ts +19 -0
  379. package/dist-types/lib/user-facing/themes/generatedStyles/icon-styles.d.ts +2 -0
  380. package/dist-types/lib/user-facing/themes/generatedStyles/input-styles.d.ts +3 -0
  381. package/dist-types/lib/user-facing/themes/generatedStyles/paginator-styles.d.ts +2 -0
  382. package/dist-types/lib/user-facing/themes/generatedStyles/popper-styles.d.ts +2 -0
  383. package/dist-types/lib/user-facing/themes/generatedStyles/styles-utils.d.ts +1 -0
  384. package/dist-types/lib/user-facing/themes/generatedStyles/text-styles.d.ts +3 -0
  385. package/dist-types/lib/user-facing/themes/generatedStyles/theme-styles.d.ts +5 -0
  386. package/dist-types/lib/user-facing/themes/generatedStyles/utils.d.ts +23 -0
  387. package/dist-types/lib/user-facing/themes/index.d.ts +5 -0
  388. package/dist-types/lib/user-facing/themes/layers.d.ts +6 -0
  389. package/dist-types/lib/user-facing/themes/padding-constants.d.ts +10 -0
  390. package/dist-types/lib/user-facing/themes/typeface-constants.d.ts +3 -0
  391. package/dist-types/lib/user-facing/themes/typefaces/utils.d.ts +28 -0
  392. package/dist-types/lib/user-facing/themes/typeography/typography-utils.d.ts +33 -0
  393. package/dist-types/lib/user-facing/themes/typeography/use-typography-styling.d.ts +15 -0
  394. package/dist-types/lib/user-facing/themes/typography-constants.d.ts +34 -0
  395. package/dist-types/lib/user-facing/themes/utils.d.ts +16 -0
  396. package/dist-types/lib/user-facing/types.d.ts +22 -0
  397. package/dist-types/lib/user-facing/utils/form.d.ts +10 -0
  398. package/dist-types/lib/utils/clean-object.d.ts +5 -0
  399. package/dist-types/lib/utils/fast-clone.d.ts +1 -0
  400. package/dist-types/lib/utils/generate-id.d.ts +1 -0
  401. package/dist-types/lib/utils/is-user-on-mac.d.ts +1 -0
  402. package/dist-types/lib/utils/is-widget-grid.d.ts +2 -0
  403. package/dist-types/lib/utils/is-widget-vstack.d.ts +2 -0
  404. package/dist-types/lib/utils/shallow-equal.d.ts +1 -0
  405. package/dist-types/lib/utils/widget-wrapper-naming.d.ts +6 -0
  406. package/dist-types/main.d.ts +1 -0
  407. package/package.json +151 -0
@@ -0,0 +1,259 @@
1
+ import { Section, Prop } from "../../properties-panel/props-builder.js";
2
+ import { PaginationTypes } from "./types.js";
3
+ import { CompactMode } from "./types.js";
4
+ import type { UnknownRow } from "./types.js";
5
+ export declare const propertiesDefinition: {
6
+ general: Section<Record<string, Prop<any, any>> & {
7
+ tableHeader: Prop<string, true>;
8
+ tableData: Prop<UnknownRow[], false>;
9
+ columns: import("../../properties-panel/props-builder.js").RecordProp<{
10
+ general: Section<(Record<string, Prop<any, any>> & ({
11
+ label: Prop<string, false>;
12
+ } & (Omit<{
13
+ columnType: Prop<import("./types.js").ColumnType, true>;
14
+ }, "columnType"> & ({
15
+ computedValue: Prop<string, false>;
16
+ displayedValue: Prop<string, false>;
17
+ columnType: Prop<"text", true>;
18
+ } | {
19
+ computedValue: Prop<string, false>;
20
+ notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
21
+ minimumFractionDigits: Prop<number, false>;
22
+ maximumFractionDigits: Prop<number, false>;
23
+ columnType: Prop<"number", true>;
24
+ } | {
25
+ computedValue: Prop<string, false>;
26
+ notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
27
+ minimumFractionDigits: Prop<number, false>;
28
+ maximumFractionDigits: Prop<number, false>;
29
+ currency: Prop<string, false>;
30
+ columnType: Prop<"currency", true>;
31
+ } | {
32
+ computedValue: Prop<string, false>;
33
+ minimumFractionDigits: Prop<number, false>;
34
+ maximumFractionDigits: Prop<number, false>;
35
+ columnType: Prop<"percentage", true>;
36
+ } | {
37
+ openImageUrl: Prop<boolean, false>;
38
+ columnType: Prop<"image", true>;
39
+ } | {
40
+ computedValue: Prop<string, false>;
41
+ columnType: Prop<"video", true>;
42
+ } | {
43
+ valueFormat: Prop<string, false>;
44
+ displayFormat: Prop<string, false>;
45
+ manageTimezone: Prop<boolean, false>;
46
+ valueTimezone: Prop<string, false>;
47
+ displayTimezone: Prop<string, false>;
48
+ columnType: Prop<"date", true>;
49
+ } | {
50
+ buttonLabel: Prop<string, false>;
51
+ isDisabled: Prop<boolean, false>;
52
+ columnType: Prop<"button", true>;
53
+ } | {
54
+ linkUrl: Prop<string, false>;
55
+ linkLabel: Prop<string, false>;
56
+ openInNewTab: Prop<boolean, false>;
57
+ columnType: Prop<"link", true>;
58
+ } | {
59
+ computedValue: Prop<string, false>;
60
+ columnType: Prop<"boolean", true>;
61
+ } | {
62
+ computedValue: Prop<string, false>;
63
+ columnType: Prop<"tags", true>;
64
+ } | {
65
+ computedValue: Prop<string, false>;
66
+ displayedValue: Prop<string, false>;
67
+ columnType: Prop<"email", true>;
68
+ })))) & {
69
+ isVisible: Prop<boolean, true>;
70
+ }>;
71
+ presentation: Section<(Record<string, Prop<any, any>> & ({
72
+ headerIcon: Prop<string, false>;
73
+ headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
74
+ } & (Omit<{
75
+ columnType: Prop<import("./types.js").ColumnType, false>;
76
+ }, "columnType"> & ({
77
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
78
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
79
+ "cellProps.textStyle": Prop<any, false>;
80
+ cellBackground: Prop<string, false>;
81
+ textWrap: Prop<boolean, false>;
82
+ cellIcon: Prop<string, false>;
83
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
84
+ columnType: Prop<"text", true>;
85
+ } | {
86
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
87
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
88
+ "cellProps.textStyle": Prop<any, false>;
89
+ cellBackground: Prop<string, false>;
90
+ textWrap: Prop<boolean, false>;
91
+ cellIcon: Prop<string, false>;
92
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
93
+ columnType: Prop<"number", true>;
94
+ } | {
95
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
96
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
97
+ "cellProps.textStyle": Prop<any, false>;
98
+ cellBackground: Prop<string, false>;
99
+ textWrap: Prop<boolean, false>;
100
+ cellIcon: Prop<string, false>;
101
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
102
+ columnType: Prop<"currency", true>;
103
+ } | {
104
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
105
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
106
+ "cellProps.textStyle": Prop<any, false>;
107
+ cellBackground: Prop<string, false>;
108
+ textWrap: Prop<boolean, false>;
109
+ cellIcon: Prop<string, false>;
110
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
111
+ columnType: Prop<"percentage", true>;
112
+ } | {
113
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
114
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
115
+ "cellProps.textStyle": Prop<any, false>;
116
+ cellBackground: Prop<string, false>;
117
+ imageSize: Prop<import("./types.js").ImageSize, false>;
118
+ imageBorderRadius: Prop<import("@superblocksteam/library-shared").Dim, false>;
119
+ columnType: Prop<"image", true>;
120
+ } | {
121
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
122
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
123
+ "cellProps.textStyle": Prop<any, false>;
124
+ cellBackground: Prop<string, false>;
125
+ columnType: Prop<"video", true>;
126
+ } | {
127
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
128
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
129
+ "cellProps.textStyle": Prop<any, false>;
130
+ cellBackground: Prop<string, false>;
131
+ textWrap: Prop<boolean, false>;
132
+ cellIcon: Prop<string, false>;
133
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
134
+ columnType: Prop<"date", true>;
135
+ } | {
136
+ buttonVariant: Prop<import("../button/props.js").ButtonVariant, false>;
137
+ buttonBackgroundColor: Prop<string, false>;
138
+ buttonLabelColor: Prop<string, false>;
139
+ backgroundColor: Prop<string, false>;
140
+ cellIcon: Prop<string, false>;
141
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
142
+ columnType: Prop<"button", true>;
143
+ } | {
144
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
145
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
146
+ "cellProps.textStyle": Prop<any, false>;
147
+ cellBackground: Prop<string, false>;
148
+ columnType: Prop<"link", true>;
149
+ } | {
150
+ booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, false>;
151
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
152
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
153
+ "cellProps.textStyle": Prop<any, false>;
154
+ cellBackground: Prop<string, false>;
155
+ columnType: Prop<"boolean", true>;
156
+ } | {
157
+ tagDisplayConfig: Prop<any, false>;
158
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
159
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
160
+ "cellProps.textStyle": Prop<any, false>;
161
+ cellBackground: Prop<string, false>;
162
+ columnType: Prop<"tags", true>;
163
+ } | {
164
+ horizontalAlign: Prop<"center" | "left" | "right", false>;
165
+ verticalAlign: Prop<"center" | "bottom" | "top", false>;
166
+ "cellProps.textStyle": Prop<any, false>;
167
+ cellBackground: Prop<string, false>;
168
+ textWrap: Prop<boolean, false>;
169
+ cellIcon: Prop<string, false>;
170
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
171
+ columnType: Prop<"email", true>;
172
+ })))) & {
173
+ frozen: Prop<boolean, false>;
174
+ }>;
175
+ interaction: Section<Record<string, Prop<any, any>> & Omit<{
176
+ columnType: Prop<import("./types.js").ColumnType, false>;
177
+ }, "onClick" | "columnType"> & {
178
+ columnType: Prop<"button", true>;
179
+ onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
180
+ }>;
181
+ }>;
182
+ }>;
183
+ layout: Section<Record<string, Prop<any, any>> & {
184
+ maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
185
+ minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
186
+ maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
187
+ minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
188
+ width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
189
+ height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
190
+ } & {
191
+ margin: Prop<unknown, true>;
192
+ } & {
193
+ isVisible: Prop<boolean, true>;
194
+ collapseWhenInvisible: Prop<boolean, false>;
195
+ }>;
196
+ interaction: Section<Record<string, Prop<any, any>> & {
197
+ isFilterable: Prop<boolean, true>;
198
+ defaultFilters: Prop<any, false>;
199
+ multiRowSelection: Prop<boolean, true>;
200
+ isSearchable: Prop<boolean, true>;
201
+ isDownloadable: Prop<boolean, true>;
202
+ pageType: Prop<PaginationTypes, true>;
203
+ configuredPageSize: Prop<number, false>;
204
+ defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
205
+ column: Prop<string, true>;
206
+ asc: Prop<boolean, true>;
207
+ }>;
208
+ defaultSearchText: Prop<string, false>;
209
+ searchPlaceholder: Prop<string, false>;
210
+ }>;
211
+ appearance: Section<Record<string, Prop<any, any>> & {
212
+ defaultSelectedRow: Prop<number, false>;
213
+ showColumnBorders: Prop<boolean, false>;
214
+ "headerProps.textStyle": Prop<any, false>;
215
+ "columnHeaderProps.textStyle": Prop<any, false>;
216
+ "cellProps.textStyle": Prop<any, false>;
217
+ backgroundColor: Prop<string, false>;
218
+ selectedRowBackgroundColor: Prop<string, false>;
219
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
220
+ borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
221
+ compactMode: Prop<CompactMode, false>;
222
+ maxLinesPerRow: Prop<number, false>;
223
+ animateLoading: Prop<boolean, false>;
224
+ isVisible: Prop<boolean, false>;
225
+ collapseWhenHidden: Prop<boolean, false>;
226
+ "searchProps.textStyle": Prop<any, false>;
227
+ "searchProps.backgroundColor": Prop<string, false>;
228
+ "searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
229
+ "searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
230
+ }>;
231
+ events: Section<Record<string, Prop<any, any>> & {
232
+ onRowClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
233
+ onRowSelected: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
234
+ onPageChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
235
+ onFiltersChanged: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
236
+ onSearchTextChanged: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
237
+ }>;
238
+ derived: Section<Record<string, Prop<any, any>> & {
239
+ tableDataWithInserts: Prop<any[], true>;
240
+ tableDataWithInsertsOrderMap: Prop<number[], true>;
241
+ selectedRow: Prop<any, true>;
242
+ selectedRowSchema: Prop<any, true>;
243
+ selectedRows: Prop<any, true>;
244
+ pageSize: Prop<number, true>;
245
+ filteredTableData: Prop<any[], true>;
246
+ filteredOrderMap: Prop<number[], true>;
247
+ }>;
248
+ meta: Section<Record<string, Prop<any, any>> & {
249
+ selectedRowIndex: Prop<number, false>;
250
+ selectedRowIndices: Prop<any, false>;
251
+ pageNo: Prop<number, true>;
252
+ sortedColumn: Prop<any, false>;
253
+ searchText: Prop<string, false>;
254
+ filters: Prop<any, false>;
255
+ hiddenColumns: Prop<any, false>;
256
+ columnFreezes: Prop<any, false>;
257
+ tagsColorAssignment: Prop<any, false>;
258
+ }>;
259
+ };
@@ -0,0 +1,100 @@
1
+ import React from "react";
2
+ import type { InsertRowOptions } from "./constants.js";
3
+ import type { ColumnFilter, CompactMode, Pagination, ReactTableColumnProps, TableFilters } from "./types.js";
4
+ import type { Dim, DimModes } from "@superblocksteam/library-shared";
5
+ import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
6
+ export interface TableProps {
7
+ backgroundColor?: string;
8
+ borderRadius?: PerCornerBorderRadius;
9
+ border?: PerSideBorder;
10
+ selectedRowBackgroundColor?: string;
11
+ sourceId: string;
12
+ widgetName: string;
13
+ searchKey: string;
14
+ isDisabled?: boolean;
15
+ isVisible?: boolean;
16
+ isLoading: boolean;
17
+ height?: Dim<DimModes>;
18
+ minHeight?: number;
19
+ maxHeight?: number;
20
+ tableCellTextStyle?: TextStyleWithVariant;
21
+ tableHeaderTextStyle?: TextStyleWithVariant;
22
+ columnHeaderTextStyle?: TextStyleWithVariant;
23
+ searchProps?: {
24
+ textStyle?: TextStyleWithVariant;
25
+ border?: PerSideBorder;
26
+ borderRadius?: PerCornerBorderRadius;
27
+ backgroundColor?: string;
28
+ };
29
+ rawTableData: Array<Record<string, unknown>>;
30
+ filteredOrderMap: number[] | undefined;
31
+ tableData: Array<Record<string, unknown>>;
32
+ columnOrder?: string[];
33
+ disableDrag: (disable: boolean) => void;
34
+ onRowClick: (rowData: Record<string, unknown>, rowIndex: number) => void;
35
+ onRowSelect: (rowIndex: number, shiftKey?: boolean) => void;
36
+ selectRows: (rows?: "ALL" | "NONE") => void;
37
+ updatePageNo: (pageNo: number) => void;
38
+ sortTableColumn: (column: string, asc: boolean) => void;
39
+ nextPageClick: () => void;
40
+ prevPageClick: () => void;
41
+ pageNo: number;
42
+ pageSize: number;
43
+ pageType: Pagination;
44
+ selectedRowIndex: number;
45
+ selectedRowIndices: number[];
46
+ multiRowSelection?: boolean;
47
+ columnSizeMap?: {
48
+ [key: string]: number;
49
+ };
50
+ handleResizeColumn: (columnSizeMap: {
51
+ [key: string]: number;
52
+ }) => void;
53
+ handleReorderColumn: (columnOrder: string[]) => void;
54
+ searchTableData: (searchKey: any) => void;
55
+ filters?: TableFilters;
56
+ setColumnFilter: (columnId: string, filter: ColumnFilter) => void;
57
+ columns: ReactTableColumnProps[];
58
+ compactMode?: CompactMode;
59
+ isDownloadable: boolean;
60
+ isFilterable: boolean;
61
+ showColumnBorders: boolean;
62
+ isSortable: boolean;
63
+ isSearchable: boolean;
64
+ tableHeader: string;
65
+ hiddenColumns?: string[];
66
+ numEdits: number;
67
+ numEditErrors: number;
68
+ validationMessages?: string[];
69
+ onEditSave: () => void;
70
+ onEditCancel: () => void;
71
+ searchPlaceholder: string;
72
+ columnFreezes?: Record<string, boolean>;
73
+ handleClickOutsideCells: () => void;
74
+ onRowInsertion: (options?: InsertRowOptions) => void;
75
+ onRowDeletion: (rowIndices: number[]) => void;
76
+ getIsRowDeleted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
77
+ getIsRowInserted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
78
+ getIsRowEdited: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
79
+ isDeletionEnabled: boolean;
80
+ isInsertionEnabled: boolean;
81
+ isSaving: boolean;
82
+ getCellBackground: (currentRowIndex: number, columnId: string) => string | undefined;
83
+ onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
84
+ disableNudge: (disable: boolean) => void;
85
+ setCurrentCellFocus: (focus: {
86
+ row: number;
87
+ columnId: string;
88
+ }[]) => void;
89
+ currentEditFocus: {
90
+ row: number;
91
+ columnId: string;
92
+ } | undefined;
93
+ handleCopy: (event: Event) => void;
94
+ handlePaste: (event: Event) => void;
95
+ theme: UserAccessibleTheme;
96
+ appMode: "EDIT" | "DEPLOYED";
97
+ updateProperty: (property: string, value: any) => void;
98
+ }
99
+ declare const Table: (props: TableProps) => React.JSX.Element;
100
+ export default Table;
@@ -0,0 +1,23 @@
1
+ export declare class TableManager {
2
+ focusedCellIndices: boolean[][];
3
+ originCell: {
4
+ rowIndex: number;
5
+ columnId: string;
6
+ } | null;
7
+ private focusedCellIndicesChangeListeners;
8
+ private originCellListeners;
9
+ private focusedCellListeners;
10
+ setFocusedCellIndices(focusedCellIndices: boolean[][]): void;
11
+ changeCellFocus(row: number, column: number, focus: boolean): void;
12
+ setOriginCell(rowIndex: number, columnId: string): void;
13
+ clearOriginCell(): void;
14
+ clearFocusedCells(clearOrigin?: boolean): void;
15
+ onFocusedCellIndicesChange: (listener: () => void) => () => void;
16
+ onFocusedCellChange: (row: number, column: number, listener: () => void) => () => void;
17
+ onOriginCellChange: (rowIndex: number, columnId: string, listener: () => void) => () => void;
18
+ private getRowColumnKey;
19
+ }
20
+ export declare const TableManagerContext: import("react").Context<TableManager>;
21
+ export declare function useTableManager(): TableManager;
22
+ export declare function useIsOriginCell(rowIndex: number, columnId: string): boolean;
23
+ export declare function useIsCellFocused(row: number, column: number): boolean;
@@ -0,0 +1,78 @@
1
+ import { CompactMode } from "./types.js";
2
+ import type { TableSizes } from "./constants.js";
3
+ import type { SingleCellProperties, ColumnProperties } from "./types.js";
4
+ import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
5
+ import type { CSSProperties } from "react";
6
+ interface TableWrapperProps {
7
+ tableSizes: TableSizes;
8
+ backgroundColor?: string;
9
+ selectedRowBackgroundColor?: string;
10
+ showColumnBorders: boolean;
11
+ showFrozenColShadow?: boolean;
12
+ colors: UserAccessibleTheme["colors"];
13
+ }
14
+ export declare const getRowBorderColor: (backgroundColor: string | undefined, colors: UserAccessibleTheme["colors"]) => string;
15
+ export declare const getHoverRowBackgroundColor: (backgroundColor: string | undefined, colors: UserAccessibleTheme["colors"]) => string;
16
+ export declare const TableCSSVariables: {
17
+ rowHoverBgColor: string;
18
+ };
19
+ export declare const TableWrapper: import("styled-components").StyledComponent<"div", any, TableWrapperProps, never>;
20
+ export declare const buildCellStyles: ({ cellTextStyle, fontStyle, textColor, horizontalAlign, verticalAlign, textSize, compactMode, }: {
21
+ cellTextStyle?: SingleCellProperties["cellTextStyle"];
22
+ fontStyle?: SingleCellProperties["fontStyle"];
23
+ textColor?: SingleCellProperties["textColor"];
24
+ horizontalAlign?: SingleCellProperties["horizontalAlign"];
25
+ verticalAlign?: SingleCellProperties["verticalAlign"];
26
+ textSize?: SingleCellProperties["textSize"];
27
+ compactMode: CompactMode;
28
+ }) => CSSProperties;
29
+ export declare const CELL_WRAPPER_HOR_MARGIN = 8;
30
+ interface CellWrapperProps {
31
+ cellProperties: SingleCellProperties;
32
+ compactMode: CompactMode;
33
+ hasLeftIcon?: boolean;
34
+ hasRightIcon?: boolean;
35
+ isDropdownType?: boolean;
36
+ isHidden?: boolean;
37
+ maxWidth?: number;
38
+ }
39
+ type CellOverflowOptions = {
40
+ canWrap?: boolean;
41
+ maxLines?: number;
42
+ isTags?: boolean;
43
+ };
44
+ export declare const getCellWrapStyles: (options: CellOverflowOptions) => {
45
+ maxHeight: string;
46
+ WebkitLineClamp?: undefined;
47
+ } | {
48
+ WebkitLineClamp: number;
49
+ maxHeight?: undefined;
50
+ } | undefined;
51
+ export declare const getCellClass: (options: CellOverflowOptions) => string | undefined;
52
+ export declare const TextIconWrapper: import("styled-components").StyledComponent<"div", any, {
53
+ cellProperties: SingleCellProperties;
54
+ hasLeftIcon?: boolean;
55
+ hasRightIcon?: boolean;
56
+ }, never>;
57
+ export declare const CellWrapper: import("styled-components").StyledComponent<"div", any, CellWrapperProps, never>;
58
+ export declare const ColumnHeaderWrapper: import("styled-components").StyledComponent<"div", any, {
59
+ columnProperties: ColumnProperties;
60
+ }, never>;
61
+ export declare const ColumnHeaderTitleWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
62
+ export declare const HeaderCellContentWrapper: import("styled-components").StyledComponent<"div", any, {
63
+ columnProperties: ColumnProperties;
64
+ shouldCapitalize: boolean;
65
+ }, never>;
66
+ interface TableIconWrapperProps {
67
+ selected?: boolean;
68
+ disabled?: boolean;
69
+ tableSizes: TableSizes;
70
+ }
71
+ export declare const TableIconWrapper: import("styled-components").StyledComponent<"div", any, TableIconWrapperProps, never>;
72
+ export declare const SortIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
73
+ export declare const DefaultValueWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
74
+ export declare const getTableCellTextStyleClassName: ({ tableCellTextStyleVariant, cellTextStyleVariant, }: {
75
+ tableCellTextStyleVariant?: string;
76
+ cellTextStyleVariant?: string;
77
+ }) => string | undefined;
78
+ export {};
@@ -0,0 +1,147 @@
1
+ import { Dim } from "@superblocksteam/library-shared";
2
+ import React from "react";
3
+ import { BooleanStyleFalse } from "./types.js";
4
+ import type { CompactMode } from "./types.js";
5
+ import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment, ColumnPropertyFunctionArgs } from "./types.js";
6
+ import type { IconPosition } from "../../icons/constants.js";
7
+ import type { ButtonVariant } from "../button/props.js";
8
+ import type { DimModes } from "@superblocksteam/library-shared";
9
+ import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
10
+ export declare const getAllTableColumnKeys: (tableData: Readonly<Array<Record<string, unknown>>>, additionalColumnKeys?: string[]) => string[];
11
+ interface TableTagsProps {
12
+ theme: UserAccessibleTheme;
13
+ isHidden: boolean;
14
+ cellProperties: SingleCellProperties;
15
+ tagValues: unknown[];
16
+ tagsColorAssignment?: TagsColorAssignment;
17
+ tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
18
+ compactMode: CompactMode;
19
+ handleCellFocus?: () => void;
20
+ maxWidth?: number;
21
+ maxLinesPerRow?: number;
22
+ }
23
+ export type TableCellProps = SingleCellProperties & {
24
+ isHidden: boolean;
25
+ cellProperties: SingleCellProperties;
26
+ tagsColorAssignment?: TagsColorAssignment;
27
+ tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
28
+ booleanStyleFalse?: BooleanStyleFalse;
29
+ compactMode: CompactMode;
30
+ isFocused: boolean;
31
+ isMultiselecting: boolean;
32
+ };
33
+ interface CellPosition {
34
+ currentRowIndex: number;
35
+ originalRowIndex: number;
36
+ columnId: string;
37
+ }
38
+ export declare const sanitizeCellValue: (cellValue: any) => string;
39
+ export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, compactMode, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
40
+ interface ColumnAction {
41
+ label: string;
42
+ id: string;
43
+ actions: (args: ColumnPropertyFunctionArgs) => void;
44
+ }
45
+ export declare const formatByType: (value: unknown, type: string, options: {
46
+ maxLen?: number;
47
+ displayedValue?: string;
48
+ notation?: Intl.NumberFormatOptions["notation"] | "unformatted";
49
+ currency?: string;
50
+ minimumFractionDigits?: number;
51
+ maximumFractionDigits?: number;
52
+ inputFormat?: string;
53
+ outputFormat?: string;
54
+ manageTimezone?: boolean;
55
+ timezone?: string;
56
+ displayTimezone?: string;
57
+ }) => string;
58
+ export declare const EditableCell: (props: {
59
+ value: any;
60
+ rawValue: any;
61
+ columnType: string;
62
+ cellProps: TableCellProps;
63
+ editProps: EditProps;
64
+ tableName: string;
65
+ compactMode: CompactMode;
66
+ position: CellPosition;
67
+ isInserted: boolean;
68
+ columnName: string;
69
+ maxLinesPerRow?: number;
70
+ theme: UserAccessibleTheme;
71
+ }) => React.JSX.Element;
72
+ export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, rowIndex: number): SingleCellProperties;
73
+ export declare function getPropertyValue(value: any, index: number, preserveCase?: boolean, preserveDataType?: boolean): any;
74
+ export declare function getFirstPropertyValue(value: string | string[] | undefined): string | undefined;
75
+ export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
76
+ value: any;
77
+ columnType: string;
78
+ editInputType?: string;
79
+ cellProps: TableCellProps;
80
+ position: CellPosition;
81
+ defaultValue?: string;
82
+ maxLinesPerRow?: number;
83
+ tableCellTextStyle?: TextStyleWithVariant;
84
+ typographies?: UserAccessibleTheme["typographies"];
85
+ theme: UserAccessibleTheme;
86
+ }) => React.JSX.Element;
87
+ interface RenderActionProps {
88
+ rowIndex: number;
89
+ isSelected: boolean;
90
+ isDisabled?: boolean;
91
+ columnActions?: ColumnAction[];
92
+ backgroundColor?: string;
93
+ buttonVariant: ButtonVariant;
94
+ buttonLabelColor: string | undefined;
95
+ cellIcon?: string;
96
+ cellIconPosition: IconPosition;
97
+ onCommandClick: (args: ColumnPropertyFunctionArgs) => void;
98
+ handleRowSelect: (rowIndex: number) => void;
99
+ compactMode: CompactMode;
100
+ }
101
+ export declare const renderActions: (props: RenderActionProps, isHidden: boolean, cellProperties: SingleCellProperties, compactMode: CompactMode, theme: UserAccessibleTheme) => React.JSX.Element;
102
+ export declare const renderLink: (props: {
103
+ isHidden: boolean;
104
+ cellProperties: SingleCellProperties;
105
+ compactMode: CompactMode;
106
+ position: CellPosition;
107
+ maxLinesPerRow?: number;
108
+ tableCellTextStyle?: TextStyleWithVariant;
109
+ }) => React.JSX.Element;
110
+ export declare const renderEmptyRow: (columns: any, page: any, prepareRow: any, index: number, columnSizeMap: undefined | {
111
+ [key: string]: number;
112
+ }, resizingColumnIdRef: React.MutableRefObject<string>) => React.JSX.Element;
113
+ export declare const getIsColumnFrozen: (columnId: string, columnFreezes: undefined | Record<string, boolean>, defaultFrozen: undefined | boolean) => boolean | undefined;
114
+ export declare const getMergedColumnOrder: (originalColumnOrder: string[], newColumnIds: string[]) => string[];
115
+ export declare const TABLE_MULTISELECT_COLID = "SB_$$_MULTISELECT";
116
+ export declare const getVisibleOrderedColumnIds: (columns: Record<string, ColumnProperties>, columnOrder: string[], columnFreezes: undefined | Record<string, boolean>, isMultiSelect: boolean | undefined, hiddenColumns: undefined | string[]) => string[];
117
+ export declare const reorderColumns: (columns: Record<string, ColumnProperties>, columnOrder: string[], columnFreezes?: Record<string, boolean>) => Record<string, ColumnProperties>;
118
+ export declare function getDefaultColumnProperties(accessor: string, index: number, widgetName: string, isDerived?: boolean): ColumnProperties;
119
+ export declare function getDefaultComputedValue(accessor: string, widgetName: string, isDerived: boolean): string;
120
+ export declare function columnHasNonDefaultProps(columnProperties: ColumnProperties, widgetName: string): boolean;
121
+ export declare function getTableStyles(props: any): TableStyles;
122
+ export declare const getColumnWidthStyle: ({ column, columnSizeMap, resizingColumnIdRef, canvasScaleFactor, }: {
123
+ column: any;
124
+ columnSizeMap: {
125
+ [key: string]: number;
126
+ } | undefined;
127
+ resizingColumnIdRef: React.MutableRefObject<string>;
128
+ canvasScaleFactor: number;
129
+ }) => {
130
+ flex: string;
131
+ width: string;
132
+ } | undefined;
133
+ export declare const getFluidColumnWidth: (componentWidth: Dim<DimModes>, allColumns: Record<string, ColumnProperties>, columnSizeMap: {
134
+ [key: string]: number;
135
+ } | undefined) => number;
136
+ export declare const getColumnWidth: (colId: string, columnSizeMap: {
137
+ [key: string]: number;
138
+ } | undefined, fluidColumnWidth: number) => {
139
+ width: number;
140
+ actualFlexWidth?: undefined;
141
+ } | {
142
+ width: number;
143
+ actualFlexWidth: number;
144
+ };
145
+ export declare function collapseTableData(data: unknown[][], largestRow?: number): unknown[][];
146
+ export declare function createTableColumns(props: TableWidgetProps): Record<string, ColumnProperties> | undefined;
147
+ export {};