@rebasepro/admin 0.2.3 → 0.2.4
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.
- package/dist/{CollectionEditorDialog-CmGXXSY9.js → CollectionEditorDialog-D0VqpLPO.js} +70 -77
- package/dist/CollectionEditorDialog-D0VqpLPO.js.map +1 -0
- package/dist/{CollectionsStudioView-DcLHT5bU.js → CollectionsStudioView-Bc3Rxxc2.js} +5 -4
- package/dist/{CollectionsStudioView-DcLHT5bU.js.map → CollectionsStudioView-Bc3Rxxc2.js.map} +1 -1
- package/dist/{ExportCollectionAction-BfN34eWX.js → ExportCollectionAction-Ckc-09BQ.js} +4 -3
- package/dist/ExportCollectionAction-Ckc-09BQ.js.map +1 -0
- package/dist/{ImportCollectionAction-SZrInjhx.js → ImportCollectionAction-BqjIrC3Z.js} +3 -2
- package/dist/{ImportCollectionAction-SZrInjhx.js.map → ImportCollectionAction-BqjIrC3Z.js.map} +1 -1
- package/dist/{PropertyEditView-Cvryrb3B.js → PropertyEditView-CvRSV-A2.js} +128 -121
- package/dist/PropertyEditView-CvRSV-A2.js.map +1 -0
- package/dist/collection_editor/ConfigControllerProvider.d.ts +0 -5
- package/dist/collection_editor/index.d.ts +0 -1
- package/dist/collection_editor/types/collection_editor_controller.d.ts +0 -2
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +3 -3
- package/dist/collection_editor_ui.js +3 -3
- package/dist/components/ArrayContainer.d.ts +2 -2
- package/dist/components/DefaultAppBar.d.ts +18 -1
- package/dist/components/DefaultDrawer.d.ts +51 -3
- package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
- package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +2 -2
- package/dist/components/EntityCollectionTable/table_bindings.d.ts +4 -3
- package/dist/components/EntityCollectionView/hooks/useKanbanDragAndDrop.d.ts +4 -3
- package/dist/components/EntityEditView.d.ts +2 -1
- package/dist/components/HomePage/HomePageDnD.d.ts +3 -3
- package/dist/components/PropertyCollectionView.d.ts +1 -1
- package/dist/components/PropertyIdCopyTooltip.d.ts +1 -1
- package/dist/components/SelectableTable/SelectionStore.d.ts +4 -1
- package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +2 -2
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +2 -2
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +2 -2
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -2
- package/dist/components/admin/RolesView.d.ts +3 -3
- package/dist/components/admin/UsersView.d.ts +3 -3
- package/dist/components/app/Drawer.d.ts +8 -1
- package/dist/data_export/export/export.d.ts +3 -3
- package/dist/editor/components/editor-bubble.d.ts +5 -1
- package/dist/editor/components/image-bubble.d.ts +5 -1
- package/dist/editor/components/index.d.ts +3 -3
- package/dist/editor/components/table-bubble.d.ts +5 -1
- package/dist/editor/nodeViews/ReactNodeView.d.ts +4 -1
- package/dist/editor/useProseMirror.d.ts +2 -2
- package/dist/editor/utils/remove_classes.d.ts +1 -1
- package/dist/editor.js +15 -14
- package/dist/editor.js.map +1 -1
- package/dist/form/EntityForm.d.ts +2 -2
- package/dist/form/components/StorageUploadProgress.d.ts +2 -2
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +1 -1
- package/dist/form/validation.d.ts +3 -3
- package/dist/hooks/navigation/useResolvedCollections.d.ts +6 -0
- package/dist/hooks/navigation/useResolvedViews.d.ts +3 -4
- package/dist/{index-PLIQXpTt.js → index-BCcLwgfe.js} +3 -2
- package/dist/{index-PLIQXpTt.js.map → index-BCcLwgfe.js.map} +1 -1
- package/dist/{index-DjduZG1T.js → index-DY2k5TtG.js} +3 -3
- package/dist/index-DY2k5TtG.js.map +1 -0
- package/dist/{index-MKPc70-v.js → index-UQOMHwt1.js} +3 -3
- package/dist/index-UQOMHwt1.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2813 -372
- package/dist/index.js.map +1 -1
- package/dist/{markdown-z2Ir7Cgo.js → markdown-DD2JDU1X.js} +2 -2
- package/dist/markdown-DD2JDU1X.js.map +1 -0
- package/dist/preview/components/UrlComponentPreview.d.ts +1 -0
- package/dist/types/components/EntityFormActionsProps.d.ts +1 -1
- package/dist/types/components/EntityFormProps.d.ts +2 -2
- package/dist/types/fields.d.ts +1 -1
- package/dist/{util-DbWax_sV.js → util-ZM9gQuCv.js} +2031 -2078
- package/dist/util-ZM9gQuCv.js.map +1 -0
- package/package.json +8 -8
- package/src/collection_editor/ConfigControllerProvider.tsx +3 -13
- package/src/collection_editor/index.ts +1 -3
- package/src/collection_editor/types/collection_editor_controller.tsx +0 -3
- package/src/collection_editor/ui/EditorCollectionAction.tsx +1 -6
- package/src/collection_editor/ui/EditorCollectionActionStart.tsx +1 -6
- package/src/collection_editor/ui/EditorEntityAction.tsx +1 -6
- package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +7 -14
- package/src/collection_editor/ui/NewCollectionCard.tsx +1 -5
- package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +3 -8
- package/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.tsx +8 -12
- package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +21 -21
- package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +4 -4
- package/src/collection_editor/ui/collection_editor/EnumForm.tsx +1 -1
- package/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.tsx +3 -3
- package/src/collection_editor/ui/collection_editor/properties/CommonPropertyFields.tsx +3 -3
- package/src/collection_editor/ui/collection_editor/properties/DateTimePropertyField.tsx +8 -8
- package/src/collection_editor/ui/collection_editor/properties/EnumPropertyField.tsx +5 -5
- package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.tsx +5 -5
- package/src/collection_editor/ui/collection_editor/properties/NumberPropertyField.tsx +5 -5
- package/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/RepeatPropertyField.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.tsx +8 -8
- package/src/collection_editor/ui/collection_editor/properties/StringPropertyField.tsx +5 -5
- package/src/collection_editor/ui/collection_editor/properties/UrlPropertyField.tsx +3 -2
- package/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.tsx +1 -1
- package/src/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.tsx +4 -7
- package/src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +4 -4
- package/src/components/ArrayContainer.tsx +3 -3
- package/src/components/DefaultAppBar.tsx +52 -31
- package/src/components/DefaultDrawer.tsx +279 -66
- package/src/components/DrawerNavigationItem.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +6 -5
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +9 -7
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +5 -5
- package/src/components/EntityCollectionTable/fields/VirtualTableNumberInput.tsx +12 -9
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +2 -2
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -1
- package/src/components/EntityCollectionTable/table_bindings.tsx +5 -4
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +6 -4
- package/src/components/EntityCollectionView/hooks/useCollectionInlineEditor.ts +1 -1
- package/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.ts +7 -6
- package/src/components/EntityDetailView.tsx +46 -24
- package/src/components/EntityEditView.tsx +51 -28
- package/src/components/EntityEditViewFormActions.tsx +4 -4
- package/src/components/EntityPreview.tsx +9 -4
- package/src/components/HomePage/HomePageDnD.tsx +3 -2
- package/src/components/PropertyCollectionView.tsx +1 -1
- package/src/components/PropertyIdCopyTooltip.tsx +1 -1
- package/src/components/RebaseLayout.tsx +5 -1
- package/src/components/RebaseNavigation.tsx +2 -2
- package/src/components/RebaseRouteDefs.tsx +4 -7
- package/src/components/RebaseShell.tsx +16 -13
- package/src/components/SearchIconsView.tsx +1 -8
- package/src/components/SelectableTable/SelectableTable.tsx +8 -11
- package/src/components/SelectableTable/SelectionStore.ts +1 -1
- package/src/components/SelectableTable/filters/BooleanFilterField.tsx +3 -3
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +3 -3
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +5 -5
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +3 -3
- package/src/components/SideEntityProvider.tsx +2 -1
- package/src/components/admin/RolesView.tsx +7 -2
- package/src/components/admin/UsersView.tsx +12 -6
- package/src/components/app/Drawer.tsx +9 -1
- package/src/components/app/Scaffold.tsx +5 -1
- package/src/data_export/export/export.ts +17 -17
- package/src/data_import/components/DataNewPropertiesMapping.tsx +1 -1
- package/src/editor/components/editor-bubble.tsx +32 -9
- package/src/editor/components/image-bubble.tsx +27 -11
- package/src/editor/components/index.ts +3 -3
- package/src/editor/components/table-bubble.tsx +79 -17
- package/src/editor/extensions/HighlightDecorationExtension.ts +3 -2
- package/src/editor/nodeViews/ReactNodeView.tsx +1 -1
- package/src/editor/nodeViews/TaskItemComponent.tsx +9 -8
- package/src/editor/schema.ts +135 -59
- package/src/editor/selectors/link-selector.tsx +8 -5
- package/src/editor/useProseMirror.ts +2 -2
- package/src/editor/utils/remove_classes.ts +6 -5
- package/src/form/EntityForm.tsx +15 -15
- package/src/form/EntityFormActions.tsx +2 -2
- package/src/form/PropertyFieldBinding.tsx +64 -64
- package/src/form/components/FieldHelperText.tsx +4 -4
- package/src/form/components/StorageUploadProgress.tsx +2 -2
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +1 -1
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -1
- package/src/form/field_bindings/BlockFieldBinding.tsx +54 -53
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +290 -289
- package/src/form/field_bindings/MapFieldBinding.tsx +2 -2
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +2 -2
- package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +1 -1
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +1 -1
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +8 -6
- package/src/form/field_bindings/RelationFieldBinding.tsx +4 -4
- package/src/form/field_bindings/RepeatFieldBinding.tsx +1 -1
- package/src/form/field_bindings/SelectFieldBinding.tsx +1 -1
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +84 -84
- package/src/form/field_bindings/SwitchFieldBinding.tsx +16 -16
- package/src/form/field_bindings/TextFieldBinding.tsx +77 -73
- package/src/form/field_bindings/UserSelectFieldBinding.tsx +17 -17
- package/src/form/validation.ts +43 -43
- package/src/hooks/navigation/useBuildNavigationStateController.tsx +3 -5
- package/src/hooks/navigation/useResolvedCollections.ts +27 -7
- package/src/hooks/navigation/useResolvedViews.tsx +24 -44
- package/src/index.ts +2 -0
- package/src/preview/PropertyPreview.tsx +2 -2
- package/src/preview/components/ImagePreview.tsx +2 -1
- package/src/preview/components/UrlComponentPreview.tsx +11 -2
- package/src/preview/components/UserPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +2 -2
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +4 -4
- package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +3 -3
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +3 -3
- package/src/preview/property_previews/ArrayOfStringsPreview.tsx +3 -2
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +6 -8
- package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +3 -3
- package/src/preview/property_previews/MapPropertyPreview.tsx +4 -3
- package/src/preview/property_previews/NumberPropertyPreview.tsx +5 -3
- package/src/preview/property_previews/StringPropertyPreview.tsx +10 -8
- package/src/types/components/EntityFormActionsProps.tsx +1 -1
- package/src/types/components/EntityFormProps.tsx +2 -2
- package/src/types/fields.tsx +2 -2
- package/dist/CollectionEditorDialog-CmGXXSY9.js.map +0 -1
- package/dist/ContentHomePage-C7vFqKSe.js +0 -1784
- package/dist/ContentHomePage-C7vFqKSe.js.map +0 -1
- package/dist/ExportCollectionAction-BfN34eWX.js.map +0 -1
- package/dist/PropertyEditView-Cvryrb3B.js.map +0 -1
- package/dist/RoleChip-QtUFXeTp.js +0 -67
- package/dist/RoleChip-QtUFXeTp.js.map +0 -1
- package/dist/RolesView-BCb7qwWs.js +0 -437
- package/dist/RolesView-BCb7qwWs.js.map +0 -1
- package/dist/UsersView-Cex24r8H.js +0 -408
- package/dist/UsersView-Cex24r8H.js.map +0 -1
- package/dist/collection_editor/types/config_permissions.d.ts +0 -19
- package/dist/index-DjduZG1T.js.map +0 -1
- package/dist/index-MKPc70-v.js.map +0 -1
- package/dist/markdown-z2Ir7Cgo.js.map +0 -1
- package/dist/util-DbWax_sV.js.map +0 -1
- package/src/collection_editor/types/config_permissions.ts +0 -20
|
@@ -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,
|
|
7
|
+
import { a as ArrayContainer, N as FieldCaption, aQ as getFieldConfig, a4 as PropertyConfigBadge, aT as getFullIdPath, aS as getFullId, a_ as idToPropertiesPath, b2 as namespaceToPropertiesOrderPath, b3 as namespaceToPropertiesPath, bn as useCollectionRegistryController, o as DEFAULT_FIELD_CONFIGS, aR as getFieldId } from "./util-ZM9gQuCv.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 = (
|
|
2712
|
+
t2 = (t35) => {
|
|
2712
2713
|
const {
|
|
2713
2714
|
id,
|
|
2714
2715
|
property
|
|
2715
|
-
} =
|
|
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 =
|
|
2964
|
-
const t29 =
|
|
2964
|
+
const t28 = selectedProperty;
|
|
2965
|
+
const t29 = Boolean(selectedPropertyKey);
|
|
2965
2966
|
const t30 = !selectedPropertyKey;
|
|
2966
|
-
const t31 = selectedPropertyKey
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
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] =
|
|
2977
|
-
$[63] =
|
|
2978
|
-
$[64] =
|
|
2979
|
-
$[65] =
|
|
2980
|
-
$[66] =
|
|
2981
|
-
$[67] =
|
|
2982
|
-
$[68] =
|
|
2983
|
-
$[69] =
|
|
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
|
-
|
|
2987
|
+
t33 = $[69];
|
|
2986
2988
|
}
|
|
2987
|
-
let
|
|
2988
|
-
if ($[70] !== t19 || $[71] !== t25 || $[72] !==
|
|
2989
|
-
|
|
2989
|
+
let t34;
|
|
2990
|
+
if ($[70] !== t19 || $[71] !== t25 || $[72] !== t33) {
|
|
2991
|
+
t34 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2990
2992
|
t19,
|
|
2991
2993
|
t25,
|
|
2992
|
-
|
|
2994
|
+
t33
|
|
2993
2995
|
] });
|
|
2994
2996
|
$[70] = t19;
|
|
2995
2997
|
$[71] = t25;
|
|
2996
|
-
$[72] =
|
|
2997
|
-
$[73] =
|
|
2998
|
+
$[72] = t33;
|
|
2999
|
+
$[73] = t34;
|
|
2998
3000
|
} else {
|
|
2999
|
-
|
|
3001
|
+
t34 = $[73];
|
|
3000
3002
|
}
|
|
3001
|
-
return
|
|
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
|
-
|
|
4088
|
+
const t3 = t2;
|
|
4089
|
+
let t4;
|
|
4087
4090
|
if ($[4] !== t) {
|
|
4088
|
-
|
|
4091
|
+
t4 = t("min_value");
|
|
4089
4092
|
$[4] = t;
|
|
4090
|
-
$[5] =
|
|
4093
|
+
$[5] = t4;
|
|
4091
4094
|
} else {
|
|
4092
|
-
|
|
4095
|
+
t4 = $[5];
|
|
4093
4096
|
}
|
|
4094
|
-
let
|
|
4095
|
-
if ($[6] !== disabled || $[7] !== handleChange || $[8] !==
|
|
4096
|
-
|
|
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] =
|
|
4100
|
-
$[9] =
|
|
4101
|
-
$[10] =
|
|
4102
|
+
$[8] = t3;
|
|
4103
|
+
$[9] = t4;
|
|
4104
|
+
$[10] = t5;
|
|
4102
4105
|
} else {
|
|
4103
|
-
|
|
4106
|
+
t5 = $[10];
|
|
4104
4107
|
}
|
|
4105
|
-
let
|
|
4108
|
+
let t6;
|
|
4106
4109
|
if ($[11] !== values) {
|
|
4107
|
-
|
|
4110
|
+
t6 = getIn(values, "validation.max");
|
|
4108
4111
|
$[11] = values;
|
|
4109
|
-
$[12] =
|
|
4112
|
+
$[12] = t6;
|
|
4110
4113
|
} else {
|
|
4111
|
-
|
|
4114
|
+
t6 = $[12];
|
|
4112
4115
|
}
|
|
4113
|
-
|
|
4116
|
+
const t7 = t6;
|
|
4117
|
+
let t8;
|
|
4114
4118
|
if ($[13] !== t) {
|
|
4115
|
-
|
|
4119
|
+
t8 = t("max_value");
|
|
4116
4120
|
$[13] = t;
|
|
4117
|
-
$[14] =
|
|
4121
|
+
$[14] = t8;
|
|
4118
4122
|
} else {
|
|
4119
|
-
|
|
4123
|
+
t8 = $[14];
|
|
4120
4124
|
}
|
|
4121
|
-
let
|
|
4122
|
-
if ($[15] !== disabled || $[16] !== handleChange || $[17] !==
|
|
4123
|
-
|
|
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] =
|
|
4127
|
-
$[18] =
|
|
4128
|
-
$[19] =
|
|
4130
|
+
$[17] = t7;
|
|
4131
|
+
$[18] = t8;
|
|
4132
|
+
$[19] = t9;
|
|
4129
4133
|
} else {
|
|
4130
|
-
|
|
4134
|
+
t9 = $[19];
|
|
4131
4135
|
}
|
|
4132
|
-
let
|
|
4136
|
+
let t10;
|
|
4133
4137
|
if ($[20] !== values) {
|
|
4134
|
-
|
|
4138
|
+
t10 = getIn(values, "validation.lessThan");
|
|
4135
4139
|
$[20] = values;
|
|
4136
|
-
$[21] =
|
|
4140
|
+
$[21] = t10;
|
|
4137
4141
|
} else {
|
|
4138
|
-
|
|
4142
|
+
t10 = $[21];
|
|
4139
4143
|
}
|
|
4140
|
-
|
|
4144
|
+
const t11 = t10;
|
|
4145
|
+
let t12;
|
|
4141
4146
|
if ($[22] !== t) {
|
|
4142
|
-
|
|
4147
|
+
t12 = t("less_than");
|
|
4143
4148
|
$[22] = t;
|
|
4144
|
-
$[23] =
|
|
4149
|
+
$[23] = t12;
|
|
4145
4150
|
} else {
|
|
4146
|
-
|
|
4151
|
+
t12 = $[23];
|
|
4147
4152
|
}
|
|
4148
|
-
let
|
|
4149
|
-
if ($[24] !== disabled || $[25] !== handleChange || $[26] !==
|
|
4150
|
-
|
|
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] =
|
|
4154
|
-
$[27] =
|
|
4155
|
-
$[28] =
|
|
4158
|
+
$[26] = t11;
|
|
4159
|
+
$[27] = t12;
|
|
4160
|
+
$[28] = t13;
|
|
4156
4161
|
} else {
|
|
4157
|
-
|
|
4162
|
+
t13 = $[28];
|
|
4158
4163
|
}
|
|
4159
|
-
let
|
|
4164
|
+
let t14;
|
|
4160
4165
|
if ($[29] !== values) {
|
|
4161
|
-
|
|
4166
|
+
t14 = getIn(values, "validation.moreThan");
|
|
4162
4167
|
$[29] = values;
|
|
4163
|
-
$[30] =
|
|
4168
|
+
$[30] = t14;
|
|
4164
4169
|
} else {
|
|
4165
|
-
|
|
4170
|
+
t14 = $[30];
|
|
4166
4171
|
}
|
|
4167
|
-
|
|
4172
|
+
const t15 = t14;
|
|
4173
|
+
let t16;
|
|
4168
4174
|
if ($[31] !== t) {
|
|
4169
|
-
|
|
4175
|
+
t16 = t("more_than");
|
|
4170
4176
|
$[31] = t;
|
|
4171
|
-
$[32] =
|
|
4177
|
+
$[32] = t16;
|
|
4172
4178
|
} else {
|
|
4173
|
-
|
|
4179
|
+
t16 = $[32];
|
|
4174
4180
|
}
|
|
4175
|
-
let
|
|
4176
|
-
if ($[33] !== disabled || $[34] !== handleChange || $[35] !==
|
|
4177
|
-
|
|
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] =
|
|
4181
|
-
$[36] =
|
|
4182
|
-
$[37] =
|
|
4186
|
+
$[35] = t15;
|
|
4187
|
+
$[36] = t16;
|
|
4188
|
+
$[37] = t17;
|
|
4183
4189
|
} else {
|
|
4184
|
-
|
|
4190
|
+
t17 = $[37];
|
|
4185
4191
|
}
|
|
4186
|
-
let
|
|
4192
|
+
let t18;
|
|
4187
4193
|
if ($[38] !== disabled || $[39] !== t) {
|
|
4188
|
-
|
|
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
|
-
} =
|
|
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] =
|
|
4203
|
+
$[40] = t18;
|
|
4198
4204
|
} else {
|
|
4199
|
-
|
|
4205
|
+
t18 = $[40];
|
|
4200
4206
|
}
|
|
4201
|
-
let
|
|
4207
|
+
let t19;
|
|
4202
4208
|
if ($[41] !== disabled || $[42] !== t) {
|
|
4203
|
-
|
|
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
|
-
} =
|
|
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] =
|
|
4218
|
+
$[43] = t19;
|
|
4213
4219
|
} else {
|
|
4214
|
-
|
|
4220
|
+
t19 = $[43];
|
|
4215
4221
|
}
|
|
4216
|
-
let
|
|
4222
|
+
let t20;
|
|
4217
4223
|
if ($[44] !== disabled || $[45] !== t) {
|
|
4218
|
-
|
|
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
|
-
} =
|
|
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] =
|
|
4233
|
+
$[46] = t20;
|
|
4228
4234
|
} else {
|
|
4229
|
-
|
|
4235
|
+
t20 = $[46];
|
|
4230
4236
|
}
|
|
4231
|
-
let
|
|
4232
|
-
if ($[47] !== t1 || $[48] !==
|
|
4233
|
-
|
|
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
|
-
|
|
4236
|
-
|
|
4237
|
-
t10,
|
|
4241
|
+
t5,
|
|
4242
|
+
t9,
|
|
4238
4243
|
t13,
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4244
|
+
t17,
|
|
4245
|
+
t18,
|
|
4246
|
+
t19,
|
|
4247
|
+
t20
|
|
4242
4248
|
] });
|
|
4243
4249
|
$[47] = t1;
|
|
4244
|
-
$[48] =
|
|
4245
|
-
$[49] =
|
|
4246
|
-
$[50] =
|
|
4247
|
-
$[51] =
|
|
4248
|
-
$[52] =
|
|
4249
|
-
$[53] =
|
|
4250
|
-
$[54] =
|
|
4251
|
-
$[55] =
|
|
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
|
-
|
|
4259
|
+
t21 = $[55];
|
|
4254
4260
|
}
|
|
4255
|
-
return
|
|
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
|
|
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-
|
|
8197
|
+
//# sourceMappingURL=PropertyEditView-CvRSV-A2.js.map
|