@rebasepro/admin 0.0.1-canary.bbcb8b4 → 0.0.1-canary.c53f5db
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-B2M9lCyL.js → CollectionEditorDialog-CN8hb1_b.js} +24 -15
- package/dist/CollectionEditorDialog-CN8hb1_b.js.map +1 -0
- package/dist/{CollectionsStudioView-WG6soyfs.js → CollectionsStudioView-DY8ngkgx.js} +12 -12
- package/dist/CollectionsStudioView-DY8ngkgx.js.map +1 -0
- package/dist/{ContentHomePage-CDF_a6Lp.js → ContentHomePage-CZEXNCeI.js} +3 -3
- package/dist/ContentHomePage-CZEXNCeI.js.map +1 -0
- package/dist/{ExportCollectionAction-Dc0VOWMN.js → ExportCollectionAction-BFGtvzNO.js} +2 -2
- package/dist/{ExportCollectionAction-Dc0VOWMN.js.map → ExportCollectionAction-BFGtvzNO.js.map} +1 -1
- package/dist/{ImportCollectionAction-DpCagAOy.js → ImportCollectionAction-CcWdxdJd.js} +2 -2
- package/dist/{ImportCollectionAction-DpCagAOy.js.map → ImportCollectionAction-CcWdxdJd.js.map} +1 -1
- package/dist/{PropertyEditView-DS67DxoT.js → PropertyEditView-DpQRpckh.js} +4 -4
- package/dist/PropertyEditView-DpQRpckh.js.map +1 -0
- package/dist/{RolesView-CIuYBimF.js → RolesView-DEFr3yIl.js} +7 -5
- package/dist/RolesView-DEFr3yIl.js.map +1 -0
- package/dist/{UsersView-B5zelXnH.js → UsersView-DtRoTeSz.js} +12 -11
- package/dist/UsersView-DtRoTeSz.js.map +1 -0
- package/dist/collection_editor/types/collection_editor_controller.d.ts +6 -3
- package/dist/collection_editor/types/config_controller.d.ts +14 -7
- package/dist/collection_editor/ui/AddKanbanColumnAction.d.ts +3 -2
- package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +3 -2
- package/dist/collection_editor/ui/EditorCollectionAction.d.ts +1 -1
- package/dist/collection_editor/ui/EditorCollectionActionStart.d.ts +1 -1
- package/dist/collection_editor/ui/EditorEntityAction.d.ts +1 -1
- package/dist/collection_editor/ui/KanbanSetupAction.d.ts +3 -2
- package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +3 -2
- package/dist/collection_editor/ui/collection_editor/CollectionDetailsForm.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/SubcollectionsEditTab.d.ts +3 -2
- package/dist/collection_editor_ui.js +3 -3
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +1 -1
- package/dist/components/EntityCollectionTable/column_utils.d.ts +2 -2
- package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +2 -2
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +3 -2
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +2 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +3 -2
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +3 -2
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +2 -2
- package/dist/components/EntityCollectionView/SplitListView.d.ts +3 -2
- package/dist/components/EntityEditView.d.ts +3 -2
- package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +2 -2
- package/dist/components/ReferenceWidget.d.ts +2 -2
- package/dist/components/RelationSelector.d.ts +1 -1
- package/dist/components/SelectableTable/SelectableTable.d.ts +2 -2
- package/dist/editor.js +2 -2
- package/dist/editor.js.map +1 -1
- package/dist/hooks/navigation/useNavigationRegistry.d.ts +2 -1
- package/dist/hooks/useEntityHistory.d.ts +1 -1
- package/dist/{index-CBhrgpR7.js → index-BQMlBjgp.js} +3 -3
- package/dist/index-BQMlBjgp.js.map +1 -0
- package/dist/{index-Dey5WJpO.js → index-D-rEPXQ8.js} +3 -3
- package/dist/index-D-rEPXQ8.js.map +1 -0
- package/dist/{index-CHxgwt6E.js → index-DS269-L_.js} +11 -4
- package/dist/index-DS269-L_.js.map +1 -0
- package/dist/index.js +64 -52
- package/dist/index.js.map +1 -1
- package/dist/{useEntityHistory-Dcj4zhGj.js → useEntityHistory-UVsSclfZ.js} +3 -1
- package/dist/useEntityHistory-UVsSclfZ.js.map +1 -0
- package/dist/{util-BQ82ySL3.js → util-BjRT3pwq.js} +608 -518
- package/dist/util-BjRT3pwq.js.map +1 -0
- package/package.json +9 -9
- package/src/collection_editor/ConfigControllerProvider.tsx +18 -18
- package/src/collection_editor/types/collection_editor_controller.tsx +3 -3
- package/src/collection_editor/types/config_controller.tsx +7 -7
- package/src/collection_editor/ui/AddKanbanColumnAction.tsx +4 -4
- package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +3 -3
- package/src/collection_editor/ui/EditorCollectionAction.tsx +3 -3
- package/src/collection_editor/ui/EditorCollectionActionStart.tsx +7 -7
- package/src/collection_editor/ui/EditorEntityAction.tsx +3 -3
- package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +4 -2
- package/src/collection_editor/ui/KanbanSetupAction.tsx +4 -3
- package/src/collection_editor/ui/MissingReferenceWidget.tsx +3 -2
- package/src/collection_editor/ui/NewCollectionButton.tsx +2 -1
- package/src/collection_editor/ui/NewCollectionCard.tsx +2 -1
- package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +3 -3
- package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +1 -1
- package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +11 -11
- package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +17 -2
- package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +2 -1
- package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +18 -12
- package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +1 -1
- package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +4 -4
- package/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +2 -2
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +3 -3
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +1 -1
- package/src/components/EntityCollectionTable/column_utils.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableMultipleRelationField.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableRelationField.tsx +4 -4
- package/src/components/EntityCollectionTable/fields/TableRelationSelectorField.tsx +3 -3
- package/src/components/EntityCollectionTable/table_bindings.tsx +5 -5
- package/src/components/EntityCollectionView/EntityBoardCard.tsx +18 -19
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +42 -14
- package/src/components/EntityCollectionView/EntityCollectionListView.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +113 -71
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +3 -3
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +7 -7
- package/src/components/EntityCollectionView/FiltersDialog.tsx +6 -6
- package/src/components/EntityCollectionView/SplitListView.tsx +6 -4
- package/src/components/EntityEditView.tsx +6 -5
- package/src/components/EntitySidePanel.tsx +7 -3
- package/src/components/HomePage/ContentHomePage.tsx +1 -1
- package/src/components/RebaseNavigation.tsx +1 -1
- package/src/components/ReferenceTable/EntitySelectionTable.tsx +4 -4
- package/src/components/ReferenceWidget.tsx +3 -3
- package/src/components/RelationSelector.tsx +3 -3
- package/src/components/SelectableTable/SelectableTable.tsx +4 -4
- package/src/components/admin/RolesView.tsx +10 -3
- package/src/components/admin/UsersView.tsx +12 -9
- package/src/components/history/EntityHistoryView.tsx +12 -1
- package/src/editor/editor.tsx +2 -2
- package/src/form/EntityForm.tsx +3 -2
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -1
- 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 +1 -1
- package/src/form/field_bindings/RelationFieldBinding.tsx +2 -2
- package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +2 -1
- package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +15 -3
- package/src/hooks/navigation/useNavigationRegistry.ts +14 -3
- package/src/hooks/useEntityHistory.ts +7 -2
- package/src/preview/components/StorageThumbnail.tsx +4 -1
- package/src/routes/RebaseRoute.tsx +30 -9
- package/dist/CollectionEditorDialog-B2M9lCyL.js.map +0 -1
- package/dist/CollectionsStudioView-WG6soyfs.js.map +0 -1
- package/dist/ContentHomePage-CDF_a6Lp.js.map +0 -1
- package/dist/PropertyEditView-DS67DxoT.js.map +0 -1
- package/dist/RolesView-CIuYBimF.js.map +0 -1
- package/dist/UsersView-B5zelXnH.js.map +0 -1
- package/dist/index-CBhrgpR7.js.map +0 -1
- package/dist/index-CHxgwt6E.js.map +0 -1
- package/dist/index-Dey5WJpO.js.map +0 -1
- package/dist/useEntityHistory-Dcj4zhGj.js.map +0 -1
- package/dist/util-BQ82ySL3.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { useAuthController, useCustomizationController, IconForView, useSnackbarController, useLargeLayout, AIIcon, useRebaseContext, ErrorView, ConfirmationDialog, useUnsavedChangesDialog, UnsavedChangesDialog } from "@rebasepro/core";
|
|
4
|
-
import { bk as useCollectionsConfigController, a3 as FieldCaption, ar as SearchIconsView, d as getFieldConfig, P as PropertyConfigBadge, aX as getFullId, b0 as idToPropertiesPath, b4 as namespaceToPropertiesOrderPath, br as validateCollectionJson, e as useCollectionRegistryController, K as CollectionGenerationApiError, s as useCollectionEditorController, I as ImportFileUpload, a as getInferenceType, a8 as ImportNewPropertyFieldPreview, D as DataNewPropertiesMapping, aW as getFieldId, f as useSelectionController, h as convertDataToEntity, E as EntityCollectionTable, m as useNavigationStateController, u as useImportConfig, j as useUrlController, b as ImportSaveInProgress, aY as getFullIdPath } from "./util-
|
|
4
|
+
import { bk as useCollectionsConfigController, a3 as FieldCaption, ar as SearchIconsView, d as getFieldConfig, P as PropertyConfigBadge, aX as getFullId, b0 as idToPropertiesPath, b4 as namespaceToPropertiesOrderPath, br as validateCollectionJson, e as useCollectionRegistryController, K as CollectionGenerationApiError, s as useCollectionEditorController, I as ImportFileUpload, a as getInferenceType, a8 as ImportNewPropertyFieldPreview, D as DataNewPropertiesMapping, aW as getFieldId, f as useSelectionController, h as convertDataToEntity, E as EntityCollectionTable, m as useNavigationStateController, u as useImportConfig, j as useUrlController, b as ImportSaveInProgress, aY as getFullIdPath } from "./util-BjRT3pwq.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import React__default, { useState, useRef, useMemo, useEffect } from "react";
|
|
7
7
|
import { Chip, Typography, cls, Tooltip, IconButton, TextField, DebouncedTextField, Dialog, Container, ToggleButtonGroup, Select, SelectItem, iconSize, Button, BooleanSwitchWithLabel, DialogTitle, DialogContent, DialogActions, CircularProgress, ErrorBoundary, defaultBorderMixin, Table, TableHeader, TableCell, TableBody, TableRow, Menu, Card, CircularProgressCenter, Paper, MultiSelect, MultiSelectItem, coolIconKeys, Tabs, Tab, LoadingButton } from "@rebasepro/ui";
|
|
@@ -23,7 +23,7 @@ import "xlsx";
|
|
|
23
23
|
import { buildPropertyFromData, buildEntityPropertiesFromData } from "@rebasepro/schema-inference";
|
|
24
24
|
import "date-fns";
|
|
25
25
|
import "date-fns/locale";
|
|
26
|
-
import { a as PropertyFormDialog, u as useAIModifiedPaths, b as PropertyTree, P as PropertyForm, s as supportedFields, c as updatePropertyFromWidget, A as AIModifiedPathsProvider } from "./PropertyEditView-
|
|
26
|
+
import { a as PropertyFormDialog, u as useAIModifiedPaths, b as PropertyTree, P as PropertyForm, s as supportedFields, c as updatePropertyFromWidget, A as AIModifiedPathsProvider } from "./PropertyEditView-DpQRpckh.js";
|
|
27
27
|
import JSON5 from "json5";
|
|
28
28
|
import { Highlight, themes } from "prism-react-renderer";
|
|
29
29
|
const CollectionEditorSchema = z.object({
|
|
@@ -1109,7 +1109,7 @@ function collectionToCode(collection) {
|
|
|
1109
1109
|
description: collection.description,
|
|
1110
1110
|
icon: collection.icon,
|
|
1111
1111
|
group: collection.group,
|
|
1112
|
-
|
|
1112
|
+
defaultFilter: collection.defaultFilter,
|
|
1113
1113
|
sort: collection.sort,
|
|
1114
1114
|
properties: Object.entries({
|
|
1115
1115
|
...collection.properties ?? {}
|
|
@@ -3344,6 +3344,12 @@ function cleanPropertiesFromImport(properties, parentSlug = "") {
|
|
|
3344
3344
|
idColumn
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
3347
|
+
function sanitizeSqlIdentifier(name) {
|
|
3348
|
+
if (!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(name)) {
|
|
3349
|
+
throw new Error(`Invalid SQL identifier: "${name}". Only letters, digits, and underscores are allowed.`);
|
|
3350
|
+
}
|
|
3351
|
+
return `"${name}"`;
|
|
3352
|
+
}
|
|
3347
3353
|
function CollectionRLSTab() {
|
|
3348
3354
|
const {
|
|
3349
3355
|
values,
|
|
@@ -3362,10 +3368,12 @@ function CollectionRLSTab() {
|
|
|
3362
3368
|
if (!tableName || !databaseAdmin?.executeSql) return;
|
|
3363
3369
|
setIsLoadingDb(true);
|
|
3364
3370
|
try {
|
|
3371
|
+
const safeTableName = sanitizeSqlIdentifier(tableName);
|
|
3372
|
+
const quotedName = safeTableName.slice(1, -1);
|
|
3365
3373
|
const sql = `
|
|
3366
3374
|
SELECT policyname, permissive, roles, cmd, qual, with_check
|
|
3367
3375
|
FROM pg_policies
|
|
3368
|
-
WHERE tablename = '${
|
|
3376
|
+
WHERE tablename = '${quotedName}' AND schemaname NOT IN ('information_schema', 'pg_catalog');
|
|
3369
3377
|
`;
|
|
3370
3378
|
const result = await databaseAdmin.executeSql(sql);
|
|
3371
3379
|
const extractRows = (res) => {
|
|
@@ -4185,7 +4193,7 @@ function CollectionEditor(props) {
|
|
|
4185
4193
|
} = collectionRegistry;
|
|
4186
4194
|
const initialValuesProp = props.initialValues;
|
|
4187
4195
|
const copyFromProp = props.copyFrom;
|
|
4188
|
-
const includeTemplates = !copyFromProp && !initialValuesProp?.slug && (props.
|
|
4196
|
+
const includeTemplates = !copyFromProp && !initialValuesProp?.slug && (props.parentCollectionSlugs ?? []).length === 0;
|
|
4189
4197
|
const collectionsInThisLevel = (props.parentCollection ? getSubcollections(props.parentCollection) : collections) ?? [];
|
|
4190
4198
|
const existingPaths = collectionsInThisLevel.map((col) => getTableName(col)?.trim().toLowerCase()).filter(Boolean);
|
|
4191
4199
|
const existingIds = collectionsInThisLevel.map((col_0) => col_0.slug?.trim().toLowerCase()).filter(Boolean);
|
|
@@ -4195,7 +4203,7 @@ function CollectionEditor(props) {
|
|
|
4195
4203
|
try {
|
|
4196
4204
|
if (collectionRegistry.initialised) {
|
|
4197
4205
|
if (props.editedCollectionId) {
|
|
4198
|
-
const collectionPath = [...props.
|
|
4206
|
+
const collectionPath = [...props.parentCollectionSlugs ?? [], props.editedCollectionId].reduce((acc, segment, i) => i === 0 ? segment : `${acc}/fake_id/${segment}`, "");
|
|
4199
4207
|
setCollection(collectionRegistry.getRawCollection(collectionPath));
|
|
4200
4208
|
} else {
|
|
4201
4209
|
setCollection(void 0);
|
|
@@ -4205,7 +4213,7 @@ function CollectionEditor(props) {
|
|
|
4205
4213
|
} catch (e) {
|
|
4206
4214
|
console.error(e);
|
|
4207
4215
|
}
|
|
4208
|
-
}, [props.editedCollectionId, props.
|
|
4216
|
+
}, [props.editedCollectionId, props.parentCollectionSlugs, props.parentEntityIds, collectionRegistry.initialised, collectionRegistry.getRawCollection]);
|
|
4209
4217
|
const groups = topLevelNavigation?.groups ?? [];
|
|
4210
4218
|
const initialCollection = collection ? {
|
|
4211
4219
|
...collection,
|
|
@@ -4243,7 +4251,8 @@ function CollectionEditorInternal({
|
|
|
4243
4251
|
isNewCollection,
|
|
4244
4252
|
configController,
|
|
4245
4253
|
editedCollectionId,
|
|
4246
|
-
|
|
4254
|
+
parentCollectionSlugs,
|
|
4255
|
+
parentEntityIds,
|
|
4247
4256
|
path,
|
|
4248
4257
|
collectionInference,
|
|
4249
4258
|
handleClose,
|
|
@@ -4285,7 +4294,7 @@ function CollectionEditorInternal({
|
|
|
4285
4294
|
id,
|
|
4286
4295
|
collectionData: updatedCollection,
|
|
4287
4296
|
previousId: editedCollectionId,
|
|
4288
|
-
|
|
4297
|
+
parentCollectionSlugs
|
|
4289
4298
|
}).then(() => {
|
|
4290
4299
|
setError(void 0);
|
|
4291
4300
|
return true;
|
|
@@ -4488,7 +4497,7 @@ function CollectionEditorInternal({
|
|
|
4488
4497
|
} = formController;
|
|
4489
4498
|
const usedPath = getTableName(values_1);
|
|
4490
4499
|
const pathError_0 = validatePath(usedPath, isNewCollection, existingPaths, values_1.slug);
|
|
4491
|
-
const parentPaths = !pathError_0 &&
|
|
4500
|
+
const parentPaths = !pathError_0 && parentCollectionSlugs ? collectionRegistry.convertIdsToPaths(parentCollectionSlugs) : void 0;
|
|
4492
4501
|
const updatedFullPath = parentPaths && parentPaths.length > 0 ? [...parentPaths, usedPath].join("/fake_id/") : path?.includes("/") ? path.split("/").slice(0, -1).join("/") + "/" + usedPath : usedPath;
|
|
4493
4502
|
const resolvedPath = !pathError_0 ? urlController.resolveDatabasePathsFrom(updatedFullPath) : void 0;
|
|
4494
4503
|
const getDataWithPath = resolvedPath && getData ? async () => {
|
|
@@ -4555,9 +4564,9 @@ function CollectionEditorInternal({
|
|
|
4555
4564
|
aiModifiedPaths.addModifiedPaths(operations);
|
|
4556
4565
|
}
|
|
4557
4566
|
};
|
|
4558
|
-
return /* @__PURE__ */ jsxs("div", { className: "h-full w-full flex flex-col bg-white dark:bg-surface-
|
|
4567
|
+
return /* @__PURE__ */ jsxs("div", { className: "h-full w-full flex flex-col bg-white dark:bg-surface-950", children: [
|
|
4559
4568
|
/* @__PURE__ */ jsx(Formex, { value: formController, children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4560
|
-
!isNewCollection && /* @__PURE__ */ jsxs("div", { className: cls("px-4 py-2 w-full flex shrink-0 items-center justify-between gap-4 bg-white dark:bg-surface-
|
|
4569
|
+
!isNewCollection && /* @__PURE__ */ jsxs("div", { className: cls("px-4 py-2 w-full flex shrink-0 items-center justify-between gap-4 bg-white dark:bg-surface-950 border-b", defaultBorderMixin), children: [
|
|
4561
4570
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-end gap-4 min-w-0", children: /* @__PURE__ */ jsxs(Tabs, { value: currentView, className: "bg-transparent !w-fit max-w-full", onValueChange: (v) => setCurrentView(v), children: [
|
|
4562
4571
|
/* @__PURE__ */ jsx(Tab, { value: "general", children: "General" }),
|
|
4563
4572
|
/* @__PURE__ */ jsx(Tab, { value: "display", children: "Display" }),
|
|
@@ -4615,7 +4624,7 @@ function CollectionEditorInternal({
|
|
|
4615
4624
|
formController.validate();
|
|
4616
4625
|
}, getUser, getData: getDataWithPath, doCollectionInference, propertyConfigs, extraIcon: extraView?.icon && /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => setCurrentView("extra_view"), children: extraView.icon }) })
|
|
4617
4626
|
] }),
|
|
4618
|
-
(!fullScreen || isNewCollection || !!error) && /* @__PURE__ */ jsxs("div", { className: "shrink-0 w-full p-4 sm:px-6 sm:py-4 border-t border-surface-200 dark:border-surface-
|
|
4627
|
+
(!fullScreen || isNewCollection || !!error) && /* @__PURE__ */ jsxs("div", { className: "shrink-0 w-full p-4 sm:px-6 sm:py-4 border-t border-surface-200 dark:border-surface-900 flex items-center justify-between gap-4 bg-white dark:bg-surface-950", children: [
|
|
4619
4628
|
error && /* @__PURE__ */ jsx(ErrorView, { error }),
|
|
4620
4629
|
isNewCollection && includeTemplates && currentView === "import_data_mapping" && /* @__PURE__ */ jsx(Button, { variant: "text", type: "button", onClick: () => {
|
|
4621
4630
|
importConfig.setInUse(false);
|
|
@@ -4637,7 +4646,7 @@ function CollectionEditorInternal({
|
|
|
4637
4646
|
isNewCollection && currentView === "import_data_preview" && /* @__PURE__ */ jsx(Button, { variant: "filled", color: "primary", onClick: () => {
|
|
4638
4647
|
setNextMode();
|
|
4639
4648
|
}, children: "Next" }),
|
|
4640
|
-
isNewCollection && (currentView === "general" || currentView === "properties") && /* @__PURE__ */ jsxs(LoadingButton, { variant: "filled", color: "primary", type: "submit", loading: isSubmitting, disabled: isSubmitting || currentView === "general" && !validValues, startIcon: currentView === "properties" ? /* @__PURE__ */ jsx(CheckIcon, {}) : void 0, children: [
|
|
4649
|
+
isNewCollection && (currentView === "general" || currentView === "properties") && /* @__PURE__ */ jsxs(LoadingButton, { variant: "filled", color: "primary", type: "submit", loading: isSubmitting, disabled: isSubmitting || currentView === "general" && !validValues || configController?.readOnly, startIcon: currentView === "properties" ? /* @__PURE__ */ jsx(CheckIcon, {}) : void 0, children: [
|
|
4641
4650
|
currentView === "general" && "Next",
|
|
4642
4651
|
currentView === "properties" && "Create collection"
|
|
4643
4652
|
] }),
|
|
@@ -4717,4 +4726,4 @@ export {
|
|
|
4717
4726
|
CollectionEditor,
|
|
4718
4727
|
CollectionEditorDialog
|
|
4719
4728
|
};
|
|
4720
|
-
//# sourceMappingURL=CollectionEditorDialog-
|
|
4729
|
+
//# sourceMappingURL=CollectionEditorDialog-CN8hb1_b.js.map
|