@rebasepro/cms 0.19.2-canary.g9b599d4 → 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.
@@ -9594,8 +9594,8 @@ function EditorCollectionAction({ path, parentCollectionSlugs, parentEntityIds,
9594
9594
  }
9595
9595
  //#endregion
9596
9596
  //#region src/components/CollectionViewBinding/CollectionViewActions.tsx
9597
- var ImportCollectionAction = lazyChunk(() => import("./import-C6LT6jFX.js").then((n) => n.t).then((m) => ({ default: m.ImportCollectionAction })));
9598
- var ExportCollectionAction = lazyChunk(() => import("./export-DaS5_yPs.js").then((n) => n.t).then((m) => ({ default: m.ExportCollectionAction })));
9597
+ var ImportCollectionAction = lazyChunk(() => import("./import-C4VQ0rwO.js").then((n) => n.t).then((m) => ({ default: m.ImportCollectionAction })));
9598
+ var ExportCollectionAction = lazyChunk(() => import("./export-DJoGYb89.js").then((n) => n.t).then((m) => ({ default: m.ExportCollectionAction })));
9599
9599
  function CollectionViewActions({ collection, relativePath, parentCollectionSlugs, parentEntityIds, onNewClick, onAddExistingClick, onMultipleDeleteClick, selectionEnabled, path, selectionController, tableController, collectionEntitiesCount, compact, children, openNewDocument }) {
9600
9600
  const context = useAdminContext();
9601
9601
  const { canCreate, canDelete } = usePermissions();
@@ -10568,9 +10568,22 @@ function CollectionListViewBinding({ collection, tableController, onEntityClick,
10568
10568
  * silently drop.
10569
10569
  */
10570
10570
  const sortableKeys = useMemo(() => new Set(getSortablePropertyOptions(resolvedCollection.properties).map((option) => option.key)), [resolvedCollection.properties]);
10571
- /** The row's identity cell: the leading column, or the title slot. */
10571
+ /**
10572
+ * The row's identity cell — the thumbnail, the title and the subtitle.
10573
+ *
10574
+ * Labelled by the title slot, because that is what the cell renders. In
10575
+ * column mode it used to be labelled by `listProperties[0]` instead, which
10576
+ * was right only when the two happened to be the same property and a lie
10577
+ * whenever they were not: `listProperties: ["roles", "createdAt"]` on the
10578
+ * users collection put a "Roles" header over the name-and-email cell, and
10579
+ * the roles themselves appeared in no column at all — the header was the
10580
+ * only trace of the property the developer had asked for.
10581
+ *
10582
+ * The first list property is therefore only consumed here when it *is* the
10583
+ * title; otherwise it stays in {@link declaredColumns} and gets a cell.
10584
+ */
10572
10585
  const titleColumn = useMemo(() => {
10573
- const key = columnMode ? resolvedCollection.listProperties?.[0] : titlePropertyKey;
10586
+ const key = titlePropertyKey ?? (columnMode ? resolvedCollection.listProperties?.[0] : void 0);
10574
10587
  if (!key) return void 0;
10575
10588
  const property = resolvedCollection.properties[key];
10576
10589
  return {
@@ -10596,7 +10609,7 @@ function CollectionListViewBinding({ collection, tableController, onEntityClick,
10596
10609
  */
10597
10610
  const declaredColumns = useMemo(() => {
10598
10611
  if (columnMode) {
10599
- const keys = resolvedCollection.listProperties.slice(1);
10612
+ const keys = resolvedCollection.listProperties.filter((key) => key !== titleColumn?.key);
10600
10613
  return keys.flatMap((key, index) => {
10601
10614
  const property = resolvedCollection.properties[key];
10602
10615
  if (!property) return [];
@@ -10648,6 +10661,7 @@ function CollectionListViewBinding({ collection, tableController, onEntityClick,
10648
10661
  }, [
10649
10662
  columnMode,
10650
10663
  resolvedCollection,
10664
+ titleColumn?.key,
10651
10665
  slotKeys.tagsKey,
10652
10666
  statusPropertyKey,
10653
10667
  datePropertyKey,
@@ -11941,7 +11955,7 @@ function JsonPreviewBinding({ values }) {
11941
11955
  }
11942
11956
  //#endregion
11943
11957
  //#region src/components/EntityInspector.tsx
11944
- var EntityHistoryView = lazyChunk(() => import("./history-CprVaaMc.js").then((m) => ({ default: m.EntityHistoryView })));
11958
+ var EntityHistoryView = lazyChunk(() => import("./history-BBpsdTrJ.js").then((m) => ({ default: m.EntityHistoryView })));
11945
11959
  /**
11946
11960
  * Raw values and revision history, as an inspector rather than as tabs.
11947
11961
  *
@@ -25078,4 +25092,4 @@ function getFullIdPath(propertyKey, propertyNamespace) {
25078
25092
  //#endregion
25079
25093
  export { NAVIGATION_DEFAULT_GROUP_NAME as $, getEntityTitlePropertyKeyForEntity as $n, getCollectionBySlugWithin as $t, getFieldId as A, NumberPropertyPreview as An, convertDataToEntity as At, MapFieldBinding as B, RelationPreview as Bn, detectCsvDelimiter as Bt, EntityFormBinding as C, ReadOnlyFieldBinding as Cn, getIconForProperty as Cr, EntityCardBinding as Ct, getDefaultFieldConfig as D, ArrayOfMapsPreview as Dn, getResolvedPropertyInPath as Dr, useCollectionEditorDialogsState as Dt, DEFAULT_FIELD_CONFIGS as E, FieldHelperText as En, getPropertyInPath$1 as Er, ConfigControllerProvider as Et, SelectFieldBinding as F, ArrayOneOfPreview as Fn, ImportSaveInProgress as Ft, useSelectionDialog as G, SidePanelControllerContext as Gn, SearchIconsView as Gt, DateTimeFieldBinding as H, InlineEntityListPreview as Hn, parseCsvToObjects as Ht, RepeatFieldBinding as I, ArrayOfStringsPreview as In, IMPORT_BATCH_SIZE as It, useBuildUrlController as J, useCollectionRegistryController as Jn, BreadcrumbsProvider as Jt, SelectionTableBinding as K, useSidePanel as Kn, FieldCaption as Kt, ReferenceFieldBinding as L, ArrayPropertyEnumPreview as Ln, saveImportedEntities as Lt, TextFieldBinding as M, DatePreview as Mn, processValueMapping as Mt, SwitchFieldBinding as N, KeyValuePreview as Nn, getInferenceType as Nt, getDefaultFieldId as O, PropertyPreview as On, isReferenceProperty as Or, ImportNewPropertyFieldPreview as Ot, StorageUploadFieldBinding as P, MapPropertyPreview as Pn, useImportConfig as Pt, useResolvedCollections as Q, getEntityTitlePropertyKey as Qn, addInitialSlash as Qt, MultiSelectFieldBinding as R, ArrayEnumPreview as Rn, ImportFileUpload as Rt, isSchemaChangeCancelled as S, useClearRestoreValue as Sn, getDefaultPropertiesOrder as Sr, CollectionCardViewBinding as St, PropertyFieldBinding as T, LabelWithIcon as Tn, getPropertiesWithPropertiesOrder as Tr, useCollectionEditorController as Tt, BlockFieldBinding as U, ReferencePreview as Un, ArrayContainer as Ut, KeyValueFieldBinding as V, ArrayOfReferencesPreview as Vn, parseCsvRows as Vt, ArrayOfReferencesFieldBinding as W, EntityPreviewBinding as Wn, PropertyConfigBadge as Wt, useTopLevelNavigation as X, useResolvedUser as Xn, resolveEntityView as Xt, useBuildNavigationStateController as Y, getUserLabel as Yn, resolveEntityAction as Yt, useResolvedViews as Z, getEntityPreviewKeys as Zn, mergeEntityActions as Zt, useCollectionsConfigController as _, useNavigationStateController as _n, LABEL_ICON_SIZE as _r, editEntityAction as _t, namespaceToPropertiesPath as a, resolveCollectionPathIds$1 as an, SkeletonPropertyComponent as ar, getEntityViewWidth as at, asUnavailable as b, SelectableTableContext as bn, PropertyIdCopyTooltip as br, DetailViewBinding as bt, buildCollectionGenerationCallback as c, useSelectionController as cn, renderSkeletonImageThumbnail as cr, useSafeSnackbarController as ct, fromSerializableCollectionConfigs as d, SelectableTable as dn, ImagePreview as dr, getInitialEntityValues as dt, getCollectionPathsCombinations as en, ArrayPropertyPreview as er, useBuildCollectionRegistryController as et, fromSerializableProperties as f, CollectionRowActions as fn, EmptyValue as fr, removeEmptyContainers as ft, toSerializableProperty as g, NavigationStateContext as gn, FieldBlock as gr, deleteEntityAction as gt, toSerializableProperties as h, useUrlController as hn, RecordMeta as hr, copyEntityAction as ht, namespaceToPropertiesOrderPath as i, removeTrailingSlash$1 as in, StorageThumbnailInternal as ir, buildSidePanelsFromUrl as it, VectorFieldBinding as j, BooleanPreview as jn, flattenEntry as jt, getFieldConfig as k, UserPreview as kn, isRelationProperty as kr, DataNewPropertiesMapping as kt, validateCollectionJson as l, VirtualTableInput$1 as ln, renderSkeletonText as lr, extractTouchedValues as lt, toSerializableCollectionConfig as m, UrlContext as mn, FormRail as mr, CollectionViewBinding as mt, getFullIdPath as n, removeInitialAndTrailingSlashes$1 as nn, EnumValuesChip as nr, resolveNavigationFrom as nt, CollectionGenerationApiError as o, resolveOpenEntityMode as on, renderSkeletonCaptionText as or, useBuildSidePanel as ot, fromSerializableProperty as p, useAdminContext as pn, FormSections as pr, zodToFormErrors as pt, SideDialogs as q, CollectionRegistryContext as qn, useBreadcrumbsController as qt, idToPropertiesPath as r, removeInitialSlash as rn, StorageThumbnail as rr, useResolvedNavigationFrom as rt, DEFAULT_COLLECTION_GENERATION_ENDPOINT as s, resolveViewMode as sn, renderSkeletonIcon as sr, EditViewBinding as st, getFullId as t, getLastSegment$1 as tn, StringPropertyPreview as tr, useHistory as tt, fromSerializableCollectionConfig as u, CollectionTableBinding as un, UrlComponentPreview as ur, getChanges as ut, LiveSchemaError as v, useSideDialogsController as vn, isSelfLabellingProperty as vr, resetPasswordAction as vt, EntityForm as w, LabelWithIconAndTooltip as wn, getIconForWidget as wr, CollectionViewActions as wt, createLiveSchemaClient as x, ArrayCustomShapedFieldBinding as xn, getBracketNotation as xr, EntityViewBinding as xt, SchemaChangeCancelled as y, SideDialogsControllerContext as yn, spanClass as yr, CreationResultDialog as yt, MarkdownEditorFieldBinding as z, ArrayOfStorageComponentsPreview as zn, convertFileToJson as zt };
25080
25094
 
25081
- //# sourceMappingURL=util-B0X3EhKm.js.map
25095
+ //# sourceMappingURL=util-4oPxPkbp.js.map