@rebasepro/admin 0.2.3 → 0.2.5

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 (225) hide show
  1. package/dist/{CollectionEditorDialog-CmGXXSY9.js → CollectionEditorDialog-Cn8-tGyL.js} +89 -79
  2. package/dist/CollectionEditorDialog-Cn8-tGyL.js.map +1 -0
  3. package/dist/{CollectionsStudioView-DcLHT5bU.js → CollectionsStudioView-C-Ts1rZt.js} +5 -4
  4. package/dist/{CollectionsStudioView-DcLHT5bU.js.map → CollectionsStudioView-C-Ts1rZt.js.map} +1 -1
  5. package/dist/{ExportCollectionAction-BfN34eWX.js → ExportCollectionAction-BRdKM3DF.js} +4 -3
  6. package/dist/ExportCollectionAction-BRdKM3DF.js.map +1 -0
  7. package/dist/{ImportCollectionAction-SZrInjhx.js → ImportCollectionAction-U-v7lGxO.js} +3 -2
  8. package/dist/{ImportCollectionAction-SZrInjhx.js.map → ImportCollectionAction-U-v7lGxO.js.map} +1 -1
  9. package/dist/{PropertyEditView-Cvryrb3B.js → PropertyEditView-BDNYkfNf.js} +128 -121
  10. package/dist/PropertyEditView-BDNYkfNf.js.map +1 -0
  11. package/dist/collection_editor/ConfigControllerProvider.d.ts +0 -5
  12. package/dist/collection_editor/index.d.ts +0 -1
  13. package/dist/collection_editor/types/collection_editor_controller.d.ts +0 -2
  14. package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +3 -3
  15. package/dist/collection_editor_ui.js +3 -3
  16. package/dist/components/ArrayContainer.d.ts +2 -2
  17. package/dist/components/DefaultAppBar.d.ts +18 -1
  18. package/dist/components/DefaultDrawer.d.ts +51 -3
  19. package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
  20. package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +2 -2
  21. package/dist/components/EntityCollectionTable/table_bindings.d.ts +4 -3
  22. package/dist/components/EntityCollectionView/hooks/useKanbanDragAndDrop.d.ts +4 -3
  23. package/dist/components/EntityEditView.d.ts +2 -1
  24. package/dist/components/HomePage/HomePageDnD.d.ts +3 -3
  25. package/dist/components/PropertyCollectionView.d.ts +1 -1
  26. package/dist/components/PropertyIdCopyTooltip.d.ts +1 -1
  27. package/dist/components/RebaseRouteDefs.d.ts +1 -1
  28. package/dist/components/SelectableTable/SelectionStore.d.ts +4 -1
  29. package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +2 -2
  30. package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +2 -2
  31. package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +2 -2
  32. package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -2
  33. package/dist/components/admin/index.d.ts +1 -3
  34. package/dist/components/app/Drawer.d.ts +8 -1
  35. package/dist/data_export/export/export.d.ts +3 -3
  36. package/dist/editor/components/editor-bubble.d.ts +5 -1
  37. package/dist/editor/components/image-bubble.d.ts +5 -1
  38. package/dist/editor/components/index.d.ts +3 -3
  39. package/dist/editor/components/table-bubble.d.ts +5 -1
  40. package/dist/editor/nodeViews/ReactNodeView.d.ts +4 -1
  41. package/dist/editor/useProseMirror.d.ts +2 -2
  42. package/dist/editor/utils/remove_classes.d.ts +1 -1
  43. package/dist/editor.js +15 -14
  44. package/dist/editor.js.map +1 -1
  45. package/dist/form/EntityForm.d.ts +2 -2
  46. package/dist/form/components/StorageUploadProgress.d.ts +2 -2
  47. package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
  48. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +1 -1
  49. package/dist/form/validation.d.ts +3 -3
  50. package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +1 -1
  51. package/dist/hooks/navigation/useResolvedCollections.d.ts +6 -0
  52. package/dist/hooks/navigation/useResolvedViews.d.ts +3 -7
  53. package/dist/{index-DjduZG1T.js → index-DHaOV-7A.js} +3 -3
  54. package/dist/index-DHaOV-7A.js.map +1 -0
  55. package/dist/{index-MKPc70-v.js → index-DJSL_SCr.js} +3 -3
  56. package/dist/index-DJSL_SCr.js.map +1 -0
  57. package/dist/{index-PLIQXpTt.js → index-XMII4H3d.js} +3 -2
  58. package/dist/{index-PLIQXpTt.js.map → index-XMII4H3d.js.map} +1 -1
  59. package/dist/index.d.ts +1 -3
  60. package/dist/index.js +2688 -452
  61. package/dist/index.js.map +1 -1
  62. package/dist/{markdown-z2Ir7Cgo.js → markdown-DD2JDU1X.js} +2 -2
  63. package/dist/markdown-DD2JDU1X.js.map +1 -0
  64. package/dist/preview/components/UrlComponentPreview.d.ts +1 -0
  65. package/dist/types/components/EntityFormActionsProps.d.ts +1 -1
  66. package/dist/types/components/EntityFormProps.d.ts +2 -2
  67. package/dist/types/fields.d.ts +1 -1
  68. package/dist/{util-DbWax_sV.js → util-0GYaJqL_.js} +1505 -2043
  69. package/dist/util-0GYaJqL_.js.map +1 -0
  70. package/package.json +8 -8
  71. package/src/collection_editor/ConfigControllerProvider.tsx +3 -13
  72. package/src/collection_editor/index.ts +1 -3
  73. package/src/collection_editor/pgColumnToProperty.ts +19 -2
  74. package/src/collection_editor/types/collection_editor_controller.tsx +0 -3
  75. package/src/collection_editor/ui/EditorCollectionAction.tsx +1 -6
  76. package/src/collection_editor/ui/EditorCollectionActionStart.tsx +1 -6
  77. package/src/collection_editor/ui/EditorEntityAction.tsx +1 -6
  78. package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +7 -14
  79. package/src/collection_editor/ui/NewCollectionCard.tsx +1 -5
  80. package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +3 -8
  81. package/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.tsx +8 -12
  82. package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +21 -21
  83. package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +4 -4
  84. package/src/collection_editor/ui/collection_editor/EnumForm.tsx +1 -1
  85. package/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.tsx +3 -3
  86. package/src/collection_editor/ui/collection_editor/properties/CommonPropertyFields.tsx +3 -3
  87. package/src/collection_editor/ui/collection_editor/properties/DateTimePropertyField.tsx +8 -8
  88. package/src/collection_editor/ui/collection_editor/properties/EnumPropertyField.tsx +5 -5
  89. package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +2 -2
  90. package/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.tsx +5 -5
  91. package/src/collection_editor/ui/collection_editor/properties/NumberPropertyField.tsx +5 -5
  92. package/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.tsx +2 -2
  93. package/src/collection_editor/ui/collection_editor/properties/RepeatPropertyField.tsx +2 -2
  94. package/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.tsx +8 -8
  95. package/src/collection_editor/ui/collection_editor/properties/StringPropertyField.tsx +5 -5
  96. package/src/collection_editor/ui/collection_editor/properties/UrlPropertyField.tsx +3 -2
  97. package/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.tsx +2 -2
  98. package/src/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.tsx +2 -2
  99. package/src/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.tsx +1 -1
  100. package/src/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.tsx +4 -7
  101. package/src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +4 -4
  102. package/src/components/ArrayContainer.tsx +3 -3
  103. package/src/components/DefaultAppBar.tsx +52 -31
  104. package/src/components/DefaultDrawer.tsx +280 -67
  105. package/src/components/DrawerNavigationItem.tsx +1 -1
  106. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +6 -5
  107. package/src/components/EntityCollectionTable/PropertyTableCell.tsx +9 -7
  108. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +5 -5
  109. package/src/components/EntityCollectionTable/fields/VirtualTableNumberInput.tsx +12 -9
  110. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +2 -2
  111. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -1
  112. package/src/components/EntityCollectionTable/table_bindings.tsx +5 -4
  113. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +4 -4
  114. package/src/components/EntityCollectionView/EntityCollectionListView.tsx +7 -0
  115. package/src/components/EntityCollectionView/EntityCollectionView.tsx +10 -5
  116. package/src/components/EntityCollectionView/hooks/useCollectionInlineEditor.ts +1 -1
  117. package/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.ts +7 -6
  118. package/src/components/EntityDetailView.tsx +46 -24
  119. package/src/components/EntityEditView.tsx +51 -28
  120. package/src/components/EntityEditViewFormActions.tsx +4 -4
  121. package/src/components/EntityPreview.tsx +9 -4
  122. package/src/components/HomePage/HomePageDnD.tsx +3 -2
  123. package/src/components/PropertyCollectionView.tsx +1 -1
  124. package/src/components/PropertyIdCopyTooltip.tsx +1 -1
  125. package/src/components/RebaseLayout.tsx +5 -1
  126. package/src/components/RebaseNavigation.tsx +2 -2
  127. package/src/components/RebaseRouteDefs.tsx +6 -11
  128. package/src/components/RebaseShell.tsx +16 -13
  129. package/src/components/SearchIconsView.tsx +1 -8
  130. package/src/components/SelectableTable/SelectableTable.tsx +8 -11
  131. package/src/components/SelectableTable/SelectionStore.ts +1 -1
  132. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +3 -3
  133. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +3 -3
  134. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +5 -5
  135. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +3 -3
  136. package/src/components/SideEntityProvider.tsx +2 -1
  137. package/src/components/admin/index.ts +1 -3
  138. package/src/components/app/Drawer.tsx +9 -1
  139. package/src/components/app/Scaffold.tsx +5 -1
  140. package/src/components/index.ts +1 -3
  141. package/src/data_export/export/export.ts +17 -17
  142. package/src/data_import/components/DataNewPropertiesMapping.tsx +1 -1
  143. package/src/editor/components/editor-bubble.tsx +32 -9
  144. package/src/editor/components/image-bubble.tsx +27 -11
  145. package/src/editor/components/index.ts +3 -3
  146. package/src/editor/components/table-bubble.tsx +79 -17
  147. package/src/editor/extensions/HighlightDecorationExtension.ts +3 -2
  148. package/src/editor/nodeViews/ReactNodeView.tsx +1 -1
  149. package/src/editor/nodeViews/TaskItemComponent.tsx +9 -8
  150. package/src/editor/schema.ts +135 -59
  151. package/src/editor/selectors/link-selector.tsx +8 -5
  152. package/src/editor/useProseMirror.ts +2 -2
  153. package/src/editor/utils/remove_classes.ts +6 -5
  154. package/src/form/EntityForm.tsx +15 -15
  155. package/src/form/EntityFormActions.tsx +2 -2
  156. package/src/form/PropertyFieldBinding.tsx +64 -64
  157. package/src/form/components/FieldHelperText.tsx +4 -4
  158. package/src/form/components/StorageUploadProgress.tsx +2 -2
  159. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +1 -1
  160. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -1
  161. package/src/form/field_bindings/BlockFieldBinding.tsx +54 -53
  162. package/src/form/field_bindings/KeyValueFieldBinding.tsx +290 -289
  163. package/src/form/field_bindings/MapFieldBinding.tsx +2 -2
  164. package/src/form/field_bindings/MultiSelectFieldBinding.tsx +2 -2
  165. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +1 -1
  166. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +1 -1
  167. package/src/form/field_bindings/ReferenceFieldBinding.tsx +8 -6
  168. package/src/form/field_bindings/RelationFieldBinding.tsx +4 -4
  169. package/src/form/field_bindings/RepeatFieldBinding.tsx +1 -1
  170. package/src/form/field_bindings/SelectFieldBinding.tsx +1 -1
  171. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +84 -84
  172. package/src/form/field_bindings/SwitchFieldBinding.tsx +16 -16
  173. package/src/form/field_bindings/TextFieldBinding.tsx +77 -73
  174. package/src/form/field_bindings/UserSelectFieldBinding.tsx +17 -17
  175. package/src/form/validation.ts +43 -43
  176. package/src/hooks/navigation/useBuildNavigationStateController.tsx +4 -7
  177. package/src/hooks/navigation/useResolvedCollections.ts +27 -7
  178. package/src/hooks/navigation/useResolvedViews.tsx +8 -70
  179. package/src/index.ts +4 -3
  180. package/src/preview/PropertyPreview.tsx +2 -2
  181. package/src/preview/components/ImagePreview.tsx +2 -1
  182. package/src/preview/components/UrlComponentPreview.tsx +11 -2
  183. package/src/preview/components/UserPreview.tsx +1 -1
  184. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +2 -2
  185. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +4 -4
  186. package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +3 -3
  187. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +3 -3
  188. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +3 -2
  189. package/src/preview/property_previews/ArrayOneOfPreview.tsx +6 -8
  190. package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +1 -1
  191. package/src/preview/property_previews/ArrayPropertyPreview.tsx +3 -3
  192. package/src/preview/property_previews/MapPropertyPreview.tsx +4 -3
  193. package/src/preview/property_previews/NumberPropertyPreview.tsx +5 -3
  194. package/src/preview/property_previews/StringPropertyPreview.tsx +10 -8
  195. package/src/types/components/EntityFormActionsProps.tsx +1 -1
  196. package/src/types/components/EntityFormProps.tsx +2 -2
  197. package/src/types/fields.tsx +2 -2
  198. package/src/util/previews.ts +9 -1
  199. package/dist/CollectionEditorDialog-CmGXXSY9.js.map +0 -1
  200. package/dist/ContentHomePage-C7vFqKSe.js +0 -1784
  201. package/dist/ContentHomePage-C7vFqKSe.js.map +0 -1
  202. package/dist/ExportCollectionAction-BfN34eWX.js.map +0 -1
  203. package/dist/PropertyEditView-Cvryrb3B.js.map +0 -1
  204. package/dist/RoleChip-QtUFXeTp.js +0 -67
  205. package/dist/RoleChip-QtUFXeTp.js.map +0 -1
  206. package/dist/RolesView-BCb7qwWs.js +0 -437
  207. package/dist/RolesView-BCb7qwWs.js.map +0 -1
  208. package/dist/UsersView-Cex24r8H.js +0 -408
  209. package/dist/UsersView-Cex24r8H.js.map +0 -1
  210. package/dist/collection_editor/types/config_permissions.d.ts +0 -19
  211. package/dist/components/admin/RoleChip.d.ts +0 -4
  212. package/dist/components/admin/RolesFilterSelect.d.ts +0 -2
  213. package/dist/components/admin/RolesView.d.ts +0 -4
  214. package/dist/components/admin/UserRolesSelectField.d.ts +0 -2
  215. package/dist/components/admin/UsersView.d.ts +0 -4
  216. package/dist/index-DjduZG1T.js.map +0 -1
  217. package/dist/index-MKPc70-v.js.map +0 -1
  218. package/dist/markdown-z2Ir7Cgo.js.map +0 -1
  219. package/dist/util-DbWax_sV.js.map +0 -1
  220. package/src/collection_editor/types/config_permissions.ts +0 -20
  221. package/src/components/admin/RoleChip.tsx +0 -23
  222. package/src/components/admin/RolesFilterSelect.tsx +0 -45
  223. package/src/components/admin/RolesView.tsx +0 -465
  224. package/src/components/admin/UserRolesSelectField.tsx +0 -50
  225. package/src/components/admin/UsersView.tsx +0 -687
@@ -4,7 +4,7 @@ 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 { 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-DbWax_sV.js";
7
+ import { a as ArrayContainer, N as FieldCaption, aO as getFieldConfig, a4 as PropertyConfigBadge, aR as getFullIdPath, aQ as getFullId, aY as idToPropertiesPath, b0 as namespaceToPropertiesOrderPath, b1 as namespaceToPropertiesPath, bl as useCollectionRegistryController, o as DEFAULT_FIELD_CONFIGS, aP as getFieldId } from "./util-0GYaJqL_.js";
8
8
  import { resolveEnumValues, isPropertyBuilder } from "@rebasepro/common";
9
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";
10
10
  import "zod";
@@ -19,6 +19,7 @@ import "exceljs";
19
19
  import { extractEnumFromValues } from "@rebasepro/schema-inference";
20
20
  import "date-fns";
21
21
  import "date-fns/locale";
22
+ import "fuse.js";
22
23
  import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
23
24
  function EnumForm(t0) {
24
25
  const $ = c(22);
@@ -1016,7 +1017,7 @@ function EnumPropertyField({
1016
1017
  ] }) }),
1017
1018
  !multiselect && /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Select, { disabled, position: "item-aligned", fullWidth: true, onValueChange: (value_0) => {
1018
1019
  setFieldValue("defaultValue", value_0);
1019
- }, label: t("default_value"), value: defaultValue ?? "", children: enumValues.filter((enumValue) => Boolean(enumValue?.id)).map((enumValue_0) => /* @__PURE__ */ jsx(SelectItem, { value: enumValue_0.id?.toString(), children: enumValue_0.label }, enumValue_0.id)) }) })
1020
+ }, label: t("default_value"), value: defaultValue?.toString() ?? "", children: enumValues.filter((enumValue) => Boolean(enumValue?.id)).map((enumValue_0) => /* @__PURE__ */ jsx(SelectItem, { value: enumValue_0.id?.toString(), children: enumValue_0.label }, enumValue_0.id)) }) })
1020
1021
  ] });
1021
1022
  }
1022
1023
  const fileTypes = {
@@ -2708,11 +2709,11 @@ function MapPropertyField(t0) {
2708
2709
  const propertiesOrder = t1;
2709
2710
  let t2;
2710
2711
  if ($[3] !== setFieldValue || $[4] !== values.properties || $[5] !== values.propertiesOrder) {
2711
- t2 = (t34) => {
2712
+ t2 = (t35) => {
2712
2713
  const {
2713
2714
  id,
2714
2715
  property
2715
- } = t34;
2716
+ } = t35;
2716
2717
  if (!id) {
2717
2718
  throw Error();
2718
2719
  }
@@ -2742,7 +2743,7 @@ function MapPropertyField(t0) {
2742
2743
  }
2743
2744
  const propertiesPath = idToPropertiesPath(fullId);
2744
2745
  const propertiesOrderPath = namespaceToPropertiesOrderPath(namespace);
2745
- const currentPropertiesOrder_0 = getIn(values, propertiesOrderPath) ?? Object.keys(getIn(values, namespaceToPropertiesPath(namespace)));
2746
+ const currentPropertiesOrder_0 = getIn(values, propertiesOrderPath) ?? Object.keys(getIn(values, namespaceToPropertiesPath(namespace)) ?? {});
2746
2747
  setFieldValue(propertiesPath, void 0, false);
2747
2748
  setFieldValue(propertiesOrderPath, currentPropertiesOrder_0.filter((p) => p !== propertyKey), false);
2748
2749
  setPropertyDialogOpen(false);
@@ -2960,45 +2961,46 @@ function MapPropertyField(t0) {
2960
2961
  t26 = $[54];
2961
2962
  t27 = $[55];
2962
2963
  }
2963
- const t28 = Boolean(selectedPropertyKey);
2964
- const t29 = !selectedPropertyKey;
2964
+ const t28 = selectedProperty;
2965
+ const t29 = Boolean(selectedPropertyKey);
2965
2966
  const t30 = !selectedPropertyKey;
2966
- const t31 = selectedPropertyKey ? void 0 : propertiesOrder;
2967
- let t32;
2968
- if ($[56] !== allowDataInference || $[57] !== deleteProperty || $[58] !== getData || $[59] !== onPropertyCreated || $[60] !== propertyConfigs || $[61] !== propertyDialogOpen || $[62] !== selectedProperty || $[63] !== selectedPropertyKey || $[64] !== selectedPropertyNamespace || $[65] !== t28 || $[66] !== t29 || $[67] !== t30 || $[68] !== t31) {
2969
- t32 = /* @__PURE__ */ jsx(PropertyFormDialog, { inArray: false, forceShowErrors: false, open: propertyDialogOpen, allowDataInference, onCancel: t26, onOkClicked: t27, getData, onDelete: deleteProperty, propertyKey: selectedPropertyKey, propertyNamespace: selectedPropertyNamespace, property: selectedProperty, existingProperty: t28, autoUpdateId: t29, autoOpenTypeSelect: t30, onPropertyChanged: onPropertyCreated, existingPropertyKeys: t31, propertyConfigs });
2967
+ const t31 = !selectedPropertyKey;
2968
+ const t32 = selectedPropertyKey ? void 0 : propertiesOrder;
2969
+ let t33;
2970
+ if ($[56] !== allowDataInference || $[57] !== deleteProperty || $[58] !== getData || $[59] !== onPropertyCreated || $[60] !== propertyConfigs || $[61] !== propertyDialogOpen || $[62] !== selectedPropertyKey || $[63] !== selectedPropertyNamespace || $[64] !== t28 || $[65] !== t29 || $[66] !== t30 || $[67] !== t31 || $[68] !== t32) {
2971
+ t33 = /* @__PURE__ */ jsx(PropertyFormDialog, { inArray: false, forceShowErrors: false, open: propertyDialogOpen, allowDataInference, onCancel: t26, onOkClicked: t27, getData, onDelete: deleteProperty, propertyKey: selectedPropertyKey, propertyNamespace: selectedPropertyNamespace, property: t28, existingProperty: t29, autoUpdateId: t30, autoOpenTypeSelect: t31, onPropertyChanged: onPropertyCreated, existingPropertyKeys: t32, propertyConfigs });
2970
2972
  $[56] = allowDataInference;
2971
2973
  $[57] = deleteProperty;
2972
2974
  $[58] = getData;
2973
2975
  $[59] = onPropertyCreated;
2974
2976
  $[60] = propertyConfigs;
2975
2977
  $[61] = propertyDialogOpen;
2976
- $[62] = selectedProperty;
2977
- $[63] = selectedPropertyKey;
2978
- $[64] = selectedPropertyNamespace;
2979
- $[65] = t28;
2980
- $[66] = t29;
2981
- $[67] = t30;
2982
- $[68] = t31;
2983
- $[69] = t32;
2978
+ $[62] = selectedPropertyKey;
2979
+ $[63] = selectedPropertyNamespace;
2980
+ $[64] = t28;
2981
+ $[65] = t29;
2982
+ $[66] = t30;
2983
+ $[67] = t31;
2984
+ $[68] = t32;
2985
+ $[69] = t33;
2984
2986
  } else {
2985
- t32 = $[69];
2987
+ t33 = $[69];
2986
2988
  }
2987
- let t33;
2988
- if ($[70] !== t19 || $[71] !== t25 || $[72] !== t32) {
2989
- t33 = /* @__PURE__ */ jsxs(Fragment, { children: [
2989
+ let t34;
2990
+ if ($[70] !== t19 || $[71] !== t25 || $[72] !== t33) {
2991
+ t34 = /* @__PURE__ */ jsxs(Fragment, { children: [
2990
2992
  t19,
2991
2993
  t25,
2992
- t32
2994
+ t33
2993
2995
  ] });
2994
2996
  $[70] = t19;
2995
2997
  $[71] = t25;
2996
- $[72] = t32;
2997
- $[73] = t33;
2998
+ $[72] = t33;
2999
+ $[73] = t34;
2998
3000
  } else {
2999
- t33 = $[73];
3001
+ t34 = $[73];
3000
3002
  }
3001
- return t33;
3003
+ return t34;
3002
3004
  }
3003
3005
  function RepeatPropertyField(t0) {
3004
3006
  const $ = c(35);
@@ -3876,7 +3878,7 @@ function BlockPropertyField(t0) {
3876
3878
  }
3877
3879
  setFieldValue(`oneOf.${idToPropertiesPath(fullId)}`, void 0, false);
3878
3880
  const propertiesOrderPath = `oneOf.${namespaceToPropertiesOrderPath(namespace_0)}`;
3879
- const currentPropertiesOrder_0 = getIn(values, propertiesOrderPath) ?? Object.keys(getIn(values, namespaceToPropertiesPath(namespace_0)));
3881
+ const currentPropertiesOrder_0 = getIn(values, propertiesOrderPath) ?? Object.keys(getIn(values, namespaceToPropertiesPath(namespace_0)) ?? {});
3880
3882
  setFieldValue(propertiesOrderPath, currentPropertiesOrder_0.filter((p) => p !== propertyKey), false);
3881
3883
  setPropertyDialogOpen(false);
3882
3884
  setSelectedPropertyKey(void 0);
@@ -4083,176 +4085,180 @@ function NumberPropertyValidation(t0) {
4083
4085
  } else {
4084
4086
  t2 = $[3];
4085
4087
  }
4086
- let t3;
4088
+ const t3 = t2;
4089
+ let t4;
4087
4090
  if ($[4] !== t) {
4088
- t3 = t("min_value");
4091
+ t4 = t("min_value");
4089
4092
  $[4] = t;
4090
- $[5] = t3;
4093
+ $[5] = t4;
4091
4094
  } else {
4092
- t3 = $[5];
4095
+ t4 = $[5];
4093
4096
  }
4094
- let t4;
4095
- if ($[6] !== disabled || $[7] !== handleChange || $[8] !== t2 || $[9] !== t3) {
4096
- t4 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t2, label: t3, name: "validation.min", type: "number", size: "small", disabled, onChange: handleChange }) });
4097
+ let t5;
4098
+ if ($[6] !== disabled || $[7] !== handleChange || $[8] !== t3 || $[9] !== t4) {
4099
+ t5 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t3, label: t4, name: "validation.min", type: "number", size: "small", disabled, onChange: handleChange }) });
4097
4100
  $[6] = disabled;
4098
4101
  $[7] = handleChange;
4099
- $[8] = t2;
4100
- $[9] = t3;
4101
- $[10] = t4;
4102
+ $[8] = t3;
4103
+ $[9] = t4;
4104
+ $[10] = t5;
4102
4105
  } else {
4103
- t4 = $[10];
4106
+ t5 = $[10];
4104
4107
  }
4105
- let t5;
4108
+ let t6;
4106
4109
  if ($[11] !== values) {
4107
- t5 = getIn(values, "validation.max");
4110
+ t6 = getIn(values, "validation.max");
4108
4111
  $[11] = values;
4109
- $[12] = t5;
4112
+ $[12] = t6;
4110
4113
  } else {
4111
- t5 = $[12];
4114
+ t6 = $[12];
4112
4115
  }
4113
- let t6;
4116
+ const t7 = t6;
4117
+ let t8;
4114
4118
  if ($[13] !== t) {
4115
- t6 = t("max_value");
4119
+ t8 = t("max_value");
4116
4120
  $[13] = t;
4117
- $[14] = t6;
4121
+ $[14] = t8;
4118
4122
  } else {
4119
- t6 = $[14];
4123
+ t8 = $[14];
4120
4124
  }
4121
- let t7;
4122
- if ($[15] !== disabled || $[16] !== handleChange || $[17] !== t5 || $[18] !== t6) {
4123
- t7 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t5, label: t6, name: "validation.max", type: "number", size: "small", disabled, onChange: handleChange }) });
4125
+ let t9;
4126
+ if ($[15] !== disabled || $[16] !== handleChange || $[17] !== t7 || $[18] !== t8) {
4127
+ t9 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t7, label: t8, name: "validation.max", type: "number", size: "small", disabled, onChange: handleChange }) });
4124
4128
  $[15] = disabled;
4125
4129
  $[16] = handleChange;
4126
- $[17] = t5;
4127
- $[18] = t6;
4128
- $[19] = t7;
4130
+ $[17] = t7;
4131
+ $[18] = t8;
4132
+ $[19] = t9;
4129
4133
  } else {
4130
- t7 = $[19];
4134
+ t9 = $[19];
4131
4135
  }
4132
- let t8;
4136
+ let t10;
4133
4137
  if ($[20] !== values) {
4134
- t8 = getIn(values, "validation.lessThan");
4138
+ t10 = getIn(values, "validation.lessThan");
4135
4139
  $[20] = values;
4136
- $[21] = t8;
4140
+ $[21] = t10;
4137
4141
  } else {
4138
- t8 = $[21];
4142
+ t10 = $[21];
4139
4143
  }
4140
- let t9;
4144
+ const t11 = t10;
4145
+ let t12;
4141
4146
  if ($[22] !== t) {
4142
- t9 = t("less_than");
4147
+ t12 = t("less_than");
4143
4148
  $[22] = t;
4144
- $[23] = t9;
4149
+ $[23] = t12;
4145
4150
  } else {
4146
- t9 = $[23];
4151
+ t12 = $[23];
4147
4152
  }
4148
- let t10;
4149
- if ($[24] !== disabled || $[25] !== handleChange || $[26] !== t8 || $[27] !== t9) {
4150
- t10 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t8, label: t9, name: "validation.lessThan", type: "number", size: "small", disabled, onChange: handleChange }) });
4153
+ let t13;
4154
+ if ($[24] !== disabled || $[25] !== handleChange || $[26] !== t11 || $[27] !== t12) {
4155
+ t13 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t11, label: t12, name: "validation.lessThan", type: "number", size: "small", disabled, onChange: handleChange }) });
4151
4156
  $[24] = disabled;
4152
4157
  $[25] = handleChange;
4153
- $[26] = t8;
4154
- $[27] = t9;
4155
- $[28] = t10;
4158
+ $[26] = t11;
4159
+ $[27] = t12;
4160
+ $[28] = t13;
4156
4161
  } else {
4157
- t10 = $[28];
4162
+ t13 = $[28];
4158
4163
  }
4159
- let t11;
4164
+ let t14;
4160
4165
  if ($[29] !== values) {
4161
- t11 = getIn(values, "validation.moreThan");
4166
+ t14 = getIn(values, "validation.moreThan");
4162
4167
  $[29] = values;
4163
- $[30] = t11;
4168
+ $[30] = t14;
4164
4169
  } else {
4165
- t11 = $[30];
4170
+ t14 = $[30];
4166
4171
  }
4167
- let t12;
4172
+ const t15 = t14;
4173
+ let t16;
4168
4174
  if ($[31] !== t) {
4169
- t12 = t("more_than");
4175
+ t16 = t("more_than");
4170
4176
  $[31] = t;
4171
- $[32] = t12;
4177
+ $[32] = t16;
4172
4178
  } else {
4173
- t12 = $[32];
4179
+ t16 = $[32];
4174
4180
  }
4175
- let t13;
4176
- if ($[33] !== disabled || $[34] !== handleChange || $[35] !== t11 || $[36] !== t12) {
4177
- t13 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t11, label: t12, name: "validation.moreThan", type: "number", size: "small", disabled, onChange: handleChange }) });
4181
+ let t17;
4182
+ if ($[33] !== disabled || $[34] !== handleChange || $[35] !== t15 || $[36] !== t16) {
4183
+ t17 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { value: t15, label: t16, name: "validation.moreThan", type: "number", size: "small", disabled, onChange: handleChange }) });
4178
4184
  $[33] = disabled;
4179
4185
  $[34] = handleChange;
4180
- $[35] = t11;
4181
- $[36] = t12;
4182
- $[37] = t13;
4186
+ $[35] = t15;
4187
+ $[36] = t16;
4188
+ $[37] = t17;
4183
4189
  } else {
4184
- t13 = $[37];
4190
+ t17 = $[37];
4185
4191
  }
4186
- let t14;
4192
+ let t18;
4187
4193
  if ($[38] !== disabled || $[39] !== t) {
4188
- t14 = /* @__PURE__ */ jsx("div", { className: "col-span-4", children: /* @__PURE__ */ jsx(Field, { name: "validation.positive", type: "checkbox", children: (t152) => {
4194
+ t18 = /* @__PURE__ */ jsx("div", { className: "col-span-4", children: /* @__PURE__ */ jsx(Field, { name: "validation.positive", type: "checkbox", children: (t192) => {
4189
4195
  const {
4190
4196
  field,
4191
4197
  form
4192
- } = t152;
4198
+ } = t192;
4193
4199
  return /* @__PURE__ */ jsx(SwitchControl, { label: t("positive_value"), disabled, form, field });
4194
4200
  } }) });
4195
4201
  $[38] = disabled;
4196
4202
  $[39] = t;
4197
- $[40] = t14;
4203
+ $[40] = t18;
4198
4204
  } else {
4199
- t14 = $[40];
4205
+ t18 = $[40];
4200
4206
  }
4201
- let t15;
4207
+ let t19;
4202
4208
  if ($[41] !== disabled || $[42] !== t) {
4203
- t15 = /* @__PURE__ */ jsx("div", { className: "col-span-4", children: /* @__PURE__ */ jsx(Field, { name: "validation.negative", type: "checkbox", children: (t162) => {
4209
+ t19 = /* @__PURE__ */ jsx("div", { className: "col-span-4", children: /* @__PURE__ */ jsx(Field, { name: "validation.negative", type: "checkbox", children: (t202) => {
4204
4210
  const {
4205
4211
  field: field_0,
4206
4212
  form: form_0
4207
- } = t162;
4213
+ } = t202;
4208
4214
  return /* @__PURE__ */ jsx(SwitchControl, { label: t("negative_value"), disabled, form: form_0, field: field_0 });
4209
4215
  } }) });
4210
4216
  $[41] = disabled;
4211
4217
  $[42] = t;
4212
- $[43] = t15;
4218
+ $[43] = t19;
4213
4219
  } else {
4214
- t15 = $[43];
4220
+ t19 = $[43];
4215
4221
  }
4216
- let t16;
4222
+ let t20;
4217
4223
  if ($[44] !== disabled || $[45] !== t) {
4218
- t16 = /* @__PURE__ */ jsx("div", { className: "col-span-4", children: /* @__PURE__ */ jsx(Field, { name: "validation.integer", type: "checkbox", children: (t172) => {
4224
+ t20 = /* @__PURE__ */ jsx("div", { className: "col-span-4", children: /* @__PURE__ */ jsx(Field, { name: "validation.integer", type: "checkbox", children: (t212) => {
4219
4225
  const {
4220
4226
  field: field_1,
4221
4227
  form: form_1
4222
- } = t172;
4228
+ } = t212;
4223
4229
  return /* @__PURE__ */ jsx(SwitchControl, { label: t("integer_value"), disabled, form: form_1, field: field_1 });
4224
4230
  } }) });
4225
4231
  $[44] = disabled;
4226
4232
  $[45] = t;
4227
- $[46] = t16;
4233
+ $[46] = t20;
4228
4234
  } else {
4229
- t16 = $[46];
4235
+ t20 = $[46];
4230
4236
  }
4231
- let t17;
4232
- if ($[47] !== t1 || $[48] !== t10 || $[49] !== t13 || $[50] !== t14 || $[51] !== t15 || $[52] !== t16 || $[53] !== t4 || $[54] !== t7) {
4233
- t17 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2", children: [
4237
+ let t21;
4238
+ if ($[47] !== t1 || $[48] !== t13 || $[49] !== t17 || $[50] !== t18 || $[51] !== t19 || $[52] !== t20 || $[53] !== t5 || $[54] !== t9) {
4239
+ t21 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2", children: [
4234
4240
  t1,
4235
- t4,
4236
- t7,
4237
- t10,
4241
+ t5,
4242
+ t9,
4238
4243
  t13,
4239
- t14,
4240
- t15,
4241
- t16
4244
+ t17,
4245
+ t18,
4246
+ t19,
4247
+ t20
4242
4248
  ] });
4243
4249
  $[47] = t1;
4244
- $[48] = t10;
4245
- $[49] = t13;
4246
- $[50] = t14;
4247
- $[51] = t15;
4248
- $[52] = t16;
4249
- $[53] = t4;
4250
- $[54] = t7;
4251
- $[55] = t17;
4250
+ $[48] = t13;
4251
+ $[49] = t17;
4252
+ $[50] = t18;
4253
+ $[51] = t19;
4254
+ $[52] = t20;
4255
+ $[53] = t5;
4256
+ $[54] = t9;
4257
+ $[55] = t21;
4252
4258
  } else {
4253
- t17 = $[55];
4259
+ t21 = $[55];
4254
4260
  }
4255
- return t17;
4261
+ return t21;
4256
4262
  }
4257
4263
  function NumberPropertyField(t0) {
4258
4264
  const $ = c(72);
@@ -6291,7 +6297,8 @@ function UrlPropertyField(t0) {
6291
6297
  } else {
6292
6298
  t1 = $[1];
6293
6299
  }
6294
- const urlValue = t1;
6300
+ const urlRawValue = t1;
6301
+ const urlValue = typeof urlRawValue === "string" ? urlRawValue : "[NONE]";
6295
6302
  let t2;
6296
6303
  if ($[2] !== setFieldValue) {
6297
6304
  t2 = (value) => {
@@ -8187,4 +8194,4 @@ export {
8187
8194
  supportedFields as s,
8188
8195
  updatePropertyFromWidget as u
8189
8196
  };
8190
- //# sourceMappingURL=PropertyEditView-Cvryrb3B.js.map
8197
+ //# sourceMappingURL=PropertyEditView-BDNYkfNf.js.map