@acorex/modules 20.2.4-next.6 → 20.2.4-next.7

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 (20) hide show
  1. package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-1PmjMC7i.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs} +328 -49
  2. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs.map +1 -0
  3. package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DyOHJWW_.mjs → acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs} +2 -2
  4. package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DyOHJWW_.mjs.map → acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs.map} +1 -1
  5. package/fesm2022/{acorex-modules-human-capital-management-employee.entity-5J-FoLiT.mjs → acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs} +2 -2
  6. package/fesm2022/{acorex-modules-human-capital-management-employee.entity-5J-FoLiT.mjs.map → acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs.map} +1 -1
  7. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DFpRtSOh.mjs → acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs} +2 -2
  8. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DFpRtSOh.mjs.map → acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs.map} +1 -1
  9. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DuNvJq-k.mjs → acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs} +2 -2
  10. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DuNvJq-k.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-0ZzRent7.mjs → acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs} +2 -2
  12. package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-0ZzRent7.mjs.map → acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs.map} +1 -1
  13. package/fesm2022/{acorex-modules-human-capital-management-skill.entity-Dd7p11vj.mjs → acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs} +2 -2
  14. package/fesm2022/{acorex-modules-human-capital-management-skill.entity-Dd7p11vj.mjs.map → acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs.map} +1 -1
  15. package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
  16. package/fesm2022/acorex-modules-organization-management.mjs +368 -0
  17. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  18. package/human-capital-management/index.d.ts +37 -1
  19. package/package.json +5 -5
  20. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-1PmjMC7i.mjs.map +0 -1
@@ -592,6 +592,334 @@ class AXMDepartmentDataSourceDefinition {
592
592
  }
593
593
  }
594
594
 
595
+ class AXMDivisionDataSourceDefinition {
596
+ constructor() {
597
+ this.divisionService = inject(AXMOrganizationManagementDivisionEntityService);
598
+ }
599
+ items() {
600
+ return Promise.resolve([
601
+ {
602
+ name: 'divisions',
603
+ title: 'Divisions',
604
+ source: () => {
605
+ return new AXDataSource({
606
+ key: 'id',
607
+ load: async (_) => {
608
+ try {
609
+ const res = await this.divisionService.query();
610
+ return {
611
+ items: res.items.map((item) => ({
612
+ ...item,
613
+ })),
614
+ total: res.total,
615
+ };
616
+ }
617
+ catch (e) {
618
+ console.log(e);
619
+ throw e;
620
+ }
621
+ },
622
+ byKey: async (key) => {
623
+ return await this.divisionService.getOne(key);
624
+ },
625
+ pageSize: 100,
626
+ });
627
+ },
628
+ columns: [
629
+ {
630
+ name: 'id',
631
+ title: 'ID',
632
+ datatype: 'uuid',
633
+ type: AXPWidgetsCatalog.text,
634
+ },
635
+ {
636
+ name: 'title',
637
+ title: 'Title',
638
+ datatype: 'string',
639
+ type: AXPWidgetsCatalog.text,
640
+ },
641
+ {
642
+ name: 'description',
643
+ title: 'Description',
644
+ datatype: 'string',
645
+ type: AXPWidgetsCatalog.text,
646
+ },
647
+ ],
648
+ filters: [
649
+ {
650
+ field: 'title',
651
+ title: 'Title',
652
+ operator: {
653
+ type: 'equal',
654
+ },
655
+ widget: {
656
+ type: AXPWidgetsCatalog.text,
657
+ },
658
+ filterType: {
659
+ advance: true,
660
+ inline: true,
661
+ },
662
+ },
663
+ ],
664
+ textField: {
665
+ name: 'title',
666
+ title: 'Title',
667
+ },
668
+ valueField: {
669
+ name: 'id',
670
+ title: 'ID',
671
+ },
672
+ },
673
+ ]);
674
+ }
675
+ }
676
+
677
+ class AXMRoleDataSourceDefinition {
678
+ constructor() {
679
+ this.roleService = inject(AXMOrganizationManagementRoleEntityService);
680
+ }
681
+ items() {
682
+ return Promise.resolve([
683
+ {
684
+ name: 'roles',
685
+ title: 'Roles',
686
+ source: () => {
687
+ return new AXDataSource({
688
+ key: 'id',
689
+ load: async (_) => {
690
+ try {
691
+ const res = await this.roleService.query();
692
+ return {
693
+ items: res.items.map((item) => ({
694
+ ...item,
695
+ })),
696
+ total: res.total,
697
+ };
698
+ }
699
+ catch (e) {
700
+ console.log(e);
701
+ throw e;
702
+ }
703
+ },
704
+ byKey: async (key) => {
705
+ return await this.roleService.getOne(key);
706
+ },
707
+ pageSize: 100,
708
+ });
709
+ },
710
+ columns: [
711
+ {
712
+ name: 'id',
713
+ title: 'ID',
714
+ datatype: 'uuid',
715
+ type: AXPWidgetsCatalog.text,
716
+ },
717
+ {
718
+ name: 'title',
719
+ title: 'Title',
720
+ datatype: 'string',
721
+ type: AXPWidgetsCatalog.text,
722
+ },
723
+ {
724
+ name: 'description',
725
+ title: 'Description',
726
+ datatype: 'string',
727
+ type: AXPWidgetsCatalog.text,
728
+ },
729
+ ],
730
+ filters: [
731
+ {
732
+ field: 'title',
733
+ title: 'Title',
734
+ operator: {
735
+ type: 'equal',
736
+ },
737
+ widget: {
738
+ type: AXPWidgetsCatalog.text,
739
+ },
740
+ filterType: {
741
+ advance: true,
742
+ inline: true,
743
+ },
744
+ },
745
+ ],
746
+ textField: {
747
+ name: 'title',
748
+ title: 'Title',
749
+ },
750
+ valueField: {
751
+ name: 'id',
752
+ title: 'ID',
753
+ },
754
+ },
755
+ ]);
756
+ }
757
+ }
758
+
759
+ class AXMTeamDataSourceDefinition {
760
+ constructor() {
761
+ this.teamService = inject(AXMOrganizationManagementTeamEntityService);
762
+ }
763
+ items() {
764
+ return Promise.resolve([
765
+ {
766
+ name: 'teams',
767
+ title: 'Teams',
768
+ source: () => {
769
+ return new AXDataSource({
770
+ key: 'id',
771
+ load: async (_) => {
772
+ try {
773
+ const res = await this.teamService.query();
774
+ return {
775
+ items: res.items.map((item) => ({
776
+ ...item,
777
+ })),
778
+ total: res.total,
779
+ };
780
+ }
781
+ catch (e) {
782
+ console.log(e);
783
+ throw e;
784
+ }
785
+ },
786
+ byKey: async (key) => {
787
+ return await this.teamService.getOne(key);
788
+ },
789
+ pageSize: 100,
790
+ });
791
+ },
792
+ columns: [
793
+ {
794
+ name: 'id',
795
+ title: 'ID',
796
+ datatype: 'uuid',
797
+ type: AXPWidgetsCatalog.text,
798
+ },
799
+ {
800
+ name: 'title',
801
+ title: 'Title',
802
+ datatype: 'string',
803
+ type: AXPWidgetsCatalog.text,
804
+ },
805
+ {
806
+ name: 'description',
807
+ title: 'Description',
808
+ datatype: 'string',
809
+ type: AXPWidgetsCatalog.text,
810
+ },
811
+ ],
812
+ filters: [
813
+ {
814
+ field: 'title',
815
+ title: 'Title',
816
+ operator: {
817
+ type: 'equal',
818
+ },
819
+ widget: {
820
+ type: AXPWidgetsCatalog.text,
821
+ },
822
+ filterType: {
823
+ advance: true,
824
+ inline: true,
825
+ },
826
+ },
827
+ ],
828
+ textField: {
829
+ name: 'title',
830
+ title: 'Title',
831
+ },
832
+ valueField: {
833
+ name: 'id',
834
+ title: 'ID',
835
+ },
836
+ },
837
+ ]);
838
+ }
839
+ }
840
+
841
+ class AXMPositionDataSourceDefinition {
842
+ constructor() {
843
+ this.positionService = inject(AXMOrganizationManagementPositionEntityService);
844
+ }
845
+ items() {
846
+ return Promise.resolve([
847
+ {
848
+ name: 'positions',
849
+ title: 'Positions',
850
+ source: () => {
851
+ return new AXDataSource({
852
+ key: 'id',
853
+ load: async (_) => {
854
+ try {
855
+ const res = await this.positionService.query();
856
+ return {
857
+ items: res.items.map((item) => ({
858
+ ...item,
859
+ })),
860
+ total: res.total,
861
+ };
862
+ }
863
+ catch (e) {
864
+ console.log(e);
865
+ throw e;
866
+ }
867
+ },
868
+ byKey: async (key) => {
869
+ return await this.positionService.getOne(key);
870
+ },
871
+ pageSize: 100,
872
+ });
873
+ },
874
+ columns: [
875
+ {
876
+ name: 'id',
877
+ title: 'ID',
878
+ datatype: 'uuid',
879
+ type: AXPWidgetsCatalog.text,
880
+ },
881
+ {
882
+ name: 'title',
883
+ title: 'Title',
884
+ datatype: 'string',
885
+ type: AXPWidgetsCatalog.text,
886
+ },
887
+ {
888
+ name: 'description',
889
+ title: 'Description',
890
+ datatype: 'string',
891
+ type: AXPWidgetsCatalog.text,
892
+ },
893
+ ],
894
+ filters: [
895
+ {
896
+ field: 'title',
897
+ title: 'Title',
898
+ operator: {
899
+ type: 'equal',
900
+ },
901
+ widget: {
902
+ type: AXPWidgetsCatalog.text,
903
+ },
904
+ filterType: {
905
+ advance: true,
906
+ inline: true,
907
+ },
908
+ },
909
+ ],
910
+ textField: {
911
+ name: 'title',
912
+ title: 'Title',
913
+ },
914
+ valueField: {
915
+ name: 'id',
916
+ title: 'ID',
917
+ },
918
+ },
919
+ ]);
920
+ }
921
+ }
922
+
595
923
  class AXMMenuProvider {
596
924
  constructor() {
597
925
  this.entityService = inject(AXPEntityService);
@@ -774,6 +1102,26 @@ class AXMOrganizationManagementModule {
774
1102
  useClass: AXMDepartmentDataSourceDefinition,
775
1103
  multi: true,
776
1104
  },
1105
+ {
1106
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1107
+ useClass: AXMDivisionDataSourceDefinition,
1108
+ multi: true,
1109
+ },
1110
+ {
1111
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1112
+ useClass: AXMRoleDataSourceDefinition,
1113
+ multi: true,
1114
+ },
1115
+ {
1116
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1117
+ useClass: AXMTeamDataSourceDefinition,
1118
+ multi: true,
1119
+ },
1120
+ {
1121
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1122
+ useClass: AXMPositionDataSourceDefinition,
1123
+ multi: true,
1124
+ },
777
1125
  ], imports: [CommonModule,
778
1126
  AXMOrganizationManagementResponsibilityEntityModule,
779
1127
  AXMOrganizationManagementRoleEntityModule,
@@ -841,6 +1189,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
841
1189
  useClass: AXMDepartmentDataSourceDefinition,
842
1190
  multi: true,
843
1191
  },
1192
+ {
1193
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1194
+ useClass: AXMDivisionDataSourceDefinition,
1195
+ multi: true,
1196
+ },
1197
+ {
1198
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1199
+ useClass: AXMRoleDataSourceDefinition,
1200
+ multi: true,
1201
+ },
1202
+ {
1203
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1204
+ useClass: AXMTeamDataSourceDefinition,
1205
+ multi: true,
1206
+ },
1207
+ {
1208
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1209
+ useClass: AXMPositionDataSourceDefinition,
1210
+ multi: true,
1211
+ },
844
1212
  ],
845
1213
  }]
846
1214
  }] });