@firecms/collection_editor 3.0.0-canary.183 → 3.0.0-canary.186
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/ConfigControllerProvider.d.ts +0 -9
- package/dist/index.es.js +391 -399
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +391 -399
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collection_editor_controller.d.ts +0 -10
- package/dist/useCollectionEditorPlugin.d.ts +1 -10
- package/package.json +8 -8
- package/src/ConfigControllerProvider.tsx +0 -9
- package/src/types/collection_editor_controller.tsx +0 -7
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +2 -4
- package/src/useCollectionEditorPlugin.tsx +0 -9
package/dist/index.es.js
CHANGED
|
@@ -162,7 +162,7 @@ function LayoutModeSwitch(t0) {
|
|
|
162
162
|
return t18;
|
|
163
163
|
}
|
|
164
164
|
function CollectionDetailsForm(t0) {
|
|
165
|
-
const $ = c(
|
|
165
|
+
const $ = c(176);
|
|
166
166
|
const {
|
|
167
167
|
isNewCollection,
|
|
168
168
|
reservedGroups,
|
|
@@ -181,7 +181,7 @@ function CollectionDetailsForm(t0) {
|
|
|
181
181
|
isSubmitting,
|
|
182
182
|
submitCount
|
|
183
183
|
} = useFormex();
|
|
184
|
-
|
|
184
|
+
useCollectionEditorController();
|
|
185
185
|
const [iconDialogOpen, setIconDialogOpen] = useState(false);
|
|
186
186
|
const [advancedPanelExpanded, setAdvancedPanelExpanded] = useState(false);
|
|
187
187
|
let t1;
|
|
@@ -237,7 +237,6 @@ function CollectionDetailsForm(t0) {
|
|
|
237
237
|
t4 = $[8];
|
|
238
238
|
}
|
|
239
239
|
useEffect(t3, t4);
|
|
240
|
-
const DatabaseField = collectionEditor.components?.DatabaseField ?? DefaultDatabaseField;
|
|
241
240
|
let t5;
|
|
242
241
|
if ($[9] !== values) {
|
|
243
242
|
t5 = /* @__PURE__ */ jsx(IconForView, { collectionOrView: values });
|
|
@@ -295,154 +294,153 @@ function CollectionDetailsForm(t0) {
|
|
|
295
294
|
t12 = $[14];
|
|
296
295
|
}
|
|
297
296
|
let t13;
|
|
298
|
-
if ($[15] !==
|
|
299
|
-
t13 = /* @__PURE__ */ jsx(
|
|
300
|
-
$[15] =
|
|
301
|
-
$[16] =
|
|
302
|
-
$[17] =
|
|
303
|
-
$[18] = t13;
|
|
297
|
+
if ($[15] !== updateDatabaseId || $[16] !== values.databaseId) {
|
|
298
|
+
t13 = /* @__PURE__ */ jsx(DefaultDatabaseField, { databaseId: values.databaseId, onDatabaseIdUpdate: updateDatabaseId });
|
|
299
|
+
$[15] = updateDatabaseId;
|
|
300
|
+
$[16] = values.databaseId;
|
|
301
|
+
$[17] = t13;
|
|
304
302
|
} else {
|
|
305
|
-
t13 = $[
|
|
303
|
+
t13 = $[17];
|
|
306
304
|
}
|
|
307
305
|
let t14;
|
|
308
|
-
if ($[
|
|
306
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
309
307
|
t14 = () => setIconDialogOpen(true);
|
|
310
|
-
$[
|
|
308
|
+
$[18] = t14;
|
|
311
309
|
} else {
|
|
312
|
-
t14 = $[
|
|
310
|
+
t14 = $[18];
|
|
313
311
|
}
|
|
314
312
|
let t15;
|
|
315
|
-
if ($[
|
|
313
|
+
if ($[19] !== collectionIcon) {
|
|
316
314
|
t15 = /* @__PURE__ */ jsx(Tooltip, { title: "Change icon", asChild: true, children: /* @__PURE__ */ jsx(IconButton, { shape: "square", onClick: t14, children: collectionIcon }) });
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
315
|
+
$[19] = collectionIcon;
|
|
316
|
+
$[20] = t15;
|
|
319
317
|
} else {
|
|
320
|
-
t15 = $[
|
|
318
|
+
t15 = $[20];
|
|
321
319
|
}
|
|
322
320
|
let t16;
|
|
323
|
-
if ($[
|
|
321
|
+
if ($[21] !== t12 || $[22] !== t13 || $[23] !== t15) {
|
|
324
322
|
t16 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-2 py-2 pt-3 items-center", children: [
|
|
325
323
|
t12,
|
|
326
324
|
t13,
|
|
327
325
|
t15
|
|
328
326
|
] });
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
327
|
+
$[21] = t12;
|
|
328
|
+
$[22] = t13;
|
|
329
|
+
$[23] = t15;
|
|
330
|
+
$[24] = t16;
|
|
333
331
|
} else {
|
|
334
|
-
t16 = $[
|
|
332
|
+
t16 = $[24];
|
|
335
333
|
}
|
|
336
334
|
let t17;
|
|
337
|
-
if ($[
|
|
335
|
+
if ($[25] !== parentCollection) {
|
|
338
336
|
t17 = parentCollection && /* @__PURE__ */ jsx(Chip, { colorScheme: "tealDarker", children: /* @__PURE__ */ jsxs(Typography, { variant: "caption", children: [
|
|
339
337
|
"This is a subcollection of ",
|
|
340
338
|
/* @__PURE__ */ jsx("b", { children: parentCollection.name })
|
|
341
339
|
] }) });
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
340
|
+
$[25] = parentCollection;
|
|
341
|
+
$[26] = t17;
|
|
344
342
|
} else {
|
|
345
|
-
t17 = $[
|
|
343
|
+
t17 = $[26];
|
|
346
344
|
}
|
|
347
345
|
let t18;
|
|
348
|
-
if ($[
|
|
346
|
+
if ($[27] !== t16 || $[28] !== t17) {
|
|
349
347
|
t18 = /* @__PURE__ */ jsxs("div", { children: [
|
|
350
348
|
t16,
|
|
351
349
|
t17
|
|
352
350
|
] });
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
351
|
+
$[27] = t16;
|
|
352
|
+
$[28] = t17;
|
|
353
|
+
$[29] = t18;
|
|
356
354
|
} else {
|
|
357
|
-
t18 = $[
|
|
355
|
+
t18 = $[29];
|
|
358
356
|
}
|
|
359
357
|
const t19 = "grid grid-cols-12 gap-4";
|
|
360
358
|
const t20 = values.name ?? "";
|
|
361
359
|
let t21;
|
|
362
|
-
if ($[
|
|
360
|
+
if ($[30] !== updateName) {
|
|
363
361
|
t21 = (e) => updateName(e.target.value);
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
362
|
+
$[30] = updateName;
|
|
363
|
+
$[31] = t21;
|
|
366
364
|
} else {
|
|
367
|
-
t21 = $[
|
|
365
|
+
t21 = $[31];
|
|
368
366
|
}
|
|
369
367
|
const t22 = showErrors && Boolean(errors.name);
|
|
370
368
|
let t23;
|
|
371
|
-
if ($[
|
|
369
|
+
if ($[32] !== t20 || $[33] !== t21 || $[34] !== t22) {
|
|
372
370
|
t23 = /* @__PURE__ */ jsx(TextField, { value: t20, onChange: t21, label: "Name", autoFocus: true, required: true, error: t22 });
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
371
|
+
$[32] = t20;
|
|
372
|
+
$[33] = t21;
|
|
373
|
+
$[34] = t22;
|
|
374
|
+
$[35] = t23;
|
|
377
375
|
} else {
|
|
378
|
-
t23 = $[
|
|
376
|
+
t23 = $[35];
|
|
379
377
|
}
|
|
380
378
|
const t24 = touched.name && Boolean(errors.name);
|
|
381
379
|
const t25 = touched.name && Boolean(errors.name) ? errors.name : "Name of this collection, usually a plural name (e.g. Products)";
|
|
382
380
|
let t26;
|
|
383
|
-
if ($[
|
|
381
|
+
if ($[36] !== t24 || $[37] !== t25) {
|
|
384
382
|
t26 = /* @__PURE__ */ jsx(FieldCaption, { error: t24, children: t25 });
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
383
|
+
$[36] = t24;
|
|
384
|
+
$[37] = t25;
|
|
385
|
+
$[38] = t26;
|
|
388
386
|
} else {
|
|
389
|
-
t26 = $[
|
|
387
|
+
t26 = $[38];
|
|
390
388
|
}
|
|
391
389
|
let t27;
|
|
392
|
-
if ($[
|
|
390
|
+
if ($[39] !== t23 || $[40] !== t26) {
|
|
393
391
|
t27 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
394
392
|
t23,
|
|
395
393
|
t26
|
|
396
394
|
] });
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
395
|
+
$[39] = t23;
|
|
396
|
+
$[40] = t26;
|
|
397
|
+
$[41] = t27;
|
|
400
398
|
} else {
|
|
401
|
-
t27 = $[
|
|
399
|
+
t27 = $[41];
|
|
402
400
|
}
|
|
403
401
|
const t28 = isSubcollection ? "" : "sm:col-span-8";
|
|
404
402
|
let t29;
|
|
405
|
-
if ($[
|
|
403
|
+
if ($[42] !== t28) {
|
|
406
404
|
t29 = cls("col-span-12 ", t28);
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
405
|
+
$[42] = t28;
|
|
406
|
+
$[43] = t29;
|
|
409
407
|
} else {
|
|
410
|
-
t29 = $[
|
|
408
|
+
t29 = $[43];
|
|
411
409
|
}
|
|
412
410
|
const t30 = !isNewCollection;
|
|
413
411
|
const t31 = showErrors && Boolean(errors.path);
|
|
414
412
|
let t32;
|
|
415
|
-
if ($[
|
|
413
|
+
if ($[44] !== t30 || $[45] !== t31) {
|
|
416
414
|
t32 = /* @__PURE__ */ jsx(Field, { name: "path", as: DebouncedTextField, label: "Path", disabled: t30, required: true, error: t31 });
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
415
|
+
$[44] = t30;
|
|
416
|
+
$[45] = t31;
|
|
417
|
+
$[46] = t32;
|
|
420
418
|
} else {
|
|
421
|
-
t32 = $[
|
|
419
|
+
t32 = $[46];
|
|
422
420
|
}
|
|
423
421
|
const t33 = touched.path && Boolean(errors.path);
|
|
424
422
|
const t34 = touched.path && Boolean(errors.path) ? errors.path : isSubcollection ? "Relative path to the parent (no need to include the parent path)" : "Path that this collection is stored in, in the database";
|
|
425
423
|
let t35;
|
|
426
|
-
if ($[
|
|
424
|
+
if ($[47] !== t33 || $[48] !== t34) {
|
|
427
425
|
t35 = /* @__PURE__ */ jsx(FieldCaption, { error: t33, children: t34 });
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
426
|
+
$[47] = t33;
|
|
427
|
+
$[48] = t34;
|
|
428
|
+
$[49] = t35;
|
|
431
429
|
} else {
|
|
432
|
-
t35 = $[
|
|
430
|
+
t35 = $[49];
|
|
433
431
|
}
|
|
434
432
|
let t36;
|
|
435
|
-
if ($[
|
|
433
|
+
if ($[50] !== t29 || $[51] !== t32 || $[52] !== t35) {
|
|
436
434
|
t36 = /* @__PURE__ */ jsxs("div", { className: t29, children: [
|
|
437
435
|
t32,
|
|
438
436
|
t35
|
|
439
437
|
] });
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
438
|
+
$[50] = t29;
|
|
439
|
+
$[51] = t32;
|
|
440
|
+
$[52] = t35;
|
|
441
|
+
$[53] = t36;
|
|
444
442
|
} else {
|
|
445
|
-
t36 = $[
|
|
443
|
+
t36 = $[53];
|
|
446
444
|
}
|
|
447
445
|
const t37 = !isSubcollection && /* @__PURE__ */ jsxs("div", { className: "col-span-12 sm:col-span-4 relative", children: [
|
|
448
446
|
/* @__PURE__ */ jsx(TextField, { error: showErrors && Boolean(errors.group), disabled: isSubmitting, value: values.group ?? "", autoComplete: "off", onChange: (event) => setFieldValue("group", event.target.value), name: "group", inputRef: groupRef, label: "Group" }),
|
|
@@ -454,116 +452,116 @@ function CollectionDetailsForm(t0) {
|
|
|
454
452
|
] });
|
|
455
453
|
const t38 = values.openEntityMode ?? "side_panel";
|
|
456
454
|
let t39;
|
|
457
|
-
if ($[
|
|
455
|
+
if ($[54] !== setFieldValue) {
|
|
458
456
|
t39 = (value) => setFieldValue("openEntityMode", value);
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
457
|
+
$[54] = setFieldValue;
|
|
458
|
+
$[55] = t39;
|
|
461
459
|
} else {
|
|
462
|
-
t39 = $[
|
|
460
|
+
t39 = $[55];
|
|
463
461
|
}
|
|
464
462
|
let t40;
|
|
465
|
-
if ($[
|
|
463
|
+
if ($[56] !== t38 || $[57] !== t39) {
|
|
466
464
|
t40 = /* @__PURE__ */ jsx(LayoutModeSwitch, { className: "col-span-12", value: t38, onChange: t39 });
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
465
|
+
$[56] = t38;
|
|
466
|
+
$[57] = t39;
|
|
467
|
+
$[58] = t40;
|
|
470
468
|
} else {
|
|
471
|
-
t40 = $[
|
|
469
|
+
t40 = $[58];
|
|
472
470
|
}
|
|
473
471
|
let t41;
|
|
474
|
-
if ($[
|
|
472
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
475
473
|
t41 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
476
474
|
/* @__PURE__ */ jsx(SettingsIcon, {}),
|
|
477
475
|
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
|
|
478
476
|
] });
|
|
479
|
-
$[
|
|
477
|
+
$[59] = t41;
|
|
480
478
|
} else {
|
|
481
|
-
t41 = $[
|
|
479
|
+
t41 = $[59];
|
|
482
480
|
}
|
|
483
481
|
const t42 = !isNewCollection;
|
|
484
482
|
const t43 = showErrors && Boolean(errors.id);
|
|
485
483
|
let t44;
|
|
486
|
-
if ($[
|
|
484
|
+
if ($[60] !== t42 || $[61] !== t43) {
|
|
487
485
|
t44 = /* @__PURE__ */ jsx(Field, { name: "id", as: DebouncedTextField, disabled: t42, label: "Collection id", error: t43 });
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
486
|
+
$[60] = t42;
|
|
487
|
+
$[61] = t43;
|
|
488
|
+
$[62] = t44;
|
|
491
489
|
} else {
|
|
492
|
-
t44 = $[
|
|
490
|
+
t44 = $[62];
|
|
493
491
|
}
|
|
494
492
|
const t45 = touched.id && Boolean(errors.id);
|
|
495
493
|
const t46 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
|
|
496
494
|
let t47;
|
|
497
|
-
if ($[
|
|
495
|
+
if ($[63] !== t45 || $[64] !== t46) {
|
|
498
496
|
t47 = /* @__PURE__ */ jsx(FieldCaption, { error: t45, children: t46 });
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
497
|
+
$[63] = t45;
|
|
498
|
+
$[64] = t46;
|
|
499
|
+
$[65] = t47;
|
|
502
500
|
} else {
|
|
503
|
-
t47 = $[
|
|
501
|
+
t47 = $[65];
|
|
504
502
|
}
|
|
505
503
|
let t48;
|
|
506
|
-
if ($[
|
|
504
|
+
if ($[66] !== t44 || $[67] !== t47) {
|
|
507
505
|
t48 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
508
506
|
t44,
|
|
509
507
|
t47
|
|
510
508
|
] });
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
509
|
+
$[66] = t44;
|
|
510
|
+
$[67] = t47;
|
|
511
|
+
$[68] = t48;
|
|
514
512
|
} else {
|
|
515
|
-
t48 = $[
|
|
513
|
+
t48 = $[68];
|
|
516
514
|
}
|
|
517
515
|
const t49 = showErrors && Boolean(errors.singularName);
|
|
518
516
|
let t50;
|
|
519
|
-
if ($[
|
|
517
|
+
if ($[69] !== handleChange || $[70] !== setFieldTouched) {
|
|
520
518
|
t50 = (e_0) => {
|
|
521
519
|
setFieldTouched("singularName", true);
|
|
522
520
|
return handleChange(e_0);
|
|
523
521
|
};
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
522
|
+
$[69] = handleChange;
|
|
523
|
+
$[70] = setFieldTouched;
|
|
524
|
+
$[71] = t50;
|
|
527
525
|
} else {
|
|
528
|
-
t50 = $[
|
|
526
|
+
t50 = $[71];
|
|
529
527
|
}
|
|
530
528
|
const t51 = values.singularName ?? "";
|
|
531
529
|
let t52;
|
|
532
|
-
if ($[
|
|
530
|
+
if ($[72] !== t49 || $[73] !== t50 || $[74] !== t51) {
|
|
533
531
|
t52 = /* @__PURE__ */ jsx(TextField, { error: t49, name: "singularName", "aria-describedby": "singularName-helper", onChange: t50, value: t51, label: "Singular name" });
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
$[
|
|
532
|
+
$[72] = t49;
|
|
533
|
+
$[73] = t50;
|
|
534
|
+
$[74] = t51;
|
|
535
|
+
$[75] = t52;
|
|
538
536
|
} else {
|
|
539
|
-
t52 = $[
|
|
537
|
+
t52 = $[75];
|
|
540
538
|
}
|
|
541
539
|
const t53 = showErrors && Boolean(errors.singularName);
|
|
542
540
|
const t54 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
|
|
543
541
|
let t55;
|
|
544
|
-
if ($[
|
|
542
|
+
if ($[76] !== t53 || $[77] !== t54) {
|
|
545
543
|
t55 = /* @__PURE__ */ jsx(FieldCaption, { error: t53, children: t54 });
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
544
|
+
$[76] = t53;
|
|
545
|
+
$[77] = t54;
|
|
546
|
+
$[78] = t55;
|
|
549
547
|
} else {
|
|
550
|
-
t55 = $[
|
|
548
|
+
t55 = $[78];
|
|
551
549
|
}
|
|
552
550
|
let t56;
|
|
553
|
-
if ($[
|
|
551
|
+
if ($[79] !== t52 || $[80] !== t55) {
|
|
554
552
|
t56 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
555
553
|
t52,
|
|
556
554
|
t55
|
|
557
555
|
] });
|
|
558
|
-
$[
|
|
559
|
-
$[
|
|
560
|
-
$[
|
|
556
|
+
$[79] = t52;
|
|
557
|
+
$[80] = t55;
|
|
558
|
+
$[81] = t56;
|
|
561
559
|
} else {
|
|
562
|
-
t56 = $[
|
|
560
|
+
t56 = $[81];
|
|
563
561
|
}
|
|
564
562
|
const t57 = showErrors && Boolean(errors.sideDialogWidth);
|
|
565
563
|
let t58;
|
|
566
|
-
if ($[
|
|
564
|
+
if ($[82] !== setFieldTouched || $[83] !== setFieldValue) {
|
|
567
565
|
t58 = (e_1) => {
|
|
568
566
|
setFieldTouched("sideDialogWidth", true);
|
|
569
567
|
const value_0 = e_1.target.value;
|
|
@@ -575,129 +573,129 @@ function CollectionDetailsForm(t0) {
|
|
|
575
573
|
}
|
|
576
574
|
}
|
|
577
575
|
};
|
|
578
|
-
$[
|
|
579
|
-
$[
|
|
580
|
-
$[
|
|
576
|
+
$[82] = setFieldTouched;
|
|
577
|
+
$[83] = setFieldValue;
|
|
578
|
+
$[84] = t58;
|
|
581
579
|
} else {
|
|
582
|
-
t58 = $[
|
|
580
|
+
t58 = $[84];
|
|
583
581
|
}
|
|
584
582
|
let t59;
|
|
585
|
-
if ($[
|
|
583
|
+
if ($[85] !== setFieldValue) {
|
|
586
584
|
t59 = () => {
|
|
587
585
|
setFieldValue("sideDialogWidth", null);
|
|
588
586
|
};
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
587
|
+
$[85] = setFieldValue;
|
|
588
|
+
$[86] = t59;
|
|
591
589
|
} else {
|
|
592
|
-
t59 = $[
|
|
590
|
+
t59 = $[86];
|
|
593
591
|
}
|
|
594
592
|
const t60 = !values.sideDialogWidth;
|
|
595
593
|
let t61;
|
|
596
|
-
if ($[
|
|
594
|
+
if ($[87] === Symbol.for("react.memo_cache_sentinel")) {
|
|
597
595
|
t61 = /* @__PURE__ */ jsx(CloseIcon, { size: "small" });
|
|
598
|
-
$[
|
|
596
|
+
$[87] = t61;
|
|
599
597
|
} else {
|
|
600
|
-
t61 = $[
|
|
598
|
+
t61 = $[87];
|
|
601
599
|
}
|
|
602
600
|
let t62;
|
|
603
|
-
if ($[
|
|
601
|
+
if ($[88] !== t59 || $[89] !== t60) {
|
|
604
602
|
t62 = /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: t59, disabled: t60, children: t61 });
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
603
|
+
$[88] = t59;
|
|
604
|
+
$[89] = t60;
|
|
605
|
+
$[90] = t62;
|
|
608
606
|
} else {
|
|
609
|
-
t62 = $[
|
|
607
|
+
t62 = $[90];
|
|
610
608
|
}
|
|
611
609
|
const t63 = values.sideDialogWidth ?? "";
|
|
612
610
|
let t64;
|
|
613
|
-
if ($[
|
|
611
|
+
if ($[91] !== t57 || $[92] !== t58 || $[93] !== t62 || $[94] !== t63) {
|
|
614
612
|
t64 = /* @__PURE__ */ jsx(TextField, { error: t57, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t58, endAdornment: t62, value: t63, label: "Side dialog width" });
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
$[
|
|
613
|
+
$[91] = t57;
|
|
614
|
+
$[92] = t58;
|
|
615
|
+
$[93] = t62;
|
|
616
|
+
$[94] = t63;
|
|
617
|
+
$[95] = t64;
|
|
620
618
|
} else {
|
|
621
|
-
t64 = $[
|
|
619
|
+
t64 = $[95];
|
|
622
620
|
}
|
|
623
621
|
const t65 = showErrors && Boolean(errors.singularName);
|
|
624
622
|
const t66 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
|
|
625
623
|
let t67;
|
|
626
|
-
if ($[
|
|
624
|
+
if ($[96] !== t65 || $[97] !== t66) {
|
|
627
625
|
t67 = /* @__PURE__ */ jsx(FieldCaption, { error: t65, children: t66 });
|
|
628
|
-
$[
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
626
|
+
$[96] = t65;
|
|
627
|
+
$[97] = t66;
|
|
628
|
+
$[98] = t67;
|
|
631
629
|
} else {
|
|
632
|
-
t67 = $[
|
|
630
|
+
t67 = $[98];
|
|
633
631
|
}
|
|
634
632
|
let t68;
|
|
635
|
-
if ($[
|
|
633
|
+
if ($[99] !== t64 || $[100] !== t67) {
|
|
636
634
|
t68 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
637
635
|
t64,
|
|
638
636
|
t67
|
|
639
637
|
] });
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
638
|
+
$[99] = t64;
|
|
639
|
+
$[100] = t67;
|
|
640
|
+
$[101] = t68;
|
|
643
641
|
} else {
|
|
644
|
-
t68 = $[
|
|
642
|
+
t68 = $[101];
|
|
645
643
|
}
|
|
646
644
|
const t69 = showErrors && Boolean(errors.description);
|
|
647
645
|
const t70 = values.description ?? "";
|
|
648
646
|
let t71;
|
|
649
|
-
if ($[
|
|
647
|
+
if ($[102] !== handleChange || $[103] !== t69 || $[104] !== t70) {
|
|
650
648
|
t71 = /* @__PURE__ */ jsx(TextField, { error: t69, name: "description", value: t70, onChange: handleChange, multiline: true, rows: 2, "aria-describedby": "description-helper-text", label: "Description" });
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
$[
|
|
649
|
+
$[102] = handleChange;
|
|
650
|
+
$[103] = t69;
|
|
651
|
+
$[104] = t70;
|
|
652
|
+
$[105] = t71;
|
|
655
653
|
} else {
|
|
656
|
-
t71 = $[
|
|
654
|
+
t71 = $[105];
|
|
657
655
|
}
|
|
658
656
|
const t72 = showErrors && Boolean(errors.description);
|
|
659
657
|
const t73 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
|
|
660
658
|
let t74;
|
|
661
|
-
if ($[
|
|
659
|
+
if ($[106] !== t72 || $[107] !== t73) {
|
|
662
660
|
t74 = /* @__PURE__ */ jsx(FieldCaption, { error: t72, children: t73 });
|
|
663
|
-
$[
|
|
664
|
-
$[
|
|
665
|
-
$[
|
|
661
|
+
$[106] = t72;
|
|
662
|
+
$[107] = t73;
|
|
663
|
+
$[108] = t74;
|
|
666
664
|
} else {
|
|
667
|
-
t74 = $[
|
|
665
|
+
t74 = $[108];
|
|
668
666
|
}
|
|
669
667
|
let t75;
|
|
670
|
-
if ($[
|
|
668
|
+
if ($[109] !== t71 || $[110] !== t74) {
|
|
671
669
|
t75 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
672
670
|
t71,
|
|
673
671
|
t74
|
|
674
672
|
] });
|
|
675
|
-
$[
|
|
676
|
-
$[
|
|
677
|
-
$[
|
|
673
|
+
$[109] = t71;
|
|
674
|
+
$[110] = t74;
|
|
675
|
+
$[111] = t75;
|
|
678
676
|
} else {
|
|
679
|
-
t75 = $[
|
|
677
|
+
t75 = $[111];
|
|
680
678
|
}
|
|
681
679
|
const t76 = values.defaultSize ?? "";
|
|
682
680
|
let t77;
|
|
683
|
-
if ($[
|
|
681
|
+
if ($[112] === Symbol.for("react.memo_cache_sentinel")) {
|
|
684
682
|
t77 = ["xs", "s", "m", "l", "xl"].map(_temp2$7);
|
|
685
|
-
$[
|
|
683
|
+
$[112] = t77;
|
|
686
684
|
} else {
|
|
687
|
-
t77 = $[
|
|
685
|
+
t77 = $[112];
|
|
688
686
|
}
|
|
689
687
|
let t78;
|
|
690
|
-
if ($[
|
|
688
|
+
if ($[113] !== handleChange || $[114] !== t76) {
|
|
691
689
|
t78 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Select, { name: "defaultSize", size: "large", fullWidth: true, label: "Default row size", position: "item-aligned", onChange: handleChange, value: t76, renderValue: _temp$b, children: t77 }) });
|
|
692
|
-
$[
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
690
|
+
$[113] = handleChange;
|
|
691
|
+
$[114] = t76;
|
|
692
|
+
$[115] = t78;
|
|
695
693
|
} else {
|
|
696
|
-
t78 = $[
|
|
694
|
+
t78 = $[115];
|
|
697
695
|
}
|
|
698
696
|
const t79 = customIdValue === "code_defined";
|
|
699
697
|
let t80;
|
|
700
|
-
if ($[
|
|
698
|
+
if ($[116] !== setFieldValue) {
|
|
701
699
|
t80 = (v) => {
|
|
702
700
|
if (v === "code_defined") {
|
|
703
701
|
throw new Error("This should not happen");
|
|
@@ -715,115 +713,115 @@ function CollectionDetailsForm(t0) {
|
|
|
715
713
|
}
|
|
716
714
|
}
|
|
717
715
|
};
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
716
|
+
$[116] = setFieldValue;
|
|
717
|
+
$[117] = t80;
|
|
720
718
|
} else {
|
|
721
|
-
t80 = $[
|
|
719
|
+
t80 = $[117];
|
|
722
720
|
}
|
|
723
721
|
const t81 = customIdValue ?? "";
|
|
724
722
|
let t82;
|
|
725
723
|
let t83;
|
|
726
724
|
let t84;
|
|
727
|
-
if ($[
|
|
725
|
+
if ($[118] === Symbol.for("react.memo_cache_sentinel")) {
|
|
728
726
|
t82 = /* @__PURE__ */ jsx(SelectItem, { value: "false", children: "Document ID is generated automatically" });
|
|
729
727
|
t83 = /* @__PURE__ */ jsx(SelectItem, { value: "true", children: "Users must define an ID" });
|
|
730
728
|
t84 = /* @__PURE__ */ jsx(SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
|
|
731
|
-
$[
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
729
|
+
$[118] = t82;
|
|
730
|
+
$[119] = t83;
|
|
731
|
+
$[120] = t84;
|
|
734
732
|
} else {
|
|
735
|
-
t82 = $[
|
|
736
|
-
t83 = $[
|
|
737
|
-
t84 = $[
|
|
733
|
+
t82 = $[118];
|
|
734
|
+
t83 = $[119];
|
|
735
|
+
t84 = $[120];
|
|
738
736
|
}
|
|
739
737
|
let t85;
|
|
740
|
-
if ($[
|
|
738
|
+
if ($[121] !== t79 || $[122] !== t80 || $[123] !== t81) {
|
|
741
739
|
t85 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs(Select, { name: "customId", label: "Document IDs generation", position: "item-aligned", size: "large", fullWidth: true, disabled: t79, onValueChange: t80, value: t81, renderValue: _temp3$4, children: [
|
|
742
740
|
t82,
|
|
743
741
|
t83,
|
|
744
742
|
t84
|
|
745
743
|
] }) });
|
|
746
|
-
$[
|
|
747
|
-
$[
|
|
748
|
-
$[
|
|
749
|
-
$[
|
|
744
|
+
$[121] = t79;
|
|
745
|
+
$[122] = t80;
|
|
746
|
+
$[123] = t81;
|
|
747
|
+
$[124] = t85;
|
|
750
748
|
} else {
|
|
751
|
-
t85 = $[
|
|
749
|
+
t85 = $[124];
|
|
752
750
|
}
|
|
753
751
|
let t86;
|
|
754
|
-
if ($[
|
|
752
|
+
if ($[125] !== setFieldValue) {
|
|
755
753
|
t86 = (v_0) => setFieldValue("collectionGroup", v_0);
|
|
756
|
-
$[
|
|
757
|
-
$[
|
|
754
|
+
$[125] = setFieldValue;
|
|
755
|
+
$[126] = t86;
|
|
758
756
|
} else {
|
|
759
|
-
t86 = $[
|
|
757
|
+
t86 = $[126];
|
|
760
758
|
}
|
|
761
759
|
const t87 = values.collectionGroup ?? false;
|
|
762
760
|
let t88;
|
|
763
|
-
if ($[
|
|
761
|
+
if ($[127] !== t86 || $[128] !== t87) {
|
|
764
762
|
t88 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", label: "Collection group", onValueChange: t86, value: t87 });
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
763
|
+
$[127] = t86;
|
|
764
|
+
$[128] = t87;
|
|
765
|
+
$[129] = t88;
|
|
768
766
|
} else {
|
|
769
|
-
t88 = $[
|
|
767
|
+
t88 = $[129];
|
|
770
768
|
}
|
|
771
769
|
let t89;
|
|
772
|
-
if ($[
|
|
770
|
+
if ($[130] === Symbol.for("react.memo_cache_sentinel")) {
|
|
773
771
|
t89 = /* @__PURE__ */ jsx(FieldCaption, { children: "A collection group consists of all collections with the same path. This allows you to query over multiple collections at once." });
|
|
774
|
-
$[
|
|
772
|
+
$[130] = t89;
|
|
775
773
|
} else {
|
|
776
|
-
t89 = $[
|
|
774
|
+
t89 = $[130];
|
|
777
775
|
}
|
|
778
776
|
let t90;
|
|
779
|
-
if ($[
|
|
777
|
+
if ($[131] !== t88) {
|
|
780
778
|
t90 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
781
779
|
t88,
|
|
782
780
|
t89
|
|
783
781
|
] });
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
782
|
+
$[131] = t88;
|
|
783
|
+
$[132] = t90;
|
|
786
784
|
} else {
|
|
787
|
-
t90 = $[
|
|
785
|
+
t90 = $[132];
|
|
788
786
|
}
|
|
789
787
|
let t91;
|
|
790
|
-
if ($[
|
|
788
|
+
if ($[133] !== setFieldValue) {
|
|
791
789
|
t91 = (v_1) => setFieldValue("textSearchEnabled", v_1);
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
790
|
+
$[133] = setFieldValue;
|
|
791
|
+
$[134] = t91;
|
|
794
792
|
} else {
|
|
795
|
-
t91 = $[
|
|
793
|
+
t91 = $[134];
|
|
796
794
|
}
|
|
797
795
|
const t92 = values.textSearchEnabled ?? false;
|
|
798
796
|
let t93;
|
|
799
|
-
if ($[
|
|
797
|
+
if ($[135] !== t91 || $[136] !== t92) {
|
|
800
798
|
t93 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", label: "Enable text search for this collection", onValueChange: t91, value: t92 });
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
$[
|
|
799
|
+
$[135] = t91;
|
|
800
|
+
$[136] = t92;
|
|
801
|
+
$[137] = t93;
|
|
804
802
|
} else {
|
|
805
|
-
t93 = $[
|
|
803
|
+
t93 = $[137];
|
|
806
804
|
}
|
|
807
805
|
let t94;
|
|
808
|
-
if ($[
|
|
806
|
+
if ($[138] === Symbol.for("react.memo_cache_sentinel")) {
|
|
809
807
|
t94 = /* @__PURE__ */ jsx(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." });
|
|
810
|
-
$[
|
|
808
|
+
$[138] = t94;
|
|
811
809
|
} else {
|
|
812
|
-
t94 = $[
|
|
810
|
+
t94 = $[138];
|
|
813
811
|
}
|
|
814
812
|
let t95;
|
|
815
|
-
if ($[
|
|
813
|
+
if ($[139] !== t93) {
|
|
816
814
|
t95 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
817
815
|
t93,
|
|
818
816
|
t94
|
|
819
817
|
] });
|
|
820
|
-
$[
|
|
821
|
-
$[
|
|
818
|
+
$[139] = t93;
|
|
819
|
+
$[140] = t95;
|
|
822
820
|
} else {
|
|
823
|
-
t95 = $[
|
|
821
|
+
t95 = $[140];
|
|
824
822
|
}
|
|
825
823
|
let t96;
|
|
826
|
-
if ($[
|
|
824
|
+
if ($[141] !== t48 || $[142] !== t56 || $[143] !== t68 || $[144] !== t75 || $[145] !== t78 || $[146] !== t85 || $[147] !== t90 || $[148] !== t95) {
|
|
827
825
|
t96 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
|
|
828
826
|
t48,
|
|
829
827
|
t56,
|
|
@@ -834,41 +832,41 @@ function CollectionDetailsForm(t0) {
|
|
|
834
832
|
t90,
|
|
835
833
|
t95
|
|
836
834
|
] });
|
|
837
|
-
$[
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
} else {
|
|
847
|
-
t96 = $[
|
|
835
|
+
$[141] = t48;
|
|
836
|
+
$[142] = t56;
|
|
837
|
+
$[143] = t68;
|
|
838
|
+
$[144] = t75;
|
|
839
|
+
$[145] = t78;
|
|
840
|
+
$[146] = t85;
|
|
841
|
+
$[147] = t90;
|
|
842
|
+
$[148] = t95;
|
|
843
|
+
$[149] = t96;
|
|
844
|
+
} else {
|
|
845
|
+
t96 = $[149];
|
|
848
846
|
}
|
|
849
847
|
let t97;
|
|
850
|
-
if ($[
|
|
848
|
+
if ($[150] !== advancedPanelExpanded || $[151] !== t96) {
|
|
851
849
|
t97 = /* @__PURE__ */ jsx(ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t41, initiallyExpanded: false, children: t96 });
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
850
|
+
$[150] = advancedPanelExpanded;
|
|
851
|
+
$[151] = t96;
|
|
852
|
+
$[152] = t97;
|
|
855
853
|
} else {
|
|
856
|
-
t97 = $[
|
|
854
|
+
t97 = $[152];
|
|
857
855
|
}
|
|
858
856
|
let t98;
|
|
859
|
-
if ($[
|
|
857
|
+
if ($[153] !== children || $[154] !== t97) {
|
|
860
858
|
t98 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-8", children: [
|
|
861
859
|
t97,
|
|
862
860
|
children
|
|
863
861
|
] });
|
|
864
|
-
$[
|
|
865
|
-
$[
|
|
866
|
-
$[
|
|
862
|
+
$[153] = children;
|
|
863
|
+
$[154] = t97;
|
|
864
|
+
$[155] = t98;
|
|
867
865
|
} else {
|
|
868
|
-
t98 = $[
|
|
866
|
+
t98 = $[155];
|
|
869
867
|
}
|
|
870
868
|
let t99;
|
|
871
|
-
if ($[
|
|
869
|
+
if ($[156] !== t27 || $[157] !== t36 || $[158] !== t37 || $[159] !== t40 || $[160] !== t98) {
|
|
872
870
|
t99 = /* @__PURE__ */ jsxs("div", { className: t19, children: [
|
|
873
871
|
t27,
|
|
874
872
|
t36,
|
|
@@ -876,68 +874,68 @@ function CollectionDetailsForm(t0) {
|
|
|
876
874
|
t40,
|
|
877
875
|
t98
|
|
878
876
|
] });
|
|
879
|
-
$[
|
|
880
|
-
$[
|
|
881
|
-
$[
|
|
882
|
-
$[
|
|
883
|
-
$[
|
|
884
|
-
$[
|
|
877
|
+
$[156] = t27;
|
|
878
|
+
$[157] = t36;
|
|
879
|
+
$[158] = t37;
|
|
880
|
+
$[159] = t40;
|
|
881
|
+
$[160] = t98;
|
|
882
|
+
$[161] = t99;
|
|
885
883
|
} else {
|
|
886
|
-
t99 = $[
|
|
884
|
+
t99 = $[161];
|
|
887
885
|
}
|
|
888
886
|
let t100;
|
|
889
|
-
if ($[
|
|
887
|
+
if ($[162] === Symbol.for("react.memo_cache_sentinel")) {
|
|
890
888
|
t100 = /* @__PURE__ */ jsx("div", { style: {
|
|
891
889
|
height: "52px"
|
|
892
890
|
} });
|
|
893
|
-
$[
|
|
891
|
+
$[162] = t100;
|
|
894
892
|
} else {
|
|
895
|
-
t100 = $[
|
|
893
|
+
t100 = $[162];
|
|
896
894
|
}
|
|
897
895
|
let t101;
|
|
898
|
-
if ($[
|
|
896
|
+
if ($[163] !== setFieldValue) {
|
|
899
897
|
t101 = (icon) => {
|
|
900
898
|
setIconDialogOpen(false);
|
|
901
899
|
setFieldValue("icon", icon);
|
|
902
900
|
};
|
|
903
|
-
$[
|
|
904
|
-
$[
|
|
901
|
+
$[163] = setFieldValue;
|
|
902
|
+
$[164] = t101;
|
|
905
903
|
} else {
|
|
906
|
-
t101 = $[
|
|
904
|
+
t101 = $[164];
|
|
907
905
|
}
|
|
908
906
|
let t102;
|
|
909
|
-
if ($[
|
|
907
|
+
if ($[165] !== t101 || $[166] !== values.icon) {
|
|
910
908
|
t102 = /* @__PURE__ */ jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsx(SearchIconsView, { selectedIcon: values.icon, onIconSelected: t101 }) });
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
909
|
+
$[165] = t101;
|
|
910
|
+
$[166] = values.icon;
|
|
911
|
+
$[167] = t102;
|
|
914
912
|
} else {
|
|
915
|
-
t102 = $[
|
|
913
|
+
t102 = $[167];
|
|
916
914
|
}
|
|
917
915
|
let t103;
|
|
918
|
-
if ($[
|
|
916
|
+
if ($[168] !== iconDialogOpen || $[169] !== t102) {
|
|
919
917
|
t103 = /* @__PURE__ */ jsx(Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t102 });
|
|
920
|
-
$[
|
|
921
|
-
$[
|
|
922
|
-
$[
|
|
918
|
+
$[168] = iconDialogOpen;
|
|
919
|
+
$[169] = t102;
|
|
920
|
+
$[170] = t103;
|
|
923
921
|
} else {
|
|
924
|
-
t103 = $[
|
|
922
|
+
t103 = $[170];
|
|
925
923
|
}
|
|
926
924
|
let t104;
|
|
927
|
-
if ($[
|
|
925
|
+
if ($[171] !== T0 || $[172] !== t103 || $[173] !== t18 || $[174] !== t99) {
|
|
928
926
|
t104 = /* @__PURE__ */ jsx("div", { className: t7, children: /* @__PURE__ */ jsxs(T0, { maxWidth: t8, className: t9, children: [
|
|
929
927
|
t18,
|
|
930
928
|
t99,
|
|
931
929
|
t100,
|
|
932
930
|
t103
|
|
933
931
|
] }) });
|
|
934
|
-
$[
|
|
935
|
-
$[
|
|
936
|
-
$[
|
|
937
|
-
$[
|
|
938
|
-
$[
|
|
932
|
+
$[171] = T0;
|
|
933
|
+
$[172] = t103;
|
|
934
|
+
$[173] = t18;
|
|
935
|
+
$[174] = t99;
|
|
936
|
+
$[175] = t104;
|
|
939
937
|
} else {
|
|
940
|
-
t104 = $[
|
|
938
|
+
t104 = $[175];
|
|
941
939
|
}
|
|
942
940
|
return t104;
|
|
943
941
|
}
|
|
@@ -9543,7 +9541,7 @@ const validateId = (value, isNewCollection, existingPaths, existingIds) => {
|
|
|
9543
9541
|
const ConfigControllerContext = React__default.createContext({});
|
|
9544
9542
|
const CollectionEditorContext = React__default.createContext({});
|
|
9545
9543
|
const ConfigControllerProvider = React__default.memo(function ConfigControllerProvider2(t0) {
|
|
9546
|
-
const $ = c(
|
|
9544
|
+
const $ = c(67);
|
|
9547
9545
|
const {
|
|
9548
9546
|
children,
|
|
9549
9547
|
collectionConfigController,
|
|
@@ -9554,8 +9552,7 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9554
9552
|
getPathSuggestions,
|
|
9555
9553
|
getUser,
|
|
9556
9554
|
getData,
|
|
9557
|
-
onAnalyticsEvent
|
|
9558
|
-
components
|
|
9555
|
+
onAnalyticsEvent
|
|
9559
9556
|
} = t0;
|
|
9560
9557
|
const navigation = useNavigationController();
|
|
9561
9558
|
const navigate = useNavigate();
|
|
@@ -9673,28 +9670,26 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9673
9670
|
const createCollection = t3;
|
|
9674
9671
|
const t4 = configPermissions ?? defaultConfigPermissions;
|
|
9675
9672
|
let t5;
|
|
9676
|
-
if ($[6] !==
|
|
9673
|
+
if ($[6] !== createCollection || $[7] !== editCollection || $[8] !== editProperty || $[9] !== getPathSuggestions || $[10] !== t4) {
|
|
9677
9674
|
t5 = {
|
|
9678
9675
|
editCollection,
|
|
9679
9676
|
createCollection,
|
|
9680
9677
|
editProperty,
|
|
9681
9678
|
configPermissions: t4,
|
|
9682
|
-
getPathSuggestions
|
|
9683
|
-
components
|
|
9679
|
+
getPathSuggestions
|
|
9684
9680
|
};
|
|
9685
|
-
$[6] =
|
|
9686
|
-
$[7] =
|
|
9687
|
-
$[8] =
|
|
9688
|
-
$[9] =
|
|
9689
|
-
$[10] =
|
|
9690
|
-
$[11] =
|
|
9691
|
-
$[12] = t5;
|
|
9681
|
+
$[6] = createCollection;
|
|
9682
|
+
$[7] = editCollection;
|
|
9683
|
+
$[8] = editProperty;
|
|
9684
|
+
$[9] = getPathSuggestions;
|
|
9685
|
+
$[10] = t4;
|
|
9686
|
+
$[11] = t5;
|
|
9692
9687
|
} else {
|
|
9693
|
-
t5 = $[
|
|
9688
|
+
t5 = $[11];
|
|
9694
9689
|
}
|
|
9695
9690
|
const t6 = Boolean(currentDialog);
|
|
9696
9691
|
let t7;
|
|
9697
|
-
if ($[
|
|
9692
|
+
if ($[12] !== currentDialog || $[13] !== navigate || $[14] !== navigation) {
|
|
9698
9693
|
t7 = (collection_0) => {
|
|
9699
9694
|
if (currentDialog?.redirect) {
|
|
9700
9695
|
if (collection_0 && currentDialog?.isNewCollection && !currentDialog.parentCollectionIds.length) {
|
|
@@ -9704,29 +9699,29 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9704
9699
|
}
|
|
9705
9700
|
setCurrentDialog(void 0);
|
|
9706
9701
|
};
|
|
9707
|
-
$[
|
|
9708
|
-
$[
|
|
9709
|
-
$[
|
|
9710
|
-
$[
|
|
9702
|
+
$[12] = currentDialog;
|
|
9703
|
+
$[13] = navigate;
|
|
9704
|
+
$[14] = navigation;
|
|
9705
|
+
$[15] = t7;
|
|
9711
9706
|
} else {
|
|
9712
|
-
t7 = $[
|
|
9707
|
+
t7 = $[15];
|
|
9713
9708
|
}
|
|
9714
9709
|
let t8;
|
|
9715
|
-
if ($[
|
|
9710
|
+
if ($[16] !== collectionConfigController || $[17] !== collectionInference || $[18] !== currentDialog || $[19] !== extraView || $[20] !== getData || $[21] !== getPathSuggestions || $[22] !== getUser || $[23] !== reservedGroups || $[24] !== t6 || $[25] !== t7) {
|
|
9716
9711
|
t8 = /* @__PURE__ */ jsx(CollectionEditorDialog, { open: t6, configController: collectionConfigController, isNewCollection: false, collectionInference, ...currentDialog, getData, reservedGroups, extraView, pathSuggestions: getPathSuggestions, getUser, handleClose: t7 });
|
|
9717
|
-
$[
|
|
9718
|
-
$[
|
|
9719
|
-
$[
|
|
9720
|
-
$[
|
|
9721
|
-
$[
|
|
9722
|
-
$[
|
|
9723
|
-
$[
|
|
9724
|
-
$[
|
|
9725
|
-
$[
|
|
9726
|
-
$[
|
|
9727
|
-
$[
|
|
9712
|
+
$[16] = collectionConfigController;
|
|
9713
|
+
$[17] = collectionInference;
|
|
9714
|
+
$[18] = currentDialog;
|
|
9715
|
+
$[19] = extraView;
|
|
9716
|
+
$[20] = getData;
|
|
9717
|
+
$[21] = getPathSuggestions;
|
|
9718
|
+
$[22] = getUser;
|
|
9719
|
+
$[23] = reservedGroups;
|
|
9720
|
+
$[24] = t6;
|
|
9721
|
+
$[25] = t7;
|
|
9722
|
+
$[26] = t8;
|
|
9728
9723
|
} else {
|
|
9729
|
-
t8 = $[
|
|
9724
|
+
t8 = $[26];
|
|
9730
9725
|
}
|
|
9731
9726
|
const t9 = Boolean(currentPropertyDialog);
|
|
9732
9727
|
const t10 = Boolean(currentPropertyDialog?.propertyKey);
|
|
@@ -9734,21 +9729,21 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9734
9729
|
const t12 = !currentPropertyDialog ? false : !currentPropertyDialog?.propertyKey;
|
|
9735
9730
|
const t13 = currentPropertyDialog?.collectionEditable ?? false;
|
|
9736
9731
|
let t14;
|
|
9737
|
-
if ($[
|
|
9732
|
+
if ($[27] !== currentPropertyDialog || $[28] !== getData || $[29] !== navigation) {
|
|
9738
9733
|
t14 = getData && currentPropertyDialog?.editedCollectionId ? () => {
|
|
9739
9734
|
console.debug("get data for property", currentPropertyDialog?.editedCollectionId);
|
|
9740
9735
|
const resolvedPath = navigation.resolveIdsFrom(currentPropertyDialog.editedCollectionId);
|
|
9741
9736
|
return getData(resolvedPath, []);
|
|
9742
9737
|
} : void 0;
|
|
9743
|
-
$[
|
|
9744
|
-
$[
|
|
9745
|
-
$[
|
|
9746
|
-
$[
|
|
9738
|
+
$[27] = currentPropertyDialog;
|
|
9739
|
+
$[28] = getData;
|
|
9740
|
+
$[29] = navigation;
|
|
9741
|
+
$[30] = t14;
|
|
9747
9742
|
} else {
|
|
9748
|
-
t14 = $[
|
|
9743
|
+
t14 = $[30];
|
|
9749
9744
|
}
|
|
9750
9745
|
let t15;
|
|
9751
|
-
if ($[
|
|
9746
|
+
if ($[31] !== collectionConfigController || $[32] !== currentPropertyDialog || $[33] !== snackbarController) {
|
|
9752
9747
|
t15 = (t162) => {
|
|
9753
9748
|
const {
|
|
9754
9749
|
id: id_0,
|
|
@@ -9777,15 +9772,15 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9777
9772
|
return false;
|
|
9778
9773
|
});
|
|
9779
9774
|
};
|
|
9780
|
-
$[
|
|
9781
|
-
$[
|
|
9782
|
-
$[
|
|
9783
|
-
$[
|
|
9775
|
+
$[31] = collectionConfigController;
|
|
9776
|
+
$[32] = currentPropertyDialog;
|
|
9777
|
+
$[33] = snackbarController;
|
|
9778
|
+
$[34] = t15;
|
|
9784
9779
|
} else {
|
|
9785
|
-
t15 = $[
|
|
9780
|
+
t15 = $[34];
|
|
9786
9781
|
}
|
|
9787
9782
|
let t16;
|
|
9788
|
-
if ($[
|
|
9783
|
+
if ($[35] !== collectionConfigController || $[36] !== currentPropertyDialog?.currentPropertiesOrder || $[37] !== currentPropertyDialog?.editedCollectionId || $[38] !== currentPropertyDialog?.namespace || $[39] !== currentPropertyDialog?.parentCollectionIds || $[40] !== currentPropertyDialog?.propertyKey || $[41] !== snackbarController) {
|
|
9789
9784
|
t16 = () => {
|
|
9790
9785
|
if (!currentPropertyDialog?.propertyKey) {
|
|
9791
9786
|
return;
|
|
@@ -9808,21 +9803,21 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9808
9803
|
return false;
|
|
9809
9804
|
});
|
|
9810
9805
|
};
|
|
9811
|
-
$[
|
|
9812
|
-
$[
|
|
9813
|
-
$[
|
|
9814
|
-
$[
|
|
9815
|
-
$[
|
|
9816
|
-
$[
|
|
9817
|
-
$[
|
|
9818
|
-
$[
|
|
9806
|
+
$[35] = collectionConfigController;
|
|
9807
|
+
$[36] = currentPropertyDialog?.currentPropertiesOrder;
|
|
9808
|
+
$[37] = currentPropertyDialog?.editedCollectionId;
|
|
9809
|
+
$[38] = currentPropertyDialog?.namespace;
|
|
9810
|
+
$[39] = currentPropertyDialog?.parentCollectionIds;
|
|
9811
|
+
$[40] = currentPropertyDialog?.propertyKey;
|
|
9812
|
+
$[41] = snackbarController;
|
|
9813
|
+
$[42] = t16;
|
|
9819
9814
|
} else {
|
|
9820
|
-
t16 = $[
|
|
9815
|
+
t16 = $[42];
|
|
9821
9816
|
}
|
|
9822
9817
|
let t17;
|
|
9823
9818
|
let t18;
|
|
9824
9819
|
let t19;
|
|
9825
|
-
if ($[
|
|
9820
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9826
9821
|
t17 = () => {
|
|
9827
9822
|
setCurrentPropertyDialog(void 0);
|
|
9828
9823
|
};
|
|
@@ -9830,64 +9825,64 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
|
|
|
9830
9825
|
setCurrentPropertyDialog(void 0);
|
|
9831
9826
|
};
|
|
9832
9827
|
t19 = {};
|
|
9833
|
-
$[
|
|
9834
|
-
$[
|
|
9835
|
-
$[
|
|
9828
|
+
$[43] = t17;
|
|
9829
|
+
$[44] = t18;
|
|
9830
|
+
$[45] = t19;
|
|
9836
9831
|
} else {
|
|
9837
|
-
t17 = $[
|
|
9838
|
-
t18 = $[
|
|
9839
|
-
t19 = $[
|
|
9832
|
+
t17 = $[43];
|
|
9833
|
+
t18 = $[44];
|
|
9834
|
+
t19 = $[45];
|
|
9840
9835
|
}
|
|
9841
9836
|
let t20;
|
|
9842
|
-
if ($[
|
|
9837
|
+
if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9843
9838
|
t20 = [];
|
|
9844
|
-
$[
|
|
9839
|
+
$[46] = t20;
|
|
9845
9840
|
} else {
|
|
9846
|
-
t20 = $[
|
|
9841
|
+
t20 = $[46];
|
|
9847
9842
|
}
|
|
9848
9843
|
const t21 = currentPropertyDialog?.property;
|
|
9849
9844
|
const t22 = currentPropertyDialog?.propertyKey;
|
|
9850
9845
|
let t23;
|
|
9851
|
-
if ($[
|
|
9846
|
+
if ($[47] !== propertyConfigs || $[48] !== t10 || $[49] !== t11 || $[50] !== t12 || $[51] !== t13 || $[52] !== t14 || $[53] !== t15 || $[54] !== t16 || $[55] !== t21 || $[56] !== t22 || $[57] !== t9) {
|
|
9852
9847
|
t23 = /* @__PURE__ */ jsx(PropertyFormDialog, { open: t9, includeIdAndName: true, existingProperty: t10, autoUpdateId: t11, autoOpenTypeSelect: t12, inArray: false, collectionEditable: t13, getData: t14, onPropertyChanged: t15, onPropertyChangedImmediate: false, onDelete: t16, onError: _temp2, onOkClicked: t17, onCancel: t18, initialErrors: t19, forceShowErrors: false, existingPropertyKeys: t20, allowDataInference: true, propertyConfigs, property: t21, propertyKey: t22 });
|
|
9853
|
-
$[
|
|
9854
|
-
$[
|
|
9855
|
-
$[
|
|
9856
|
-
$[
|
|
9857
|
-
$[
|
|
9858
|
-
$[
|
|
9859
|
-
$[
|
|
9860
|
-
$[
|
|
9861
|
-
$[
|
|
9862
|
-
$[
|
|
9863
|
-
$[
|
|
9864
|
-
$[
|
|
9865
|
-
} else {
|
|
9866
|
-
t23 = $[
|
|
9848
|
+
$[47] = propertyConfigs;
|
|
9849
|
+
$[48] = t10;
|
|
9850
|
+
$[49] = t11;
|
|
9851
|
+
$[50] = t12;
|
|
9852
|
+
$[51] = t13;
|
|
9853
|
+
$[52] = t14;
|
|
9854
|
+
$[53] = t15;
|
|
9855
|
+
$[54] = t16;
|
|
9856
|
+
$[55] = t21;
|
|
9857
|
+
$[56] = t22;
|
|
9858
|
+
$[57] = t9;
|
|
9859
|
+
$[58] = t23;
|
|
9860
|
+
} else {
|
|
9861
|
+
t23 = $[58];
|
|
9867
9862
|
}
|
|
9868
9863
|
let t24;
|
|
9869
|
-
if ($[
|
|
9864
|
+
if ($[59] !== children || $[60] !== t23 || $[61] !== t5 || $[62] !== t8) {
|
|
9870
9865
|
t24 = /* @__PURE__ */ jsxs(CollectionEditorContext.Provider, { value: t5, children: [
|
|
9871
9866
|
children,
|
|
9872
9867
|
t8,
|
|
9873
9868
|
t23
|
|
9874
9869
|
] });
|
|
9875
|
-
$[
|
|
9876
|
-
$[
|
|
9877
|
-
$[
|
|
9878
|
-
$[
|
|
9879
|
-
$[
|
|
9870
|
+
$[59] = children;
|
|
9871
|
+
$[60] = t23;
|
|
9872
|
+
$[61] = t5;
|
|
9873
|
+
$[62] = t8;
|
|
9874
|
+
$[63] = t24;
|
|
9880
9875
|
} else {
|
|
9881
|
-
t24 = $[
|
|
9876
|
+
t24 = $[63];
|
|
9882
9877
|
}
|
|
9883
9878
|
let t25;
|
|
9884
|
-
if ($[
|
|
9879
|
+
if ($[64] !== collectionConfigController || $[65] !== t24) {
|
|
9885
9880
|
t25 = /* @__PURE__ */ jsx(ConfigControllerContext.Provider, { value: collectionConfigController, children: t24 });
|
|
9886
|
-
$[
|
|
9887
|
-
$[
|
|
9888
|
-
$[
|
|
9881
|
+
$[64] = collectionConfigController;
|
|
9882
|
+
$[65] = t24;
|
|
9883
|
+
$[66] = t25;
|
|
9889
9884
|
} else {
|
|
9890
|
-
t25 = $[
|
|
9885
|
+
t25 = $[66];
|
|
9891
9886
|
}
|
|
9892
9887
|
return t25;
|
|
9893
9888
|
}, equal);
|
|
@@ -10502,7 +10497,7 @@ function NewCollectionCard(t0) {
|
|
|
10502
10497
|
return t8;
|
|
10503
10498
|
}
|
|
10504
10499
|
function useCollectionEditorPlugin(t0) {
|
|
10505
|
-
const $ = c(
|
|
10500
|
+
const $ = c(15);
|
|
10506
10501
|
const {
|
|
10507
10502
|
collectionConfigController,
|
|
10508
10503
|
configPermissions,
|
|
@@ -10512,11 +10507,10 @@ function useCollectionEditorPlugin(t0) {
|
|
|
10512
10507
|
getUser,
|
|
10513
10508
|
collectionInference,
|
|
10514
10509
|
getData,
|
|
10515
|
-
onAnalyticsEvent
|
|
10516
|
-
components
|
|
10510
|
+
onAnalyticsEvent
|
|
10517
10511
|
} = t0;
|
|
10518
10512
|
let t1;
|
|
10519
|
-
if ($[0] !== collectionConfigController || $[1] !== collectionInference || $[2] !==
|
|
10513
|
+
if ($[0] !== collectionConfigController || $[1] !== collectionInference || $[2] !== configPermissions || $[3] !== extraView || $[4] !== getData || $[5] !== getPathSuggestions || $[6] !== getUser || $[7] !== onAnalyticsEvent || $[8] !== reservedGroups) {
|
|
10520
10514
|
t1 = {
|
|
10521
10515
|
Component: ConfigControllerProvider,
|
|
10522
10516
|
props: {
|
|
@@ -10528,27 +10522,25 @@ function useCollectionEditorPlugin(t0) {
|
|
|
10528
10522
|
getPathSuggestions,
|
|
10529
10523
|
getUser,
|
|
10530
10524
|
getData,
|
|
10531
|
-
onAnalyticsEvent
|
|
10532
|
-
components
|
|
10525
|
+
onAnalyticsEvent
|
|
10533
10526
|
}
|
|
10534
10527
|
};
|
|
10535
10528
|
$[0] = collectionConfigController;
|
|
10536
10529
|
$[1] = collectionInference;
|
|
10537
|
-
$[2] =
|
|
10538
|
-
$[3] =
|
|
10539
|
-
$[4] =
|
|
10540
|
-
$[5] =
|
|
10541
|
-
$[6] =
|
|
10542
|
-
$[7] =
|
|
10543
|
-
$[8] =
|
|
10544
|
-
$[9] =
|
|
10545
|
-
$[10] = t1;
|
|
10530
|
+
$[2] = configPermissions;
|
|
10531
|
+
$[3] = extraView;
|
|
10532
|
+
$[4] = getData;
|
|
10533
|
+
$[5] = getPathSuggestions;
|
|
10534
|
+
$[6] = getUser;
|
|
10535
|
+
$[7] = onAnalyticsEvent;
|
|
10536
|
+
$[8] = reservedGroups;
|
|
10537
|
+
$[9] = t1;
|
|
10546
10538
|
} else {
|
|
10547
|
-
t1 = $[
|
|
10539
|
+
t1 = $[9];
|
|
10548
10540
|
}
|
|
10549
10541
|
let t2;
|
|
10550
10542
|
let t3;
|
|
10551
|
-
if ($[
|
|
10543
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10552
10544
|
t2 = {
|
|
10553
10545
|
additionalActions: /* @__PURE__ */ jsx(NewCollectionButton, {}),
|
|
10554
10546
|
additionalChildrenStart: /* @__PURE__ */ jsx(IntroWidget, {}),
|
|
@@ -10561,14 +10553,14 @@ function useCollectionEditorPlugin(t0) {
|
|
|
10561
10553
|
HeaderAction: CollectionViewHeaderAction,
|
|
10562
10554
|
AddColumnComponent: PropertyAddColumnComponent
|
|
10563
10555
|
};
|
|
10564
|
-
$[
|
|
10565
|
-
$[
|
|
10556
|
+
$[10] = t2;
|
|
10557
|
+
$[11] = t3;
|
|
10566
10558
|
} else {
|
|
10567
|
-
t2 = $[
|
|
10568
|
-
t3 = $[
|
|
10559
|
+
t2 = $[10];
|
|
10560
|
+
t3 = $[11];
|
|
10569
10561
|
}
|
|
10570
10562
|
let t4;
|
|
10571
|
-
if ($[
|
|
10563
|
+
if ($[12] !== collectionConfigController.loading || $[13] !== t1) {
|
|
10572
10564
|
t4 = {
|
|
10573
10565
|
key: "collection_editor",
|
|
10574
10566
|
loading: collectionConfigController.loading,
|
|
@@ -10576,11 +10568,11 @@ function useCollectionEditorPlugin(t0) {
|
|
|
10576
10568
|
homePage: t2,
|
|
10577
10569
|
collectionView: t3
|
|
10578
10570
|
};
|
|
10579
|
-
$[
|
|
10580
|
-
$[
|
|
10581
|
-
$[
|
|
10571
|
+
$[12] = collectionConfigController.loading;
|
|
10572
|
+
$[13] = t1;
|
|
10573
|
+
$[14] = t4;
|
|
10582
10574
|
} else {
|
|
10583
|
-
t4 = $[
|
|
10575
|
+
t4 = $[14];
|
|
10584
10576
|
}
|
|
10585
10577
|
return t4;
|
|
10586
10578
|
}
|