@rebasepro/cms 0.19.2-canary.gef769df → 0.20.0
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-cPFNCVnx.js → CollectionEditorDialog-DQjLtp1W.js} +54 -49
- package/dist/{CollectionEditorDialog-cPFNCVnx.js.map → CollectionEditorDialog-DQjLtp1W.js.map} +1 -1
- package/dist/{PropertyEditView-DXEHuAzg.js → PropertyEditView-BMCCD2OI.js} +2 -2
- package/dist/{PropertyEditView-DXEHuAzg.js.map → PropertyEditView-BMCCD2OI.js.map} +1 -1
- package/dist/{RouterCollectionsStudioView-CX1Vi8h0.js → RouterCollectionsStudioView-DwsbIAqr.js} +4 -4
- package/dist/{RouterCollectionsStudioView-CX1Vi8h0.js.map → RouterCollectionsStudioView-DwsbIAqr.js.map} +1 -1
- package/dist/collection_editor_ui.js +4 -4
- package/dist/data_import/utils/file_headers.d.ts +28 -4
- package/dist/{export-BZZGtpg2.js → export-DJoGYb89.js} +2 -2
- package/dist/{export-BZZGtpg2.js.map → export-DJoGYb89.js.map} +1 -1
- package/dist/{history-jlpXPTks.js → history-BBpsdTrJ.js} +2 -2
- package/dist/{history-jlpXPTks.js.map → history-BBpsdTrJ.js.map} +1 -1
- package/dist/{import-p3gl9dxg.js → import-C4VQ0rwO.js} +2 -2
- package/dist/{import-p3gl9dxg.js.map → import-C4VQ0rwO.js.map} +1 -1
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/{util-BNe7DTtO.js → util-4oPxPkbp.js} +83 -31
- package/dist/util-4oPxPkbp.js.map +1 -0
- package/package.json +12 -11
- package/dist/util-BNe7DTtO.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { A as getFieldId, At as convertDataToEntity, Ft as ImportSaveInProgress, Gt as SearchIconsView, Jn as useCollectionRegistryController, Kt as FieldCaption, Nt as getInferenceType, Ot as ImportNewPropertyFieldPreview, Pt as useImportConfig, Rt as ImportFileUpload, S as isSchemaChangeCancelled, Tt as useCollectionEditorController, Wt as PropertyConfigBadge, _ as useCollectionsConfigController, _n as useNavigationStateController, cn as useSelectionController, ct as useSafeSnackbarController, hn as useUrlController, i as namespaceToPropertiesOrderPath, k as getFieldConfig, kt as DataNewPropertiesMapping, l as validateCollectionJson, m as toSerializableCollectionConfig, n as getFullIdPath, o as CollectionGenerationApiError, r as idToPropertiesPath, t as getFullId, un as CollectionTableBinding } from "./util-
|
|
3
|
-
import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-
|
|
2
|
+
import { A as getFieldId, At as convertDataToEntity, Ft as ImportSaveInProgress, Gt as SearchIconsView, Jn as useCollectionRegistryController, Kt as FieldCaption, Nt as getInferenceType, Ot as ImportNewPropertyFieldPreview, Pt as useImportConfig, Rt as ImportFileUpload, S as isSchemaChangeCancelled, Tt as useCollectionEditorController, Wt as PropertyConfigBadge, _ as useCollectionsConfigController, _n as useNavigationStateController, cn as useSelectionController, ct as useSafeSnackbarController, hn as useUrlController, i as namespaceToPropertiesOrderPath, k as getFieldConfig, kt as DataNewPropertiesMapping, l as validateCollectionJson, m as toSerializableCollectionConfig, n as getFullIdPath, o as CollectionGenerationApiError, r as idToPropertiesPath, t as getFullId, un as CollectionTableBinding } from "./util-4oPxPkbp.js";
|
|
3
|
+
import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-BMCCD2OI.js";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { Alert, AppWindow, ArrowLeftIcon, BooleanSwitchWithLabel, Button, Card, CheckIcon, Chip, CircularProgress, CircularProgressCenter, CodeIcon, ColumnsIcon, Container, CopyIcon, DebouncedTextField, Dialog, DialogActions, DialogContent, DialogTitle, ErrorBoundary, FileIcon, FileSearchIcon, FileTextIcon, IconButton, KanbanIcon, KeyIcon, LayoutGridIcon, ListIcon, LoadingButton, Menu, MultiSelect, MultiSelectItem, PanelLeftIcon, Paper, PlusIcon, Select, SelectItem, ShoppingCartIcon, SquareIcon, Tab, TableIcon, Tabs, TextField, ToggleButtonGroup, Tooltip, Trash2Icon, Typography, UserIcon, XIcon, cls, coolIconKeys, defaultBorderMixin, iconSize } from "@rebasepro/ui";
|
|
@@ -3462,52 +3462,57 @@ function CollectionEditorInternal({ isNewCollection, configController, editedCol
|
|
|
3462
3462
|
onClick: () => setCurrentView("general"),
|
|
3463
3463
|
children: [/* @__PURE__ */ jsx(ArrowLeftIcon, {}), "Back"]
|
|
3464
3464
|
}),
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3465
|
+
/* @__PURE__ */ jsxs("div", {
|
|
3466
|
+
className: "flex items-center gap-2 ml-auto",
|
|
3467
|
+
children: [
|
|
3468
|
+
(!fullScreen || isNewCollection) && /* @__PURE__ */ jsx(Button, {
|
|
3469
|
+
variant: "text",
|
|
3470
|
+
color: "neutral",
|
|
3471
|
+
onClick: () => {
|
|
3472
|
+
handleCancel();
|
|
3473
|
+
},
|
|
3474
|
+
children: "Cancel"
|
|
3475
|
+
}),
|
|
3476
|
+
currentView === "welcome" && /* @__PURE__ */ jsx(Button, {
|
|
3477
|
+
variant: "text",
|
|
3478
|
+
onClick: () => onWelcomeScreenContinue(),
|
|
3479
|
+
children: "Continue from scratch"
|
|
3480
|
+
}),
|
|
3481
|
+
isNewCollection && currentView === "import_data_mapping" && /* @__PURE__ */ jsx(Button, {
|
|
3482
|
+
variant: "filled",
|
|
3483
|
+
color: "primary",
|
|
3484
|
+
onClick: onImportMappingComplete,
|
|
3485
|
+
children: "Next"
|
|
3486
|
+
}),
|
|
3487
|
+
isNewCollection && currentView === "import_data_preview" && /* @__PURE__ */ jsx(Button, {
|
|
3488
|
+
variant: "filled",
|
|
3489
|
+
color: "primary",
|
|
3490
|
+
onClick: () => {
|
|
3491
|
+
setNextMode();
|
|
3492
|
+
},
|
|
3493
|
+
children: "Next"
|
|
3494
|
+
}),
|
|
3495
|
+
isNewCollection && (currentView === "general" || currentView === "properties") && /* @__PURE__ */ jsxs(LoadingButton, {
|
|
3496
|
+
variant: "filled",
|
|
3497
|
+
color: "primary",
|
|
3498
|
+
type: "submit",
|
|
3499
|
+
loading: isSubmitting,
|
|
3500
|
+
disabled: isSubmitting || currentView === "general" && !validValues || configController?.readOnly,
|
|
3501
|
+
startIcon: currentView === "properties" ? /* @__PURE__ */ jsx(CheckIcon, {}) : void 0,
|
|
3502
|
+
children: [currentView === "general" && "Next", currentView === "properties" && "Create collection"]
|
|
3503
|
+
}),
|
|
3504
|
+
!isNewCollection && !fullScreen && /* @__PURE__ */ jsx(Tooltip, {
|
|
3505
|
+
title: configController?.readOnly ? readOnlyTitle : void 0,
|
|
3506
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(LoadingButton, {
|
|
3507
|
+
variant: "filled",
|
|
3508
|
+
color: "primary",
|
|
3509
|
+
type: "submit",
|
|
3510
|
+
disabled: isSubmitting || configController?.readOnly,
|
|
3511
|
+
loading: isSubmitting,
|
|
3512
|
+
children: configController?.readOnly ? "Update collection (Read-only)" : "Update collection"
|
|
3513
|
+
}) })
|
|
3514
|
+
})
|
|
3515
|
+
]
|
|
3511
3516
|
})
|
|
3512
3517
|
]
|
|
3513
3518
|
})]
|
|
@@ -3576,4 +3581,4 @@ var validateId = (value, isNewCollection, existingPaths, existingIds) => {
|
|
|
3576
3581
|
//#endregion
|
|
3577
3582
|
export { CollectionEditorDialog as n, CollectionEditorDialog_exports as r, CollectionEditor as t };
|
|
3578
3583
|
|
|
3579
|
-
//# sourceMappingURL=CollectionEditorDialog-
|
|
3584
|
+
//# sourceMappingURL=CollectionEditorDialog-DQjLtp1W.js.map
|