@acorex/modules 19.1.12 → 19.1.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/fesm2022/{acorex-modules-form-template-management-category.entity-D8XA8ZaF.mjs → acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-D8XA8ZaF.mjs.map → acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-CGj7d49H.mjs → acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs} +2 -2
- package/fesm2022/acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +2 -2
- package/fesm2022/acorex-modules-notification-management.mjs +7 -17
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-managment-chart.entity-C_1rAJrs.mjs → acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-company.entity-5qijWD6i.mjs → acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-department.entity-BW18skLD.mjs → acorex-modules-organization-managment-department.entity-6imtSXqS.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-department.entity-6imtSXqS.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-employment.entity-D28NBRYg.mjs → acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-position.entity-DhndysSH.mjs → acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs} +3 -3
- package/fesm2022/{acorex-modules-organization-managment-position.entity-DhndysSH.mjs.map → acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs +201 -0
- package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment.mjs +22 -17
- package/fesm2022/acorex-modules-organization-managment.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +659 -255
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +38 -29
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs +6 -0
- package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs.map +1 -0
- package/fesm2022/acorex-modules-text-template-management.mjs +22 -19
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/organization-managment/lib/setting.provider.d.ts +3 -0
- package/package.json +1 -1
- package/platform-management/lib/const.d.ts +5 -0
- package/platform-management/lib/entities/app-term/app-term.entity.d.ts +3 -0
- package/platform-management/lib/entities/app-term/app-term.service.d.ts +10 -0
- package/platform-management/lib/entities/app-term/app-term.types.d.ts +9 -0
- package/platform-management/lib/entities/app-term/index.d.ts +3 -0
- package/platform-management/lib/entities/app-version/index.d.ts +1 -0
- package/platform-management/lib/entities/app-version/workflow/change-log.workflow.d.ts +15 -0
- package/platform-management/lib/entities/app-version/workflow/index.d.ts +2 -0
- package/platform-management/lib/entities/app-version/workflow/test/test.component.d.ts +6 -0
- package/platform-management/lib/entities/index.d.ts +1 -0
- package/platform-management/lib/platform-management.module.d.ts +2 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-CGj7d49H.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-chart.entity-C_1rAJrs.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-company.entity-5qijWD6i.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-department.entity-BW18skLD.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-employment.entity-D28NBRYg.mjs.map +0 -1
- package/platform-management/lib/common/organizarion/settings.provider.d.ts +0 -5
- /package/{platform-management/lib/common/organizarion → organization-managment/lib}/setting.keys.d.ts +0 -0
@@ -28,7 +28,7 @@ async function factory(injector) {
|
|
28
28
|
properties: [
|
29
29
|
{
|
30
30
|
name: 'name',
|
31
|
-
title: `t("name", { scope: "
|
31
|
+
title: `t("name", { scope: "common" })`,
|
32
32
|
groupId: 'section',
|
33
33
|
schema: {
|
34
34
|
dataType: 'string',
|
@@ -254,4 +254,4 @@ async function factory(injector) {
|
|
254
254
|
}
|
255
255
|
|
256
256
|
export { factory };
|
257
|
-
//# sourceMappingURL=acorex-modules-organization-managment-chart.entity-
|
257
|
+
//# sourceMappingURL=acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/chart/chart.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementChartEntityService } from './chart.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementChartEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.chart.name,\n source: '',\n title: RootConfig.entities.chart.title,\n formats: {\n individual: `t(\"chart\", { scope: \"${i18n}\" })`,\n plural: `t(\"charts\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"chart\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'name',\n title: `t(\"name\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'version',\n title: `t(\"version\", { scope: \"${i18n}\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n },\n {\n name: 'structure',\n title: `t(\"structure\", { scope: \"${i18n}\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n defaultValue: '',\n },\n },\n ],\n columns: [{ name: 'name' }, { name: 'version' }],\n commands: {\n create: {\n execute: async (data: any) => {\n console.log(data);\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'name',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'version',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'name',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'version',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{name}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'name',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'version',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"View Chart\", { scope: \"common\" })',\n command: 'view-chart',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,2CAA2C,CAAC;AAC7E,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CA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SAAS;AAClB;;;;"}
|
@@ -28,7 +28,7 @@ async function factory(injector) {
|
|
28
28
|
properties: [
|
29
29
|
{
|
30
30
|
name: 'title',
|
31
|
-
title: `t("title", { scope: "
|
31
|
+
title: `t("title", { scope: "common" })`,
|
32
32
|
groupId: 'section',
|
33
33
|
schema: {
|
34
34
|
dataType: 'string',
|
@@ -196,4 +196,4 @@ async function factory(injector) {
|
|
196
196
|
}
|
197
197
|
|
198
198
|
export { factory };
|
199
|
-
//# sourceMappingURL=acorex-modules-organization-managment-company.entity-
|
199
|
+
//# sourceMappingURL=acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/company/company.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementCompanyEntityService } from './company.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementCompanyEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.company.name,\n source: '',\n title: `t(\"company\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"company\", { scope: \"${i18n}\" })`,\n plural: `t(\"companies\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"company\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,6CAA6C,CAAC;AAC/E,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;AACtC,QAAA,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,CAA0B,uBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC3C,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAA0B,uBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;YAChD,MAAM,EAAE,CAA4B,yBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC9C,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,SAAS;gBACb,KAAK,EAAE,CAA0B,uBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC5C,aAAA;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,KAAK,EAAE,CAAiC,+BAAA,CAAA;AACxC,gBAAA,OAAO,EAAE,SAAS;AAClB,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,E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AE,mCAAmC;AAC1C,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,OAAO,EAAE,EAAE;AACX,4BAAA,UAAU,EAAE,EAAE;AACd,4BAAA,KAAK,EAAE,EAAE;AACV,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
@@ -28,7 +28,7 @@ async function factory(injector) {
|
|
28
28
|
properties: [
|
29
29
|
{
|
30
30
|
name: 'title',
|
31
|
-
title: `t("title", { scope: "
|
31
|
+
title: `t("title", { scope: "common" })`,
|
32
32
|
groupId: 'section',
|
33
33
|
schema: {
|
34
34
|
dataType: 'string',
|
@@ -196,4 +196,4 @@ async function factory(injector) {
|
|
196
196
|
}
|
197
197
|
|
198
198
|
export { factory };
|
199
|
-
//# sourceMappingURL=acorex-modules-organization-managment-department.entity-
|
199
|
+
//# sourceMappingURL=acorex-modules-organization-managment-department.entity-6imtSXqS.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-department.entity-6imtSXqS.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/department/department.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementDepartmentEntityService } from './department.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementDepartmentEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.department.name,\n source: '',\n title: `t(\"department\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"department\", { scope: \"${i18n}\" })`,\n plural: `t(\"departments\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"department\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,gDAAgD,CAAC;AAClF,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC9C,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;YACnD,MAAM,EAAE,CAA8B,2BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAChD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,SAAS;gBACb,KAAK,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAA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B,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;AACD,oBAAA,KAAK,EAAE;AACL,wBAAA;AACE,4BAAA,IAAI,EAAE,KAAK;AACX,4BAAA,KAAK,EAAE,mCAAmC;AAC1C,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,OAAO,EAAE,EAAE;AACX,4BAAA,UAAU,EAAE,EAAE;AACd,4BAAA,KAAK,EAAE,EAAE;AACV,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
@@ -28,7 +28,7 @@ async function factory(injector) {
|
|
28
28
|
properties: [
|
29
29
|
{
|
30
30
|
name: 'title',
|
31
|
-
title: `t("title", { scope: "
|
31
|
+
title: `t("title", { scope: "common" })`,
|
32
32
|
groupId: 'section',
|
33
33
|
schema: {
|
34
34
|
dataType: 'string',
|
@@ -196,4 +196,4 @@ async function factory(injector) {
|
|
196
196
|
}
|
197
197
|
|
198
198
|
export { factory };
|
199
|
-
//# sourceMappingURL=acorex-modules-organization-managment-employment.entity-
|
199
|
+
//# sourceMappingURL=acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/employment/employment.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementEmploymentEntityService } from './employment.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementEmploymentEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.employment.name,\n source: '',\n title: `t(\"employment\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"employment\", { scope: \"${i18n}\" })`,\n plural: `t(\"employments\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"employment\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,gDAAgD,CAAC;AAClF,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC9C,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;YACnD,MAAM,EAAE,CAA8B,2BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAChD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gB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C,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kCAAkC;AACzC,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;AACD,oBAAA,KAAK,EAAE;AACL,wBAAA;AACE,4BAAA,IAAI,EAAE,KAAK;AACX,4BAAA,KAAK,EAAE,mCAAmC;AAC1C,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,OAAO,EAAE,EAAE;AACX,4BAAA,UAAU,EAAE,EAAE;AACd,4BAAA,KAAK,EAAE,EAAE;AACV,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
@@ -22,13 +22,13 @@ async function factory(injector) {
|
|
22
22
|
groups: [
|
23
23
|
{
|
24
24
|
id: 'section',
|
25
|
-
title: `t("position", { scope: "
|
25
|
+
title: `t("position", { scope: "${i18n}" })`,
|
26
26
|
},
|
27
27
|
],
|
28
28
|
properties: [
|
29
29
|
{
|
30
30
|
name: 'title',
|
31
|
-
title: `t("title", { scope: "
|
31
|
+
title: `t("title", { scope: "common" })`,
|
32
32
|
groupId: 'section',
|
33
33
|
schema: {
|
34
34
|
dataType: 'string',
|
@@ -196,4 +196,4 @@ async function factory(injector) {
|
|
196
196
|
}
|
197
197
|
|
198
198
|
export { factory };
|
199
|
-
//# sourceMappingURL=acorex-modules-organization-managment-position.entity-
|
199
|
+
//# sourceMappingURL=acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-organization-managment-position.entity-
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/entities/position/position.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMOrganizationManagementPositionEntityService } from './position.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMOrganizationManagementPositionEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.position.name,\n source: '',\n title: `t(\"position\", { scope: \"${i18n}\" })`,\n formats: {\n individual: `t(\"position\", { scope: \"${i18n}\" })`,\n plural: `t(\"positions\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"position\", { scope: \"${i18n}\" })`,\n },\n ],\n properties: [\n {\n name: 'title',\n title: `t(\"title\", { scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAMO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,8CAA8C,CAAC;AAChF,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CA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4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,SAAS;AACvC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,uCAAuC;AAC9C,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,QAAQ;AACtC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kCAAkC;AACzC,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kCAAkC;AACzC,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;AACD,oBAAA,KAAK,EAAE;AACL,wBAAA;AACE,4BAAA,IAAI,EAAE,KAAK;AACX,4BAAA,KAAK,EAAE,mCAAmC;AAC1C,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,OAAO,EAAE,EAAE;AACX,4BAAA,UAAU,EAAE,EAAE;AACd,4BAAA,KAAK,EAAE,EAAE;AACV,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
@@ -0,0 +1,201 @@
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
2
|
+
|
3
|
+
const path = 'organization:';
|
4
|
+
var AXPOrganizationSetting;
|
5
|
+
(function (AXPOrganizationSetting) {
|
6
|
+
AXPOrganizationSetting["OrganizationName"] = "organization:organization-name";
|
7
|
+
AXPOrganizationSetting["OrganizationID"] = "organization:organization-id";
|
8
|
+
AXPOrganizationSetting["ContactEmail"] = "organization:contact-email";
|
9
|
+
AXPOrganizationSetting["ContactPhone"] = "organization:contact-phone";
|
10
|
+
AXPOrganizationSetting["OrganizationAddress"] = "organization:organization-address";
|
11
|
+
AXPOrganizationSetting["OrganizationCity"] = "organization:organization-city";
|
12
|
+
AXPOrganizationSetting["OrganizationCountry"] = "organization:organization-country";
|
13
|
+
AXPOrganizationSetting["BrandingColor"] = "organization:branding-color";
|
14
|
+
AXPOrganizationSetting["BrandingLogo"] = "organization:branding-logo";
|
15
|
+
AXPOrganizationSetting["CopyrightText"] = "organization:copyright-text";
|
16
|
+
AXPOrganizationSetting["ApplicationHeaderTitle"] = "organization:application-header-title";
|
17
|
+
AXPOrganizationSetting["SupportEmail"] = "organization:support-email";
|
18
|
+
AXPOrganizationSetting["InfoEmail"] = "organization:info-email";
|
19
|
+
AXPOrganizationSetting["FaxNumber"] = "organization:fax-number";
|
20
|
+
})(AXPOrganizationSetting || (AXPOrganizationSetting = {}));
|
21
|
+
|
22
|
+
class AXMSettingProvider {
|
23
|
+
constructor(sessionService) {
|
24
|
+
this.sessionService = sessionService;
|
25
|
+
}
|
26
|
+
async provide(context) {
|
27
|
+
context
|
28
|
+
.addGroup('organization-settings', 'Organization Settings', 'Manage organizational preferences.', 'fa-solid fa-building')
|
29
|
+
// Branding Section
|
30
|
+
.addSection('branding', 'Branding', 'Configure company branding.')
|
31
|
+
.addSetting({
|
32
|
+
key: AXPOrganizationSetting.OrganizationName,
|
33
|
+
title: 'Company Name',
|
34
|
+
scope: 'T',
|
35
|
+
isInherited: false,
|
36
|
+
defaultValue: this.sessionService.tenant?.title,
|
37
|
+
widget: {
|
38
|
+
type: AXPWidgetsCatalog.text,
|
39
|
+
},
|
40
|
+
description: 'Specify the official name of the company.',
|
41
|
+
})
|
42
|
+
.addSetting({
|
43
|
+
key: 'branding-logo',
|
44
|
+
title: 'Company Logo',
|
45
|
+
scope: 'T',
|
46
|
+
isInherited: false,
|
47
|
+
defaultValue: '',
|
48
|
+
widget: {
|
49
|
+
type: AXPWidgetsCatalog.avatar,
|
50
|
+
options: {
|
51
|
+
fileTypes: ['image/png', 'image/jpeg'],
|
52
|
+
},
|
53
|
+
},
|
54
|
+
description: 'Upload the company logo.',
|
55
|
+
})
|
56
|
+
.addSetting({
|
57
|
+
key: 'copyright-text',
|
58
|
+
title: 'Copyright Text',
|
59
|
+
scope: 'T',
|
60
|
+
isInherited: true,
|
61
|
+
defaultValue: '© 2024 Your Company',
|
62
|
+
widget: {
|
63
|
+
type: AXPWidgetsCatalog.text,
|
64
|
+
},
|
65
|
+
description: 'Text displayed in the footer of the application.',
|
66
|
+
})
|
67
|
+
.addSetting({
|
68
|
+
key: 'application-header-title',
|
69
|
+
title: 'Application Header Title',
|
70
|
+
scope: 'T',
|
71
|
+
isInherited: true,
|
72
|
+
defaultValue: this.sessionService.application?.title,
|
73
|
+
widget: {
|
74
|
+
type: AXPWidgetsCatalog.text,
|
75
|
+
},
|
76
|
+
description: 'Title displayed in the application header.',
|
77
|
+
})
|
78
|
+
.endSection()
|
79
|
+
// Contact Details Section
|
80
|
+
.addSection('contact', 'Contact Details', 'Set company contact information.')
|
81
|
+
.addSetting({
|
82
|
+
key: AXPOrganizationSetting.ContactEmail,
|
83
|
+
title: 'Company Email',
|
84
|
+
scope: 'T',
|
85
|
+
isInherited: false,
|
86
|
+
defaultValue: '',
|
87
|
+
widget: {
|
88
|
+
type: AXPWidgetsCatalog.contact,
|
89
|
+
options: {
|
90
|
+
type: 'email',
|
91
|
+
hasLabel: false,
|
92
|
+
}
|
93
|
+
},
|
94
|
+
description: 'Primary email address for the company.',
|
95
|
+
})
|
96
|
+
.addSetting({
|
97
|
+
key: 'support-email',
|
98
|
+
title: 'Support Email',
|
99
|
+
scope: 'T',
|
100
|
+
isInherited: false,
|
101
|
+
defaultValue: '',
|
102
|
+
widget: {
|
103
|
+
type: AXPWidgetsCatalog.contact,
|
104
|
+
options: {
|
105
|
+
type: 'email',
|
106
|
+
hasLabel: false,
|
107
|
+
}
|
108
|
+
},
|
109
|
+
description: 'Support email address for customer inquiries.',
|
110
|
+
})
|
111
|
+
.addSetting({
|
112
|
+
key: 'info-email',
|
113
|
+
title: 'Info Email',
|
114
|
+
scope: 'T',
|
115
|
+
isInherited: false,
|
116
|
+
defaultValue: '',
|
117
|
+
widget: {
|
118
|
+
type: AXPWidgetsCatalog.contact,
|
119
|
+
options: {
|
120
|
+
type: 'email',
|
121
|
+
hasLabel: false,
|
122
|
+
}
|
123
|
+
},
|
124
|
+
description: 'General information email address.',
|
125
|
+
})
|
126
|
+
.addSetting({
|
127
|
+
key: AXPOrganizationSetting.ContactPhone,
|
128
|
+
title: 'Company Phone',
|
129
|
+
scope: 'T',
|
130
|
+
isInherited: false,
|
131
|
+
defaultValue: '',
|
132
|
+
widget: {
|
133
|
+
type: AXPWidgetsCatalog.contact,
|
134
|
+
options: {
|
135
|
+
type: 'phone',
|
136
|
+
hasLabel: false,
|
137
|
+
}
|
138
|
+
},
|
139
|
+
description: 'Primary contact phone number.',
|
140
|
+
})
|
141
|
+
.addSetting({
|
142
|
+
key: 'fax-number',
|
143
|
+
title: 'Fax Number',
|
144
|
+
scope: 'T',
|
145
|
+
isInherited: false,
|
146
|
+
defaultValue: '',
|
147
|
+
widget: {
|
148
|
+
type: AXPWidgetsCatalog.contact,
|
149
|
+
options: {
|
150
|
+
type: 'phone',
|
151
|
+
hasLabel: false,
|
152
|
+
}
|
153
|
+
},
|
154
|
+
description: 'Fax number for the company.',
|
155
|
+
})
|
156
|
+
.endSection()
|
157
|
+
// Address Section
|
158
|
+
.addSection('address', 'Address', 'Manage company address details.')
|
159
|
+
.addSetting({
|
160
|
+
key: AXPOrganizationSetting.OrganizationAddress,
|
161
|
+
title: 'Street Address',
|
162
|
+
scope: 'T',
|
163
|
+
isInherited: false,
|
164
|
+
defaultValue: '',
|
165
|
+
widget: {
|
166
|
+
type: AXPWidgetsCatalog.text,
|
167
|
+
},
|
168
|
+
description: 'Street address of the company.',
|
169
|
+
})
|
170
|
+
.addSetting({
|
171
|
+
key: AXPOrganizationSetting.OrganizationCity,
|
172
|
+
title: 'City',
|
173
|
+
scope: 'T',
|
174
|
+
isInherited: false,
|
175
|
+
defaultValue: '',
|
176
|
+
widget: {
|
177
|
+
type: AXPWidgetsCatalog.text,
|
178
|
+
},
|
179
|
+
description: 'City where the company is located.',
|
180
|
+
})
|
181
|
+
.addSetting({
|
182
|
+
key: AXPOrganizationSetting.OrganizationCountry,
|
183
|
+
title: 'Country',
|
184
|
+
scope: 'T',
|
185
|
+
isInherited: false,
|
186
|
+
defaultValue: '',
|
187
|
+
widget: {
|
188
|
+
type: AXPWidgetsCatalog.select,
|
189
|
+
options: {
|
190
|
+
dataSource: ['United States', 'United Kingdom', 'France', 'Germany', 'Japan', 'China'],
|
191
|
+
},
|
192
|
+
},
|
193
|
+
description: 'Country where the company is based.',
|
194
|
+
})
|
195
|
+
.endSection()
|
196
|
+
.endGroup();
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
export { AXMSettingProvider };
|
201
|
+
//# sourceMappingURL=acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs","sources":["../../../../libs/modules/organization-managment/src/lib/setting.keys.ts","../../../../libs/modules/organization-managment/src/lib/setting.provider.ts"],"sourcesContent":["const path = 'organization:';\n\nexport enum AXPOrganizationSetting {\n OrganizationName = `${path}organization-name`,\n OrganizationID = `${path}organization-id`,\n ContactEmail = `${path}contact-email`,\n ContactPhone = `${path}contact-phone`,\n OrganizationAddress = `${path}organization-address`,\n OrganizationCity = `${path}organization-city`,\n OrganizationCountry = `${path}organization-country`,\n BrandingColor = `${path}branding-color`,\n BrandingLogo = `${path}branding-logo`,\n CopyrightText = `${path}copyright-text`,\n ApplicationHeaderTitle = `${path}application-header-title`,\n SupportEmail = `${path}support-email`,\n InfoEmail = `${path}info-email`,\n FaxNumber = `${path}fax-number`,\n}\n","import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { AXPOrganizationSetting } from './setting.keys';\nimport { AXPSessionService } from '@acorex/platform/auth';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n\n constructor(private sessionService: AXPSessionService) {\n\n }\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n context\n .addGroup('organization-settings', 'Organization Settings', 'Manage organizational preferences.', 'fa-solid fa-building')\n\n // Branding Section\n .addSection('branding', 'Branding', 'Configure company branding.')\n .addSetting({\n key: AXPOrganizationSetting.OrganizationName,\n title: 'Company Name',\n scope: 'T',\n isInherited: false,\n defaultValue: this.sessionService.tenant?.title,\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n description: 'Specify the official name of the company.',\n })\n .addSetting({\n key: 'branding-logo',\n title: 'Company Logo',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.avatar,\n options: {\n fileTypes: ['image/png', 'image/jpeg'],\n },\n },\n description: 'Upload the company logo.',\n })\n .addSetting({\n key: 'copyright-text',\n title: 'Copyright Text',\n scope: 'T',\n isInherited: true,\n defaultValue: '© 2024 Your Company',\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n description: 'Text displayed in the footer of the application.',\n })\n .addSetting({\n key: 'application-header-title',\n title: 'Application Header Title',\n scope: 'T',\n isInherited: true,\n defaultValue: this.sessionService.application?.title,\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n description: 'Title displayed in the application header.',\n })\n .endSection()\n\n // Contact Details Section\n .addSection('contact', 'Contact Details', 'Set company contact information.')\n .addSetting({\n key: AXPOrganizationSetting.ContactEmail,\n title: 'Company Email',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.contact,\n options: {\n type: 'email',\n hasLabel: false,\n }\n },\n description: 'Primary email address for the company.',\n })\n .addSetting({\n key: 'support-email',\n title: 'Support Email',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.contact,\n options: {\n type: 'email',\n hasLabel: false,\n }\n },\n description: 'Support email address for customer inquiries.',\n })\n .addSetting({\n key: 'info-email',\n title: 'Info Email',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.contact,\n options: {\n type: 'email',\n hasLabel: false,\n }\n },\n description: 'General information email address.',\n })\n .addSetting({\n key: AXPOrganizationSetting.ContactPhone,\n title: 'Company Phone',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.contact,\n options: {\n type: 'phone',\n hasLabel: false,\n }\n },\n description: 'Primary contact phone number.',\n })\n .addSetting({\n key: 'fax-number',\n title: 'Fax Number',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.contact,\n options: {\n type: 'phone',\n hasLabel: false,\n }\n },\n description: 'Fax number for the company.',\n })\n .endSection()\n\n // Address Section\n .addSection('address', 'Address', 'Manage company address details.')\n .addSetting({\n key: AXPOrganizationSetting.OrganizationAddress,\n title: 'Street Address',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n description: 'Street address of the company.',\n })\n .addSetting({\n key: AXPOrganizationSetting.OrganizationCity,\n title: 'City',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n description: 'City where the company is located.',\n })\n .addSetting({\n key: AXPOrganizationSetting.OrganizationCountry,\n title: 'Country',\n scope: 'T',\n isInherited: false,\n defaultValue: '',\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n dataSource: ['United States', 'United Kingdom', 'France', 'Germany', 'Japan', 'China'],\n },\n },\n description: 'Country where the company is based.',\n })\n .endSection()\n\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,IAAI,GAAG,eAAe;AAE5B,IAAY,sBAeX;AAfD,CAAA,UAAY,sBAAsB,EAAA;AAC9B,IAAA,sBAAA,CAAA,kBAAA,CAAA,GAAA,gCAA6C;AAC7C,IAAA,sBAAA,CAAA,gBAAA,CAAA,GAAA,8BAAyC;AACzC,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,4BAAqC;AACrC,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,4BAAqC;AACrC,IAAA,sBAAA,CAAA,qBAAA,CAAA,GAAA,mCAAmD;AACnD,IAAA,sBAAA,CAAA,kBAAA,CAAA,GAAA,gCAA6C;AAC7C,IAAA,sBAAA,CAAA,qBAAA,CAAA,GAAA,mCAAmD;AACnD,IAAA,sBAAA,CAAA,eAAA,CAAA,GAAA,6BAAuC;AACvC,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,4BAAqC;AACrC,IAAA,sBAAA,CAAA,eAAA,CAAA,GAAA,6BAAuC;AACvC,IAAA,sBAAA,CAAA,wBAAA,CAAA,GAAA,uCAA0D;AAC1D,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,4BAAqC;AACrC,IAAA,sBAAA,CAAA,WAAA,CAAA,GAAA,yBAA+B;AAC/B,IAAA,sBAAA,CAAA,WAAA,CAAA,GAAA,yBAA+B;AACnC,CAAC,EAfW,sBAAsB,KAAtB,sBAAsB,GAejC,EAAA,CAAA,CAAA;;MCZY,kBAAkB,CAAA;AAE3B,IAAA,WAAA,CAAoB,cAAiC,EAAA;QAAjC,IAAc,CAAA,cAAA,GAAd,cAAc;;IAIlC,MAAM,OAAO,CAAC,OAA4C,EAAA;QACtD;aACK,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,oCAAoC,EAAE,sBAAsB;;AAGvH,aAAA,UAAU,CAAC,UA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D,YAAA,WAAW,EAAE,gCAAgC;SAChD;AACA,aAAA,UAAU,CAAC;YACR,GAAG,EAAE,sBAAsB,CAAC,gBAAgB;AAC5C,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,YAAY,EAAE,EAAE;AAChB,YAAA,MAAM,EAAE;gBACJ,IAAI,EAAE,iBAAiB,CAAC,IAAI;AAC/B,aAAA;AACD,YAAA,WAAW,EAAE,oCAAoC;SACpD;AACA,aAAA,UAAU,CAAC;YACR,GAAG,EAAE,sBAAsB,CAAC,mBAAmB;AAC/C,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,YAAY,EAAE,EAAE;AAChB,YAAA,MAAM,EAAE;gBACJ,IAAI,EAAE,iBAAiB,CAAC,MAAM;AAC9B,gBAAA,OAAO,EAAE;AACL,oBAAA,UAAU,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC;AACzF,iBAAA;AACJ,aAAA;AACD,YAAA,WAAW,EAAE,qCAAqC;SACrD;AACA,aAAA,UAAU;AAEV,aAAA,QAAQ,EAAE;;AAEtB;;;;"}
|
@@ -7,6 +7,7 @@ import * as i1 from '@acorex/platform/workflow';
|
|
7
7
|
import { AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
8
8
|
import { CommonModule } from '@angular/common';
|
9
9
|
import { Router, ROUTES } from '@angular/router';
|
10
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
10
11
|
|
11
12
|
/*export const AXMOrganizationManagementModuleConst = {
|
12
13
|
moduleName: 'OrganizationManagement',
|
@@ -264,15 +265,15 @@ class AXMOrganizationModuleEntityProvider {
|
|
264
265
|
if (moduleName == RootConfig.module.name) {
|
265
266
|
switch (entityName) {
|
266
267
|
case RootConfig.entities.company.name:
|
267
|
-
return (await import('./acorex-modules-organization-managment-company.entity-
|
268
|
+
return (await import('./acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs')).factory(this.injector);
|
268
269
|
case RootConfig.entities.department.name:
|
269
|
-
return (await import('./acorex-modules-organization-managment-department.entity-
|
270
|
+
return (await import('./acorex-modules-organization-managment-department.entity-6imtSXqS.mjs')).factory(this.injector);
|
270
271
|
case RootConfig.entities.employment.name:
|
271
|
-
return (await import('./acorex-modules-organization-managment-employment.entity-
|
272
|
+
return (await import('./acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs')).factory(this.injector);
|
272
273
|
case RootConfig.entities.position.name:
|
273
|
-
return (await import('./acorex-modules-organization-managment-position.entity-
|
274
|
+
return (await import('./acorex-modules-organization-managment-position.entity-CJNG3UPf.mjs')).factory(this.injector);
|
274
275
|
case RootConfig.entities.chart.name:
|
275
|
-
return (await import('./acorex-modules-organization-managment-chart.entity-
|
276
|
+
return (await import('./acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs')).factory(this.injector);
|
276
277
|
}
|
277
278
|
}
|
278
279
|
return null;
|
@@ -333,10 +334,6 @@ class AXMMenuProvider {
|
|
333
334
|
}
|
334
335
|
}
|
335
336
|
|
336
|
-
class AXMSettingProvider {
|
337
|
-
async provide(context) { }
|
338
|
-
}
|
339
|
-
|
340
337
|
const AXMViewChartWorkflow = {
|
341
338
|
startStepId: 'view-chart',
|
342
339
|
steps: {
|
@@ -396,13 +393,17 @@ class AXMOrganizationManagmentModule {
|
|
396
393
|
AXMOrganizationManagementChartEntityModule, i1.AXPWorkflowModule] }); }
|
397
394
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrganizationManagmentModule, providers: [
|
398
395
|
{
|
399
|
-
provide:
|
400
|
-
useClass:
|
396
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
397
|
+
useClass: AXMOrganizationModuleEntityProvider,
|
401
398
|
multi: true,
|
402
399
|
},
|
403
400
|
{
|
404
|
-
provide:
|
405
|
-
|
401
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
402
|
+
useFactory: async () => {
|
403
|
+
const injector = inject(Injector);
|
404
|
+
const provider = (await import('./acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs')).AXMSettingProvider;
|
405
|
+
return new provider(injector.get(AXPSessionService));
|
406
|
+
},
|
406
407
|
multi: true,
|
407
408
|
},
|
408
409
|
{
|
@@ -451,13 +452,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
451
452
|
],
|
452
453
|
providers: [
|
453
454
|
{
|
454
|
-
provide:
|
455
|
-
useClass:
|
455
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
456
|
+
useClass: AXMOrganizationModuleEntityProvider,
|
456
457
|
multi: true,
|
457
458
|
},
|
458
459
|
{
|
459
|
-
provide:
|
460
|
-
|
460
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
461
|
+
useFactory: async () => {
|
462
|
+
const injector = inject(Injector);
|
463
|
+
const provider = (await import('./acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs')).AXMSettingProvider;
|
464
|
+
return new provider(injector.get(AXPSessionService));
|
465
|
+
},
|
461
466
|
multi: true,
|
462
467
|
},
|
463
468
|
{
|