@rebasepro/admin 0.1.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/LICENSE +21 -6
  2. package/dist/{CollectionEditorDialog-ywdxhs1L.js → CollectionEditorDialog-BXIh2AXg.js} +40 -31
  3. package/dist/CollectionEditorDialog-BXIh2AXg.js.map +1 -0
  4. package/dist/{CollectionsStudioView-BDzMFzqH.js → CollectionsStudioView-jR8iz_ja.js} +6 -8
  5. package/dist/CollectionsStudioView-jR8iz_ja.js.map +1 -0
  6. package/dist/{ContentHomePage-0tHuEIm_.js → ContentHomePage-BQZWuOFb.js} +5 -7
  7. package/dist/ContentHomePage-BQZWuOFb.js.map +1 -0
  8. package/dist/{ExportCollectionAction-BIrq92To.js → ExportCollectionAction-CMdiiv1L.js} +36 -38
  9. package/dist/ExportCollectionAction-CMdiiv1L.js.map +1 -0
  10. package/dist/{ImportCollectionAction-h8yg_To8.js → ImportCollectionAction-C05lE0IW.js} +5 -7
  11. package/dist/ImportCollectionAction-C05lE0IW.js.map +1 -0
  12. package/dist/{PropertyEditView-BuZrNnBN.js → PropertyEditView-BB5xjnhZ.js} +261 -165
  13. package/dist/PropertyEditView-BB5xjnhZ.js.map +1 -0
  14. package/dist/{RolesView-CMPsaIXo.js → RolesView-CULIHWZ9.js} +22 -11
  15. package/dist/RolesView-CULIHWZ9.js.map +1 -0
  16. package/dist/{UsersView-BkeblMVT.js → UsersView-D7_AtJ44.js} +7 -71
  17. package/dist/UsersView-D7_AtJ44.js.map +1 -0
  18. package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.d.ts +2 -2
  19. package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.d.ts +3 -0
  20. package/dist/collection_editor_ui.js +5 -5
  21. package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
  22. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +1 -1
  23. package/dist/components/EntityCollectionView/EntityCollectionListView.d.ts +18 -2
  24. package/dist/components/EntityCollectionView/FilterPresetsButton.d.ts +21 -0
  25. package/dist/components/EntityDetailView.d.ts +31 -0
  26. package/dist/components/EntityEditView.d.ts +3 -2
  27. package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +1 -1
  28. package/dist/components/admin/CreationResultDialog.d.ts +5 -0
  29. package/dist/components/admin/RolesFilterSelect.d.ts +2 -0
  30. package/dist/components/admin/UserRolesSelectField.d.ts +2 -0
  31. package/dist/components/common/default_entity_actions.d.ts +7 -1
  32. package/dist/components/field_configs.d.ts +1 -1
  33. package/dist/components/index.d.ts +1 -0
  34. package/dist/data_import/utils/data.d.ts +1 -1
  35. package/dist/data_import/utils/file_headers.d.ts +6 -1
  36. package/dist/data_import/utils/file_to_json.d.ts +1 -11
  37. package/dist/data_import/utils/transforms.d.ts +11 -0
  38. package/dist/editor.js +2 -4
  39. package/dist/editor.js.map +1 -1
  40. package/dist/form/EntityForm.d.ts +1 -1
  41. package/dist/form/field_bindings/RelationFieldBinding.d.ts +1 -1
  42. package/dist/form/field_bindings/VectorFieldBinding.d.ts +11 -0
  43. package/dist/form/index.d.ts +1 -0
  44. package/dist/hooks/navigation/useResolvedViews.d.ts +2 -1
  45. package/dist/{index-CS6uJ7oW.js → index-BAM9KCmM.js} +4 -6
  46. package/dist/index-BAM9KCmM.js.map +1 -0
  47. package/dist/{index-BuZaHcyc.js → index-CoSNm3e3.js} +3 -3
  48. package/dist/index-CoSNm3e3.js.map +1 -0
  49. package/dist/{index-eRJbMvHi.js → index-D5OQhv-T.js} +3 -3
  50. package/dist/index-D5OQhv-T.js.map +1 -0
  51. package/dist/index.d.ts +4 -1
  52. package/dist/index.js +352 -148
  53. package/dist/index.js.map +1 -1
  54. package/dist/types/components/EntityFormActionsProps.d.ts +1 -1
  55. package/dist/types/components/EntityFormProps.d.ts +2 -1
  56. package/dist/types/fields.d.ts +3 -3
  57. package/dist/util/navigation_utils.d.ts +1 -1
  58. package/dist/{util-zfU1zOCX.js → util-DtbWD7LF.js} +5304 -2572
  59. package/dist/util-DtbWD7LF.js.map +1 -0
  60. package/package.json +45 -39
  61. package/src/collection_editor/ConfigControllerProvider.tsx +1 -1
  62. package/src/collection_editor/ui/AddKanbanColumnAction.tsx +12 -2
  63. package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +1 -2
  64. package/src/collection_editor/ui/EditorCollectionAction.tsx +1 -2
  65. package/src/collection_editor/ui/EditorCollectionActionStart.tsx +1 -2
  66. package/src/collection_editor/ui/EditorEntityAction.tsx +1 -2
  67. package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +1 -2
  68. package/src/collection_editor/ui/NewCollectionButton.tsx +1 -2
  69. package/src/collection_editor/ui/NewCollectionCard.tsx +4 -6
  70. package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +1 -2
  71. package/src/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.tsx +10 -2
  72. package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +18 -2
  73. package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +22 -7
  74. package/src/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.tsx +16 -2
  75. package/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.tsx +19 -9
  76. package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +13 -2
  77. package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +24 -2
  78. package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +22 -3
  79. package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +1 -2
  80. package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +11 -2
  81. package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +12 -2
  82. package/src/collection_editor/ui/collection_editor/EntityActionsEditTab.tsx +16 -3
  83. package/src/collection_editor/ui/collection_editor/EnumForm.tsx +17 -2
  84. package/src/collection_editor/ui/collection_editor/GeneralSettingsForm.tsx +18 -2
  85. package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +1 -2
  86. package/src/collection_editor/ui/collection_editor/KanbanConfigSection.tsx +1 -2
  87. package/src/collection_editor/ui/collection_editor/LayoutModeSwitch.tsx +17 -5
  88. package/src/collection_editor/ui/collection_editor/PropertyEditView.tsx +32 -6
  89. package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +7 -7
  90. package/src/collection_editor/ui/collection_editor/PropertyTree.tsx +14 -2
  91. package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +16 -2
  92. package/src/collection_editor/ui/collection_editor/ViewModeSwitch.tsx +9 -2
  93. package/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.tsx +1 -2
  94. package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +1 -2
  95. package/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.tsx +9 -2
  96. package/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.tsx +11 -2
  97. package/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.tsx +34 -0
  98. package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +15 -7
  99. package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsPanel.tsx +1 -2
  100. package/src/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +15 -3
  101. package/src/collection_editor/ui/collection_editor/properties/conditions/property_paths.ts +1 -1
  102. package/src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.tsx +1 -2
  103. package/src/collection_editor/useLocalCollectionsConfigController.tsx +0 -2
  104. package/src/collection_editor/validateCollectionJson.ts +9 -9
  105. package/src/components/AdminModeSyncer.tsx +1 -1
  106. package/src/components/ArrayContainer.tsx +19 -15
  107. package/src/components/ClearFilterSortButton.tsx +1 -2
  108. package/src/components/CollectionEditorDialogs.tsx +1 -1
  109. package/src/components/DefaultAppBar.tsx +15 -3
  110. package/src/components/DefaultDrawer.tsx +3 -3
  111. package/src/components/DrawerNavigationGroup.tsx +1 -2
  112. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +14 -6
  113. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +1 -1
  114. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +1 -1
  115. package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +1 -2
  116. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +1 -2
  117. package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +1 -2
  118. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +1 -2
  119. package/src/components/EntityCollectionTable/fields/VirtualTableSelect.tsx +0 -1
  120. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +15 -27
  121. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +1 -2
  122. package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -2
  123. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +3 -5
  124. package/src/components/EntityCollectionTable/table_bindings.tsx +51 -45
  125. package/src/components/EntityCollectionView/Board.tsx +1 -2
  126. package/src/components/EntityCollectionView/BoardColumn.tsx +9 -2
  127. package/src/components/EntityCollectionView/BoardColumnTitle.tsx +5 -4
  128. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +18 -16
  129. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +16 -17
  130. package/src/components/EntityCollectionView/EntityCollectionListView.tsx +87 -18
  131. package/src/components/EntityCollectionView/EntityCollectionView.tsx +20 -11
  132. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +6 -7
  133. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +14 -5
  134. package/src/components/EntityCollectionView/FilterPresetsButton.tsx +292 -0
  135. package/src/components/EntityCollectionView/FiltersDialog.tsx +1 -2
  136. package/src/components/EntityCollectionView/SplitListView.tsx +76 -25
  137. package/src/components/EntityCollectionView/ViewModeToggle.tsx +20 -7
  138. package/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.ts +1 -1
  139. package/src/components/EntityCollectionView/useBoardDataController.tsx +74 -6
  140. package/src/components/EntityCollectionView/useEntityPreviewSlots.ts +1 -1
  141. package/src/components/EntityDetailView.tsx +619 -0
  142. package/src/components/EntityEditView.tsx +29 -10
  143. package/src/components/EntityEditViewFormActions.tsx +20 -7
  144. package/src/components/EntityPreview.tsx +14 -5
  145. package/src/components/EntitySidePanel.tsx +116 -62
  146. package/src/components/EntityView.tsx +1 -2
  147. package/src/components/HomePage/ContentHomePage.tsx +1 -1
  148. package/src/components/HomePage/FavouritesView.tsx +1 -2
  149. package/src/components/HomePage/NavigationCard.tsx +1 -2
  150. package/src/components/HomePage/NavigationCardBinding.tsx +1 -2
  151. package/src/components/HomePage/NavigationGroup.tsx +1 -2
  152. package/src/components/HomePage/SmallNavigationCard.tsx +1 -2
  153. package/src/components/PropertyIdCopyTooltip.tsx +1 -2
  154. package/src/components/RebaseAuthGate.tsx +2 -2
  155. package/src/components/RebaseNavigation.tsx +9 -7
  156. package/src/components/ReferenceTable/EntitySelectionTable.tsx +12 -8
  157. package/src/components/RelationSelector.tsx +34 -6
  158. package/src/components/SearchIconsView.tsx +10 -2
  159. package/src/components/SelectableTable/SelectableTable.tsx +2 -2
  160. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +1 -2
  161. package/src/components/SideDialogs.tsx +63 -38
  162. package/src/components/UserSelector.tsx +30 -6
  163. package/src/components/admin/CreationResultDialog.tsx +135 -0
  164. package/src/components/admin/RolesFilterSelect.tsx +45 -0
  165. package/src/components/admin/RolesView.tsx +53 -14
  166. package/src/components/admin/UserRolesSelectField.tsx +50 -0
  167. package/src/components/admin/UsersView.tsx +41 -124
  168. package/src/components/app/Scaffold.tsx +1 -2
  169. package/src/components/common/default_entity_actions.tsx +119 -12
  170. package/src/components/field_configs.tsx +39 -3
  171. package/src/components/history/EntityHistoryEntry.tsx +1 -2
  172. package/src/components/history/EntityHistoryView.tsx +1 -2
  173. package/src/components/index.ts +2 -0
  174. package/src/data_export/export/BasicExportAction.tsx +35 -38
  175. package/src/data_export/export/ExportCollectionAction.tsx +39 -40
  176. package/src/data_import/components/DataNewPropertiesMapping.tsx +15 -2
  177. package/src/data_import/components/ImportFileUpload.tsx +1 -2
  178. package/src/data_import/components/ImportNewPropertyFieldPreview.tsx +1 -2
  179. package/src/data_import/import/ImportCollectionAction.tsx +21 -8
  180. package/src/data_import/utils/data.ts +23 -5
  181. package/src/data_import/utils/file_headers.ts +13 -89
  182. package/src/data_import/utils/file_to_json.ts +43 -68
  183. package/src/data_import/utils/transforms.ts +47 -0
  184. package/src/editor/components/SlashCommandMenu.tsx +17 -2
  185. package/src/editor/components/editor-bubble-item.tsx +1 -1
  186. package/src/editor/extensions/Image/index.ts +1 -1
  187. package/src/editor/extensions/Image.ts +1 -1
  188. package/src/editor/selectors/color-selector.tsx +1 -2
  189. package/src/editor/selectors/link-selector.tsx +1 -2
  190. package/src/editor/selectors/node-selector.tsx +16 -2
  191. package/src/editor/selectors/text-buttons.tsx +1 -2
  192. package/src/editor/utils/prosemirror-utils.ts +1 -1
  193. package/src/form/EntityForm.tsx +16 -6
  194. package/src/form/EntityFormActions.tsx +11 -3
  195. package/src/form/PropertyFieldBinding.tsx +5 -12
  196. package/src/form/components/FieldHelperText.tsx +1 -2
  197. package/src/form/components/LocalChangesMenu.tsx +17 -2
  198. package/src/form/components/StorageItemPreview.tsx +1 -2
  199. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -2
  200. package/src/form/field_bindings/KeyValueFieldBinding.tsx +17 -2
  201. package/src/form/field_bindings/MapFieldBinding.tsx +1 -1
  202. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +10 -3
  203. package/src/form/field_bindings/MultiSelectFieldBinding.tsx +1 -2
  204. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +1 -2
  205. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +7 -7
  206. package/src/form/field_bindings/RelationFieldBinding.tsx +150 -147
  207. package/src/form/field_bindings/RepeatFieldBinding.tsx +1 -1
  208. package/src/form/field_bindings/SelectFieldBinding.tsx +1 -2
  209. package/src/form/field_bindings/TextFieldBinding.tsx +10 -2
  210. package/src/form/field_bindings/VectorFieldBinding.tsx +202 -0
  211. package/src/form/index.tsx +1 -0
  212. package/src/form/validation.ts +54 -2
  213. package/src/hooks/navigation/useBuildNavigationStateController.tsx +2 -1
  214. package/src/hooks/navigation/useResolvedViews.tsx +30 -15
  215. package/src/hooks/navigation/useTopLevelNavigation.ts +1 -1
  216. package/src/index.ts +6 -0
  217. package/src/preview/PropertyPreview.tsx +1 -1
  218. package/src/preview/components/ImagePreview.tsx +1 -1
  219. package/src/preview/components/UrlComponentPreview.tsx +1 -2
  220. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +2 -2
  221. package/src/preview/property_previews/SkeletonPropertyComponent.tsx +23 -24
  222. package/src/routes/RebaseRoute.tsx +64 -35
  223. package/src/types/components/EntityFormActionsProps.tsx +1 -1
  224. package/src/types/components/EntityFormProps.tsx +3 -1
  225. package/src/types/fields.tsx +4 -3
  226. package/src/util/navigation_utils.ts +4 -3
  227. package/src/util/previews.ts +1 -1
  228. package/src/util/property_utils.tsx +22 -6
  229. package/src/util/resolutions.ts +2 -2
  230. package/dist/CollectionEditorDialog-ywdxhs1L.js.map +0 -1
  231. package/dist/CollectionsStudioView-BDzMFzqH.js.map +0 -1
  232. package/dist/ContentHomePage-0tHuEIm_.js.map +0 -1
  233. package/dist/ExportCollectionAction-BIrq92To.js.map +0 -1
  234. package/dist/ImportCollectionAction-h8yg_To8.js.map +0 -1
  235. package/dist/PropertyEditView-BuZrNnBN.js.map +0 -1
  236. package/dist/RolesView-CMPsaIXo.js.map +0 -1
  237. package/dist/UsersView-BkeblMVT.js.map +0 -1
  238. package/dist/index-BuZaHcyc.js.map +0 -1
  239. package/dist/index-CS6uJ7oW.js.map +0 -1
  240. package/dist/index-eRJbMvHi.js.map +0 -1
  241. package/dist/util-zfU1zOCX.js.map +0 -1
@@ -4,10 +4,9 @@ import React__default, { useEffect, useMemo, useContext, createContext, useState
4
4
  import { deepEqual } from "fast-equals";
5
5
  import { useFormex, getIn, Field, useCreateFormex, Formex } from "@rebasepro/formex";
6
6
  import { useTranslation, useSnackbarController, useCustomizationController, AIModifiedIndicator, IconForView, ConfirmationDialog } from "@rebasepro/core";
7
- import { t as ArrayContainer, a3 as FieldCaption, d as getFieldConfig, P as PropertyConfigBadge, aY as getFullIdPath, aX as getFullId, b0 as idToPropertiesPath, b4 as namespaceToPropertiesOrderPath, b5 as namespaceToPropertiesPath, e as useCollectionRegistryController, O as DEFAULT_FIELD_CONFIGS, aW as getFieldId } from "./util-zfU1zOCX.js";
7
+ import { a as ArrayContainer, J as FieldCaption, aL as getFieldConfig, $ as PropertyConfigBadge, aO as getFullIdPath, aN as getFullId, aV as idToPropertiesPath, aZ as namespaceToPropertiesOrderPath, a_ as namespaceToPropertiesPath, bh as useCollectionRegistryController, o as DEFAULT_FIELD_CONFIGS, aM as getFieldId } from "./util-DtbWD7LF.js";
8
8
  import { resolveEnumValues, isPropertyBuilder } from "@rebasepro/common";
9
- import { iconSize, Badge, IconButton, Typography, DebouncedTextField, Button, CircularProgress, Paper, DialogTitle, DialogContent, DialogActions, Dialog, BooleanSwitchWithLabel, Tooltip, ExpandablePanel, Select, SelectItem, MultiSelectItem, MultiSelect, cls, ErrorBoundary, defaultBorderMixin, MenuItem, Menu, TextField, InfoLabel, Card } from "@rebasepro/ui";
10
- import { RefreshCcwIcon, SettingsIcon, ListIcon, CheckSquareIcon, UploadCloudIcon, FunctionSquareIcon, MinusCircleIcon, FileSearchIcon, Trash2Icon, MoreVerticalIcon, ArrowUpToLineIcon, ArrowDownToLineIcon, PlusIcon, AlertTriangleIcon } from "lucide-react";
9
+ import { RefreshCcwIcon, iconSize, Badge, IconButton, SettingsIcon, Typography, DebouncedTextField, ListIcon, Button, CircularProgress, Paper, DialogTitle, DialogContent, DialogActions, Dialog, BooleanSwitchWithLabel, Tooltip, CheckSquareIcon, ExpandablePanel, Select, SelectItem, MultiSelectItem, UploadCloudIcon, MultiSelect, cls, ErrorBoundary, FunctionSquareIcon, MinusCircleIcon, FileSearchIcon, Trash2Icon, MoreVerticalIcon, ArrowUpToLineIcon, ArrowDownToLineIcon, defaultBorderMixin, MenuItem, Menu, PlusIcon, TextField, InfoLabel, AlertTriangleIcon, Card } from "@rebasepro/ui";
11
10
  import "zod";
12
11
  import { serializeRegExp, toSnakeCase, prettifyIdentifier, mergeDeep, isValidRegExp } from "@rebasepro/utils";
13
12
  import "react-dropzone";
@@ -15,9 +14,8 @@ import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, close
15
14
  import { SortableContext, verticalListSortingStrategy, useSortable, sortableKeyboardCoordinates } from "@dnd-kit/sortable";
16
15
  import { CSS } from "@dnd-kit/utilities";
17
16
  import "@rebasepro/types";
18
- import "react-router";
19
17
  import "react-router-dom";
20
- import "xlsx";
18
+ import "exceljs";
21
19
  import { extractEnumFromValues } from "@rebasepro/schema-inference";
22
20
  import "date-fns";
23
21
  import "date-fns/locale";
@@ -1804,7 +1802,7 @@ function _temp$8(v) {
1804
1802
  return fileTypes[v];
1805
1803
  }
1806
1804
  function PropertyFieldPreview(t0) {
1807
- const $ = c(30);
1805
+ const $ = c(31);
1808
1806
  const {
1809
1807
  property,
1810
1808
  propertyKey,
@@ -1827,103 +1825,106 @@ function PropertyFieldPreview(t0) {
1827
1825
  t1 = $[2];
1828
1826
  }
1829
1827
  const propertyConfig = t1;
1828
+ const borderColorClass = hasError ? "border-red-500 dark:border-red-500 border-red-500/100 dark:border-red-500/100 ring-0 dark:ring-0" : selected ? "border-primary" : "";
1830
1829
  const t2 = onClick ? "cursor-pointer" : "";
1831
- const t3 = selected ? "bg-primary/5 dark:bg-primary/10 ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-50 dark:hover:bg-surface-750";
1832
- let t4;
1833
- if ($[3] !== t3) {
1834
- t4 = cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-white dark:bg-surface-800 border-surface-200 dark:border-surface-700 shadow-xs", t3);
1830
+ const t3 = borderColorClass || "border-surface-200 dark:border-surface-700";
1831
+ const t4 = selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-50 dark:hover:bg-surface-700";
1832
+ let t5;
1833
+ if ($[3] !== t3 || $[4] !== t4) {
1834
+ t5 = cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-white dark:bg-surface-800 shadow-xs", t3, t4);
1835
1835
  $[3] = t3;
1836
1836
  $[4] = t4;
1837
+ $[5] = t5;
1837
1838
  } else {
1838
- t4 = $[4];
1839
+ t5 = $[5];
1839
1840
  }
1840
- let t5;
1841
- if ($[5] !== propertyConfig) {
1842
- t5 = /* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig, size: "small" });
1843
- $[5] = propertyConfig;
1844
- $[6] = t5;
1841
+ let t6;
1842
+ if ($[6] !== propertyConfig) {
1843
+ t6 = /* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig, size: "small" });
1844
+ $[6] = propertyConfig;
1845
+ $[7] = t6;
1845
1846
  } else {
1846
- t5 = $[6];
1847
+ t6 = $[7];
1847
1848
  }
1848
- let t6;
1849
- if ($[7] !== includeName || $[8] !== property || $[9] !== propertyKey) {
1850
- t6 = includeName && /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
1849
+ let t7;
1850
+ if ($[8] !== includeName || $[9] !== property || $[10] !== propertyKey) {
1851
+ t7 = includeName && /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
1851
1852
  /* @__PURE__ */ jsx(Typography, { variant: "body2", component: "span", children: property.name || propertyKey || " " }),
1852
1853
  property.name && propertyKey && property.name !== propertyKey && /* @__PURE__ */ jsx(Typography, { variant: "caption", component: "span", color: "secondary", className: "font-mono", children: propertyKey })
1853
1854
  ] }) });
1854
- $[7] = includeName;
1855
- $[8] = property;
1856
- $[9] = propertyKey;
1857
- $[10] = t6;
1855
+ $[8] = includeName;
1856
+ $[9] = property;
1857
+ $[10] = propertyKey;
1858
+ $[11] = t7;
1858
1859
  } else {
1859
- t6 = $[10];
1860
+ t7 = $[11];
1860
1861
  }
1861
- const t7 = propertyConfig?.name;
1862
- let t8;
1863
- if ($[11] !== t7) {
1864
- t8 = /* @__PURE__ */ jsx("div", { className: "flex flex-row items-center gap-2 mt-0.5", children: /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", component: "span", className: "text-text-secondary dark:text-text-secondary-dark font-medium", children: t7 }) }) });
1865
- $[11] = t7;
1862
+ const t8 = propertyConfig?.name;
1863
+ let t9;
1864
+ if ($[12] !== t8) {
1865
+ t9 = /* @__PURE__ */ jsx("div", { className: "flex flex-row items-center gap-2 mt-0.5", children: /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", component: "span", className: "text-text-secondary dark:text-text-secondary-dark font-medium", children: t8 }) }) });
1866
1866
  $[12] = t8;
1867
+ $[13] = t9;
1867
1868
  } else {
1868
- t8 = $[12];
1869
+ t9 = $[13];
1869
1870
  }
1870
- let t9;
1871
- if ($[13] !== t6 || $[14] !== t8) {
1872
- t9 = /* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col min-w-0 pr-8", children: [
1873
- t6,
1874
- t8
1871
+ let t10;
1872
+ if ($[14] !== t7 || $[15] !== t9) {
1873
+ t10 = /* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col min-w-0 pr-8", children: [
1874
+ t7,
1875
+ t9
1875
1876
  ] });
1876
- $[13] = t6;
1877
- $[14] = t8;
1877
+ $[14] = t7;
1878
1878
  $[15] = t9;
1879
- } else {
1880
- t9 = $[15];
1881
- }
1882
- const t10 = ("columnType" in property ? property.columnType : void 0) || property.type;
1883
- let t11;
1884
- if ($[16] !== t10) {
1885
- t11 = /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", component: "span", className: "ml-auto shrink-0 text-text-disabled dark:text-text-disabled-dark font-mono bg-surface-100 dark:bg-surface-900 px-1.5 py-0.5 rounded mr-8", children: t10 }) });
1886
1879
  $[16] = t10;
1887
- $[17] = t11;
1888
1880
  } else {
1889
- t11 = $[17];
1881
+ t10 = $[16];
1890
1882
  }
1883
+ const t11 = ("columnType" in property ? property.columnType : void 0) || property.type;
1891
1884
  let t12;
1892
- if ($[18] !== includeEditButton) {
1893
- t12 = includeEditButton && /* @__PURE__ */ jsx(Typography, { variant: "button", children: "EDIT" });
1894
- $[18] = includeEditButton;
1895
- $[19] = t12;
1885
+ if ($[17] !== t11) {
1886
+ t12 = /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", component: "span", className: "ml-auto shrink-0 text-text-disabled dark:text-text-disabled-dark font-mono bg-surface-100 dark:bg-surface-900 px-1.5 py-0.5 rounded mr-8", children: t11 }) });
1887
+ $[17] = t11;
1888
+ $[18] = t12;
1896
1889
  } else {
1897
- t12 = $[19];
1890
+ t12 = $[18];
1898
1891
  }
1899
1892
  let t13;
1900
- if ($[20] !== t11 || $[21] !== t12 || $[22] !== t4 || $[23] !== t5 || $[24] !== t9) {
1901
- t13 = /* @__PURE__ */ jsxs(Paper, { className: t4, children: [
1902
- t5,
1903
- t9,
1904
- t11,
1905
- t12
1906
- ] });
1907
- $[20] = t11;
1908
- $[21] = t12;
1909
- $[22] = t4;
1910
- $[23] = t5;
1911
- $[24] = t9;
1912
- $[25] = t13;
1893
+ if ($[19] !== includeEditButton) {
1894
+ t13 = includeEditButton && /* @__PURE__ */ jsx(Typography, { variant: "button", children: "EDIT" });
1895
+ $[19] = includeEditButton;
1896
+ $[20] = t13;
1913
1897
  } else {
1914
- t13 = $[25];
1898
+ t13 = $[20];
1915
1899
  }
1916
1900
  let t14;
1917
- if ($[26] !== onClick || $[27] !== t13 || $[28] !== t2) {
1918
- t14 = /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx("div", { onClick, className: t2, children: t13 }) });
1919
- $[26] = onClick;
1920
- $[27] = t13;
1921
- $[28] = t2;
1922
- $[29] = t14;
1901
+ if ($[21] !== t10 || $[22] !== t12 || $[23] !== t13 || $[24] !== t5 || $[25] !== t6) {
1902
+ t14 = /* @__PURE__ */ jsxs(Paper, { className: t5, children: [
1903
+ t6,
1904
+ t10,
1905
+ t12,
1906
+ t13
1907
+ ] });
1908
+ $[21] = t10;
1909
+ $[22] = t12;
1910
+ $[23] = t13;
1911
+ $[24] = t5;
1912
+ $[25] = t6;
1913
+ $[26] = t14;
1923
1914
  } else {
1924
- t14 = $[29];
1915
+ t14 = $[26];
1925
1916
  }
1926
- return t14;
1917
+ let t15;
1918
+ if ($[27] !== onClick || $[28] !== t14 || $[29] !== t2) {
1919
+ t15 = /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx("div", { onClick, className: t2, children: t14 }) });
1920
+ $[27] = onClick;
1921
+ $[28] = t14;
1922
+ $[29] = t2;
1923
+ $[30] = t15;
1924
+ } else {
1925
+ t15 = $[30];
1926
+ }
1927
+ return t15;
1927
1928
  }
1928
1929
  function NonEditablePropertyPreview(t0) {
1929
1930
  const $ = c(39);
@@ -1947,7 +1948,7 @@ function NonEditablePropertyPreview(t0) {
1947
1948
  }
1948
1949
  const propertyConfig = t1;
1949
1950
  const t2 = onClick ? "cursor-pointer" : "";
1950
- const t3 = selected ? "bg-primary/5 dark:bg-primary/10 ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-50 dark:hover:bg-surface-750";
1951
+ const t3 = selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-50 dark:hover:bg-surface-700";
1951
1952
  let t4;
1952
1953
  if ($[3] !== t3) {
1953
1954
  t4 = cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-white dark:bg-surface-800 border-surface-200 dark:border-surface-700 shadow-xs", t3);
@@ -5479,6 +5480,85 @@ function AdvancedPropertyValidation(t0) {
5479
5480
  }
5480
5481
  return t3;
5481
5482
  }
5483
+ function VectorPropertyField(t0) {
5484
+ const $ = c(18);
5485
+ const {
5486
+ disabled
5487
+ } = t0;
5488
+ const {
5489
+ values,
5490
+ setFieldValue,
5491
+ touched,
5492
+ errors
5493
+ } = useFormex();
5494
+ let t1;
5495
+ if ($[0] !== values) {
5496
+ t1 = getIn(values, "dimensions");
5497
+ $[0] = values;
5498
+ $[1] = t1;
5499
+ } else {
5500
+ t1 = $[1];
5501
+ }
5502
+ const dimensionsValue = t1;
5503
+ let t2;
5504
+ if ($[2] !== errors || $[3] !== touched) {
5505
+ t2 = getIn(touched, "dimensions") && getIn(errors, "dimensions");
5506
+ $[2] = errors;
5507
+ $[3] = touched;
5508
+ $[4] = t2;
5509
+ } else {
5510
+ t2 = $[4];
5511
+ }
5512
+ const dimensionsError = t2;
5513
+ let t3;
5514
+ if ($[5] !== setFieldValue) {
5515
+ t3 = (e) => {
5516
+ const parsedVal = parseInt(e.target.value);
5517
+ setFieldValue("dimensions", isNaN(parsedVal) ? void 0 : parsedVal);
5518
+ };
5519
+ $[5] = setFieldValue;
5520
+ $[6] = t3;
5521
+ } else {
5522
+ t3 = $[6];
5523
+ }
5524
+ const t4 = dimensionsValue ?? "";
5525
+ const t5 = Boolean(dimensionsError);
5526
+ let t6;
5527
+ if ($[7] !== disabled || $[8] !== t3 || $[9] !== t4 || $[10] !== t5) {
5528
+ t6 = /* @__PURE__ */ jsx(TextField, { name: "dimensions", disabled, type: "number", onChange: t3, label: "Vector Dimensions", value: t4, error: t5 });
5529
+ $[7] = disabled;
5530
+ $[8] = t3;
5531
+ $[9] = t4;
5532
+ $[10] = t5;
5533
+ $[11] = t6;
5534
+ } else {
5535
+ t6 = $[11];
5536
+ }
5537
+ const t7 = Boolean(dimensionsError);
5538
+ const t8 = dimensionsError ?? "The dimension size of the vector embeddings (e.g., 1536 for OpenAI text-embedding-3-small).";
5539
+ let t9;
5540
+ if ($[12] !== t7 || $[13] !== t8) {
5541
+ t9 = /* @__PURE__ */ jsx(FieldCaption, { error: t7, children: t8 });
5542
+ $[12] = t7;
5543
+ $[13] = t8;
5544
+ $[14] = t9;
5545
+ } else {
5546
+ t9 = $[14];
5547
+ }
5548
+ let t10;
5549
+ if ($[15] !== t6 || $[16] !== t9) {
5550
+ t10 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
5551
+ t6,
5552
+ t9
5553
+ ] });
5554
+ $[15] = t6;
5555
+ $[16] = t9;
5556
+ $[17] = t10;
5557
+ } else {
5558
+ t10 = $[17];
5559
+ }
5560
+ return t10;
5561
+ }
5482
5562
  function KeyValuePropertyField(t0) {
5483
5563
  const $ = c(2);
5484
5564
  const {
@@ -6961,6 +7041,9 @@ const PropertyForm = React__default.memo(function PropertyForm2(props) {
6961
7041
  if (values.type === "reference" && !values.path) {
6962
7042
  errors.slug = "You must specify a target collection for the field";
6963
7043
  }
7044
+ if (values.type === "vector" && (!values.dimensions || isNaN(Number(values.dimensions)) || Number(values.dimensions) <= 0)) {
7045
+ errors.dimensions = "Vector dimensions must be a positive number";
7046
+ }
6964
7047
  if (values.propertyConfig === "repeat") {
6965
7048
  if (!("of" in values) || !values.of) {
6966
7049
  errors.of = "You need to specify a repeat field";
@@ -7187,7 +7270,7 @@ function PropertyFormDialog(t0) {
7187
7270
  return t11;
7188
7271
  }
7189
7272
  function PropertyEditFormFields(t0) {
7190
- const $ = c(148);
7273
+ const $ = c(150);
7191
7274
  const {
7192
7275
  values,
7193
7276
  errors,
@@ -7551,7 +7634,19 @@ function PropertyEditFormFields(t0) {
7551
7634
  }
7552
7635
  childComponent = t102;
7553
7636
  } else {
7554
- childComponent = null;
7637
+ if (selectedFieldConfigId === "vector_input") {
7638
+ let t102;
7639
+ if ($[97] !== disabled) {
7640
+ t102 = /* @__PURE__ */ jsx(VectorPropertyField, { disabled });
7641
+ $[97] = disabled;
7642
+ $[98] = t102;
7643
+ } else {
7644
+ t102 = $[98];
7645
+ }
7646
+ childComponent = t102;
7647
+ } else {
7648
+ childComponent = null;
7649
+ }
7555
7650
  }
7556
7651
  }
7557
7652
  }
@@ -7571,162 +7666,162 @@ function PropertyEditFormFields(t0) {
7571
7666
  }
7572
7667
  }
7573
7668
  let t10;
7574
- if ($[97] !== disabled) {
7669
+ if ($[99] !== disabled) {
7575
7670
  t10 = disabled && /* @__PURE__ */ jsxs(InfoLabel, { mode: "warn", children: [
7576
7671
  /* @__PURE__ */ jsx(Typography, { children: "This property can't be edited" }),
7577
7672
  /* @__PURE__ */ jsx(Typography, { variant: "caption", children: "You may not have permission to edit it or it is defined in code and cannot be modified." })
7578
7673
  ] });
7579
- $[97] = disabled;
7580
- $[98] = t10;
7674
+ $[99] = disabled;
7675
+ $[100] = t10;
7581
7676
  } else {
7582
- t10 = $[98];
7677
+ t10 = $[100];
7583
7678
  }
7584
7679
  const t11 = selectedFieldConfigId;
7585
7680
  let t12;
7586
- if ($[99] !== onWidgetSelectChanged) {
7681
+ if ($[101] !== onWidgetSelectChanged) {
7587
7682
  t12 = (value) => onWidgetSelectChanged(value);
7588
- $[99] = onWidgetSelectChanged;
7589
- $[100] = t12;
7683
+ $[101] = onWidgetSelectChanged;
7684
+ $[102] = t12;
7590
7685
  } else {
7591
- t12 = $[100];
7686
+ t12 = $[102];
7592
7687
  }
7593
7688
  let t13;
7594
- if ($[101] !== onDismiss) {
7689
+ if ($[103] !== onDismiss) {
7595
7690
  t13 = (open, hasValue) => {
7596
7691
  if (!hasValue) {
7597
7692
  onDismiss?.();
7598
7693
  }
7599
7694
  setSelectOpen(open);
7600
7695
  };
7601
- $[101] = onDismiss;
7602
- $[102] = t13;
7696
+ $[103] = onDismiss;
7697
+ $[104] = t13;
7603
7698
  } else {
7604
- t13 = $[102];
7699
+ t13 = $[104];
7605
7700
  }
7606
7701
  const t14 = Boolean(selectedWidgetError);
7607
7702
  let t15;
7608
- if ($[103] !== disabled || $[104] !== existing || $[105] !== inArray || $[106] !== propertyConfigs || $[107] !== selectOpen || $[108] !== t11 || $[109] !== t12 || $[110] !== t13 || $[111] !== t14 || $[112] !== values) {
7703
+ if ($[105] !== disabled || $[106] !== existing || $[107] !== inArray || $[108] !== propertyConfigs || $[109] !== selectOpen || $[110] !== t11 || $[111] !== t12 || $[112] !== t13 || $[113] !== t14 || $[114] !== values) {
7609
7704
  t15 = /* @__PURE__ */ jsx(WidgetSelectView, { initialProperty: values, value: t11, onValueChange: t12, open: selectOpen, onOpenChange: t13, disabled, showError: t14, existing, propertyConfigs, inArray });
7610
- $[103] = disabled;
7611
- $[104] = existing;
7612
- $[105] = inArray;
7613
- $[106] = propertyConfigs;
7614
- $[107] = selectOpen;
7615
- $[108] = t11;
7616
- $[109] = t12;
7617
- $[110] = t13;
7618
- $[111] = t14;
7619
- $[112] = values;
7620
- $[113] = t15;
7621
- } else {
7622
- t15 = $[113];
7705
+ $[105] = disabled;
7706
+ $[106] = existing;
7707
+ $[107] = inArray;
7708
+ $[108] = propertyConfigs;
7709
+ $[109] = selectOpen;
7710
+ $[110] = t11;
7711
+ $[111] = t12;
7712
+ $[112] = t13;
7713
+ $[113] = t14;
7714
+ $[114] = values;
7715
+ $[115] = t15;
7716
+ } else {
7717
+ t15 = $[115];
7623
7718
  }
7624
7719
  let t16;
7625
- if ($[114] !== selectedWidgetError) {
7720
+ if ($[116] !== selectedWidgetError) {
7626
7721
  t16 = !!selectedWidgetError && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5", color: "error", children: "Required" });
7627
- $[114] = selectedWidgetError;
7628
- $[115] = t16;
7722
+ $[116] = selectedWidgetError;
7723
+ $[117] = t16;
7629
7724
  } else {
7630
- t16 = $[115];
7725
+ t16 = $[117];
7631
7726
  }
7632
7727
  let t17;
7633
- if ($[116] !== t15 || $[117] !== t16) {
7728
+ if ($[118] !== t15 || $[119] !== t16) {
7634
7729
  t17 = /* @__PURE__ */ jsxs("div", { className: "w-full flex flex-col gap-2", children: [
7635
7730
  t15,
7636
7731
  t16
7637
7732
  ] });
7638
- $[116] = t15;
7639
- $[117] = t16;
7640
- $[118] = t17;
7733
+ $[118] = t15;
7734
+ $[119] = t16;
7735
+ $[120] = t17;
7641
7736
  } else {
7642
- t17 = $[118];
7737
+ t17 = $[120];
7643
7738
  }
7644
7739
  let t18;
7645
- if ($[119] !== disabled || $[120] !== onDelete || $[121] !== values?.id) {
7646
- t18 = onDelete && values?.id && /* @__PURE__ */ jsx(IconButton, { variant: "ghost", className: "m-4", disabled, onClick: () => setDeleteDialogOpen(true), children: /* @__PURE__ */ jsx(Trash2Icon, {}) });
7647
- $[119] = disabled;
7648
- $[120] = onDelete;
7649
- $[121] = values?.id;
7650
- $[122] = t18;
7740
+ if ($[121] !== disabled || $[122] !== onDelete || $[123] !== values?.id) {
7741
+ t18 = onDelete && values?.id && /* @__PURE__ */ jsx(IconButton, { variant: "ghost", className: "mt-1 shrink-0", disabled, onClick: () => setDeleteDialogOpen(true), children: /* @__PURE__ */ jsx(Trash2Icon, { size: iconSize.small }) });
7742
+ $[121] = disabled;
7743
+ $[122] = onDelete;
7744
+ $[123] = values?.id;
7745
+ $[124] = t18;
7651
7746
  } else {
7652
- t18 = $[122];
7747
+ t18 = $[124];
7653
7748
  }
7654
7749
  let t19;
7655
- if ($[123] !== t17 || $[124] !== t18) {
7656
- t19 = /* @__PURE__ */ jsxs("div", { className: "flex mt-2 justify-between", children: [
7750
+ if ($[125] !== t17 || $[126] !== t18) {
7751
+ t19 = /* @__PURE__ */ jsxs("div", { className: "flex mt-2 items-start justify-between", children: [
7657
7752
  t17,
7658
7753
  t18
7659
7754
  ] });
7660
- $[123] = t17;
7661
- $[124] = t18;
7662
- $[125] = t19;
7755
+ $[125] = t17;
7756
+ $[126] = t18;
7757
+ $[127] = t19;
7663
7758
  } else {
7664
- t19 = $[125];
7759
+ t19 = $[127];
7665
7760
  }
7666
7761
  let t20;
7667
- if ($[126] !== autoUpdateId || $[127] !== disabled || $[128] !== existing || $[129] !== includeIdAndTitle || $[130] !== showErrors) {
7762
+ if ($[128] !== autoUpdateId || $[129] !== disabled || $[130] !== existing || $[131] !== includeIdAndTitle || $[132] !== showErrors) {
7668
7763
  t20 = includeIdAndTitle && /* @__PURE__ */ jsx(CommonPropertyFields, { showErrors, disabledId: existing, isNewProperty: !existing, disabled, autoUpdateId, ref: nameFieldRef });
7669
- $[126] = autoUpdateId;
7670
- $[127] = disabled;
7671
- $[128] = existing;
7672
- $[129] = includeIdAndTitle;
7673
- $[130] = showErrors;
7674
- $[131] = t20;
7764
+ $[128] = autoUpdateId;
7765
+ $[129] = disabled;
7766
+ $[130] = existing;
7767
+ $[131] = includeIdAndTitle;
7768
+ $[132] = showErrors;
7769
+ $[133] = t20;
7675
7770
  } else {
7676
- t20 = $[131];
7771
+ t20 = $[133];
7677
7772
  }
7678
7773
  let t21;
7679
- if ($[132] !== disabled) {
7774
+ if ($[134] !== disabled) {
7680
7775
  t21 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(AdvancedPropertyValidation, { disabled }) });
7681
- $[132] = disabled;
7682
- $[133] = t21;
7776
+ $[134] = disabled;
7777
+ $[135] = t21;
7683
7778
  } else {
7684
- t21 = $[133];
7779
+ t21 = $[135];
7685
7780
  }
7686
7781
  let t22;
7687
- if ($[134] !== childComponent || $[135] !== t20 || $[136] !== t21) {
7782
+ if ($[136] !== childComponent || $[137] !== t20 || $[138] !== t21) {
7688
7783
  t22 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-y-8 mt-6 mb-8", children: [
7689
7784
  t20,
7690
7785
  childComponent,
7691
7786
  t21
7692
7787
  ] });
7693
- $[134] = childComponent;
7694
- $[135] = t20;
7695
- $[136] = t21;
7696
- $[137] = t22;
7788
+ $[136] = childComponent;
7789
+ $[137] = t20;
7790
+ $[138] = t21;
7791
+ $[139] = t22;
7697
7792
  } else {
7698
- t22 = $[137];
7793
+ t22 = $[139];
7699
7794
  }
7700
7795
  let t23;
7701
- if ($[138] !== deleteDialogOpen || $[139] !== onDelete || $[140] !== propertyNamespace || $[141] !== values?.id) {
7796
+ if ($[140] !== deleteDialogOpen || $[141] !== onDelete || $[142] !== propertyNamespace || $[143] !== values?.id) {
7702
7797
  t23 = onDelete && /* @__PURE__ */ jsx(ConfirmationDialog, { open: deleteDialogOpen, onAccept: () => onDelete(values?.id, propertyNamespace), onCancel: () => setDeleteDialogOpen(false), title: /* @__PURE__ */ jsx("div", { children: "Delete this property?" }), body: /* @__PURE__ */ jsxs("div", { children: [
7703
7798
  " This will ",
7704
7799
  /* @__PURE__ */ jsx("b", { children: "not delete any data" }),
7705
7800
  ", only modify the collection."
7706
7801
  ] }) });
7707
- $[138] = deleteDialogOpen;
7708
- $[139] = onDelete;
7709
- $[140] = propertyNamespace;
7710
- $[141] = values?.id;
7711
- $[142] = t23;
7802
+ $[140] = deleteDialogOpen;
7803
+ $[141] = onDelete;
7804
+ $[142] = propertyNamespace;
7805
+ $[143] = values?.id;
7806
+ $[144] = t23;
7712
7807
  } else {
7713
- t23 = $[142];
7808
+ t23 = $[144];
7714
7809
  }
7715
7810
  let t24;
7716
- if ($[143] !== t10 || $[144] !== t19 || $[145] !== t22 || $[146] !== t23) {
7811
+ if ($[145] !== t10 || $[146] !== t19 || $[147] !== t22 || $[148] !== t23) {
7717
7812
  t24 = /* @__PURE__ */ jsxs(Fragment, { children: [
7718
7813
  t10,
7719
7814
  t19,
7720
7815
  t22,
7721
7816
  t23
7722
7817
  ] });
7723
- $[143] = t10;
7724
- $[144] = t19;
7725
- $[145] = t22;
7726
- $[146] = t23;
7727
- $[147] = t24;
7818
+ $[145] = t10;
7819
+ $[146] = t19;
7820
+ $[147] = t22;
7821
+ $[148] = t23;
7822
+ $[149] = t24;
7728
7823
  } else {
7729
- t24 = $[147];
7824
+ t24 = $[149];
7730
7825
  }
7731
7826
  return t24;
7732
7827
  }
@@ -7775,7 +7870,8 @@ const WIDGET_TYPE_MAP = {
7775
7870
  key_value: "Group",
7776
7871
  repeat: "Array",
7777
7872
  custom_array: "Array",
7778
- block: "Group"
7873
+ block: "Group",
7874
+ vector_input: "Number"
7779
7875
  };
7780
7876
  function WidgetSelectView(t0) {
7781
7877
  const $ = c(55);
@@ -8105,12 +8201,12 @@ const PropertyEditView = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
8105
8201
  }, Symbol.toStringTag, { value: "Module" }));
8106
8202
  export {
8107
8203
  AIModifiedPathsProvider as A,
8108
- PropertyForm as P,
8109
- PropertyFormDialog as a,
8110
- PropertyTree as b,
8111
- updatePropertyFromWidget as c,
8112
- PropertyEditView as d,
8204
+ PropertyEditView as P,
8205
+ PropertyForm as a,
8206
+ PropertyFormDialog as b,
8207
+ PropertyTree as c,
8208
+ useAIModifiedPaths as d,
8113
8209
  supportedFields as s,
8114
- useAIModifiedPaths as u
8210
+ updatePropertyFromWidget as u
8115
8211
  };
8116
- //# sourceMappingURL=PropertyEditView-BuZrNnBN.js.map
8212
+ //# sourceMappingURL=PropertyEditView-BB5xjnhZ.js.map