@lobb-js/studio 0.1.31 → 0.1.32

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 (364) hide show
  1. package/{src/lib/components → dist}/LlmButton.svelte +2 -2
  2. package/dist/LlmButton.svelte.d.ts +17 -0
  3. package/{src → dist}/Studio.svelte +15 -15
  4. package/dist/Studio.svelte.d.ts +6 -0
  5. package/{src/lib/components → dist}/alertView.svelte +1 -1
  6. package/dist/alertView.svelte.d.ts +8 -0
  7. package/{src/lib/components → dist}/breadCrumbs.svelte +2 -2
  8. package/dist/breadCrumbs.svelte.d.ts +3 -0
  9. package/{src/lib/components → dist}/combobox.svelte +4 -4
  10. package/dist/combobox.svelte.d.ts +15 -0
  11. package/{src/lib/components → dist}/confirmationDialog/confirmationDialog.svelte +1 -1
  12. package/dist/confirmationDialog/confirmationDialog.svelte.d.ts +8 -0
  13. package/dist/confirmationDialog/store.svelte.d.ts +1 -0
  14. package/dist/confirmationDialog/store.svelte.js +69 -0
  15. package/{src/lib/components → dist}/createManyButton.svelte +2 -2
  16. package/dist/createManyButton.svelte.d.ts +8 -0
  17. package/{src/lib/components → dist}/dataTable/childRecords.svelte +2 -2
  18. package/dist/dataTable/childRecords.svelte.d.ts +9 -0
  19. package/{src/lib/components → dist}/dataTable/dataTable.svelte +3 -3
  20. package/dist/dataTable/dataTable.svelte.d.ts +15 -0
  21. package/{src/lib/components → dist}/dataTable/fieldCell.svelte +1 -1
  22. package/dist/dataTable/fieldCell.svelte.d.ts +10 -0
  23. package/{src/lib/components → dist}/dataTable/filter.svelte +2 -2
  24. package/dist/dataTable/filter.svelte.d.ts +10 -0
  25. package/{src/lib/components → dist}/dataTable/filterButton.svelte +1 -1
  26. package/dist/dataTable/filterButton.svelte.d.ts +8 -0
  27. package/dist/dataTable/footer.svelte.d.ts +8 -0
  28. package/{src/lib/components → dist}/dataTable/header.svelte +2 -2
  29. package/dist/dataTable/header.svelte.d.ts +10 -0
  30. package/{src/lib/components → dist}/dataTable/sort.svelte +2 -2
  31. package/dist/dataTable/sort.svelte.d.ts +8 -0
  32. package/{src/lib/components → dist}/dataTable/sortButton.svelte +2 -2
  33. package/dist/dataTable/sortButton.svelte.d.ts +8 -0
  34. package/dist/dataTable/table.svelte.d.ts +32 -0
  35. package/dist/dataTable/utils.d.ts +7 -0
  36. package/dist/dataTable/utils.js +111 -0
  37. package/{src/lib/components → dist}/detailView/create/children.svelte +3 -3
  38. package/dist/detailView/create/children.svelte.d.ts +8 -0
  39. package/{src/lib/components → dist}/detailView/create/createDetailView.svelte +6 -6
  40. package/dist/detailView/create/createDetailView.svelte.d.ts +18 -0
  41. package/{src/lib/components → dist}/detailView/create/createDetailViewButton.svelte +2 -2
  42. package/dist/detailView/create/createDetailViewButton.svelte.d.ts +11 -0
  43. package/{src/lib/components → dist}/detailView/create/createManyView.svelte +5 -5
  44. package/dist/detailView/create/createManyView.svelte.d.ts +16 -0
  45. package/{src/lib/components → dist}/detailView/create/subRecords.svelte +1 -1
  46. package/dist/detailView/create/subRecords.svelte.d.ts +8 -0
  47. package/dist/detailView/detailViewForm.svelte.d.ts +48 -0
  48. package/dist/detailView/fieldCustomInput.svelte.d.ts +10 -0
  49. package/{src/lib/components → dist}/detailView/fieldInput.svelte +4 -4
  50. package/dist/detailView/fieldInput.svelte.d.ts +10 -0
  51. package/{src/lib/components → dist}/detailView/fieldInputReplacement.svelte +1 -1
  52. package/dist/detailView/fieldInputReplacement.svelte.d.ts +11 -0
  53. package/dist/detailView/store.svelte.d.ts +4 -0
  54. package/dist/detailView/store.svelte.js +125 -0
  55. package/{src/lib/components → dist}/detailView/update/children.svelte +4 -4
  56. package/dist/detailView/update/children.svelte.d.ts +7 -0
  57. package/{src/lib/components → dist}/detailView/update/updateDetailView.svelte +6 -6
  58. package/dist/detailView/update/updateDetailView.svelte.d.ts +19 -0
  59. package/{src/lib/components → dist}/detailView/update/updateDetailViewButton.svelte +2 -2
  60. package/dist/detailView/update/updateDetailViewButton.svelte.d.ts +11 -0
  61. package/dist/detailView/utils.d.ts +8 -0
  62. package/dist/detailView/utils.js +165 -0
  63. package/{src/lib/components → dist}/diffViewer.svelte +1 -1
  64. package/dist/diffViewer.svelte.d.ts +9 -0
  65. package/{src/lib/components → dist}/drawer.svelte +1 -1
  66. package/dist/drawer.svelte.d.ts +8 -0
  67. package/{src/lib/components → dist}/extensionsComponents.svelte +1 -2
  68. package/dist/extensionsComponents.svelte.d.ts +11 -0
  69. package/dist/foreingKeyInput.svelte.d.ts +11 -0
  70. package/{src/lib/components → dist}/header.svelte +1 -1
  71. package/dist/header.svelte.d.ts +6 -0
  72. package/dist/loadingTypesForMonacoEditor.d.ts +7 -0
  73. package/dist/loadingTypesForMonacoEditor.js +72 -0
  74. package/{src/lib/components → dist}/miniSidebar.svelte +7 -7
  75. package/dist/miniSidebar.svelte.d.ts +20 -0
  76. package/{src/lib/components → dist}/monacoEditor.svelte +1 -1
  77. package/dist/monacoEditor.svelte.d.ts +13 -0
  78. package/{src/lib/components → dist}/rangeCalendarButton.svelte +4 -4
  79. package/dist/rangeCalendarButton.svelte.d.ts +7 -0
  80. package/{src/lib/components → dist}/selectRecord.svelte +1 -1
  81. package/dist/selectRecord.svelte.d.ts +15 -0
  82. package/{src/lib/components → dist}/setServerPage.svelte +2 -2
  83. package/dist/setServerPage.svelte.d.ts +18 -0
  84. package/{src/lib/components/sidebar/index.ts → dist/sidebar/index.d.ts} +1 -2
  85. package/dist/sidebar/index.js +3 -0
  86. package/{src/lib/components → dist}/sidebar/sidebar.svelte +1 -1
  87. package/dist/sidebar/sidebar.svelte.d.ts +17 -0
  88. package/dist/sidebar/sidebarElements.svelte.d.ts +19 -0
  89. package/dist/sidebar/sidebarTrigger.svelte.d.ts +7 -0
  90. package/{src/lib/components → dist}/singletone.svelte +1 -1
  91. package/dist/singletone.svelte.d.ts +6 -0
  92. package/{src/lib/components → dist}/ui/accordion/accordion-content.svelte +1 -1
  93. package/dist/ui/accordion/accordion-content.svelte.d.ts +4 -0
  94. package/{src/lib/components → dist}/ui/accordion/accordion-item.svelte +1 -1
  95. package/dist/ui/accordion/accordion-item.svelte.d.ts +4 -0
  96. package/{src/lib/components → dist}/ui/accordion/accordion-trigger.svelte +1 -1
  97. package/dist/ui/accordion/accordion-trigger.svelte.d.ts +7 -0
  98. package/dist/ui/accordion/index.d.ts +6 -0
  99. package/{src/lib/components/ui/accordion/index.ts → dist/ui/accordion/index.js} +4 -13
  100. package/{src/lib/components → dist}/ui/alert/alert-description.svelte +1 -1
  101. package/dist/ui/alert/alert-description.svelte.d.ts +5 -0
  102. package/{src/lib/components → dist}/ui/alert/alert-title.svelte +1 -1
  103. package/dist/ui/alert/alert-title.svelte.d.ts +8 -0
  104. package/{src/lib/components → dist}/ui/alert/alert.svelte +1 -1
  105. package/dist/ui/alert/alert.svelte.d.ts +26 -0
  106. package/{src/lib/components/ui/alert/index.ts → dist/ui/alert/index.d.ts} +1 -10
  107. package/dist/ui/alert/index.js +7 -0
  108. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-action.svelte +2 -2
  109. package/dist/ui/alert-dialog/alert-dialog-action.svelte.d.ts +4 -0
  110. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-cancel.svelte +2 -2
  111. package/dist/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +4 -0
  112. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-content.svelte +1 -1
  113. package/dist/ui/alert-dialog/alert-dialog-content.svelte.d.ts +7 -0
  114. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-description.svelte +1 -1
  115. package/dist/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
  116. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-footer.svelte +1 -1
  117. package/dist/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
  118. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-header.svelte +1 -1
  119. package/dist/ui/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
  120. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-overlay.svelte +1 -1
  121. package/dist/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
  122. package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-title.svelte +1 -1
  123. package/dist/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
  124. package/dist/ui/alert-dialog/index.d.ts +13 -0
  125. package/dist/ui/alert-dialog/index.js +15 -0
  126. package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-ellipsis.svelte +1 -1
  127. package/dist/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +5 -0
  128. package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-item.svelte +1 -1
  129. package/dist/ui/breadcrumb/breadcrumb-item.svelte.d.ts +5 -0
  130. package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-link.svelte +1 -1
  131. package/dist/ui/breadcrumb/breadcrumb-link.svelte.d.ts +11 -0
  132. package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-list.svelte +1 -1
  133. package/dist/ui/breadcrumb/breadcrumb-list.svelte.d.ts +5 -0
  134. package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-page.svelte +1 -1
  135. package/dist/ui/breadcrumb/breadcrumb-page.svelte.d.ts +5 -0
  136. package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-separator.svelte +1 -1
  137. package/dist/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +5 -0
  138. package/dist/ui/breadcrumb/breadcrumb.svelte.d.ts +5 -0
  139. package/{src/lib/components/ui/breadcrumb/index.ts → dist/ui/breadcrumb/index.d.ts} +1 -18
  140. package/dist/ui/breadcrumb/index.js +10 -0
  141. package/{src/lib/components → dist}/ui/button/button.svelte +1 -1
  142. package/dist/ui/button/button.svelte.d.ts +60 -0
  143. package/dist/ui/button/index.d.ts +2 -0
  144. package/dist/ui/button/index.js +4 -0
  145. package/{src/lib/components → dist}/ui/checkbox/checkbox.svelte +1 -1
  146. package/dist/ui/checkbox/checkbox.svelte.d.ts +4 -0
  147. package/dist/ui/checkbox/index.d.ts +2 -0
  148. package/dist/ui/checkbox/index.js +4 -0
  149. package/{src/lib/components → dist}/ui/command/command-dialog.svelte +1 -1
  150. package/dist/ui/command/command-dialog.svelte.d.ts +9 -0
  151. package/{src/lib/components → dist}/ui/command/command-empty.svelte +1 -1
  152. package/dist/ui/command/command-empty.svelte.d.ts +4 -0
  153. package/{src/lib/components → dist}/ui/command/command-group.svelte +1 -1
  154. package/dist/ui/command/command-group.svelte.d.ts +7 -0
  155. package/{src/lib/components → dist}/ui/command/command-input.svelte +1 -1
  156. package/dist/ui/command/command-input.svelte.d.ts +4 -0
  157. package/{src/lib/components → dist}/ui/command/command-item.svelte +1 -1
  158. package/dist/ui/command/command-item.svelte.d.ts +4 -0
  159. package/{src/lib/components → dist}/ui/command/command-link-item.svelte +1 -1
  160. package/dist/ui/command/command-link-item.svelte.d.ts +4 -0
  161. package/{src/lib/components → dist}/ui/command/command-list.svelte +1 -1
  162. package/dist/ui/command/command-list.svelte.d.ts +4 -0
  163. package/{src/lib/components → dist}/ui/command/command-separator.svelte +1 -1
  164. package/dist/ui/command/command-separator.svelte.d.ts +4 -0
  165. package/{src/lib/components → dist}/ui/command/command-shortcut.svelte +1 -1
  166. package/dist/ui/command/command-shortcut.svelte.d.ts +5 -0
  167. package/{src/lib/components → dist}/ui/command/command.svelte +1 -1
  168. package/dist/ui/command/command.svelte.d.ts +4 -0
  169. package/{src/lib/components/ui/command/index.ts → dist/ui/command/index.d.ts} +2 -29
  170. package/dist/ui/command/index.js +15 -0
  171. package/{src/lib/components → dist}/ui/dialog/dialog-content.svelte +1 -1
  172. package/dist/ui/dialog/dialog-content.svelte.d.ts +9 -0
  173. package/{src/lib/components → dist}/ui/dialog/dialog-description.svelte +1 -1
  174. package/dist/ui/dialog/dialog-description.svelte.d.ts +4 -0
  175. package/{src/lib/components → dist}/ui/dialog/dialog-footer.svelte +1 -1
  176. package/dist/ui/dialog/dialog-footer.svelte.d.ts +5 -0
  177. package/{src/lib/components → dist}/ui/dialog/dialog-header.svelte +1 -1
  178. package/dist/ui/dialog/dialog-header.svelte.d.ts +5 -0
  179. package/{src/lib/components → dist}/ui/dialog/dialog-overlay.svelte +1 -1
  180. package/dist/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
  181. package/{src/lib/components → dist}/ui/dialog/dialog-title.svelte +1 -1
  182. package/dist/ui/dialog/dialog-title.svelte.d.ts +4 -0
  183. package/dist/ui/dialog/index.d.ts +12 -0
  184. package/dist/ui/dialog/index.js +14 -0
  185. package/dist/ui/input/index.d.ts +2 -0
  186. package/dist/ui/input/index.js +4 -0
  187. package/{src/lib/components → dist}/ui/input/input.svelte +1 -1
  188. package/dist/ui/input/input.svelte.d.ts +13 -0
  189. package/dist/ui/label/index.d.ts +2 -0
  190. package/dist/ui/label/index.js +4 -0
  191. package/{src/lib/components → dist}/ui/label/label.svelte +1 -1
  192. package/dist/ui/label/label.svelte.d.ts +4 -0
  193. package/dist/ui/popover/index.d.ts +6 -0
  194. package/dist/ui/popover/index.js +8 -0
  195. package/{src/lib/components → dist}/ui/popover/popover-content.svelte +1 -1
  196. package/dist/ui/popover/popover-content.svelte.d.ts +7 -0
  197. package/{src/lib/components/ui/range-calendar/index.ts → dist/ui/range-calendar/index.d.ts} +1 -17
  198. package/dist/ui/range-calendar/index.js +16 -0
  199. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-cell.svelte +1 -1
  200. package/dist/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -0
  201. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-day.svelte +2 -2
  202. package/dist/ui/range-calendar/range-calendar-day.svelte.d.ts +6 -0
  203. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid-body.svelte +1 -1
  204. package/dist/ui/range-calendar/range-calendar-grid-body.svelte.d.ts +4 -0
  205. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid-head.svelte +1 -1
  206. package/dist/ui/range-calendar/range-calendar-grid-head.svelte.d.ts +4 -0
  207. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid-row.svelte +1 -1
  208. package/dist/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -0
  209. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid.svelte +1 -1
  210. package/dist/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -0
  211. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-head-cell.svelte +1 -1
  212. package/dist/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -0
  213. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-header.svelte +1 -1
  214. package/dist/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -0
  215. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-heading.svelte +1 -1
  216. package/dist/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -0
  217. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-months.svelte +1 -1
  218. package/dist/ui/range-calendar/range-calendar-months.svelte.d.ts +5 -0
  219. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-next-button.svelte +2 -2
  220. package/dist/ui/range-calendar/range-calendar-next-button.svelte.d.ts +4 -0
  221. package/{src/lib/components → dist}/ui/range-calendar/range-calendar-prev-button.svelte +2 -2
  222. package/dist/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +4 -0
  223. package/{src/lib/components → dist}/ui/range-calendar/range-calendar.svelte +1 -1
  224. package/dist/ui/range-calendar/range-calendar.svelte.d.ts +5 -0
  225. package/dist/ui/select/index.d.ts +11 -0
  226. package/dist/ui/select/index.js +13 -0
  227. package/{src/lib/components → dist}/ui/select/select-content.svelte +1 -1
  228. package/dist/ui/select/select-content.svelte.d.ts +7 -0
  229. package/{src/lib/components → dist}/ui/select/select-group-heading.svelte +1 -1
  230. package/dist/ui/select/select-group-heading.svelte.d.ts +4 -0
  231. package/{src/lib/components → dist}/ui/select/select-item.svelte +1 -1
  232. package/dist/ui/select/select-item.svelte.d.ts +4 -0
  233. package/{src/lib/components → dist}/ui/select/select-scroll-down-button.svelte +1 -1
  234. package/dist/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
  235. package/{src/lib/components → dist}/ui/select/select-scroll-up-button.svelte +1 -1
  236. package/dist/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
  237. package/{src/lib/components → dist}/ui/select/select-separator.svelte +2 -2
  238. package/dist/ui/select/select-separator.svelte.d.ts +4 -0
  239. package/{src/lib/components → dist}/ui/select/select-trigger.svelte +1 -1
  240. package/dist/ui/select/select-trigger.svelte.d.ts +4 -0
  241. package/dist/ui/separator/index.d.ts +2 -0
  242. package/dist/ui/separator/index.js +4 -0
  243. package/{src/lib/components → dist}/ui/separator/separator.svelte +1 -1
  244. package/dist/ui/separator/separator.svelte.d.ts +4 -0
  245. package/dist/ui/skeleton/index.d.ts +2 -0
  246. package/dist/ui/skeleton/index.js +4 -0
  247. package/{src/lib/components → dist}/ui/skeleton/skeleton.svelte +1 -1
  248. package/dist/ui/skeleton/skeleton.svelte.d.ts +5 -0
  249. package/dist/ui/sonner/index.js +1 -0
  250. package/dist/ui/sonner/sonner.svelte.d.ts +4 -0
  251. package/dist/ui/switch/index.d.ts +2 -0
  252. package/dist/ui/switch/index.js +4 -0
  253. package/{src/lib/components → dist}/ui/switch/switch.svelte +1 -1
  254. package/dist/ui/switch/switch.svelte.d.ts +4 -0
  255. package/dist/ui/textarea/index.d.ts +2 -0
  256. package/dist/ui/textarea/index.js +4 -0
  257. package/{src/lib/components → dist}/ui/textarea/textarea.svelte +1 -1
  258. package/dist/ui/textarea/textarea.svelte.d.ts +5 -0
  259. package/dist/ui/tooltip/index.d.ts +6 -0
  260. package/dist/ui/tooltip/index.js +8 -0
  261. package/{src/lib/components → dist}/ui/tooltip/tooltip-content.svelte +1 -1
  262. package/dist/ui/tooltip/tooltip-content.svelte.d.ts +4 -0
  263. package/{src/lib/components → dist}/workflowEditor.svelte +5 -5
  264. package/dist/workflowEditor.svelte.d.ts +16 -0
  265. package/package.json +24 -14
  266. package/{vite-plugin-contextual-lib.js → vite-plugins/contextual-lib-alias.js} +2 -7
  267. package/vite-plugins/index.js +21 -0
  268. package/vite-plugins/studio-source-resolver.js +41 -0
  269. package/.env.example +0 -1
  270. package/.storybook/main.ts +0 -31
  271. package/.storybook/preview.ts +0 -21
  272. package/.storybook/vitest.setup.ts +0 -7
  273. package/components.json +0 -16
  274. package/docker-entrypoint.sh +0 -7
  275. package/dockerfile +0 -27
  276. package/index.html +0 -13
  277. package/public/lobb.svg +0 -15
  278. package/src/app.css +0 -121
  279. package/src/components-export.ts +0 -21
  280. package/src/extensions/extension.types.ts +0 -93
  281. package/src/extensions/extensionUtils.ts +0 -192
  282. package/src/lib/Lobb.ts +0 -241
  283. package/src/lib/components/confirmationDialog/store.svelte.ts +0 -28
  284. package/src/lib/components/dataTable/utils.ts +0 -127
  285. package/src/lib/components/detailView/store.svelte.ts +0 -61
  286. package/src/lib/components/detailView/utils.ts +0 -177
  287. package/src/lib/components/loadingTypesForMonacoEditor.ts +0 -36
  288. package/src/lib/components/ui/alert-dialog/index.ts +0 -40
  289. package/src/lib/components/ui/button/index.ts +0 -17
  290. package/src/lib/components/ui/checkbox/index.ts +0 -6
  291. package/src/lib/components/ui/dialog/index.ts +0 -37
  292. package/src/lib/components/ui/input/index.ts +0 -7
  293. package/src/lib/components/ui/label/index.ts +0 -7
  294. package/src/lib/components/ui/popover/index.ts +0 -17
  295. package/src/lib/components/ui/select/index.ts +0 -34
  296. package/src/lib/components/ui/separator/index.ts +0 -7
  297. package/src/lib/components/ui/skeleton/index.ts +0 -7
  298. package/src/lib/components/ui/switch/index.ts +0 -7
  299. package/src/lib/components/ui/textarea/index.ts +0 -7
  300. package/src/lib/components/ui/tooltip/index.ts +0 -18
  301. package/src/lib/eventSystem.ts +0 -38
  302. package/src/lib/index.ts +0 -40
  303. package/src/lib/store.svelte.ts +0 -21
  304. package/src/lib/store.types.ts +0 -28
  305. package/src/lib/utils.ts +0 -84
  306. package/src/main.ts +0 -18
  307. package/src/routes/collections/collection.svelte +0 -46
  308. package/src/routes/collections/collections.svelte +0 -43
  309. package/src/routes/data_model/dataModel.svelte +0 -40
  310. package/src/routes/data_model/flow.css +0 -22
  311. package/src/routes/data_model/flow.svelte +0 -82
  312. package/src/routes/data_model/syncManager.svelte +0 -93
  313. package/src/routes/data_model/utils.ts +0 -35
  314. package/src/routes/extensions/extension.svelte +0 -16
  315. package/src/routes/home.svelte +0 -36
  316. package/src/routes/workflows/workflows.svelte +0 -135
  317. package/src/stories/Configure.mdx +0 -364
  318. package/src/stories/assets/accessibility.png +0 -0
  319. package/src/stories/assets/accessibility.svg +0 -1
  320. package/src/stories/assets/addon-library.png +0 -0
  321. package/src/stories/assets/assets.png +0 -0
  322. package/src/stories/assets/avif-test-image.avif +0 -0
  323. package/src/stories/assets/context.png +0 -0
  324. package/src/stories/assets/discord.svg +0 -1
  325. package/src/stories/assets/docs.png +0 -0
  326. package/src/stories/assets/figma-plugin.png +0 -0
  327. package/src/stories/assets/github.svg +0 -1
  328. package/src/stories/assets/share.png +0 -0
  329. package/src/stories/assets/styling.png +0 -0
  330. package/src/stories/assets/testing.png +0 -0
  331. package/src/stories/assets/theming.png +0 -0
  332. package/src/stories/assets/tutorials.svg +0 -1
  333. package/src/stories/assets/youtube.svg +0 -1
  334. package/src/stories/detailView/detailViewForm.stories.svelte +0 -79
  335. package/src/stories/examples/Button.stories.svelte +0 -31
  336. package/src/stories/examples/Button.svelte +0 -30
  337. package/src/stories/examples/Header.stories.svelte +0 -26
  338. package/src/stories/examples/Header.svelte +0 -45
  339. package/src/stories/examples/Page.stories.svelte +0 -29
  340. package/src/stories/examples/Page.svelte +0 -70
  341. package/src/stories/examples/button.css +0 -30
  342. package/src/stories/examples/header.css +0 -32
  343. package/src/stories/examples/page.css +0 -68
  344. package/src/vite-env.d.ts +0 -2
  345. package/svelte.config.js +0 -7
  346. package/todo.md +0 -24
  347. package/tsconfig.app.json +0 -25
  348. package/tsconfig.json +0 -14
  349. package/tsconfig.node.json +0 -24
  350. package/vite.build.svelte.config.ts +0 -18
  351. package/vite.config.ts +0 -84
  352. package/vite.extension.config.ts +0 -81
  353. package/vite_utils.ts +0 -28
  354. package/vitest.shims.d.ts +0 -1
  355. /package/{src/lib/components → dist}/dataTable/footer.svelte +0 -0
  356. /package/{src/lib/components → dist}/dataTable/table.svelte +0 -0
  357. /package/{src/lib/components → dist}/detailView/detailViewForm.svelte +0 -0
  358. /package/{src/lib/components → dist}/detailView/fieldCustomInput.svelte +0 -0
  359. /package/{src/lib/components → dist}/foreingKeyInput.svelte +0 -0
  360. /package/{src/lib/components → dist}/sidebar/sidebarElements.svelte +0 -0
  361. /package/{src/lib/components → dist}/sidebar/sidebarTrigger.svelte +0 -0
  362. /package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb.svelte +0 -0
  363. /package/{src/lib/components/ui/sonner/index.ts → dist/ui/sonner/index.d.ts} +0 -0
  364. /package/{src/lib/components → dist}/ui/sonner/sonner.svelte +0 -0
@@ -0,0 +1,165 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import Mustache from "mustache";
13
+ import { ctx } from "../../store.svelte";
14
+ import { getFieldRelation } from "../../utils";
15
+ import { getField } from "../dataTable/utils";
16
+ export function getDefaultEntry(fieldNames, collectionName, values) {
17
+ return Object.fromEntries(fieldNames.map(function (fieldName) {
18
+ var _a;
19
+ var value = null;
20
+ var field = getField(fieldName, collectionName);
21
+ if (values && values[fieldName] !== undefined) {
22
+ value = values[fieldName];
23
+ }
24
+ else if ((_a = field.pre_processors) === null || _a === void 0 ? void 0 : _a.default) {
25
+ var defualtValue = field.pre_processors.default;
26
+ if (typeof defualtValue === "string") {
27
+ value = Mustache.render(defualtValue, {
28
+ now: new Date().toISOString(),
29
+ });
30
+ }
31
+ else {
32
+ value = defualtValue;
33
+ }
34
+ }
35
+ return [fieldName, value];
36
+ }));
37
+ }
38
+ export function serializeEntry(collectionName, entry, rollback) {
39
+ if (rollback === void 0) { rollback = false; }
40
+ // deep clone the object
41
+ entry = __assign({}, entry);
42
+ // serialize the foreign key field's value
43
+ for (var _i = 0, _a = Object.entries(entry); _i < _a.length; _i++) {
44
+ var _b = _a[_i], fieldName = _b[0], fieldValue = _b[1];
45
+ var isRefrenceField = Boolean(getFieldRelation(collectionName, fieldName));
46
+ if (isRefrenceField && fieldValue !== null && fieldValue.id !== undefined) {
47
+ entry[fieldName] = fieldValue.id;
48
+ }
49
+ }
50
+ // check for related collections properties and serialize them too
51
+ if (!rollback) {
52
+ var childrenRelations = ctx.meta.relations.filter(function (relation) { return relation.to.collection === collectionName; });
53
+ var childrenCollectionNames = childrenRelations.map(function (relation) { return relation.from.collection; });
54
+ for (var index = 0; index < childrenCollectionNames.length; index++) {
55
+ var childrenCollectionName = childrenCollectionNames[index];
56
+ var childrenEntries = entry[childrenCollectionName];
57
+ if (childrenEntries) {
58
+ for (var index_1 = 0; index_1 < childrenEntries.length; index_1++) {
59
+ childrenEntries[index_1] = serializeEntry(childrenCollectionName, childrenEntries[index_1]);
60
+ }
61
+ }
62
+ }
63
+ }
64
+ return entry;
65
+ }
66
+ export function generateTransactionBody(collectionName, entry) {
67
+ entry = __assign({}, entry);
68
+ function handleEntryRecursive(transactionBody, collectionName, entry, parentTransactionIndex) {
69
+ var _a;
70
+ var _b;
71
+ var parentCollectionName = parentTransactionIndex !== undefined ? transactionBody[parentTransactionIndex].collection : null;
72
+ var foreignKeyFieldName = (_b = ctx.meta.relations.find(function (relation) { return relation.from.collection === collectionName && relation.to.collection === parentCollectionName; })) === null || _b === void 0 ? void 0 : _b.from.field;
73
+ var collectionFieldNames = Object.keys(ctx.meta.collections[collectionName].fields);
74
+ var payload = {};
75
+ for (var index = 0; index < collectionFieldNames.length; index++) {
76
+ var fieldName = collectionFieldNames[index];
77
+ var isForeignKeyField = fieldName === foreignKeyFieldName;
78
+ if (isForeignKeyField) {
79
+ payload[fieldName] = "{{ responses[".concat(parentTransactionIndex, "].data.id }}");
80
+ continue;
81
+ }
82
+ payload[fieldName] = entry[fieldName];
83
+ }
84
+ var localTransactionIndex = transactionBody.length;
85
+ if (payload.id) {
86
+ var localPayload = (_a = {},
87
+ _a[foreignKeyFieldName] = payload[foreignKeyFieldName],
88
+ _a);
89
+ transactionBody.push({
90
+ collection: collectionName,
91
+ method: "updateMany",
92
+ args: [
93
+ localPayload,
94
+ {
95
+ id: payload.id
96
+ }
97
+ ],
98
+ });
99
+ }
100
+ else {
101
+ transactionBody.push({
102
+ collection: collectionName,
103
+ method: "createOne",
104
+ args: [payload],
105
+ });
106
+ }
107
+ var childrenRelations = ctx.meta.relations.filter(function (relation) { return relation.to.collection === collectionName; });
108
+ var childrenCollectionNames = childrenRelations.map(function (relation) { return relation.from.collection; });
109
+ for (var index = 0; index < childrenCollectionNames.length; index++) {
110
+ var childrenCollectionName = childrenCollectionNames[index];
111
+ var childrenEntries = entry[childrenCollectionName];
112
+ if (childrenEntries) {
113
+ for (var index_2 = 0; index_2 < childrenEntries.length; index_2++) {
114
+ var childrenEntry = childrenEntries[index_2];
115
+ handleEntryRecursive(transactionBody, childrenCollectionName, childrenEntry, localTransactionIndex);
116
+ }
117
+ }
118
+ }
119
+ }
120
+ var transactionBody = [];
121
+ handleEntryRecursive(transactionBody, collectionName, entry);
122
+ return transactionBody;
123
+ }
124
+ export function parseDetailViewValues(collectionName, values) {
125
+ var forignFieldNames = ctx.meta.relations
126
+ .filter(function (relation) { return relation.from.collection === collectionName; })
127
+ .map(function (relation) { return relation.from.field; });
128
+ var childCollectionNames = ctx.meta.relations
129
+ .filter(function (relation) { return relation.to.collection === collectionName; })
130
+ .map(function (relation) { return relation.from.collection; });
131
+ for (var _i = 0, _a = Object.entries(values); _i < _a.length; _i++) {
132
+ var _b = _a[_i], key = _b[0], value = _b[1];
133
+ if (forignFieldNames.includes(key)) {
134
+ if (typeof value === 'number') {
135
+ values[key] = {
136
+ id: value,
137
+ };
138
+ }
139
+ }
140
+ else if (childCollectionNames.includes(key)) {
141
+ for (var index = 0; index < values[key].length; index++) {
142
+ parseDetailViewValues(key, values[key][index]);
143
+ }
144
+ }
145
+ }
146
+ }
147
+ export function getCollectionFields(collectionName) {
148
+ var returnedData = [];
149
+ var collectionFields = ctx.meta.collections[collectionName].fields;
150
+ var isSingleton = ctx.meta.collections[collectionName].singleton;
151
+ for (var _i = 0, _a = Object.entries(collectionFields); _i < _a.length; _i++) {
152
+ var _b = _a[_i], fieldName = _b[0], value = _b[1];
153
+ if (isSingleton && fieldName === "id") {
154
+ continue;
155
+ }
156
+ returnedData.push({
157
+ type: "input",
158
+ key: fieldName,
159
+ label: fieldName,
160
+ disabled: fieldName == "id",
161
+ placeholder: fieldName == "id" ? "AUTO_GENERATED" : "",
162
+ });
163
+ }
164
+ return returnedData;
165
+ }
@@ -6,7 +6,7 @@
6
6
  import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
7
7
  import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
8
8
  import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
9
- import { cn } from "$lib/utils";
9
+ import { cn } from "../utils";
10
10
 
11
11
  interface Props {
12
12
  type: "javascript" | "typescript" | "json";
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ type: "javascript" | "typescript" | "json";
3
+ original: string;
4
+ modified: string;
5
+ class?: string;
6
+ }
7
+ declare const DiffViewer: import("svelte").Component<Props, {}, "">;
8
+ type DiffViewer = ReturnType<typeof DiffViewer>;
9
+ export default DiffViewer;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { calculateDrawerWidth } from "$lib/utils";
2
+ import { calculateDrawerWidth } from "../utils";
3
3
  import type { Snippet } from "svelte";
4
4
  import { fade, fly } from "svelte/transition";
5
5
 
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ interface Props {
3
+ children?: Snippet<[]>;
4
+ onHide?: () => Promise<void>;
5
+ }
6
+ declare const Drawer: import("svelte").Component<Props, {}, "">;
7
+ type Drawer = ReturnType<typeof Drawer>;
8
+ export default Drawer;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { Snippet } from "svelte";
3
- import { loadExtensionComponents } from "../../extensions/extensionUtils";
3
+ import { loadExtensionComponents } from "../extensions/extensionUtils";
4
4
 
5
5
  interface Props {
6
6
  name: string;
@@ -28,4 +28,3 @@
28
28
  {:else}
29
29
  {@render children?.()}
30
30
  {/if}
31
-
@@ -0,0 +1,11 @@
1
+ import type { Snippet } from "svelte";
2
+ interface Props {
3
+ name: string;
4
+ filterByExtensions?: string[];
5
+ value?: unknown;
6
+ children?: Snippet<[]>;
7
+ [key: string]: any;
8
+ }
9
+ declare const ExtensionsComponents: import("svelte").Component<Props, {}, "value">;
10
+ type ExtensionsComponents = ReturnType<typeof ExtensionsComponents>;
11
+ export default ExtensionsComponents;
@@ -0,0 +1,11 @@
1
+ interface LocalProps {
2
+ parentCollectionName: string;
3
+ collectionName: string;
4
+ fieldName: string;
5
+ value?: any;
6
+ destructive?: boolean;
7
+ entry: Record<string, any>;
8
+ }
9
+ declare const ForeingKeyInput: import("svelte").Component<LocalProps, {}, "value">;
10
+ type ForeingKeyInput = ReturnType<typeof ForeingKeyInput>;
11
+ export default ForeingKeyInput;
@@ -4,7 +4,7 @@
4
4
  import { Menu, Moon, Sun } from "lucide-svelte";
5
5
  import BreadCrumbs from "./breadCrumbs.svelte";
6
6
  import { toggleMode, mode } from "mode-watcher";
7
- import { mediaQueries } from "$lib/utils";
7
+ import { mediaQueries } from "../utils";
8
8
  import { expandMiniSideBar } from "./miniSidebar.svelte";
9
9
 
10
10
  let isSmallScreen = $derived(!mediaQueries.sm.current);
@@ -0,0 +1,6 @@
1
+ export default Header;
2
+ type Header = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Record<string, never>>): void;
5
+ };
6
+ declare const Header: import("svelte").Component<Record<string, never>, {}, "">;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * TODO
3
+ *
4
+ * this file shows an example of downloading the types files of a library from npm to use them in adding type support of that library in the vscode editor
5
+ * so the whole point is that for users to be able to paste a url from npm or jsr of a library and have all ts support from its types
6
+ */
7
+ export {};
@@ -0,0 +1,72 @@
1
+ /**
2
+ * TODO
3
+ *
4
+ * this file shows an example of downloading the types files of a library from npm to use them in adding type support of that library in the vscode editor
5
+ * so the whole point is that for users to be able to paste a url from npm or jsr of a library and have all ts support from its types
6
+ */
7
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
+ return new (P || (P = Promise))(function (resolve, reject) {
10
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
14
+ });
15
+ };
16
+ var __generator = (this && this.__generator) || function (thisArg, body) {
17
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
18
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
19
+ function verb(n) { return function (v) { return step([n, v]); }; }
20
+ function step(op) {
21
+ if (f) throw new TypeError("Generator is already executing.");
22
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
23
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
24
+ if (y = 0, t) op = [op[0] & 2, t.value];
25
+ switch (op[0]) {
26
+ case 0: case 1: t = op; break;
27
+ case 4: _.label++; return { value: op[1], done: false };
28
+ case 5: _.label++; y = op[1]; op = [0]; continue;
29
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
30
+ default:
31
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
32
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
33
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
34
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
35
+ if (t[2]) _.ops.pop();
36
+ _.trys.pop(); continue;
37
+ }
38
+ op = body.call(thisArg, _);
39
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
40
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
41
+ }
42
+ };
43
+ import { gunzipSync } from "fflate";
44
+ import { untar } from "@andrewbranch/untar.js";
45
+ function extractTgz(buffer) {
46
+ return __awaiter(this, void 0, void 0, function () {
47
+ var tarBuffer, cleanBuffer, files, dtsFiles, _i, files_1, file, content;
48
+ return __generator(this, function (_a) {
49
+ switch (_a.label) {
50
+ case 0:
51
+ tarBuffer = gunzipSync(new Uint8Array(buffer));
52
+ cleanBuffer = tarBuffer.buffer.slice(tarBuffer.byteOffset, tarBuffer.byteOffset + tarBuffer.byteLength);
53
+ return [4 /*yield*/, untar(cleanBuffer)];
54
+ case 1:
55
+ files = _a.sent();
56
+ dtsFiles = [];
57
+ for (_i = 0, files_1 = files; _i < files_1.length; _i++) {
58
+ file = files_1[_i];
59
+ if (file.filename.endsWith(".d.ts")) {
60
+ content = new TextDecoder().decode(file.fileData);
61
+ dtsFiles.push({ name: file.filename, content: content });
62
+ }
63
+ }
64
+ return [2 /*return*/, dtsFiles];
65
+ }
66
+ });
67
+ });
68
+ }
69
+ var tgzURL = "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz";
70
+ var response = await fetch(tgzURL);
71
+ var arrayBuffer = await response.arrayBuffer();
72
+ var files = await extractTgz(arrayBuffer);
@@ -12,14 +12,14 @@
12
12
 
13
13
  <script lang="ts">
14
14
  import { House, Layers, Library, LogOut, Workflow, X } from "lucide-svelte";
15
- import Button from "$lib/components/ui/button/button.svelte";
16
- import Separator from "$lib/components/ui/separator/separator.svelte";
17
- import * as Tooltip from "$lib/components/ui/tooltip";
18
- import * as Accordion from "$lib/components/ui/accordion/index.js";
15
+ import Button from "./ui/button/button.svelte";
16
+ import Separator from "./ui/separator/separator.svelte";
17
+ import * as Tooltip from "./ui/tooltip";
18
+ import * as Accordion from "./ui/accordion/index.js";
19
19
 
20
- import { ctx } from "$lib/store.svelte";
21
- import { getDashboardNavs } from "../../extensions/extensionUtils";
22
- import { mediaQueries } from "$lib/utils";
20
+ import { ctx } from "../store.svelte";
21
+ import { getDashboardNavs } from "../extensions/extensionUtils";
22
+ import { mediaQueries } from "../utils";
23
23
  import * as Popover from "./ui/popover";
24
24
  import { location } from "@wjfe/n-savant";
25
25
 
@@ -0,0 +1,20 @@
1
+ export declare let collapseMiniSideBar: () => void;
2
+ export declare let expandMiniSideBar: () => void;
3
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
4
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
5
+ $$bindings?: Bindings;
6
+ } & Exports;
7
+ (internal: unknown, props: {
8
+ $$events?: Events;
9
+ $$slots?: Slots;
10
+ }): Exports & {
11
+ $set?: any;
12
+ $on?: any;
13
+ };
14
+ z_$$bindings?: Bindings;
15
+ }
16
+ declare const MiniSidebar: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
17
+ [evt: string]: CustomEvent<any>;
18
+ }, {}, {}, string>;
19
+ type MiniSidebar = InstanceType<typeof MiniSidebar>;
20
+ export default MiniSidebar;
@@ -6,7 +6,7 @@
6
6
  import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
7
7
  import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
8
8
  import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
9
- import { cn } from "$lib/utils";
9
+ import { cn } from "../utils";
10
10
 
11
11
  interface Props {
12
12
  type: "javascript" | "typescript" | "json" | "sql";
@@ -0,0 +1,13 @@
1
+ interface Props {
2
+ type: "javascript" | "typescript" | "json" | "sql";
3
+ name: string;
4
+ value?: string;
5
+ default?: string;
6
+ types?: string;
7
+ class?: string;
8
+ handleCtrlSave?: () => void;
9
+ onChange?: (value: string) => void;
10
+ }
11
+ declare const MonacoEditor: import("svelte").Component<Props, {}, "value">;
12
+ type MonacoEditor = ReturnType<typeof MonacoEditor>;
13
+ export default MonacoEditor;
@@ -10,10 +10,10 @@
10
10
  startOfWeek,
11
11
  today,
12
12
  } from "@internationalized/date";
13
- import { cn } from "$lib/utils.js";
14
- import { buttonVariants } from "$lib/components/ui/button/index.js";
15
- import { RangeCalendar } from "$lib/components/ui/range-calendar/index.js";
16
- import * as Popover from "$lib/components/ui/popover/index.js";
13
+ import { cn } from "../utils.js";
14
+ import { buttonVariants } from "./ui/button/index.js";
15
+ import { RangeCalendar } from "./ui/range-calendar/index.js";
16
+ import * as Popover from "./ui/popover/index.js";
17
17
  import Input from "./ui/input/input.svelte";
18
18
 
19
19
  interface Props {
@@ -0,0 +1,7 @@
1
+ import type { DateRange } from "bits-ui";
2
+ interface Props {
3
+ value: DateRange;
4
+ }
5
+ declare const RangeCalendarButton: import("svelte").Component<Props, {}, "value">;
6
+ type RangeCalendarButton = ReturnType<typeof RangeCalendarButton>;
7
+ export default RangeCalendarButton;
@@ -3,7 +3,7 @@
3
3
  import Button, { type ButtonProps } from "./ui/button/button.svelte";
4
4
  import DataTable from "./dataTable/dataTable.svelte";
5
5
  import { getCollectionPrimaryField } from "./dataTable/utils";
6
- import { emitEvent } from "$lib/eventSystem";
6
+ import { emitEvent } from "../eventSystem";
7
7
  import Drawer from "./drawer.svelte";
8
8
 
9
9
  interface LocalProps extends ButtonProps {
@@ -0,0 +1,15 @@
1
+ import { type ButtonProps } from "./ui/button/button.svelte";
2
+ interface LocalProps extends ButtonProps {
3
+ collectionName: string;
4
+ parentCollectionName?: string;
5
+ fieldName?: string;
6
+ value?: any;
7
+ onSelect?: (entry: any) => void;
8
+ filter?: Record<string, any>;
9
+ additionalFilter?: Record<string, any>;
10
+ text?: string;
11
+ entry?: Record<string, any>;
12
+ }
13
+ declare const SelectRecord: import("svelte").Component<LocalProps, {}, "value">;
14
+ type SelectRecord = ReturnType<typeof SelectRecord>;
15
+ export default SelectRecord;
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
2
  import { toast } from "svelte-sonner";
3
3
  import Button from "./ui/button/button.svelte";
4
- import { ctx } from "$lib/store.svelte";
5
- import { Input } from "$lib/components/ui/input";
4
+ import { ctx } from "../store.svelte";
5
+ import { Input } from "./ui/input";
6
6
 
7
7
  let formData = {
8
8
  server: "",
@@ -0,0 +1,18 @@
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const SetServerPage: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, string>;
17
+ type SetServerPage = InstanceType<typeof SetServerPage>;
18
+ export default SetServerPage;
@@ -1,4 +1,3 @@
1
1
  import Sidebar from "./sidebar.svelte";
2
2
  import SidebarTrigger from "./sidebarTrigger.svelte";
3
-
4
- export { Sidebar, SidebarTrigger }
3
+ export { Sidebar, SidebarTrigger };
@@ -0,0 +1,3 @@
1
+ import Sidebar from "./sidebar.svelte";
2
+ import SidebarTrigger from "./sidebarTrigger.svelte";
3
+ export { Sidebar, SidebarTrigger };
@@ -7,7 +7,7 @@
7
7
  <script lang="ts">
8
8
  import { setContext, type Snippet } from "svelte";
9
9
 
10
- import { mediaQueries } from "$lib/utils";
10
+ import { mediaQueries } from "../../utils";
11
11
  import Skeleton from "../ui/skeleton/skeleton.svelte";
12
12
  import { Search } from "lucide-svelte";
13
13
  import SidebarElements, {
@@ -0,0 +1,17 @@
1
+ export interface SidebarProperties {
2
+ collapsed: boolean;
3
+ }
4
+ import { type Snippet } from "svelte";
5
+ import { type SideBarData, type SideBarElement, type SidebarElementsProps } from "./sidebarElements.svelte";
6
+ interface Props {
7
+ title: string;
8
+ data: SideBarData | null;
9
+ sidebarElementsProps?: Partial<SidebarElementsProps>;
10
+ showSearch?: boolean;
11
+ children: Snippet<[]>;
12
+ belowSearch?: Snippet;
13
+ elementRightSide?: Snippet<[SideBarElement]>;
14
+ }
15
+ declare const Sidebar: import("svelte").Component<Props, {}, "">;
16
+ type Sidebar = ReturnType<typeof Sidebar>;
17
+ export default Sidebar;
@@ -0,0 +1,19 @@
1
+ export interface SideBarElement {
2
+ name: string;
3
+ onclick?: () => Promise<void> | void;
4
+ href?: string;
5
+ icon?: any;
6
+ path?: string;
7
+ meta?: Record<string, any>;
8
+ }
9
+ export type SideBarData = Array<SideBarElement>;
10
+ export interface SidebarElementsProps {
11
+ data: SideBarData;
12
+ path?: string[];
13
+ elementRightSide?: Snippet<[SideBarElement]>;
14
+ }
15
+ import type { Snippet } from "svelte";
16
+ import SidebarElements from "./sidebarElements.svelte";
17
+ declare const SidebarElements: import("svelte").Component<SidebarElementsProps, {}, "data">;
18
+ type SidebarElements = ReturnType<typeof SidebarElements>;
19
+ export default SidebarElements;
@@ -0,0 +1,7 @@
1
+ import type { HTMLButtonAttributes } from "svelte/elements";
2
+ interface Props {
3
+ class?: HTMLButtonAttributes["class"];
4
+ }
5
+ declare const SidebarTrigger: import("svelte").Component<Props, {}, "">;
6
+ type SidebarTrigger = ReturnType<typeof SidebarTrigger>;
7
+ export default SidebarTrigger;
@@ -5,7 +5,7 @@
5
5
  import SidebarTrigger from "./sidebar/sidebarTrigger.svelte";
6
6
  import Button from "./ui/button/button.svelte";
7
7
  import { onMount } from "svelte";
8
- import { lobb } from "$lib";
8
+ import { lobb } from "..";
9
9
  import { toast } from "svelte-sonner";
10
10
  import Skeleton from "./ui/skeleton/skeleton.svelte";
11
11
 
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ collectionName: string;
3
+ }
4
+ declare const Singletone: import("svelte").Component<Props, {}, "">;
5
+ type Singletone = ReturnType<typeof Singletone>;
6
+ export default Singletone;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive, type WithoutChild } from "bits-ui";
3
- import { cn } from "$lib/utils.js";
3
+ import { cn } from "../../../utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -0,0 +1,4 @@
1
+ import { Accordion as AccordionPrimitive } from "bits-ui";
2
+ declare const AccordionContent: import("svelte").Component<Omit<AccordionPrimitive.ContentProps, "child">, {}, "ref">;
3
+ type AccordionContent = ReturnType<typeof AccordionContent>;
4
+ export default AccordionContent;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } from "bits-ui";
3
- import { cn } from "$lib/utils.js";
3
+ import { cn } from "../../../utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -0,0 +1,4 @@
1
+ import { Accordion as AccordionPrimitive } from "bits-ui";
2
+ declare const AccordionItem: import("svelte").Component<AccordionPrimitive.ItemProps, {}, "ref">;
3
+ type AccordionItem = ReturnType<typeof AccordionItem>;
4
+ export default AccordionItem;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive, type WithoutChild } from "bits-ui";
3
3
  import ChevronDown from "@lucide/svelte/icons/chevron-down";
4
- import { cn } from "$lib/utils.js";
4
+ import { cn } from "../../../utils.js";
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -0,0 +1,7 @@
1
+ import { Accordion as AccordionPrimitive, type WithoutChild } from "bits-ui";
2
+ type $$ComponentProps = WithoutChild<AccordionPrimitive.TriggerProps> & {
3
+ level?: AccordionPrimitive.HeaderProps["level"];
4
+ };
5
+ declare const AccordionTrigger: import("svelte").Component<$$ComponentProps, {}, "ref">;
6
+ type AccordionTrigger = ReturnType<typeof AccordionTrigger>;
7
+ export default AccordionTrigger;
@@ -0,0 +1,6 @@
1
+ import { Accordion as AccordionPrimitive } from "bits-ui";
2
+ import Content from "./accordion-content.svelte";
3
+ import Item from "./accordion-item.svelte";
4
+ import Trigger from "./accordion-trigger.svelte";
5
+ declare const Root: import("svelte").Component<AccordionPrimitive.RootProps, {}, "value" | "ref">;
6
+ export { Root, Content, Item, Trigger, Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger, };