@firecms/core 3.0.0-tw4.6 → 3.0.1
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/README.md +1 -1
- package/dist/components/VirtualTable/VirtualTable.performance.test.d.ts +1 -0
- package/dist/form/components/LocalChangesMenu.d.ts +2 -2
- package/dist/form/components/StorageUploadProgress.d.ts +1 -1
- package/dist/index.es.js +218 -238
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +218 -238
- package/dist/index.umd.js.map +1 -1
- package/dist/types/entities.d.ts +1 -0
- package/dist/types/properties.d.ts +9 -0
- package/dist/types/storage.d.ts +8 -0
- package/dist/util/useStorageUploadController.d.ts +1 -1
- package/package.json +6 -5
- package/src/app/Scaffold.tsx +1 -1
- package/src/components/ArrayContainer.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
- package/src/components/EntityPreview.tsx +1 -1
- package/src/components/ReferenceWidget.tsx +1 -1
- package/src/components/SelectableTable/SelectableTable.tsx +1 -1
- package/src/components/VirtualTable/VirtualTable.performance.test.tsx +386 -0
- package/src/components/VirtualTable/VirtualTable.tsx +3 -3
- package/src/components/VirtualTable/VirtualTableHeader.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
- package/src/core/DefaultDrawer.tsx +1 -1
- package/src/core/DrawerNavigationItem.tsx +3 -4
- package/src/form/EntityForm.tsx +3 -10
- package/src/form/components/LocalChangesMenu.tsx +6 -6
- package/src/form/components/StorageUploadProgress.tsx +4 -3
- package/src/preview/components/EmptyValue.tsx +1 -1
- package/src/preview/components/ReferencePreview.tsx +6 -1
- package/src/types/entities.ts +10 -0
- package/src/types/properties.ts +10 -0
- package/src/types/storage.ts +9 -0
- package/src/util/useStorageUploadController.tsx +11 -1
package/dist/index.umd.js
CHANGED
|
@@ -220,6 +220,15 @@
|
|
|
220
220
|
get pathWithId() {
|
|
221
221
|
return `${this.path}/${this.id}`;
|
|
222
222
|
}
|
|
223
|
+
get pathWithIdAndDatabase() {
|
|
224
|
+
if (this.databaseId) {
|
|
225
|
+
if (this.databaseId === "(default)") {
|
|
226
|
+
return this.pathWithId;
|
|
227
|
+
}
|
|
228
|
+
return `${this.databaseId}:::${this.path}/${this.id}`;
|
|
229
|
+
}
|
|
230
|
+
return this.pathWithId;
|
|
231
|
+
}
|
|
223
232
|
isEntityReference() {
|
|
224
233
|
return true;
|
|
225
234
|
}
|
|
@@ -3272,7 +3281,7 @@
|
|
|
3272
3281
|
const size = t1 === void 0 ? "medium" : t1;
|
|
3273
3282
|
if (!collectionOrView) {
|
|
3274
3283
|
let t22;
|
|
3275
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3284
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3276
3285
|
t22 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
3277
3286
|
$[0] = t22;
|
|
3278
3287
|
} else {
|
|
@@ -3992,7 +4001,7 @@
|
|
|
3992
4001
|
children
|
|
3993
4002
|
} = t0;
|
|
3994
4003
|
let t1;
|
|
3995
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4004
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3996
4005
|
t1 = [];
|
|
3997
4006
|
$[0] = t1;
|
|
3998
4007
|
} else {
|
|
@@ -4001,7 +4010,7 @@
|
|
|
4001
4010
|
const [dialogEntries, setDialogEntries] = React.useState(t1);
|
|
4002
4011
|
const dialogEntriesRef = React.useRef(dialogEntries);
|
|
4003
4012
|
let t2;
|
|
4004
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4013
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4005
4014
|
t2 = (newPanels) => {
|
|
4006
4015
|
dialogEntriesRef.current = newPanels;
|
|
4007
4016
|
setDialogEntries(newPanels);
|
|
@@ -4027,7 +4036,7 @@
|
|
|
4027
4036
|
}
|
|
4028
4037
|
const close = t3;
|
|
4029
4038
|
let t4;
|
|
4030
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4039
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4031
4040
|
t4 = (dialogEntry) => {
|
|
4032
4041
|
const updatedPanels_0 = [...dialogEntriesRef.current, dialogEntry];
|
|
4033
4042
|
updateDialogEntries(updatedPanels_0);
|
|
@@ -4172,7 +4181,7 @@
|
|
|
4172
4181
|
const currentSort = sortBy ? sortBy[1] : void 0;
|
|
4173
4182
|
const context = useFireCMSContext();
|
|
4174
4183
|
let t2;
|
|
4175
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4184
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4176
4185
|
t2 = [];
|
|
4177
4186
|
$[3] = t2;
|
|
4178
4187
|
} else {
|
|
@@ -4648,7 +4657,7 @@
|
|
|
4648
4657
|
React.useEffect(t1, t2);
|
|
4649
4658
|
if (!context.navigation) {
|
|
4650
4659
|
let t32;
|
|
4651
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4660
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4652
4661
|
t32 = {
|
|
4653
4662
|
dataLoading: true
|
|
4654
4663
|
};
|
|
@@ -4770,7 +4779,7 @@
|
|
|
4770
4779
|
const [isLargeLayout, setIsLargeLayout] = React.useState(isLargeLayoutGlobal);
|
|
4771
4780
|
let t0;
|
|
4772
4781
|
let t1;
|
|
4773
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4782
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4774
4783
|
t0 = () => {
|
|
4775
4784
|
const listener = (newIsLargeLayout) => {
|
|
4776
4785
|
setIsLargeLayout(newIsLargeLayout);
|
|
@@ -4862,7 +4871,7 @@
|
|
|
4862
4871
|
const component = error instanceof Error ? error.message : error;
|
|
4863
4872
|
console.warn("ErrorView", JSON.stringify(error));
|
|
4864
4873
|
let t1;
|
|
4865
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4874
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4866
4875
|
t1 = /* @__PURE__ */ jsxRuntime.jsx(ui.ErrorIcon, { className: "mx-2", size: "small", color: "error" });
|
|
4867
4876
|
$[0] = t1;
|
|
4868
4877
|
} else {
|
|
@@ -4917,8 +4926,8 @@
|
|
|
4917
4926
|
function EmptyValue() {
|
|
4918
4927
|
const $ = reactCompilerRuntime.c(1);
|
|
4919
4928
|
let t0;
|
|
4920
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4921
|
-
t0 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30
|
|
4929
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4930
|
+
t0 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block" });
|
|
4922
4931
|
$[0] = t0;
|
|
4923
4932
|
} else {
|
|
4924
4933
|
t0 = $[0];
|
|
@@ -4994,7 +5003,7 @@
|
|
|
4994
5003
|
return t52;
|
|
4995
5004
|
}
|
|
4996
5005
|
let t3;
|
|
4997
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5006
|
+
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
4998
5007
|
t3 = {
|
|
4999
5008
|
maxWidth: "100%",
|
|
5000
5009
|
maxHeight: "100%"
|
|
@@ -5037,7 +5046,7 @@
|
|
|
5037
5046
|
t7 = $[14];
|
|
5038
5047
|
}
|
|
5039
5048
|
let t8;
|
|
5040
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5049
|
+
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5041
5050
|
t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.OpenInNewIcon, { className: "text-surface-700 dark:text-surface-300", size: "smallest" });
|
|
5042
5051
|
$[15] = t8;
|
|
5043
5052
|
} else {
|
|
@@ -5095,7 +5104,7 @@
|
|
|
5095
5104
|
if (!previewType) {
|
|
5096
5105
|
if (!url || !url.trim()) {
|
|
5097
5106
|
let t22;
|
|
5098
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5107
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5099
5108
|
t22 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
5100
5109
|
$[0] = t22;
|
|
5101
5110
|
} else {
|
|
@@ -5104,7 +5113,7 @@
|
|
|
5104
5113
|
return t22;
|
|
5105
5114
|
}
|
|
5106
5115
|
let t2;
|
|
5107
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5116
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5108
5117
|
t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.OpenInNewIcon, { size: "small" });
|
|
5109
5118
|
$[1] = t2;
|
|
5110
5119
|
} else {
|
|
@@ -5137,7 +5146,7 @@
|
|
|
5137
5146
|
} else {
|
|
5138
5147
|
if (previewType === "audio") {
|
|
5139
5148
|
let t2;
|
|
5140
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5149
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5141
5150
|
t2 = /* @__PURE__ */ jsxRuntime.jsx("code", { children: "audio" });
|
|
5142
5151
|
$[7] = t2;
|
|
5143
5152
|
} else {
|
|
@@ -5199,7 +5208,7 @@
|
|
|
5199
5208
|
t4 = $[20];
|
|
5200
5209
|
}
|
|
5201
5210
|
let t5;
|
|
5202
|
-
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5211
|
+
if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5203
5212
|
t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-surface-700 dark:text-surface-300" });
|
|
5204
5213
|
$[21] = t5;
|
|
5205
5214
|
} else {
|
|
@@ -5361,7 +5370,7 @@
|
|
|
5361
5370
|
content = t1;
|
|
5362
5371
|
} else {
|
|
5363
5372
|
let t1;
|
|
5364
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5373
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5365
5374
|
t1 = renderSkeletonText();
|
|
5366
5375
|
$[5] = t1;
|
|
5367
5376
|
} else {
|
|
@@ -5412,7 +5421,7 @@
|
|
|
5412
5421
|
if (arrayProperty.of.dataType === "string") {
|
|
5413
5422
|
if (arrayProperty.of.enumValues) {
|
|
5414
5423
|
let t1;
|
|
5415
|
-
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5424
|
+
if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5416
5425
|
t1 = renderArrayEnumTableCell();
|
|
5417
5426
|
$[14] = t1;
|
|
5418
5427
|
} else {
|
|
@@ -5432,7 +5441,7 @@
|
|
|
5432
5441
|
content = t1;
|
|
5433
5442
|
} else {
|
|
5434
5443
|
let t1;
|
|
5435
|
-
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5444
|
+
if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5436
5445
|
t1 = renderArrayOfStrings();
|
|
5437
5446
|
$[17] = t1;
|
|
5438
5447
|
} else {
|
|
@@ -5471,7 +5480,7 @@
|
|
|
5471
5480
|
} else {
|
|
5472
5481
|
if (property.dataType === "date") {
|
|
5473
5482
|
let t1;
|
|
5474
|
-
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5483
|
+
if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5475
5484
|
t1 = renderSkeletonText();
|
|
5476
5485
|
$[23] = t1;
|
|
5477
5486
|
} else {
|
|
@@ -5481,7 +5490,7 @@
|
|
|
5481
5490
|
} else {
|
|
5482
5491
|
if (property.dataType === "reference") {
|
|
5483
5492
|
let t1;
|
|
5484
|
-
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5493
|
+
if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5485
5494
|
t1 = renderReference();
|
|
5486
5495
|
$[24] = t1;
|
|
5487
5496
|
} else {
|
|
@@ -5491,7 +5500,7 @@
|
|
|
5491
5500
|
} else {
|
|
5492
5501
|
if (property.dataType === "boolean") {
|
|
5493
5502
|
let t1;
|
|
5494
|
-
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5503
|
+
if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5495
5504
|
t1 = renderSkeletonText();
|
|
5496
5505
|
$[25] = t1;
|
|
5497
5506
|
} else {
|
|
@@ -5500,7 +5509,7 @@
|
|
|
5500
5509
|
content = t1;
|
|
5501
5510
|
} else {
|
|
5502
5511
|
let t1;
|
|
5503
|
-
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5512
|
+
if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5504
5513
|
t1 = renderSkeletonText();
|
|
5505
5514
|
$[26] = t1;
|
|
5506
5515
|
} else {
|
|
@@ -5644,7 +5653,7 @@
|
|
|
5644
5653
|
const previewType = filetype?.startsWith("image") ? "image" : filetype?.startsWith("video") ? "video" : filetype?.startsWith("audio") ? "audio" : "file";
|
|
5645
5654
|
if (downloadConfig?.fileNotFound) {
|
|
5646
5655
|
let t32;
|
|
5647
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5656
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5648
5657
|
t32 = /* @__PURE__ */ jsxRuntime.jsx(ErrorView, { error: "File not found" });
|
|
5649
5658
|
$[5] = t32;
|
|
5650
5659
|
} else {
|
|
@@ -5793,7 +5802,7 @@
|
|
|
5793
5802
|
} else {
|
|
5794
5803
|
if (!value) {
|
|
5795
5804
|
let t12;
|
|
5796
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5805
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5797
5806
|
t12 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
5798
5807
|
$[16] = t12;
|
|
5799
5808
|
} else {
|
|
@@ -6010,7 +6019,7 @@
|
|
|
6010
6019
|
const t7 = onClick ? "cursor-pointer" : "";
|
|
6011
6020
|
let t8;
|
|
6012
6021
|
if ($[11] !== className || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
|
|
6013
|
-
t8 = ui.cls("bg-white dark:bg-surface-900", "min-h-[
|
|
6022
|
+
t8 = ui.cls("bg-white dark:bg-surface-900", "min-h-[44px]", t4, "items-center", t5, t6, "flex border rounded-lg", t7, ui.defaultBorderMixin, className);
|
|
6014
6023
|
$[11] = className;
|
|
6015
6024
|
$[12] = t4;
|
|
6016
6025
|
$[13] = t5;
|
|
@@ -6095,7 +6104,7 @@
|
|
|
6095
6104
|
return t0;
|
|
6096
6105
|
};
|
|
6097
6106
|
function ReferencePreviewInternal(t0) {
|
|
6098
|
-
const $ = reactCompilerRuntime.c(
|
|
6107
|
+
const $ = reactCompilerRuntime.c(22);
|
|
6099
6108
|
const {
|
|
6100
6109
|
disabled,
|
|
6101
6110
|
reference,
|
|
@@ -6133,24 +6142,43 @@
|
|
|
6133
6142
|
}
|
|
6134
6143
|
return t42;
|
|
6135
6144
|
} else {
|
|
6136
|
-
|
|
6145
|
+
const t42 = size ?? "medium";
|
|
6146
|
+
let t5;
|
|
6147
|
+
if ($[6] !== reference.pathWithId) {
|
|
6148
|
+
t5 = /* @__PURE__ */ jsxRuntime.jsx(ErrorView, { error: "Unexpected reference value. Click to edit", tooltip: reference.pathWithId });
|
|
6149
|
+
$[6] = reference.pathWithId;
|
|
6150
|
+
$[7] = t5;
|
|
6151
|
+
} else {
|
|
6152
|
+
t5 = $[7];
|
|
6153
|
+
}
|
|
6154
|
+
let t6;
|
|
6155
|
+
if ($[8] !== onClick || $[9] !== t42 || $[10] !== t5) {
|
|
6156
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsx(EntityPreviewContainer, { onClick, size: t42, children: t5 });
|
|
6157
|
+
$[8] = onClick;
|
|
6158
|
+
$[9] = t42;
|
|
6159
|
+
$[10] = t5;
|
|
6160
|
+
$[11] = t6;
|
|
6161
|
+
} else {
|
|
6162
|
+
t6 = $[11];
|
|
6163
|
+
}
|
|
6164
|
+
return t6;
|
|
6137
6165
|
}
|
|
6138
6166
|
}
|
|
6139
6167
|
let t4;
|
|
6140
|
-
if ($[
|
|
6168
|
+
if ($[12] !== collection || $[13] !== disabled || $[14] !== hover || $[15] !== includeEntityLink || $[16] !== includeId || $[17] !== onClick || $[18] !== previewProperties || $[19] !== reference || $[20] !== size) {
|
|
6141
6169
|
t4 = /* @__PURE__ */ jsxRuntime.jsx(ReferencePreviewExisting, { reference, collection, previewProperties, size, disabled, includeEntityLink, includeId, onClick, hover });
|
|
6142
|
-
$[
|
|
6143
|
-
$[
|
|
6144
|
-
$[
|
|
6145
|
-
$[
|
|
6146
|
-
$[
|
|
6147
|
-
$[
|
|
6148
|
-
$[
|
|
6149
|
-
$[
|
|
6150
|
-
$[
|
|
6151
|
-
$[
|
|
6170
|
+
$[12] = collection;
|
|
6171
|
+
$[13] = disabled;
|
|
6172
|
+
$[14] = hover;
|
|
6173
|
+
$[15] = includeEntityLink;
|
|
6174
|
+
$[16] = includeId;
|
|
6175
|
+
$[17] = onClick;
|
|
6176
|
+
$[18] = previewProperties;
|
|
6177
|
+
$[19] = reference;
|
|
6178
|
+
$[20] = size;
|
|
6179
|
+
$[21] = t4;
|
|
6152
6180
|
} else {
|
|
6153
|
-
t4 = $[
|
|
6181
|
+
t4 = $[21];
|
|
6154
6182
|
}
|
|
6155
6183
|
return t4;
|
|
6156
6184
|
}
|
|
@@ -6202,7 +6230,7 @@
|
|
|
6202
6230
|
let body;
|
|
6203
6231
|
if (!reference) {
|
|
6204
6232
|
let t32;
|
|
6205
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6233
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6206
6234
|
t32 = /* @__PURE__ */ jsxRuntime.jsx(ErrorView, { error: "Reference not set" });
|
|
6207
6235
|
$[7] = t32;
|
|
6208
6236
|
} else {
|
|
@@ -6242,7 +6270,7 @@
|
|
|
6242
6270
|
const t32 = disabled ? void 0 : onClick;
|
|
6243
6271
|
const t4 = disabled ? void 0 : hover;
|
|
6244
6272
|
let t5;
|
|
6245
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6273
|
+
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6246
6274
|
t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, {});
|
|
6247
6275
|
$[15] = t5;
|
|
6248
6276
|
} else {
|
|
@@ -6264,7 +6292,7 @@
|
|
|
6264
6292
|
const t32 = disabled ? void 0 : onClick;
|
|
6265
6293
|
const t4 = disabled ? void 0 : hover;
|
|
6266
6294
|
let t5;
|
|
6267
|
-
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6295
|
+
if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6268
6296
|
t5 = /* @__PURE__ */ jsxRuntime.jsx(ErrorView, { error: "Entity not found" });
|
|
6269
6297
|
$[20] = t5;
|
|
6270
6298
|
} else {
|
|
@@ -6688,7 +6716,7 @@
|
|
|
6688
6716
|
}
|
|
6689
6717
|
if (!value) {
|
|
6690
6718
|
let t12;
|
|
6691
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6719
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6692
6720
|
t12 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
6693
6721
|
$[0] = t12;
|
|
6694
6722
|
} else {
|
|
@@ -6858,7 +6886,7 @@
|
|
|
6858
6886
|
} = t0;
|
|
6859
6887
|
if (!user) {
|
|
6860
6888
|
let t12;
|
|
6861
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6889
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6862
6890
|
t12 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
6863
6891
|
$[0] = t12;
|
|
6864
6892
|
} else {
|
|
@@ -6867,7 +6895,7 @@
|
|
|
6867
6895
|
return t12;
|
|
6868
6896
|
}
|
|
6869
6897
|
let t1;
|
|
6870
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6898
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6871
6899
|
t1 = ui.cls("inline-flex items-center gap-4 px-2 py-1 rounded-xl", "bg-surface-accent-100 dark:bg-surface-accent-800", "border", ui.defaultBorderMixin);
|
|
6872
6900
|
$[1] = t1;
|
|
6873
6901
|
} else {
|
|
@@ -6884,7 +6912,7 @@
|
|
|
6884
6912
|
t2 = $[5];
|
|
6885
6913
|
}
|
|
6886
6914
|
let t3;
|
|
6887
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6915
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6888
6916
|
t3 = ui.cls("font-regular truncate", "text-sm");
|
|
6889
6917
|
$[6] = t3;
|
|
6890
6918
|
} else {
|
|
@@ -6944,7 +6972,7 @@
|
|
|
6944
6972
|
} = useInternalUserManagementController();
|
|
6945
6973
|
if (!value) {
|
|
6946
6974
|
let t12;
|
|
6947
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6975
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6948
6976
|
t12 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
6949
6977
|
$[0] = t12;
|
|
6950
6978
|
} else {
|
|
@@ -7009,7 +7037,7 @@
|
|
|
7009
7037
|
});
|
|
7010
7038
|
if (property === null) {
|
|
7011
7039
|
let t02;
|
|
7012
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7040
|
+
if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7013
7041
|
t02 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
7014
7042
|
$[11] = t02;
|
|
7015
7043
|
} else {
|
|
@@ -7030,7 +7058,7 @@
|
|
|
7030
7058
|
} else {
|
|
7031
7059
|
if (value === void 0 || value === null) {
|
|
7032
7060
|
let t02;
|
|
7033
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7061
|
+
if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7034
7062
|
t02 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
7035
7063
|
$[12] = t02;
|
|
7036
7064
|
} else {
|
|
@@ -7094,7 +7122,7 @@
|
|
|
7094
7122
|
content = /* @__PURE__ */ jsxRuntime.jsx(ReferencePreview, { disabled: !stringProperty.reference.path, previewProperties: stringProperty.reference.previewProperties, includeId: stringProperty.reference.includeId, includeEntityLink: stringProperty.reference.includeEntityLink, size: props.size, reference: new EntityReference(value, stringProperty.reference.path) });
|
|
7095
7123
|
} else {
|
|
7096
7124
|
let t02;
|
|
7097
|
-
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7125
|
+
if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7098
7126
|
t02 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
7099
7127
|
$[23] = t02;
|
|
7100
7128
|
} else {
|
|
@@ -7185,7 +7213,7 @@
|
|
|
7185
7213
|
}
|
|
7186
7214
|
} else {
|
|
7187
7215
|
let t02;
|
|
7188
|
-
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7216
|
+
if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7189
7217
|
t02 = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
7190
7218
|
$[26] = t02;
|
|
7191
7219
|
} else {
|
|
@@ -7270,7 +7298,7 @@
|
|
|
7270
7298
|
let t3;
|
|
7271
7299
|
let t4;
|
|
7272
7300
|
if ($[0] !== authController || $[1] !== customizationController.propertyConfigs || $[2] !== inputProperty || $[3] !== propertyKey || $[4] !== size || $[5] !== value) {
|
|
7273
|
-
t4 = Symbol.for("react.early_return_sentinel");
|
|
7301
|
+
t4 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
7274
7302
|
bb0: {
|
|
7275
7303
|
const property = resolveArrayProperty({
|
|
7276
7304
|
propertyKey,
|
|
@@ -7320,7 +7348,7 @@
|
|
|
7320
7348
|
t3 = $[7];
|
|
7321
7349
|
t4 = $[8];
|
|
7322
7350
|
}
|
|
7323
|
-
if (t4 !== Symbol.for("react.early_return_sentinel")) {
|
|
7351
|
+
if (t4 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
7324
7352
|
return t4;
|
|
7325
7353
|
}
|
|
7326
7354
|
let t5;
|
|
@@ -7379,7 +7407,7 @@
|
|
|
7379
7407
|
React.useEffect(t1, t2);
|
|
7380
7408
|
if (loading) {
|
|
7381
7409
|
let t32;
|
|
7382
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7410
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7383
7411
|
t32 = /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, {});
|
|
7384
7412
|
$[3] = t32;
|
|
7385
7413
|
} else {
|
|
@@ -7891,7 +7919,7 @@
|
|
|
7891
7919
|
}
|
|
7892
7920
|
React.useEffect(t3, t4);
|
|
7893
7921
|
let t5;
|
|
7894
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7922
|
+
if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7895
7923
|
t5 = {
|
|
7896
7924
|
padding: 0,
|
|
7897
7925
|
margin: 0,
|
|
@@ -7924,7 +7952,7 @@
|
|
|
7924
7952
|
t7 = $[14];
|
|
7925
7953
|
}
|
|
7926
7954
|
let t8;
|
|
7927
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7955
|
+
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7928
7956
|
t8 = () => {
|
|
7929
7957
|
focusedState.current = true;
|
|
7930
7958
|
};
|
|
@@ -8158,7 +8186,7 @@
|
|
|
8158
8186
|
}
|
|
8159
8187
|
let t2;
|
|
8160
8188
|
let t3;
|
|
8161
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8189
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
8162
8190
|
t2 = ui.cls("w-full h-full", ui.focusedDisabled);
|
|
8163
8191
|
t3 = ui.cls("w-full h-full", ui.focusedDisabled);
|
|
8164
8192
|
$[2] = t2;
|
|
@@ -8357,9 +8385,16 @@
|
|
|
8357
8385
|
propertyKey
|
|
8358
8386
|
}) ?? "/";
|
|
8359
8387
|
}, [entityId, entityValues, path, resolvedProperty, propertyKey, storage]);
|
|
8360
|
-
const onFileUploadComplete = React.useCallback(async (uploadedPath, entry, metadata_0) => {
|
|
8388
|
+
const onFileUploadComplete = React.useCallback(async (uploadedPath, entry, metadata_0, uploadedUrl) => {
|
|
8361
8389
|
console.debug("onFileUploadComplete", uploadedPath, entry);
|
|
8362
8390
|
let uploadPathOrDownloadUrl = uploadedPath;
|
|
8391
|
+
if (storage.includeBucketUrl) {
|
|
8392
|
+
if (!uploadedUrl) {
|
|
8393
|
+
console.warn("includeBucketUrl is set but no fully-qualified storage URL was returned by the StorageSource. Falling back to the storage path.");
|
|
8394
|
+
} else {
|
|
8395
|
+
uploadPathOrDownloadUrl = uploadedUrl;
|
|
8396
|
+
}
|
|
8397
|
+
}
|
|
8363
8398
|
if (storage.storeUrl) {
|
|
8364
8399
|
uploadPathOrDownloadUrl = (await storageSource.getDownloadURL(uploadedPath)).url;
|
|
8365
8400
|
}
|
|
@@ -8532,10 +8567,11 @@
|
|
|
8532
8567
|
path: storagePath,
|
|
8533
8568
|
metadata
|
|
8534
8569
|
}).then(async ({
|
|
8535
|
-
path
|
|
8570
|
+
path,
|
|
8571
|
+
storageUrl
|
|
8536
8572
|
}) => {
|
|
8537
8573
|
console.debug("Upload successful", path);
|
|
8538
|
-
await onFileUploadComplete(path, entry, metadata);
|
|
8574
|
+
await onFileUploadComplete(path, entry, metadata, storageUrl);
|
|
8539
8575
|
if (mounted.current) setLoading(false);
|
|
8540
8576
|
}).catch((e) => {
|
|
8541
8577
|
console.warn("Upload error", e);
|
|
@@ -8895,7 +8931,7 @@
|
|
|
8895
8931
|
}
|
|
8896
8932
|
const t16 = !disabled ? openPopup : void 0;
|
|
8897
8933
|
let t17;
|
|
8898
|
-
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8934
|
+
if ($[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
8899
8935
|
t17 = /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-surface-500" });
|
|
8900
8936
|
$[48] = t17;
|
|
8901
8937
|
} else {
|
|
@@ -9156,7 +9192,7 @@
|
|
|
9156
9192
|
const buildMultipleReferenceField = t6;
|
|
9157
9193
|
if (!collection) {
|
|
9158
9194
|
let t72;
|
|
9159
|
-
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9195
|
+
if ($[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
9160
9196
|
t72 = /* @__PURE__ */ jsxRuntime.jsx(ErrorView, { error: "The specified collection does not exist" });
|
|
9161
9197
|
$[35] = t72;
|
|
9162
9198
|
} else {
|
|
@@ -9727,7 +9763,7 @@
|
|
|
9727
9763
|
const scrollable = !disabled && allowScroll && isOverflowing;
|
|
9728
9764
|
const faded = !disabled && !allowScroll && isOverflowing;
|
|
9729
9765
|
let t9;
|
|
9730
|
-
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9766
|
+
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
9731
9767
|
t9 = () => setOnHover(true);
|
|
9732
9768
|
$[9] = t9;
|
|
9733
9769
|
} else {
|
|
@@ -9735,7 +9771,7 @@
|
|
|
9735
9771
|
}
|
|
9736
9772
|
const setOnHoverTrue = t9;
|
|
9737
9773
|
let t10;
|
|
9738
|
-
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9774
|
+
if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
9739
9775
|
t10 = () => setOnHover(false);
|
|
9740
9776
|
$[10] = t10;
|
|
9741
9777
|
} else {
|
|
@@ -9743,9 +9779,9 @@
|
|
|
9743
9779
|
}
|
|
9744
9780
|
const setOnHoverFalse = t10;
|
|
9745
9781
|
const borderClass = showError ? "border-red-500" : internalSaved ? "border-green-500" : isSelected ? "border-primary" : "border-transparent";
|
|
9746
|
-
const t11 = `flex relative h-full rounded-md p-${p} border border-4
|
|
9782
|
+
const t11 = `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`;
|
|
9747
9783
|
const t12 = onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "";
|
|
9748
|
-
const t13 = saved ? "bg-surface-100
|
|
9784
|
+
const t13 = saved ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
|
|
9749
9785
|
const t14 = hideOverflow ? "overflow-hidden" : "";
|
|
9750
9786
|
const t15 = isSelected ? "bg-surface-50 dark:bg-surface-900" : "";
|
|
9751
9787
|
let t16;
|
|
@@ -9813,7 +9849,7 @@
|
|
|
9813
9849
|
}
|
|
9814
9850
|
let t24;
|
|
9815
9851
|
if ($[33] !== disabled || $[34] !== disabledTooltip || $[35] !== onHover) {
|
|
9816
|
-
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-
|
|
9852
|
+
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" }) }) });
|
|
9817
9853
|
$[33] = disabled;
|
|
9818
9854
|
$[34] = disabledTooltip;
|
|
9819
9855
|
$[35] = onHover;
|
|
@@ -10279,7 +10315,7 @@
|
|
|
10279
10315
|
const enableLocalChangesBackup = collection ? getLocalChangesBackup(collection) : false;
|
|
10280
10316
|
const hasDraft = enableLocalChangesBackup ? getEntityFromCache(fullPath + "/" + entity.id) : false;
|
|
10281
10317
|
const iconSize = largeLayout && (size === "m" || size === "l" || size == "xl") ? "medium" : "small";
|
|
10282
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90
|
|
10318
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10", frozen ? "sticky left-0" : ""), onClick: React.useCallback((event) => {
|
|
10283
10319
|
event.stopPropagation();
|
|
10284
10320
|
}, []), style: {
|
|
10285
10321
|
width,
|
|
@@ -10382,7 +10418,7 @@
|
|
|
10382
10418
|
t4 = $[4];
|
|
10383
10419
|
}
|
|
10384
10420
|
let t5;
|
|
10385
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10421
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
10386
10422
|
t5 = ["xs", "s", "m", "l", "xl"].map(_temp2$7);
|
|
10387
10423
|
$[5] = t5;
|
|
10388
10424
|
} else {
|
|
@@ -10399,7 +10435,7 @@
|
|
|
10399
10435
|
}
|
|
10400
10436
|
const sizeSelect = t6;
|
|
10401
10437
|
let t7;
|
|
10402
|
-
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10438
|
+
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
10403
10439
|
t7 = ui.cls(ui.defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-2 md:px-4 bg-surface-50 dark:bg-surface-900 border-b flex flex-row justify-between items-center w-full");
|
|
10404
10440
|
$[9] = t7;
|
|
10405
10441
|
} else {
|
|
@@ -10763,7 +10799,7 @@
|
|
|
10763
10799
|
const [openFilter, setOpenFilter] = React.useState(false);
|
|
10764
10800
|
const [hidden, setHidden] = React.useState(false);
|
|
10765
10801
|
let t1;
|
|
10766
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10802
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
10767
10803
|
t1 = (event) => {
|
|
10768
10804
|
setOpenFilter(true);
|
|
10769
10805
|
};
|
|
@@ -10793,7 +10829,7 @@
|
|
|
10793
10829
|
const t3 = column.frozen ? "sticky left-0 z-10" : "relative z-0";
|
|
10794
10830
|
let t4;
|
|
10795
10831
|
if ($[4] !== t3) {
|
|
10796
|
-
t4 = ui.cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900", "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark", "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50
|
|
10832
|
+
t4 = ui.cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900", "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark", "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 dark:hover:bg-opacity-50", t3);
|
|
10797
10833
|
$[4] = t3;
|
|
10798
10834
|
$[5] = t4;
|
|
10799
10835
|
} else {
|
|
@@ -10816,7 +10852,7 @@
|
|
|
10816
10852
|
let t7;
|
|
10817
10853
|
let t8;
|
|
10818
10854
|
let t9;
|
|
10819
|
-
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10855
|
+
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
10820
10856
|
t7 = () => setOnHover(true);
|
|
10821
10857
|
t8 = () => setOnHover(true);
|
|
10822
10858
|
t9 = () => setOnHover(false);
|
|
@@ -11042,7 +11078,7 @@
|
|
|
11042
11078
|
t6 = $[16];
|
|
11043
11079
|
}
|
|
11044
11080
|
let t7;
|
|
11045
|
-
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11081
|
+
if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
11046
11082
|
t7 = ui.cls(ui.defaultBorderMixin, "py-4 px-6 typography-label border-b");
|
|
11047
11083
|
$[17] = t7;
|
|
11048
11084
|
} else {
|
|
@@ -11076,7 +11112,7 @@
|
|
|
11076
11112
|
t12 = $[24];
|
|
11077
11113
|
}
|
|
11078
11114
|
let t13;
|
|
11079
|
-
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11115
|
+
if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
11080
11116
|
t13 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outlined", color: "primary", type: "submit", children: "Filter" });
|
|
11081
11117
|
$[25] = t13;
|
|
11082
11118
|
} else {
|
|
@@ -11229,7 +11265,7 @@
|
|
|
11229
11265
|
const onClick = t1;
|
|
11230
11266
|
let t2;
|
|
11231
11267
|
if ($[4] !== hoverRow || $[5] !== onRowClick || $[6] !== rowClassName || $[7] !== rowData) {
|
|
11232
|
-
t2 = ui.cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40
|
|
11268
|
+
t2 = ui.cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 dark:border-opacity-40", rowClassName ? rowClassName(rowData) : "", {
|
|
11233
11269
|
"hover:bg-opacity-95": hoverRow,
|
|
11234
11270
|
"cursor-pointer": onRowClick
|
|
11235
11271
|
});
|
|
@@ -11514,7 +11550,7 @@
|
|
|
11514
11550
|
/* @__PURE__ */ jsxRuntime.jsx(ui.AssignmentIcon, {}),
|
|
11515
11551
|
emptyComponent
|
|
11516
11552
|
] }) : void 0;
|
|
11517
|
-
const virtualListController = {
|
|
11553
|
+
const virtualListController = React.useMemo(() => ({
|
|
11518
11554
|
data,
|
|
11519
11555
|
rowHeight,
|
|
11520
11556
|
cellRenderer,
|
|
@@ -11533,7 +11569,7 @@
|
|
|
11533
11569
|
rowClassName,
|
|
11534
11570
|
endAdornment,
|
|
11535
11571
|
AddColumnComponent
|
|
11536
|
-
};
|
|
11572
|
+
}), [data, rowHeight, cellRenderer, columns, currentSort, onRowClick, customView, onColumnResizeInternal, onColumnResizeEndInternal, filterInput, onColumnSort, onFilterUpdateInternal, sortByProperty, hoverRow, createFilterField2, rowClassName, endAdornment, AddColumnComponent]);
|
|
11537
11573
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: measureRef, style, className: ui.cls("h-full w-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(VirtualListContext.Provider, { value: virtualListController, children: /* @__PURE__ */ jsxRuntime.jsx(MemoizedList, { outerRef: tableRef, width: bounds.width, height: bounds.height, itemCount: (data?.length ?? 0) + (endAdornment ? 1 : 0), onScroll, includeAddColumn: Boolean(AddColumnComponent), itemSize: rowHeight }, rowHeight) }) });
|
|
11538
11574
|
}, equal);
|
|
11539
11575
|
function MemoizedList({
|
|
@@ -12260,7 +12296,7 @@
|
|
|
12260
12296
|
selectedCell
|
|
12261
12297
|
}), [setPopupCell, select, onValueChange, size, selectedCell]);
|
|
12262
12298
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectableTableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full w-full flex flex-col bg-white dark:bg-surface-950", ref, children: /* @__PURE__ */ jsxRuntime.jsx(VirtualTable, { data, columns, cellRenderer, onRowClick: inlineEditing ? void 0 : onEntityClick ? onRowClick : void 0, onEndReached: loadNextPage, onResetPagination: resetPagination, error: dataLoadingError, onColumnResize, rowHeight: getRowHeight(size), loading: dataLoading, filter: filterValues, onFilterUpdate: setFilterValues ? onFilterUpdate : void 0, sortBy, onSortByUpdate: setSortBy, hoverRow, initialScroll, onScroll, checkFilterCombination, createFilterField: filterable ? createFilterField : void 0, rowClassName: React.useCallback((entity) => {
|
|
12263
|
-
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75
|
|
12299
|
+
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
|
|
12264
12300
|
}, [highlightedRow]), className: "flex-grow", emptyComponent, endAdornment, AddColumnComponent }) }) });
|
|
12265
12301
|
};
|
|
12266
12302
|
function createFilterField({
|
|
@@ -13660,7 +13696,7 @@
|
|
|
13660
13696
|
}
|
|
13661
13697
|
const t3 = isPreview ? "body2" : "caption";
|
|
13662
13698
|
let t4;
|
|
13663
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13699
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
13664
13700
|
t4 = ui.cls("p-4 py-2 rounded", "font-medium uppercase text-sm text-surface-600 dark:text-surface-400");
|
|
13665
13701
|
$[2] = t4;
|
|
13666
13702
|
} else {
|
|
@@ -13861,7 +13897,7 @@
|
|
|
13861
13897
|
t8 = $[16];
|
|
13862
13898
|
}
|
|
13863
13899
|
let t9;
|
|
13864
|
-
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13900
|
+
if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
13865
13901
|
t9 = {
|
|
13866
13902
|
alignSelf: "flex-end"
|
|
13867
13903
|
};
|
|
@@ -13870,7 +13906,7 @@
|
|
|
13870
13906
|
t9 = $[17];
|
|
13871
13907
|
}
|
|
13872
13908
|
let t10;
|
|
13873
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13909
|
+
if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
13874
13910
|
t10 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: t9, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowForwardIcon, { className: "text-primary" }) }) });
|
|
13875
13911
|
$[18] = t10;
|
|
13876
13912
|
} else {
|
|
@@ -13911,7 +13947,7 @@
|
|
|
13911
13947
|
icon
|
|
13912
13948
|
} = t0;
|
|
13913
13949
|
let t1;
|
|
13914
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13950
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
13915
13951
|
t1 = ui.cls(ui.cardMixin, ui.cardClickableMixin, "cursor-pointer flex flex-row items-center px-4 py-2 text-inherit dark:text-inherit visited:text-inherit visited:dark:text-inherit hover:text-inherit hover:dark:text-inherit ");
|
|
13916
13952
|
$[0] = t1;
|
|
13917
13953
|
} else {
|
|
@@ -13938,7 +13974,7 @@
|
|
|
13938
13974
|
t3 = $[5];
|
|
13939
13975
|
}
|
|
13940
13976
|
let t4;
|
|
13941
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13977
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
13942
13978
|
t4 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowForwardIcon, { color: "primary" }) });
|
|
13943
13979
|
$[6] = t4;
|
|
13944
13980
|
} else {
|
|
@@ -14732,7 +14768,7 @@
|
|
|
14732
14768
|
t6 = $[10];
|
|
14733
14769
|
}
|
|
14734
14770
|
let t7;
|
|
14735
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14771
|
+
if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
14736
14772
|
t7 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center p-4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block font-medium text-sm", children: "Drop here to create a new group" }) });
|
|
14737
14773
|
$[11] = t7;
|
|
14738
14774
|
} else {
|
|
@@ -14869,7 +14905,7 @@
|
|
|
14869
14905
|
return null;
|
|
14870
14906
|
}
|
|
14871
14907
|
let t6;
|
|
14872
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14908
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
14873
14909
|
t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Rename Group" });
|
|
14874
14910
|
$[16] = t6;
|
|
14875
14911
|
} else {
|
|
@@ -15408,7 +15444,7 @@
|
|
|
15408
15444
|
function useWindowSize() {
|
|
15409
15445
|
const $ = reactCompilerRuntime.c(3);
|
|
15410
15446
|
let t0;
|
|
15411
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15447
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15412
15448
|
t0 = {
|
|
15413
15449
|
width: 0,
|
|
15414
15450
|
height: 0
|
|
@@ -15420,7 +15456,7 @@
|
|
|
15420
15456
|
const [size, setSize] = React.useState(t0);
|
|
15421
15457
|
let t1;
|
|
15422
15458
|
let t2;
|
|
15423
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15459
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15424
15460
|
t1 = () => {
|
|
15425
15461
|
const updateSize = function updateSize2() {
|
|
15426
15462
|
setSize({
|
|
@@ -15698,7 +15734,7 @@
|
|
|
15698
15734
|
function LocalChangesMenu(t0) {
|
|
15699
15735
|
const $ = reactCompilerRuntime.c(42);
|
|
15700
15736
|
const {
|
|
15701
|
-
|
|
15737
|
+
cachedData,
|
|
15702
15738
|
formex: formex2,
|
|
15703
15739
|
onClearLocalChanges,
|
|
15704
15740
|
cacheKey,
|
|
@@ -15708,7 +15744,7 @@
|
|
|
15708
15744
|
const [previewDialogOpen, setPreviewDialogOpen] = React.useState(false);
|
|
15709
15745
|
const [open, setOpen] = React.useState(false);
|
|
15710
15746
|
let t1;
|
|
15711
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15747
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15712
15748
|
t1 = () => setOpen(true);
|
|
15713
15749
|
$[0] = t1;
|
|
15714
15750
|
} else {
|
|
@@ -15716,7 +15752,7 @@
|
|
|
15716
15752
|
}
|
|
15717
15753
|
const handleOpenMenu = t1;
|
|
15718
15754
|
let t2;
|
|
15719
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15755
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15720
15756
|
t2 = () => setOpen(false);
|
|
15721
15757
|
$[1] = t2;
|
|
15722
15758
|
} else {
|
|
@@ -15724,7 +15760,7 @@
|
|
|
15724
15760
|
}
|
|
15725
15761
|
const handleCloseMenu = t2;
|
|
15726
15762
|
let t3;
|
|
15727
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15763
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15728
15764
|
t3 = () => {
|
|
15729
15765
|
setPreviewDialogOpen(true);
|
|
15730
15766
|
handleCloseMenu();
|
|
@@ -15735,14 +15771,14 @@
|
|
|
15735
15771
|
}
|
|
15736
15772
|
const handlePreview = t3;
|
|
15737
15773
|
let t4;
|
|
15738
|
-
if ($[3] !==
|
|
15774
|
+
if ($[3] !== cachedData || $[4] !== formex2 || $[5] !== onClearLocalChanges || $[6] !== snackbarController) {
|
|
15739
15775
|
t4 = () => {
|
|
15740
|
-
const mergedValues = mergeDeep(formex2.values,
|
|
15776
|
+
const mergedValues = mergeDeep(formex2.values, cachedData);
|
|
15741
15777
|
const touched = {
|
|
15742
15778
|
...formex2.touched
|
|
15743
15779
|
};
|
|
15744
|
-
const
|
|
15745
|
-
|
|
15780
|
+
const cachedKeys = flattenKeys(cachedData);
|
|
15781
|
+
cachedKeys.forEach((key) => {
|
|
15746
15782
|
touched[key] = true;
|
|
15747
15783
|
});
|
|
15748
15784
|
formex2.setTouched(touched);
|
|
@@ -15754,8 +15790,8 @@
|
|
|
15754
15790
|
handleCloseMenu();
|
|
15755
15791
|
onClearLocalChanges?.();
|
|
15756
15792
|
};
|
|
15757
|
-
$[3] =
|
|
15758
|
-
$[4] =
|
|
15793
|
+
$[3] = cachedData;
|
|
15794
|
+
$[4] = formex2;
|
|
15759
15795
|
$[5] = onClearLocalChanges;
|
|
15760
15796
|
$[6] = snackbarController;
|
|
15761
15797
|
$[7] = t4;
|
|
@@ -15783,14 +15819,14 @@
|
|
|
15783
15819
|
}
|
|
15784
15820
|
const handleDiscard = t5;
|
|
15785
15821
|
let t6;
|
|
15786
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15822
|
+
if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15787
15823
|
t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.WarningIcon, { size: "smallest", className: "mr-1 text-yellow-600 dark:text-yellow-400" });
|
|
15788
15824
|
$[12] = t6;
|
|
15789
15825
|
} else {
|
|
15790
15826
|
t6 = $[12];
|
|
15791
15827
|
}
|
|
15792
15828
|
let t7;
|
|
15793
|
-
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15829
|
+
if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15794
15830
|
t7 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "small", className: "font-semibold text-xs rounded-full px-4 py-1 bg-yellow-200 dark:bg-yellow-900 hover:bg-yellow-300 dark:hover:bg-yellow-800 text-yellow-800 dark:text-yellow-200", onClick: handleOpenMenu, children: [
|
|
15795
15831
|
t6,
|
|
15796
15832
|
"Unsaved Local changes",
|
|
@@ -15801,14 +15837,14 @@
|
|
|
15801
15837
|
t7 = $[13];
|
|
15802
15838
|
}
|
|
15803
15839
|
let t8;
|
|
15804
|
-
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15840
|
+
if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15805
15841
|
t8 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-xs px-4 py-4 text-sm text-gray-700 dark:text-gray-300", children: "This document was edited locally and has unsaved changes. These local changes will be lost if you don't apply them." });
|
|
15806
15842
|
$[14] = t8;
|
|
15807
15843
|
} else {
|
|
15808
15844
|
t8 = $[14];
|
|
15809
15845
|
}
|
|
15810
15846
|
let t9;
|
|
15811
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15847
|
+
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15812
15848
|
t9 = /* @__PURE__ */ jsxRuntime.jsxs(ui.MenuItem, { dense: true, onClick: handlePreview, children: [
|
|
15813
15849
|
/* @__PURE__ */ jsxRuntime.jsx(ui.VisibilityIcon, { size: "small" }),
|
|
15814
15850
|
"Preview Changes"
|
|
@@ -15818,7 +15854,7 @@
|
|
|
15818
15854
|
t9 = $[15];
|
|
15819
15855
|
}
|
|
15820
15856
|
let t10;
|
|
15821
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15857
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15822
15858
|
t10 = /* @__PURE__ */ jsxRuntime.jsx(ui.CheckIcon, { size: "small" });
|
|
15823
15859
|
$[16] = t10;
|
|
15824
15860
|
} else {
|
|
@@ -15836,7 +15872,7 @@
|
|
|
15836
15872
|
t11 = $[18];
|
|
15837
15873
|
}
|
|
15838
15874
|
let t12;
|
|
15839
|
-
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15875
|
+
if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15840
15876
|
t12 = /* @__PURE__ */ jsxRuntime.jsx(ui.CancelIcon, { size: "small" });
|
|
15841
15877
|
$[19] = t12;
|
|
15842
15878
|
} else {
|
|
@@ -15869,21 +15905,21 @@
|
|
|
15869
15905
|
t14 = $[25];
|
|
15870
15906
|
}
|
|
15871
15907
|
let t15;
|
|
15872
|
-
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15908
|
+
if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15873
15909
|
t15 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { variant: "h6", children: "Preview Local Changes" });
|
|
15874
15910
|
$[26] = t15;
|
|
15875
15911
|
} else {
|
|
15876
15912
|
t15 = $[26];
|
|
15877
15913
|
}
|
|
15878
15914
|
let t16;
|
|
15879
|
-
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15915
|
+
if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15880
15916
|
t16 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "body2", className: "mb-4", children: "These are the local changes that will be applied to the form." });
|
|
15881
15917
|
$[27] = t16;
|
|
15882
15918
|
} else {
|
|
15883
15919
|
t16 = $[27];
|
|
15884
15920
|
}
|
|
15885
15921
|
let t17;
|
|
15886
|
-
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15922
|
+
if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15887
15923
|
t17 = {
|
|
15888
15924
|
maxHeight: 520,
|
|
15889
15925
|
overflow: "auto"
|
|
@@ -15894,19 +15930,19 @@
|
|
|
15894
15930
|
}
|
|
15895
15931
|
const t18 = properties;
|
|
15896
15932
|
let t19;
|
|
15897
|
-
if ($[29] !==
|
|
15933
|
+
if ($[29] !== cachedData || $[30] !== t18) {
|
|
15898
15934
|
t19 = /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { className: "my-4", children: [
|
|
15899
15935
|
t16,
|
|
15900
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `border rounded-lg ${ui.defaultBorderMixin}`, style: t17, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4", children: /* @__PURE__ */ jsxRuntime.jsx(PropertyCollectionView, { data:
|
|
15936
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `border rounded-lg ${ui.defaultBorderMixin}`, style: t17, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4", children: /* @__PURE__ */ jsxRuntime.jsx(PropertyCollectionView, { data: cachedData, properties: t18 }) }) })
|
|
15901
15937
|
] });
|
|
15902
|
-
$[29] =
|
|
15938
|
+
$[29] = cachedData;
|
|
15903
15939
|
$[30] = t18;
|
|
15904
15940
|
$[31] = t19;
|
|
15905
15941
|
} else {
|
|
15906
15942
|
t19 = $[31];
|
|
15907
15943
|
}
|
|
15908
15944
|
let t20;
|
|
15909
|
-
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15945
|
+
if ($[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
15910
15946
|
t20 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: () => setPreviewDialogOpen(false), children: "Close" });
|
|
15911
15947
|
$[32] = t20;
|
|
15912
15948
|
} else {
|
|
@@ -15966,56 +16002,6 @@
|
|
|
15966
16002
|
});
|
|
15967
16003
|
return acc;
|
|
15968
16004
|
}
|
|
15969
|
-
function getChanges(source, comparison) {
|
|
15970
|
-
const changes = {};
|
|
15971
|
-
if (!source) {
|
|
15972
|
-
return {};
|
|
15973
|
-
}
|
|
15974
|
-
if (!comparison) {
|
|
15975
|
-
return source;
|
|
15976
|
-
}
|
|
15977
|
-
const allKeys = Array.from(/* @__PURE__ */ new Set([...Object.keys(source), ...Object.keys(comparison)]));
|
|
15978
|
-
for (const key of allKeys) {
|
|
15979
|
-
const sourceValue = source[key];
|
|
15980
|
-
const comparisonValue = comparison[key];
|
|
15981
|
-
if (equal(sourceValue, comparisonValue)) {
|
|
15982
|
-
continue;
|
|
15983
|
-
}
|
|
15984
|
-
const sourceHasKey = source && typeof source === "object" && Object.prototype.hasOwnProperty.call(source, key);
|
|
15985
|
-
const comparisonHasKey = comparison && typeof comparison === "object" && Object.prototype.hasOwnProperty.call(comparison, key);
|
|
15986
|
-
if (comparisonHasKey && !sourceHasKey) {
|
|
15987
|
-
changes[key] = void 0;
|
|
15988
|
-
} else if (Array.isArray(sourceValue)) {
|
|
15989
|
-
const comparisonArray = Array.isArray(comparisonValue) ? comparisonValue : [];
|
|
15990
|
-
if (sourceValue.length < comparisonArray.length) {
|
|
15991
|
-
changes[key] = sourceValue;
|
|
15992
|
-
continue;
|
|
15993
|
-
}
|
|
15994
|
-
const changedArray = sourceValue.map((item, index) => {
|
|
15995
|
-
const comparisonItem = comparisonArray[index];
|
|
15996
|
-
if (equal(item, comparisonItem)) {
|
|
15997
|
-
return null;
|
|
15998
|
-
}
|
|
15999
|
-
if (isObject(item) && item && isObject(comparisonItem) && comparisonItem) {
|
|
16000
|
-
const nestedChanges = getChanges(item, comparisonItem);
|
|
16001
|
-
return Object.keys(nestedChanges).length > 0 ? nestedChanges : item;
|
|
16002
|
-
}
|
|
16003
|
-
return item;
|
|
16004
|
-
});
|
|
16005
|
-
if (changedArray.some((item) => item !== null) || sourceValue.length > comparisonArray.length) {
|
|
16006
|
-
changes[key] = changedArray;
|
|
16007
|
-
}
|
|
16008
|
-
} else if (isObject(sourceValue) && sourceValue && isObject(comparisonValue) && comparisonValue) {
|
|
16009
|
-
const nestedChanges = getChanges(sourceValue, comparisonValue);
|
|
16010
|
-
if (Object.keys(nestedChanges).length > 0) {
|
|
16011
|
-
changes[key] = nestedChanges;
|
|
16012
|
-
}
|
|
16013
|
-
} else {
|
|
16014
|
-
changes[key] = sourceValue;
|
|
16015
|
-
}
|
|
16016
|
-
}
|
|
16017
|
-
return changes;
|
|
16018
|
-
}
|
|
16019
16005
|
function EntityForm({
|
|
16020
16006
|
path,
|
|
16021
16007
|
fullIdPath,
|
|
@@ -16133,13 +16119,7 @@
|
|
|
16133
16119
|
const initialDirty = Boolean(initialDirtyValues) && initialDirtyValues && Object.keys(initialDirtyValues).length > 0;
|
|
16134
16120
|
return [initialValues, initialDirty];
|
|
16135
16121
|
}, [autoApplyLocalChanges, localChangesDataRaw, baseInitialValues, initialDirtyValues]);
|
|
16136
|
-
const
|
|
16137
|
-
if (!localChangesDataRaw) {
|
|
16138
|
-
return void 0;
|
|
16139
|
-
}
|
|
16140
|
-
return getChanges(localChangesDataRaw, initialValues_0);
|
|
16141
|
-
}, [localChangesDataRaw, initialValues_0]);
|
|
16142
|
-
const hasLocalChanges = !localChangesCleared && localChangesData && Object.keys(localChangesData).length > 0;
|
|
16122
|
+
const hasLocalChanges = !localChangesCleared && localChangesDataRaw && Object.keys(localChangesDataRaw).length > 0;
|
|
16143
16123
|
const formex$1 = formexProp ?? formex.useCreateFormex({
|
|
16144
16124
|
initialValues: initialValues_0,
|
|
16145
16125
|
initialDirty: initialDirty_0,
|
|
@@ -16476,7 +16456,7 @@
|
|
|
16476
16456
|
}), noValidate: true, className: ui.cls("flex-1 flex flex-row w-full overflow-y-auto justify-center", className), children: [
|
|
16477
16457
|
/* @__PURE__ */ jsxRuntime.jsx("div", { id: `form_${path}`, className: ui.cls("relative flex flex-row max-w-4xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-6xl w-full h-fit"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex flex-col w-full pt-12 pb-16 px-4 sm:px-8 md:px-10"), children: [
|
|
16478
16458
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row gap-4 self-end sticky top-4 z-10", children: [
|
|
16479
|
-
manualApplyLocalChanges && hasLocalChanges && /* @__PURE__ */ jsxRuntime.jsx(LocalChangesMenu, { cacheKey: status === "new" || status === "copy" ? path + "#new" : path + "/" + entityId, properties: resolvedCollection.properties,
|
|
16459
|
+
manualApplyLocalChanges && hasLocalChanges && /* @__PURE__ */ jsxRuntime.jsx(LocalChangesMenu, { cacheKey: status === "new" || status === "copy" ? path + "#new" : path + "/" + entityId, properties: resolvedCollection.properties, cachedData: localChangesDataRaw, formex: formex$1, onClearLocalChanges: () => setLocalChangesCleared(true) }),
|
|
16480
16460
|
formex$1.dirty ? /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "This form has been modified", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { size: "small", className: "py-1", colorScheme: "orangeDarker", children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "smallest" }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "The current form is in sync with the database", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { size: "small", className: "py-1", children: /* @__PURE__ */ jsxRuntime.jsx(ui.CheckIcon, { size: "smallest" }) }) })
|
|
16481
16461
|
] }),
|
|
16482
16462
|
formView
|
|
@@ -16905,7 +16885,7 @@
|
|
|
16905
16885
|
const t6 = true;
|
|
16906
16886
|
const t7 = "item-aligned";
|
|
16907
16887
|
let t8;
|
|
16908
|
-
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16888
|
+
if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
16909
16889
|
t8 = ui.cls("w-full");
|
|
16910
16890
|
$[10] = t8;
|
|
16911
16891
|
} else {
|
|
@@ -17494,7 +17474,7 @@
|
|
|
17494
17474
|
}
|
|
17495
17475
|
}
|
|
17496
17476
|
let t5;
|
|
17497
|
-
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17477
|
+
if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
17498
17478
|
t5 = ui.cls("rounded-md m-1");
|
|
17499
17479
|
$[27] = t5;
|
|
17500
17480
|
} else {
|
|
@@ -17805,7 +17785,7 @@
|
|
|
17805
17785
|
}
|
|
17806
17786
|
const moveItem = t1;
|
|
17807
17787
|
let t2;
|
|
17808
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17788
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
17809
17789
|
t2 = {
|
|
17810
17790
|
activationConstraint: {
|
|
17811
17791
|
distance: 5
|
|
@@ -17816,7 +17796,7 @@
|
|
|
17816
17796
|
t2 = $[5];
|
|
17817
17797
|
}
|
|
17818
17798
|
let t3;
|
|
17819
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17799
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
17820
17800
|
t3 = {
|
|
17821
17801
|
coordinateGetter: sortable.sortableKeyboardCoordinates
|
|
17822
17802
|
};
|
|
@@ -17826,7 +17806,7 @@
|
|
|
17826
17806
|
}
|
|
17827
17807
|
const sensors = core.useSensors(core.useSensor(core.PointerSensor, t2), core.useSensor(core.KeyboardSensor, t3));
|
|
17828
17808
|
let t4;
|
|
17829
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17809
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
17830
17810
|
t4 = (event) => {
|
|
17831
17811
|
setIsDndItemDragging(true);
|
|
17832
17812
|
};
|
|
@@ -18409,7 +18389,7 @@
|
|
|
18409
18389
|
t1 = $[3];
|
|
18410
18390
|
}
|
|
18411
18391
|
let t2;
|
|
18412
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
18392
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
18413
18393
|
t2 = ui.cls(ui.paperMixin, "w-full min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar");
|
|
18414
18394
|
$[4] = t2;
|
|
18415
18395
|
} else {
|
|
@@ -18919,7 +18899,7 @@
|
|
|
18919
18899
|
mapProperties = t12;
|
|
18920
18900
|
} else {
|
|
18921
18901
|
let t12;
|
|
18922
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
18902
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
18923
18903
|
t12 = {};
|
|
18924
18904
|
$[3] = t12;
|
|
18925
18905
|
} else {
|
|
@@ -19438,7 +19418,7 @@
|
|
|
19438
19418
|
t8 = $[23];
|
|
19439
19419
|
}
|
|
19440
19420
|
let t9;
|
|
19441
|
-
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19421
|
+
if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19442
19422
|
t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "smallest", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowDropDownIcon, { size: "small" }) });
|
|
19443
19423
|
$[24] = t9;
|
|
19444
19424
|
} else {
|
|
@@ -19513,7 +19493,7 @@
|
|
|
19513
19493
|
t16 = $[43];
|
|
19514
19494
|
}
|
|
19515
19495
|
let t17;
|
|
19516
|
-
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19496
|
+
if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19517
19497
|
t17 = /* @__PURE__ */ jsxRuntime.jsx(ui.RemoveIcon, { size: "smallest" });
|
|
19518
19498
|
$[44] = t17;
|
|
19519
19499
|
} else {
|
|
@@ -19599,7 +19579,7 @@
|
|
|
19599
19579
|
}
|
|
19600
19580
|
const [selectedDataType, setSelectedDataType] = React.useState(t1);
|
|
19601
19581
|
let t2;
|
|
19602
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19582
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19603
19583
|
t2 = function doUpdateDataType2(dataType) {
|
|
19604
19584
|
setSelectedDataType(dataType);
|
|
19605
19585
|
};
|
|
@@ -19688,42 +19668,42 @@
|
|
|
19688
19668
|
t6 = $[13];
|
|
19689
19669
|
}
|
|
19690
19670
|
let t7;
|
|
19691
|
-
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19671
|
+
if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19692
19672
|
t7 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", className: "h-7 w-7", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowDropDownIcon, {}) });
|
|
19693
19673
|
$[14] = t7;
|
|
19694
19674
|
} else {
|
|
19695
19675
|
t7 = $[14];
|
|
19696
19676
|
}
|
|
19697
19677
|
let t8;
|
|
19698
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19678
|
+
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19699
19679
|
t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.MenuItem, { dense: true, onClick: () => doUpdateDataType("string"), children: "string" });
|
|
19700
19680
|
$[15] = t8;
|
|
19701
19681
|
} else {
|
|
19702
19682
|
t8 = $[15];
|
|
19703
19683
|
}
|
|
19704
19684
|
let t9;
|
|
19705
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19685
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19706
19686
|
t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.MenuItem, { dense: true, onClick: () => doUpdateDataType("number"), children: "number" });
|
|
19707
19687
|
$[16] = t9;
|
|
19708
19688
|
} else {
|
|
19709
19689
|
t9 = $[16];
|
|
19710
19690
|
}
|
|
19711
19691
|
let t10;
|
|
19712
|
-
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19692
|
+
if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19713
19693
|
t10 = /* @__PURE__ */ jsxRuntime.jsx(ui.MenuItem, { dense: true, onClick: () => doUpdateDataType("boolean"), children: "boolean" });
|
|
19714
19694
|
$[17] = t10;
|
|
19715
19695
|
} else {
|
|
19716
19696
|
t10 = $[17];
|
|
19717
19697
|
}
|
|
19718
19698
|
let t11;
|
|
19719
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19699
|
+
if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19720
19700
|
t11 = /* @__PURE__ */ jsxRuntime.jsx(ui.MenuItem, { dense: true, onClick: () => doUpdateDataType("map"), children: "map" });
|
|
19721
19701
|
$[18] = t11;
|
|
19722
19702
|
} else {
|
|
19723
19703
|
t11 = $[18];
|
|
19724
19704
|
}
|
|
19725
19705
|
let t12;
|
|
19726
|
-
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19706
|
+
if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19727
19707
|
t12 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Menu, { trigger: t7, children: [
|
|
19728
19708
|
t8,
|
|
19729
19709
|
t9,
|
|
@@ -20069,7 +20049,7 @@
|
|
|
20069
20049
|
const [typeInternal, setTypeInternal] = React.useState(type ?? void 0);
|
|
20070
20050
|
const formex$1 = formex.useFormex();
|
|
20071
20051
|
let t1;
|
|
20072
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
20052
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
20073
20053
|
t1 = [];
|
|
20074
20054
|
$[0] = t1;
|
|
20075
20055
|
} else {
|
|
@@ -20154,7 +20134,7 @@
|
|
|
20154
20134
|
formex$1.setFieldValue(valueFieldName, newSelectedProperty ? getDefaultValueFor(newSelectedProperty) : null);
|
|
20155
20135
|
};
|
|
20156
20136
|
let t7;
|
|
20157
|
-
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
20137
|
+
if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
20158
20138
|
t7 = ui.cls(ui.paperMixin, "bg-transparent p-2");
|
|
20159
20139
|
$[17] = t7;
|
|
20160
20140
|
} else {
|
|
@@ -20824,7 +20804,7 @@
|
|
|
20824
20804
|
t1 = $[1];
|
|
20825
20805
|
}
|
|
20826
20806
|
let t2;
|
|
20827
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
20807
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
20828
20808
|
t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.FilterListOffIcon, {});
|
|
20829
20809
|
$[2] = t2;
|
|
20830
20810
|
} else {
|
|
@@ -21376,7 +21356,7 @@
|
|
|
21376
21356
|
const t2 = !openPopup ? "Find by ID" : void 0;
|
|
21377
21357
|
let t3;
|
|
21378
21358
|
let t4;
|
|
21379
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21359
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21380
21360
|
t3 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", children: /* @__PURE__ */ jsxRuntime.jsx(ui.SearchIcon, { size: "small" }) });
|
|
21381
21361
|
t4 = ui.cls("my-2 rounded-lg bg-surface-50 dark:bg-surface-950 text-surface-900 dark:text-white");
|
|
21382
21362
|
$[2] = t3;
|
|
@@ -21417,7 +21397,7 @@
|
|
|
21417
21397
|
t5 = $[11];
|
|
21418
21398
|
}
|
|
21419
21399
|
let t6;
|
|
21420
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21400
|
+
if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21421
21401
|
t6 = (e_0) => {
|
|
21422
21402
|
setSearchString(e_0.target.value);
|
|
21423
21403
|
};
|
|
@@ -21436,7 +21416,7 @@
|
|
|
21436
21416
|
}
|
|
21437
21417
|
const t8 = !searchString.trim();
|
|
21438
21418
|
let t9;
|
|
21439
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21419
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21440
21420
|
t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.KeyboardTabIcon, {});
|
|
21441
21421
|
$[16] = t9;
|
|
21442
21422
|
} else {
|
|
@@ -21562,7 +21542,7 @@
|
|
|
21562
21542
|
function NotFoundPage() {
|
|
21563
21543
|
const $ = reactCompilerRuntime.c(1);
|
|
21564
21544
|
let t0;
|
|
21565
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21545
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21566
21546
|
t0 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full h-full", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "m-auto flex items-center flex-col", children: [
|
|
21567
21547
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "h4", align: "center", gutterBottom: true, children: "Page not found" }),
|
|
21568
21548
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { align: "center", gutterBottom: true, children: "This page does not exist or you may not have access to it" }),
|
|
@@ -21668,7 +21648,7 @@
|
|
|
21668
21648
|
let t3;
|
|
21669
21649
|
let t4;
|
|
21670
21650
|
let t5;
|
|
21671
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21651
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21672
21652
|
t3 = /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "291.5", cy: "291.5", r: "291.5", fill: "#0070F4" });
|
|
21673
21653
|
t4 = /* @__PURE__ */ jsxRuntime.jsx("ellipse", { cx: "292", cy: "291.5", rx: "173", ry: "173.5", fill: "#FF3773" });
|
|
21674
21654
|
t5 = /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M465 291.5C465 268.847 460.525 246.416 451.831 225.487C443.137 204.558 430.394 185.542 414.329 169.524C398.265 153.506 379.194 140.8 358.204 132.131C337.215 123.462 314.719 119 292 119C269.281 119 246.785 123.462 225.796 132.131C204.806 140.8 185.735 153.506 169.671 169.524C153.606 185.542 140.863 204.558 132.169 225.487C123.475 246.416 119 268.847 119 291.5L292 291.5H465Z", fill: "#FFA400" });
|
|
@@ -21724,7 +21704,7 @@
|
|
|
21724
21704
|
children
|
|
21725
21705
|
} = t0;
|
|
21726
21706
|
let t1;
|
|
21727
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21707
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21728
21708
|
t1 = [];
|
|
21729
21709
|
$[0] = t1;
|
|
21730
21710
|
} else {
|
|
@@ -21732,7 +21712,7 @@
|
|
|
21732
21712
|
}
|
|
21733
21713
|
const [breadcrumbs, setBreadcrumbs] = React.useState(t1);
|
|
21734
21714
|
let t2;
|
|
21735
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21715
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21736
21716
|
t2 = (props) => {
|
|
21737
21717
|
setBreadcrumbs(props.breadcrumbs);
|
|
21738
21718
|
};
|
|
@@ -21822,7 +21802,7 @@
|
|
|
21822
21802
|
} else {
|
|
21823
21803
|
if (user === void 0 || authController.initialLoading) {
|
|
21824
21804
|
let t22;
|
|
21825
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21805
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21826
21806
|
t22 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-1 flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { className: "w-10 h-10 rounded-full" }) });
|
|
21827
21807
|
$[6] = t22;
|
|
21828
21808
|
} else {
|
|
@@ -21876,7 +21856,7 @@
|
|
|
21876
21856
|
t7 = $[19];
|
|
21877
21857
|
}
|
|
21878
21858
|
let t8;
|
|
21879
|
-
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21859
|
+
if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
21880
21860
|
t8 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow" });
|
|
21881
21861
|
$[20] = t8;
|
|
21882
21862
|
} else {
|
|
@@ -22058,7 +22038,7 @@
|
|
|
22058
22038
|
storedProps,
|
|
22059
22039
|
updateItemCustomProps
|
|
22060
22040
|
} = t0;
|
|
22061
|
-
const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20
|
|
22041
|
+
const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20" : ""} rounded-md opacity-100`;
|
|
22062
22042
|
let t2;
|
|
22063
22043
|
if ($[0] !== internalId || $[1] !== updateItemCustomProps) {
|
|
22064
22044
|
t2 = (props) => updateItemCustomProps(internalId, props);
|
|
@@ -22381,7 +22361,7 @@
|
|
|
22381
22361
|
} else if (value?.isEntityReference && value?.isEntityReference()) {
|
|
22382
22362
|
child = /* @__PURE__ */ jsxRuntime.jsx(ReferencePreview, { reference: value, onClick: onEntryClick, disabled, previewProperties, size, includeId, includeEntityLink });
|
|
22383
22363
|
}
|
|
22384
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("text-sm font-medium", "min-w-80 flex flex-col gap-4", "relative transition-colors duration-200 ease-in rounded font-medium", disabled ? "bg-opacity-50" : "hover:bg-opacity-75", "text-opacity-50
|
|
22364
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("text-sm font-medium", "min-w-80 flex flex-col gap-4", "relative transition-colors duration-200 ease-in rounded font-medium", disabled ? "bg-opacity-50" : "hover:bg-opacity-75", "text-opacity-50 dark:text-white dark:text-opacity-50", className), children: [
|
|
22385
22365
|
child,
|
|
22386
22366
|
!value && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "justify-center text-left", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { variant: "outlined", color: "primary", disabled, onClick: onEntryClick, children: [
|
|
22387
22367
|
"Edit ",
|
|
@@ -22408,7 +22388,7 @@
|
|
|
22408
22388
|
const [query, setQuery] = React.useState("");
|
|
22409
22389
|
let t2;
|
|
22410
22390
|
let t3;
|
|
22411
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
22391
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
22412
22392
|
t3 = ui.debounce((value) => {
|
|
22413
22393
|
if (!value || value === "") {
|
|
22414
22394
|
setKeys(null);
|
|
@@ -22444,7 +22424,7 @@
|
|
|
22444
22424
|
React.useEffect(t4, t5);
|
|
22445
22425
|
const icons = keys === null ? ui.coolIconKeys : keys;
|
|
22446
22426
|
let t6;
|
|
22447
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
22427
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
22448
22428
|
t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.SearchBar, { autoFocus: false, innerClassName: "w-full sticky top-0 z-10", onTextSearch: (value_0) => setQuery(value_0 ?? ""), placeholder: "Search for more icons…" });
|
|
22449
22429
|
$[4] = t6;
|
|
22450
22430
|
} else {
|
|
@@ -23147,7 +23127,7 @@
|
|
|
23147
23127
|
function useBuildLocalConfigurationPersistence() {
|
|
23148
23128
|
const $ = reactCompilerRuntime.c(15);
|
|
23149
23129
|
let t0;
|
|
23150
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23130
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23151
23131
|
t0 = {};
|
|
23152
23132
|
$[0] = t0;
|
|
23153
23133
|
} else {
|
|
@@ -23156,7 +23136,7 @@
|
|
|
23156
23136
|
const configCache = React.useRef(t0);
|
|
23157
23137
|
const getCollectionFromStorage = _temp$6;
|
|
23158
23138
|
let t1;
|
|
23159
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23139
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23160
23140
|
t1 = (path) => {
|
|
23161
23141
|
const storageKey_0 = `collection_config::${stripCollectionPath(path)}`;
|
|
23162
23142
|
if (configCache.current[storageKey_0]) {
|
|
@@ -23170,7 +23150,7 @@
|
|
|
23170
23150
|
}
|
|
23171
23151
|
const getCollectionConfig = t1;
|
|
23172
23152
|
let t2;
|
|
23173
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23153
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23174
23154
|
t2 = (path_0, data) => {
|
|
23175
23155
|
const storageKey_1 = `collection_config::${stripCollectionPath(path_0)}`;
|
|
23176
23156
|
localStorage.setItem(storageKey_1, JSON.stringify(data));
|
|
@@ -23184,7 +23164,7 @@
|
|
|
23184
23164
|
}
|
|
23185
23165
|
const onCollectionModified = t2;
|
|
23186
23166
|
let t3;
|
|
23187
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23167
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23188
23168
|
t3 = [];
|
|
23189
23169
|
$[3] = t3;
|
|
23190
23170
|
} else {
|
|
@@ -23192,7 +23172,7 @@
|
|
|
23192
23172
|
}
|
|
23193
23173
|
const [recentlyVisitedPaths, _setRecentlyVisitedPaths] = React.useState(t3);
|
|
23194
23174
|
let t4;
|
|
23195
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23175
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23196
23176
|
t4 = [];
|
|
23197
23177
|
$[4] = t4;
|
|
23198
23178
|
} else {
|
|
@@ -23200,7 +23180,7 @@
|
|
|
23200
23180
|
}
|
|
23201
23181
|
const [favouritePaths, _setFavouritePaths] = React.useState(t4);
|
|
23202
23182
|
let t5;
|
|
23203
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23183
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23204
23184
|
t5 = [];
|
|
23205
23185
|
$[5] = t5;
|
|
23206
23186
|
} else {
|
|
@@ -23209,7 +23189,7 @@
|
|
|
23209
23189
|
const [collapsedGroups, _setCollapsedGroups] = React.useState(t5);
|
|
23210
23190
|
let t6;
|
|
23211
23191
|
let t7;
|
|
23212
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23192
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23213
23193
|
t6 = () => {
|
|
23214
23194
|
_setRecentlyVisitedPaths(localStorage.getItem("recently_visited_paths") ? JSON.parse(localStorage.getItem("recently_visited_paths")) : []);
|
|
23215
23195
|
_setFavouritePaths(localStorage.getItem("favourite_paths") ? JSON.parse(localStorage.getItem("favourite_paths")) : []);
|
|
@@ -23224,7 +23204,7 @@
|
|
|
23224
23204
|
}
|
|
23225
23205
|
React.useEffect(t6, t7);
|
|
23226
23206
|
let t8;
|
|
23227
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23207
|
+
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23228
23208
|
t8 = (paths) => {
|
|
23229
23209
|
localStorage.setItem("recently_visited_paths", JSON.stringify(paths));
|
|
23230
23210
|
_setRecentlyVisitedPaths(paths);
|
|
@@ -23235,7 +23215,7 @@
|
|
|
23235
23215
|
}
|
|
23236
23216
|
const setRecentlyVisitedPaths = t8;
|
|
23237
23217
|
let t9;
|
|
23238
|
-
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23218
|
+
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23239
23219
|
t9 = (paths_0) => {
|
|
23240
23220
|
localStorage.setItem("favourite_paths", JSON.stringify(paths_0));
|
|
23241
23221
|
_setFavouritePaths(paths_0);
|
|
@@ -23246,7 +23226,7 @@
|
|
|
23246
23226
|
}
|
|
23247
23227
|
const setFavouritePaths = t9;
|
|
23248
23228
|
let t10;
|
|
23249
|
-
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23229
|
+
if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23250
23230
|
t10 = (paths_1) => {
|
|
23251
23231
|
localStorage.setItem("collapsed_groups", JSON.stringify(paths_1));
|
|
23252
23232
|
_setCollapsedGroups(paths_1);
|
|
@@ -23540,7 +23520,7 @@
|
|
|
23540
23520
|
t2 = $[3];
|
|
23541
23521
|
}
|
|
23542
23522
|
let t3;
|
|
23543
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23523
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23544
23524
|
t3 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: "Are you sure you want to leave this page?" });
|
|
23545
23525
|
$[4] = t3;
|
|
23546
23526
|
} else {
|
|
@@ -23969,7 +23949,7 @@
|
|
|
23969
23949
|
const preRef = React.useRef(null);
|
|
23970
23950
|
const t2 = mode === "dark" ? prismReactRenderer.themes.vsDark : prismReactRenderer.themes.github;
|
|
23971
23951
|
let t3;
|
|
23972
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23952
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
23973
23953
|
t3 = (t42) => {
|
|
23974
23954
|
const {
|
|
23975
23955
|
style,
|
|
@@ -24605,7 +24585,7 @@
|
|
|
24605
24585
|
const location = reactRouterDom.useLocation();
|
|
24606
24586
|
const navigate = reactRouterDom.useNavigate();
|
|
24607
24587
|
let t0;
|
|
24608
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
24588
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
24609
24589
|
t0 = [];
|
|
24610
24590
|
$[0] = t0;
|
|
24611
24591
|
} else {
|
|
@@ -24614,7 +24594,7 @@
|
|
|
24614
24594
|
const [sidePanels, setSidePanels] = React.useState(t0);
|
|
24615
24595
|
const sidePanelsRef = React.useRef(sidePanels);
|
|
24616
24596
|
let t1;
|
|
24617
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
24597
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
24618
24598
|
t1 = {};
|
|
24619
24599
|
$[1] = t1;
|
|
24620
24600
|
} else {
|
|
@@ -24623,7 +24603,7 @@
|
|
|
24623
24603
|
const routesStore = React.useRef(t1);
|
|
24624
24604
|
const routesCount = React.useRef(0);
|
|
24625
24605
|
let t2;
|
|
24626
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
24606
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
24627
24607
|
t2 = (newPanels) => {
|
|
24628
24608
|
sidePanelsRef.current = newPanels;
|
|
24629
24609
|
setSidePanels(newPanels);
|
|
@@ -25277,7 +25257,7 @@
|
|
|
25277
25257
|
const {
|
|
25278
25258
|
isActive
|
|
25279
25259
|
} = t52;
|
|
25280
|
-
return ui.cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75
|
|
25260
|
+
return ui.cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white", "flex flex-row items-center mr-8", drawerOpen ? "pl-4 h-10" : "pl-4 h-9", "font-semibold text-xs", isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50" : "");
|
|
25281
25261
|
};
|
|
25282
25262
|
$[4] = drawerOpen;
|
|
25283
25263
|
$[5] = t4;
|
|
@@ -25287,7 +25267,7 @@
|
|
|
25287
25267
|
const t5 = drawerOpen ? "opacity-100" : "opacity-0 hidden";
|
|
25288
25268
|
let t6;
|
|
25289
25269
|
if ($[6] !== t5) {
|
|
25290
|
-
t6 = ui.cls(
|
|
25270
|
+
t6 = ui.cls(t5, "ml-4 font-inherit text-inherit");
|
|
25291
25271
|
$[6] = t5;
|
|
25292
25272
|
$[7] = t6;
|
|
25293
25273
|
} else {
|
|
@@ -25425,7 +25405,7 @@
|
|
|
25425
25405
|
t7 = $[39];
|
|
25426
25406
|
}
|
|
25427
25407
|
t2 = "mt-4 flex-grow overflow-scroll no-scrollbar";
|
|
25428
|
-
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
25408
|
+
if ($[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
25429
25409
|
t3 = {
|
|
25430
25410
|
maskImage: "linear-gradient(to bottom, transparent 0, black 20px, black calc(100% - 20px), transparent 100%)"
|
|
25431
25411
|
};
|
|
@@ -25435,7 +25415,7 @@
|
|
|
25435
25415
|
}
|
|
25436
25416
|
let t10;
|
|
25437
25417
|
if ($[41] !== adminMenuOpen || $[42] !== buildGroupHeader || $[43] !== drawerOpen || $[44] !== navigationEntries || $[45] !== onClick || $[46] !== tooltipsOpen) {
|
|
25438
|
-
t10 = (group_0) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30
|
|
25418
|
+
t10 = (group_0) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 my-4 rounded-lg ml-3 mr-1", children: [
|
|
25439
25419
|
buildGroupHeader(group_0),
|
|
25440
25420
|
Object.values(navigationEntries).filter((e_0) => e_0.group === group_0).map((view_0) => /* @__PURE__ */ jsxRuntime.jsx(DrawerNavigationItem, { icon: /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: view_0.collection ?? view_0.view, size: "small" }), tooltipsOpen, adminMenuOpen, drawerOpen, onClick: () => onClick(view_0), url: view_0.url, name: view_0.name }, view_0.id))
|
|
25441
25421
|
] }, `drawer_group_${group_0}`);
|
|
@@ -25545,7 +25525,7 @@
|
|
|
25545
25525
|
t2 = $[1];
|
|
25546
25526
|
}
|
|
25547
25527
|
let t3;
|
|
25548
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
25528
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
25549
25529
|
t3 = ui.cls("cursor-pointer rounded ml-3 mr-1");
|
|
25550
25530
|
$[2] = t3;
|
|
25551
25531
|
} else {
|
|
@@ -25620,7 +25600,7 @@
|
|
|
25620
25600
|
t3 = $[3];
|
|
25621
25601
|
}
|
|
25622
25602
|
let t4;
|
|
25623
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
25603
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
25624
25604
|
t4 = ui.cls("w-full");
|
|
25625
25605
|
$[4] = t4;
|
|
25626
25606
|
} else {
|
|
@@ -26225,7 +26205,7 @@
|
|
|
26225
26205
|
let t62;
|
|
26226
26206
|
let t7;
|
|
26227
26207
|
if ($[18] !== navigation || $[19] !== navigationEntries[0].id || $[20] !== navigationEntries[0].path) {
|
|
26228
|
-
t7 = Symbol.for("react.early_return_sentinel");
|
|
26208
|
+
t7 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
26229
26209
|
bb0: {
|
|
26230
26210
|
let collection;
|
|
26231
26211
|
collection = navigation.getCollectionById(navigationEntries[0].id);
|
|
@@ -26237,7 +26217,7 @@
|
|
|
26237
26217
|
break bb0;
|
|
26238
26218
|
}
|
|
26239
26219
|
let t8;
|
|
26240
|
-
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26220
|
+
if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26241
26221
|
t8 = [];
|
|
26242
26222
|
$[23] = t8;
|
|
26243
26223
|
} else {
|
|
@@ -26254,7 +26234,7 @@
|
|
|
26254
26234
|
t62 = $[21];
|
|
26255
26235
|
t7 = $[22];
|
|
26256
26236
|
}
|
|
26257
|
-
if (t7 !== Symbol.for("react.early_return_sentinel")) {
|
|
26237
|
+
if (t7 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
26258
26238
|
return t7;
|
|
26259
26239
|
}
|
|
26260
26240
|
return t62;
|
|
@@ -26265,7 +26245,7 @@
|
|
|
26265
26245
|
let t62;
|
|
26266
26246
|
let t7;
|
|
26267
26247
|
if ($[24] !== navigation || $[25] !== navigationEntries[0]) {
|
|
26268
|
-
t7 = Symbol.for("react.early_return_sentinel");
|
|
26248
|
+
t7 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
26269
26249
|
bb1: {
|
|
26270
26250
|
let collection_0;
|
|
26271
26251
|
const firstEntry = navigationEntries[0];
|
|
@@ -26278,7 +26258,7 @@
|
|
|
26278
26258
|
break bb1;
|
|
26279
26259
|
}
|
|
26280
26260
|
let t8;
|
|
26281
|
-
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26261
|
+
if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26282
26262
|
t8 = [];
|
|
26283
26263
|
$[28] = t8;
|
|
26284
26264
|
} else {
|
|
@@ -26294,7 +26274,7 @@
|
|
|
26294
26274
|
t62 = $[26];
|
|
26295
26275
|
t7 = $[27];
|
|
26296
26276
|
}
|
|
26297
|
-
if (t7 !== Symbol.for("react.early_return_sentinel")) {
|
|
26277
|
+
if (t7 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
26298
26278
|
return t7;
|
|
26299
26279
|
}
|
|
26300
26280
|
return t62;
|
|
@@ -26460,7 +26440,7 @@
|
|
|
26460
26440
|
t1 = $[1];
|
|
26461
26441
|
}
|
|
26462
26442
|
let t2;
|
|
26463
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26443
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26464
26444
|
t2 = [];
|
|
26465
26445
|
$[2] = t2;
|
|
26466
26446
|
} else {
|
|
@@ -26651,7 +26631,7 @@
|
|
|
26651
26631
|
const [drawerOpen, setDrawerOpen] = React.useState(false);
|
|
26652
26632
|
const [onHover, setOnHover] = React.useState(false);
|
|
26653
26633
|
let t4;
|
|
26654
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26634
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26655
26635
|
t4 = () => setOnHover(true);
|
|
26656
26636
|
$[6] = t4;
|
|
26657
26637
|
} else {
|
|
@@ -26659,7 +26639,7 @@
|
|
|
26659
26639
|
}
|
|
26660
26640
|
const setOnHoverTrue = t4;
|
|
26661
26641
|
let t5;
|
|
26662
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26642
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26663
26643
|
t5 = () => setOnHover(false);
|
|
26664
26644
|
$[7] = t5;
|
|
26665
26645
|
} else {
|
|
@@ -26667,7 +26647,7 @@
|
|
|
26667
26647
|
}
|
|
26668
26648
|
const setOnHoverFalse = t5;
|
|
26669
26649
|
let t6;
|
|
26670
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26650
|
+
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26671
26651
|
t6 = () => {
|
|
26672
26652
|
setDrawerOpen(true);
|
|
26673
26653
|
};
|
|
@@ -26677,7 +26657,7 @@
|
|
|
26677
26657
|
}
|
|
26678
26658
|
const handleDrawerOpen = t6;
|
|
26679
26659
|
let t7;
|
|
26680
|
-
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26660
|
+
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26681
26661
|
t7 = () => {
|
|
26682
26662
|
setDrawerOpen(false);
|
|
26683
26663
|
};
|
|
@@ -26826,7 +26806,7 @@
|
|
|
26826
26806
|
const DrawerHeader = () => {
|
|
26827
26807
|
const $ = reactCompilerRuntime.c(1);
|
|
26828
26808
|
let t0;
|
|
26829
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26809
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26830
26810
|
t0 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col min-h-16" });
|
|
26831
26811
|
$[0] = t0;
|
|
26832
26812
|
} else {
|
|
@@ -26866,7 +26846,7 @@
|
|
|
26866
26846
|
t3 = $[5];
|
|
26867
26847
|
}
|
|
26868
26848
|
let t4;
|
|
26869
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26849
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26870
26850
|
t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.ChevronLeftIcon, {});
|
|
26871
26851
|
$[6] = t4;
|
|
26872
26852
|
} else {
|
|
@@ -26927,7 +26907,7 @@
|
|
|
26927
26907
|
t92 = $[20];
|
|
26928
26908
|
}
|
|
26929
26909
|
let t102;
|
|
26930
|
-
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26910
|
+
if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
26931
26911
|
t102 = /* @__PURE__ */ jsxRuntime.jsx(ui.MenuIcon, {});
|
|
26932
26912
|
$[21] = t102;
|
|
26933
26913
|
} else {
|
|
@@ -26943,7 +26923,7 @@
|
|
|
26943
26923
|
}
|
|
26944
26924
|
let t12;
|
|
26945
26925
|
if ($[24] !== innerDrawer || $[25] !== props.open || $[26] !== props.setDrawerOpen) {
|
|
26946
|
-
t12 = /* @__PURE__ */ jsxRuntime.jsx(ui.Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80
|
|
26926
|
+
t12 = /* @__PURE__ */ jsxRuntime.jsx(ui.Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80", children: innerDrawer });
|
|
26947
26927
|
$[24] = innerDrawer;
|
|
26948
26928
|
$[25] = props.open;
|
|
26949
26929
|
$[26] = props.setDrawerOpen;
|