@acorex-platform/module-workplacesafety-management-client 0.0.30 → 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-mzaaZ6T3.mjs +549 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-acorex-platform-module-workplacesafety-management-client-mzaaZ6T3.mjs.map +1 -0
- 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-contracts.mjs +739 -806
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs +93 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-CnTEwf_l.mjs.map +1 -0
- 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-control-hierarchy-diagram.service-BBhH7KP1.mjs → acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs} +48 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-tMrUDnCb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-index-kF37zgd4.mjs → acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs} +391 -92
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-LxP1eZLY.mjs.map +1 -0
- 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-ppe-item-viewer-widget-column.component-D2Mmow12.mjs +42 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-column.component-D2Mmow12.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs +101 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer-widget-edit.component-CQtVhCgw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs +221 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.service-YS8FHiRu.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs +61 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-ppe-item-viewer.util-2Kl3_3sg.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-C2X3VpEt.mjs → acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs} +3 -7
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-Dd9xdo_y.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs +557 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-safety-plan-preview-modal.component-6i0RkG3L.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BJsg3pHZ.mjs → acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs} +13 -25
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BlPzzCc2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs +1 -460
- package/fesm2022/acorex-platform-module-workplacesafety-management-client.mjs.map +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-contracts.d.ts +89 -140
- 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-widget-view.component-C-qrrqOV.mjs +0 -203
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram-widget-view.component-C-qrrqOV.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-control-hierarchy-diagram.service-BBhH7KP1.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-ppe-rule-status.provider-DtqzcWh0.mjs +0 -42
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-hazard-risk-ppe-rule-status.provider-DtqzcWh0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-index-kF37zgd4.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-preview-control-hierarchy-diagram.command-C2X3VpEt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-workplacesafety-management-client-save-safety-plan-sections.command-BJsg3pHZ.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-register.entity-C9wGZ3hB.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-register/hazard-register.types.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-register/hazard-register.entity.ts"],"sourcesContent":["import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n//#endregion\n\n//#region ---- Enums ----\n\nexport enum AXMHazardRegisterContextType {\n Asset = 'asset',\n Site = 'site',\n WorkOrder = 'work-order',\n Project = 'project',\n}\n\n//#endregion\n\n//#region ---- Entity model ----\n\nexport interface AXMWorkplaceSafetyManagementHazardRegisterEntityModel extends AXPEntityModel<string> {\n /** Business code from identifier rule `hazard-register-code` (`HR-{date:YYYY}-{seq:4}`). */\n code: string;\n title: string;\n description?: string;\n /** Hazard category id (`WorkplaceSafetyManagement.HazardCategory`). */\n registerType: string;\n registerTypeCategory?: { id: string; title?: string; code?: string };\n hazardId: string;\n hazard?: { id: string; title?: string; code?: string };\n /** Merged hazard + category metadata field values keyed by field name. */\n metaDataForm?: Record<string, unknown>;\n contextType: AXMHazardRegisterContextType;\n contextId: string;\n}\n\n//#endregion\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\nimport { AXMHazardRegisterContextType } from './hazard-register.types';\n\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 hazardCategoryEntity = `${RootConfig.module.name}.${RootConfig.entities.hazard.name}Category`;\n\nconst contextTypeDataSource = [\n {\n id: AXMHazardRegisterContextType.Asset,\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.asset',\n },\n {\n id: AXMHazardRegisterContextType.Site,\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.site',\n },\n {\n id: AXMHazardRegisterContextType.Project,\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.options.project',\n },\n];\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function hazardRegisterEntityFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazardRegister.name,\n title: RootConfig.entities.hazardRegister.title,\n icon: RootConfig.entities.hazardRegister.icon,\n formats: {\n individual: RootConfig.entities.hazardRegister.title,\n plural: RootConfig.entities.hazardRegister.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-register-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'meta-data-form',\n options: {\n path: 'hazardId',\n mergeCategoryPath: 'registerType',\n title:\n '@workplacesafety-management:hazard-registers.entities.hazard-register.components.hazard-meta-data-form.title',\n display: {\n section: {\n order: 20,\n },\n },\n },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.basic-info',\n },\n {\n id: 'hazard-link',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.hazard-link',\n },\n {\n id: 'context',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.groups.context',\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:hazard-registers.entities.hazard-register.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:hazard-registers.entities.hazard-register.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.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:hazard-registers.entities.hazard-register.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\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:hazard-registers.entities.hazard-register.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'registerType',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.register-type.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: hazardCategoryEntity,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'registerTypeCategory.id' },\n { source: 'title', target: 'registerTypeCategory.title' },\n { source: 'code', target: 'registerTypeCategory.code' },\n ],\n },\n },\n },\n },\n {\n name: 'hazardId',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.hazard-id.title',\n groupId: 'hazard-link',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'hazard.id' },\n { source: 'title', target: 'hazard.title' },\n { source: 'code', target: 'hazard.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'contextType',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-type.title',\n groupId: 'context',\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: contextTypeDataSource,\n },\n },\n },\n },\n {\n name: 'contextId',\n title: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.title',\n groupId: 'context',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@workplacesafety-management:hazard-registers.entities.hazard-register.fields.context-id.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '200px', order: 2 } },\n { name: 'hazardId', options: { dataPath: 'hazard.title', order: 4 } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],\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: 4 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'hazard-link' }, { id: 'context' }],\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: 4 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'hazard-link', 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: 4 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\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":";;;;AACA;AACA;AAEA;AAEA,IAAY,4BAKX;AALD,CAAA,UAAY,4BAA4B,EAAA;AACtC,IAAA,4BAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,4BAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,4BAAA,CAAA,WAAA,CAAA,GAAA,YAAwB;AACxB,IAAA,4BAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EALW,4BAA4B,KAA5B,4BAA4B,GAAA,EAAA,CAAA,CAAA;AA2BxC;;AC1BA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/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AAC,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,339 @@
|
|
|
1
|
+
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';
|
|
2
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
3
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
4
|
+
|
|
5
|
+
/** Risk rating entity key in the risk-management module. */
|
|
6
|
+
const RISK_MANAGEMENT_RISK_RATING_ENTITY = 'RiskManagement.RiskRating';
|
|
7
|
+
/** Risk matrix cell entity key in the risk-management module. */
|
|
8
|
+
const RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY = 'RiskManagement.RiskMatrixCell';
|
|
9
|
+
/** Hazard catalog scope for risk matrix lookup filtering. */
|
|
10
|
+
const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';
|
|
11
|
+
|
|
12
|
+
//#region ---- Imports ----
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ---- Constants ----
|
|
15
|
+
const listSortAndFilterOptions = {
|
|
16
|
+
sort: { enabled: true },
|
|
17
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
18
|
+
};
|
|
19
|
+
const noteFieldOptions = {
|
|
20
|
+
sort: { enabled: false },
|
|
21
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
22
|
+
};
|
|
23
|
+
const RISK_MATRIX_PREVIEW_COMMAND = `${RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY}:Preview`;
|
|
24
|
+
const RISK_MATRIX_LOOKUP_OPTIONS = {
|
|
25
|
+
look: 'select',
|
|
26
|
+
entity: RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY,
|
|
27
|
+
textField: 'title',
|
|
28
|
+
valueField: 'id',
|
|
29
|
+
columns: ['code', 'title'],
|
|
30
|
+
filter: {
|
|
31
|
+
field: 'catalogScopeKeys',
|
|
32
|
+
operator: { type: 'contains' },
|
|
33
|
+
value: RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE,
|
|
34
|
+
},
|
|
35
|
+
expose: [
|
|
36
|
+
{ source: 'id', target: 'riskMatrix.id' },
|
|
37
|
+
{ source: 'title', target: 'riskMatrix.title' },
|
|
38
|
+
{ source: 'code', target: 'riskMatrix.code' },
|
|
39
|
+
],
|
|
40
|
+
};
|
|
41
|
+
const RISK_MATRIX_PREVIEW_BUTTON_OPTIONS = {
|
|
42
|
+
text: '',
|
|
43
|
+
color: 'primary',
|
|
44
|
+
look: 'solid',
|
|
45
|
+
icon: 'fa-light fa-eye',
|
|
46
|
+
disabled: '{{ !context.eval("riskMatrixId") }}',
|
|
47
|
+
command: {
|
|
48
|
+
name: RISK_MATRIX_PREVIEW_COMMAND,
|
|
49
|
+
options: {
|
|
50
|
+
riskMatrixCellId: '{{ context.eval("riskMatrixId") }}',
|
|
51
|
+
title: '{{ context.eval("riskMatrix.title") }}',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
const riskAssessmentPropertyLayout = (name) => {
|
|
56
|
+
const layouts = {
|
|
57
|
+
riskMatrixId: { order: 1, positions: { lg: { colSpan: 11, colStart: 1 } } },
|
|
58
|
+
riskMatrixPreview: {
|
|
59
|
+
order: 1,
|
|
60
|
+
positions: { lg: { colSpan: 1, colStart: 12 } },
|
|
61
|
+
},
|
|
62
|
+
defaultInitialRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 1 } } },
|
|
63
|
+
defaultResidualRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 7 } } },
|
|
64
|
+
};
|
|
65
|
+
return { name, layout: layouts[name] };
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ---- Entity factory ----
|
|
69
|
+
async function hazardRiskEntityFactory() {
|
|
70
|
+
const entityDef = {
|
|
71
|
+
module: RootConfig.module.name,
|
|
72
|
+
name: RootConfig.entities.hazardRisk.name,
|
|
73
|
+
title: RootConfig.entities.hazardRisk.title,
|
|
74
|
+
icon: RootConfig.entities.hazardRisk.icon,
|
|
75
|
+
formats: {
|
|
76
|
+
individual: RootConfig.entities.hazardRisk.title,
|
|
77
|
+
plural: RootConfig.entities.hazardRisk.titlePlural,
|
|
78
|
+
searchResult: {
|
|
79
|
+
title: '{{ title }}',
|
|
80
|
+
description: '{{ code }}',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
plugins: [
|
|
84
|
+
{ name: 'identifier', options: { field: 'code', rule: 'hazard-risk-code' } },
|
|
85
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
86
|
+
{
|
|
87
|
+
name: 'status',
|
|
88
|
+
options: {
|
|
89
|
+
field: 'status',
|
|
90
|
+
definition: 'workplacesafety-management.status.hazard-risk',
|
|
91
|
+
order: 1,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
groups: [
|
|
96
|
+
{
|
|
97
|
+
id: 'basic-info',
|
|
98
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.basic-info',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'risk-assessment',
|
|
102
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.risk-assessment',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
properties: [
|
|
106
|
+
{
|
|
107
|
+
name: 'id',
|
|
108
|
+
title: '@general:terms.common.id',
|
|
109
|
+
groupId: 'basic-info',
|
|
110
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'code',
|
|
114
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.code.title',
|
|
115
|
+
groupId: 'basic-info',
|
|
116
|
+
options: listSortAndFilterOptions,
|
|
117
|
+
schema: {
|
|
118
|
+
dataType: 'string',
|
|
119
|
+
unique: { enabled: true },
|
|
120
|
+
interface: {
|
|
121
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
122
|
+
options: {
|
|
123
|
+
disabled: true,
|
|
124
|
+
placeholder: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.code.placeholder',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
validations: [{ rule: 'required' }],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'title',
|
|
132
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.title.title',
|
|
133
|
+
groupId: 'basic-info',
|
|
134
|
+
options: listSortAndFilterOptions,
|
|
135
|
+
schema: {
|
|
136
|
+
dataType: 'string',
|
|
137
|
+
interface: {
|
|
138
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
139
|
+
options: {
|
|
140
|
+
placeholder: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.title.placeholder',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
validations: [{ rule: 'required' }],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'description',
|
|
148
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.title',
|
|
149
|
+
groupId: 'basic-info',
|
|
150
|
+
options: noteFieldOptions,
|
|
151
|
+
schema: {
|
|
152
|
+
dataType: 'string',
|
|
153
|
+
nullable: true,
|
|
154
|
+
interface: {
|
|
155
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
156
|
+
options: {
|
|
157
|
+
rows: 2,
|
|
158
|
+
placeholder: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.placeholder',
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'hazardId',
|
|
165
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.hazard-id.title',
|
|
166
|
+
groupId: 'basic-info',
|
|
167
|
+
options: listSortAndFilterOptions,
|
|
168
|
+
schema: {
|
|
169
|
+
dataType: 'string',
|
|
170
|
+
interface: {
|
|
171
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
172
|
+
options: {
|
|
173
|
+
look: 'select',
|
|
174
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,
|
|
175
|
+
textField: 'title',
|
|
176
|
+
valueField: 'id',
|
|
177
|
+
columns: ['code', 'title'],
|
|
178
|
+
expose: [
|
|
179
|
+
{ source: 'id', target: 'hazard.id' },
|
|
180
|
+
{ source: 'title', target: 'hazard.title' },
|
|
181
|
+
{ source: 'code', target: 'hazard.code' },
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
validations: [{ rule: 'required' }],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'riskMatrixId',
|
|
190
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.risk-matrix-id.title',
|
|
191
|
+
groupId: 'risk-assessment',
|
|
192
|
+
options: listSortAndFilterOptions,
|
|
193
|
+
schema: {
|
|
194
|
+
dataType: 'string',
|
|
195
|
+
interface: {
|
|
196
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
197
|
+
options: RISK_MATRIX_LOOKUP_OPTIONS,
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
//validations: [{ rule: 'required' }],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'riskMatrixPreview',
|
|
204
|
+
title: '\u00a0',
|
|
205
|
+
groupId: 'risk-assessment',
|
|
206
|
+
schema: {
|
|
207
|
+
dataType: 'string',
|
|
208
|
+
nullable: true,
|
|
209
|
+
interface: {
|
|
210
|
+
type: AXPWidgetsList.Actions.ActionButton,
|
|
211
|
+
mode: 'edit',
|
|
212
|
+
options: RISK_MATRIX_PREVIEW_BUTTON_OPTIONS,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'defaultInitialRiskRatingId',
|
|
218
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-initial-risk-rating-id.title',
|
|
219
|
+
groupId: 'risk-assessment',
|
|
220
|
+
options: listSortAndFilterOptions,
|
|
221
|
+
schema: {
|
|
222
|
+
dataType: 'string',
|
|
223
|
+
nullable: true,
|
|
224
|
+
interface: {
|
|
225
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
226
|
+
options: {
|
|
227
|
+
look: 'select',
|
|
228
|
+
entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,
|
|
229
|
+
textField: 'title',
|
|
230
|
+
valueField: 'id',
|
|
231
|
+
columns: ['code', 'title'],
|
|
232
|
+
expose: [
|
|
233
|
+
{ source: 'id', target: 'defaultInitialRiskRating.id' },
|
|
234
|
+
{ source: 'title', target: 'defaultInitialRiskRating.title' },
|
|
235
|
+
{ source: 'code', target: 'defaultInitialRiskRating.code' },
|
|
236
|
+
],
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: 'defaultResidualRiskRatingId',
|
|
243
|
+
title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-residual-risk-rating-id.title',
|
|
244
|
+
groupId: 'risk-assessment',
|
|
245
|
+
options: listSortAndFilterOptions,
|
|
246
|
+
schema: {
|
|
247
|
+
dataType: 'string',
|
|
248
|
+
nullable: true,
|
|
249
|
+
interface: {
|
|
250
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
251
|
+
options: {
|
|
252
|
+
look: 'select',
|
|
253
|
+
entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,
|
|
254
|
+
textField: 'title',
|
|
255
|
+
valueField: 'id',
|
|
256
|
+
columns: ['code', 'title'],
|
|
257
|
+
expose: [
|
|
258
|
+
{ source: 'id', target: 'defaultResidualRiskRating.id' },
|
|
259
|
+
{ source: 'title', target: 'defaultResidualRiskRating.title' },
|
|
260
|
+
{ source: 'code', target: 'defaultResidualRiskRating.code' },
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
columns: [
|
|
268
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
269
|
+
{ name: 'title', options: { order: 2 } },
|
|
270
|
+
{ name: 'hazardId', options: { dataPath: 'hazard.title', order: 3 } },
|
|
271
|
+
{ name: 'riskMatrixId', options: { dataPath: 'riskMatrix.title', order: 4 } },
|
|
272
|
+
{ name: 'defaultInitialRiskRatingId', options: { dataPath: 'defaultInitialRiskRating.title', order: 5 } },
|
|
273
|
+
{ name: 'defaultResidualRiskRatingId', options: { dataPath: 'defaultResidualRiskRating.title', order: 6 } },
|
|
274
|
+
],
|
|
275
|
+
interfaces: {
|
|
276
|
+
master: {
|
|
277
|
+
create: {
|
|
278
|
+
sections: [
|
|
279
|
+
{ id: 'basic-info' },
|
|
280
|
+
{ id: 'risk-assessment' },
|
|
281
|
+
],
|
|
282
|
+
properties: [
|
|
283
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
284
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
285
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
286
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
287
|
+
riskAssessmentPropertyLayout('riskMatrixId'),
|
|
288
|
+
riskAssessmentPropertyLayout('riskMatrixPreview'),
|
|
289
|
+
riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
|
|
290
|
+
riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
update: {
|
|
294
|
+
sections: [
|
|
295
|
+
{ id: 'basic-info' },
|
|
296
|
+
{ id: 'risk-assessment' },
|
|
297
|
+
],
|
|
298
|
+
properties: [
|
|
299
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
300
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
301
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
302
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
303
|
+
riskAssessmentPropertyLayout('riskMatrixId'),
|
|
304
|
+
riskAssessmentPropertyLayout('riskMatrixPreview'),
|
|
305
|
+
riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
|
|
306
|
+
riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
single: {
|
|
310
|
+
title: '{{ title }}',
|
|
311
|
+
sections: [
|
|
312
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
313
|
+
{ id: 'risk-assessment', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
314
|
+
],
|
|
315
|
+
properties: [
|
|
316
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
317
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
318
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
319
|
+
{ name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
320
|
+
riskAssessmentPropertyLayout('riskMatrixId'),
|
|
321
|
+
riskAssessmentPropertyLayout('riskMatrixPreview'),
|
|
322
|
+
riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),
|
|
323
|
+
riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),
|
|
324
|
+
],
|
|
325
|
+
actions: [...entityMasterRecordActions()],
|
|
326
|
+
},
|
|
327
|
+
list: {
|
|
328
|
+
actions: [...entityMasterCrudActions()],
|
|
329
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
return entityDef;
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
|
|
338
|
+
export { hazardRiskEntityFactory };
|
|
339
|
+
//# sourceMappingURL=acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workplacesafety-management-client-contracts-entity-catalog-hazard-risk.entity-AUr2GVLU.mjs","sources":["../../../../libs/modules/workplacesafety-management/contracts/src/risk-management.integration.ts","../../../../libs/modules/workplacesafety-management/contracts/src/entities/hazard-risk/hazard-risk.entity.ts"],"sourcesContent":["/** Risk rating entity key in the risk-management module. */\nexport const RISK_MANAGEMENT_RISK_RATING_ENTITY = 'RiskManagement.RiskRating';\n\n/** Risk matrix cell entity key in the risk-management module. */\nexport const RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY = 'RiskManagement.RiskMatrixCell';\n\n/** Hazard catalog scope for risk matrix lookup filtering. */\nexport const RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE = 'risk-management.hazard';\n","//#region ---- Imports ----\n\nimport { RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE, RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY, RISK_MANAGEMENT_RISK_RATING_ENTITY } from '../../risk-management.integration';\nimport { RootConfig } from '../../root-config';\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\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 noteFieldOptions = {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n};\n\nconst RISK_MATRIX_PREVIEW_COMMAND = `${RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY}:Preview`;\n\nconst RISK_MATRIX_LOOKUP_OPTIONS = {\n look: 'select' as const,\n entity: RISK_MANAGEMENT_RISK_MATRIX_CELL_ENTITY,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n filter: {\n field: 'catalogScopeKeys',\n operator: { type: 'contains' },\n value: RISK_MANAGEMENT_HAZARD_CATALOG_SCOPE,\n },\n expose: [\n { source: 'id', target: 'riskMatrix.id' },\n { source: 'title', target: 'riskMatrix.title' },\n { source: 'code', target: 'riskMatrix.code' },\n ],\n};\n\nconst RISK_MATRIX_PREVIEW_BUTTON_OPTIONS = {\n text: '',\n color: 'primary',\n look: 'solid',\n icon: 'fa-light fa-eye',\n disabled: '{{ !context.eval(\"riskMatrixId\") }}',\n command: {\n name: RISK_MATRIX_PREVIEW_COMMAND,\n options: {\n riskMatrixCellId: '{{ context.eval(\"riskMatrixId\") }}',\n title: '{{ context.eval(\"riskMatrix.title\") }}',\n },\n },\n};\n\nconst riskAssessmentPropertyLayout = (\n name: 'riskMatrixId' | 'riskMatrixPreview' | 'defaultInitialRiskRatingId' | 'defaultResidualRiskRatingId',\n) => {\n const layouts = {\n riskMatrixId: { order: 1, positions: { lg: { colSpan: 11, colStart: 1 } } },\n riskMatrixPreview: {\n order: 1,\n positions: { lg: { colSpan: 1, colStart: 12 } },\n },\n defaultInitialRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 1 } } },\n defaultResidualRiskRatingId: { order: 2, positions: { lg: { colSpan: 6, colStart: 7 } } },\n } as const;\n return { name, layout: layouts[name] };\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function hazardRiskEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.hazardRisk.name,\n title: RootConfig.entities.hazardRisk.title,\n icon: RootConfig.entities.hazardRisk.icon,\n formats: {\n individual: RootConfig.entities.hazardRisk.title,\n plural: RootConfig.entities.hazardRisk.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'hazard-risk-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'status',\n options: {\n field: 'status',\n definition: 'workplacesafety-management.status.hazard-risk',\n order: 1,\n },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.basic-info',\n },\n {\n id: 'risk-assessment',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.groups.risk-assessment',\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:hazard-risks.entities.hazard-risk.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:hazard-risks.entities.hazard-risk.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.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:hazard-risks.entities.hazard-risk.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.title',\n groupId: 'basic-info',\n options: noteFieldOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 2,\n placeholder:\n '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'hazardId',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.hazard-id.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.hazard.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'hazard.id' },\n { source: 'title', target: 'hazard.title' },\n { source: 'code', target: 'hazard.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'riskMatrixId',\n title: '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.risk-matrix-id.title',\n groupId: 'risk-assessment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: RISK_MATRIX_LOOKUP_OPTIONS,\n },\n },\n //validations: [{ rule: 'required' }],\n },\n {\n name: 'riskMatrixPreview',\n title: '\\u00a0',\n groupId: 'risk-assessment',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Actions.ActionButton,\n mode: 'edit',\n options: RISK_MATRIX_PREVIEW_BUTTON_OPTIONS,\n },\n },\n },\n {\n name: 'defaultInitialRiskRatingId',\n title:\n '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-initial-risk-rating-id.title',\n groupId: 'risk-assessment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'defaultInitialRiskRating.id' },\n { source: 'title', target: 'defaultInitialRiskRating.title' },\n { source: 'code', target: 'defaultInitialRiskRating.code' },\n ],\n },\n },\n },\n },\n {\n name: 'defaultResidualRiskRatingId',\n title:\n '@workplacesafety-management:hazard-risks.entities.hazard-risk.fields.default-residual-risk-rating-id.title',\n groupId: 'risk-assessment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: RISK_MANAGEMENT_RISK_RATING_ENTITY,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'defaultResidualRiskRating.id' },\n { source: 'title', target: 'defaultResidualRiskRating.title' },\n { source: 'code', target: 'defaultResidualRiskRating.code' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { order: 2 } },\n { name: 'hazardId', options: { dataPath: 'hazard.title', order: 3 } },\n { name: 'riskMatrixId', options: { dataPath: 'riskMatrix.title', order: 4 } },\n { name: 'defaultInitialRiskRatingId', options: { dataPath: 'defaultInitialRiskRating.title', order: 5 } },\n { name: 'defaultResidualRiskRatingId', options: { dataPath: 'defaultResidualRiskRating.title', order: 6 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info' },\n { id: 'risk-assessment' },\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: 3 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n riskAssessmentPropertyLayout('riskMatrixId'),\n riskAssessmentPropertyLayout('riskMatrixPreview'),\n riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),\n riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),\n ],\n },\n update: {\n sections: [\n { id: 'basic-info' },\n { id: 'risk-assessment' },\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: 3 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n riskAssessmentPropertyLayout('riskMatrixId'),\n riskAssessmentPropertyLayout('riskMatrixPreview'),\n riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),\n riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'risk-assessment', 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: 3 } } } },\n { name: 'hazardId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n riskAssessmentPropertyLayout('riskMatrixId'),\n riskAssessmentPropertyLayout('riskMatrixPreview'),\n riskAssessmentPropertyLayout('defaultInitialRiskRatingId'),\n riskAssessmentPropertyLayout('defaultResidualRiskRatingId'),\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;\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