@acorex/platform 19.4.12 → 19.4.14
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/core/lib/data/datasource-definition-provider.service.d.ts +8 -2
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +52 -0
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/layout/entity/lib/entity-middleware/entity-modifier.types.d.ts +26 -3
- package/package.json +1 -1
|
@@ -497,6 +497,58 @@ function createModifierContext(entity) {
|
|
|
497
497
|
entity.interfaces = updater(entity.interfaces);
|
|
498
498
|
return ctx;
|
|
499
499
|
},
|
|
500
|
+
master: {
|
|
501
|
+
get: () => entity.interfaces?.master,
|
|
502
|
+
update: (updater) => {
|
|
503
|
+
entity.interfaces ??= {};
|
|
504
|
+
entity.interfaces.master = updater(entity.interfaces.master);
|
|
505
|
+
return ctx;
|
|
506
|
+
},
|
|
507
|
+
create: {
|
|
508
|
+
get: () => entity.interfaces?.master?.create,
|
|
509
|
+
update: (updater) => {
|
|
510
|
+
entity.interfaces ??= {};
|
|
511
|
+
entity.interfaces.master ??= {};
|
|
512
|
+
entity.interfaces.master.create = updater(entity.interfaces.master.create);
|
|
513
|
+
return ctx;
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
modify: {
|
|
517
|
+
get: () => entity.interfaces?.master?.create,
|
|
518
|
+
update: (updater) => {
|
|
519
|
+
entity.interfaces ??= {};
|
|
520
|
+
entity.interfaces.master ??= {};
|
|
521
|
+
entity.interfaces.master.update = updater(entity.interfaces.master.update);
|
|
522
|
+
return ctx;
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
single: {
|
|
526
|
+
get: () => entity.interfaces?.master?.single,
|
|
527
|
+
update: (updater) => {
|
|
528
|
+
entity.interfaces ??= {};
|
|
529
|
+
entity.interfaces.master ??= {};
|
|
530
|
+
entity.interfaces.master.single = updater(entity.interfaces.master.single);
|
|
531
|
+
return ctx;
|
|
532
|
+
},
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
detail: {
|
|
536
|
+
get: () => entity.interfaces?.detail,
|
|
537
|
+
update: (updater) => {
|
|
538
|
+
entity.interfaces ??= {};
|
|
539
|
+
entity.interfaces.detail = updater(entity.interfaces.detail);
|
|
540
|
+
return ctx;
|
|
541
|
+
},
|
|
542
|
+
list: {
|
|
543
|
+
get: () => entity.interfaces?.detail?.list,
|
|
544
|
+
update: (updater) => {
|
|
545
|
+
entity.interfaces ??= {};
|
|
546
|
+
entity.interfaces.detail ??= {};
|
|
547
|
+
entity.interfaces.detail.list = updater(entity.interfaces.detail.list);
|
|
548
|
+
return ctx;
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
},
|
|
500
552
|
},
|
|
501
553
|
toEntity: () => entity,
|
|
502
554
|
};
|