@firecms/collection_editor 3.0.0-canary.167 → 3.0.0-canary.169
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 +490 -338
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +489 -337
- package/dist/index.umd.js.map +1 -1
- package/dist/ui/collection_editor/LayoutModeSwitch.d.ts +5 -0
- package/package.json +8 -8
- package/src/ConfigControllerProvider.tsx +1 -1
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +9 -1
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +2 -2
- package/src/ui/collection_editor/EnumForm.tsx +1 -1
- package/src/ui/collection_editor/LayoutModeSwitch.tsx +53 -0
- package/src/ui/collection_editor/import/CollectionEditorImportDataPreview.tsx +1 -0
package/dist/index.umd.js
CHANGED
|
@@ -28,8 +28,140 @@
|
|
|
28
28
|
const useCollectionEditorController = () => {
|
|
29
29
|
return React.useContext(CollectionEditorContext);
|
|
30
30
|
};
|
|
31
|
+
function LayoutModeSwitch(t0) {
|
|
32
|
+
const $ = reactCompilerRuntime.c(28);
|
|
33
|
+
const {
|
|
34
|
+
value,
|
|
35
|
+
onChange,
|
|
36
|
+
className
|
|
37
|
+
} = t0;
|
|
38
|
+
let t1;
|
|
39
|
+
if ($[0] !== className) {
|
|
40
|
+
t1 = ui.cls(className);
|
|
41
|
+
$[0] = className;
|
|
42
|
+
$[1] = t1;
|
|
43
|
+
} else {
|
|
44
|
+
t1 = $[1];
|
|
45
|
+
}
|
|
46
|
+
let t2;
|
|
47
|
+
let t3;
|
|
48
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49
|
+
t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "label", color: "secondary", className: "ml-3.5", children: "Document view" });
|
|
50
|
+
t3 = ui.cls("flex flex-row gap-4");
|
|
51
|
+
$[2] = t2;
|
|
52
|
+
$[3] = t3;
|
|
53
|
+
} else {
|
|
54
|
+
t2 = $[2];
|
|
55
|
+
t3 = $[3];
|
|
56
|
+
}
|
|
57
|
+
let t4;
|
|
58
|
+
if ($[4] !== onChange) {
|
|
59
|
+
t4 = () => onChange("side_panel");
|
|
60
|
+
$[4] = onChange;
|
|
61
|
+
$[5] = t4;
|
|
62
|
+
} else {
|
|
63
|
+
t4 = $[5];
|
|
64
|
+
}
|
|
65
|
+
const t5 = value === "side_panel" ? "border-primary dark:border-primary" : "border-surface-400 dark:border-surface-600";
|
|
66
|
+
let t6;
|
|
67
|
+
if ($[6] !== t5) {
|
|
68
|
+
t6 = ui.cls("my-2 rounded-md mx-0 p-4 focus:outline-none transition ease-in-out duration-150 flex flex-row gap-4 items-center", "text-surface-700 dark:text-surface-accent-300", "hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary", t5);
|
|
69
|
+
$[6] = t5;
|
|
70
|
+
$[7] = t6;
|
|
71
|
+
} else {
|
|
72
|
+
t6 = $[7];
|
|
73
|
+
}
|
|
74
|
+
let t7;
|
|
75
|
+
let t8;
|
|
76
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
77
|
+
t7 = /* @__PURE__ */ jsxRuntime.jsx(ui.VerticalSplitIcon, {});
|
|
78
|
+
t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "label", children: "Side panel" });
|
|
79
|
+
$[8] = t7;
|
|
80
|
+
$[9] = t8;
|
|
81
|
+
} else {
|
|
82
|
+
t7 = $[8];
|
|
83
|
+
t8 = $[9];
|
|
84
|
+
}
|
|
85
|
+
let t9;
|
|
86
|
+
if ($[10] !== t4 || $[11] !== t6) {
|
|
87
|
+
t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "Documents are open in a side panel", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { onClick: t4, className: t6, children: [
|
|
88
|
+
t7,
|
|
89
|
+
t8
|
|
90
|
+
] }) });
|
|
91
|
+
$[10] = t4;
|
|
92
|
+
$[11] = t6;
|
|
93
|
+
$[12] = t9;
|
|
94
|
+
} else {
|
|
95
|
+
t9 = $[12];
|
|
96
|
+
}
|
|
97
|
+
let t10;
|
|
98
|
+
if ($[13] !== onChange) {
|
|
99
|
+
t10 = () => onChange("full_screen");
|
|
100
|
+
$[13] = onChange;
|
|
101
|
+
$[14] = t10;
|
|
102
|
+
} else {
|
|
103
|
+
t10 = $[14];
|
|
104
|
+
}
|
|
105
|
+
const t11 = value === "full_screen" ? "border-primary dark:border-primary" : "border-surface-400 dark:border-surface-600";
|
|
106
|
+
let t12;
|
|
107
|
+
if ($[15] !== t11) {
|
|
108
|
+
t12 = ui.cls("my-2 rounded-md mx-0 p-4 focus:outline-none transition ease-in-out duration-150 flex flex-row gap-4 items-center", "text-surface-700 dark:text-surface-accent-300", "hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary", t11);
|
|
109
|
+
$[15] = t11;
|
|
110
|
+
$[16] = t12;
|
|
111
|
+
} else {
|
|
112
|
+
t12 = $[16];
|
|
113
|
+
}
|
|
114
|
+
let t13;
|
|
115
|
+
let t14;
|
|
116
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
117
|
+
t13 = /* @__PURE__ */ jsxRuntime.jsx(ui.SquareIcon, {});
|
|
118
|
+
t14 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "label", children: "Full screen" });
|
|
119
|
+
$[17] = t13;
|
|
120
|
+
$[18] = t14;
|
|
121
|
+
} else {
|
|
122
|
+
t13 = $[17];
|
|
123
|
+
t14 = $[18];
|
|
124
|
+
}
|
|
125
|
+
let t15;
|
|
126
|
+
if ($[19] !== t10 || $[20] !== t12) {
|
|
127
|
+
t15 = /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "Documents are open full-screen", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { onClick: t10, className: t12, children: [
|
|
128
|
+
t13,
|
|
129
|
+
t14
|
|
130
|
+
] }) });
|
|
131
|
+
$[19] = t10;
|
|
132
|
+
$[20] = t12;
|
|
133
|
+
$[21] = t15;
|
|
134
|
+
} else {
|
|
135
|
+
t15 = $[21];
|
|
136
|
+
}
|
|
137
|
+
let t16;
|
|
138
|
+
if ($[22] !== t15 || $[23] !== t9) {
|
|
139
|
+
t16 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t3, children: [
|
|
140
|
+
t9,
|
|
141
|
+
t15
|
|
142
|
+
] });
|
|
143
|
+
$[22] = t15;
|
|
144
|
+
$[23] = t9;
|
|
145
|
+
$[24] = t16;
|
|
146
|
+
} else {
|
|
147
|
+
t16 = $[24];
|
|
148
|
+
}
|
|
149
|
+
let t17;
|
|
150
|
+
if ($[25] !== t1 || $[26] !== t16) {
|
|
151
|
+
t17 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t1, children: [
|
|
152
|
+
t2,
|
|
153
|
+
t16
|
|
154
|
+
] });
|
|
155
|
+
$[25] = t1;
|
|
156
|
+
$[26] = t16;
|
|
157
|
+
$[27] = t17;
|
|
158
|
+
} else {
|
|
159
|
+
t17 = $[27];
|
|
160
|
+
}
|
|
161
|
+
return t17;
|
|
162
|
+
}
|
|
31
163
|
function CollectionDetailsForm(t0) {
|
|
32
|
-
const $ = reactCompilerRuntime.c(
|
|
164
|
+
const $ = reactCompilerRuntime.c(174);
|
|
33
165
|
const {
|
|
34
166
|
isNewCollection,
|
|
35
167
|
reservedGroups,
|
|
@@ -318,235 +450,253 @@
|
|
|
318
450
|
}, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow", children: group_0 }) }, index + "_" + group_0)) }),
|
|
319
451
|
/* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: showErrors && Boolean(errors.group) ? errors.group : "Group in the home page" })
|
|
320
452
|
] });
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
]
|
|
327
|
-
|
|
453
|
+
const t38 = values.openEntityMode ?? "side_panel";
|
|
454
|
+
let t39;
|
|
455
|
+
if ($[55] !== setFieldValue) {
|
|
456
|
+
t39 = (value) => setFieldValue("openEntityMode", value);
|
|
457
|
+
$[55] = setFieldValue;
|
|
458
|
+
$[56] = t39;
|
|
459
|
+
} else {
|
|
460
|
+
t39 = $[56];
|
|
461
|
+
}
|
|
462
|
+
let t40;
|
|
463
|
+
if ($[57] !== t38 || $[58] !== t39) {
|
|
464
|
+
t40 = /* @__PURE__ */ jsxRuntime.jsx(LayoutModeSwitch, { className: "col-span-12", value: t38, onChange: t39 });
|
|
465
|
+
$[57] = t38;
|
|
466
|
+
$[58] = t39;
|
|
467
|
+
$[59] = t40;
|
|
328
468
|
} else {
|
|
329
|
-
|
|
469
|
+
t40 = $[59];
|
|
330
470
|
}
|
|
331
|
-
const t39 = !isNewCollection;
|
|
332
|
-
const t40 = showErrors && Boolean(errors.id);
|
|
333
471
|
let t41;
|
|
334
|
-
if ($[
|
|
335
|
-
t41 = /* @__PURE__ */ jsxRuntime.
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
472
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
473
|
+
t41 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
474
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, {}),
|
|
475
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
|
|
476
|
+
] });
|
|
477
|
+
$[60] = t41;
|
|
339
478
|
} else {
|
|
340
|
-
t41 = $[
|
|
479
|
+
t41 = $[60];
|
|
341
480
|
}
|
|
342
|
-
const t42 =
|
|
343
|
-
const t43 =
|
|
481
|
+
const t42 = !isNewCollection;
|
|
482
|
+
const t43 = showErrors && Boolean(errors.id);
|
|
344
483
|
let t44;
|
|
345
|
-
if ($[
|
|
346
|
-
t44 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[61] = t44;
|
|
350
|
-
} else {
|
|
351
|
-
t44 = $[61];
|
|
352
|
-
}
|
|
353
|
-
let t45;
|
|
354
|
-
if ($[62] !== t41 || $[63] !== t44) {
|
|
355
|
-
t45 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
356
|
-
t41,
|
|
357
|
-
t44
|
|
358
|
-
] });
|
|
359
|
-
$[62] = t41;
|
|
484
|
+
if ($[61] !== t42 || $[62] !== t43) {
|
|
485
|
+
t44 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: "id", as: ui.DebouncedTextField, disabled: t42, label: "Collection id", error: t43 });
|
|
486
|
+
$[61] = t42;
|
|
487
|
+
$[62] = t43;
|
|
360
488
|
$[63] = t44;
|
|
361
|
-
$[64] = t45;
|
|
362
489
|
} else {
|
|
363
|
-
|
|
490
|
+
t44 = $[63];
|
|
364
491
|
}
|
|
365
|
-
const
|
|
492
|
+
const t45 = touched.id && Boolean(errors.id);
|
|
493
|
+
const t46 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
|
|
366
494
|
let t47;
|
|
367
|
-
if ($[
|
|
368
|
-
t47 = (
|
|
495
|
+
if ($[64] !== t45 || $[65] !== t46) {
|
|
496
|
+
t47 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t45, children: t46 });
|
|
497
|
+
$[64] = t45;
|
|
498
|
+
$[65] = t46;
|
|
499
|
+
$[66] = t47;
|
|
500
|
+
} else {
|
|
501
|
+
t47 = $[66];
|
|
502
|
+
}
|
|
503
|
+
let t48;
|
|
504
|
+
if ($[67] !== t44 || $[68] !== t47) {
|
|
505
|
+
t48 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
506
|
+
t44,
|
|
507
|
+
t47
|
|
508
|
+
] });
|
|
509
|
+
$[67] = t44;
|
|
510
|
+
$[68] = t47;
|
|
511
|
+
$[69] = t48;
|
|
512
|
+
} else {
|
|
513
|
+
t48 = $[69];
|
|
514
|
+
}
|
|
515
|
+
const t49 = showErrors && Boolean(errors.singularName);
|
|
516
|
+
let t50;
|
|
517
|
+
if ($[70] !== handleChange || $[71] !== setFieldTouched) {
|
|
518
|
+
t50 = (e_0) => {
|
|
369
519
|
setFieldTouched("singularName", true);
|
|
370
520
|
return handleChange(e_0);
|
|
371
521
|
};
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
522
|
+
$[70] = handleChange;
|
|
523
|
+
$[71] = setFieldTouched;
|
|
524
|
+
$[72] = t50;
|
|
375
525
|
} else {
|
|
376
|
-
|
|
526
|
+
t50 = $[72];
|
|
377
527
|
}
|
|
378
|
-
const
|
|
379
|
-
let
|
|
380
|
-
if ($[
|
|
381
|
-
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
528
|
+
const t51 = values.singularName ?? "";
|
|
529
|
+
let t52;
|
|
530
|
+
if ($[73] !== t49 || $[74] !== t50 || $[75] !== t51) {
|
|
531
|
+
t52 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t49, name: "singularName", "aria-describedby": "singularName-helper", onChange: t50, value: t51, label: "Singular name" });
|
|
532
|
+
$[73] = t49;
|
|
533
|
+
$[74] = t50;
|
|
534
|
+
$[75] = t51;
|
|
535
|
+
$[76] = t52;
|
|
386
536
|
} else {
|
|
387
|
-
|
|
537
|
+
t52 = $[76];
|
|
388
538
|
}
|
|
389
|
-
const
|
|
390
|
-
const
|
|
391
|
-
let
|
|
392
|
-
if ($[
|
|
393
|
-
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
539
|
+
const t53 = showErrors && Boolean(errors.singularName);
|
|
540
|
+
const t54 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
|
|
541
|
+
let t55;
|
|
542
|
+
if ($[77] !== t53 || $[78] !== t54) {
|
|
543
|
+
t55 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t53, children: t54 });
|
|
544
|
+
$[77] = t53;
|
|
545
|
+
$[78] = t54;
|
|
546
|
+
$[79] = t55;
|
|
397
547
|
} else {
|
|
398
|
-
|
|
548
|
+
t55 = $[79];
|
|
399
549
|
}
|
|
400
|
-
let
|
|
401
|
-
if ($[
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
550
|
+
let t56;
|
|
551
|
+
if ($[80] !== t52 || $[81] !== t55) {
|
|
552
|
+
t56 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
553
|
+
t52,
|
|
554
|
+
t55
|
|
405
555
|
] });
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
556
|
+
$[80] = t52;
|
|
557
|
+
$[81] = t55;
|
|
558
|
+
$[82] = t56;
|
|
409
559
|
} else {
|
|
410
|
-
|
|
560
|
+
t56 = $[82];
|
|
411
561
|
}
|
|
412
|
-
const
|
|
413
|
-
let
|
|
414
|
-
if ($[
|
|
415
|
-
|
|
562
|
+
const t57 = showErrors && Boolean(errors.sideDialogWidth);
|
|
563
|
+
let t58;
|
|
564
|
+
if ($[83] !== setFieldTouched || $[84] !== setFieldValue) {
|
|
565
|
+
t58 = (e_1) => {
|
|
416
566
|
setFieldTouched("sideDialogWidth", true);
|
|
417
|
-
const
|
|
418
|
-
if (!
|
|
567
|
+
const value_0 = e_1.target.value;
|
|
568
|
+
if (!value_0) {
|
|
419
569
|
setFieldValue("sideDialogWidth", null);
|
|
420
570
|
} else {
|
|
421
|
-
if (!isNaN(Number(
|
|
422
|
-
setFieldValue("sideDialogWidth", Number(
|
|
571
|
+
if (!isNaN(Number(value_0))) {
|
|
572
|
+
setFieldValue("sideDialogWidth", Number(value_0));
|
|
423
573
|
}
|
|
424
574
|
}
|
|
425
575
|
};
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
576
|
+
$[83] = setFieldTouched;
|
|
577
|
+
$[84] = setFieldValue;
|
|
578
|
+
$[85] = t58;
|
|
429
579
|
} else {
|
|
430
|
-
|
|
580
|
+
t58 = $[85];
|
|
431
581
|
}
|
|
432
|
-
let
|
|
433
|
-
if ($[
|
|
434
|
-
|
|
582
|
+
let t59;
|
|
583
|
+
if ($[86] !== setFieldValue) {
|
|
584
|
+
t59 = () => {
|
|
435
585
|
setFieldValue("sideDialogWidth", null);
|
|
436
586
|
};
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
587
|
+
$[86] = setFieldValue;
|
|
588
|
+
$[87] = t59;
|
|
439
589
|
} else {
|
|
440
|
-
|
|
590
|
+
t59 = $[87];
|
|
441
591
|
}
|
|
442
|
-
const
|
|
443
|
-
let
|
|
444
|
-
if ($[
|
|
445
|
-
|
|
446
|
-
$[
|
|
447
|
-
} else {
|
|
448
|
-
t58 = $[83];
|
|
449
|
-
}
|
|
450
|
-
let t59;
|
|
451
|
-
if ($[84] !== t56 || $[85] !== t57) {
|
|
452
|
-
t59 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: t56, disabled: t57, children: t58 });
|
|
453
|
-
$[84] = t56;
|
|
454
|
-
$[85] = t57;
|
|
455
|
-
$[86] = t59;
|
|
592
|
+
const t60 = !values.sideDialogWidth;
|
|
593
|
+
let t61;
|
|
594
|
+
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
595
|
+
t61 = /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { size: "small" });
|
|
596
|
+
$[88] = t61;
|
|
456
597
|
} else {
|
|
457
|
-
|
|
598
|
+
t61 = $[88];
|
|
458
599
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
t61 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t54, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t55, endAdornment: t59, value: t60, label: "Side dialog width" });
|
|
463
|
-
$[87] = t54;
|
|
464
|
-
$[88] = t55;
|
|
600
|
+
let t62;
|
|
601
|
+
if ($[89] !== t59 || $[90] !== t60) {
|
|
602
|
+
t62 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: t59, disabled: t60, children: t61 });
|
|
465
603
|
$[89] = t59;
|
|
466
604
|
$[90] = t60;
|
|
467
|
-
$[91] =
|
|
605
|
+
$[91] = t62;
|
|
468
606
|
} else {
|
|
469
|
-
|
|
607
|
+
t62 = $[91];
|
|
470
608
|
}
|
|
471
|
-
const
|
|
472
|
-
const t63 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
|
|
609
|
+
const t63 = values.sideDialogWidth ?? "";
|
|
473
610
|
let t64;
|
|
474
|
-
if ($[92] !==
|
|
475
|
-
t64 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
476
|
-
$[92] =
|
|
477
|
-
$[93] =
|
|
478
|
-
$[94] =
|
|
479
|
-
|
|
480
|
-
t64 = $[94];
|
|
481
|
-
}
|
|
482
|
-
let t65;
|
|
483
|
-
if ($[95] !== t61 || $[96] !== t64) {
|
|
484
|
-
t65 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
485
|
-
t61,
|
|
486
|
-
t64
|
|
487
|
-
] });
|
|
488
|
-
$[95] = t61;
|
|
611
|
+
if ($[92] !== t57 || $[93] !== t58 || $[94] !== t62 || $[95] !== t63) {
|
|
612
|
+
t64 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t57, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t58, endAdornment: t62, value: t63, label: "Side dialog width" });
|
|
613
|
+
$[92] = t57;
|
|
614
|
+
$[93] = t58;
|
|
615
|
+
$[94] = t62;
|
|
616
|
+
$[95] = t63;
|
|
489
617
|
$[96] = t64;
|
|
618
|
+
} else {
|
|
619
|
+
t64 = $[96];
|
|
620
|
+
}
|
|
621
|
+
const t65 = showErrors && Boolean(errors.singularName);
|
|
622
|
+
const t66 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
|
|
623
|
+
let t67;
|
|
624
|
+
if ($[97] !== t65 || $[98] !== t66) {
|
|
625
|
+
t67 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t65, children: t66 });
|
|
490
626
|
$[97] = t65;
|
|
627
|
+
$[98] = t66;
|
|
628
|
+
$[99] = t67;
|
|
491
629
|
} else {
|
|
492
|
-
|
|
630
|
+
t67 = $[99];
|
|
493
631
|
}
|
|
494
|
-
const t66 = showErrors && Boolean(errors.description);
|
|
495
|
-
const t67 = values.description ?? "";
|
|
496
632
|
let t68;
|
|
497
|
-
if ($[
|
|
498
|
-
t68 = /* @__PURE__ */ jsxRuntime.
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
$[
|
|
633
|
+
if ($[100] !== t64 || $[101] !== t67) {
|
|
634
|
+
t68 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
635
|
+
t64,
|
|
636
|
+
t67
|
|
637
|
+
] });
|
|
638
|
+
$[100] = t64;
|
|
639
|
+
$[101] = t67;
|
|
640
|
+
$[102] = t68;
|
|
503
641
|
} else {
|
|
504
|
-
t68 = $[
|
|
642
|
+
t68 = $[102];
|
|
505
643
|
}
|
|
506
644
|
const t69 = showErrors && Boolean(errors.description);
|
|
507
|
-
const t70 =
|
|
645
|
+
const t70 = values.description ?? "";
|
|
508
646
|
let t71;
|
|
509
|
-
if ($[
|
|
510
|
-
t71 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
} else {
|
|
515
|
-
t71 = $[104];
|
|
516
|
-
}
|
|
517
|
-
let t72;
|
|
518
|
-
if ($[105] !== t68 || $[106] !== t71) {
|
|
519
|
-
t72 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
520
|
-
t68,
|
|
521
|
-
t71
|
|
522
|
-
] });
|
|
523
|
-
$[105] = t68;
|
|
647
|
+
if ($[103] !== handleChange || $[104] !== t69 || $[105] !== t70) {
|
|
648
|
+
t71 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t69, name: "description", value: t70, onChange: handleChange, multiline: true, rows: 2, "aria-describedby": "description-helper-text", label: "Description" });
|
|
649
|
+
$[103] = handleChange;
|
|
650
|
+
$[104] = t69;
|
|
651
|
+
$[105] = t70;
|
|
524
652
|
$[106] = t71;
|
|
525
|
-
$[107] = t72;
|
|
526
653
|
} else {
|
|
527
|
-
|
|
654
|
+
t71 = $[106];
|
|
528
655
|
}
|
|
529
|
-
const
|
|
656
|
+
const t72 = showErrors && Boolean(errors.description);
|
|
657
|
+
const t73 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
|
|
530
658
|
let t74;
|
|
531
|
-
if ($[108]
|
|
532
|
-
t74 =
|
|
533
|
-
$[
|
|
659
|
+
if ($[107] !== t72 || $[108] !== t73) {
|
|
660
|
+
t74 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t72, children: t73 });
|
|
661
|
+
$[107] = t72;
|
|
662
|
+
$[108] = t73;
|
|
663
|
+
$[109] = t74;
|
|
534
664
|
} else {
|
|
535
|
-
t74 = $[
|
|
665
|
+
t74 = $[109];
|
|
536
666
|
}
|
|
537
667
|
let t75;
|
|
538
|
-
if ($[
|
|
539
|
-
t75 = /* @__PURE__ */ jsxRuntime.
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
668
|
+
if ($[110] !== t71 || $[111] !== t74) {
|
|
669
|
+
t75 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
670
|
+
t71,
|
|
671
|
+
t74
|
|
672
|
+
] });
|
|
673
|
+
$[110] = t71;
|
|
674
|
+
$[111] = t74;
|
|
675
|
+
$[112] = t75;
|
|
543
676
|
} else {
|
|
544
|
-
t75 = $[
|
|
677
|
+
t75 = $[112];
|
|
545
678
|
}
|
|
546
|
-
const t76 =
|
|
679
|
+
const t76 = values.defaultSize ?? "";
|
|
547
680
|
let t77;
|
|
548
|
-
if ($[
|
|
549
|
-
t77 = (
|
|
681
|
+
if ($[113] === Symbol.for("react.memo_cache_sentinel")) {
|
|
682
|
+
t77 = ["xs", "s", "m", "l", "xl"].map(_temp2$7);
|
|
683
|
+
$[113] = t77;
|
|
684
|
+
} else {
|
|
685
|
+
t77 = $[113];
|
|
686
|
+
}
|
|
687
|
+
let t78;
|
|
688
|
+
if ($[114] !== handleChange || $[115] !== t76) {
|
|
689
|
+
t78 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Select, { name: "defaultSize", size: "large", fullWidth: true, label: "Default row size", position: "item-aligned", onChange: handleChange, value: t76, renderValue: _temp$b, children: t77 }) });
|
|
690
|
+
$[114] = handleChange;
|
|
691
|
+
$[115] = t76;
|
|
692
|
+
$[116] = t78;
|
|
693
|
+
} else {
|
|
694
|
+
t78 = $[116];
|
|
695
|
+
}
|
|
696
|
+
const t79 = customIdValue === "code_defined";
|
|
697
|
+
let t80;
|
|
698
|
+
if ($[117] !== setFieldValue) {
|
|
699
|
+
t80 = (v) => {
|
|
550
700
|
if (v === "code_defined") {
|
|
551
701
|
throw new Error("This should not happen");
|
|
552
702
|
} else {
|
|
@@ -563,226 +713,228 @@
|
|
|
563
713
|
}
|
|
564
714
|
}
|
|
565
715
|
};
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
716
|
+
$[117] = setFieldValue;
|
|
717
|
+
$[118] = t80;
|
|
568
718
|
} else {
|
|
569
|
-
|
|
570
|
-
}
|
|
571
|
-
const t78 = customIdValue ?? "";
|
|
572
|
-
let t79;
|
|
573
|
-
let t80;
|
|
574
|
-
let t81;
|
|
575
|
-
if ($[114] === Symbol.for("react.memo_cache_sentinel")) {
|
|
576
|
-
t79 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: "Document ID is generated automatically" });
|
|
577
|
-
t80 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: "Users must define an ID" });
|
|
578
|
-
t81 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
|
|
579
|
-
$[114] = t79;
|
|
580
|
-
$[115] = t80;
|
|
581
|
-
$[116] = t81;
|
|
582
|
-
} else {
|
|
583
|
-
t79 = $[114];
|
|
584
|
-
t80 = $[115];
|
|
585
|
-
t81 = $[116];
|
|
719
|
+
t80 = $[118];
|
|
586
720
|
}
|
|
721
|
+
const t81 = customIdValue ?? "";
|
|
587
722
|
let t82;
|
|
588
|
-
if ($[117] !== t76 || $[118] !== t77 || $[119] !== t78) {
|
|
589
|
-
t82 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { name: "customId", label: "Document IDs generation", position: "item-aligned", size: "large", fullWidth: true, disabled: t76, onValueChange: t77, value: t78, renderValue: _temp3$4, children: [
|
|
590
|
-
t79,
|
|
591
|
-
t80,
|
|
592
|
-
t81
|
|
593
|
-
] }) });
|
|
594
|
-
$[117] = t76;
|
|
595
|
-
$[118] = t77;
|
|
596
|
-
$[119] = t78;
|
|
597
|
-
$[120] = t82;
|
|
598
|
-
} else {
|
|
599
|
-
t82 = $[120];
|
|
600
|
-
}
|
|
601
723
|
let t83;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
724
|
+
let t84;
|
|
725
|
+
if ($[119] === Symbol.for("react.memo_cache_sentinel")) {
|
|
726
|
+
t82 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: "Document ID is generated automatically" });
|
|
727
|
+
t83 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: "Users must define an ID" });
|
|
728
|
+
t84 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
|
|
729
|
+
$[119] = t82;
|
|
730
|
+
$[120] = t83;
|
|
731
|
+
$[121] = t84;
|
|
732
|
+
} else {
|
|
733
|
+
t82 = $[119];
|
|
734
|
+
t83 = $[120];
|
|
735
|
+
t84 = $[121];
|
|
608
736
|
}
|
|
609
|
-
const t84 = values.collectionGroup ?? false;
|
|
610
737
|
let t85;
|
|
611
|
-
if ($[123] !==
|
|
612
|
-
t85 = /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
613
|
-
|
|
614
|
-
|
|
738
|
+
if ($[122] !== t79 || $[123] !== t80 || $[124] !== t81) {
|
|
739
|
+
t85 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { name: "customId", label: "Document IDs generation", position: "item-aligned", size: "large", fullWidth: true, disabled: t79, onValueChange: t80, value: t81, renderValue: _temp3$4, children: [
|
|
740
|
+
t82,
|
|
741
|
+
t83,
|
|
742
|
+
t84
|
|
743
|
+
] }) });
|
|
744
|
+
$[122] = t79;
|
|
745
|
+
$[123] = t80;
|
|
746
|
+
$[124] = t81;
|
|
615
747
|
$[125] = t85;
|
|
616
748
|
} else {
|
|
617
749
|
t85 = $[125];
|
|
618
750
|
}
|
|
619
751
|
let t86;
|
|
620
|
-
if ($[126]
|
|
621
|
-
t86 =
|
|
622
|
-
$[126] =
|
|
623
|
-
|
|
624
|
-
t86 = $[126];
|
|
625
|
-
}
|
|
626
|
-
let t87;
|
|
627
|
-
if ($[127] !== t85) {
|
|
628
|
-
t87 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
629
|
-
t85,
|
|
630
|
-
t86
|
|
631
|
-
] });
|
|
632
|
-
$[127] = t85;
|
|
633
|
-
$[128] = t87;
|
|
752
|
+
if ($[126] !== setFieldValue) {
|
|
753
|
+
t86 = (v_0) => setFieldValue("collectionGroup", v_0);
|
|
754
|
+
$[126] = setFieldValue;
|
|
755
|
+
$[127] = t86;
|
|
634
756
|
} else {
|
|
635
|
-
|
|
757
|
+
t86 = $[127];
|
|
636
758
|
}
|
|
759
|
+
const t87 = values.collectionGroup ?? false;
|
|
637
760
|
let t88;
|
|
638
|
-
if ($[129] !==
|
|
639
|
-
t88 = (
|
|
640
|
-
$[
|
|
761
|
+
if ($[128] !== t86 || $[129] !== t87) {
|
|
762
|
+
t88 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", label: "Collection group", onValueChange: t86, value: t87 });
|
|
763
|
+
$[128] = t86;
|
|
764
|
+
$[129] = t87;
|
|
641
765
|
$[130] = t88;
|
|
642
766
|
} else {
|
|
643
767
|
t88 = $[130];
|
|
644
768
|
}
|
|
645
|
-
|
|
769
|
+
let t89;
|
|
770
|
+
if ($[131] === Symbol.for("react.memo_cache_sentinel")) {
|
|
771
|
+
t89 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "A collection group consists of all collections with the same path. This allows you to query over multiple collections at once." });
|
|
772
|
+
$[131] = t89;
|
|
773
|
+
} else {
|
|
774
|
+
t89 = $[131];
|
|
775
|
+
}
|
|
646
776
|
let t90;
|
|
647
|
-
if ($[
|
|
648
|
-
t90 = /* @__PURE__ */ jsxRuntime.
|
|
649
|
-
|
|
650
|
-
|
|
777
|
+
if ($[132] !== t88) {
|
|
778
|
+
t90 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
779
|
+
t88,
|
|
780
|
+
t89
|
|
781
|
+
] });
|
|
782
|
+
$[132] = t88;
|
|
651
783
|
$[133] = t90;
|
|
652
784
|
} else {
|
|
653
785
|
t90 = $[133];
|
|
654
786
|
}
|
|
655
787
|
let t91;
|
|
656
|
-
if ($[134]
|
|
657
|
-
t91 =
|
|
658
|
-
$[134] =
|
|
788
|
+
if ($[134] !== setFieldValue) {
|
|
789
|
+
t91 = (v_1) => setFieldValue("textSearchEnabled", v_1);
|
|
790
|
+
$[134] = setFieldValue;
|
|
791
|
+
$[135] = t91;
|
|
659
792
|
} else {
|
|
660
|
-
t91 = $[
|
|
793
|
+
t91 = $[135];
|
|
661
794
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
795
|
+
const t92 = values.textSearchEnabled ?? false;
|
|
796
|
+
let t93;
|
|
797
|
+
if ($[136] !== t91 || $[137] !== t92) {
|
|
798
|
+
t93 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", label: "Enable text search for this collection", onValueChange: t91, value: t92 });
|
|
799
|
+
$[136] = t91;
|
|
800
|
+
$[137] = t92;
|
|
801
|
+
$[138] = t93;
|
|
802
|
+
} else {
|
|
803
|
+
t93 = $[138];
|
|
804
|
+
}
|
|
805
|
+
let t94;
|
|
806
|
+
if ($[139] === Symbol.for("react.memo_cache_sentinel")) {
|
|
807
|
+
t94 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "Allow text search for this collection. If you have not specified a text search delegate, this will use the built-in local text search. This is not recommended for large collections, as it may incur in performance and cost issues." });
|
|
808
|
+
$[139] = t94;
|
|
809
|
+
} else {
|
|
810
|
+
t94 = $[139];
|
|
811
|
+
}
|
|
812
|
+
let t95;
|
|
813
|
+
if ($[140] !== t93) {
|
|
814
|
+
t95 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
|
|
815
|
+
t93,
|
|
816
|
+
t94
|
|
667
817
|
] });
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
818
|
+
$[140] = t93;
|
|
819
|
+
$[141] = t95;
|
|
670
820
|
} else {
|
|
671
|
-
|
|
821
|
+
t95 = $[141];
|
|
672
822
|
}
|
|
673
|
-
let
|
|
674
|
-
if ($[
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
t72,
|
|
823
|
+
let t96;
|
|
824
|
+
if ($[142] !== t48 || $[143] !== t56 || $[144] !== t68 || $[145] !== t75 || $[146] !== t78 || $[147] !== t85 || $[148] !== t90 || $[149] !== t95) {
|
|
825
|
+
t96 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
|
|
826
|
+
t48,
|
|
827
|
+
t56,
|
|
828
|
+
t68,
|
|
680
829
|
t75,
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
830
|
+
t78,
|
|
831
|
+
t85,
|
|
832
|
+
t90,
|
|
833
|
+
t95
|
|
684
834
|
] });
|
|
685
|
-
$[
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
692
|
-
$[
|
|
693
|
-
$[
|
|
694
|
-
} else {
|
|
695
|
-
|
|
835
|
+
$[142] = t48;
|
|
836
|
+
$[143] = t56;
|
|
837
|
+
$[144] = t68;
|
|
838
|
+
$[145] = t75;
|
|
839
|
+
$[146] = t78;
|
|
840
|
+
$[147] = t85;
|
|
841
|
+
$[148] = t90;
|
|
842
|
+
$[149] = t95;
|
|
843
|
+
$[150] = t96;
|
|
844
|
+
} else {
|
|
845
|
+
t96 = $[150];
|
|
696
846
|
}
|
|
697
|
-
let
|
|
698
|
-
if ($[
|
|
699
|
-
|
|
700
|
-
$[
|
|
701
|
-
$[
|
|
702
|
-
$[
|
|
847
|
+
let t97;
|
|
848
|
+
if ($[151] !== advancedPanelExpanded || $[152] !== t96) {
|
|
849
|
+
t97 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12 mt-8", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t41, initiallyExpanded: false, children: t96 }) });
|
|
850
|
+
$[151] = advancedPanelExpanded;
|
|
851
|
+
$[152] = t96;
|
|
852
|
+
$[153] = t97;
|
|
703
853
|
} else {
|
|
704
|
-
|
|
854
|
+
t97 = $[153];
|
|
705
855
|
}
|
|
706
|
-
let
|
|
707
|
-
if ($[
|
|
708
|
-
|
|
856
|
+
let t98;
|
|
857
|
+
if ($[154] !== t27 || $[155] !== t36 || $[156] !== t37 || $[157] !== t40 || $[158] !== t97) {
|
|
858
|
+
t98 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t19, children: [
|
|
709
859
|
t27,
|
|
710
860
|
t36,
|
|
711
861
|
t37,
|
|
712
|
-
|
|
862
|
+
t40,
|
|
863
|
+
t97
|
|
713
864
|
] });
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
865
|
+
$[154] = t27;
|
|
866
|
+
$[155] = t36;
|
|
867
|
+
$[156] = t37;
|
|
868
|
+
$[157] = t40;
|
|
869
|
+
$[158] = t97;
|
|
870
|
+
$[159] = t98;
|
|
719
871
|
} else {
|
|
720
|
-
|
|
872
|
+
t98 = $[159];
|
|
721
873
|
}
|
|
722
|
-
let
|
|
723
|
-
if ($[
|
|
724
|
-
|
|
874
|
+
let t99;
|
|
875
|
+
if ($[160] === Symbol.for("react.memo_cache_sentinel")) {
|
|
876
|
+
t99 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
725
877
|
height: "52px"
|
|
726
878
|
} });
|
|
727
|
-
$[
|
|
879
|
+
$[160] = t99;
|
|
728
880
|
} else {
|
|
729
|
-
|
|
881
|
+
t99 = $[160];
|
|
730
882
|
}
|
|
731
|
-
let
|
|
732
|
-
if ($[
|
|
733
|
-
|
|
883
|
+
let t100;
|
|
884
|
+
if ($[161] !== setFieldValue) {
|
|
885
|
+
t100 = (icon) => {
|
|
734
886
|
setIconDialogOpen(false);
|
|
735
887
|
setFieldValue("icon", icon);
|
|
736
888
|
};
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
889
|
+
$[161] = setFieldValue;
|
|
890
|
+
$[162] = t100;
|
|
739
891
|
} else {
|
|
740
|
-
|
|
892
|
+
t100 = $[162];
|
|
741
893
|
}
|
|
742
|
-
let
|
|
743
|
-
if ($[
|
|
744
|
-
|
|
745
|
-
$[
|
|
746
|
-
$[
|
|
747
|
-
$[
|
|
894
|
+
let t101;
|
|
895
|
+
if ($[163] !== t100 || $[164] !== values.icon) {
|
|
896
|
+
t101 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsxRuntime.jsx(core.SearchIconsView, { selectedIcon: values.icon, onIconSelected: t100 }) });
|
|
897
|
+
$[163] = t100;
|
|
898
|
+
$[164] = values.icon;
|
|
899
|
+
$[165] = t101;
|
|
748
900
|
} else {
|
|
749
|
-
|
|
901
|
+
t101 = $[165];
|
|
750
902
|
}
|
|
751
|
-
let
|
|
752
|
-
if ($[
|
|
753
|
-
|
|
754
|
-
$[
|
|
755
|
-
$[
|
|
756
|
-
$[
|
|
903
|
+
let t102;
|
|
904
|
+
if ($[166] !== iconDialogOpen || $[167] !== t101) {
|
|
905
|
+
t102 = /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t101 });
|
|
906
|
+
$[166] = iconDialogOpen;
|
|
907
|
+
$[167] = t101;
|
|
908
|
+
$[168] = t102;
|
|
757
909
|
} else {
|
|
758
|
-
|
|
910
|
+
t102 = $[168];
|
|
759
911
|
}
|
|
760
|
-
let
|
|
761
|
-
if ($[
|
|
762
|
-
|
|
912
|
+
let t103;
|
|
913
|
+
if ($[169] !== T0 || $[170] !== t102 || $[171] !== t18 || $[172] !== t98) {
|
|
914
|
+
t103 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t7, children: /* @__PURE__ */ jsxRuntime.jsxs(T0, { maxWidth: t8, className: t9, children: [
|
|
763
915
|
t18,
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
916
|
+
t98,
|
|
917
|
+
t99,
|
|
918
|
+
t102
|
|
767
919
|
] }) });
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
$[
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
920
|
+
$[169] = T0;
|
|
921
|
+
$[170] = t102;
|
|
922
|
+
$[171] = t18;
|
|
923
|
+
$[172] = t98;
|
|
924
|
+
$[173] = t103;
|
|
773
925
|
} else {
|
|
774
|
-
|
|
926
|
+
t103 = $[173];
|
|
775
927
|
}
|
|
776
|
-
return
|
|
928
|
+
return t103;
|
|
777
929
|
}
|
|
778
|
-
function _temp3$4(
|
|
779
|
-
if (
|
|
930
|
+
function _temp3$4(value_3) {
|
|
931
|
+
if (value_3 === "code_defined") {
|
|
780
932
|
return "Code defined";
|
|
781
933
|
} else {
|
|
782
|
-
if (
|
|
934
|
+
if (value_3 === "true") {
|
|
783
935
|
return "Users must define an ID";
|
|
784
936
|
} else {
|
|
785
|
-
if (
|
|
937
|
+
if (value_3 === "optional") {
|
|
786
938
|
return "Users can define an ID, but it is not required";
|
|
787
939
|
} else {
|
|
788
940
|
return "Document ID is generated automatically";
|
|
@@ -790,11 +942,11 @@
|
|
|
790
942
|
}
|
|
791
943
|
}
|
|
792
944
|
}
|
|
793
|
-
function _temp2$7(
|
|
794
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value:
|
|
945
|
+
function _temp2$7(value_2) {
|
|
946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: value_2, children: value_2.toUpperCase() }, `size-select-${value_2}`);
|
|
795
947
|
}
|
|
796
|
-
function _temp$b(
|
|
797
|
-
return
|
|
948
|
+
function _temp$b(value_1) {
|
|
949
|
+
return value_1.toUpperCase();
|
|
798
950
|
}
|
|
799
951
|
function DefaultDatabaseField(t0) {
|
|
800
952
|
const $ = reactCompilerRuntime.c(5);
|
|
@@ -1043,7 +1195,7 @@
|
|
|
1043
1195
|
let t6;
|
|
1044
1196
|
if ($[15] !== allowDataInference || $[16] !== disabled || $[17] !== inferValues || $[18] !== inferring) {
|
|
1045
1197
|
t6 = allowDataInference && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { loading: inferring, disabled: disabled || inferring, variant: "text", size: "small", onClick: inferValues, children: [
|
|
1046
|
-
inferring ? /* @__PURE__ */ jsxRuntime.jsx(ui.CircularProgress, { size: "
|
|
1198
|
+
inferring ? /* @__PURE__ */ jsxRuntime.jsx(ui.CircularProgress, { size: "smallest" }) : /* @__PURE__ */ jsxRuntime.jsx(ui.AutorenewIcon, {}),
|
|
1047
1199
|
"Infer values from data"
|
|
1048
1200
|
] });
|
|
1049
1201
|
$[15] = allowDataInference;
|
|
@@ -8709,7 +8861,7 @@
|
|
|
8709
8861
|
}
|
|
8710
8862
|
let t8;
|
|
8711
8863
|
if ($[13] !== properties || $[14] !== selectionController || $[15] !== t5 || $[16] !== t7) {
|
|
8712
|
-
t8 = /* @__PURE__ */ jsxRuntime.jsx(core.EntityCollectionTable, { title: t4, tableController: t5, endAdornment: t6, filterable: false, sortable: false, selectionController, displayedColumnIds: t7, properties, enablePopupIcon: false });
|
|
8864
|
+
t8 = /* @__PURE__ */ jsxRuntime.jsx(core.EntityCollectionTable, { title: t4, tableController: t5, endAdornment: t6, filterable: false, sortable: false, selectionController, displayedColumnIds: t7, openEntityMode: "side_panel", properties, enablePopupIcon: false });
|
|
8713
8865
|
$[13] = properties;
|
|
8714
8866
|
$[14] = selectionController;
|
|
8715
8867
|
$[15] = t5;
|
|
@@ -9176,7 +9328,7 @@
|
|
|
9176
9328
|
const updatedFullPath = fullPath?.includes("/") ? fullPath?.split("/").slice(0, -1).join("/") + "/" + path : path;
|
|
9177
9329
|
const pathError_0 = validatePath(path, isNewCollection, existingPaths, values_1.id);
|
|
9178
9330
|
const parentPaths = !pathError_0 && parentCollectionIds ? navigation.convertIdsToPaths(parentCollectionIds) : void 0;
|
|
9179
|
-
const resolvedPath = !pathError_0 ? navigation.
|
|
9331
|
+
const resolvedPath = !pathError_0 ? navigation.resolveIdsFrom(updatedFullPath) : void 0;
|
|
9180
9332
|
const getDataWithPath = resolvedPath && getData ? async () => {
|
|
9181
9333
|
const data = await getData(resolvedPath, parentPaths ?? []);
|
|
9182
9334
|
if (existingEntities) {
|
|
@@ -9215,7 +9367,7 @@
|
|
|
9215
9367
|
const editable = collection?.editable === void 0 || collection?.editable === true;
|
|
9216
9368
|
const collectionEditable = editable || isNewCollection;
|
|
9217
9369
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.DialogContent, { fullHeight: true, children: /* @__PURE__ */ jsxRuntime.jsx(formex.Formex, { value: formController, children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9218
|
-
!isNewCollection && /* @__PURE__ */ jsxRuntime.jsxs(ui.Tabs, { value: currentView, innerClassName: ui.cls(ui.defaultBorderMixin, "justify-end bg-surface-50 dark:bg-surface-950 border-b"), onValueChange: (v) => setCurrentView(v), children: [
|
|
9370
|
+
!isNewCollection && /* @__PURE__ */ jsxRuntime.jsxs(ui.Tabs, { value: currentView, innerClassName: ui.cls(ui.defaultBorderMixin, "px-4 h-14 w-full justify-end bg-surface-50 dark:bg-surface-950 border-b"), onValueChange: (v) => setCurrentView(v), children: [
|
|
9219
9371
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Tab, { value: "details", children: "Details" }),
|
|
9220
9372
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Tab, { value: "properties", children: "Properties" }),
|
|
9221
9373
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Tab, { value: "subcollections", children: "Additional views" })
|
|
@@ -9546,7 +9698,7 @@
|
|
|
9546
9698
|
if ($[28] !== currentPropertyDialog || $[29] !== getData || $[30] !== navigation) {
|
|
9547
9699
|
t14 = getData && currentPropertyDialog?.editedCollectionId ? () => {
|
|
9548
9700
|
console.debug("get data for property", currentPropertyDialog?.editedCollectionId);
|
|
9549
|
-
const resolvedPath = navigation.
|
|
9701
|
+
const resolvedPath = navigation.resolveIdsFrom(currentPropertyDialog.editedCollectionId);
|
|
9550
9702
|
return getData(resolvedPath, []);
|
|
9551
9703
|
} : void 0;
|
|
9552
9704
|
$[28] = currentPropertyDialog;
|