@rebasepro/admin 0.14.1 → 0.14.2-canary.g27a129e
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-BeS4lxGh.js → CollectionEditorDialog-Dxx0ZaDk.js} +11 -5
- package/dist/CollectionEditorDialog-Dxx0ZaDk.js.map +1 -0
- package/dist/{PropertyEditView-BFJ6H9-Q.js → PropertyEditView-D6xNTm0d.js} +2 -2
- package/dist/{PropertyEditView-BFJ6H9-Q.js.map → PropertyEditView-D6xNTm0d.js.map} +1 -1
- package/dist/{RouterCollectionsStudioView-sfsUpEJz.js → RouterCollectionsStudioView-C4vSn9Pu.js} +4 -4
- package/dist/{RouterCollectionsStudioView-sfsUpEJz.js.map → RouterCollectionsStudioView-C4vSn9Pu.js.map} +1 -1
- package/dist/collection_editor/serializable_types.d.ts +6 -0
- package/dist/collection_editor_ui.js +4 -4
- package/dist/components/CollectionViewBinding/ViewModeToggle.d.ts +11 -5
- package/dist/components/RebaseAdmin.d.ts +1 -1
- package/dist/{export-KEf57Jso.js → export-BZi1MzQ5.js} +2 -2
- package/dist/{export-KEf57Jso.js.map → export-BZi1MzQ5.js.map} +1 -1
- package/dist/{history-Ctd2cRn_.js → history-B5pkfldE.js} +2 -2
- package/dist/{history-Ctd2cRn_.js.map → history-B5pkfldE.js.map} +1 -1
- package/dist/{import-BujhycMq.js → import-CXpuYo-T.js} +2 -2
- package/dist/{import-BujhycMq.js.map → import-CXpuYo-T.js.map} +1 -1
- package/dist/index.js +19 -14
- package/dist/index.js.map +1 -1
- package/dist/util/resolutions.d.ts +10 -1
- package/dist/util/view_mode.d.ts +24 -6
- package/dist/{util-bL-fk6C6.js → util-BKtHPLe4.js} +141 -52
- package/dist/util-BKtHPLe4.js.map +1 -0
- package/package.json +9 -9
- package/src/collection_editor/serializable_types.ts +6 -0
- package/src/collection_editor/serializable_utils.ts +8 -0
- package/src/collection_editor/ui/collection_editor/ViewModeSwitch.tsx +16 -2
- package/src/components/CollectionEditorDialogs.tsx +4 -3
- package/src/components/CollectionViewBinding/CollectionViewActions.tsx +4 -4
- package/src/components/CollectionViewBinding/CollectionViewBinding.tsx +99 -22
- package/src/components/CollectionViewBinding/ViewModeToggle.tsx +66 -32
- package/src/components/EntityInspector.tsx +3 -2
- package/src/components/HomePage/NavigationCardBinding.tsx +2 -2
- package/src/components/RebaseAdmin.tsx +3 -2
- package/src/components/RebaseNavigation.tsx +13 -6
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +3 -2
- package/src/util/resolutions.ts +30 -1
- package/src/util/view_mode.ts +49 -12
- package/dist/CollectionEditorDialog-BeS4lxGh.js.map +0 -1
- package/dist/util-bL-fk6C6.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { Bt as FieldCaption, Ct as convertDataToEntity, Dt as useImportConfig, Et as getInferenceType, Hn as useCollectionRegistryController, Ot as ImportSaveInProgress, Rt as PropertyConfigBadge, St as DataNewPropertiesMapping, T as getFieldId, _ as useCollectionsConfigController, dn as useNavigationStateController, i as namespaceToPropertiesOrderPath, in as CollectionTableBinding, jt as ImportFileUpload, l as validateCollectionJson, ln as useUrlController, m as toSerializableCollectionConfig, n as getFullIdPath, nn as useSelectionController, o as CollectionGenerationApiError, r as idToPropertiesPath, t as getFullId, vt as useCollectionEditorController, w as getFieldConfig, xt as ImportNewPropertyFieldPreview, zt as SearchIconsView } from "./util-
|
|
3
|
-
import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, l as useSafeSnackbarController, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-
|
|
2
|
+
import { Bt as FieldCaption, Ct as convertDataToEntity, Dt as useImportConfig, Et as getInferenceType, Hn as useCollectionRegistryController, Ot as ImportSaveInProgress, Rt as PropertyConfigBadge, St as DataNewPropertiesMapping, T as getFieldId, _ as useCollectionsConfigController, dn as useNavigationStateController, i as namespaceToPropertiesOrderPath, in as CollectionTableBinding, jt as ImportFileUpload, l as validateCollectionJson, ln as useUrlController, m as toSerializableCollectionConfig, n as getFullIdPath, nn as useSelectionController, o as CollectionGenerationApiError, r as idToPropertiesPath, t as getFullId, vt as useCollectionEditorController, w as getFieldConfig, xt as ImportNewPropertyFieldPreview, zt as SearchIconsView } from "./util-BKtHPLe4.js";
|
|
3
|
+
import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, l as useSafeSnackbarController, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-D6xNTm0d.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";
|
|
7
7
|
import { buildCollectionFromTableMetadata, getGeneratedPolicyNames, getSubcollections, getTableName, isPropertyBuilder } from "@rebasepro/common";
|
|
8
|
-
import { AIIcon, ConfirmationDialog, ErrorView, IconForView, UnsavedChangesDialog, removeInitialAndTrailingSlashes, useAuthController, useCustomizationController, useLargeLayout, useRebaseContext, useTranslation, useUnsavedChangesDialog } from "@rebasepro/app";
|
|
8
|
+
import { AIIcon, ConfirmationDialog, ErrorView, IconForView, UnsavedChangesDialog, getIcon, removeInitialAndTrailingSlashes, useAuthController, useCustomizationController, useLargeLayout, useRebaseContext, useTranslation, useUnsavedChangesDialog } from "@rebasepro/app";
|
|
9
9
|
import { Field, Formex, clone, getIn, useCreateFormex, useFormex } from "@rebasepro/forms";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { camelCase, getPolicyNamesForRule, isEmptyObject, mergeDeep, prettifyIdentifier, randomString, removeUndefined, singular, slugify, toSnakeCase, unslugify } from "@rebasepro/utils";
|
|
@@ -261,6 +261,7 @@ function LayoutModeSwitch({ value, onChange, className }) {
|
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region src/collection_editor/ui/collection_editor/ViewModeSwitch.tsx
|
|
263
263
|
function ViewModeSwitch({ value, onChange, className }) {
|
|
264
|
+
const registeredViews = useCustomizationController().collectionViews ?? [];
|
|
264
265
|
return /* @__PURE__ */ jsxs("div", {
|
|
265
266
|
className: cls(className),
|
|
266
267
|
children: [
|
|
@@ -295,7 +296,12 @@ function ViewModeSwitch({ value, onChange, className }) {
|
|
|
295
296
|
value: "kanban",
|
|
296
297
|
label: "Kanban",
|
|
297
298
|
icon: /* @__PURE__ */ jsx(KanbanIcon, {})
|
|
298
|
-
}
|
|
299
|
+
},
|
|
300
|
+
...registeredViews.map((view) => ({
|
|
301
|
+
value: view.key,
|
|
302
|
+
label: view.name,
|
|
303
|
+
icon: getIcon(view.icon) ?? /* @__PURE__ */ jsx(ListIcon, {})
|
|
304
|
+
}))
|
|
299
305
|
]
|
|
300
306
|
})
|
|
301
307
|
}),
|
|
@@ -3560,4 +3566,4 @@ var validateId = (value, isNewCollection, existingPaths, existingIds) => {
|
|
|
3560
3566
|
//#endregion
|
|
3561
3567
|
export { CollectionEditorDialog as n, CollectionEditorDialog_exports as r, CollectionEditor as t };
|
|
3562
3568
|
|
|
3563
|
-
//# sourceMappingURL=CollectionEditorDialog-
|
|
3569
|
+
//# sourceMappingURL=CollectionEditorDialog-Dxx0ZaDk.js.map
|