@acorex-platform/module-organization-management-client 0.0.32 → 0.0.37
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-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-ZM6X7IDO.mjs} +11 -11
- package/fesm2022/{acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs.map → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-ZM6X7IDO.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs +318 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs +516 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs +314 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs +250 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs +439 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs +385 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs +657 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs +248 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs +317 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs +413 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs +220 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs +366 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs +421 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs +146 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BmhCZeXd.mjs +203 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BmhCZeXd.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs +401 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs +199 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs +135 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-0W6OSQH-.mjs +324 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-0W6OSQH-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-DbMjRbn9.mjs +270 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-DbMjRbn9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-BkauiyPn.mjs +542 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-BkauiyPn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs +133 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs +202 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs +298 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs +105 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-10nYBrN4.mjs +251 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-10nYBrN4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-Bygn5B_k.mjs +306 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-Bygn5B_k.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-CGRJXMOn.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-XH_rXGwz.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs.map → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-XH_rXGwz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-CpirrInU.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs.map → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-CpirrInU.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component-bQOqP1Tx.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs +41 -0
- package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-ZnMtkQSg.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs.map → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-ZnMtkQSg.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-uZkFZFPA.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs.map → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-uZkFZFPA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs → acorex-platform-module-organization-management-client-org-chart.page-BhXvP2qN.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs.map → acorex-platform-module-organization-management-client-org-chart.page-BhXvP2qN.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-column.component-C5H0kcVW.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-m4S5GRko.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-m4S5GRko.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-Cbua852d.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-Cbua852d.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix.component-Cpgdxtw-.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix.component-Cpgdxtw-.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client-settings.provider-B3nDm32f.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-organization-management-client.mjs +1 -1
- package/package.json +62 -2
- package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-chart.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-company.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-job-definition.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-job-level.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-position.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entities-team.d.ts +5 -0
- package/types/acorex-platform-module-organization-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-organization-management-client-contracts.d.ts +2 -2
- package/types/acorex-platform-module-organization-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/business-unit/business-unit.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryBusinessUnit(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n const entityName = 'business-unit';\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.businessUnit.name,\n title: '@organization-management:business-units.entities.business-unit.title',\n icon: 'fa-light fa-building-columns',\n parentKey: 'parentId',\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'organization-business-unit-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'reports' },\n ],\n formats: {\n individual: '@organization-management:business-units.entities.business-unit.title',\n plural: '@organization-management:business-units.entities.business-unit.plural',\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.teamBusinessUnit.name}`,\n title: '@organization-management:business-units.related-entities.teams.title',\n columns: ['teamId', 'isPrimary', 'effectiveFrom', 'effectiveTo'],\n conditions: [entityDetailsSimpleCondition('businessUnitId')],\n actions: [...entityDetailsCrudActions('businessUnitId')],\n layout: { type: 'page-list' },\n excludeProperties: ['businessUnitId'],\n },\n ],\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n {\n id: 'classification',\n title: '@organization-management:business-units.entities.business-unit.groups.classification',\n },\n {\n id: 'positions',\n title: '@organization-management:business-units.entities.business-unit.fields.positions.title',\n\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@organization-management:business-units.entities.business-unit.fields.code.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@organization-management:business-units.entities.business-unit.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox },\n },\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.BusinessUnit`,\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'parent.id' },\n { source: 'title', target: 'parent.title' },\n ],\n },\n },\n },\n },\n {\n name: 'typeId',\n title: '@general:terms.common.type',\n groupId: 'classification',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.BusinessUnitType`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'type.id' },\n { source: 'title', target: 'type.title' },\n { source: 'isLocationBased', target: 'type.isLocationBased' },\n { source: 'allowsDirectPositions', target: 'type.allowsDirectPositions' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'geographicRegionId',\n title: '@location-management:geographic-regions.entities.geographic-region.title',\n groupId: 'classification',\n schema: {\n dataType: 'string',\n visible: `{{ context.eval('type.isLocationBased') }}`,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `LocationManagement.GeographicRegion`,\n textField: 'title',\n valueField: 'id',\n look: 'lookup',\n expose: [\n { source: 'id', target: 'geographicRegion.id' },\n { source: 'title', target: 'geographicRegion.title' },\n ],\n },\n },\n },\n },\n {\n name: 'positionIds',\n title: '@general:terms.organizations.positions',\n groupId: 'positions',\n schema: {\n visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.position.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n multiple: true,\n expose: [\n { source: 'id', target: 'positionsList.{id}' },\n { source: 'title', target: 'positionsList.{title}' },\n ],\n },\n },\n },\n },\n {\n name: 'headPositionId',\n title: '@organization-management:business-units.entities.business-unit.fields.head-position.title',\n groupId: 'positions',\n schema: {\n visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.position.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'headPosition.id' },\n { source: 'title', target: 'headPosition.title' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'id',\n operator: { type: 'in' },\n value: '{{ context.eval(\"positionIds\") }}',\n },\n {\n field: 'isManager',\n operator: { type: 'equal' },\n value: true,\n },\n ],\n },\n },\n triggers: [{ event: \"{{ events.context('positionIds') }}\", action: `{{ widget.refresh() }}` }],\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'typeId', options: { dataPath: 'type.title' } },\n { name: 'geographicRegionId', options: { dataPath: 'geographicRegion.title' } },\n { name: 'headPositionId', options: { dataPath: 'headPosition.title' } },\n { name: 'positionIds', options: { dataPath: 'positionsList' } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', order: 1 },\n { id: 'classification', order: 2 },\n {\n id: 'positions',\n order: 3,\n layout: {\n visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'code',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n {\n name: 'description',\n layout: {\n order: 3,\n positions: {\n sm: { colSpan: 12, order: 3 },\n md: { colSpan: 12, order: 3 },\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n { name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'geographicRegionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionIds', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'headPositionId', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', order: 1 },\n { id: 'classification', order: 2 },\n {\n id: 'positions',\n order: 3,\n layout: {\n visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'code',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n {\n name: 'description',\n layout: {\n order: 3,\n positions: {\n sm: { colSpan: 12, order: 3 },\n md: { colSpan: 12, order: 3 },\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n { name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'geographicRegionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionIds', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'headPositionId', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n { id: 'basic-info', order: 1 },\n { id: 'classification', order: 2 },\n {\n id: 'positions',\n order: 3,\n layout: {\n visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'code',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n {\n name: 'description',\n layout: {\n order: 3,\n positions: {\n sm: { colSpan: 12, order: 3 },\n md: { colSpan: 12, order: 3 },\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n { name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'geographicRegionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionIds', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'headPositionId', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,mBAAmB,GAAA;AACvC,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;IACnC,MAAM,UAAU,GAAG,eAAe;AAElC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,KAAK,EAAE,sEAAsE;AAC7E,QAAA,IAAI,EAAE,8BAA8B;AACpC,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,OAAO,EAAE;AACP,YAAA,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,EAAE;AAC3F,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,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IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACnE,wBAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACjE,wBAAA,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC7E,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC3E,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs';
|
|
4
|
+
|
|
5
|
+
async function factoryChart() {
|
|
6
|
+
const entityDef = {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.chart.name,
|
|
9
|
+
plugins: [
|
|
10
|
+
{ name: 'history' },
|
|
11
|
+
{ name: 'lock' },
|
|
12
|
+
{ name: 'compare' },
|
|
13
|
+
],
|
|
14
|
+
title: RootConfig.entities.chart.title,
|
|
15
|
+
icon: RootConfig.entities.chart.icon,
|
|
16
|
+
formats: {
|
|
17
|
+
individual: '@organization-management:organization-chart.components.chart.title',
|
|
18
|
+
plural: '@organization-management:organization-chart.entities.chart.plural',
|
|
19
|
+
searchResult: {
|
|
20
|
+
title: '{{ title }}',
|
|
21
|
+
description: RootConfig.module.title,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
relatedEntities: [],
|
|
25
|
+
groups: [
|
|
26
|
+
{
|
|
27
|
+
id: 'section',
|
|
28
|
+
title: '@organization-management:organization-chart.components.chart.title',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
properties: [
|
|
32
|
+
// {
|
|
33
|
+
// name: 'name',
|
|
34
|
+
// title: '@organization-management:organization-chart.entities.chart.fields.name.title',
|
|
35
|
+
// groupId: 'section',
|
|
36
|
+
// schema: {
|
|
37
|
+
// dataType: 'string',
|
|
38
|
+
// interface: {
|
|
39
|
+
// type: AXPWidgetsList.Editors.TextBox,
|
|
40
|
+
// },
|
|
41
|
+
// },
|
|
42
|
+
// validations: [
|
|
43
|
+
// {
|
|
44
|
+
// rule: 'required',
|
|
45
|
+
// },
|
|
46
|
+
// ],
|
|
47
|
+
// },
|
|
48
|
+
{
|
|
49
|
+
name: 'version',
|
|
50
|
+
title: '@organization-management:organization-chart.entities.chart.fields.version.title',
|
|
51
|
+
groupId: 'section',
|
|
52
|
+
schema: {
|
|
53
|
+
dataType: 'string',
|
|
54
|
+
interface: {
|
|
55
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'structure',
|
|
61
|
+
title: '@organization-management:organization-chart.entities.chart.fields.structure.title',
|
|
62
|
+
groupId: 'section',
|
|
63
|
+
schema: {
|
|
64
|
+
// Persisted org-chart JSON payload (modes tree) — must be object/jsonb, not text.
|
|
65
|
+
dataType: 'object',
|
|
66
|
+
interface: {
|
|
67
|
+
type: 'json',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
columns: [{ name: 'name' }, { name: 'version' }],
|
|
73
|
+
interfaces: {
|
|
74
|
+
master: {
|
|
75
|
+
create: {
|
|
76
|
+
sections: [
|
|
77
|
+
{
|
|
78
|
+
id: 'section',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
properties: [
|
|
82
|
+
{
|
|
83
|
+
name: 'name',
|
|
84
|
+
layout: {
|
|
85
|
+
order: 1,
|
|
86
|
+
positions: {
|
|
87
|
+
sm: { colSpan: 12, order: 1 },
|
|
88
|
+
md: { colSpan: 8, order: 1 },
|
|
89
|
+
lg: { colSpan: 8, order: 1 },
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'version',
|
|
95
|
+
layout: {
|
|
96
|
+
order: 2,
|
|
97
|
+
positions: {
|
|
98
|
+
sm: { colSpan: 12, order: 2 },
|
|
99
|
+
md: { colSpan: 4, order: 2 },
|
|
100
|
+
lg: { colSpan: 4, order: 2 },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
update: {
|
|
107
|
+
sections: [
|
|
108
|
+
{
|
|
109
|
+
id: 'section',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
properties: [
|
|
113
|
+
{
|
|
114
|
+
name: 'name',
|
|
115
|
+
layout: {
|
|
116
|
+
order: 1,
|
|
117
|
+
positions: {
|
|
118
|
+
sm: { colSpan: 12, order: 1 },
|
|
119
|
+
md: { colSpan: 8, order: 1 },
|
|
120
|
+
lg: { colSpan: 8, order: 1 },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'version',
|
|
126
|
+
layout: {
|
|
127
|
+
order: 2,
|
|
128
|
+
positions: {
|
|
129
|
+
sm: { colSpan: 12, order: 2 },
|
|
130
|
+
md: { colSpan: 4, order: 2 },
|
|
131
|
+
lg: { colSpan: 4, order: 2 },
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
single: {
|
|
138
|
+
title: '{{name}}',
|
|
139
|
+
sections: [
|
|
140
|
+
{
|
|
141
|
+
id: 'section',
|
|
142
|
+
layout: {
|
|
143
|
+
positions: {
|
|
144
|
+
lg: {
|
|
145
|
+
colSpan: 12,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
properties: [
|
|
152
|
+
{
|
|
153
|
+
name: 'name',
|
|
154
|
+
layout: {
|
|
155
|
+
order: 1,
|
|
156
|
+
positions: {
|
|
157
|
+
sm: { colSpan: 12, order: 1 },
|
|
158
|
+
md: { colSpan: 8, order: 1 },
|
|
159
|
+
lg: { colSpan: 8, order: 1 },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'version',
|
|
165
|
+
layout: {
|
|
166
|
+
order: 2,
|
|
167
|
+
positions: {
|
|
168
|
+
sm: { colSpan: 12, order: 2 },
|
|
169
|
+
md: { colSpan: 4, order: 2 },
|
|
170
|
+
lg: { colSpan: 4, order: 2 },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
actions: [
|
|
176
|
+
entityMasterDeleteAction()
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
list: {
|
|
180
|
+
actions: [
|
|
181
|
+
...entityMasterCrudActions(),
|
|
182
|
+
{
|
|
183
|
+
title: '@organization-management:organization-chart.entities.chart.actions.view-chart.title',
|
|
184
|
+
command: 'view-chart',
|
|
185
|
+
priority: 'secondary',
|
|
186
|
+
type: 'view',
|
|
187
|
+
scope: AXPEntityCommandScope.Individual,
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
return entityDef;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export { factoryChart };
|
|
199
|
+
//# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/chart/chart.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryChart(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.chart.name,\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n ],\n title: RootConfig.entities.chart.title,\n icon: RootConfig.entities.chart.icon,\n formats: {\n individual: '@organization-management:organization-chart.components.chart.title',\n plural: '@organization-management:organization-chart.entities.chart.plural',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: '@organization-management:organization-chart.components.chart.title',\n },\n ],\n properties: [\n // {\n // name: 'name',\n // title: '@organization-management:organization-chart.entities.chart.fields.name.title',\n // groupId: 'section',\n // schema: {\n // dataType: 'string',\n // interface: {\n // type: AXPWidgetsList.Editors.TextBox,\n // },\n // },\n // validations: [\n // {\n // rule: 'required',\n // },\n // ],\n // },\n {\n name: 'version',\n title: '@organization-management:organization-chart.entities.chart.fields.version.title',\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n },\n {\n name: 'structure',\n title: '@organization-management:organization-chart.entities.chart.fields.structure.title',\n groupId: 'section',\n schema: {\n // Persisted org-chart JSON payload (modes tree) — must be object/jsonb, not text.\n dataType: 'object',\n interface: {\n type: 'json',\n },\n },\n },\n ],\n columns: [{ name: 'name' }, { name: 'version' }],\n \n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'name',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'version',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'name',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'version',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\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 order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'version',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n ],\n actions: [\n entityMasterDeleteAction()\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n {\n title: '@organization-management:organization-chart.entities.chart.actions.view-chart.title',\n command: 'view-chart',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,YAAY,GAAA;AAChC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AACpC,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,SAAA;AACD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;AACtC,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AACpC,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,oEAAoE;AAChF,YAAA,MAAM,EAAE,mEAAmE;AAC3E,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aA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EAAE,CAAC,EAAE;oCAC5B,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;AAC7B,iCAAA;AACF,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,wBAAwB;AACzB,qBAAA;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,uBAAuB,EAAE;AAC5B,wBAAA;AACE,4BAAA,KAAK,EAAE,qFAAqF;AAC5F,4BAAA,OAAO,EAAE,YAAY;AACrB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs';
|
|
4
|
+
|
|
5
|
+
async function factoryCompany() {
|
|
6
|
+
const entityDef = {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.company.name,
|
|
9
|
+
plugins: [
|
|
10
|
+
{ name: 'history' },
|
|
11
|
+
{ name: 'lock' },
|
|
12
|
+
{ name: 'compare' },
|
|
13
|
+
],
|
|
14
|
+
title: '@organization-management:companies.entities.company.title',
|
|
15
|
+
formats: {
|
|
16
|
+
individual: '@organization-management:companies.entities.company.title',
|
|
17
|
+
plural: '@organization-management:companies.entities.company.plural',
|
|
18
|
+
searchResult: {
|
|
19
|
+
title: '{{ title }}',
|
|
20
|
+
description: RootConfig.module.title,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
relatedEntities: [],
|
|
24
|
+
groups: [
|
|
25
|
+
{
|
|
26
|
+
id: 'section',
|
|
27
|
+
title: '@organization-management:companies.entities.company.title',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
properties: [
|
|
31
|
+
{
|
|
32
|
+
name: 'title',
|
|
33
|
+
title: `@general:terms.common.title`,
|
|
34
|
+
groupId: 'section',
|
|
35
|
+
schema: {
|
|
36
|
+
dataType: 'string',
|
|
37
|
+
interface: {
|
|
38
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
39
|
+
options: {
|
|
40
|
+
width: '400px',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
validations: [
|
|
45
|
+
{
|
|
46
|
+
rule: 'required',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
columns: [{ name: 'title' }],
|
|
52
|
+
interfaces: {
|
|
53
|
+
master: {
|
|
54
|
+
create: {
|
|
55
|
+
sections: [
|
|
56
|
+
{
|
|
57
|
+
id: 'section',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
properties: [
|
|
61
|
+
{
|
|
62
|
+
name: 'title',
|
|
63
|
+
layout: {
|
|
64
|
+
positions: {
|
|
65
|
+
lg: {
|
|
66
|
+
colSpan: 12,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
update: {
|
|
74
|
+
sections: [
|
|
75
|
+
{
|
|
76
|
+
id: 'section',
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
properties: [
|
|
80
|
+
{
|
|
81
|
+
name: 'title',
|
|
82
|
+
layout: {
|
|
83
|
+
positions: {
|
|
84
|
+
lg: {
|
|
85
|
+
colSpan: 12,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
single: {
|
|
93
|
+
title: '{{title}}',
|
|
94
|
+
sections: [
|
|
95
|
+
{
|
|
96
|
+
id: 'section',
|
|
97
|
+
layout: {
|
|
98
|
+
positions: {
|
|
99
|
+
lg: {
|
|
100
|
+
colSpan: 12,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
properties: [
|
|
107
|
+
{
|
|
108
|
+
name: 'title',
|
|
109
|
+
layout: {
|
|
110
|
+
positions: {
|
|
111
|
+
lg: {
|
|
112
|
+
colSpan: 6,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
actions: [
|
|
119
|
+
entityMasterDeleteAction()
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
list: {
|
|
123
|
+
actions: [
|
|
124
|
+
...entityMasterCrudActions()
|
|
125
|
+
],
|
|
126
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
return entityDef;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export { factoryCompany };
|
|
135
|
+
//# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/company/company.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryCompany(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.company.name,\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n ],\n title: '@organization-management:companies.entities.company.title',\n formats: {\n individual: '@organization-management:companies.entities.company.title',\n plural: '@organization-management:companies.entities.company.plural',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: '@organization-management:companies.entities.company.title',\n },\n ],\n properties: [\n {\n name: 'title',\n title: `@general:terms.common.title`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }],\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 entityMasterDeleteAction()\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions()\n ],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],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