@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.
- package/LICENSE +21 -6
- package/dist/{CollectionEditorDialog-ywdxhs1L.js → CollectionEditorDialog-BXIh2AXg.js} +40 -31
- package/dist/CollectionEditorDialog-BXIh2AXg.js.map +1 -0
- package/dist/{CollectionsStudioView-BDzMFzqH.js → CollectionsStudioView-jR8iz_ja.js} +6 -8
- package/dist/CollectionsStudioView-jR8iz_ja.js.map +1 -0
- package/dist/{ContentHomePage-0tHuEIm_.js → ContentHomePage-BQZWuOFb.js} +5 -7
- package/dist/ContentHomePage-BQZWuOFb.js.map +1 -0
- package/dist/{ExportCollectionAction-BIrq92To.js → ExportCollectionAction-CMdiiv1L.js} +36 -38
- package/dist/ExportCollectionAction-CMdiiv1L.js.map +1 -0
- package/dist/{ImportCollectionAction-h8yg_To8.js → ImportCollectionAction-C05lE0IW.js} +5 -7
- package/dist/ImportCollectionAction-C05lE0IW.js.map +1 -0
- package/dist/{PropertyEditView-BuZrNnBN.js → PropertyEditView-BB5xjnhZ.js} +261 -165
- package/dist/PropertyEditView-BB5xjnhZ.js.map +1 -0
- package/dist/{RolesView-CMPsaIXo.js → RolesView-CULIHWZ9.js} +22 -11
- package/dist/RolesView-CULIHWZ9.js.map +1 -0
- package/dist/{UsersView-BkeblMVT.js → UsersView-D7_AtJ44.js} +7 -71
- package/dist/UsersView-D7_AtJ44.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.d.ts +2 -2
- package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.d.ts +3 -0
- package/dist/collection_editor_ui.js +5 -5
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionListView.d.ts +18 -2
- package/dist/components/EntityCollectionView/FilterPresetsButton.d.ts +21 -0
- package/dist/components/EntityDetailView.d.ts +31 -0
- package/dist/components/EntityEditView.d.ts +3 -2
- package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +1 -1
- package/dist/components/admin/CreationResultDialog.d.ts +5 -0
- package/dist/components/admin/RolesFilterSelect.d.ts +2 -0
- package/dist/components/admin/UserRolesSelectField.d.ts +2 -0
- package/dist/components/common/default_entity_actions.d.ts +7 -1
- package/dist/components/field_configs.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/data_import/utils/data.d.ts +1 -1
- package/dist/data_import/utils/file_headers.d.ts +6 -1
- package/dist/data_import/utils/file_to_json.d.ts +1 -11
- package/dist/data_import/utils/transforms.d.ts +11 -0
- package/dist/editor.js +2 -4
- package/dist/editor.js.map +1 -1
- package/dist/form/EntityForm.d.ts +1 -1
- package/dist/form/field_bindings/RelationFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/VectorFieldBinding.d.ts +11 -0
- package/dist/form/index.d.ts +1 -0
- package/dist/hooks/navigation/useResolvedViews.d.ts +2 -1
- package/dist/{index-CS6uJ7oW.js → index-BAM9KCmM.js} +4 -6
- package/dist/index-BAM9KCmM.js.map +1 -0
- package/dist/{index-BuZaHcyc.js → index-CoSNm3e3.js} +3 -3
- package/dist/index-CoSNm3e3.js.map +1 -0
- package/dist/{index-eRJbMvHi.js → index-D5OQhv-T.js} +3 -3
- package/dist/index-D5OQhv-T.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +352 -148
- package/dist/index.js.map +1 -1
- package/dist/types/components/EntityFormActionsProps.d.ts +1 -1
- package/dist/types/components/EntityFormProps.d.ts +2 -1
- package/dist/types/fields.d.ts +3 -3
- package/dist/util/navigation_utils.d.ts +1 -1
- package/dist/{util-zfU1zOCX.js → util-DtbWD7LF.js} +5304 -2572
- package/dist/util-DtbWD7LF.js.map +1 -0
- package/package.json +45 -39
- package/src/collection_editor/ConfigControllerProvider.tsx +1 -1
- package/src/collection_editor/ui/AddKanbanColumnAction.tsx +12 -2
- package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +1 -2
- package/src/collection_editor/ui/EditorCollectionAction.tsx +1 -2
- package/src/collection_editor/ui/EditorCollectionActionStart.tsx +1 -2
- package/src/collection_editor/ui/EditorEntityAction.tsx +1 -2
- package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +1 -2
- package/src/collection_editor/ui/NewCollectionButton.tsx +1 -2
- package/src/collection_editor/ui/NewCollectionCard.tsx +4 -6
- package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.tsx +10 -2
- package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +18 -2
- package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +22 -7
- package/src/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.tsx +16 -2
- package/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.tsx +19 -9
- package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +13 -2
- package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +24 -2
- package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +22 -3
- package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +11 -2
- package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +12 -2
- package/src/collection_editor/ui/collection_editor/EntityActionsEditTab.tsx +16 -3
- package/src/collection_editor/ui/collection_editor/EnumForm.tsx +17 -2
- package/src/collection_editor/ui/collection_editor/GeneralSettingsForm.tsx +18 -2
- package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/KanbanConfigSection.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/LayoutModeSwitch.tsx +17 -5
- package/src/collection_editor/ui/collection_editor/PropertyEditView.tsx +32 -6
- package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +7 -7
- package/src/collection_editor/ui/collection_editor/PropertyTree.tsx +14 -2
- package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +16 -2
- package/src/collection_editor/ui/collection_editor/ViewModeSwitch.tsx +9 -2
- package/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.tsx +9 -2
- package/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.tsx +11 -2
- package/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.tsx +34 -0
- package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +15 -7
- package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsPanel.tsx +1 -2
- package/src/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +15 -3
- package/src/collection_editor/ui/collection_editor/properties/conditions/property_paths.ts +1 -1
- package/src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.tsx +1 -2
- package/src/collection_editor/useLocalCollectionsConfigController.tsx +0 -2
- package/src/collection_editor/validateCollectionJson.ts +9 -9
- package/src/components/AdminModeSyncer.tsx +1 -1
- package/src/components/ArrayContainer.tsx +19 -15
- package/src/components/ClearFilterSortButton.tsx +1 -2
- package/src/components/CollectionEditorDialogs.tsx +1 -1
- package/src/components/DefaultAppBar.tsx +15 -3
- package/src/components/DefaultDrawer.tsx +3 -3
- package/src/components/DrawerNavigationGroup.tsx +1 -2
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +14 -6
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +1 -1
- package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +1 -2
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +1 -2
- package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +1 -2
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +1 -2
- package/src/components/EntityCollectionTable/fields/VirtualTableSelect.tsx +0 -1
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +15 -27
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +1 -2
- package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -2
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +3 -5
- package/src/components/EntityCollectionTable/table_bindings.tsx +51 -45
- package/src/components/EntityCollectionView/Board.tsx +1 -2
- package/src/components/EntityCollectionView/BoardColumn.tsx +9 -2
- package/src/components/EntityCollectionView/BoardColumnTitle.tsx +5 -4
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +18 -16
- package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +16 -17
- package/src/components/EntityCollectionView/EntityCollectionListView.tsx +87 -18
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +20 -11
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +6 -7
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +14 -5
- package/src/components/EntityCollectionView/FilterPresetsButton.tsx +292 -0
- package/src/components/EntityCollectionView/FiltersDialog.tsx +1 -2
- package/src/components/EntityCollectionView/SplitListView.tsx +76 -25
- package/src/components/EntityCollectionView/ViewModeToggle.tsx +20 -7
- package/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.ts +1 -1
- package/src/components/EntityCollectionView/useBoardDataController.tsx +74 -6
- package/src/components/EntityCollectionView/useEntityPreviewSlots.ts +1 -1
- package/src/components/EntityDetailView.tsx +619 -0
- package/src/components/EntityEditView.tsx +29 -10
- package/src/components/EntityEditViewFormActions.tsx +20 -7
- package/src/components/EntityPreview.tsx +14 -5
- package/src/components/EntitySidePanel.tsx +116 -62
- package/src/components/EntityView.tsx +1 -2
- package/src/components/HomePage/ContentHomePage.tsx +1 -1
- package/src/components/HomePage/FavouritesView.tsx +1 -2
- package/src/components/HomePage/NavigationCard.tsx +1 -2
- package/src/components/HomePage/NavigationCardBinding.tsx +1 -2
- package/src/components/HomePage/NavigationGroup.tsx +1 -2
- package/src/components/HomePage/SmallNavigationCard.tsx +1 -2
- package/src/components/PropertyIdCopyTooltip.tsx +1 -2
- package/src/components/RebaseAuthGate.tsx +2 -2
- package/src/components/RebaseNavigation.tsx +9 -7
- package/src/components/ReferenceTable/EntitySelectionTable.tsx +12 -8
- package/src/components/RelationSelector.tsx +34 -6
- package/src/components/SearchIconsView.tsx +10 -2
- package/src/components/SelectableTable/SelectableTable.tsx +2 -2
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +1 -2
- package/src/components/SideDialogs.tsx +63 -38
- package/src/components/UserSelector.tsx +30 -6
- package/src/components/admin/CreationResultDialog.tsx +135 -0
- package/src/components/admin/RolesFilterSelect.tsx +45 -0
- package/src/components/admin/RolesView.tsx +53 -14
- package/src/components/admin/UserRolesSelectField.tsx +50 -0
- package/src/components/admin/UsersView.tsx +41 -124
- package/src/components/app/Scaffold.tsx +1 -2
- package/src/components/common/default_entity_actions.tsx +119 -12
- package/src/components/field_configs.tsx +39 -3
- package/src/components/history/EntityHistoryEntry.tsx +1 -2
- package/src/components/history/EntityHistoryView.tsx +1 -2
- package/src/components/index.ts +2 -0
- package/src/data_export/export/BasicExportAction.tsx +35 -38
- package/src/data_export/export/ExportCollectionAction.tsx +39 -40
- package/src/data_import/components/DataNewPropertiesMapping.tsx +15 -2
- package/src/data_import/components/ImportFileUpload.tsx +1 -2
- package/src/data_import/components/ImportNewPropertyFieldPreview.tsx +1 -2
- package/src/data_import/import/ImportCollectionAction.tsx +21 -8
- package/src/data_import/utils/data.ts +23 -5
- package/src/data_import/utils/file_headers.ts +13 -89
- package/src/data_import/utils/file_to_json.ts +43 -68
- package/src/data_import/utils/transforms.ts +47 -0
- package/src/editor/components/SlashCommandMenu.tsx +17 -2
- package/src/editor/components/editor-bubble-item.tsx +1 -1
- package/src/editor/extensions/Image/index.ts +1 -1
- package/src/editor/extensions/Image.ts +1 -1
- package/src/editor/selectors/color-selector.tsx +1 -2
- package/src/editor/selectors/link-selector.tsx +1 -2
- package/src/editor/selectors/node-selector.tsx +16 -2
- package/src/editor/selectors/text-buttons.tsx +1 -2
- package/src/editor/utils/prosemirror-utils.ts +1 -1
- package/src/form/EntityForm.tsx +16 -6
- package/src/form/EntityFormActions.tsx +11 -3
- package/src/form/PropertyFieldBinding.tsx +5 -12
- package/src/form/components/FieldHelperText.tsx +1 -2
- package/src/form/components/LocalChangesMenu.tsx +17 -2
- package/src/form/components/StorageItemPreview.tsx +1 -2
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -2
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +17 -2
- package/src/form/field_bindings/MapFieldBinding.tsx +1 -1
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +10 -3
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +1 -2
- package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +1 -2
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +7 -7
- package/src/form/field_bindings/RelationFieldBinding.tsx +150 -147
- package/src/form/field_bindings/RepeatFieldBinding.tsx +1 -1
- package/src/form/field_bindings/SelectFieldBinding.tsx +1 -2
- package/src/form/field_bindings/TextFieldBinding.tsx +10 -2
- package/src/form/field_bindings/VectorFieldBinding.tsx +202 -0
- package/src/form/index.tsx +1 -0
- package/src/form/validation.ts +54 -2
- package/src/hooks/navigation/useBuildNavigationStateController.tsx +2 -1
- package/src/hooks/navigation/useResolvedViews.tsx +30 -15
- package/src/hooks/navigation/useTopLevelNavigation.ts +1 -1
- package/src/index.ts +6 -0
- package/src/preview/PropertyPreview.tsx +1 -1
- package/src/preview/components/ImagePreview.tsx +1 -1
- package/src/preview/components/UrlComponentPreview.tsx +1 -2
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +2 -2
- package/src/preview/property_previews/SkeletonPropertyComponent.tsx +23 -24
- package/src/routes/RebaseRoute.tsx +64 -35
- package/src/types/components/EntityFormActionsProps.tsx +1 -1
- package/src/types/components/EntityFormProps.tsx +3 -1
- package/src/types/fields.tsx +4 -3
- package/src/util/navigation_utils.ts +4 -3
- package/src/util/previews.ts +1 -1
- package/src/util/property_utils.tsx +22 -6
- package/src/util/resolutions.ts +2 -2
- package/dist/CollectionEditorDialog-ywdxhs1L.js.map +0 -1
- package/dist/CollectionsStudioView-BDzMFzqH.js.map +0 -1
- package/dist/ContentHomePage-0tHuEIm_.js.map +0 -1
- package/dist/ExportCollectionAction-BIrq92To.js.map +0 -1
- package/dist/ImportCollectionAction-h8yg_To8.js.map +0 -1
- package/dist/PropertyEditView-BuZrNnBN.js.map +0 -1
- package/dist/RolesView-CMPsaIXo.js.map +0 -1
- package/dist/UsersView-BkeblMVT.js.map +0 -1
- package/dist/index-BuZaHcyc.js.map +0 -1
- package/dist/index-CS6uJ7oW.js.map +0 -1
- package/dist/index-eRJbMvHi.js.map +0 -1
- 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 {
|
|
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 "
|
|
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(
|
|
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 =
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
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
|
-
|
|
1839
|
+
t5 = $[5];
|
|
1839
1840
|
}
|
|
1840
|
-
let
|
|
1841
|
-
if ($[
|
|
1842
|
-
|
|
1843
|
-
$[
|
|
1844
|
-
$[
|
|
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
|
-
|
|
1847
|
+
t6 = $[7];
|
|
1847
1848
|
}
|
|
1848
|
-
let
|
|
1849
|
-
if ($[
|
|
1850
|
-
|
|
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
|
-
$[
|
|
1855
|
-
$[
|
|
1856
|
-
$[
|
|
1857
|
-
$[
|
|
1855
|
+
$[8] = includeName;
|
|
1856
|
+
$[9] = property;
|
|
1857
|
+
$[10] = propertyKey;
|
|
1858
|
+
$[11] = t7;
|
|
1858
1859
|
} else {
|
|
1859
|
-
|
|
1860
|
+
t7 = $[11];
|
|
1860
1861
|
}
|
|
1861
|
-
const
|
|
1862
|
-
let
|
|
1863
|
-
if ($[
|
|
1864
|
-
|
|
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
|
-
|
|
1869
|
+
t9 = $[13];
|
|
1869
1870
|
}
|
|
1870
|
-
let
|
|
1871
|
-
if ($[
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
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
|
-
$[
|
|
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
|
-
|
|
1881
|
+
t10 = $[16];
|
|
1890
1882
|
}
|
|
1883
|
+
const t11 = ("columnType" in property ? property.columnType : void 0) || property.type;
|
|
1891
1884
|
let t12;
|
|
1892
|
-
if ($[
|
|
1893
|
-
t12 =
|
|
1894
|
-
$[
|
|
1895
|
-
$[
|
|
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 = $[
|
|
1890
|
+
t12 = $[18];
|
|
1898
1891
|
}
|
|
1899
1892
|
let t13;
|
|
1900
|
-
if ($[
|
|
1901
|
-
t13 = /* @__PURE__ */
|
|
1902
|
-
|
|
1903
|
-
|
|
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 = $[
|
|
1898
|
+
t13 = $[20];
|
|
1915
1899
|
}
|
|
1916
1900
|
let t14;
|
|
1917
|
-
if ($[
|
|
1918
|
-
t14 = /* @__PURE__ */
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
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 = $[
|
|
1915
|
+
t14 = $[26];
|
|
1925
1916
|
}
|
|
1926
|
-
|
|
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/
|
|
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(
|
|
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
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
7580
|
-
$[
|
|
7674
|
+
$[99] = disabled;
|
|
7675
|
+
$[100] = t10;
|
|
7581
7676
|
} else {
|
|
7582
|
-
t10 = $[
|
|
7677
|
+
t10 = $[100];
|
|
7583
7678
|
}
|
|
7584
7679
|
const t11 = selectedFieldConfigId;
|
|
7585
7680
|
let t12;
|
|
7586
|
-
if ($[
|
|
7681
|
+
if ($[101] !== onWidgetSelectChanged) {
|
|
7587
7682
|
t12 = (value) => onWidgetSelectChanged(value);
|
|
7588
|
-
$[
|
|
7589
|
-
$[
|
|
7683
|
+
$[101] = onWidgetSelectChanged;
|
|
7684
|
+
$[102] = t12;
|
|
7590
7685
|
} else {
|
|
7591
|
-
t12 = $[
|
|
7686
|
+
t12 = $[102];
|
|
7592
7687
|
}
|
|
7593
7688
|
let t13;
|
|
7594
|
-
if ($[
|
|
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
|
-
$[
|
|
7602
|
-
$[
|
|
7696
|
+
$[103] = onDismiss;
|
|
7697
|
+
$[104] = t13;
|
|
7603
7698
|
} else {
|
|
7604
|
-
t13 = $[
|
|
7699
|
+
t13 = $[104];
|
|
7605
7700
|
}
|
|
7606
7701
|
const t14 = Boolean(selectedWidgetError);
|
|
7607
7702
|
let t15;
|
|
7608
|
-
if ($[
|
|
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
|
-
$[
|
|
7611
|
-
$[
|
|
7612
|
-
$[
|
|
7613
|
-
$[
|
|
7614
|
-
$[
|
|
7615
|
-
$[
|
|
7616
|
-
$[
|
|
7617
|
-
$[
|
|
7618
|
-
$[
|
|
7619
|
-
$[
|
|
7620
|
-
$[
|
|
7621
|
-
} else {
|
|
7622
|
-
t15 = $[
|
|
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 ($[
|
|
7720
|
+
if ($[116] !== selectedWidgetError) {
|
|
7626
7721
|
t16 = !!selectedWidgetError && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5", color: "error", children: "Required" });
|
|
7627
|
-
$[
|
|
7628
|
-
$[
|
|
7722
|
+
$[116] = selectedWidgetError;
|
|
7723
|
+
$[117] = t16;
|
|
7629
7724
|
} else {
|
|
7630
|
-
t16 = $[
|
|
7725
|
+
t16 = $[117];
|
|
7631
7726
|
}
|
|
7632
7727
|
let t17;
|
|
7633
|
-
if ($[
|
|
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
|
-
$[
|
|
7639
|
-
$[
|
|
7640
|
-
$[
|
|
7733
|
+
$[118] = t15;
|
|
7734
|
+
$[119] = t16;
|
|
7735
|
+
$[120] = t17;
|
|
7641
7736
|
} else {
|
|
7642
|
-
t17 = $[
|
|
7737
|
+
t17 = $[120];
|
|
7643
7738
|
}
|
|
7644
7739
|
let t18;
|
|
7645
|
-
if ($[
|
|
7646
|
-
t18 = onDelete && values?.id && /* @__PURE__ */ jsx(IconButton, { variant: "ghost", className: "
|
|
7647
|
-
$[
|
|
7648
|
-
$[
|
|
7649
|
-
$[
|
|
7650
|
-
$[
|
|
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 = $[
|
|
7747
|
+
t18 = $[124];
|
|
7653
7748
|
}
|
|
7654
7749
|
let t19;
|
|
7655
|
-
if ($[
|
|
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
|
-
$[
|
|
7661
|
-
$[
|
|
7662
|
-
$[
|
|
7755
|
+
$[125] = t17;
|
|
7756
|
+
$[126] = t18;
|
|
7757
|
+
$[127] = t19;
|
|
7663
7758
|
} else {
|
|
7664
|
-
t19 = $[
|
|
7759
|
+
t19 = $[127];
|
|
7665
7760
|
}
|
|
7666
7761
|
let t20;
|
|
7667
|
-
if ($[
|
|
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
|
-
$[
|
|
7670
|
-
$[
|
|
7671
|
-
$[
|
|
7672
|
-
$[
|
|
7673
|
-
$[
|
|
7674
|
-
$[
|
|
7764
|
+
$[128] = autoUpdateId;
|
|
7765
|
+
$[129] = disabled;
|
|
7766
|
+
$[130] = existing;
|
|
7767
|
+
$[131] = includeIdAndTitle;
|
|
7768
|
+
$[132] = showErrors;
|
|
7769
|
+
$[133] = t20;
|
|
7675
7770
|
} else {
|
|
7676
|
-
t20 = $[
|
|
7771
|
+
t20 = $[133];
|
|
7677
7772
|
}
|
|
7678
7773
|
let t21;
|
|
7679
|
-
if ($[
|
|
7774
|
+
if ($[134] !== disabled) {
|
|
7680
7775
|
t21 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(AdvancedPropertyValidation, { disabled }) });
|
|
7681
|
-
$[
|
|
7682
|
-
$[
|
|
7776
|
+
$[134] = disabled;
|
|
7777
|
+
$[135] = t21;
|
|
7683
7778
|
} else {
|
|
7684
|
-
t21 = $[
|
|
7779
|
+
t21 = $[135];
|
|
7685
7780
|
}
|
|
7686
7781
|
let t22;
|
|
7687
|
-
if ($[
|
|
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
|
-
$[
|
|
7694
|
-
$[
|
|
7695
|
-
$[
|
|
7696
|
-
$[
|
|
7788
|
+
$[136] = childComponent;
|
|
7789
|
+
$[137] = t20;
|
|
7790
|
+
$[138] = t21;
|
|
7791
|
+
$[139] = t22;
|
|
7697
7792
|
} else {
|
|
7698
|
-
t22 = $[
|
|
7793
|
+
t22 = $[139];
|
|
7699
7794
|
}
|
|
7700
7795
|
let t23;
|
|
7701
|
-
if ($[
|
|
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
|
-
$[
|
|
7708
|
-
$[
|
|
7709
|
-
$[
|
|
7710
|
-
$[
|
|
7711
|
-
$[
|
|
7802
|
+
$[140] = deleteDialogOpen;
|
|
7803
|
+
$[141] = onDelete;
|
|
7804
|
+
$[142] = propertyNamespace;
|
|
7805
|
+
$[143] = values?.id;
|
|
7806
|
+
$[144] = t23;
|
|
7712
7807
|
} else {
|
|
7713
|
-
t23 = $[
|
|
7808
|
+
t23 = $[144];
|
|
7714
7809
|
}
|
|
7715
7810
|
let t24;
|
|
7716
|
-
if ($[
|
|
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
|
-
$[
|
|
7724
|
-
$[
|
|
7725
|
-
$[
|
|
7726
|
-
$[
|
|
7727
|
-
$[
|
|
7818
|
+
$[145] = t10;
|
|
7819
|
+
$[146] = t19;
|
|
7820
|
+
$[147] = t22;
|
|
7821
|
+
$[148] = t23;
|
|
7822
|
+
$[149] = t24;
|
|
7728
7823
|
} else {
|
|
7729
|
-
t24 = $[
|
|
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
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
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
|
-
|
|
8210
|
+
updatePropertyFromWidget as u
|
|
8115
8211
|
};
|
|
8116
|
-
//# sourceMappingURL=PropertyEditView-
|
|
8212
|
+
//# sourceMappingURL=PropertyEditView-BB5xjnhZ.js.map
|