sveltekit-ui 1.0.0

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 (487) hide show
  1. package/README.md +23 -0
  2. package/dist/Components/Alert/index.svelte +88 -0
  3. package/dist/Components/Alert/index.svelte.js +101 -0
  4. package/dist/Components/ArrowToggle/index.svelte +62 -0
  5. package/dist/Components/Attachment/index.svelte +69 -0
  6. package/dist/Components/Attachment/index.svelte.js +119 -0
  7. package/dist/Components/Audio/index.svelte +193 -0
  8. package/dist/Components/Audio/index.svelte.js +463 -0
  9. package/dist/Components/AudioEditor/index.svelte +253 -0
  10. package/dist/Components/AudioEditor/index.svelte.js +973 -0
  11. package/dist/Components/AudioEditor/samples/alloy-voice-sample.mp3 +0 -0
  12. package/dist/Components/AudioEditor/samples/echo-voice-sample.mp3 +0 -0
  13. package/dist/Components/AudioEditor/samples/fable-voice-sample.mp3 +0 -0
  14. package/dist/Components/AudioEditor/samples/nova-voice-sample.mp3 +0 -0
  15. package/dist/Components/AudioEditor/samples/onyx-voice-sample.mp3 +0 -0
  16. package/dist/Components/AudioEditor/samples/shimmer-voice-sample.mp3 +0 -0
  17. package/dist/Components/AuthCodeInput/index.svelte +85 -0
  18. package/dist/Components/AuthCodeInput/index.svelte.js +95 -0
  19. package/dist/Components/Breadcrumbs/index.svelte +27 -0
  20. package/dist/Components/Breadcrumbs/index.svelte.js +88 -0
  21. package/dist/Components/Button/index.svelte +721 -0
  22. package/dist/Components/Button/index.svelte.js +375 -0
  23. package/dist/Components/Chart/Klines/index.svelte +87 -0
  24. package/dist/Components/Chart/index.svelte +226 -0
  25. package/dist/Components/Chart/index.svelte.js +1084 -0
  26. package/dist/Components/ChartInput/DisplayNav/Klines/index.svelte +150 -0
  27. package/dist/Components/ChartInput/DisplayNav/Lines/index.svelte +45 -0
  28. package/dist/Components/ChartInput/DisplayNav/index.svelte +297 -0
  29. package/dist/Components/ChartInput/EditPanel/index.svelte +155 -0
  30. package/dist/Components/ChartInput/index.svelte +21 -0
  31. package/dist/Components/ChartInput/index.svelte.js +671 -0
  32. package/dist/Components/Checkbox/index.svelte +411 -0
  33. package/dist/Components/Checkbox/index.svelte.js +178 -0
  34. package/dist/Components/Code/index.svelte +23 -0
  35. package/dist/Components/Code/index.svelte.js +34 -0
  36. package/dist/Components/Color/index.svelte +51 -0
  37. package/dist/Components/Color/index.svelte.js +31 -0
  38. package/dist/Components/ColorInput/ChromaPicker/index.svelte +50 -0
  39. package/dist/Components/ColorInput/ColorPalette/index.svelte +62 -0
  40. package/dist/Components/ColorInput/OpacityPicker/index.svelte +68 -0
  41. package/dist/Components/ColorInput/ShowcasePicker/index.svelte +136 -0
  42. package/dist/Components/ColorInput/index.svelte +70 -0
  43. package/dist/Components/ColorInput/index.svelte.js +383 -0
  44. package/dist/Components/ConditionsInput/index.svelte +46 -0
  45. package/dist/Components/ConditionsInput/index.svelte.js +201 -0
  46. package/dist/Components/Confetti/index.svelte +98 -0
  47. package/dist/Components/Confetti/index.svelte.js +94 -0
  48. package/dist/Components/Content/index.svelte +471 -0
  49. package/dist/Components/Content/index.svelte.js +903 -0
  50. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Audio/index.svelte +31 -0
  51. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Audio/index.svelte.js +258 -0
  52. package/dist/Components/ContentInput/AttributesInput/CustomConfig/AudioAdvanced/index.svelte +31 -0
  53. package/dist/Components/ContentInput/AttributesInput/CustomConfig/AudioAdvanced/index.svelte.js +258 -0
  54. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Dropdown/index.svelte +58 -0
  55. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Dropdown/index.svelte.js +210 -0
  56. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Image/index.svelte +28 -0
  57. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Image/index.svelte.js +224 -0
  58. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Number/index.svelte +44 -0
  59. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Number/index.svelte.js +273 -0
  60. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte +41 -0
  61. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte.js +203 -0
  62. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Slider/index.svelte +19 -0
  63. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Slider/index.svelte.js +119 -0
  64. package/dist/Components/ContentInput/AttributesInput/CustomConfig/TableAdvanced/index.svelte +60 -0
  65. package/dist/Components/ContentInput/AttributesInput/CustomConfig/TableAdvanced/index.svelte.js +546 -0
  66. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Tag/index.svelte +47 -0
  67. package/dist/Components/ContentInput/AttributesInput/CustomConfig/Tag/index.svelte.js +185 -0
  68. package/dist/Components/ContentInput/AttributesInput/CustomConfig/TextInput/index.svelte +35 -0
  69. package/dist/Components/ContentInput/AttributesInput/CustomConfig/TextInput/index.svelte.js +224 -0
  70. package/dist/Components/ContentInput/AttributesInput/CustomConfig/TimeInput/index.svelte +20 -0
  71. package/dist/Components/ContentInput/AttributesInput/CustomConfig/TimeInput/index.svelte.js +87 -0
  72. package/dist/Components/ContentInput/AttributesInput/DefinedTypeInput/index.svelte +25 -0
  73. package/dist/Components/ContentInput/AttributesInput/DefinedTypeInput/index.svelte.js +101 -0
  74. package/dist/Components/ContentInput/AttributesInput/index.svelte +338 -0
  75. package/dist/Components/ContentInput/AttributesInput/index.svelte.js +1446 -0
  76. package/dist/Components/ContentInput/ContentPanelBuilder/AddElement/index.svelte +64 -0
  77. package/dist/Components/ContentInput/ContentPanelBuilder/AddElement/index.svelte.js +97 -0
  78. package/dist/Components/ContentInput/ContentPanelBuilder/ElementList/index.svelte +122 -0
  79. package/dist/Components/ContentInput/ContentPanelBuilder/index.svelte +41 -0
  80. package/dist/Components/ContentInput/index.svelte +50 -0
  81. package/dist/Components/ContentInput/index.svelte.js +1066 -0
  82. package/dist/Components/CronInput/index.svelte +78 -0
  83. package/dist/Components/CronInput/index.svelte.js +199 -0
  84. package/dist/Components/DataTypeInput/index.svelte +174 -0
  85. package/dist/Components/DataTypeInput/index.svelte.js +568 -0
  86. package/dist/Components/Dropdown/index.svelte +116 -0
  87. package/dist/Components/Dropdown/index.svelte.js +403 -0
  88. package/dist/Components/EmailAddress/index.svelte +22 -0
  89. package/dist/Components/EmailAddress/index.svelte.js +45 -0
  90. package/dist/Components/ErrorX/index.svelte +58 -0
  91. package/dist/Components/Eye/index.svelte +57 -0
  92. package/dist/Components/FileInput/index.svelte +146 -0
  93. package/dist/Components/FileInput/index.svelte.js +226 -0
  94. package/dist/Components/FunctionInput/Node/helpers/DefinedTargetInput/index.svelte +110 -0
  95. package/dist/Components/FunctionInput/Node/helpers/Field/index.svelte +109 -0
  96. package/dist/Components/FunctionInput/Node/helpers/Field/index.svelte.js +208 -0
  97. package/dist/Components/FunctionInput/Node/helpers/InlineDropArea/index.svelte +97 -0
  98. package/dist/Components/FunctionInput/Node/helpers/InlineDropArea/index.svelte.js +105 -0
  99. package/dist/Components/FunctionInput/Node/helpers/ObjectInput/index.svelte +198 -0
  100. package/dist/Components/FunctionInput/Node/helpers/StackArea/index.svelte +169 -0
  101. package/dist/Components/FunctionInput/Node/helpers/StackArea/index.svelte.js +152 -0
  102. package/dist/Components/FunctionInput/Node/index.svelte +144 -0
  103. package/dist/Components/FunctionInput/Node/index.svelte.js +130 -0
  104. package/dist/Components/FunctionInput/index.svelte +356 -0
  105. package/dist/Components/FunctionInput/index.svelte.js +1215 -0
  106. package/dist/Components/Hamburger/index.svelte +99 -0
  107. package/dist/Components/HorizScrollBox/index.svelte +145 -0
  108. package/dist/Components/Icon/index.svelte +412 -0
  109. package/dist/Components/Icon/index.svelte.js +117 -0
  110. package/dist/Components/IconInput/index.svelte +77 -0
  111. package/dist/Components/IconInput/index.svelte.js +260 -0
  112. package/dist/Components/Image/index.svelte +121 -0
  113. package/dist/Components/Image/index.svelte.js +114 -0
  114. package/dist/Components/ImageEditor/Image/CropBox/index.svelte +165 -0
  115. package/dist/Components/ImageEditor/Image/index.svelte +104 -0
  116. package/dist/Components/ImageEditor/Panels/AI/index.svelte +36 -0
  117. package/dist/Components/ImageEditor/Panels/Crop/index.svelte +96 -0
  118. package/dist/Components/ImageEditor/Panels/File/QualityPicker/index.svelte +124 -0
  119. package/dist/Components/ImageEditor/Panels/File/index.svelte +74 -0
  120. package/dist/Components/ImageEditor/Panels/Filters/index.svelte +46 -0
  121. package/dist/Components/ImageEditor/Panels/Resize/index.svelte +58 -0
  122. package/dist/Components/ImageEditor/index.svelte +91 -0
  123. package/dist/Components/ImageEditor/index.svelte.js +1907 -0
  124. package/dist/Components/ImageSlider/index.svelte +124 -0
  125. package/dist/Components/ImageSlider/index.svelte.js +99 -0
  126. package/dist/Components/InfoBox/index.svelte +89 -0
  127. package/dist/Components/Json/Nested/index.svelte +157 -0
  128. package/dist/Components/Json/index.svelte +60 -0
  129. package/dist/Components/Json/index.svelte.js +594 -0
  130. package/dist/Components/LabeledItem/index.svelte +102 -0
  131. package/dist/Components/Layout/NavBar/FullNav/index.svelte +53 -0
  132. package/dist/Components/Layout/NavBar/NavGuts/index.svelte +87 -0
  133. package/dist/Components/Layout/NavBar/index.svelte +72 -0
  134. package/dist/Components/Layout/index.svelte +149 -0
  135. package/dist/Components/Layout/index.svelte.js +362 -0
  136. package/dist/Components/Link/index.svelte +46 -0
  137. package/dist/Components/Link/index.svelte.js +126 -0
  138. package/dist/Components/LoadingSuccessDiv/index.svelte +51 -0
  139. package/dist/Components/LoadingWheel/index.svelte +38 -0
  140. package/dist/Components/Location/index.svelte +85 -0
  141. package/dist/Components/Location/index.svelte.js +292 -0
  142. package/dist/Components/LocationInput/index.svelte +200 -0
  143. package/dist/Components/LocationInput/index.svelte.js +950 -0
  144. package/dist/Components/Number/index.svelte +47 -0
  145. package/dist/Components/Number/index.svelte.js +151 -0
  146. package/dist/Components/PhoneCountryCode/index.svelte +7 -0
  147. package/dist/Components/PhoneCountryCode/index.svelte.js +260 -0
  148. package/dist/Components/PhoneNumber/index.svelte +22 -0
  149. package/dist/Components/PhoneNumber/index.svelte.js +41 -0
  150. package/dist/Components/Popover/index.svelte +396 -0
  151. package/dist/Components/Popover/index.svelte.js +319 -0
  152. package/dist/Components/Qr/index.svelte +60 -0
  153. package/dist/Components/Qr/index.svelte.js +295 -0
  154. package/dist/Components/Slider/index.svelte +231 -0
  155. package/dist/Components/Slider/index.svelte.js +468 -0
  156. package/dist/Components/Spacer/index.svelte +41 -0
  157. package/dist/Components/StoragePicker/DisplayFile/index.svelte +15 -0
  158. package/dist/Components/StoragePicker/index.svelte +192 -0
  159. package/dist/Components/StoragePicker/index.svelte.js +593 -0
  160. package/dist/Components/SuccessCheck/index.svelte +56 -0
  161. package/dist/Components/TableAdvanced/ColumnInput/index.svelte +110 -0
  162. package/dist/Components/TableAdvanced/ColumnInput/index.svelte.js +494 -0
  163. package/dist/Components/TableAdvanced/FilterInput/index.svelte +54 -0
  164. package/dist/Components/TableAdvanced/FilterInput/index.svelte.js +247 -0
  165. package/dist/Components/TableAdvanced/Pagination/index.svelte +43 -0
  166. package/dist/Components/TableAdvanced/Pagination/index.svelte.js +97 -0
  167. package/dist/Components/TableAdvanced/SortByInput/index.svelte +79 -0
  168. package/dist/Components/TableAdvanced/SortByInput/index.svelte.js +191 -0
  169. package/dist/Components/TableAdvanced/index.svelte +268 -0
  170. package/dist/Components/TableAdvanced/index.svelte.js +1422 -0
  171. package/dist/Components/Tag/index.svelte +45 -0
  172. package/dist/Components/Tag/index.svelte.js +76 -0
  173. package/dist/Components/TextArrayInput/index.svelte +108 -0
  174. package/dist/Components/TextArrayInput/index.svelte.js +239 -0
  175. package/dist/Components/TextInput/PasswordTooltip/index.svelte +89 -0
  176. package/dist/Components/TextInput/index.svelte +223 -0
  177. package/dist/Components/TextInput/index.svelte.js +434 -0
  178. package/dist/Components/Time/index.svelte +7 -0
  179. package/dist/Components/Time/index.svelte.js +38 -0
  180. package/dist/Components/TimeInput/NumberToggler/index.svelte +34 -0
  181. package/dist/Components/TimeInput/NumberToggler/index.svelte.js +79 -0
  182. package/dist/Components/TimeInput/index.js +699 -0
  183. package/dist/Components/TimeInput/index.svelte +211 -0
  184. package/dist/Components/TimeInput/index.svelte.js +638 -0
  185. package/dist/Components/Tooltip/index.svelte +143 -0
  186. package/dist/Components/TransparentBackground/index.svelte +153 -0
  187. package/dist/Components/TypingDots/index.svelte +84 -0
  188. package/dist/Components/VariablePathInput/index.svelte +109 -0
  189. package/dist/Components/VariablePathInput/index.svelte.js +250 -0
  190. package/dist/Components/VideoTBD/index.svelte +100 -0
  191. package/dist/Components/XFollow/index.svelte +42 -0
  192. package/dist/Components/XPost/index.svelte +52 -0
  193. package/dist/Components/XPost/index.svelte.js +64 -0
  194. package/dist/Components/YoutubeVideo/index.svelte +73 -0
  195. package/dist/Components/YoutubeVideo/index.svelte.js +54 -0
  196. package/dist/actions/draggable.js +49 -0
  197. package/dist/actions/intersection_observer.js +24 -0
  198. package/dist/actions/no_spaces.js +33 -0
  199. package/dist/actions/numbers_only.js +26 -0
  200. package/dist/actions/scroll_y.js +28 -0
  201. package/dist/actions/stop_scroll_propagation_y.js +42 -0
  202. package/dist/actions/swipe_handler.js +295 -0
  203. package/dist/client/astc_formatting/index.js +1167 -0
  204. package/dist/client/docs/index.js +7612 -0
  205. package/dist/client/index.js +729 -0
  206. package/dist/client/types/index.js +4681 -0
  207. package/dist/index.js +161 -0
  208. package/dist/style.css +682 -0
  209. package/package.json +44 -0
  210. package/src/app.html +17 -0
  211. package/src/hooks.server.js +7 -0
  212. package/src/lib/Components/Alert/index.svelte +88 -0
  213. package/src/lib/Components/Alert/index.svelte.js +101 -0
  214. package/src/lib/Components/ArrowToggle/index.svelte +62 -0
  215. package/src/lib/Components/Attachment/index.svelte +69 -0
  216. package/src/lib/Components/Attachment/index.svelte.js +119 -0
  217. package/src/lib/Components/Audio/index.svelte +193 -0
  218. package/src/lib/Components/Audio/index.svelte.js +463 -0
  219. package/src/lib/Components/AudioEditor/index.svelte +253 -0
  220. package/src/lib/Components/AudioEditor/index.svelte.js +973 -0
  221. package/src/lib/Components/AudioEditor/samples/alloy-voice-sample.mp3 +0 -0
  222. package/src/lib/Components/AudioEditor/samples/echo-voice-sample.mp3 +0 -0
  223. package/src/lib/Components/AudioEditor/samples/fable-voice-sample.mp3 +0 -0
  224. package/src/lib/Components/AudioEditor/samples/nova-voice-sample.mp3 +0 -0
  225. package/src/lib/Components/AudioEditor/samples/onyx-voice-sample.mp3 +0 -0
  226. package/src/lib/Components/AudioEditor/samples/shimmer-voice-sample.mp3 +0 -0
  227. package/src/lib/Components/AuthCodeInput/index.svelte +85 -0
  228. package/src/lib/Components/AuthCodeInput/index.svelte.js +95 -0
  229. package/src/lib/Components/Breadcrumbs/index.svelte +27 -0
  230. package/src/lib/Components/Breadcrumbs/index.svelte.js +88 -0
  231. package/src/lib/Components/Button/index.svelte +721 -0
  232. package/src/lib/Components/Button/index.svelte.js +375 -0
  233. package/src/lib/Components/Chart/Klines/index.svelte +87 -0
  234. package/src/lib/Components/Chart/index.svelte +226 -0
  235. package/src/lib/Components/Chart/index.svelte.js +1084 -0
  236. package/src/lib/Components/ChartInput/DisplayNav/Klines/index.svelte +150 -0
  237. package/src/lib/Components/ChartInput/DisplayNav/Lines/index.svelte +45 -0
  238. package/src/lib/Components/ChartInput/DisplayNav/index.svelte +297 -0
  239. package/src/lib/Components/ChartInput/EditPanel/index.svelte +155 -0
  240. package/src/lib/Components/ChartInput/index.svelte +21 -0
  241. package/src/lib/Components/ChartInput/index.svelte.js +671 -0
  242. package/src/lib/Components/Checkbox/index.svelte +411 -0
  243. package/src/lib/Components/Checkbox/index.svelte.js +178 -0
  244. package/src/lib/Components/Code/index.svelte +23 -0
  245. package/src/lib/Components/Code/index.svelte.js +34 -0
  246. package/src/lib/Components/Color/index.svelte +51 -0
  247. package/src/lib/Components/Color/index.svelte.js +31 -0
  248. package/src/lib/Components/ColorInput/ChromaPicker/index.svelte +50 -0
  249. package/src/lib/Components/ColorInput/ColorPalette/index.svelte +62 -0
  250. package/src/lib/Components/ColorInput/OpacityPicker/index.svelte +68 -0
  251. package/src/lib/Components/ColorInput/ShowcasePicker/index.svelte +136 -0
  252. package/src/lib/Components/ColorInput/index.svelte +70 -0
  253. package/src/lib/Components/ColorInput/index.svelte.js +383 -0
  254. package/src/lib/Components/ConditionsInput/index.svelte +46 -0
  255. package/src/lib/Components/ConditionsInput/index.svelte.js +201 -0
  256. package/src/lib/Components/Confetti/index.svelte +98 -0
  257. package/src/lib/Components/Confetti/index.svelte.js +94 -0
  258. package/src/lib/Components/Content/index.svelte +471 -0
  259. package/src/lib/Components/Content/index.svelte.js +903 -0
  260. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Audio/index.svelte +31 -0
  261. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Audio/index.svelte.js +258 -0
  262. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/AudioAdvanced/index.svelte +31 -0
  263. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/AudioAdvanced/index.svelte.js +258 -0
  264. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Dropdown/index.svelte +58 -0
  265. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Dropdown/index.svelte.js +210 -0
  266. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Image/index.svelte +28 -0
  267. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Image/index.svelte.js +224 -0
  268. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Number/index.svelte +44 -0
  269. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Number/index.svelte.js +273 -0
  270. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte +41 -0
  271. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte.js +203 -0
  272. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Slider/index.svelte +19 -0
  273. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Slider/index.svelte.js +119 -0
  274. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TableAdvanced/index.svelte +60 -0
  275. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TableAdvanced/index.svelte.js +546 -0
  276. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Tag/index.svelte +47 -0
  277. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Tag/index.svelte.js +185 -0
  278. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TextInput/index.svelte +35 -0
  279. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TextInput/index.svelte.js +224 -0
  280. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TimeInput/index.svelte +20 -0
  281. package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TimeInput/index.svelte.js +87 -0
  282. package/src/lib/Components/ContentInput/AttributesInput/DefinedTypeInput/index.svelte +25 -0
  283. package/src/lib/Components/ContentInput/AttributesInput/DefinedTypeInput/index.svelte.js +101 -0
  284. package/src/lib/Components/ContentInput/AttributesInput/index.svelte +338 -0
  285. package/src/lib/Components/ContentInput/AttributesInput/index.svelte.js +1446 -0
  286. package/src/lib/Components/ContentInput/ContentPanelBuilder/AddElement/index.svelte +64 -0
  287. package/src/lib/Components/ContentInput/ContentPanelBuilder/AddElement/index.svelte.js +97 -0
  288. package/src/lib/Components/ContentInput/ContentPanelBuilder/ElementList/index.svelte +122 -0
  289. package/src/lib/Components/ContentInput/ContentPanelBuilder/index.svelte +41 -0
  290. package/src/lib/Components/ContentInput/index.svelte +50 -0
  291. package/src/lib/Components/ContentInput/index.svelte.js +1066 -0
  292. package/src/lib/Components/CronInput/index.svelte +78 -0
  293. package/src/lib/Components/CronInput/index.svelte.js +199 -0
  294. package/src/lib/Components/DataTypeInput/index.svelte +174 -0
  295. package/src/lib/Components/DataTypeInput/index.svelte.js +568 -0
  296. package/src/lib/Components/Dropdown/index.svelte +116 -0
  297. package/src/lib/Components/Dropdown/index.svelte.js +403 -0
  298. package/src/lib/Components/EmailAddress/index.svelte +22 -0
  299. package/src/lib/Components/EmailAddress/index.svelte.js +45 -0
  300. package/src/lib/Components/ErrorX/index.svelte +58 -0
  301. package/src/lib/Components/Eye/index.svelte +57 -0
  302. package/src/lib/Components/FileInput/index.svelte +146 -0
  303. package/src/lib/Components/FileInput/index.svelte.js +226 -0
  304. package/src/lib/Components/FunctionInput/Node/helpers/DefinedTargetInput/index.svelte +110 -0
  305. package/src/lib/Components/FunctionInput/Node/helpers/Field/index.svelte +109 -0
  306. package/src/lib/Components/FunctionInput/Node/helpers/Field/index.svelte.js +208 -0
  307. package/src/lib/Components/FunctionInput/Node/helpers/InlineDropArea/index.svelte +97 -0
  308. package/src/lib/Components/FunctionInput/Node/helpers/InlineDropArea/index.svelte.js +105 -0
  309. package/src/lib/Components/FunctionInput/Node/helpers/ObjectInput/index.svelte +198 -0
  310. package/src/lib/Components/FunctionInput/Node/helpers/StackArea/index.svelte +169 -0
  311. package/src/lib/Components/FunctionInput/Node/helpers/StackArea/index.svelte.js +152 -0
  312. package/src/lib/Components/FunctionInput/Node/index.svelte +144 -0
  313. package/src/lib/Components/FunctionInput/Node/index.svelte.js +130 -0
  314. package/src/lib/Components/FunctionInput/index.svelte +356 -0
  315. package/src/lib/Components/FunctionInput/index.svelte.js +1215 -0
  316. package/src/lib/Components/Hamburger/index.svelte +99 -0
  317. package/src/lib/Components/HorizScrollBox/index.svelte +145 -0
  318. package/src/lib/Components/Icon/index.svelte +412 -0
  319. package/src/lib/Components/Icon/index.svelte.js +117 -0
  320. package/src/lib/Components/IconInput/index.svelte +77 -0
  321. package/src/lib/Components/IconInput/index.svelte.js +260 -0
  322. package/src/lib/Components/Image/index.svelte +121 -0
  323. package/src/lib/Components/Image/index.svelte.js +114 -0
  324. package/src/lib/Components/ImageEditor/Image/CropBox/index.svelte +165 -0
  325. package/src/lib/Components/ImageEditor/Image/index.svelte +104 -0
  326. package/src/lib/Components/ImageEditor/Panels/AI/index.svelte +36 -0
  327. package/src/lib/Components/ImageEditor/Panels/Crop/index.svelte +96 -0
  328. package/src/lib/Components/ImageEditor/Panels/File/QualityPicker/index.svelte +124 -0
  329. package/src/lib/Components/ImageEditor/Panels/File/index.svelte +74 -0
  330. package/src/lib/Components/ImageEditor/Panels/Filters/index.svelte +46 -0
  331. package/src/lib/Components/ImageEditor/Panels/Resize/index.svelte +58 -0
  332. package/src/lib/Components/ImageEditor/index.svelte +91 -0
  333. package/src/lib/Components/ImageEditor/index.svelte.js +1907 -0
  334. package/src/lib/Components/ImageSlider/index.svelte +124 -0
  335. package/src/lib/Components/ImageSlider/index.svelte.js +99 -0
  336. package/src/lib/Components/InfoBox/index.svelte +89 -0
  337. package/src/lib/Components/Json/Nested/index.svelte +157 -0
  338. package/src/lib/Components/Json/index.svelte +60 -0
  339. package/src/lib/Components/Json/index.svelte.js +594 -0
  340. package/src/lib/Components/LabeledItem/index.svelte +102 -0
  341. package/src/lib/Components/Layout/NavBar/FullNav/index.svelte +53 -0
  342. package/src/lib/Components/Layout/NavBar/NavGuts/index.svelte +87 -0
  343. package/src/lib/Components/Layout/NavBar/index.svelte +72 -0
  344. package/src/lib/Components/Layout/index.svelte +149 -0
  345. package/src/lib/Components/Layout/index.svelte.js +362 -0
  346. package/src/lib/Components/Link/index.svelte +46 -0
  347. package/src/lib/Components/Link/index.svelte.js +126 -0
  348. package/src/lib/Components/LoadingSuccessDiv/index.svelte +51 -0
  349. package/src/lib/Components/LoadingWheel/index.svelte +38 -0
  350. package/src/lib/Components/Location/index.svelte +85 -0
  351. package/src/lib/Components/Location/index.svelte.js +292 -0
  352. package/src/lib/Components/LocationInput/index.svelte +200 -0
  353. package/src/lib/Components/LocationInput/index.svelte.js +950 -0
  354. package/src/lib/Components/Number/index.svelte +47 -0
  355. package/src/lib/Components/Number/index.svelte.js +151 -0
  356. package/src/lib/Components/PhoneCountryCode/index.svelte +7 -0
  357. package/src/lib/Components/PhoneCountryCode/index.svelte.js +260 -0
  358. package/src/lib/Components/PhoneNumber/index.svelte +22 -0
  359. package/src/lib/Components/PhoneNumber/index.svelte.js +41 -0
  360. package/src/lib/Components/Popover/index.svelte +396 -0
  361. package/src/lib/Components/Popover/index.svelte.js +319 -0
  362. package/src/lib/Components/Qr/index.svelte +60 -0
  363. package/src/lib/Components/Qr/index.svelte.js +295 -0
  364. package/src/lib/Components/Slider/index.svelte +231 -0
  365. package/src/lib/Components/Slider/index.svelte.js +468 -0
  366. package/src/lib/Components/Spacer/index.svelte +41 -0
  367. package/src/lib/Components/StoragePicker/DisplayFile/index.svelte +15 -0
  368. package/src/lib/Components/StoragePicker/index.svelte +192 -0
  369. package/src/lib/Components/StoragePicker/index.svelte.js +593 -0
  370. package/src/lib/Components/SuccessCheck/index.svelte +56 -0
  371. package/src/lib/Components/TableAdvanced/ColumnInput/index.svelte +110 -0
  372. package/src/lib/Components/TableAdvanced/ColumnInput/index.svelte.js +494 -0
  373. package/src/lib/Components/TableAdvanced/FilterInput/index.svelte +54 -0
  374. package/src/lib/Components/TableAdvanced/FilterInput/index.svelte.js +247 -0
  375. package/src/lib/Components/TableAdvanced/Pagination/index.svelte +43 -0
  376. package/src/lib/Components/TableAdvanced/Pagination/index.svelte.js +97 -0
  377. package/src/lib/Components/TableAdvanced/SortByInput/index.svelte +79 -0
  378. package/src/lib/Components/TableAdvanced/SortByInput/index.svelte.js +191 -0
  379. package/src/lib/Components/TableAdvanced/index.svelte +268 -0
  380. package/src/lib/Components/TableAdvanced/index.svelte.js +1422 -0
  381. package/src/lib/Components/Tag/index.svelte +45 -0
  382. package/src/lib/Components/Tag/index.svelte.js +76 -0
  383. package/src/lib/Components/TextArrayInput/index.svelte +108 -0
  384. package/src/lib/Components/TextArrayInput/index.svelte.js +239 -0
  385. package/src/lib/Components/TextInput/PasswordTooltip/index.svelte +89 -0
  386. package/src/lib/Components/TextInput/index.svelte +223 -0
  387. package/src/lib/Components/TextInput/index.svelte.js +434 -0
  388. package/src/lib/Components/Time/index.svelte +7 -0
  389. package/src/lib/Components/Time/index.svelte.js +38 -0
  390. package/src/lib/Components/TimeInput/NumberToggler/index.svelte +34 -0
  391. package/src/lib/Components/TimeInput/NumberToggler/index.svelte.js +79 -0
  392. package/src/lib/Components/TimeInput/index.js +699 -0
  393. package/src/lib/Components/TimeInput/index.svelte +211 -0
  394. package/src/lib/Components/TimeInput/index.svelte.js +638 -0
  395. package/src/lib/Components/Tooltip/index.svelte +143 -0
  396. package/src/lib/Components/TransparentBackground/index.svelte +153 -0
  397. package/src/lib/Components/TypingDots/index.svelte +84 -0
  398. package/src/lib/Components/VariablePathInput/index.svelte +109 -0
  399. package/src/lib/Components/VariablePathInput/index.svelte.js +250 -0
  400. package/src/lib/Components/VideoTBD/index.svelte +100 -0
  401. package/src/lib/Components/XFollow/index.svelte +42 -0
  402. package/src/lib/Components/XPost/index.svelte +52 -0
  403. package/src/lib/Components/XPost/index.svelte.js +64 -0
  404. package/src/lib/Components/YoutubeVideo/index.svelte +73 -0
  405. package/src/lib/Components/YoutubeVideo/index.svelte.js +54 -0
  406. package/src/lib/actions/draggable.js +49 -0
  407. package/src/lib/actions/intersection_observer.js +24 -0
  408. package/src/lib/actions/no_spaces.js +33 -0
  409. package/src/lib/actions/numbers_only.js +26 -0
  410. package/src/lib/actions/scroll_y.js +28 -0
  411. package/src/lib/actions/stop_scroll_propagation_y.js +42 -0
  412. package/src/lib/actions/swipe_handler.js +295 -0
  413. package/src/lib/client/astc_formatting/index.js +1167 -0
  414. package/src/lib/client/docs/index.js +7612 -0
  415. package/src/lib/client/index.js +729 -0
  416. package/src/lib/client/types/index.js +4681 -0
  417. package/src/lib/index.js +161 -0
  418. package/src/lib/style.css +682 -0
  419. package/src/notlib/assets/static/Logo/index.svelte +27 -0
  420. package/src/routes/+layout.js +8 -0
  421. package/src/routes/+layout.svelte +176 -0
  422. package/src/routes/+page.svelte +83 -0
  423. package/src/routes/[component]/+page.svelte +167 -0
  424. package/src/routes/[component]/Showcase/Alert/index.svelte +26 -0
  425. package/src/routes/[component]/Showcase/Audio/index.svelte +86 -0
  426. package/src/routes/[component]/Showcase/AudioEditor/index.svelte +93 -0
  427. package/src/routes/[component]/Showcase/AuthCodeInput/index.svelte +13 -0
  428. package/src/routes/[component]/Showcase/Breadcrumbs/index.svelte +44 -0
  429. package/src/routes/[component]/Showcase/Button/index.svelte +350 -0
  430. package/src/routes/[component]/Showcase/Chart/index.svelte +11117 -0
  431. package/src/routes/[component]/Showcase/Checkbox/index.svelte +52 -0
  432. package/src/routes/[component]/Showcase/Code/index.svelte +13 -0
  433. package/src/routes/[component]/Showcase/Color/index.svelte +28 -0
  434. package/src/routes/[component]/Showcase/ColorInput/index.svelte +35 -0
  435. package/src/routes/[component]/Showcase/ConditionsInput/index.svelte +18 -0
  436. package/src/routes/[component]/Showcase/Confetti/index.svelte +22 -0
  437. package/src/routes/[component]/Showcase/Content/index.svelte +144 -0
  438. package/src/routes/[component]/Showcase/ContentInput/index.svelte +358 -0
  439. package/src/routes/[component]/Showcase/CronInput/index.svelte +30 -0
  440. package/src/routes/[component]/Showcase/DocsDefinition/index.svelte +155 -0
  441. package/src/routes/[component]/Showcase/Dropdown/index.svelte +88 -0
  442. package/src/routes/[component]/Showcase/FileInput/index.svelte +40 -0
  443. package/src/routes/[component]/Showcase/FunctionInput/index.svelte +77 -0
  444. package/src/routes/[component]/Showcase/Icon/index.svelte +120 -0
  445. package/src/routes/[component]/Showcase/IconInput/index.svelte +15 -0
  446. package/src/routes/[component]/Showcase/Image/index.svelte +119 -0
  447. package/src/routes/[component]/Showcase/ImageEditor/index.svelte +89 -0
  448. package/src/routes/[component]/Showcase/ImageSlider/index.svelte +26 -0
  449. package/src/routes/[component]/Showcase/InfoBox/index.svelte +44 -0
  450. package/src/routes/[component]/Showcase/Json/index.svelte +80 -0
  451. package/src/routes/[component]/Showcase/LabeledItem/index.svelte +18 -0
  452. package/src/routes/[component]/Showcase/Link/index.svelte +15 -0
  453. package/src/routes/[component]/Showcase/LoadingWheel/index.svelte +10 -0
  454. package/src/routes/[component]/Showcase/Location/index.svelte +422 -0
  455. package/src/routes/[component]/Showcase/LocationInput/index.svelte +121 -0
  456. package/src/routes/[component]/Showcase/Number/index.svelte +55 -0
  457. package/src/routes/[component]/Showcase/Popover/index.svelte +225 -0
  458. package/src/routes/[component]/Showcase/Qr/index.svelte +77 -0
  459. package/src/routes/[component]/Showcase/Slider/index.svelte +92 -0
  460. package/src/routes/[component]/Showcase/Spacer/index.svelte +27 -0
  461. package/src/routes/[component]/Showcase/StoragePicker/index.svelte +139 -0
  462. package/src/routes/[component]/Showcase/TableAdvanced/index.svelte +888 -0
  463. package/src/routes/[component]/Showcase/Tag/index.svelte +27 -0
  464. package/src/routes/[component]/Showcase/TextArrayInput/index.svelte +23 -0
  465. package/src/routes/[component]/Showcase/TextInput/index.svelte +95 -0
  466. package/src/routes/[component]/Showcase/Time/index.svelte +43 -0
  467. package/src/routes/[component]/Showcase/TimeInput/index.svelte +100 -0
  468. package/src/routes/[component]/Showcase/Tooltip/index.svelte +37 -0
  469. package/src/routes/[component]/Showcase/TransparentBackground/index.svelte +26 -0
  470. package/src/routes/[component]/Showcase/XFollow/index.svelte +7 -0
  471. package/src/routes/[component]/Showcase/XPost/index.svelte +24 -0
  472. package/src/routes/[component]/Showcase/YoutubeVideo/index.svelte +17 -0
  473. package/src/routes/test/+page.svelte +53 -0
  474. package/static/apple-touch-icon.png +0 -0
  475. package/static/browserconfig.xml +9 -0
  476. package/static/favicon-96x96.png +0 -0
  477. package/static/favicon-inactive.svg +4 -0
  478. package/static/favicon.svg +14 -0
  479. package/static/fonts/ProximaVara.woff2 +0 -0
  480. package/static/fonts/Quicksand-VariableFont.woff2 +0 -0
  481. package/static/fonts/RobotoSerif-VariableFont.woff2 +0 -0
  482. package/static/icon.png +0 -0
  483. package/static/site.webmanifest +21 -0
  484. package/static/web-app-manifest-192x192.png +0 -0
  485. package/static/web-app-manifest-512x512.png +0 -0
  486. package/svelte.config.js +12 -0
  487. package/vite.config.js +6 -0
@@ -0,0 +1,903 @@
1
+ import { create_audio_manager } from "$lib/Components/Audio/index.svelte.js"
2
+ import { create_image_manager } from "$lib/Components/Image/index.svelte.js"
3
+ import { create_color_manager } from "$lib/Components/Color/index.svelte.js"
4
+ import { create_code_manager } from "$lib/Components/Code/index.svelte.js"
5
+ import { create_email_address_manager } from "$lib/Components/EmailAddress/index.svelte.js"
6
+ import { create_number_manager } from "$lib/Components/Number/index.svelte.js"
7
+ import { create_phone_number_manager } from "$lib/Components/PhoneNumber/index.svelte.js"
8
+ import { create_table_advanced_manager } from "$lib/Components/TableAdvanced/index.svelte.js"
9
+ import { create_icon_input_manager } from "$lib/Components/IconInput/index.svelte.js"
10
+ import { create_icon_manager } from "$lib/Components/Icon/index.svelte.js"
11
+ import { create_json_manager } from "$lib/Components/Json/index.svelte.js"
12
+ // import { create_tag_manager } from "$lib/Components/Tag/index.svelte.js" // might figure some function builder for conditions but tbd how to best handle
13
+ import { create_link_manager } from "$lib/Components/Link/index.svelte.js"
14
+ import { create_x_post_manager } from "$lib/Components/XPost/index.svelte.js"
15
+ import { create_youtube_video_manager } from "$lib/Components/YoutubeVideo/index.svelte.js"
16
+ import { create_slider_manager } from "$lib/Components/Slider/index.svelte.js"
17
+ import { create_checkbox_manager } from "$lib/Components/Checkbox/index.svelte.js"
18
+ import { create_text_input_manager } from "$lib/Components/TextInput/index.svelte.js"
19
+ import { create_color_input_manager } from "$lib/Components/ColorInput/index.svelte.js"
20
+ import { create_dropdown_manager } from "$lib/Components/Dropdown/index.svelte.js"
21
+ import { create_time_input_manager } from "$lib/Components/TimeInput/index.svelte.js"
22
+ import { create_time_manager } from "$lib/Components/Time/index.svelte.js"
23
+ import { create_location_input_manager } from "$lib/Components/LocationInput/index.svelte.js"
24
+ import { create_location_manager } from "$lib/Components/Location/index.svelte.js"
25
+ import { create_qr_manager } from "$lib/Components/Qr/index.svelte.js"
26
+ import { create_file_input_manager } from "$lib/Components/FileInput/index.svelte.js"
27
+ import { create_cron_input_manager } from "$lib/Components/CronInput/index.svelte.js"
28
+ import { create_button_manager } from "$lib/Components/Button/index.svelte.js"
29
+ import { node_types, deep_copy, set_closurable, create_unique_id, copy_to_clipboard } from "$lib/client/index.js"
30
+
31
+ export function create_content_manager(config) {
32
+ const id = create_unique_id(null, 20)
33
+ let is_dark_theme = $derived(set_closurable(config?.is_dark_theme, false))
34
+ let storage_path = $derived(set_closurable(config?.storage_path, "/api/v1/storage/{storage_id}"))
35
+ let variables = $derived(set_closurable(config?.variables, null))
36
+ let loops = $derived(set_closurable(config?.loops, null))
37
+ let mapkit_js_token = $derived(set_closurable(config?.mapkit_js_token, null))
38
+ let val_prepped = $state(null)
39
+
40
+ function get_variable_from_path(path) {
41
+ if (Array.isArray(path)) {
42
+ let combined_variables_loc = {
43
+ variables: variables,
44
+ loops: loops,
45
+ }
46
+ for (let path_item of path) {
47
+ if (Array.isArray(path_item)) {
48
+ let sub_val_from_path = get_variable_from_path(path_item)
49
+ combined_variables_loc = combined_variables_loc?.[sub_val_from_path]
50
+ } else {
51
+ combined_variables_loc = combined_variables_loc?.[path_item]
52
+ }
53
+ }
54
+ return combined_variables_loc
55
+ }
56
+ return null
57
+ }
58
+
59
+ function clean_variable_path(path) {
60
+ // eg. ['variables','dddd',['loops',0]] to ['variables','dddd',3]
61
+ if (Array.isArray(path)) {
62
+ let cleaned_path = []
63
+ for (let path_item of path) {
64
+ if (Array.isArray(path_item)) {
65
+ let sub_val_from_path = get_variable_from_path(path_item)
66
+ cleaned_path.push(sub_val_from_path)
67
+ } else {
68
+ cleaned_path.push(path_item)
69
+ }
70
+ }
71
+ return cleaned_path
72
+ }
73
+ return null
74
+ }
75
+
76
+ function clean_attributes_from_variable_path(attributes) {
77
+ let cleaned_attributes = attributes
78
+ if (Object.keys(attributes || {}).length) {
79
+ for (let [att_key, att_val] of Object.entries(attributes)) {
80
+ if (att_key.endsWith("_from_variable_path") && att_val != null) {
81
+ const clean_path = clean_variable_path(att_val)
82
+ const att_key_to_set = att_key.split("_from_variable_path")?.[0]
83
+ cleaned_attributes[att_key_to_set] = () => get_variable_from_path(clean_path)
84
+ }
85
+ }
86
+ }
87
+ return cleaned_attributes
88
+ }
89
+
90
+ function pass_event_down(input) {
91
+ console.log("pass_event_down", input)
92
+ if (input?.set_from_content_id == id) {
93
+ return
94
+ }
95
+ // val_prepped = prepare_component_and_children(config?.val)
96
+ // return
97
+ val_prepped.attributes = clean_attributes_from_variable_path(config?.val?.attributes)
98
+ if (["checkbox", "time", "location", "json"].includes(config?.val?.type_id)) {
99
+ // prob do this for more
100
+ setTimeout(() => {
101
+ val_prepped = prepare_component_and_children(config?.val)
102
+ }, 10)
103
+ return
104
+ } else if (config?.val?.type_id == "icon") {
105
+ val_prepped.manager.set_attributes(val_prepped.attributes)
106
+ }
107
+ if (Array.isArray(val_prepped?.children)) {
108
+ for (let child of val_prepped?.children) {
109
+ if (Array.isArray(child)) {
110
+ for (let child_item of child) {
111
+ if (typeof child_item?.pass_event_down == "function") {
112
+ child_item.pass_event_down(input)
113
+ }
114
+ }
115
+ } else if (typeof child?.pass_event_down == "function") {
116
+ child.pass_event_down(input)
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ async function set_variable_at_path(path, value, type) {
123
+ console.log("set_variable_at_path88", path, value, type)
124
+ if (!Array.isArray(path)) {
125
+ return
126
+ }
127
+ let cleaned_path = clean_variable_path(path)
128
+ if (typeof config?.on_event == "function") {
129
+ if (type == "insert") {
130
+ return config?.on_event({
131
+ type: "set_variables_insert",
132
+ set_from_content_id: id,
133
+ value: value,
134
+ index_to_insert_at: null, // tbd
135
+ variable_path_to_target: cleaned_path ?? null,
136
+ })
137
+ } else if (type == "delete") {
138
+ return config?.on_event({
139
+ type: "set_variables_delete",
140
+ set_from_content_id: id,
141
+ variable_path_to_target: cleaned_path ? [...cleaned_path, value] : [value],
142
+ })
143
+ } else if (type == "set_key") {
144
+ return config?.on_event({
145
+ type: "set_variables_key",
146
+ set_from_content_id: id,
147
+ variable_path_to_target: cleaned_path ?? null,
148
+ value: value,
149
+ })
150
+ } else {
151
+ return config?.on_event({
152
+ type: "set_variables",
153
+ set_from_content_id: id,
154
+ value: value,
155
+ variable_path_to_target: cleaned_path ?? null,
156
+ })
157
+ }
158
+ }
159
+ // maybe normalize some kinda return like { is_success: true, ...}
160
+ }
161
+
162
+ function get_default_children(val_loc) {
163
+ let is_children = false
164
+ let children = []
165
+ if (Array.isArray(val_loc?.children) && val_loc?.children.length > 0) {
166
+ is_children = true
167
+ for (let child of val_loc?.children) {
168
+ children.push(
169
+ create_content_manager({
170
+ val: child,
171
+ mapkit_js_token: mapkit_js_token,
172
+ table_options: config?.table_options,
173
+ on_search_table_row_ids: config?.on_search_table_row_ids,
174
+ storage_path: () => storage_path,
175
+ is_dark_theme: () => is_dark_theme,
176
+ variables: () => variables,
177
+ loops: () => loops,
178
+ on_event: config?.on_event,
179
+ })
180
+ )
181
+ }
182
+ }
183
+ return {
184
+ is_children: is_children,
185
+ children: children,
186
+ }
187
+ }
188
+
189
+ function prepare_component_and_children(val) {
190
+ let val_loc = deep_copy(val)
191
+ if (val_loc != null && typeof val_loc == "object" && val_loc.hasOwnProperty("attributes")) {
192
+ val_loc.attributes = clean_attributes_from_variable_path(val_loc?.attributes)
193
+ }
194
+ if (val_loc?.type_id == "audio") {
195
+ return {
196
+ type_id: val_loc?.type_id,
197
+ selector_id: val_loc?.selector_id,
198
+ attributes: val_loc?.attributes,
199
+ manager: create_audio_manager({ ...val_loc?.attributes, storage_path }),
200
+ }
201
+ } else if (val_loc?.type_id == "image") {
202
+ return {
203
+ type_id: val_loc?.type_id,
204
+ selector_id: val_loc?.selector_id,
205
+ manager: create_image_manager({ ...val_loc?.attributes, storage_path }),
206
+ attributes: val_loc?.attributes,
207
+ is_children: false,
208
+ children: [],
209
+ }
210
+ } else if (val_loc?.type_id == "youtube_video") {
211
+ return {
212
+ type_id: val_loc?.type_id,
213
+ selector_id: val_loc?.selector_id,
214
+ attributes: val_loc?.attributes,
215
+ manager: create_youtube_video_manager({
216
+ ...val_loc?.attributes,
217
+ is_dark_theme: val_loc?.attributes?.is_dark_theme ?? is_dark_theme,
218
+ }),
219
+ is_children: false,
220
+ children: [],
221
+ }
222
+ } else if (val_loc?.type_id == "x_post") {
223
+ return {
224
+ type_id: val_loc?.type_id,
225
+ selector_id: val_loc?.selector_id,
226
+ attributes: val_loc?.attributes,
227
+ manager: create_x_post_manager({
228
+ ...val_loc?.attributes,
229
+ is_dark_theme: val_loc?.attributes?.is_dark_theme ?? is_dark_theme,
230
+ }),
231
+ is_children: false,
232
+ children: [],
233
+ }
234
+ } else if (val_loc?.type_id == "link") {
235
+ const children_res = get_default_children(val_loc)
236
+ return {
237
+ type_id: val_loc?.type_id,
238
+ selector_id: val_loc?.selector_id,
239
+ attributes: val_loc?.attributes,
240
+ manager: create_link_manager({
241
+ ...val_loc?.attributes,
242
+ id: val_loc?.selector_id,
243
+ }),
244
+ is_children: children_res?.is_children,
245
+ children: children_res?.children,
246
+ }
247
+ } else if (val_loc?.type_id == "icon_input") {
248
+ const children_res = get_default_children(val_loc)
249
+ return {
250
+ type_id: val_loc?.type_id,
251
+ selector_id: val_loc?.selector_id,
252
+ attributes: val_loc?.attributes,
253
+ manager: create_icon_input_manager({
254
+ ...val_loc?.attributes,
255
+ id: val_loc?.selector_id,
256
+ on_finish: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
257
+ }),
258
+ is_children: children_res?.is_children,
259
+ children: children_res?.children,
260
+ }
261
+ } else if (val_loc?.type_id == "icon") {
262
+ const children_res = get_default_children(val_loc)
263
+ let icon_manager = create_icon_manager({
264
+ ...val_loc?.attributes,
265
+ id: val_loc?.selector_id,
266
+ icon_id: () => val_loc?.attributes?.icon_id,
267
+ })
268
+ return {
269
+ type_id: val_loc?.type_id,
270
+ selector_id: val_loc?.selector_id,
271
+ attributes: val_loc?.attributes,
272
+ manager: icon_manager,
273
+ is_children: children_res?.is_children,
274
+ children: children_res?.children,
275
+ }
276
+ } else if (val_loc?.type_id == "code") {
277
+ return {
278
+ type_id: val_loc?.type_id,
279
+ selector_id: val_loc?.selector_id,
280
+ attributes: val_loc?.attributes,
281
+ manager: create_code_manager({ ...val_loc?.attributes, is_dark_theme }),
282
+ is_children: false,
283
+ children: [],
284
+ }
285
+ } else if (val_loc?.type_id == "json") {
286
+ return {
287
+ type_id: val_loc?.type_id,
288
+ selector_id: val_loc?.selector_id,
289
+ attributes: val_loc?.attributes,
290
+ manager: create_json_manager({ ...val_loc?.attributes }),
291
+ is_children: false,
292
+ children: [],
293
+ }
294
+ } else if (val_loc?.type_id == "code_inline") {
295
+ return {
296
+ type_id: val_loc?.type_id,
297
+ selector_id: val_loc?.selector_id,
298
+ attributes: val_loc?.attributes,
299
+ copy_button_manager: create_button_manager({
300
+ type: "soft",
301
+ support_icon: "clipboard",
302
+ is_uniform: true,
303
+ min_height: 2.4,
304
+ icon_size: 1.6,
305
+ border_radius: 0.5,
306
+ is_success_animation: true,
307
+ on_click: () => {
308
+ copy_to_clipboard(val_loc?.attributes?.content)
309
+ },
310
+ }),
311
+ is_children: false,
312
+ children: [],
313
+ }
314
+ } else if (val_loc?.type_id == "number") {
315
+ return {
316
+ type_id: val_loc?.type_id,
317
+ selector_id: val_loc?.selector_id,
318
+ attributes: val_loc?.attributes,
319
+ manager: create_number_manager({ ...val_loc?.attributes }),
320
+ is_children: false,
321
+ children: [],
322
+ }
323
+ } else if (val_loc?.type_id == "slider") {
324
+ return {
325
+ type_id: val_loc?.type_id,
326
+ selector_id: val_loc?.selector_id,
327
+ attributes: val_loc?.attributes,
328
+ manager: create_slider_manager({
329
+ ...val_loc?.attributes,
330
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
331
+ }),
332
+ is_children: false,
333
+ children: [],
334
+ }
335
+ } else if (val_loc?.type_id == "checkbox") {
336
+ return {
337
+ type_id: val_loc?.type_id,
338
+ selector_id: val_loc?.selector_id,
339
+ attributes: val_loc?.attributes,
340
+ manager: create_checkbox_manager({
341
+ ...val_loc?.attributes,
342
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
343
+ }),
344
+ is_children: false,
345
+ children: [],
346
+ }
347
+ } else if (val_loc?.type_id == "text_input") {
348
+ return {
349
+ type_id: val_loc?.type_id,
350
+ selector_id: val_loc?.selector_id,
351
+ attributes: val_loc?.attributes,
352
+ manager: create_text_input_manager({
353
+ ...val_loc?.attributes,
354
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
355
+ }),
356
+ is_children: false,
357
+ children: [],
358
+ }
359
+ } else if (val_loc?.type_id == "number_input") {
360
+ return {
361
+ type_id: val_loc?.type_id,
362
+ selector_id: val_loc?.selector_id,
363
+ attributes: val_loc?.attributes,
364
+ manager: create_text_input_manager({
365
+ type: "number",
366
+ ...val_loc?.attributes,
367
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
368
+ }),
369
+ is_children: false,
370
+ children: [],
371
+ }
372
+ } else if (val_loc?.type_id == "color_input") {
373
+ return {
374
+ type_id: val_loc?.type_id,
375
+ selector_id: val_loc?.selector_id,
376
+ attributes: val_loc?.attributes,
377
+ manager: create_color_input_manager({
378
+ ...val_loc?.attributes,
379
+ on_finish: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
380
+ }),
381
+ is_children: false,
382
+ children: [],
383
+ }
384
+ } else if (val_loc?.type_id == "color") {
385
+ return {
386
+ type_id: val_loc?.type_id,
387
+ selector_id: val_loc?.selector_id,
388
+ attributes: val_loc?.attributes,
389
+ manager: create_color_manager({
390
+ ...val_loc?.attributes,
391
+ }),
392
+ is_children: false,
393
+ children: [],
394
+ }
395
+ } else if (val_loc?.type_id == "dropdown") {
396
+ return {
397
+ type_id: val_loc?.type_id,
398
+ selector_id: val_loc?.selector_id,
399
+ attributes: val_loc?.attributes,
400
+ manager: create_dropdown_manager({
401
+ ...val_loc?.attributes,
402
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
403
+ }),
404
+ is_children: false,
405
+ children: [],
406
+ }
407
+ } else if (val_loc?.type_id == "time_input") {
408
+ return {
409
+ type_id: val_loc?.type_id,
410
+ selector_id: val_loc?.selector_id,
411
+ attributes: val_loc?.attributes,
412
+ manager: create_time_input_manager({
413
+ ...val_loc?.attributes,
414
+ on_finish: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
415
+ }),
416
+ is_children: false,
417
+ children: [],
418
+ }
419
+ } else if (val_loc?.type_id == "time") {
420
+ return {
421
+ type_id: val_loc?.type_id,
422
+ selector_id: val_loc?.selector_id,
423
+ attributes: val_loc?.attributes,
424
+ manager: create_time_manager({
425
+ ...val_loc?.attributes,
426
+ on_finish: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
427
+ }),
428
+ is_children: false,
429
+ children: [],
430
+ }
431
+ } else if (val_loc?.type_id == "cron_input") {
432
+ return {
433
+ type_id: val_loc?.type_id,
434
+ selector_id: val_loc?.selector_id,
435
+ attributes: val_loc?.attributes,
436
+ manager: create_cron_input_manager({
437
+ ...val_loc?.attributes,
438
+ on_finish: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
439
+ }),
440
+ is_children: false,
441
+ children: [],
442
+ }
443
+ } else if (val_loc?.type_id == "cron") {
444
+ return {
445
+ type_id: val_loc?.type_id,
446
+ selector_id: val_loc?.selector_id,
447
+ attributes: val_loc?.attributes,
448
+ is_children: false,
449
+ children: [],
450
+ }
451
+ } else if (val_loc?.type_id == "phone_input") {
452
+ return {
453
+ type_id: val_loc?.type_id,
454
+ selector_id: val_loc?.selector_id,
455
+ attributes: val_loc?.attributes,
456
+ manager: create_text_input_manager({
457
+ type: "phone_number",
458
+ ...val_loc?.attributes,
459
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
460
+ }),
461
+ is_children: false,
462
+ children: [],
463
+ }
464
+ } else if (val_loc?.type_id == "phone_number") {
465
+ return {
466
+ type_id: val_loc?.type_id,
467
+ selector_id: val_loc?.selector_id,
468
+ attributes: val_loc?.attributes,
469
+ manager: create_phone_number_manager({
470
+ ...val_loc?.attributes,
471
+ }),
472
+ is_children: false,
473
+ children: [],
474
+ }
475
+ } else if (val_loc?.type_id == "email_address") {
476
+ return {
477
+ type_id: val_loc?.type_id,
478
+ selector_id: val_loc?.selector_id,
479
+ attributes: val_loc?.attributes,
480
+ manager: create_email_address_manager({
481
+ ...val_loc?.attributes,
482
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
483
+ }),
484
+ is_children: false,
485
+ children: [],
486
+ }
487
+ } else if (val_loc?.type_id == "location_input") {
488
+ return {
489
+ type_id: val_loc?.type_id,
490
+ selector_id: val_loc?.selector_id,
491
+ attributes: val_loc?.attributes,
492
+ manager: create_location_input_manager({
493
+ ...val_loc?.attributes,
494
+ mapkit_js_token: mapkit_js_token,
495
+ on_finish: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
496
+ }),
497
+ is_children: false,
498
+ children: [],
499
+ }
500
+ } else if (val_loc?.type_id == "location") {
501
+ return {
502
+ type_id: val_loc?.type_id,
503
+ selector_id: val_loc?.selector_id,
504
+ attributes: val_loc?.attributes,
505
+ manager: create_location_manager({
506
+ ...val_loc?.attributes,
507
+ mapkit_js_token: mapkit_js_token,
508
+ }),
509
+ is_children: false,
510
+ children: [],
511
+ }
512
+ } else if (val_loc?.type_id == "table_advanced") {
513
+ return {
514
+ type_id: val_loc?.type_id,
515
+ selector_id: val_loc?.selector_id,
516
+ attributes: val_loc?.attributes,
517
+ manager: create_table_advanced_manager({
518
+ ...val_loc?.attributes,
519
+ variables: () => variables,
520
+ loops: () => loops,
521
+ on_event: config?.on_event, // or maybe intercept and call with adjusted params tbd
522
+ // on_event: (input) => {
523
+ // if (input?.type == "update_row") {
524
+ // if (typeof input?.row_i == "number" && Array.isArray(val_loc?.attributes?.rows_data_from_variable_path)) {
525
+ // return set_variable_at_path(
526
+ // [...val_loc?.attributes?.rows_data_from_variable_path, input?.row_i],
527
+ // input?.value
528
+ // )
529
+ // }
530
+ // } else if (input?.type == "insert_row") {
531
+ // if (Array.isArray(val_loc?.attributes?.rows_data_from_variable_path)) {
532
+ // return set_variable_at_path(val_loc?.attributes?.rows_data_from_variable_path, input?.value, "insert")
533
+ // }
534
+ // } else if (input?.type == "delete_row") {
535
+ // if (typeof input?.row_i == "number" && Array.isArray(val_loc?.attributes?.rows_data_from_variable_path)) {
536
+ // return set_variable_at_path(
537
+ // [...val_loc?.attributes?.rows_data_from_variable_path, input?.row_i],
538
+ // null,
539
+ // "delete"
540
+ // )
541
+ // }
542
+ // }
543
+ }),
544
+ is_children: false,
545
+ children: [],
546
+ }
547
+ } else if (val_loc?.type_id == "qr") {
548
+ return {
549
+ type_id: val_loc?.type_id,
550
+ selector_id: val_loc?.selector_id,
551
+ attributes: val_loc?.attributes,
552
+ manager: create_qr_manager({
553
+ ...val_loc?.attributes,
554
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
555
+ }),
556
+ is_children: false,
557
+ children: [],
558
+ }
559
+ } else if (val_loc?.type_id == "file_input") {
560
+ return {
561
+ type_id: val_loc?.type_id,
562
+ selector_id: val_loc?.selector_id,
563
+ attributes: val_loc?.attributes,
564
+ manager: create_file_input_manager({
565
+ ...val_loc?.attributes,
566
+ // height: "100%",
567
+ on_get_file: (input) => {
568
+ console.log("on_get_file_tbd", input)
569
+ set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input)
570
+ },
571
+ }),
572
+ is_children: false,
573
+ children: [],
574
+ }
575
+ } else if (val_loc?.type_id == "slot") {
576
+ console.log("slot666", val_loc)
577
+ return {
578
+ type_id: val_loc?.type_id,
579
+ selector_id: val_loc?.selector_id,
580
+ attributes: val_loc?.attributes,
581
+ is_children: false,
582
+ children: [],
583
+ }
584
+ } else if (val_loc?.type_id == "show_conditions") {
585
+ let is_children = false
586
+ let children = []
587
+ if (Array.isArray(val_loc?.children)) {
588
+ is_children = true
589
+ for (let child of val_loc?.children) {
590
+ children.push(
591
+ create_content_manager({
592
+ val: child,
593
+ mapkit_js_token: mapkit_js_token,
594
+ table_options: config?.table_options,
595
+ on_search_table_row_ids: config?.on_search_table_row_ids,
596
+ storage_path: () => storage_path,
597
+ is_dark_theme: () => is_dark_theme,
598
+ variables: () => variables,
599
+ loops: () => loops,
600
+ on_event: config?.on_event,
601
+ })
602
+ )
603
+ }
604
+ }
605
+ return {
606
+ type_id: "show_conditions",
607
+ selector_id: val_loc?.selector_id,
608
+ attributes: val_loc?.attributes,
609
+ is_children: is_children,
610
+ children: children,
611
+ }
612
+ } else if (val_loc?.type_id == "loop") {
613
+ let prepped_children = []
614
+ const static_val = set_closurable(val_loc?.attributes?.val)
615
+ if (Array.isArray(static_val)) {
616
+ for (let i = 0; i < static_val.length; i++) {
617
+ let is_children = false
618
+ let children = []
619
+ if (Array.isArray(val_loc?.children) && val_loc?.children.length > 0) {
620
+ is_children = true
621
+ for (let child of val_loc?.children) {
622
+ const child_content_manager = create_content_manager({
623
+ val: child,
624
+ mapkit_js_token: mapkit_js_token,
625
+ table_options: config?.table_options,
626
+ on_search_table_row_ids: config?.on_search_table_row_ids,
627
+ storage_path: () => storage_path,
628
+ is_dark_theme: () => is_dark_theme,
629
+ variables: () => variables,
630
+ loops: () => [i, ...(Array.isArray(loops) ? loops : [])],
631
+ on_event: config?.on_event,
632
+ })
633
+ children.push(child_content_manager)
634
+ }
635
+ }
636
+ prepped_children.push(children)
637
+ }
638
+ }
639
+ return {
640
+ type_id: val_loc?.type_id,
641
+ selector_id: val_loc?.selector_id,
642
+ attributes: val_loc?.attributes,
643
+ is_children: true,
644
+ children: prepped_children,
645
+ }
646
+ } else if (val_loc?.type_id == "array_uniform_input") {
647
+ let prepped_children = []
648
+ const val_static = set_closurable(val_loc?.attributes?.val, null)
649
+ if (Array.isArray(val_static)) {
650
+ for (let i = 0; i < val_static.length; i++) {
651
+ let is_children = false
652
+ let children = []
653
+ if (Array.isArray(val_loc?.children) && val_loc?.children.length > 0) {
654
+ is_children = true
655
+ for (let child of val_loc?.children) {
656
+ children.push(
657
+ create_content_manager({
658
+ val: child,
659
+ mapkit_js_token: mapkit_js_token,
660
+ table_options: config?.table_options,
661
+ on_search_table_row_ids: config?.on_search_table_row_ids,
662
+ storage_path: () => storage_path,
663
+ is_dark_theme: () => is_dark_theme,
664
+ variables: () => variables,
665
+ loops: () => [i, ...(Array.isArray(loops) ? loops : [])],
666
+ on_event: config?.on_event,
667
+ })
668
+ )
669
+ }
670
+ }
671
+ prepped_children.push({
672
+ is_children: is_children,
673
+ children: children,
674
+ remove_item_button_manager: create_button_manager({
675
+ type: "outlined",
676
+ support_icon: "x",
677
+ is_uniform: true,
678
+ on_click: async () => {
679
+ const res = await set_variable_at_path(val_loc?.attributes?.val_from_variable_path, i, "delete")
680
+ if (res?.is_success) {
681
+ val_prepped = prepare_component_and_children(config?.val)
682
+ }
683
+ },
684
+ }),
685
+ })
686
+ }
687
+ }
688
+ return {
689
+ type_id: val_loc?.type_id,
690
+ selector_id: val_loc?.selector_id,
691
+ attributes: val_loc?.attributes,
692
+ is_children: true,
693
+ children: prepped_children,
694
+ label: val_loc?.attributes?.label ?? null,
695
+ add_item_button_manager: create_button_manager({
696
+ type: "outlined",
697
+ text: "Add Item",
698
+ support_icon: "plus",
699
+ is_compressed: true,
700
+ on_click: async () => {
701
+ const res = await set_variable_at_path(val_loc?.attributes?.val_from_variable_path, null, "insert")
702
+ if (res?.is_success) {
703
+ val_prepped = prepare_component_and_children(config?.val)
704
+ }
705
+ },
706
+ }),
707
+ }
708
+ } else if (val_loc?.type_id == "object_uniform_input") {
709
+ let prepped_children = []
710
+ const val_static = set_closurable(val_loc?.attributes?.val, null)
711
+ if (Object.keys(val_static || {}).length > 0) {
712
+ for (let [key, val] of Object.entries(val_static)) {
713
+ let is_children = false
714
+ let children = []
715
+ if (Array.isArray(val_loc?.children) && val_loc?.children.length > 0) {
716
+ is_children = true
717
+ for (let child of val_loc?.children) {
718
+ children.push(
719
+ create_content_manager({
720
+ val: child,
721
+ mapkit_js_token: mapkit_js_token,
722
+ table_options: config?.table_options,
723
+ on_search_table_row_ids: config?.on_search_table_row_ids,
724
+ storage_path: () => storage_path,
725
+ is_dark_theme: () => is_dark_theme,
726
+ variables: () => variables,
727
+ loops: () => [key, ...(Array.isArray(loops) ? loops : [])],
728
+ on_event: config?.on_event,
729
+ })
730
+ )
731
+ }
732
+ }
733
+ prepped_children.push({
734
+ is_children: is_children,
735
+ children: children,
736
+ item_key_table_row_dropdown_manager: create_dropdown_manager({
737
+ val: key,
738
+ is_searchable: true,
739
+ is_button_compressed: true,
740
+ is_set_null_button: true,
741
+ options: [],
742
+ on_search: async (input) => {
743
+ if (typeof config?.on_search_table_row_ids == "function") {
744
+ const res = await config?.on_search_table_row_ids({
745
+ table_id: val_loc?.attributes?.property_key_table_id,
746
+ ...input,
747
+ })
748
+ return {
749
+ ...res,
750
+ ...input,
751
+ }
752
+ }
753
+ return {
754
+ is_success: false,
755
+ ...input,
756
+ }
757
+ },
758
+ on_item_click: async (input) => {
759
+ const res = await set_variable_at_path(
760
+ [
761
+ ...(Array.isArray(val_loc?.attributes?.val_from_variable_path)
762
+ ? val_loc?.attributes?.val_from_variable_path
763
+ : []),
764
+ key,
765
+ ],
766
+ input?.key,
767
+ "set_key"
768
+ )
769
+ if (res?.is_success) {
770
+ val_prepped = prepare_component_and_children(config?.val)
771
+ }
772
+ },
773
+ }),
774
+ item_key_text_input_manager: create_text_input_manager({
775
+ placeholder: "key",
776
+ is_popover_edit_content: true,
777
+ is_popover: true,
778
+ val: key,
779
+ on_finish: async (input) => {
780
+ const res = await set_variable_at_path(
781
+ [
782
+ ...(Array.isArray(val_loc?.attributes?.val_from_variable_path)
783
+ ? val_loc?.attributes?.val_from_variable_path
784
+ : []),
785
+ key,
786
+ ],
787
+ input,
788
+ "set_key"
789
+ )
790
+ if (res?.is_success) {
791
+ val_prepped = prepare_component_and_children(config?.val)
792
+ }
793
+ },
794
+ }),
795
+ remove_item_button_manager: create_button_manager({
796
+ type: "outlined",
797
+ support_icon: "x",
798
+ is_uniform: true,
799
+ on_click: async () => {
800
+ const res = await set_variable_at_path(val_loc?.attributes?.val_from_variable_path, key, "delete")
801
+ if (res?.is_success) {
802
+ val_prepped = prepare_component_and_children(config?.val)
803
+ }
804
+ },
805
+ }),
806
+ })
807
+ }
808
+ }
809
+ return {
810
+ type_id: val_loc?.type_id,
811
+ selector_id: val_loc?.selector_id,
812
+ attributes: val_loc?.attributes,
813
+ is_children: true,
814
+ children: prepped_children,
815
+ label: val_loc?.attributes?.label ?? null,
816
+ add_item_button_manager: create_button_manager({
817
+ type: "outlined",
818
+ text: "Add Item",
819
+ support_icon: "plus",
820
+ is_compressed: true,
821
+ on_click: async () => {
822
+ const res = await set_variable_at_path(
823
+ [
824
+ ...(Array.isArray(val_loc?.attributes?.val_from_variable_path)
825
+ ? val_loc?.attributes?.val_from_variable_path
826
+ : []),
827
+ create_unique_id(null, 8),
828
+ ],
829
+ null
830
+ )
831
+ if (res?.is_success) {
832
+ val_prepped = prepare_component_and_children(config?.val)
833
+ }
834
+ },
835
+ }),
836
+ }
837
+ } else if (val_loc?.type_id == "table_row_id_input") {
838
+ let dropdown_manager = create_dropdown_manager({
839
+ is_searchable: true,
840
+ is_button_compressed: true,
841
+ val: set_closurable(val_loc?.attributes?.val, null),
842
+ label: val_loc?.attributes?.label ?? null,
843
+ options: [],
844
+ on_search: async (input) => {
845
+ if (typeof config?.on_search_table_row_ids == "function") {
846
+ const res = await config?.on_search_table_row_ids({
847
+ table_id: val_loc?.attributes?.table_id,
848
+ ...input,
849
+ })
850
+ return {
851
+ ...res,
852
+ ...input,
853
+ }
854
+ }
855
+ return {
856
+ is_success: false,
857
+ ...input,
858
+ }
859
+ },
860
+ on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
861
+ })
862
+ console.log("table_dropdown", { val_loc, val_from: val_loc?.attributes?.val_from_variable_path })
863
+ return {
864
+ type_id: val_loc?.type_id,
865
+ selector_id: val_loc?.selector_id,
866
+ attributes: val_loc?.attributes,
867
+ manager: dropdown_manager,
868
+ is_children: false,
869
+ children: [],
870
+ }
871
+ } else if (node_types?.hasOwnProperty(val_loc?.type_id) || val_loc?.type_id == "children") {
872
+ const children_res = get_default_children(val_loc)
873
+ return {
874
+ type_id: val_loc?.type_id,
875
+ selector_id: val_loc?.selector_id,
876
+ attributes: val_loc?.attributes,
877
+ is_children: children_res?.is_children,
878
+ children: children_res?.children,
879
+ }
880
+ } else {
881
+ console.log("else", deep_copy(val_loc))
882
+ }
883
+ }
884
+
885
+ function init(config) {
886
+ val_prepped = prepare_component_and_children(config?.val)
887
+ }
888
+
889
+ init(config)
890
+
891
+ return {
892
+ get val_prepped() {
893
+ return val_prepped
894
+ },
895
+ get variables() {
896
+ return variables
897
+ },
898
+ get loops() {
899
+ return loops
900
+ },
901
+ pass_event_down,
902
+ }
903
+ }