@acorex-platform/module-workplacesafety-management-client 0.0.32 → 0.0.33
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-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-isnVDChu.mjs.map → acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs +509 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs +297 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs +431 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs +416 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs +476 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs +482 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs +345 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs +1458 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs +1313 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs +295 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs +542 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs +470 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs +369 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs +299 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs +1358 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs +170 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs +372 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-hierarchy-levels.entity-Dae2kkZe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs +160 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-control-measure.entity-CpNcN6Pf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs +294 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-ppe-rule.entity-BcsAnO9h.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs +279 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs +339 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs +345 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard.entity-J6fveZKA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs +208 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-ppe-item.entity-3fQPlBBf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs +971 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs +356 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section.entity-BPx-3rYX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs +211 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type-section.entity-_nG09ZpE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs +158 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-type.entity-CIH7W9R7.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs +405 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-work-step.entity-DmFYsBhI.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs +333 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan.entity-CUDh_ZfQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs +232 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs +162 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs +256 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CZFCMX6R.mjs.map → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs +117 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-yxxC7i6A.mjs.map → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs +43 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-C7IojUT9.mjs.map → acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -1
- package/package.json +70 -2
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-hierarchy-levels.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-control-measure.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-ppe-rule.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-register.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard-risk.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-hazard.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-ppe-item.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-section.d.ts +9 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type-section.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan-work-step.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-plan.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-safety-template.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-section-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entities-work-step-type.d.ts +5 -0
- package/types/acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-workplacesafety-management-client-local-entities.d.ts +12 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs +0 -118
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-D7hofHR0.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-template.entity-BxNUXvae.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/safety-template-type-options.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/safety-template/safety-template.entity.ts"],"sourcesContent":["//#region ---- Safety template type options ----\n\ntype AXMSafetyTemplateType = 'SWMS' | 'JSA' | 'Forms' | 'Permits' | 'Plans';\n\nexport const WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS: ReadonlyArray<{\n id: AXMSafetyTemplateType;\n title: string;\n}> = [\n {\n id: 'SWMS',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.swms',\n },\n {\n id: 'JSA',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.jsa',\n },\n {\n id: 'Forms',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.forms',\n },\n {\n id: 'Permits',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.permits',\n },\n {\n id: 'Plans',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.options.plans',\n },\n] as const;\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\nimport { WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS } from '../../safety-template-type-options';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function safetyTemplateEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.safetyTemplate.name,\n title: RootConfig.entities.safetyTemplate.title,\n icon: RootConfig.entities.safetyTemplate.icon,\n formats: {\n individual: RootConfig.entities.safetyTemplate.title,\n plural: RootConfig.entities.safetyTemplate.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'safety-template-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.groups.basic-info',\n },\n {\n id: 'configuration',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.groups.configuration',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.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: '@workplacesafety-management:safety-templates.entities.safety-template.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: true,\n placeholder: '@workplacesafety-management:safety-templates.entities.safety-template.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:safety-templates.entities.safety-template.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@workplacesafety-management:safety-templates.entities.safety-template.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'templateType',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.template-type.title',\n groupId: 'configuration',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: [...WORKPLACE_SAFETY_TEMPLATE_TYPE_OPTIONS],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sectionIds',\n title: '@workplacesafety-management:safety-templates.entities.safety-template.fields.section-ids.title',\n groupId: 'configuration',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'array',\n nullable: true,\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`,\n look: 'drop-down',\n multiple: true,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'sections.{id}' },\n { source: 'title', target: 'sections.{title}' },\n { source: 'code', target: 'sections.{code}' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '240px', order: 2 } },\n { name: 'templateType', options: { width: '120px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'templateType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sectionIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'configuration' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'templateType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sectionIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'templateType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sectionIds', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAIO,MAAM,sCAAsC,GAG9C;AACH,IAAA;AACE,QAAA,EAAE,EAAE,MAAM;AACV,QAAA,KAAK,EAAE,yGAAyG;AACjH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,KAAK,EAAE,wGAAwG;AAChH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,OAAO;AACX,QAAA,KAAK,EAAE,0GAA0G;AAClH,K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,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACjF,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,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Imports ----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Constants ----
|
|
8
|
+
const listSortAndFilterOptions = {
|
|
9
|
+
sort: { enabled: true },
|
|
10
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ---- Entity factory ----
|
|
14
|
+
async function sectionTypeEntityFactory() {
|
|
15
|
+
const entityDef = {
|
|
16
|
+
module: RootConfig.module.name,
|
|
17
|
+
name: RootConfig.entities.sectionType.name,
|
|
18
|
+
title: RootConfig.entities.sectionType.title,
|
|
19
|
+
icon: RootConfig.entities.sectionType.icon,
|
|
20
|
+
formats: {
|
|
21
|
+
individual: RootConfig.entities.sectionType.title,
|
|
22
|
+
plural: RootConfig.entities.sectionType.titlePlural,
|
|
23
|
+
searchResult: {
|
|
24
|
+
title: '{{ code }}',
|
|
25
|
+
description: '{{ description }}',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
plugins: [
|
|
29
|
+
{ name: 'identifier', options: { field: 'code', rule: 'section-type-code' } },
|
|
30
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
31
|
+
{ name: 'archive' },
|
|
32
|
+
],
|
|
33
|
+
groups: [
|
|
34
|
+
{
|
|
35
|
+
id: 'basic-info',
|
|
36
|
+
title: '@workplacesafety-management:section-types.entities.section-type.groups.basic-info',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
properties: [
|
|
40
|
+
{
|
|
41
|
+
name: 'id',
|
|
42
|
+
title: '@general:terms.common.id',
|
|
43
|
+
groupId: 'basic-info',
|
|
44
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'code',
|
|
48
|
+
title: '@workplacesafety-management:section-types.entities.section-type.fields.code.title',
|
|
49
|
+
groupId: 'basic-info',
|
|
50
|
+
options: listSortAndFilterOptions,
|
|
51
|
+
schema: {
|
|
52
|
+
dataType: 'string',
|
|
53
|
+
unique: { enabled: true },
|
|
54
|
+
interface: {
|
|
55
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
56
|
+
options: {
|
|
57
|
+
disabled: true,
|
|
58
|
+
placeholder: '@workplacesafety-management:section-types.entities.section-type.fields.code.placeholder',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
validations: [{ rule: 'required' }],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'title',
|
|
66
|
+
title: '@workplacesafety-management:section-types.entities.section-type.fields.title.title',
|
|
67
|
+
groupId: 'basic-info',
|
|
68
|
+
options: listSortAndFilterOptions,
|
|
69
|
+
schema: {
|
|
70
|
+
dataType: 'string',
|
|
71
|
+
interface: {
|
|
72
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
73
|
+
options: {
|
|
74
|
+
placeholder: '@workplacesafety-management:section-types.entities.section-type.fields.title.placeholder',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
validations: [{ rule: 'required' }],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'description',
|
|
82
|
+
title: '@workplacesafety-management:section-types.entities.section-type.fields.description.title',
|
|
83
|
+
groupId: 'basic-info',
|
|
84
|
+
options: {
|
|
85
|
+
sort: { enabled: false },
|
|
86
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
87
|
+
},
|
|
88
|
+
schema: {
|
|
89
|
+
dataType: 'string',
|
|
90
|
+
interface: {
|
|
91
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
92
|
+
options: {
|
|
93
|
+
rows: 2,
|
|
94
|
+
placeholder: '@workplacesafety-management:section-types.entities.section-type.fields.description.placeholder',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'isRepeatable',
|
|
101
|
+
title: '@workplacesafety-management:section-types.entities.section-type.fields.is-repeatable.title',
|
|
102
|
+
groupId: 'basic-info',
|
|
103
|
+
options: listSortAndFilterOptions,
|
|
104
|
+
schema: {
|
|
105
|
+
dataType: 'boolean',
|
|
106
|
+
defaultValue: false,
|
|
107
|
+
interface: {
|
|
108
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
columns: [
|
|
114
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
115
|
+
{ name: 'title', options: { width: '200px', order: 2 } },
|
|
116
|
+
{ name: 'description', options: { width: '280px', order: 3 } },
|
|
117
|
+
{ name: 'isRepeatable', options: { width: '120px', order: 4 } },
|
|
118
|
+
],
|
|
119
|
+
interfaces: {
|
|
120
|
+
master: {
|
|
121
|
+
create: {
|
|
122
|
+
sections: [{ id: 'basic-info' }],
|
|
123
|
+
properties: [
|
|
124
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
125
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
126
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
127
|
+
{ name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
update: {
|
|
131
|
+
sections: [{ id: 'basic-info' }],
|
|
132
|
+
properties: [
|
|
133
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
134
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
135
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
136
|
+
{ name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
single: {
|
|
140
|
+
title: '{{ title }}',
|
|
141
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
142
|
+
properties: [
|
|
143
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
144
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
145
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
146
|
+
{ name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
147
|
+
],
|
|
148
|
+
actions: [...entityMasterRecordActions()],
|
|
149
|
+
},
|
|
150
|
+
list: {
|
|
151
|
+
actions: [...entityMasterCrudActions()],
|
|
152
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
return entityDef;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
|
|
161
|
+
export { sectionTypeEntityFactory };
|
|
162
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-section-type.entity-73MUyaIk.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/section-type/section-type.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function sectionTypeEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.sectionType.name,\n title: RootConfig.entities.sectionType.title,\n icon: RootConfig.entities.sectionType.icon,\n formats: {\n individual: RootConfig.entities.sectionType.title,\n plural: RootConfig.entities.sectionType.titlePlural,\n searchResult: {\n title: '{{ code }}',\n description: '{{ description }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'section-type-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:section-types.entities.section-type.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.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: '@workplacesafety-management:section-types.entities.section-type.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: true,\n placeholder: '@workplacesafety-management:section-types.entities.section-type.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:section-types.entities.section-type.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:section-types.entities.section-type.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:section-types.entities.section-type.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 2,\n placeholder:\n '@workplacesafety-management:section-types.entities.section-type.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'isRepeatable',\n title: '@workplacesafety-management:section-types.entities.section-type.fields.is-repeatable.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '200px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\n { name: 'isRepeatable', options: { width: '120px', order: 4 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'isRepeatable', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAOA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAClE;AAED;AAEA;AAEO,eAAe,wBAAwB,GAAA;AAC5C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI;A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O,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,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;AAEA;;;;"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs';
|
|
4
|
+
import { W as WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS } from './acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-safety-plan-section-dependency-BRGcQo7H.mjs';
|
|
5
|
+
|
|
6
|
+
//#region ---- Imports ----
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Constants ----
|
|
9
|
+
const listSortAndFilterOptions = {
|
|
10
|
+
sort: { enabled: true },
|
|
11
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
12
|
+
};
|
|
13
|
+
const sectionTypeEntity = `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`;
|
|
14
|
+
/** Auto-fill column title from the selected section type (repeater row context). */
|
|
15
|
+
const COLUMN_SECTION_TYPE_TITLE_SYNC_TRIGGERS = [
|
|
16
|
+
{
|
|
17
|
+
event: "{{ events.context('sectionTypeId') }}",
|
|
18
|
+
action: "{{ const items = widget.output('selectedItems'); const selectedTitle = Array.isArray(items) ? items[0]?.title : undefined; const t = selectedTitle || context.eval('sectionType.title') || ''; if (t) { context.set('title', t); const titleWidget = widget.find('title'); if (titleWidget) { titleWidget.setValue(t); } } }}",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
event: "{{ events.context('sectionType.title') }}",
|
|
22
|
+
action: "{{ const t = context.eval('sectionType.title') || ''; if (t) { context.set('title', t); const titleWidget = widget.find('title'); if (titleWidget) { titleWidget.setValue(t); } } }}",
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
const COLUMNS_REPEATER_CHILDREN = [
|
|
26
|
+
{
|
|
27
|
+
type: AXPWidgetsList.Layouts.GridLayout,
|
|
28
|
+
mode: 'edit',
|
|
29
|
+
name: 'columnRow',
|
|
30
|
+
options: {
|
|
31
|
+
grid: {
|
|
32
|
+
default: {
|
|
33
|
+
columns: 12,
|
|
34
|
+
gap: '1rem',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
children: [
|
|
39
|
+
{
|
|
40
|
+
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
41
|
+
mode: 'edit',
|
|
42
|
+
options: { colSpan: 6 },
|
|
43
|
+
children: [
|
|
44
|
+
{
|
|
45
|
+
type: AXPWidgetsList.Layouts.FormField,
|
|
46
|
+
mode: 'edit',
|
|
47
|
+
options: {
|
|
48
|
+
label: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.section-type.title',
|
|
49
|
+
showLabel: true,
|
|
50
|
+
},
|
|
51
|
+
children: [
|
|
52
|
+
{
|
|
53
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
54
|
+
mode: 'edit',
|
|
55
|
+
path: 'sectionTypeId',
|
|
56
|
+
name: 'sectionTypeId',
|
|
57
|
+
options: {
|
|
58
|
+
entity: sectionTypeEntity,
|
|
59
|
+
...WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS,
|
|
60
|
+
triggers: [
|
|
61
|
+
...(Array.isArray(WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS['triggers'])
|
|
62
|
+
? WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS['triggers']
|
|
63
|
+
: []),
|
|
64
|
+
...COLUMN_SECTION_TYPE_TITLE_SYNC_TRIGGERS,
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
74
|
+
mode: 'edit',
|
|
75
|
+
options: { colSpan: 6 },
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
type: AXPWidgetsList.Layouts.FormField,
|
|
79
|
+
mode: 'edit',
|
|
80
|
+
options: {
|
|
81
|
+
label: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.column-title.title',
|
|
82
|
+
showLabel: true,
|
|
83
|
+
},
|
|
84
|
+
children: [
|
|
85
|
+
{
|
|
86
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
87
|
+
mode: 'edit',
|
|
88
|
+
path: 'title',
|
|
89
|
+
name: 'title',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ---- Entity factory ----
|
|
100
|
+
async function workStepTypeEntityFactory() {
|
|
101
|
+
const entityDef = {
|
|
102
|
+
module: RootConfig.module.name,
|
|
103
|
+
name: RootConfig.entities.workStepType.name,
|
|
104
|
+
title: RootConfig.entities.workStepType.title,
|
|
105
|
+
icon: RootConfig.entities.workStepType.icon,
|
|
106
|
+
formats: {
|
|
107
|
+
individual: RootConfig.entities.workStepType.title,
|
|
108
|
+
plural: RootConfig.entities.workStepType.titlePlural,
|
|
109
|
+
searchResult: {
|
|
110
|
+
title: '{{ code }}',
|
|
111
|
+
description: '{{ description }}',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
plugins: [
|
|
115
|
+
{ name: 'identifier', options: { field: 'code', rule: 'work-step-type-code' } },
|
|
116
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
117
|
+
{ name: 'archive' },
|
|
118
|
+
],
|
|
119
|
+
groups: [
|
|
120
|
+
{
|
|
121
|
+
id: 'basic-info',
|
|
122
|
+
title: '@workplacesafety-management:work-step-types.entities.work-step-type.groups.basic-info',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: 'columns',
|
|
126
|
+
title: '@workplacesafety-management:work-step-types.entities.work-step-type.groups.columns',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
properties: [
|
|
130
|
+
{
|
|
131
|
+
name: 'id',
|
|
132
|
+
title: '@general:terms.common.id',
|
|
133
|
+
groupId: 'basic-info',
|
|
134
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'code',
|
|
138
|
+
title: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.code.title',
|
|
139
|
+
groupId: 'basic-info',
|
|
140
|
+
options: listSortAndFilterOptions,
|
|
141
|
+
schema: {
|
|
142
|
+
dataType: 'string',
|
|
143
|
+
unique: { enabled: true },
|
|
144
|
+
interface: {
|
|
145
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
146
|
+
options: {
|
|
147
|
+
disabled: true,
|
|
148
|
+
placeholder: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.code.placeholder',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
validations: [{ rule: 'required' }],
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'title',
|
|
156
|
+
title: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.title.title',
|
|
157
|
+
groupId: 'basic-info',
|
|
158
|
+
options: listSortAndFilterOptions,
|
|
159
|
+
schema: {
|
|
160
|
+
dataType: 'string',
|
|
161
|
+
interface: {
|
|
162
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
163
|
+
options: {
|
|
164
|
+
placeholder: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.title.placeholder',
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
validations: [{ rule: 'required' }],
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'description',
|
|
172
|
+
title: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.description.title',
|
|
173
|
+
groupId: 'basic-info',
|
|
174
|
+
options: {
|
|
175
|
+
sort: { enabled: false },
|
|
176
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
177
|
+
},
|
|
178
|
+
schema: {
|
|
179
|
+
dataType: 'string',
|
|
180
|
+
interface: {
|
|
181
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
182
|
+
options: {
|
|
183
|
+
rows: 2,
|
|
184
|
+
placeholder: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.description.placeholder',
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'columns',
|
|
191
|
+
title: '',
|
|
192
|
+
groupId: 'columns',
|
|
193
|
+
schema: {
|
|
194
|
+
defaultValue: [],
|
|
195
|
+
dataType: 'array',
|
|
196
|
+
nullable: true,
|
|
197
|
+
interface: {
|
|
198
|
+
type: AXPWidgetsList.Layouts.RepeaterLayout,
|
|
199
|
+
options: { hasControls: true, allowReorder: true },
|
|
200
|
+
children: [...COLUMNS_REPEATER_CHILDREN],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
columns: [
|
|
206
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
207
|
+
{ name: 'title', options: { width: '200px', order: 2 } },
|
|
208
|
+
{ name: 'description', options: { width: '280px', order: 3 } },
|
|
209
|
+
],
|
|
210
|
+
interfaces: {
|
|
211
|
+
master: {
|
|
212
|
+
create: {
|
|
213
|
+
sections: [{ id: 'basic-info' }, { id: 'columns' }],
|
|
214
|
+
properties: [
|
|
215
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
216
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
217
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
218
|
+
{ name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
update: {
|
|
222
|
+
sections: [{ id: 'basic-info' }, { id: 'columns' }],
|
|
223
|
+
properties: [
|
|
224
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
225
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
226
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
227
|
+
{ name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
228
|
+
],
|
|
229
|
+
},
|
|
230
|
+
single: {
|
|
231
|
+
title: '{{ title }}',
|
|
232
|
+
sections: [
|
|
233
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
234
|
+
{ id: 'columns', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
235
|
+
],
|
|
236
|
+
properties: [
|
|
237
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
238
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
239
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
240
|
+
{ name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
241
|
+
],
|
|
242
|
+
actions: [...entityMasterRecordActions()],
|
|
243
|
+
},
|
|
244
|
+
list: {
|
|
245
|
+
actions: [...entityMasterCrudActions()],
|
|
246
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
return entityDef;
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
|
|
255
|
+
export { workStepTypeEntityFactory };
|
|
256
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-work-step-type.entity-Ujxum2GY.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/work-step-type/work-step-type.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\nimport { WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS } from '../../safety-plan-section-dependency';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst sectionTypeEntity = `${RootConfig.module.name}.${RootConfig.entities.sectionType.name}`;\n\n/** Auto-fill column title from the selected section type (repeater row context). */\nconst COLUMN_SECTION_TYPE_TITLE_SYNC_TRIGGERS = [\n {\n event: \"{{ events.context('sectionTypeId') }}\",\n action:\n \"{{ const items = widget.output('selectedItems'); const selectedTitle = Array.isArray(items) ? items[0]?.title : undefined; const t = selectedTitle || context.eval('sectionType.title') || ''; if (t) { context.set('title', t); const titleWidget = widget.find('title'); if (titleWidget) { titleWidget.setValue(t); } } }}\",\n },\n {\n event: \"{{ events.context('sectionType.title') }}\",\n action:\n \"{{ const t = context.eval('sectionType.title') || ''; if (t) { context.set('title', t); const titleWidget = widget.find('title'); if (titleWidget) { titleWidget.setValue(t); } } }}\",\n },\n];\n\nconst COLUMNS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Layouts.GridLayout,\n mode: 'edit' as const,\n name: 'columnRow',\n options: {\n grid: {\n default: {\n columns: 12,\n gap: '1rem',\n },\n },\n },\n children: [\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 6 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@workplacesafety-management:work-step-types.entities.work-step-type.fields.section-type.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.LookupBox,\n mode: 'edit' as const,\n path: 'sectionTypeId',\n name: 'sectionTypeId',\n options: {\n entity: sectionTypeEntity,\n ...WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS,\n triggers: [\n ...(Array.isArray(WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS['triggers'])\n ? (WORKPLACE_SAFETY_SECTION_TYPE_LOOKUP_WIDGET_OPTIONS['triggers'] as unknown[])\n : []),\n ...COLUMN_SECTION_TYPE_TITLE_SYNC_TRIGGERS,\n ],\n },\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 6 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.column-title.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n mode: 'edit' as const,\n path: 'title',\n name: 'title',\n },\n ],\n },\n ],\n },\n ],\n },\n];\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function workStepTypeEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.workStepType.name,\n title: RootConfig.entities.workStepType.title,\n icon: RootConfig.entities.workStepType.icon,\n formats: {\n individual: RootConfig.entities.workStepType.title,\n plural: RootConfig.entities.workStepType.titlePlural,\n searchResult: {\n title: '{{ code }}',\n description: '{{ description }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'work-step-type-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:work-step-types.entities.work-step-type.groups.basic-info',\n },\n {\n id: 'columns',\n title: '@workplacesafety-management:work-step-types.entities.work-step-type.groups.columns',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.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: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: true,\n placeholder: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:work-step-types.entities.work-step-type.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 2,\n placeholder:\n '@workplacesafety-management:work-step-types.entities.work-step-type.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'columns',\n title: '',\n groupId: 'columns',\n schema: {\n defaultValue: [],\n dataType: 'array',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true, allowReorder: true },\n children: [...COLUMNS_REPEATER_CHILDREN],\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '200px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'columns' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'columns' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'columns', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'columns', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAAA;AAQA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAClE;AAED,MAAM,iBAAiB,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE;AAE7F;AACA,MAAM,uCAAuC,GAAG;AAC9C,IAAA;AACE,QAAA,KAAK,EAAE,uCAAuC;AAC9C,QAAA,MAAM,EACJ,+TAA+T;AAClU,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,2CAA2C;AAClD,QAAA,MAAM,EACJ,sLAAsL;AACzL,KAAA;CACF;AAED,MAAM,yBAAyB,GAAG;AAChC,IAAA;AACE,QAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,UAAU;AACvC,QAAA,IAAI,EAAE,MAAe;AACrB,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE;AACJ,gBAAA,OAAO,EAAE;AACP,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,GAAG,EAAE,MAAM;AACZ,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA;AACE,gBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,cAAc;AAC3C,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,OAAO,E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acesafety-management-client-contracts-entity-catalog-acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-CeTmhod5.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -2,7 +2,7 @@ import { AXPBaseWidgetComponent } from '@acorex-platform/framework-client/layout
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
4
|
import { get, isString, isBoolean, defaultTo } from 'lodash';
|
|
5
|
-
import { A as AXMControlHierarchyDiagramComponent } from './acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-
|
|
5
|
+
import { A as AXMControlHierarchyDiagramComponent } from './acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.component-BI9VkzNw.mjs';
|
|
6
6
|
import { A as AXMControlHierarchyDiagramService, r as resolveControlHierarchyDiagramViewType } from './acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs';
|
|
7
7
|
|
|
8
8
|
//#region ---- Imports ----
|
|
@@ -90,4 +90,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
90
90
|
}] });
|
|
91
91
|
|
|
92
92
|
export { AXMControlHierarchyDiagramWidgetViewComponent };
|
|
93
|
-
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-
|
|
93
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs","sources":["../../../../libs/modules/workplacesafety-management/client/src/lib/features/control-hierarchy-diagram/control-hierarchy-diagram-widget-view.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPBaseWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\nimport { defaultTo, get, isBoolean, isString } from 'lodash';\n\nimport { AXMControlHierarchyDiagramComponent } from './control-hierarchy-diagram.component';\nimport { AXMControlHierarchyDiagramService } from './control-hierarchy-diagram.service';\nimport {\n resolveControlHierarchyDiagramViewType,\n type AXMControlHierarchyDiagramViewType,\n} from './control-hierarchy-diagram.types';\nimport { type AXMControlHierarchyDiagramWidgetOptions } from './control-hierarchy-diagram-widget.config';\n\n//#endregion\n\n//#region ---- Widget View Component ----\n\n@Component({\n selector: 'axm-control-hierarchy-diagram-widget-view',\n template: `\n <axm-control-hierarchy-diagram\n [viewType]=\"initialViewType()\"\n [items]=\"diagramItems()\"\n [highlightLevelId]=\"highlightLevelId()\"\n [showViewTypeSelector]=\"showViewTypeSelector()\"\n [showTitle]=\"showTitle()\"\n />\n `,\n host: {\n class: 'block w-full',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXMControlHierarchyDiagramComponent],\n})\nexport class AXMControlHierarchyDiagramWidgetViewComponent extends AXPBaseWidgetComponent<AXMControlHierarchyDiagramWidgetOptions> {\n //#region ---- Services & Dependencies ----\n\n private readonly diagramService = inject(AXMControlHierarchyDiagramService);\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n /** Designer/default initial layout only; runtime selection stays inside the diagram component. */\n protected initialViewType = computed<AXMControlHierarchyDiagramViewType>(() => {\n this.contextService.changeEvent();\n const fromContext = get(this.contextService.data(), 'hierarchyDiagramViewType');\n if (isString(fromContext) && fromContext.length > 0) {\n return resolveControlHierarchyDiagramViewType(fromContext);\n }\n return resolveControlHierarchyDiagramViewType(this.options()['viewType']);\n });\n\n /** Live repeater items from entity record context; null falls back to persisted levels query. */\n protected diagramItems = computed(() => {\n this.contextService.changeEvent();\n return this.diagramService.resolveDiagramItemsFromContext(\n this.contextService.data() as Record<string, unknown>,\n );\n });\n\n protected showViewTypeSelector = computed(() => this.resolveShowViewTypeSelector());\n\n protected showTitle = computed(() => this.options()['showTitle'] === true);\n\n protected highlightLevelId = computed<string | null>(() => this.resolveHighlightLevelId());\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private resolveShowViewTypeSelector(): boolean {\n const options = this.options();\n if (isBoolean(options['showViewTypeSelector'])) {\n return options['showViewTypeSelector'];\n }\n return true;\n }\n\n private resolveHighlightLevelId(): string | null {\n const options = this.options();\n const fromOptions = options['highlightLevelId'];\n if (isString(fromOptions) && fromOptions.length > 0) {\n return fromOptions;\n }\n this.contextService.changeEvent();\n const fromContext = get(this.contextService.data(), 'id');\n return isString(fromContext) ? fromContext : defaultTo(fromContext != null ? String(fromContext) : null, null);\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAAA;AAcA;AAEA;AAmBM,MAAO,6CAA8C,SAAQ,sBAA+D,CAAA;AAjBlI,IAAA,WAAA,GAAA;;;AAoBmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iCAAiC,CAAC;;;;AAOjE,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAqC,MAAK;AAC5E,YAAA,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE;AACjC,YAAA,MAAM,WAAW,GAAG,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,0BAA0B,CAAC;YAC/E,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;AACnD,gBAAA,OAAO,sCAAsC,CAAC,WAAW,CAAC;YAC5D;YACA,OAAO,sCAAsC,CAAC,IAAI,CA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