@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.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(168);
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
- let t38;
322
- if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
323
- t38 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
324
- /* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, {}),
325
- /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
326
- ] });
327
- $[55] = t38;
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
- t38 = $[55];
469
+ t40 = $[59];
330
470
  }
331
- const t39 = !isNewCollection;
332
- const t40 = showErrors && Boolean(errors.id);
333
471
  let t41;
334
- if ($[56] !== t39 || $[57] !== t40) {
335
- t41 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: "id", as: ui.DebouncedTextField, disabled: t39, label: "Collection id", error: t40 });
336
- $[56] = t39;
337
- $[57] = t40;
338
- $[58] = t41;
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 = $[58];
479
+ t41 = $[60];
341
480
  }
342
- const t42 = touched.id && Boolean(errors.id);
343
- const t43 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
481
+ const t42 = !isNewCollection;
482
+ const t43 = showErrors && Boolean(errors.id);
344
483
  let t44;
345
- if ($[59] !== t42 || $[60] !== t43) {
346
- t44 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t42, children: t43 });
347
- $[59] = t42;
348
- $[60] = t43;
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
- t45 = $[64];
490
+ t44 = $[63];
364
491
  }
365
- const t46 = showErrors && Boolean(errors.singularName);
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 ($[65] !== handleChange || $[66] !== setFieldTouched) {
368
- t47 = (e_0) => {
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
- $[65] = handleChange;
373
- $[66] = setFieldTouched;
374
- $[67] = t47;
522
+ $[70] = handleChange;
523
+ $[71] = setFieldTouched;
524
+ $[72] = t50;
375
525
  } else {
376
- t47 = $[67];
526
+ t50 = $[72];
377
527
  }
378
- const t48 = values.singularName ?? "";
379
- let t49;
380
- if ($[68] !== t46 || $[69] !== t47 || $[70] !== t48) {
381
- t49 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t46, name: "singularName", "aria-describedby": "singularName-helper", onChange: t47, value: t48, label: "Singular name" });
382
- $[68] = t46;
383
- $[69] = t47;
384
- $[70] = t48;
385
- $[71] = t49;
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
- t49 = $[71];
537
+ t52 = $[76];
388
538
  }
389
- const t50 = showErrors && Boolean(errors.singularName);
390
- const t51 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
391
- let t52;
392
- if ($[72] !== t50 || $[73] !== t51) {
393
- t52 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t50, children: t51 });
394
- $[72] = t50;
395
- $[73] = t51;
396
- $[74] = t52;
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
- t52 = $[74];
548
+ t55 = $[79];
399
549
  }
400
- let t53;
401
- if ($[75] !== t49 || $[76] !== t52) {
402
- t53 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
403
- t49,
404
- t52
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
- $[75] = t49;
407
- $[76] = t52;
408
- $[77] = t53;
556
+ $[80] = t52;
557
+ $[81] = t55;
558
+ $[82] = t56;
409
559
  } else {
410
- t53 = $[77];
560
+ t56 = $[82];
411
561
  }
412
- const t54 = showErrors && Boolean(errors.sideDialogWidth);
413
- let t55;
414
- if ($[78] !== setFieldTouched || $[79] !== setFieldValue) {
415
- t55 = (e_1) => {
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 value = e_1.target.value;
418
- if (!value) {
567
+ const value_0 = e_1.target.value;
568
+ if (!value_0) {
419
569
  setFieldValue("sideDialogWidth", null);
420
570
  } else {
421
- if (!isNaN(Number(value))) {
422
- setFieldValue("sideDialogWidth", Number(value));
571
+ if (!isNaN(Number(value_0))) {
572
+ setFieldValue("sideDialogWidth", Number(value_0));
423
573
  }
424
574
  }
425
575
  };
426
- $[78] = setFieldTouched;
427
- $[79] = setFieldValue;
428
- $[80] = t55;
576
+ $[83] = setFieldTouched;
577
+ $[84] = setFieldValue;
578
+ $[85] = t58;
429
579
  } else {
430
- t55 = $[80];
580
+ t58 = $[85];
431
581
  }
432
- let t56;
433
- if ($[81] !== setFieldValue) {
434
- t56 = () => {
582
+ let t59;
583
+ if ($[86] !== setFieldValue) {
584
+ t59 = () => {
435
585
  setFieldValue("sideDialogWidth", null);
436
586
  };
437
- $[81] = setFieldValue;
438
- $[82] = t56;
587
+ $[86] = setFieldValue;
588
+ $[87] = t59;
439
589
  } else {
440
- t56 = $[82];
590
+ t59 = $[87];
441
591
  }
442
- const t57 = !values.sideDialogWidth;
443
- let t58;
444
- if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
445
- t58 = /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { size: "small" });
446
- $[83] = t58;
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
- t59 = $[86];
598
+ t61 = $[88];
458
599
  }
459
- const t60 = values.sideDialogWidth ?? "";
460
- let t61;
461
- if ($[87] !== t54 || $[88] !== t55 || $[89] !== t59 || $[90] !== t60) {
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] = t61;
605
+ $[91] = t62;
468
606
  } else {
469
- t61 = $[91];
607
+ t62 = $[91];
470
608
  }
471
- const t62 = showErrors && Boolean(errors.singularName);
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] !== t62 || $[93] !== t63) {
475
- t64 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t62, children: t63 });
476
- $[92] = t62;
477
- $[93] = t63;
478
- $[94] = t64;
479
- } else {
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
- t65 = $[97];
630
+ t67 = $[99];
493
631
  }
494
- const t66 = showErrors && Boolean(errors.description);
495
- const t67 = values.description ?? "";
496
632
  let t68;
497
- if ($[98] !== handleChange || $[99] !== t66 || $[100] !== t67) {
498
- t68 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t66, name: "description", value: t67, onChange: handleChange, multiline: true, rows: 2, "aria-describedby": "description-helper-text", label: "Description" });
499
- $[98] = handleChange;
500
- $[99] = t66;
501
- $[100] = t67;
502
- $[101] = t68;
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 = $[101];
642
+ t68 = $[102];
505
643
  }
506
644
  const t69 = showErrors && Boolean(errors.description);
507
- const t70 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
645
+ const t70 = values.description ?? "";
508
646
  let t71;
509
- if ($[102] !== t69 || $[103] !== t70) {
510
- t71 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t69, children: t70 });
511
- $[102] = t69;
512
- $[103] = t70;
513
- $[104] = t71;
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
- t72 = $[107];
654
+ t71 = $[106];
528
655
  }
529
- const t73 = values.defaultSize ?? "";
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] === Symbol.for("react.memo_cache_sentinel")) {
532
- t74 = ["xs", "s", "m", "l", "xl"].map(_temp2$7);
533
- $[108] = t74;
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 = $[108];
665
+ t74 = $[109];
536
666
  }
537
667
  let t75;
538
- if ($[109] !== handleChange || $[110] !== t73) {
539
- t75 = /* @__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: t73, renderValue: _temp$b, children: t74 }) });
540
- $[109] = handleChange;
541
- $[110] = t73;
542
- $[111] = t75;
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 = $[111];
677
+ t75 = $[112];
545
678
  }
546
- const t76 = customIdValue === "code_defined";
679
+ const t76 = values.defaultSize ?? "";
547
680
  let t77;
548
- if ($[112] !== setFieldValue) {
549
- t77 = (v) => {
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
- $[112] = setFieldValue;
567
- $[113] = t77;
716
+ $[117] = setFieldValue;
717
+ $[118] = t80;
568
718
  } else {
569
- t77 = $[113];
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
- if ($[121] !== setFieldValue) {
603
- t83 = (v_0) => setFieldValue("collectionGroup", v_0);
604
- $[121] = setFieldValue;
605
- $[122] = t83;
606
- } else {
607
- t83 = $[122];
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] !== t83 || $[124] !== t84) {
612
- t85 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", label: "Collection group", onValueChange: t83, value: t84 });
613
- $[123] = t83;
614
- $[124] = t84;
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] === Symbol.for("react.memo_cache_sentinel")) {
621
- t86 = /* @__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." });
622
- $[126] = t86;
623
- } else {
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
- t87 = $[128];
757
+ t86 = $[127];
636
758
  }
759
+ const t87 = values.collectionGroup ?? false;
637
760
  let t88;
638
- if ($[129] !== setFieldValue) {
639
- t88 = (v_1) => setFieldValue("textSearchEnabled", v_1);
640
- $[129] = setFieldValue;
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
- const t89 = values.textSearchEnabled ?? false;
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 ($[131] !== t88 || $[132] !== t89) {
648
- t90 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", label: "Enable text search for this collection", onValueChange: t88, value: t89 });
649
- $[131] = t88;
650
- $[132] = t89;
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] === Symbol.for("react.memo_cache_sentinel")) {
657
- t91 = /* @__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." });
658
- $[134] = t91;
788
+ if ($[134] !== setFieldValue) {
789
+ t91 = (v_1) => setFieldValue("textSearchEnabled", v_1);
790
+ $[134] = setFieldValue;
791
+ $[135] = t91;
659
792
  } else {
660
- t91 = $[134];
793
+ t91 = $[135];
661
794
  }
662
- let t92;
663
- if ($[135] !== t90) {
664
- t92 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
665
- t90,
666
- t91
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
- $[135] = t90;
669
- $[136] = t92;
818
+ $[140] = t93;
819
+ $[141] = t95;
670
820
  } else {
671
- t92 = $[136];
821
+ t95 = $[141];
672
822
  }
673
- let t93;
674
- if ($[137] !== t45 || $[138] !== t53 || $[139] !== t65 || $[140] !== t72 || $[141] !== t75 || $[142] !== t82 || $[143] !== t87 || $[144] !== t92) {
675
- t93 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
676
- t45,
677
- t53,
678
- t65,
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
- t82,
682
- t87,
683
- t92
830
+ t78,
831
+ t85,
832
+ t90,
833
+ t95
684
834
  ] });
685
- $[137] = t45;
686
- $[138] = t53;
687
- $[139] = t65;
688
- $[140] = t72;
689
- $[141] = t75;
690
- $[142] = t82;
691
- $[143] = t87;
692
- $[144] = t92;
693
- $[145] = t93;
694
- } else {
695
- t93 = $[145];
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 t94;
698
- if ($[146] !== advancedPanelExpanded || $[147] !== t93) {
699
- t94 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t38, initiallyExpanded: false, children: t93 }) });
700
- $[146] = advancedPanelExpanded;
701
- $[147] = t93;
702
- $[148] = t94;
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
- t94 = $[148];
854
+ t97 = $[153];
705
855
  }
706
- let t95;
707
- if ($[149] !== t27 || $[150] !== t36 || $[151] !== t37 || $[152] !== t94) {
708
- t95 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t19, children: [
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
- t94
862
+ t40,
863
+ t97
713
864
  ] });
714
- $[149] = t27;
715
- $[150] = t36;
716
- $[151] = t37;
717
- $[152] = t94;
718
- $[153] = t95;
865
+ $[154] = t27;
866
+ $[155] = t36;
867
+ $[156] = t37;
868
+ $[157] = t40;
869
+ $[158] = t97;
870
+ $[159] = t98;
719
871
  } else {
720
- t95 = $[153];
872
+ t98 = $[159];
721
873
  }
722
- let t96;
723
- if ($[154] === Symbol.for("react.memo_cache_sentinel")) {
724
- t96 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
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
- $[154] = t96;
879
+ $[160] = t99;
728
880
  } else {
729
- t96 = $[154];
881
+ t99 = $[160];
730
882
  }
731
- let t97;
732
- if ($[155] !== setFieldValue) {
733
- t97 = (icon) => {
883
+ let t100;
884
+ if ($[161] !== setFieldValue) {
885
+ t100 = (icon) => {
734
886
  setIconDialogOpen(false);
735
887
  setFieldValue("icon", icon);
736
888
  };
737
- $[155] = setFieldValue;
738
- $[156] = t97;
889
+ $[161] = setFieldValue;
890
+ $[162] = t100;
739
891
  } else {
740
- t97 = $[156];
892
+ t100 = $[162];
741
893
  }
742
- let t98;
743
- if ($[157] !== t97 || $[158] !== values.icon) {
744
- t98 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsxRuntime.jsx(core.SearchIconsView, { selectedIcon: values.icon, onIconSelected: t97 }) });
745
- $[157] = t97;
746
- $[158] = values.icon;
747
- $[159] = t98;
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
- t98 = $[159];
901
+ t101 = $[165];
750
902
  }
751
- let t99;
752
- if ($[160] !== iconDialogOpen || $[161] !== t98) {
753
- t99 = /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t98 });
754
- $[160] = iconDialogOpen;
755
- $[161] = t98;
756
- $[162] = t99;
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
- t99 = $[162];
910
+ t102 = $[168];
759
911
  }
760
- let t100;
761
- if ($[163] !== T0 || $[164] !== t18 || $[165] !== t95 || $[166] !== t99) {
762
- t100 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t7, children: /* @__PURE__ */ jsxRuntime.jsxs(T0, { maxWidth: t8, className: t9, children: [
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
- t95,
765
- t96,
766
- t99
916
+ t98,
917
+ t99,
918
+ t102
767
919
  ] }) });
768
- $[163] = T0;
769
- $[164] = t18;
770
- $[165] = t95;
771
- $[166] = t99;
772
- $[167] = t100;
920
+ $[169] = T0;
921
+ $[170] = t102;
922
+ $[171] = t18;
923
+ $[172] = t98;
924
+ $[173] = t103;
773
925
  } else {
774
- t100 = $[167];
926
+ t103 = $[173];
775
927
  }
776
- return t100;
928
+ return t103;
777
929
  }
778
- function _temp3$4(value_2) {
779
- if (value_2 === "code_defined") {
930
+ function _temp3$4(value_3) {
931
+ if (value_3 === "code_defined") {
780
932
  return "Code defined";
781
933
  } else {
782
- if (value_2 === "true") {
934
+ if (value_3 === "true") {
783
935
  return "Users must define an ID";
784
936
  } else {
785
- if (value_2 === "optional") {
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(value_1) {
794
- return /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: value_1, children: value_1.toUpperCase() }, `size-select-${value_1}`);
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(value_0) {
797
- return value_0.toUpperCase();
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: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(ui.AutorenewIcon, {}),
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.resolveAliasesFrom(updatedFullPath) : void 0;
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.resolveAliasesFrom(currentPropertyDialog.editedCollectionId);
9701
+ const resolvedPath = navigation.resolveIdsFrom(currentPropertyDialog.editedCollectionId);
9550
9702
  return getData(resolvedPath, []);
9551
9703
  } : void 0;
9552
9704
  $[28] = currentPropertyDialog;