@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.
@@ -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-BNe7DTtO.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-DXEHuAzg.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-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
- (!fullScreen || isNewCollection) && /* @__PURE__ */ jsx(Button, {
3466
- variant: "text",
3467
- color: "neutral",
3468
- onClick: () => {
3469
- handleCancel();
3470
- },
3471
- children: "Cancel"
3472
- }),
3473
- currentView === "welcome" && /* @__PURE__ */ jsx(Button, {
3474
- variant: "text",
3475
- onClick: () => onWelcomeScreenContinue(),
3476
- children: "Continue from scratch"
3477
- }),
3478
- isNewCollection && currentView === "import_data_mapping" && /* @__PURE__ */ jsx(Button, {
3479
- variant: "filled",
3480
- color: "primary",
3481
- onClick: onImportMappingComplete,
3482
- children: "Next"
3483
- }),
3484
- isNewCollection && currentView === "import_data_preview" && /* @__PURE__ */ jsx(Button, {
3485
- variant: "filled",
3486
- color: "primary",
3487
- onClick: () => {
3488
- setNextMode();
3489
- },
3490
- children: "Next"
3491
- }),
3492
- isNewCollection && (currentView === "general" || currentView === "properties") && /* @__PURE__ */ jsxs(LoadingButton, {
3493
- variant: "filled",
3494
- color: "primary",
3495
- type: "submit",
3496
- loading: isSubmitting,
3497
- disabled: isSubmitting || currentView === "general" && !validValues || configController?.readOnly,
3498
- startIcon: currentView === "properties" ? /* @__PURE__ */ jsx(CheckIcon, {}) : void 0,
3499
- children: [currentView === "general" && "Next", currentView === "properties" && "Create collection"]
3500
- }),
3501
- !isNewCollection && !fullScreen && /* @__PURE__ */ jsx(Tooltip, {
3502
- title: configController?.readOnly ? readOnlyTitle : void 0,
3503
- children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(LoadingButton, {
3504
- variant: "filled",
3505
- color: "primary",
3506
- type: "submit",
3507
- disabled: isSubmitting || configController?.readOnly,
3508
- loading: isSubmitting,
3509
- children: configController?.readOnly ? "Update collection (Read-only)" : "Update collection"
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-cPFNCVnx.js.map
3584
+ //# sourceMappingURL=CollectionEditorDialog-DQjLtp1W.js.map