@acorex/modules 19.2.11 → 19.2.12

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.
Files changed (26) hide show
  1. package/fesm2022/acorex-modules-conversation.mjs +1 -1
  2. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  3. package/fesm2022/acorex-modules-document-management.mjs +104 -175
  4. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  5. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-BTQ4VpFG.mjs} +8 -8
  6. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs.map → acorex-modules-form-template-management-acorex-modules-form-template-management-BTQ4VpFG.mjs.map} +1 -1
  7. package/fesm2022/{acorex-modules-form-template-management-category.entity-D00XZd7o.mjs → acorex-modules-form-template-management-category.entity-ChxSjvOF.mjs} +2 -2
  8. package/fesm2022/{acorex-modules-form-template-management-category.entity-D00XZd7o.mjs.map → acorex-modules-form-template-management-category.entity-ChxSjvOF.mjs.map} +1 -1
  9. package/fesm2022/{acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs → acorex-modules-form-template-management-setting.provider-CByIOZMr.mjs} +2 -2
  10. package/fesm2022/{acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs.map → acorex-modules-form-template-management-setting.provider-CByIOZMr.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs → acorex-modules-form-template-management-template-picker.component-BGSucRLY.mjs} +2 -2
  12. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs.map → acorex-modules-form-template-management-template-picker.component-BGSucRLY.mjs.map} +1 -1
  13. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs → acorex-modules-form-template-management-template-widget-edit.component-Chle-W7b.mjs} +2 -2
  14. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-Chle-W7b.mjs.map} +1 -1
  15. package/fesm2022/{acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs → acorex-modules-form-template-management-template.entity-BIBMNXD5.mjs} +2 -2
  16. package/fesm2022/{acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs.map → acorex-modules-form-template-management-template.entity-BIBMNXD5.mjs.map} +1 -1
  17. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs → acorex-modules-form-template-management-viewer-popup.component-DPxTaC2A.mjs} +2 -2
  18. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs.map → acorex-modules-form-template-management-viewer-popup.component-DPxTaC2A.mjs.map} +1 -1
  19. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  20. package/fesm2022/{acorex-modules-organization-management-add-item.component-PhQRBTtI.mjs → acorex-modules-organization-management-add-item.component-BXRyhcjE.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-organization-management-add-item.component-PhQRBTtI.mjs.map → acorex-modules-organization-management-add-item.component-BXRyhcjE.mjs.map} +1 -1
  22. package/fesm2022/{acorex-modules-organization-management-org-chart.page-BSh18amn.mjs → acorex-modules-organization-management-org-chart.page-DMxaL-70.mjs} +4 -4
  23. package/fesm2022/{acorex-modules-organization-management-org-chart.page-BSh18amn.mjs.map → acorex-modules-organization-management-org-chart.page-DMxaL-70.mjs.map} +1 -1
  24. package/fesm2022/acorex-modules-organization-management.mjs +1 -1
  25. package/package.json +1 -1
  26. package/document-management/lib/entities/document-type/coulmn-def.widget.d.ts +0 -70
@@ -4,7 +4,8 @@ import { AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
4
4
  import { AXPSearchCommandProvider, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, createAllQueryView, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
5
5
  import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
6
6
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
7
- import { upperFirst, camelCase } from 'lodash-es';
7
+ import { AXDataSource } from '@acorex/components/common';
8
+ import { AXMPlatformManagementMetaDataDefinitionEntityService } from '@acorex/modules/platform-management';
8
9
 
9
10
  const config = {
10
11
  i18n: 'document-management',
@@ -453,160 +454,6 @@ var index$1 = /*#__PURE__*/Object.freeze({
453
454
  documentFactory: documentFactory
454
455
  });
455
456
 
456
- const AXM_COLUMN_DEF_WIDGET = [
457
- {
458
- type: 'grid-row-layout',
459
- mode: 'view',
460
- children: [
461
- {
462
- type: 'grid-item-layout',
463
- mode: 'view',
464
- options: { colSpan: 3 },
465
- children: [
466
- {
467
- type: 'text-editor',
468
- mode: 'edit',
469
- path: 'name',
470
- options: {
471
- placeholder: 'Name',
472
- defaultValue: 'test',
473
- },
474
- },
475
- ],
476
- },
477
- {
478
- type: 'grid-item-layout',
479
- mode: 'view',
480
- options: { colSpan: 3 },
481
- children: [
482
- {
483
- type: 'text-editor',
484
- mode: 'edit',
485
- path: 'title',
486
- options: {
487
- placeholder: 'Title',
488
- },
489
- },
490
- ],
491
- },
492
- {
493
- type: 'grid-item-layout',
494
- options: { colSpan: 3 },
495
- mode: 'view',
496
- children: [
497
- {
498
- type: 'select-editor',
499
- mode: 'edit',
500
- path: 'type',
501
- options: {
502
- ruleValidation: {
503
- rule: true,
504
- },
505
- placeholder: 'Type',
506
- valueField: 'name',
507
- textField: 'title',
508
- dataSource: Object.entries(AXPWidgetsCatalog).map(([key, value]) => {
509
- return {
510
- title: upperFirst(camelCase(key)),
511
- name: value,
512
- };
513
- }),
514
- direction: 'horizontal',
515
- multiple: false,
516
- },
517
- },
518
- ],
519
- },
520
- {
521
- type: 'grid-item-layout',
522
- options: { colSpan: 2 },
523
- mode: 'view',
524
- children: [
525
- {
526
- type: 'checkbox-editor',
527
- mode: 'edit',
528
- path: 'isRequire',
529
- },
530
- ],
531
- },
532
- ],
533
- },
534
- ];
535
- // export const AXM_COLUMN_DEF_WIDGET = [
536
- // {
537
- // type: 'grid-row-layout',
538
- // // name: 'grid-row-layout1',
539
- // mode: 'view',
540
- // path: '',
541
- // children: [
542
- // {
543
- // type: 'grid-item-layout',
544
- // mode: 'view',
545
- // // path: '',
546
- // options: { colSpan: 4 },
547
- // // name: 'grid-item-layout1',
548
- // children: [
549
- // {
550
- // type: 'text-editor',
551
- // //name: 'text-editor1',
552
- // mode: 'edit',
553
- // path: 'name',
554
- // options: {
555
- // placeholder: 'Name',
556
- // defaultValue: 'test',
557
- // },
558
- // },
559
- // ],
560
- // },
561
- // {
562
- // type: 'grid-item-layout',
563
- // mode: 'view',
564
- // // path: '',
565
- // options: { colSpan: 4 },
566
- // //name: 'grid-item-layout2',
567
- // children: [
568
- // {
569
- // type: 'text-editor',
570
- // // name: 'text-editor2',
571
- // mode: 'edit',
572
- // path: 'title',
573
- // options: {
574
- // placeholder: 'Title',
575
- // },
576
- // },
577
- // ],
578
- // },
579
- // {
580
- // type: 'grid-item-layout',
581
- // options: { colSpan: 4 },
582
- // mode: 'view',
583
- // // path: '',
584
- // // name: 'grid-item-layout3',
585
- // children: [
586
- // {
587
- // type: 'select-editor',
588
- // //name: 'select-editor1',
589
- // mode: 'edit',
590
- // path: 'type',
591
- // options: {
592
- // placeholder: 'Type',
593
- // valueField: 'name',
594
- // textField: 'title',
595
- // dataSource: [
596
- // { title: 'text', name: AXPWidgetsCatalog.text },
597
- // { title: 'Check Box', name: AXPWidgetsCatalog.checkbox },
598
- // { title: 'Gallery', name: AXPWidgetsCatalog.gallery },
599
- // ],
600
- // direction: 'horizontal',
601
- // multiple: false,
602
- // },
603
- // },
604
- // ],
605
- // },
606
- // ],
607
- // },
608
- // ];
609
-
610
457
  class AXMDocumentManagementDocumentTypeEntityService extends AXMEntityCrudServiceImpl {
611
458
  }
612
459
  class AXMDocumentManagementDocumentTypeEntityServiceImpl extends AXMDocumentManagementDocumentTypeEntityService {
@@ -622,6 +469,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
622
469
 
623
470
  async function documentTypeFactory(injector) {
624
471
  const dataService = injector.get(AXMDocumentManagementDocumentTypeEntityService);
472
+ const metaDefinitionService = injector.get(AXMPlatformManagementMetaDataDefinitionEntityService);
625
473
  const i18n = RootConfig.config.i18n;
626
474
  const entityDef = {
627
475
  module: RootConfig.module.name,
@@ -681,33 +529,54 @@ async function documentTypeFactory(injector) {
681
529
  },
682
530
  ],
683
531
  },
532
+ {
533
+ name: 'maxSize',
534
+ title: `t("maxSize", { scope: "${i18n}" })`,
535
+ groupId: 'section',
536
+ schema: {
537
+ dataType: 'number',
538
+ interface: {
539
+ type: AXPWidgetsCatalog.number,
540
+ },
541
+ },
542
+ validations: [
543
+ {
544
+ rule: 'required',
545
+ },
546
+ ],
547
+ },
548
+ {
549
+ name: 'isEncrypted',
550
+ title: `t("isEncrypted", { scope: "${i18n}" })`,
551
+ groupId: 'section',
552
+ schema: {
553
+ dataType: 'boolean',
554
+ interface: {
555
+ type: AXPWidgetsCatalog.checkbox,
556
+ },
557
+ },
558
+ },
684
559
  {
685
560
  name: 'meta',
686
561
  title: `t("meta", { scope: "${i18n}" })`,
687
562
  groupId: 'section',
688
563
  schema: {
689
- defaultValue: [
690
- {
691
- name: 'name',
692
- title: 'Name',
693
- type: {
694
- title: 'Text',
695
- name: 'text-editor',
696
- },
697
- },
698
- {
699
- name: 'title',
700
- title: 'Title',
701
- type: {
702
- title: 'Text',
703
- name: 'text-editor',
704
- },
705
- },
706
- ],
707
564
  dataType: 'object',
708
565
  interface: {
709
- type: AXPWidgetsCatalog.repeaterLayout,
710
- children: AXM_COLUMN_DEF_WIDGET,
566
+ type: AXPWidgetsCatalog.select,
567
+ options: {
568
+ valueField: 'id',
569
+ textField: 'title',
570
+ //defaultValue: AXMFormTemplateTypes.Form,
571
+ dataSource: new AXDataSource({
572
+ load: async (_) => {
573
+ const metaData = await metaDefinitionService.query();
574
+ return metaData;
575
+ },
576
+ pageSize: 100,
577
+ }),
578
+ multiple: true,
579
+ },
711
580
  },
712
581
  },
713
582
  },
@@ -774,6 +643,26 @@ async function documentTypeFactory(injector) {
774
643
  },
775
644
  },
776
645
  },
646
+ {
647
+ name: 'maxSize',
648
+ layout: {
649
+ positions: {
650
+ lg: {
651
+ colSpan: 6,
652
+ },
653
+ },
654
+ },
655
+ },
656
+ {
657
+ name: 'isEncrypted',
658
+ layout: {
659
+ positions: {
660
+ lg: {
661
+ colSpan: 6,
662
+ },
663
+ },
664
+ },
665
+ },
777
666
  {
778
667
  name: 'meta',
779
668
  layout: {
@@ -813,6 +702,26 @@ async function documentTypeFactory(injector) {
813
702
  },
814
703
  },
815
704
  },
705
+ {
706
+ name: 'maxSize',
707
+ layout: {
708
+ positions: {
709
+ lg: {
710
+ colSpan: 6,
711
+ },
712
+ },
713
+ },
714
+ },
715
+ {
716
+ name: 'isEncrypted',
717
+ layout: {
718
+ positions: {
719
+ lg: {
720
+ colSpan: 6,
721
+ },
722
+ },
723
+ },
724
+ },
816
725
  {
817
726
  name: 'meta',
818
727
  layout: {
@@ -860,6 +769,26 @@ async function documentTypeFactory(injector) {
860
769
  },
861
770
  },
862
771
  },
772
+ {
773
+ name: 'maxSize',
774
+ layout: {
775
+ positions: {
776
+ lg: {
777
+ colSpan: 6,
778
+ },
779
+ },
780
+ },
781
+ },
782
+ {
783
+ name: 'isEncrypted',
784
+ layout: {
785
+ positions: {
786
+ lg: {
787
+ colSpan: 6,
788
+ },
789
+ },
790
+ },
791
+ },
863
792
  {
864
793
  name: 'meta',
865
794
  layout: {