@firecms/core 3.0.0-canary.160 → 3.0.0-canary.162
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/index.es.js +143 -147
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +142 -146
- package/dist/index.umd.js.map +1 -1
- package/dist/util/icon_synonyms.d.ts +0 -1
- package/package.json +5 -5
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +3 -9
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +2 -2
- package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +2 -2
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +2 -2
- package/src/components/EntityPreview.tsx +20 -11
- package/src/components/HomePage/FavouritesView.tsx +6 -11
- package/src/components/HomePage/NavigationCardBinding.tsx +4 -9
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +4 -4
- package/src/core/DefaultDrawer.tsx +7 -6
- package/src/core/EntityEditView.tsx +2 -3
- package/src/core/field_configs.tsx +2 -2
- package/src/form/field_bindings/SelectFieldBinding.tsx +2 -2
- package/src/form/field_bindings/TextFieldBinding.tsx +2 -2
- package/src/hooks/useBuildNavigationController.tsx +1 -0
- package/src/preview/components/ImagePreview.tsx +0 -1
- package/src/preview/property_previews/MapPropertyPreview.tsx +1 -1
- package/src/util/icon_list.ts +1 -0
- package/src/util/icon_synonyms.ts +0 -1
- package/src/util/references.ts +8 -2
package/dist/index.umd.js
CHANGED
|
@@ -2276,7 +2276,6 @@
|
|
|
2276
2276
|
picture_in_picture_alt: "cropped overlap photo position shape",
|
|
2277
2277
|
pie_chart: "analytics bars data diagram infographic measure metrics statistics tracking",
|
|
2278
2278
|
pie_chart_outline: "analytics bars data diagram infographic measure metrics statistics tracking",
|
|
2279
|
-
pie_chart_outlined: "graph",
|
|
2280
2279
|
pin: "1 2 3 digit key login logout number password pattern security star symbol unlock",
|
|
2281
2280
|
pinch: "arrows compress direction finger grasp hand navigation nip squeeze tweak",
|
|
2282
2281
|
pin_drop: "destination direction gps location maps navigation place stop",
|
|
@@ -2916,6 +2915,7 @@
|
|
|
2916
2915
|
const iconsSearch = new Fuse(map, {
|
|
2917
2916
|
isCaseSensitive: false,
|
|
2918
2917
|
shouldSort: true,
|
|
2918
|
+
ignoreLocation: true,
|
|
2919
2919
|
distance: 0,
|
|
2920
2920
|
keys: ["key", "synonyms"]
|
|
2921
2921
|
});
|
|
@@ -3175,6 +3175,12 @@
|
|
|
3175
3175
|
return key;
|
|
3176
3176
|
}
|
|
3177
3177
|
}
|
|
3178
|
+
for (const key in collection.properties) {
|
|
3179
|
+
const property = collection.properties[key];
|
|
3180
|
+
if (property.dataType === "array" && property.of?.dataType === "string" && property.of.storage?.acceptedFiles?.includes("image/*")) {
|
|
3181
|
+
return key;
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3178
3184
|
return void 0;
|
|
3179
3185
|
}
|
|
3180
3186
|
function flattenObject(obj, parentKey = "") {
|
|
@@ -5163,7 +5169,7 @@
|
|
|
5163
5169
|
showError && /* @__PURE__ */ jsxRuntime.jsx(ErrorTooltip, { side: "left", title: showError.message, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", style: {
|
|
5164
5170
|
width: 32,
|
|
5165
5171
|
height: 32
|
|
5166
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
5172
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx(ui.ErrorIcon, { size: "small", color: "error" }) }) })
|
|
5167
5173
|
] }) });
|
|
5168
5174
|
}
|
|
5169
5175
|
const dropZoneClasses$1 = "max-w-full box-border relative pt-[2px] items-center border border-transparent outline-none rounded-md duration-200 ease-[cubic-bezier(0.4,0,0.2,1)] focus:border-primary-solid";
|
|
@@ -5247,7 +5253,7 @@
|
|
|
5247
5253
|
return t1;
|
|
5248
5254
|
}
|
|
5249
5255
|
function StorageUpload$1(t0) {
|
|
5250
|
-
const $ = reactCompilerRuntime.c(
|
|
5256
|
+
const $ = reactCompilerRuntime.c(64);
|
|
5251
5257
|
const {
|
|
5252
5258
|
property,
|
|
5253
5259
|
internalValue,
|
|
@@ -5264,8 +5270,7 @@
|
|
|
5264
5270
|
onFileUploadComplete,
|
|
5265
5271
|
storagePathBuilder
|
|
5266
5272
|
} = t0;
|
|
5267
|
-
const
|
|
5268
|
-
const previewSize = multipleFilesSupported && previewSizeInput === "medium" ? "small" : previewSizeInput;
|
|
5273
|
+
const previewSize = previewSizeInput;
|
|
5269
5274
|
if (multipleFilesSupported) {
|
|
5270
5275
|
const arrayProperty = property;
|
|
5271
5276
|
if (Array.isArray(arrayProperty.of)) {
|
|
@@ -5378,58 +5383,43 @@
|
|
|
5378
5383
|
t5 = t6;
|
|
5379
5384
|
const imageSize = t5;
|
|
5380
5385
|
const showError = !disabled && error;
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
$[17] =
|
|
5389
|
-
$[18] =
|
|
5390
|
-
$[19] =
|
|
5391
|
-
|
|
5392
|
-
t7 = $[17];
|
|
5393
|
-
t8 = $[18];
|
|
5394
|
-
t9 = $[19];
|
|
5395
|
-
}
|
|
5396
|
-
const t10 = `justify-${hasValue ? "start" : "center"}`;
|
|
5397
|
-
const t11 = isDragActive ? activeDropClasses$1 : "";
|
|
5398
|
-
const t12 = isDragAccept ? acceptDropClasses$1 : "";
|
|
5399
|
-
const t13 = isDragReject ? rejectDropClasses$1 : "";
|
|
5400
|
-
let t14;
|
|
5401
|
-
if ($[20] !== t10 || $[21] !== t11 || $[22] !== t12 || $[23] !== t13) {
|
|
5402
|
-
t14 = ui.cls(dropZoneClasses$1, "relative w-full h-full flex", t10, t11, t12, t13);
|
|
5403
|
-
$[20] = t10;
|
|
5386
|
+
const t7 = `justify-${hasValue ? "start" : "center"}`;
|
|
5387
|
+
const t8 = isDragActive ? activeDropClasses$1 : "";
|
|
5388
|
+
const t9 = isDragAccept ? acceptDropClasses$1 : "";
|
|
5389
|
+
const t10 = isDragReject ? rejectDropClasses$1 : "";
|
|
5390
|
+
let t11;
|
|
5391
|
+
if ($[17] !== t10 || $[18] !== t7 || $[19] !== t8 || $[20] !== t9) {
|
|
5392
|
+
t11 = ui.cls(dropZoneClasses$1, "relative w-full h-full flex", t7, t8, t9, t10);
|
|
5393
|
+
$[17] = t10;
|
|
5394
|
+
$[18] = t7;
|
|
5395
|
+
$[19] = t8;
|
|
5396
|
+
$[20] = t9;
|
|
5404
5397
|
$[21] = t11;
|
|
5405
|
-
$[22] = t12;
|
|
5406
|
-
$[23] = t13;
|
|
5407
|
-
$[24] = t14;
|
|
5408
5398
|
} else {
|
|
5409
|
-
|
|
5399
|
+
t11 = $[21];
|
|
5410
5400
|
}
|
|
5411
|
-
let
|
|
5412
|
-
if ($[
|
|
5413
|
-
|
|
5414
|
-
$[
|
|
5415
|
-
$[
|
|
5401
|
+
let t12;
|
|
5402
|
+
if ($[22] !== getInputProps) {
|
|
5403
|
+
t12 = getInputProps();
|
|
5404
|
+
$[22] = getInputProps;
|
|
5405
|
+
$[23] = t12;
|
|
5416
5406
|
} else {
|
|
5417
|
-
|
|
5407
|
+
t12 = $[23];
|
|
5418
5408
|
}
|
|
5419
|
-
let
|
|
5420
|
-
if ($[
|
|
5421
|
-
|
|
5422
|
-
$[
|
|
5423
|
-
$[
|
|
5424
|
-
$[
|
|
5409
|
+
let t13;
|
|
5410
|
+
if ($[24] !== autoFocus || $[25] !== t12) {
|
|
5411
|
+
t13 = /* @__PURE__ */ jsxRuntime.jsx("input", { autoFocus, ...t12 });
|
|
5412
|
+
$[24] = autoFocus;
|
|
5413
|
+
$[25] = t12;
|
|
5414
|
+
$[26] = t13;
|
|
5425
5415
|
} else {
|
|
5426
|
-
|
|
5416
|
+
t13 = $[26];
|
|
5427
5417
|
}
|
|
5428
|
-
let
|
|
5429
|
-
if ($[
|
|
5430
|
-
let
|
|
5431
|
-
if ($[
|
|
5432
|
-
|
|
5418
|
+
let t14;
|
|
5419
|
+
if ($[27] !== entity || $[28] !== imageSize || $[29] !== internalValue || $[30] !== metadata || $[31] !== onFileUploadComplete || $[32] !== previewSize || $[33] !== renderProperty || $[34] !== storagePathBuilder) {
|
|
5420
|
+
let t152;
|
|
5421
|
+
if ($[36] !== entity || $[37] !== imageSize || $[38] !== metadata || $[39] !== onFileUploadComplete || $[40] !== previewSize || $[41] !== renderProperty || $[42] !== storagePathBuilder) {
|
|
5422
|
+
t152 = (entry, index) => {
|
|
5433
5423
|
let child;
|
|
5434
5424
|
if (entry.storagePathOrDownloadUrl) {
|
|
5435
5425
|
child = /* @__PURE__ */ jsxRuntime.jsx(TableStorageItemPreview, { property: renderProperty, value: entry.storagePathOrDownloadUrl, entity, size: previewSize }, `storage_preview_${index}`);
|
|
@@ -5440,87 +5430,87 @@
|
|
|
5440
5430
|
}
|
|
5441
5431
|
return child;
|
|
5442
5432
|
};
|
|
5443
|
-
$[
|
|
5444
|
-
$[
|
|
5445
|
-
$[
|
|
5446
|
-
$[
|
|
5447
|
-
$[
|
|
5448
|
-
$[
|
|
5449
|
-
$[
|
|
5450
|
-
$[
|
|
5433
|
+
$[36] = entity;
|
|
5434
|
+
$[37] = imageSize;
|
|
5435
|
+
$[38] = metadata;
|
|
5436
|
+
$[39] = onFileUploadComplete;
|
|
5437
|
+
$[40] = previewSize;
|
|
5438
|
+
$[41] = renderProperty;
|
|
5439
|
+
$[42] = storagePathBuilder;
|
|
5440
|
+
$[43] = t152;
|
|
5451
5441
|
} else {
|
|
5452
|
-
|
|
5442
|
+
t152 = $[43];
|
|
5453
5443
|
}
|
|
5454
|
-
|
|
5455
|
-
$[
|
|
5456
|
-
$[
|
|
5457
|
-
$[
|
|
5458
|
-
$[
|
|
5459
|
-
$[
|
|
5460
|
-
$[
|
|
5461
|
-
$[
|
|
5462
|
-
$[
|
|
5463
|
-
$[
|
|
5444
|
+
t14 = internalValue.map(t152);
|
|
5445
|
+
$[27] = entity;
|
|
5446
|
+
$[28] = imageSize;
|
|
5447
|
+
$[29] = internalValue;
|
|
5448
|
+
$[30] = metadata;
|
|
5449
|
+
$[31] = onFileUploadComplete;
|
|
5450
|
+
$[32] = previewSize;
|
|
5451
|
+
$[33] = renderProperty;
|
|
5452
|
+
$[34] = storagePathBuilder;
|
|
5453
|
+
$[35] = t14;
|
|
5464
5454
|
} else {
|
|
5465
|
-
|
|
5455
|
+
t14 = $[35];
|
|
5466
5456
|
}
|
|
5467
|
-
let
|
|
5468
|
-
if ($[
|
|
5469
|
-
|
|
5470
|
-
$[
|
|
5471
|
-
$[
|
|
5472
|
-
$[
|
|
5473
|
-
$[
|
|
5457
|
+
let t15;
|
|
5458
|
+
if ($[44] !== helpText || $[45] !== internalValue || $[46] !== open) {
|
|
5459
|
+
t15 = !internalValue && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow m-2 max-w-[200px]", onClick: open, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { className: "text-surface-400 dark:text-surface-600", variant: "body2", align: "center", children: helpText }) });
|
|
5460
|
+
$[44] = helpText;
|
|
5461
|
+
$[45] = internalValue;
|
|
5462
|
+
$[46] = open;
|
|
5463
|
+
$[47] = t15;
|
|
5474
5464
|
} else {
|
|
5475
|
-
|
|
5465
|
+
t15 = $[47];
|
|
5476
5466
|
}
|
|
5477
|
-
const
|
|
5478
|
-
let
|
|
5479
|
-
if ($[
|
|
5480
|
-
|
|
5481
|
-
$[
|
|
5467
|
+
const t16 = !disabled ? openPopup : void 0;
|
|
5468
|
+
let t17;
|
|
5469
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5470
|
+
t17 = /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-surface-500" });
|
|
5471
|
+
$[48] = t17;
|
|
5482
5472
|
} else {
|
|
5483
|
-
|
|
5473
|
+
t17 = $[48];
|
|
5484
5474
|
}
|
|
5485
|
-
let
|
|
5486
|
-
if ($[
|
|
5487
|
-
|
|
5488
|
-
$[
|
|
5489
|
-
$[
|
|
5475
|
+
let t18;
|
|
5476
|
+
if ($[49] !== open) {
|
|
5477
|
+
t18 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { color: "inherit", size: "small", onClick: open, children: t17 });
|
|
5478
|
+
$[49] = open;
|
|
5479
|
+
$[50] = t18;
|
|
5490
5480
|
} else {
|
|
5491
|
-
|
|
5481
|
+
t18 = $[50];
|
|
5492
5482
|
}
|
|
5493
|
-
let
|
|
5494
|
-
if ($[
|
|
5495
|
-
|
|
5496
|
-
$[
|
|
5497
|
-
$[
|
|
5498
|
-
$[
|
|
5499
|
-
$[
|
|
5500
|
-
$[
|
|
5501
|
-
$[
|
|
5483
|
+
let t19;
|
|
5484
|
+
if ($[51] !== disabled || $[52] !== selected || $[53] !== showError || $[54] !== t16 || $[55] !== t18) {
|
|
5485
|
+
t19 = /* @__PURE__ */ jsxRuntime.jsx(EntityTableCellActions, { showError, disabled, showExpandIcon: true, selected, openPopup: t16, children: t18 });
|
|
5486
|
+
$[51] = disabled;
|
|
5487
|
+
$[52] = selected;
|
|
5488
|
+
$[53] = showError;
|
|
5489
|
+
$[54] = t16;
|
|
5490
|
+
$[55] = t18;
|
|
5491
|
+
$[56] = t19;
|
|
5502
5492
|
} else {
|
|
5503
|
-
|
|
5493
|
+
t19 = $[56];
|
|
5504
5494
|
}
|
|
5505
|
-
let
|
|
5506
|
-
if ($[
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5495
|
+
let t20;
|
|
5496
|
+
if ($[57] !== rootProps || $[58] !== t11 || $[59] !== t13 || $[60] !== t14 || $[61] !== t15 || $[62] !== t19) {
|
|
5497
|
+
t20 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rootProps, className: t11, children: [
|
|
5498
|
+
t13,
|
|
5499
|
+
t14,
|
|
5500
|
+
t15,
|
|
5501
|
+
t19
|
|
5512
5502
|
] });
|
|
5513
|
-
$[
|
|
5514
|
-
$[
|
|
5515
|
-
$[
|
|
5516
|
-
$[
|
|
5517
|
-
$[
|
|
5518
|
-
$[
|
|
5519
|
-
$[
|
|
5503
|
+
$[57] = rootProps;
|
|
5504
|
+
$[58] = t11;
|
|
5505
|
+
$[59] = t13;
|
|
5506
|
+
$[60] = t14;
|
|
5507
|
+
$[61] = t15;
|
|
5508
|
+
$[62] = t19;
|
|
5509
|
+
$[63] = t20;
|
|
5520
5510
|
} else {
|
|
5521
|
-
|
|
5511
|
+
t20 = $[63];
|
|
5522
5512
|
}
|
|
5523
|
-
return
|
|
5513
|
+
return t20;
|
|
5524
5514
|
}
|
|
5525
5515
|
function _temp2$a(a, b) {
|
|
5526
5516
|
return {
|
|
@@ -5590,21 +5580,24 @@
|
|
|
5590
5580
|
const titleProperty = getEntityTitlePropertyKey(resolvedCollection, customizationController.propertyConfigs);
|
|
5591
5581
|
const imagePropertyKey = getEntityImagePreviewPropertyKey(resolvedCollection);
|
|
5592
5582
|
const imageProperty = imagePropertyKey ? resolvedCollection.properties[imagePropertyKey] : void 0;
|
|
5583
|
+
const usedImageProperty = imageProperty && "of" in imageProperty ? imageProperty.of : imageProperty;
|
|
5593
5584
|
const restProperties = listProperties.filter((p) => p !== titleProperty && p !== imagePropertyKey);
|
|
5585
|
+
const imageValue = imagePropertyKey ? getValueInPath(entity.values, imagePropertyKey) : void 0;
|
|
5586
|
+
const usedImageValue = imageProperty !== void 0 ? "of" in imageProperty ? (imageValue ?? []).length > 0 ? imageValue[0] : void 0 : imageValue : void 0;
|
|
5594
5587
|
return /* @__PURE__ */ jsxRuntime.jsxs(EntityPreviewContainer, { onClick: disabled ? void 0 : onClick, hover: disabled ? void 0 : hover, size, children: [
|
|
5595
5588
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 ml-1 mr-2 shrink-0", size === "small" ? "my-0.5" : "m-2 self-start"), children: [
|
|
5596
|
-
|
|
5597
|
-
!
|
|
5589
|
+
usedImageProperty && usedImageValue && /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { property: usedImageProperty, propertyKey: imagePropertyKey, size: "small", value: usedImageValue }),
|
|
5590
|
+
(!usedImageProperty || !usedImageValue) && /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: collection, color: "primary", size, className: "m-auto p-1" })
|
|
5598
5591
|
] }),
|
|
5599
5592
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full m-1 shrink-1", style: {
|
|
5600
5593
|
"maxWidth": "calc(100% - 96px)"
|
|
5601
5594
|
}, children: [
|
|
5602
5595
|
size !== "small" && includeId && (entity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "block whitespace-nowrap overflow-hidden truncate", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", color: "disabled", className: "font-mono", children: entity.id }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, {})),
|
|
5603
|
-
titleProperty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-0.5 text-sm font-medium", children: entity ? /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { propertyKey: titleProperty, value: getValueInPath(entity.values, titleProperty), property: resolvedCollection.properties[titleProperty], size: "large" }) : /* @__PURE__ */ jsxRuntime.jsx(SkeletonPropertyComponent, { property: resolvedCollection.properties[titleProperty], size: "large" }) }),
|
|
5596
|
+
titleProperty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate my-0.5 text-sm font-medium", children: entity ? /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { propertyKey: titleProperty, value: getValueInPath(entity.values, titleProperty), property: resolvedCollection.properties[titleProperty], size: "large" }) : /* @__PURE__ */ jsxRuntime.jsx(SkeletonPropertyComponent, { property: resolvedCollection.properties[titleProperty], size: "large" }) }),
|
|
5604
5597
|
restProperties && restProperties.map((key) => {
|
|
5605
5598
|
const childProperty = resolvedCollection.properties[key];
|
|
5606
5599
|
if (!childProperty) return null;
|
|
5607
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: restProperties.length > 1 ? "my-0.5" : "my-0", children: entity ? /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { propertyKey: key, value: getValueInPath(entity.values, key), property: childProperty, size: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(SkeletonPropertyComponent, { property: childProperty, size: "small" }) }, "ref_prev_" + key);
|
|
5600
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls("truncate", restProperties.length > 1 ? "my-0.5" : "my-0"), children: entity ? /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { propertyKey: key, value: getValueInPath(entity.values, key), property: childProperty, size: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(SkeletonPropertyComponent, { property: childProperty, size: "small" }) }, "ref_prev_" + key);
|
|
5608
5601
|
})
|
|
5609
5602
|
] }),
|
|
5610
5603
|
entity && includeEntityLink && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: `See details for ${entity.id}`, className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { color: "inherit", size: "medium", className: size !== "small" ? "self-start" : "", onClick: (e) => {
|
|
@@ -5719,6 +5712,7 @@
|
|
|
5719
5712
|
}
|
|
5720
5713
|
return t9;
|
|
5721
5714
|
});
|
|
5715
|
+
EntityPreviewContainer.displayName = "EntityPreviewContainer";
|
|
5722
5716
|
function TableReferenceField(props) {
|
|
5723
5717
|
const $ = reactCompilerRuntime.c(9);
|
|
5724
5718
|
const customizationController = useCustomizationController();
|
|
@@ -6547,7 +6541,7 @@
|
|
|
6547
6541
|
}
|
|
6548
6542
|
let t24;
|
|
6549
6543
|
if ($[33] !== disabled || $[34] !== disabledTooltip || $[35] !== onHover) {
|
|
6550
|
-
t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
6544
|
+
t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(ui.DoNotDisturbOnIcon, { size: "smallest", color: "disabled", className: "text-surface-500" }) }) });
|
|
6551
6545
|
$[33] = disabled;
|
|
6552
6546
|
$[34] = disabledTooltip;
|
|
6553
6547
|
$[35] = onHover;
|
|
@@ -8355,7 +8349,7 @@
|
|
|
8355
8349
|
t7 = !enumValues && /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { type: dataType === "number" ? "number" : void 0, value: internalValue !== void 0 && internalValue != null ? String(internalValue) : "", onChange: (evt) => {
|
|
8356
8350
|
const val_0 = dataType === "number" ? parseFloat(evt.target.value) : evt.target.value;
|
|
8357
8351
|
updateFilter(operation, val_0);
|
|
8358
|
-
}, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: (e) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
8352
|
+
}, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: (e) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) }) });
|
|
8359
8353
|
$[20] = dataType;
|
|
8360
8354
|
$[21] = enumValues;
|
|
8361
8355
|
$[22] = internalValue;
|
|
@@ -8371,7 +8365,7 @@
|
|
|
8371
8365
|
if (value_1 !== "") {
|
|
8372
8366
|
updateFilter(operation, dataType === "number" ? parseInt(value_1) : value_1);
|
|
8373
8367
|
}
|
|
8374
|
-
}, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_0) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
8368
|
+
}, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_0) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) }), renderValue: (enumKey) => {
|
|
8375
8369
|
if (enumKey === null) {
|
|
8376
8370
|
return "Filter for null values";
|
|
8377
8371
|
}
|
|
@@ -8395,7 +8389,7 @@
|
|
|
8395
8389
|
if ($[34] !== dataType || $[35] !== enumValues || $[36] !== internalValue || $[37] !== multiple || $[38] !== name || $[39] !== operation || $[40] !== updateFilter) {
|
|
8396
8390
|
t9 = enumValues && multiple && /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelect, { position: "item-aligned", value: Array.isArray(internalValue) ? internalValue.map(_temp3$3) : [], onValueChange: (value_2) => {
|
|
8397
8391
|
updateFilter(operation, dataType === "number" ? value_2.map(_temp4$2) : value_2);
|
|
8398
|
-
}, multiple, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_2) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
8392
|
+
}, multiple, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_2) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) }), children: enumValues.map((enumConfig_0) => /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelectItem, { value: String(enumConfig_0.id), children: /* @__PURE__ */ jsxRuntime.jsx(EnumValuesChip, { enumKey: String(enumConfig_0.id), enumValues, size: "small" }) }, `select_value_${name}_${enumConfig_0.id}`)) });
|
|
8399
8393
|
$[34] = dataType;
|
|
8400
8394
|
$[35] = enumValues;
|
|
8401
8395
|
$[36] = internalValue;
|
|
@@ -10092,7 +10086,7 @@
|
|
|
10092
10086
|
} else {
|
|
10093
10087
|
userConfigurationPersistence.setFavouritePaths([...userConfigurationPersistence.favouritePaths, path]);
|
|
10094
10088
|
}
|
|
10095
|
-
}, children:
|
|
10089
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx(ui.StarIcon, { size: 18, className: favourite ? "text-secondary" : "text-surface-400 dark:text-surface-500" }) }, "favourite")] : [];
|
|
10096
10090
|
if (customizationController.plugins && collection) {
|
|
10097
10091
|
let t62;
|
|
10098
10092
|
if ($[14] !== collection || $[15] !== context || $[16] !== path) {
|
|
@@ -10216,27 +10210,28 @@
|
|
|
10216
10210
|
} else {
|
|
10217
10211
|
t3 = $[9];
|
|
10218
10212
|
}
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
$[
|
|
10224
|
-
$[
|
|
10213
|
+
const t4 = favourite ? "text-secondary" : "text-surface-400 dark:text-surface-500";
|
|
10214
|
+
let t5;
|
|
10215
|
+
if ($[10] !== onIconClick || $[11] !== t4) {
|
|
10216
|
+
t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.StarIcon, { onClick: onIconClick, size: 18, className: t4 });
|
|
10217
|
+
$[10] = onIconClick;
|
|
10218
|
+
$[11] = t4;
|
|
10219
|
+
$[12] = t5;
|
|
10225
10220
|
} else {
|
|
10226
|
-
|
|
10221
|
+
t5 = $[12];
|
|
10227
10222
|
}
|
|
10228
|
-
let
|
|
10229
|
-
if ($[13] !== entry.name || $[14] !== entry.path || $[15] !== t3 || $[16] !==
|
|
10230
|
-
|
|
10223
|
+
let t6;
|
|
10224
|
+
if ($[13] !== entry.name || $[14] !== entry.path || $[15] !== t3 || $[16] !== t5) {
|
|
10225
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { onClick: t3, icon: t5, children: entry.name }, entry.path);
|
|
10231
10226
|
$[13] = entry.name;
|
|
10232
10227
|
$[14] = entry.path;
|
|
10233
10228
|
$[15] = t3;
|
|
10234
|
-
$[16] =
|
|
10235
|
-
$[17] =
|
|
10229
|
+
$[16] = t5;
|
|
10230
|
+
$[17] = t6;
|
|
10236
10231
|
} else {
|
|
10237
|
-
|
|
10232
|
+
t6 = $[17];
|
|
10238
10233
|
}
|
|
10239
|
-
return
|
|
10234
|
+
return t6;
|
|
10240
10235
|
}
|
|
10241
10236
|
function FavouritesView(t0) {
|
|
10242
10237
|
const $ = reactCompilerRuntime.c(17);
|
|
@@ -11580,7 +11575,7 @@
|
|
|
11580
11575
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
11581
11576
|
/* @__PURE__ */ jsxRuntime.jsx(LabelWithIconAndTooltip, { propertyKey: key_0, icon: /* @__PURE__ */ jsxRuntime.jsx(ui.NotesIcon, { size: "small" }), title: additionalField.name, className: "text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
|
|
11582
11577
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls(ui.paperMixin, "min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar"), children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: child }) })
|
|
11583
|
-
] });
|
|
11578
|
+
] }, `additional_${key_0}`);
|
|
11584
11579
|
}
|
|
11585
11580
|
console.warn(`Property ${key_0} not found in collection ${resolvedCollection.name} in properties or additional fields. Skipping.`);
|
|
11586
11581
|
return null;
|
|
@@ -11993,7 +11988,7 @@
|
|
|
11993
11988
|
}, children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: (event) => {
|
|
11994
11989
|
event.stopPropagation();
|
|
11995
11990
|
onClose();
|
|
11996
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
11991
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { className: "text-white", size: "small" }) }) })
|
|
11997
11992
|
] })
|
|
11998
11993
|
] }, `draggable_${propertyKey}_${entityId}_${open}`);
|
|
11999
11994
|
return /* @__PURE__ */ jsxRuntime.jsx(Portal__namespace.Root, { asChild: true, container, children: /* @__PURE__ */ jsxRuntime.jsx(formex.Formex, { value: formex$1, children: draggable }) });
|
|
@@ -13751,6 +13746,7 @@
|
|
|
13751
13746
|
let shouldUpdateTopLevelNav = false;
|
|
13752
13747
|
if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections)) {
|
|
13753
13748
|
collectionsRef.current = resolvedCollections;
|
|
13749
|
+
console.log("Collections have changed", resolvedCollections);
|
|
13754
13750
|
shouldUpdateTopLevelNav = true;
|
|
13755
13751
|
}
|
|
13756
13752
|
if (collectionsRef.current === void 0) {
|
|
@@ -15874,7 +15870,7 @@
|
|
|
15874
15870
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls(ui.defaultBorderMixin, "last:border-b-0 border-b"), children: [
|
|
15875
15871
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row pt-0.5 pb-0.5 gap-2", children: [
|
|
15876
15872
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-[140px] w-[25%] py-1", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", className: "font-mono break-words", color: "secondary", children: key }) }, `table-cell-title-${key}-${key}`),
|
|
15877
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow max-w-[75%]", children: childValue &&
|
|
15873
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow max-w-[75%]", children: childValue && /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: childValue.toString() }) }) })
|
|
15878
15874
|
] }),
|
|
15879
15875
|
typeof childValue === "object" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls(ui.defaultBorderMixin, "border-l pl-4"), children: /* @__PURE__ */ jsxRuntime.jsx(KeyValuePreview, { value: childValue }) })
|
|
15880
15876
|
] }, `map_preview_table_${key}}`);
|
|
@@ -16487,7 +16483,7 @@
|
|
|
16487
16483
|
}
|
|
16488
16484
|
let t13;
|
|
16489
16485
|
if ($[20] !== handleClearClick || $[21] !== property.clearable) {
|
|
16490
|
-
t13 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
16486
|
+
t13 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) });
|
|
16491
16487
|
$[20] = handleClearClick;
|
|
16492
16488
|
$[21] = property.clearable;
|
|
16493
16489
|
$[22] = t13;
|
|
@@ -17332,7 +17328,7 @@
|
|
|
17332
17328
|
const t7 = inputType;
|
|
17333
17329
|
let t8;
|
|
17334
17330
|
if ($[18] !== handleClearClick || $[19] !== property.clearable) {
|
|
17335
|
-
t8 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
17331
|
+
t8 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) });
|
|
17336
17332
|
$[18] = handleClearClick;
|
|
17337
17333
|
$[19] = property.clearable;
|
|
17338
17334
|
$[20] = t8;
|
|
@@ -19886,7 +19882,7 @@
|
|
|
19886
19882
|
key: "email",
|
|
19887
19883
|
name: "Email",
|
|
19888
19884
|
description: "Text with email validation",
|
|
19889
|
-
Icon: ui.
|
|
19885
|
+
Icon: ui.MailIcon,
|
|
19890
19886
|
color: "#154fb3",
|
|
19891
19887
|
property: {
|
|
19892
19888
|
dataType: "string",
|
|
@@ -22386,7 +22382,7 @@
|
|
|
22386
22382
|
}
|
|
22387
22383
|
let t4;
|
|
22388
22384
|
if ($[3] !== drawerOpen || $[4] !== logo) {
|
|
22389
|
-
t4 = logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: "Logo", className: ui.cls("max-w-full max-h-full", drawerOpen
|
|
22385
|
+
t4 = logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: "Logo", className: ui.cls("max-w-full max-h-full transition-all", drawerOpen ? "w-[96px] h-[96px]" : "w-[32px] h-[32px]") }) : /* @__PURE__ */ jsxRuntime.jsx(FireCMSLogo, {});
|
|
22390
22386
|
$[3] = drawerOpen;
|
|
22391
22387
|
$[4] = logo;
|
|
22392
22388
|
$[5] = t4;
|