@cuby-ui/core 0.0.448 → 0.0.451
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/components/index.d.ts +0 -1
- package/esm2022/components/index.mjs +1 -2
- package/esm2022/index.mjs +2 -1
- package/esm2022/widgets/assets/constants/index.mjs +2 -0
- package/esm2022/widgets/assets/constants/translations.mjs +5 -0
- package/esm2022/widgets/assets/i18n/en.json +45 -0
- package/esm2022/widgets/assets/i18n/ru.json +45 -0
- package/esm2022/widgets/assets/index.mjs +2 -0
- package/esm2022/widgets/index.mjs +5 -0
- package/esm2022/widgets/model/index.mjs +10 -0
- package/esm2022/widgets/model/resource-state-service.interface.mjs +2 -0
- package/esm2022/widgets/model/resource-state-service.token.mjs +3 -0
- package/esm2022/widgets/model/resources-block.options.mjs +2 -0
- package/esm2022/widgets/model/subject-modal-service.interface.mjs +2 -0
- package/esm2022/widgets/model/subject-modal-service.token.mjs +3 -0
- package/esm2022/widgets/model/used-elements-service.interface.mjs +2 -0
- package/esm2022/widgets/model/used-elements-service.token.mjs +3 -0
- package/esm2022/widgets/model/utility-service.interface.mjs +2 -0
- package/esm2022/widgets/model/utility-service.token.mjs +3 -0
- package/esm2022/widgets/service/index.mjs +5 -0
- package/esm2022/widgets/service/resource-state-base.service.mjs +19 -0
- package/esm2022/widgets/service/subject-modal-base.service.mjs +15 -0
- package/esm2022/widgets/service/used-elements-base.service.mjs +17 -0
- package/esm2022/widgets/service/utility-base.service.mjs +129 -0
- package/esm2022/widgets/ui/assignee-role-item/assignee-role-item.component.mjs +31 -0
- package/esm2022/widgets/ui/assignee-role-item/index.mjs +2 -0
- package/esm2022/widgets/ui/assignee-roles-tabs/assignee-roles-tabs.component.mjs +48 -0
- package/esm2022/widgets/ui/assignee-roles-tabs/index.mjs +2 -0
- package/esm2022/widgets/ui/categories/categories.component.mjs +78 -0
- package/esm2022/widgets/ui/categories/components/categories-list/categories-list.component.mjs +17 -0
- package/esm2022/widgets/ui/categories/components/categories-list/index.mjs +2 -0
- package/esm2022/widgets/ui/categories/components/category-form/category-form.component.mjs +79 -0
- package/esm2022/widgets/ui/categories/components/category-form/index.mjs +2 -0
- package/esm2022/widgets/ui/categories/components/category-item/category-item.component.mjs +126 -0
- package/esm2022/widgets/ui/categories/components/category-item/index.mjs +2 -0
- package/esm2022/widgets/ui/categories/components/create-category-item/create-category-item.component.mjs +25 -0
- package/esm2022/widgets/ui/categories/components/create-category-item/index.mjs +2 -0
- package/esm2022/widgets/ui/categories/components/index.mjs +3 -0
- package/esm2022/widgets/ui/categories/index.mjs +3 -0
- package/esm2022/widgets/ui/categories/services/index.mjs +2 -0
- package/esm2022/widgets/ui/categories/services/selected-category.service.mjs +38 -0
- package/esm2022/widgets/ui/checklist-block/checklist-block.component.mjs +75 -0
- package/esm2022/widgets/ui/checklist-block/checklist-block.options.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list/checklist-block-list.component.mjs +85 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/checklist-block-list-item-action-card.component.mjs +133 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/checklist-block-list-item-action-with-verification.component.mjs +45 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/checklist-block-list-item-action-without-verification.component.mjs +35 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.mjs +152 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.options.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.component.mjs +282 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.options.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.component.mjs +117 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.options.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-title-control/checklist-block-title-control.component.mjs +39 -0
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-title-control/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/components/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/index.mjs +2 -0
- package/esm2022/widgets/ui/checklist-block/services/checklist-block.service.mjs +50 -0
- package/esm2022/widgets/ui/checklist-block/services/index.mjs +2 -0
- package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/consumable-form-item.component.mjs +78 -0
- package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/default-control-delay.mjs +2 -0
- package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/index.mjs +3 -0
- package/esm2022/widgets/ui/consumable-form/components/consumable-form-item-readonly/consumable-form-item-readonly.component.mjs +17 -0
- package/esm2022/widgets/ui/consumable-form/components/consumable-form-item-readonly/index.mjs +2 -0
- package/esm2022/widgets/ui/consumable-form/components/index.mjs +4 -0
- package/esm2022/widgets/ui/consumable-form/consumable-form.component.mjs +184 -0
- package/esm2022/widgets/ui/consumable-form/consumable-form.options.mjs +2 -0
- package/esm2022/widgets/ui/consumable-form/index.mjs +2 -0
- package/esm2022/widgets/ui/criterion-info/criterion-info.component.mjs +137 -0
- package/esm2022/widgets/ui/criterion-info/index.mjs +2 -0
- package/esm2022/widgets/ui/criterion-info-form/criterion-info-form.component.mjs +147 -0
- package/esm2022/widgets/ui/criterion-info-form/criterion-info-form.options.mjs +2 -0
- package/esm2022/widgets/ui/criterion-info-form/index.mjs +2 -0
- package/esm2022/widgets/ui/criterion-readonly-info/criterion-readonly-info.component.mjs +72 -0
- package/esm2022/widgets/ui/criterion-readonly-info/index.mjs +2 -0
- package/esm2022/widgets/ui/delete-modal/delete-modal.component.mjs +39 -0
- package/esm2022/widgets/ui/delete-modal/delete-modal.options.mjs +2 -0
- package/esm2022/widgets/ui/delete-modal/index.mjs +2 -0
- package/esm2022/widgets/ui/framer-preview/framer-preview.component.mjs +77 -0
- package/esm2022/widgets/ui/framer-preview/framer-preview.options.mjs +2 -0
- package/esm2022/widgets/ui/framer-preview/index.mjs +2 -0
- package/esm2022/widgets/ui/general-control-error-hint/general-control-error-hint.component.mjs +21 -0
- package/esm2022/widgets/ui/general-control-error-hint/index.mjs +2 -0
- package/esm2022/widgets/ui/index.mjs +25 -0
- package/esm2022/widgets/ui/inserted/index.mjs +2 -2
- package/esm2022/widgets/ui/instruction-info/index.mjs +2 -0
- package/esm2022/widgets/ui/instruction-info/instruction-info.component.mjs +147 -0
- package/esm2022/widgets/ui/instruction-info-form/index.mjs +2 -0
- package/esm2022/widgets/ui/instruction-info-form/instruction-info-form.component.mjs +153 -0
- package/esm2022/widgets/ui/instruction-info-form/instruction-info-form.options.mjs +2 -0
- package/esm2022/widgets/ui/instruction-readonly-info/index.mjs +2 -0
- package/esm2022/widgets/ui/instruction-readonly-info/instruction-readonly-info.component.mjs +72 -0
- package/esm2022/widgets/ui/loader/index.mjs +2 -0
- package/esm2022/widgets/ui/loader/loader.component.mjs +36 -0
- package/esm2022/widgets/ui/modal-criteria-tab/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-criteria-tab/modal-criteria-tab.component.mjs +45 -0
- package/esm2022/widgets/ui/modal-divided-section/index.mjs +3 -0
- package/esm2022/widgets/ui/modal-divided-section/modal-divided-section.component.mjs +55 -0
- package/esm2022/widgets/ui/modal-divided-section/modal-divided-section.interfaces.mjs +2 -0
- package/esm2022/widgets/ui/modal-header/modal-header.component.mjs +2 -2
- package/esm2022/widgets/ui/modal-header-inserted-buttons/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-header-inserted-buttons/modal-header-inserted-buttons.component.mjs +22 -0
- package/esm2022/widgets/ui/modal-header-tabs/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-header-tabs/modal-header-tabs.component.mjs +19 -0
- package/esm2022/widgets/ui/modal-info-tab/index.mjs +3 -0
- package/esm2022/widgets/ui/modal-info-tab/modal-info-tab.component.mjs +19 -0
- package/esm2022/widgets/ui/modal-info-tab/modal-info-tab.options.mjs +2 -0
- package/esm2022/widgets/ui/modal-instructions-tab/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-instructions-tab/modal-instructions-tab.component.mjs +31 -0
- package/esm2022/widgets/ui/modal-operation-part/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-operation-part/modal-operation-part.component.mjs +114 -0
- package/esm2022/widgets/ui/modal-resources-tab/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-resources-tab/modal-resources-tab.component.mjs +33 -0
- package/esm2022/widgets/ui/render-dynamic-modal/index.mjs +3 -0
- package/esm2022/widgets/ui/render-dynamic-modal/render-dynamic-modal.component.mjs +29 -0
- package/esm2022/widgets/ui/render-dynamic-modal/render-dynamic-modal.option.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/index.mjs +4 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-consumables/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.component.mjs +53 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.options.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-content/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-content/resources-block-content.component.mjs +38 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-part/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-part/resources-block-part.component.mjs +57 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-part/resources-block-part.options.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-tabs/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.component.mjs +56 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.options.mjs +10 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-toolbox/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.component.mjs +56 -0
- package/esm2022/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.options.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-options/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block/components/resources-options/resources-options.component.mjs +42 -0
- package/esm2022/widgets/ui/resources-block/index.mjs +3 -0
- package/esm2022/widgets/ui/resources-block/resources-block.component.mjs +137 -0
- package/esm2022/widgets/ui/resources-block-tabs/index.mjs +2 -0
- package/esm2022/widgets/ui/resources-block-tabs/resources-block-tabs.component.mjs +57 -0
- package/esm2022/widgets/ui/resources-block-tabs/resources-block-tabs.options.mjs +10 -0
- package/esm2022/widgets/ui/select-modal/components/index.mjs +3 -0
- package/esm2022/widgets/ui/select-modal/components/select-modal-folder/index.mjs +2 -0
- package/esm2022/widgets/ui/select-modal/components/select-modal-folder/select-modal-folder.component.mjs +21 -0
- package/esm2022/widgets/ui/select-modal/components/select-modal-search/index.mjs +2 -0
- package/esm2022/widgets/ui/select-modal/components/select-modal-search/select-modal-search.component.mjs +32 -0
- package/esm2022/widgets/ui/select-modal/index.mjs +4 -0
- package/esm2022/widgets/ui/select-modal/select-modal.component.mjs +35 -0
- package/esm2022/widgets/ui/select-modal/select-modal.interfaces.mjs +2 -0
- package/esm2022/widgets/ui/select-modal/select-modal.service.mjs +23 -0
- package/esm2022/widgets/ui/storage-list/components/index.mjs +2 -0
- package/esm2022/widgets/ui/storage-list/components/storage-list-item/index.mjs +2 -0
- package/esm2022/widgets/ui/storage-list/components/storage-list-item/storage-list-item.component.mjs +87 -0
- package/esm2022/widgets/ui/storage-list/index.mjs +3 -0
- package/esm2022/widgets/ui/storage-list/storage-list.component.mjs +17 -0
- package/esm2022/widgets/ui/storage-list/storage-list.options.mjs +3 -0
- package/esm2022/widgets/ui/toolbox-form/components/index.mjs +2 -0
- package/esm2022/widgets/ui/toolbox-form/components/tool-form-readonly/index.mjs +2 -0
- package/esm2022/widgets/ui/toolbox-form/components/tool-form-readonly/tool-form-readonly.component.mjs +19 -0
- package/esm2022/widgets/ui/toolbox-form/index.mjs +3 -0
- package/esm2022/widgets/ui/toolbox-form/tool-form.component.mjs +106 -0
- package/esm2022/widgets/ui/toolbox-form/tool-form.options.mjs +2 -0
- package/esm2022/widgets/ui/user-action-context-menu/activity-item/activity-item.component.mjs +61 -0
- package/esm2022/widgets/ui/user-action-context-menu/activity-item/index.mjs +2 -0
- package/esm2022/widgets/ui/user-action-context-menu/company-item/company-item.component.mjs +68 -0
- package/esm2022/widgets/ui/user-action-context-menu/company-item/index.mjs +2 -0
- package/esm2022/widgets/ui/user-action-context-menu/index.mjs +4 -0
- package/esm2022/widgets/ui/user-action-context-menu/services/activity-base.service.mjs +32 -0
- package/esm2022/widgets/ui/user-action-context-menu/services/activity.service.mjs +35 -0
- package/esm2022/widgets/ui/user-action-context-menu/services/index.mjs +3 -0
- package/esm2022/widgets/ui/user-action-context-menu/user-action-context-menu.component.mjs +83 -0
- package/esm2022/widgets/ui/user-action-context-menu/user-action-context.option.mjs +3 -0
- package/esm2022/widgets/ui/utility-info-readonly/index.mjs +3 -0
- package/esm2022/widgets/ui/utility-info-readonly/utility-info-readonly.component.mjs +85 -0
- package/esm2022/widgets/ui/utility-info-readonly/utility-info-readonly.options.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/criterion-modal-create/criterion-modal-create.component.mjs +41 -0
- package/esm2022/widgets/ui/utility-modal/components/criterion-modal-create/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/index.mjs +5 -0
- package/esm2022/widgets/ui/utility-modal/components/instruction-modal-create/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/instruction-modal-create/instruction-modal-create.component.mjs +41 -0
- package/esm2022/widgets/ui/utility-modal/components/readonly-criterion-modal/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/readonly-criterion-modal/readonly-criterion-modal.component.mjs +40 -0
- package/esm2022/widgets/ui/utility-modal/components/readonly-instruction-modal/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/readonly-instruction-modal/readonly-instruction-modal.component.mjs +40 -0
- package/esm2022/widgets/ui/utility-modal/components/readonly-utility-modal/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/readonly-utility-modal/readonly-utility-modal.component.mjs +43 -0
- package/esm2022/widgets/ui/utility-modal/components/utility-modal-create/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-modal/components/utility-modal-create/utility-modal-create.component.mjs +55 -0
- package/esm2022/widgets/ui/utility-modal/index.mjs +4 -0
- package/esm2022/widgets/ui/utility-modal/utility-modal.component.mjs +22 -0
- package/esm2022/widgets/ui/utility-modal/utility-modal.options.mjs +3 -0
- package/esm2022/widgets/ui/utility-readonly-thumbnail/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-readonly-thumbnail/utility-readonly-thumbnail.component.mjs +15 -0
- package/esm2022/widgets/ui/utility-thumbnail/index.mjs +2 -0
- package/esm2022/widgets/ui/utility-thumbnail/utility-thumbnail.component.mjs +95 -0
- package/fesm2022/cuby-ui-core-en-BvvbrGg1.mjs +91 -0
- package/fesm2022/cuby-ui-core-en-BvvbrGg1.mjs.map +1 -0
- package/fesm2022/cuby-ui-core-ru-bROcEQBf.mjs +91 -0
- package/fesm2022/cuby-ui-core-ru-bROcEQBf.mjs.map +1 -0
- package/fesm2022/cuby-ui-core.mjs +4178 -18
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +4 -4
- package/widgets/assets/constants/index.d.ts +1 -0
- package/widgets/assets/constants/translations.d.ts +2 -0
- package/widgets/assets/index.d.ts +1 -0
- package/widgets/index.d.ts +4 -0
- package/widgets/model/index.d.ts +9 -0
- package/widgets/model/resource-state-service.interface.d.ts +4 -0
- package/widgets/model/resource-state-service.token.d.ts +3 -0
- package/widgets/model/resources-block.options.d.ts +15 -0
- package/widgets/model/subject-modal-service.interface.d.ts +7 -0
- package/widgets/model/subject-modal-service.token.d.ts +3 -0
- package/widgets/model/used-elements-service.interface.d.ts +5 -0
- package/widgets/model/used-elements-service.token.d.ts +3 -0
- package/widgets/model/utility-service.interface.d.ts +23 -0
- package/widgets/model/utility-service.token.d.ts +3 -0
- package/widgets/service/index.d.ts +4 -0
- package/widgets/service/resource-state-base.service.d.ts +10 -0
- package/widgets/service/subject-modal-base.service.d.ts +11 -0
- package/widgets/service/used-elements-base.service.d.ts +11 -0
- package/widgets/service/utility-base.service.d.ts +29 -0
- package/widgets/ui/assignee-role-item/assignee-role-item.component.d.ts +12 -0
- package/widgets/ui/assignee-role-item/index.d.ts +1 -0
- package/widgets/ui/assignee-roles-tabs/assignee-roles-tabs.component.d.ts +18 -0
- package/widgets/ui/assignee-roles-tabs/index.d.ts +1 -0
- package/widgets/ui/categories/categories.component.d.ts +25 -0
- package/widgets/ui/categories/components/categories-list/categories-list.component.d.ts +8 -0
- package/widgets/ui/categories/components/categories-list/index.d.ts +1 -0
- package/widgets/ui/categories/components/category-form/category-form.component.d.ts +28 -0
- package/widgets/ui/categories/components/category-form/index.d.ts +1 -0
- package/widgets/ui/categories/components/category-item/category-item.component.d.ts +42 -0
- package/widgets/ui/categories/components/category-item/index.d.ts +1 -0
- package/widgets/ui/categories/components/create-category-item/create-category-item.component.d.ts +10 -0
- package/widgets/ui/categories/components/create-category-item/index.d.ts +1 -0
- package/widgets/ui/categories/components/index.d.ts +2 -0
- package/widgets/ui/categories/index.d.ts +2 -0
- package/widgets/ui/categories/services/index.d.ts +1 -0
- package/widgets/ui/categories/services/selected-category.service.d.ts +18 -0
- package/widgets/ui/checklist-block/checklist-block.component.d.ts +21 -0
- package/widgets/ui/checklist-block/checklist-block.options.d.ts +12 -0
- package/widgets/ui/checklist-block/components/checklist-block-list/checklist-block-list.component.d.ts +27 -0
- package/widgets/ui/checklist-block/components/checklist-block-list/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/checklist-block-list-item-action-card.component.d.ts +30 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/checklist-block-list-item-action-with-verification.component.d.ts +11 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/checklist-block-list-item-action-without-verification.component.d.ts +10 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.d.ts +41 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.options.d.ts +5 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-container/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.component.d.ts +51 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.options.d.ts +14 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/index.d.ts +2 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.component.d.ts +33 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.options.d.ts +4 -0
- package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/checklist-block-title-control/checklist-block-title-control.component.d.ts +8 -0
- package/widgets/ui/checklist-block/components/checklist-block-title-control/index.d.ts +1 -0
- package/widgets/ui/checklist-block/components/index.d.ts +1 -0
- package/widgets/ui/checklist-block/index.d.ts +1 -0
- package/widgets/ui/checklist-block/services/checklist-block.service.d.ts +19 -0
- package/widgets/ui/checklist-block/services/index.d.ts +1 -0
- package/widgets/ui/consumable-form/components/consumable-form-item/consumable-form-item.component.d.ts +31 -0
- package/widgets/ui/consumable-form/components/consumable-form-item/default-control-delay.d.ts +1 -0
- package/widgets/ui/consumable-form/components/consumable-form-item/index.d.ts +2 -0
- package/widgets/ui/consumable-form/components/consumable-form-item-readonly/consumable-form-item-readonly.component.d.ts +8 -0
- package/widgets/ui/consumable-form/components/consumable-form-item-readonly/index.d.ts +1 -0
- package/widgets/ui/consumable-form/components/index.d.ts +3 -0
- package/widgets/ui/consumable-form/consumable-form.component.d.ts +46 -0
- package/widgets/ui/consumable-form/consumable-form.options.d.ts +22 -0
- package/widgets/ui/consumable-form/index.d.ts +1 -0
- package/widgets/ui/criterion-info/criterion-info.component.d.ts +43 -0
- package/widgets/ui/criterion-info/index.d.ts +1 -0
- package/widgets/ui/criterion-info-form/criterion-info-form.component.d.ts +39 -0
- package/widgets/ui/criterion-info-form/criterion-info-form.options.d.ts +7 -0
- package/widgets/ui/criterion-info-form/index.d.ts +2 -0
- package/widgets/ui/criterion-readonly-info/criterion-readonly-info.component.d.ts +26 -0
- package/widgets/ui/criterion-readonly-info/index.d.ts +1 -0
- package/widgets/ui/delete-modal/delete-modal.component.d.ts +13 -0
- package/widgets/ui/delete-modal/delete-modal.options.d.ts +7 -0
- package/widgets/ui/delete-modal/index.d.ts +2 -0
- package/widgets/ui/framer-preview/framer-preview.component.d.ts +26 -0
- package/widgets/ui/framer-preview/framer-preview.options.d.ts +5 -0
- package/widgets/ui/framer-preview/index.d.ts +2 -0
- package/widgets/ui/general-control-error-hint/general-control-error-hint.component.d.ts +9 -0
- package/widgets/ui/general-control-error-hint/index.d.ts +1 -0
- package/widgets/ui/index.d.ts +24 -0
- package/widgets/ui/inserted/index.d.ts +1 -1
- package/widgets/ui/instruction-info/index.d.ts +1 -0
- package/widgets/ui/instruction-info/instruction-info.component.d.ts +45 -0
- package/widgets/ui/instruction-info-form/index.d.ts +2 -0
- package/widgets/ui/instruction-info-form/instruction-info-form.component.d.ts +43 -0
- package/widgets/ui/instruction-info-form/instruction-info-form.options.d.ts +9 -0
- package/widgets/ui/instruction-readonly-info/index.d.ts +1 -0
- package/widgets/ui/instruction-readonly-info/instruction-readonly-info.component.d.ts +26 -0
- package/widgets/ui/loader/index.d.ts +1 -0
- package/widgets/ui/loader/loader.component.d.ts +20 -0
- package/widgets/ui/modal-criteria-tab/index.d.ts +1 -0
- package/widgets/ui/modal-criteria-tab/modal-criteria-tab.component.d.ts +15 -0
- package/widgets/ui/modal-divided-section/index.d.ts +2 -0
- package/widgets/ui/modal-divided-section/modal-divided-section.component.d.ts +22 -0
- package/widgets/ui/modal-divided-section/modal-divided-section.interfaces.d.ts +6 -0
- package/widgets/ui/modal-header-inserted-buttons/index.d.ts +1 -0
- package/widgets/ui/modal-header-inserted-buttons/modal-header-inserted-buttons.component.d.ts +7 -0
- package/widgets/ui/modal-header-tabs/index.d.ts +1 -0
- package/widgets/ui/modal-header-tabs/modal-header-tabs.component.d.ts +8 -0
- package/widgets/ui/modal-info-tab/index.d.ts +2 -0
- package/widgets/ui/modal-info-tab/modal-info-tab.component.d.ts +8 -0
- package/widgets/ui/modal-info-tab/modal-info-tab.options.d.ts +4 -0
- package/widgets/ui/modal-instructions-tab/index.d.ts +1 -0
- package/widgets/ui/modal-instructions-tab/modal-instructions-tab.component.d.ts +15 -0
- package/widgets/ui/modal-operation-part/index.d.ts +1 -0
- package/widgets/ui/modal-operation-part/modal-operation-part.component.d.ts +24 -0
- package/widgets/ui/modal-resources-tab/index.d.ts +1 -0
- package/widgets/ui/modal-resources-tab/modal-resources-tab.component.d.ts +14 -0
- package/widgets/ui/render-dynamic-modal/index.d.ts +2 -0
- package/widgets/ui/render-dynamic-modal/render-dynamic-modal.component.d.ts +11 -0
- package/widgets/ui/render-dynamic-modal/render-dynamic-modal.option.d.ts +5 -0
- package/widgets/ui/resources-block/components/index.d.ts +5 -0
- package/widgets/ui/resources-block/components/resources-block-consumables/index.d.ts +2 -0
- package/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.component.d.ts +17 -0
- package/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.options.d.ts +7 -0
- package/widgets/ui/resources-block/components/resources-block-content/index.d.ts +1 -0
- package/widgets/ui/resources-block/components/resources-block-content/resources-block-content.component.d.ts +19 -0
- package/widgets/ui/resources-block/components/resources-block-part/index.d.ts +1 -0
- package/widgets/ui/resources-block/components/resources-block-part/resources-block-part.component.d.ts +19 -0
- package/widgets/ui/resources-block/components/resources-block-part/resources-block-part.options.d.ts +5 -0
- package/widgets/ui/resources-block/components/resources-block-tabs/index.d.ts +1 -0
- package/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.component.d.ts +28 -0
- package/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.options.d.ts +13 -0
- package/widgets/ui/resources-block/components/resources-block-toolbox/index.d.ts +2 -0
- package/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.component.d.ts +17 -0
- package/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.options.d.ts +5 -0
- package/widgets/ui/resources-block/components/resources-options/index.d.ts +1 -0
- package/widgets/ui/resources-block/components/resources-options/resources-options.component.d.ts +20 -0
- package/widgets/ui/resources-block/index.d.ts +2 -0
- package/widgets/ui/resources-block/resources-block.component.d.ts +35 -0
- package/widgets/ui/resources-block-tabs/index.d.ts +1 -0
- package/widgets/ui/resources-block-tabs/resources-block-tabs.component.d.ts +28 -0
- package/widgets/ui/resources-block-tabs/resources-block-tabs.options.d.ts +14 -0
- package/widgets/ui/select-modal/components/index.d.ts +2 -0
- package/widgets/ui/select-modal/components/select-modal-folder/index.d.ts +1 -0
- package/widgets/ui/select-modal/components/select-modal-folder/select-modal-folder.component.d.ts +10 -0
- package/widgets/ui/select-modal/components/select-modal-search/index.d.ts +1 -0
- package/widgets/ui/select-modal/components/select-modal-search/select-modal-search.component.d.ts +12 -0
- package/widgets/ui/select-modal/index.d.ts +3 -0
- package/widgets/ui/select-modal/select-modal.component.d.ts +13 -0
- package/widgets/ui/select-modal/select-modal.interfaces.d.ts +15 -0
- package/widgets/ui/select-modal/select-modal.service.d.ts +13 -0
- package/widgets/ui/storage-list/components/index.d.ts +1 -0
- package/widgets/ui/storage-list/components/storage-list-item/index.d.ts +1 -0
- package/widgets/ui/storage-list/components/storage-list-item/storage-list-item.component.d.ts +24 -0
- package/widgets/ui/storage-list/index.d.ts +2 -0
- package/widgets/ui/storage-list/storage-list.component.d.ts +10 -0
- package/widgets/ui/storage-list/storage-list.options.d.ts +16 -0
- package/widgets/ui/toolbox-form/components/index.d.ts +1 -0
- package/widgets/ui/toolbox-form/components/tool-form-readonly/index.d.ts +1 -0
- package/widgets/ui/toolbox-form/components/tool-form-readonly/tool-form-readonly.component.d.ts +7 -0
- package/widgets/ui/toolbox-form/index.d.ts +2 -0
- package/widgets/ui/toolbox-form/tool-form.component.d.ts +34 -0
- package/widgets/ui/toolbox-form/tool-form.options.d.ts +5 -0
- package/widgets/ui/user-action-context-menu/activity-item/activity-item.component.d.ts +17 -0
- package/widgets/ui/user-action-context-menu/activity-item/index.d.ts +1 -0
- package/widgets/ui/user-action-context-menu/company-item/company-item.component.d.ts +22 -0
- package/widgets/ui/user-action-context-menu/company-item/index.d.ts +1 -0
- package/widgets/ui/user-action-context-menu/index.d.ts +3 -0
- package/widgets/ui/user-action-context-menu/services/activity-base.service.d.ts +14 -0
- package/widgets/ui/user-action-context-menu/services/activity.service.d.ts +14 -0
- package/widgets/ui/user-action-context-menu/services/index.d.ts +2 -0
- package/widgets/ui/user-action-context-menu/user-action-context-menu.component.d.ts +29 -0
- package/widgets/ui/user-action-context-menu/user-action-context.option.d.ts +15 -0
- package/widgets/ui/utility-info-readonly/index.d.ts +2 -0
- package/widgets/ui/utility-info-readonly/utility-info-readonly.component.d.ts +28 -0
- package/widgets/ui/utility-info-readonly/utility-info-readonly.options.d.ts +4 -0
- package/widgets/ui/utility-modal/components/criterion-modal-create/criterion-modal-create.component.d.ts +18 -0
- package/widgets/ui/utility-modal/components/criterion-modal-create/index.d.ts +1 -0
- package/widgets/ui/utility-modal/components/index.d.ts +4 -0
- package/widgets/ui/utility-modal/components/instruction-modal-create/index.d.ts +1 -0
- package/widgets/ui/utility-modal/components/instruction-modal-create/instruction-modal-create.component.d.ts +18 -0
- package/widgets/ui/utility-modal/components/readonly-criterion-modal/index.d.ts +1 -0
- package/widgets/ui/utility-modal/components/readonly-criterion-modal/readonly-criterion-modal.component.d.ts +16 -0
- package/widgets/ui/utility-modal/components/readonly-instruction-modal/index.d.ts +1 -0
- package/widgets/ui/utility-modal/components/readonly-instruction-modal/readonly-instruction-modal.component.d.ts +16 -0
- package/widgets/ui/utility-modal/components/readonly-utility-modal/index.d.ts +1 -0
- package/widgets/ui/utility-modal/components/readonly-utility-modal/readonly-utility-modal.component.d.ts +18 -0
- package/widgets/ui/utility-modal/components/utility-modal-create/index.d.ts +1 -0
- package/widgets/ui/utility-modal/components/utility-modal-create/utility-modal-create.component.d.ts +25 -0
- package/widgets/ui/utility-modal/index.d.ts +3 -0
- package/widgets/ui/utility-modal/utility-modal.component.d.ts +10 -0
- package/widgets/ui/utility-modal/utility-modal.options.d.ts +12 -0
- package/widgets/ui/utility-readonly-thumbnail/index.d.ts +1 -0
- package/widgets/ui/utility-readonly-thumbnail/utility-readonly-thumbnail.component.d.ts +8 -0
- package/widgets/ui/utility-thumbnail/index.d.ts +1 -0
- package/widgets/ui/utility-thumbnail/utility-thumbnail.component.d.ts +21 -0
- package/components/inserted/index.d.ts +0 -1
- package/components/inserted/inserted.component.d.ts +0 -5
- package/esm2022/components/inserted/index.mjs +0 -2
- package/esm2022/components/inserted/inserted.component.mjs +0 -15
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
2
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { CuiContextMenuModule, CuiFormFieldModule, CuiHintModule, CuiInputModule, CuiLabelModule } from '../../../../../components';
|
|
4
|
+
import { CuiTextFieldControllerModule } from '../../../../../directives';
|
|
5
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
6
|
+
import { CuiGeneralControlErrorHintComponent } from '../../../index';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../../../../components/form-field/form-field.component";
|
|
9
|
+
import * as i2 from "../../../../../components/input-text/input-text.component";
|
|
10
|
+
import * as i3 from "../../../../../directives/text-field-controller/text-field-id.directive";
|
|
11
|
+
import * as i4 from "../../../../../directives/text-field-controller/text-field-placeholder.directive";
|
|
12
|
+
import * as i5 from "../../../../../directives/text-field-controller/text-field-is-error.directive";
|
|
13
|
+
import * as i6 from "../../../../../components/label/label.component";
|
|
14
|
+
import * as i7 from "@angular/forms";
|
|
15
|
+
export class CuiChecklistBlockTitleControlComponent {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.control = input.required();
|
|
18
|
+
}
|
|
19
|
+
get isTitleError() {
|
|
20
|
+
return this.control().invalid && this.control().dirty;
|
|
21
|
+
}
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiChecklistBlockTitleControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: CuiChecklistBlockTitleControlComponent, isStandalone: true, selector: "cui-checklist-block-title-control", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <cui-form-field>\n <label\n cuiLabel\n [isRequired]=\"true\"\n for=\"title\"\n >\n {{ t('TITLE') }}\n </label>\n <cui-input-text\n [formControl]=\"control()\"\n cuiTextFieldId=\"title\"\n [cuiTextFieldIsError]=\"isTitleError\"\n cuiTextFieldPlaceholder=\"{{ t('ADD_A_TITLE') }}...\"\n />\n <cui-general-control-error-hint [control]=\"control()\" />\n </cui-form-field>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CuiContextMenuModule }, { kind: "ngmodule", type: CuiFormFieldModule }, { kind: "component", type: i1.CuiFormFieldComponent, selector: "cui-form-field" }, { kind: "ngmodule", type: CuiHintModule }, { kind: "ngmodule", type: CuiInputModule }, { kind: "component", type: i2.CuiInputTextComponent, selector: "cui-input-text" }, { kind: "directive", type: i3.CuiTextFieldIdDirective, selector: "[cuiTextFieldId]", inputs: ["cuiTextFieldId"] }, { kind: "directive", type: i4.CuiTextFieldPlaceholderDirective, selector: "[cuiTextFieldPlaceholder]", inputs: ["cuiTextFieldPlaceholder"] }, { kind: "directive", type: i5.CuiTextFieldIsErrorDirective, selector: "[cuiTextFieldIsError]", inputs: ["cuiTextFieldIsError"] }, { kind: "ngmodule", type: CuiLabelModule }, { kind: "component", type: i6.CuiLabelComponent, selector: "label[cuiLabel]", inputs: ["isRequired"] }, { kind: "ngmodule", type: CuiTextFieldControllerModule }, { kind: "component", type: CuiGeneralControlErrorHintComponent, selector: "cui-general-control-error-hint", inputs: ["control", "isVisible"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiChecklistBlockTitleControlComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'cui-checklist-block-title-control', imports: [
|
|
28
|
+
CuiContextMenuModule,
|
|
29
|
+
CuiFormFieldModule,
|
|
30
|
+
CuiHintModule,
|
|
31
|
+
CuiInputModule,
|
|
32
|
+
CuiLabelModule,
|
|
33
|
+
CuiTextFieldControllerModule,
|
|
34
|
+
CuiGeneralControlErrorHintComponent,
|
|
35
|
+
ReactiveFormsModule,
|
|
36
|
+
TranslocoDirective
|
|
37
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n <cui-form-field>\n <label\n cuiLabel\n [isRequired]=\"true\"\n for=\"title\"\n >\n {{ t('TITLE') }}\n </label>\n <cui-input-text\n [formControl]=\"control()\"\n cuiTextFieldId=\"title\"\n [cuiTextFieldIsError]=\"isTitleError\"\n cuiTextFieldPlaceholder=\"{{ t('ADD_A_TITLE') }}...\"\n />\n <cui-general-control-error-hint [control]=\"control()\" />\n </cui-form-field>\n</ng-container>\n" }]
|
|
38
|
+
}] });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tsaXN0LWJsb2NrLXRpdGxlLWNvbnRyb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4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AgICBwcm90ZWN0ZWQgZ2V0IGlzVGl0bGVFcnJvcigpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY29udHJvbCgpLmludmFsaWQgJiYgdGhpcy5jb250cm9sKCkuZGlydHk7XG4gICAgfVxufVxuIiwiPG5nLWNvbnRhaW5lciAqdHJhbnNsb2NvPVwibGV0IHRcIj5cbiAgICA8Y3VpLWZvcm0tZmllbGQ+XG4gICAgICAgIDxsYWJlbFxuICAgICAgICAgICAgY3VpTGFiZWxcbiAgICAgICAgICAgIFtpc1JlcXVpcmVkXT1cInRydWVcIlxuICAgICAgICAgICAgZm9yPVwidGl0bGVcIlxuICAgICAgICA+XG4gICAgICAgICAgICB7eyB0KCdUSVRMRScpIH19XG4gICAgICAgIDwvbGFiZWw+XG4gICAgICAgIDxjdWktaW5wdXQtdGV4dFxuICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImNvbnRyb2woKVwiXG4gICAgICAgICAgICBjdWlUZXh0RmllbGRJZD1cInRpdGxlXCJcbiAgICAgICAgICAgIFtjdWlUZXh0RmllbGRJc0Vycm9yXT1cImlzVGl0bGVFcnJvclwiXG4gICAgICAgICAgICBjdWlUZXh0RmllbGRQbGFjZWhvbGRlcj1cInt7IHQoJ0FERF9BX1RJVExFJykgfX0uLi5cIlxuICAgICAgICAvPlxuICAgICAgICA8Y3VpLWdlbmVyYWwtY29udHJvbC1lcnJvci1oaW50IFtjb250cm9sXT1cImNvbnRyb2woKVwiIC8+XG4gICAgPC9jdWktZm9ybS1maWVsZD5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiChecklistBlockTitleControlComponent } from './checklist-block-title-control.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY2hlY2tsaXN0LWJsb2NrL2NvbXBvbmVudHMvY2hlY2tsaXN0LWJsb2NrLXRpdGxlLWNvbnRyb2wvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHNDQUFzQyxFQUFFLE1BQU0sMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlDaGVja2xpc3RCbG9ja1RpdGxlQ29udHJvbENvbXBvbmVudCB9IGZyb20gJy4vY2hlY2tsaXN0LWJsb2NrLXRpdGxlLWNvbnRyb2wuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiChecklistBlockListComponent } from './checklist-block-list';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY2hlY2tsaXN0LWJsb2NrL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDhCQUE4QixFQUFFLE1BQU0sd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlDaGVja2xpc3RCbG9ja0xpc3RDb21wb25lbnQgfSBmcm9tICcuL2NoZWNrbGlzdC1ibG9jay1saXN0JztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiChecklistBlockComponent } from './checklist-block.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY2hlY2tsaXN0LWJsb2NrL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ3VpQ2hlY2tsaXN0QmxvY2tDb21wb25lbnQgfSBmcm9tICcuL2NoZWNrbGlzdC1ibG9jay5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Injectable, signal } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class CuiCheckListBlockService {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.checkListItemsSignal = signal(null);
|
|
6
|
+
this.componentIdSignal = signal(null);
|
|
7
|
+
this.isDragAvailableSignal = signal(false);
|
|
8
|
+
this.checkListItems = this.checkListItemsSignal.asReadonly();
|
|
9
|
+
this.componentId = this.componentIdSignal.asReadonly();
|
|
10
|
+
this.isDragAvailable = this.isDragAvailableSignal.asReadonly();
|
|
11
|
+
}
|
|
12
|
+
setCheckListItems(checkListItems) {
|
|
13
|
+
this.checkListItemsSignal.set(checkListItems);
|
|
14
|
+
}
|
|
15
|
+
addCheckListItem(checkListItem) {
|
|
16
|
+
this.checkListItemsSignal.update((value) => (value ? [...value, checkListItem] : [checkListItem]));
|
|
17
|
+
}
|
|
18
|
+
updateCheckListItem(updatedCheckListItem) {
|
|
19
|
+
if (!this.checkListItemsSignal()) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
this.checkListItemsSignal.update((value) => {
|
|
23
|
+
const updateCheckListItemIndex = value.findIndex((checkListItem) => checkListItem.id === updatedCheckListItem.id);
|
|
24
|
+
value[updateCheckListItemIndex] = updatedCheckListItem;
|
|
25
|
+
return [...value];
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
deleteCheckListItem(id) {
|
|
29
|
+
if (!this.checkListItemsSignal()) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.checkListItemsSignal.update((value) => {
|
|
33
|
+
const deletedItemIndex = value.findIndex((checklistItem) => checklistItem.id === id);
|
|
34
|
+
value.splice(deletedItemIndex, 1);
|
|
35
|
+
return [...value];
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
setComponentId(id) {
|
|
39
|
+
this.componentIdSignal.set(id);
|
|
40
|
+
}
|
|
41
|
+
toggleDragPermission(isDragButtonVisible) {
|
|
42
|
+
this.isDragAvailableSignal.set(isDragButtonVisible);
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCheckListBlockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
45
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCheckListBlockService }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCheckListBlockService, decorators: [{
|
|
48
|
+
type: Injectable
|
|
49
|
+
}] });
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tsaXN0LWJsb2NrLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY2hlY2tsaXN0LWJsb2NrL3NlcnZpY2VzL2NoZWNrbGlzdC1ibG9jay5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztB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ICAgICB2YWx1ZSFbdXBkYXRlQ2hlY2tMaXN0SXRlbUluZGV4XSA9IHVwZGF0ZWRDaGVja0xpc3RJdGVtO1xuXG4gICAgICAgICAgICByZXR1cm4gWy4uLnZhbHVlIV07XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHB1YmxpYyBkZWxldGVDaGVja0xpc3RJdGVtKGlkOiBzdHJpbmcpOiB2b2lkIHtcbiAgICAgICAgaWYgKCF0aGlzLmNoZWNrTGlzdEl0ZW1zU2lnbmFsKCkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuY2hlY2tMaXN0SXRlbXNTaWduYWwudXBkYXRlKCh2YWx1ZSkgPT4ge1xuICAgICAgICAgICAgY29uc3QgZGVsZXRlZEl0ZW1JbmRleCA9IHZhbHVlIS5maW5kSW5kZXgoKGNoZWNrbGlzdEl0ZW0pID0+IGNoZWNrbGlzdEl0ZW0uaWQgPT09IGlkKTtcblxuICAgICAgICAgICAgdmFsdWUhLnNwbGljZShkZWxldGVkSXRlbUluZGV4LCAxKTtcblxuICAgICAgICAgICAgcmV0dXJuIFsuLi52YWx1ZSFdO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2V0Q29tcG9uZW50SWQoaWQ6IHN0cmluZyk6IHZvaWQge1xuICAgICAgICB0aGlzLmNvbXBvbmVudElkU2lnbmFsLnNldChpZCk7XG4gICAgfVxuXG4gICAgcHVibGljIHRvZ2dsZURyYWdQZXJtaXNzaW9uKGlzRHJhZ0J1dHRvblZpc2libGU6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICAgICAgdGhpcy5pc0RyYWdBdmFpbGFibGVTaWduYWwuc2V0KGlzRHJhZ0J1dHRvblZpc2libGUpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiCheckListBlockService } from './checklist-block.service';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY2hlY2tsaXN0LWJsb2NrL3NlcnZpY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ3VpQ2hlY2tMaXN0QmxvY2tTZXJ2aWNlIH0gZnJvbSAnLi9jaGVja2xpc3QtYmxvY2suc2VydmljZSc7XG4iXX0=
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, DestroyRef, effect, inject, input, output } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { CuiConsumptionUnitsService, CuiIdService, UnitsAmount } from '@cuby-ui/cdk';
|
|
5
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
6
|
+
import { debounceTime } from 'rxjs';
|
|
7
|
+
import { ConsumableFormItemReadonlyComponent } from '../consumable-form-item-readonly';
|
|
8
|
+
import { CUI_DEFAULT_CONTROL_DELAY } from './default-control-delay';
|
|
9
|
+
import { CuiAccordionModule, CuiButtonModule, CuiContextMenuModule, CuiFormFieldModule, CuiInputNumberModule, CuiLabelModule, CuiSelectModule, CuiSvgModule } from '../../../../../components';
|
|
10
|
+
import { CuiGeneralControlErrorHintComponent } from '../../../general-control-error-hint';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@angular/forms";
|
|
13
|
+
import * as i2 from "../../../../../components/input-number/input-number.component";
|
|
14
|
+
import * as i3 from "../../../../../directives/text-field-controller/text-field-id.directive";
|
|
15
|
+
import * as i4 from "../../../../../directives/text-field-controller/text-field-placeholder.directive";
|
|
16
|
+
import * as i5 from "../../../../../directives/text-field-controller/text-field-is-error.directive";
|
|
17
|
+
import * as i6 from "../../../../../components/select/select.component";
|
|
18
|
+
export class ConsumableFormItemComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.destroyRef = inject(DestroyRef);
|
|
21
|
+
this.cuiIdService = inject(CuiIdService);
|
|
22
|
+
this.cuiConsumptionUnitsService = inject(CuiConsumptionUnitsService);
|
|
23
|
+
this.quantityId = this.cuiIdService.generate();
|
|
24
|
+
this.consumptionId = this.cuiIdService.generate();
|
|
25
|
+
this.consumable = computed(() => this.form().getRawValue());
|
|
26
|
+
this.piecesOptions = computed(() => UnitsAmount.map((unit) => ({ label: unit.abbreviation, value: unit.value })));
|
|
27
|
+
this.title = input.required();
|
|
28
|
+
this.consumptionOptions = input.required();
|
|
29
|
+
this.form = input.required();
|
|
30
|
+
this.readonly = input(false);
|
|
31
|
+
this.consumableChanged = output();
|
|
32
|
+
this.initFormChangesEffect();
|
|
33
|
+
}
|
|
34
|
+
hasFormError() {
|
|
35
|
+
const form = this.form();
|
|
36
|
+
return form.invalid && form.touched;
|
|
37
|
+
}
|
|
38
|
+
initFormChangesEffect() {
|
|
39
|
+
effect(() => {
|
|
40
|
+
const form = this.form();
|
|
41
|
+
form.valueChanges
|
|
42
|
+
.pipe(debounceTime(CUI_DEFAULT_CONTROL_DELAY), takeUntilDestroyed(this.destroyRef))
|
|
43
|
+
.subscribe((value) => {
|
|
44
|
+
if (form.invalid) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.consumableChanged.emit(value);
|
|
48
|
+
});
|
|
49
|
+
const measureFormGroup = form.controls.measure;
|
|
50
|
+
const measureMeasureControl = measureFormGroup.controls.measure;
|
|
51
|
+
const measureUnitControl = measureFormGroup.controls.unit;
|
|
52
|
+
measureUnitControl.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((unit) => {
|
|
53
|
+
const measure = this.cuiConsumptionUnitsService.getConsumptionByUnit(unit);
|
|
54
|
+
measureMeasureControl.patchValue(measure, { emitEvent: false });
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConsumableFormItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ConsumableFormItemComponent, isStandalone: true, selector: "cc-consumable-form-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, consumptionOptions: { classPropertyName: "consumptionOptions", publicName: "consumptionOptions", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { consumableChanged: "consumableChanged" }, ngImport: i0, template: "@let formData = form();\n\n@if (readonly()) {\n <cui-consumable-form-item-readonly\n [title]=\"title()\"\n [consumable]=\"consumable()\"\n />\n} @else {\n <form\n [formGroup]=\"formData\"\n *transloco=\"let t\"\n class=\"form\"\n >\n <span class=\"title\">{{ title() }}</span>\n\n <div class=\"wrapper-input\">\n <div class=\"form__input\">\n @let quantity = formData.controls.quantity;\n\n <label [for]=\"consumptionId\">{{ t('AMOUNT') }}</label>\n <div class=\"field\">\n <cui-input-number\n [cuiTextFieldId]=\"quantityId\"\n cuiTextFieldPlaceholder=\"0\"\n formControlName=\"quantity\"\n [cuiTextFieldIsError]=\"!!quantity.errors && quantity.dirty\"\n class=\"input\"\n />\n\n <cui-select\n [options]=\"piecesOptions()\"\n [class.options--error]=\"hasFormError()\"\n formControlName=\"unit\"\n class=\"options\"\n />\n </div>\n <cui-general-control-error-hint\n [control]=\"quantity\"\n [isVisible]=\"!!quantity.errors && quantity.dirty\"\n />\n </div>\n\n <div class=\"form__input\">\n @let measureFormGroup = formData.controls.measure;\n @let consumption = measureFormGroup.controls.value;\n\n <label [for]=\"consumptionId\">{{ t('MEASURE') }}</label>\n <div\n class=\"field\"\n [formGroup]=\"measureFormGroup\"\n >\n <cui-input-number\n [cuiTextFieldId]=\"consumptionId\"\n cuiTextFieldPlaceholder=\"0\"\n formControlName=\"value\"\n [precision]=\"3\"\n [cuiTextFieldIsError]=\"!!consumption.errors && consumption.dirty\"\n class=\"input\"\n />\n\n <cui-select\n [options]=\"consumptionOptions()\"\n [class.options--error]=\"hasFormError()\"\n formControlName=\"unit\"\n class=\"options\"\n />\n </div>\n <cui-general-control-error-hint\n [control]=\"consumption\"\n [isVisible]=\"!!consumption.errors && consumption.dirty\"\n />\n </div>\n </div>\n </form>\n}\n", styles: [":host{padding-top:6px;padding-bottom:6px;display:block}.title{font-weight:400;font-size:14px;line-height:20px;min-width:80px;align-self:center}.input{padding-right:84px;width:240px}.options{position:absolute;inset:1px 1px 1px auto;min-width:90px}.options ::ng-deep .c-button{border:0;height:100%}.options--error{inset:1px 20px 1px auto}.wrapper-input{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.form{display:flex;gap:8px;flex-wrap:wrap}.form__input{display:flex;flex-direction:column;gap:4px}.form__input cui-general-control-error-hint{display:block;min-height:20px}.field{display:flex;gap:4px;position:relative}\n"], dependencies: [{ kind: "ngmodule", type: CuiAccordionModule }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "ngmodule", type: CuiContextMenuModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: CuiInputNumberModule }, { kind: "component", type: i2.CuiInputNumberComponent, selector: "cui-input-number", inputs: ["precision", "min", "max"] }, { kind: "directive", type: i3.CuiTextFieldIdDirective, selector: "[cuiTextFieldId]", inputs: ["cuiTextFieldId"] }, { kind: "directive", type: i4.CuiTextFieldPlaceholderDirective, selector: "[cuiTextFieldPlaceholder]", inputs: ["cuiTextFieldPlaceholder"] }, { kind: "directive", type: i5.CuiTextFieldIsErrorDirective, selector: "[cuiTextFieldIsError]", inputs: ["cuiTextFieldIsError"] }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "ngmodule", type: CuiFormFieldModule }, { kind: "ngmodule", type: CuiLabelModule }, { kind: "ngmodule", type: CuiSelectModule }, { kind: "component", type: i6.CuiSelectComponent, selector: "cui-select[options]", inputs: ["options", "defaultOptionText"] }, { kind: "component", type: ConsumableFormItemReadonlyComponent, selector: "cui-consumable-form-item-readonly", inputs: ["title", "consumable"] }, { kind: "component", type: CuiGeneralControlErrorHintComponent, selector: "cui-general-control-error-hint", inputs: ["control", "isVisible"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConsumableFormItemComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'cc-consumable-form-item', imports: [
|
|
64
|
+
CuiAccordionModule,
|
|
65
|
+
CuiButtonModule,
|
|
66
|
+
CuiContextMenuModule,
|
|
67
|
+
ReactiveFormsModule,
|
|
68
|
+
TranslocoDirective,
|
|
69
|
+
CuiInputNumberModule,
|
|
70
|
+
CuiSvgModule,
|
|
71
|
+
CuiFormFieldModule,
|
|
72
|
+
CuiLabelModule,
|
|
73
|
+
CuiSelectModule,
|
|
74
|
+
ConsumableFormItemReadonlyComponent,
|
|
75
|
+
CuiGeneralControlErrorHintComponent
|
|
76
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "@let formData = form();\n\n@if (readonly()) {\n <cui-consumable-form-item-readonly\n [title]=\"title()\"\n [consumable]=\"consumable()\"\n />\n} @else {\n <form\n [formGroup]=\"formData\"\n *transloco=\"let t\"\n class=\"form\"\n >\n <span class=\"title\">{{ title() }}</span>\n\n <div class=\"wrapper-input\">\n <div class=\"form__input\">\n @let quantity = formData.controls.quantity;\n\n <label [for]=\"consumptionId\">{{ t('AMOUNT') }}</label>\n <div class=\"field\">\n <cui-input-number\n [cuiTextFieldId]=\"quantityId\"\n cuiTextFieldPlaceholder=\"0\"\n formControlName=\"quantity\"\n [cuiTextFieldIsError]=\"!!quantity.errors && quantity.dirty\"\n class=\"input\"\n />\n\n <cui-select\n [options]=\"piecesOptions()\"\n [class.options--error]=\"hasFormError()\"\n formControlName=\"unit\"\n class=\"options\"\n />\n </div>\n <cui-general-control-error-hint\n [control]=\"quantity\"\n [isVisible]=\"!!quantity.errors && quantity.dirty\"\n />\n </div>\n\n <div class=\"form__input\">\n @let measureFormGroup = formData.controls.measure;\n @let consumption = measureFormGroup.controls.value;\n\n <label [for]=\"consumptionId\">{{ t('MEASURE') }}</label>\n <div\n class=\"field\"\n [formGroup]=\"measureFormGroup\"\n >\n <cui-input-number\n [cuiTextFieldId]=\"consumptionId\"\n cuiTextFieldPlaceholder=\"0\"\n formControlName=\"value\"\n [precision]=\"3\"\n [cuiTextFieldIsError]=\"!!consumption.errors && consumption.dirty\"\n class=\"input\"\n />\n\n <cui-select\n [options]=\"consumptionOptions()\"\n [class.options--error]=\"hasFormError()\"\n formControlName=\"unit\"\n class=\"options\"\n />\n </div>\n <cui-general-control-error-hint\n [control]=\"consumption\"\n [isVisible]=\"!!consumption.errors && consumption.dirty\"\n />\n </div>\n </div>\n </form>\n}\n", styles: [":host{padding-top:6px;padding-bottom:6px;display:block}.title{font-weight:400;font-size:14px;line-height:20px;min-width:80px;align-self:center}.input{padding-right:84px;width:240px}.options{position:absolute;inset:1px 1px 1px auto;min-width:90px}.options ::ng-deep .c-button{border:0;height:100%}.options--error{inset:1px 20px 1px auto}.wrapper-input{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.form{display:flex;gap:8px;flex-wrap:wrap}.form__input{display:flex;flex-direction:column;gap:4px}.form__input cui-general-control-error-hint{display:block;min-height:20px}.field{display:flex;gap:4px;position:relative}\n"] }]
|
|
77
|
+
}], ctorParameters: () => [] });
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3VtYWJsZS1mb3JtLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL2NvbnN1bWFibGUtZm9ybS9jb21wb25lbnRzL2NvbnN1bWFibGUtZm9ybS1pdGVtL2NvbnN1bWFibGUtZm9ybS1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9jb25zdW1hYmxlLWZvcm0vY29tcG9uZW50cy9jb25zdW1hYmxlLWZvcm0taXRlbS9jb25zdW1hYmxlLWZvcm0taXRlbS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSx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Y3QoKTtcbiAgICB9XG5cbiAgICBwcm90ZWN0ZWQgaGFzRm9ybUVycm9yKCk6IGJvb2xlYW4ge1xuICAgICAgICBjb25zdCBmb3JtID0gdGhpcy5mb3JtKCk7XG5cbiAgICAgICAgcmV0dXJuIGZvcm0uaW52YWxpZCAmJiBmb3JtLnRvdWNoZWQ7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBpbml0Rm9ybUNoYW5nZXNFZmZlY3QoKTogdm9pZCB7XG4gICAgICAgIGVmZmVjdCgoKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBmb3JtID0gdGhpcy5mb3JtKCk7XG5cbiAgICAgICAgICAgIGZvcm0udmFsdWVDaGFuZ2VzXG4gICAgICAgICAgICAgICAgLnBpcGUoZGVib3VuY2VUaW1lKENVSV9ERUZBVUxUX0NPTlRST0xfREVMQVkpLCB0YWtlVW50aWxEZXN0cm95ZWQodGhpcy5kZXN0cm95UmVmKSlcbiAgICAgICAgICAgICAgICAuc3Vic2NyaWJlKCh2YWx1ZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZm9ybS5pbnZhbGlkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbnN1bWFibGVDaGFuZ2VkLmVtaXQodmFsdWUgYXMgUGFydGlhbDxDb25zdW1hYmxlRm9ybVZhbHVlcz4pO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICBjb25zdCBtZWFzdXJlRm9ybUdyb3VwID0gZm9ybS5jb250cm9scy5tZWFzdXJlO1xuICAgICAgICAgICAgY29uc3QgbWVhc3VyZU1lYXN1cmVDb250cm9sID0gbWVhc3VyZUZvcm1Hcm91cC5jb250cm9scy5tZWFzdXJlO1xuICAgICAgICAgICAgY29uc3QgbWVhc3VyZVVuaXRDb250cm9sID0gbWVhc3VyZUZvcm1Hcm91cC5jb250cm9scy51b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hYmVsIFtmb3JdPVwiY29uc3VtcHRpb25JZFwiPnt7IHQoJ0FNT1VOVCcpIH19PC9sYWJlbD5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZmllbGRcIj5cbiAgICAgICAgICAgICAgICAgICAgPGN1aS1pbnB1dC1udW1iZXJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtjdWlUZXh0RmllbGRJZF09XCJxdWFudGl0eUlkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1aVRleHRGaWVsZFBsYWNlaG9sZGVyPVwiMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJxdWFudGl0eVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbY3VpVGV4dEZpZWxkSXNFcnJvcl09XCIhIXF1YW50aXR5LmVycm9ycyAmJiBxdWFudGl0eS5kaXJ0eVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImlucHV0XCJcbiAgICAgICAgICAgICAgICAgICAgLz5cblxuICAgICAgICAgICAgICAgICAgICA8Y3VpLXNlbGVjdFxuICAgICAgICAgICAgICAgICAgICAgICAgW29wdGlvbnNdPVwicGllY2VzT3B0aW9ucygpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtjbGFzcy5vcHRpb25zLS1lcnJvcl09XCJoYXNGb3JtRXJyb3IoKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJ1bml0XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwib3B0aW9uc1wiXG4gICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGN1aS1nZW5lcmFsLWNvbnRyb2wtZXJyb3ItaGludFxuICAgICAgICAgICAgICAgICAgICBbY29udHJvbF09XCJxdWFudGl0eVwiXG4gICAgICAgICAgICAgICAgICAgIFtpc1Zpc2libGVdPVwiISFxdWFudGl0eS5lcnJvcnMgJiYgcXVhbnRpdHkuZGlydHlcIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L2Rpdj5cblxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImZvcm1fX2lucHV0XCI+XG4gICAgICAgICAgICAgICAgQGxldCBtZWFzdXJlRm9ybUdyb3VwID0gZm9ybURhdGEuY29udHJvbHMubWVhc3VyZTtcbiAgICAgICAgICAgICAgICBAbGV0IGNvbnN1bXB0aW9uID0gbWVhc3VyZUZvcm1Hcm91cC5jb250cm9scy52YWx1ZTtcblxuICAgICAgICAgICAgICAgIDxsYWJlbCBbZm9yXT1cImNvbnN1bXB0aW9uSWRcIj57eyB0KCdNRUFTVVJFJykgfX08L2xhYmVsPlxuICAgICAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJmaWVsZFwiXG4gICAgICAgICAgICAgICAgICAgIFtmb3JtR3JvdXBdPVwibWVhc3VyZUZvcm1Hcm91cFwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8Y3VpLWlucHV0LW51bWJlclxuICAgICAgICAgICAgICAgICAgICAgICAgW2N1aVRleHRGaWVsZElkXT1cImNvbnN1bXB0aW9uSWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgY3VpVGV4dEZpZWxkUGxhY2Vob2xkZXI9XCIwXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cInZhbHVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtwcmVjaXNpb25dPVwiM1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBbY3VpVGV4dEZpZWxkSXNFcnJvcl09XCIhIWNvbnN1bXB0aW9uLmVycm9ycyAmJiBjb25zdW1wdGlvbi5kaXJ0eVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImlucHV0XCJcbiAgICAgICAgICAgICAgICAgICAgLz5cblxuICAgICAgICAgICAgICAgICAgICA8Y3VpLXNlbGVjdFxuICAgICAgICAgICAgICAgICAgICAgICAgW29wdGlvbnNdPVwiY29uc3VtcHRpb25PcHRpb25zKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2NsYXNzLm9wdGlvbnMtLWVycm9yXT1cImhhc0Zvcm1FcnJvcigpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cInVuaXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJvcHRpb25zXCJcbiAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8Y3VpLWdlbmVyYWwtY29udHJvbC1lcnJvci1oaW50XG4gICAgICAgICAgICAgICAgICAgIFtjb250cm9sXT1cImNvbnN1bXB0aW9uXCJcbiAgICAgICAgICAgICAgICAgICAgW2lzVmlzaWJsZV09XCIhIWNvbnN1bXB0aW9uLmVycm9ycyAmJiBjb25zdW1wdGlvbi5kaXJ0eVwiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Zvcm0+XG59XG4iXX0=
|
package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/default-control-delay.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const CUI_DEFAULT_CONTROL_DELAY = 700;
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1jb250cm9sLWRlbGF5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL2NvbnN1bWFibGUtZm9ybS9jb21wb25lbnRzL2NvbnN1bWFibGUtZm9ybS1pdGVtL2RlZmF1bHQtY29udHJvbC1kZWxheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSx5QkFBeUIsR0FBRyxHQUFHLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgQ1VJX0RFRkFVTFRfQ09OVFJPTF9ERUxBWSA9IDcwMDtcbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ConsumableFormItemComponent } from './consumable-form-item.component';
|
|
2
|
+
export * from './default-control-delay';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY29uc3VtYWJsZS1mb3JtL2NvbXBvbmVudHMvY29uc3VtYWJsZS1mb3JtLWl0ZW0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDL0UsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IENvbnN1bWFibGVGb3JtSXRlbUNvbXBvbmVudCB9IGZyb20gJy4vY29uc3VtYWJsZS1mb3JtLWl0ZW0uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZGVmYXVsdC1jb250cm9sLWRlbGF5JztcbiJdfQ==
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LowerCasePipe } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
3
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ConsumableFormItemReadonlyComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.title = input.required();
|
|
8
|
+
this.consumable = input.required();
|
|
9
|
+
}
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConsumableFormItemReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: ConsumableFormItemReadonlyComponent, isStandalone: true, selector: "cui-consumable-form-item-readonly", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, consumable: { classPropertyName: "consumable", publicName: "consumable", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let consumableData = consumable();\n\n<form\n *transloco=\"let t\"\n class=\"form\"\n>\n <span class=\"title\">{{ title() }}</span>\n\n <div class=\"content\">\n <div class=\"field\">\n <span class=\"readonly-item\">{{ t('AMOUNT') }}:</span>\n <span class=\"readonly-item\">{{ consumableData.quantity }}</span>\n <span class=\"readonly-item\">{{ consumableData.unit | lowercase }}</span>\n </div>\n\n <div class=\"field\">\n <span class=\"readonly-item\">{{ t('MEASURE') }}:</span>\n <span class=\"readonly-item\">{{ consumableData.measure.value }}</span>\n <span class=\"readonly-item\">{{ consumableData.measure.unit | lowercase }}</span>\n </div>\n </div>\n</form>\n", styles: [":host{padding-top:6px;padding-bottom:6px;display:block}.title{font-weight:400;font-size:14px;line-height:20px;min-width:80px}.content{display:flex;flex-direction:column;gap:8px}.input{padding-right:84px;width:134px}.options{position:absolute;inset:1px 1px 1px auto;min-width:80px}.options ::ng-deep .c-button{border:0}.form{display:flex;gap:8px}.field{display:flex;gap:4px;position:relative}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: LowerCasePipe, name: "lowercase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConsumableFormItemReadonlyComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{ selector: 'cui-consumable-form-item-readonly', imports: [TranslocoDirective, LowerCasePipe], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "@let consumableData = consumable();\n\n<form\n *transloco=\"let t\"\n class=\"form\"\n>\n <span class=\"title\">{{ title() }}</span>\n\n <div class=\"content\">\n <div class=\"field\">\n <span class=\"readonly-item\">{{ t('AMOUNT') }}:</span>\n <span class=\"readonly-item\">{{ consumableData.quantity }}</span>\n <span class=\"readonly-item\">{{ consumableData.unit | lowercase }}</span>\n </div>\n\n <div class=\"field\">\n <span class=\"readonly-item\">{{ t('MEASURE') }}:</span>\n <span class=\"readonly-item\">{{ consumableData.measure.value }}</span>\n <span class=\"readonly-item\">{{ consumableData.measure.unit | lowercase }}</span>\n </div>\n </div>\n</form>\n", styles: [":host{padding-top:6px;padding-bottom:6px;display:block}.title{font-weight:400;font-size:14px;line-height:20px;min-width:80px}.content{display:flex;flex-direction:column;gap:8px}.input{padding-right:84px;width:134px}.options{position:absolute;inset:1px 1px 1px auto;min-width:80px}.options ::ng-deep .c-button{border:0}.form{display:flex;gap:8px}.field{display:flex;gap:4px;position:relative}\n"] }]
|
|
16
|
+
}] });
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3VtYWJsZS1mb3JtLWl0ZW0tcmVhZG9ubHkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL2NvbnN1bWFibGUtZm9ybS9jb21wb25lbnRzL2NvbnN1bWFibGUtZm9ybS1pdGVtLXJlYWRvbmx5L2NvbnN1bWFibG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Bhbj5cblxuICAgIDxkaXYgY2xhc3M9XCJjb250ZW50XCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJmaWVsZFwiPlxuICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJyZWFkb25seS1pdGVtXCI+e3sgdCgnQU1PVU5UJykgfX06PC9zcGFuPlxuICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJyZWFkb25seS1pdGVtXCI+e3sgY29uc3VtYWJsZURhdGEucXVhbnRpdHkgfX08L3NwYW4+XG4gICAgICAgICAgICA8c3BhbiBjbGFzcz1cInJlYWRvbmx5LWl0ZW1cIj57eyBjb25zdW1hYmxlRGF0YS51bml0IHwgbG93ZXJjYXNlIH19PC9zcGFuPlxuICAgICAgICA8L2Rpdj5cblxuICAgICAgICA8ZGl2IGNsYXNzPVwiZmllbGRcIj5cbiAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwicmVhZG9ubHktaXRlbVwiPnt7IHQoJ01FQVNVUkUnKSB9fTo8L3NwYW4+XG4gICAgICAgICAgICA8c3BhbiBjbGFzcz1cInJlYWRvbmx5LWl0ZW1cIj57eyBjb25zdW1hYmxlRGF0YS5tZWFzdXJlLnZhbHVlIH19PC9zcGFuPlxuICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJyZWFkb25seS1pdGVtXCI+e3sgY29uc3VtYWJsZURhdGEubWVhc3VyZS51bml0IHwgbG93ZXJjYXNlIH19PC9zcGFuPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvZm9ybT5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ConsumableFormItemReadonlyComponent } from './consumable-form-item-readonly.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY29uc3VtYWJsZS1mb3JtL2NvbXBvbmVudHMvY29uc3VtYWJsZS1mb3JtLWl0ZW0tcmVhZG9ubHkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1DQUFtQyxFQUFFLE1BQU0sMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDb25zdW1hYmxlRm9ybUl0ZW1SZWFkb25seUNvbXBvbmVudCB9IGZyb20gJy4vY29uc3VtYWJsZS1mb3JtLWl0ZW0tcmVhZG9ubHkuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ConsumableFormItemComponent } from './consumable-form-item';
|
|
2
|
+
export * from './consumable-form-item';
|
|
3
|
+
export * from './consumable-form-item-readonly';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY29uc3VtYWJsZS1mb3JtL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDckUsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ29uc3VtYWJsZUZvcm1JdGVtQ29tcG9uZW50IH0gZnJvbSAnLi9jb25zdW1hYmxlLWZvcm0taXRlbSc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnN1bWFibGUtZm9ybS1pdGVtJztcbmV4cG9ydCAqIGZyb20gJy4vY29uc3VtYWJsZS1mb3JtLWl0ZW0tcmVhZG9ubHknO1xuIl19
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, DestroyRef, effect, inject, input, output, signal, untracked } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { NonNullableFormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
4
|
+
import { CuiConsumptionUnitsService, CuiElementDirective, UnitsAmount } from '@cuby-ui/cdk';
|
|
5
|
+
import { TranslocoDirective, TranslocoService } from '@jsverse/transloco';
|
|
6
|
+
import { finalize, switchMap, tap } from 'rxjs/operators';
|
|
7
|
+
import { ConsumableFormItemComponent } from './components';
|
|
8
|
+
import { ResourceContentType } from '@cuby-ui/api';
|
|
9
|
+
import { OptionsButtonComponent } from '../../../components/options-button/options-button.component';
|
|
10
|
+
import { CuiQuantumGroupResourcesStructureApiService, SeasonType } from '@cuby-ui/api';
|
|
11
|
+
import { CuiAccordionModule, CuiAlertService, CuiButtonModule, CuiContextMenuModule, CuiFormFieldModule, CuiInputNumberModule, CuiLabelModule, CuiSvgModule } from '../../../components';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "../../../components/accordion/accordion-item/accordion-item.component";
|
|
14
|
+
import * as i2 from "../../../components/button/button.component";
|
|
15
|
+
import * as i3 from "../../../components/context-menu/context-menu.component";
|
|
16
|
+
export class ConsumableFormComponent {
|
|
17
|
+
static { this.CONSUMABLE_WAS_DELETED = 'CONSUMABLE_WAS_SUCCESSFULLY_DELETED'; }
|
|
18
|
+
constructor() {
|
|
19
|
+
this.destroyRef = inject(DestroyRef);
|
|
20
|
+
this.translocoService = inject(TranslocoService);
|
|
21
|
+
this.formBuilder = inject(NonNullableFormBuilder);
|
|
22
|
+
this.cuiAlertService = inject(CuiAlertService);
|
|
23
|
+
this.cuiConsumptionUnitsService = inject(CuiConsumptionUnitsService);
|
|
24
|
+
this.quantumGroupResourcesStructureApiService = inject(CuiQuantumGroupResourcesStructureApiService);
|
|
25
|
+
this.CONSUMABLE_OPTIONS = [
|
|
26
|
+
{
|
|
27
|
+
label: 'Delete',
|
|
28
|
+
icon: 'cuiIconTrash',
|
|
29
|
+
color: 'var(--cui-danger)',
|
|
30
|
+
command: this.onDeleteConsumable.bind(this)
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
this.seasons = Object.values(SeasonType);
|
|
34
|
+
this.allSeasonForm = signal(null);
|
|
35
|
+
this.seasonForms = signal([]);
|
|
36
|
+
this.isLoading = signal(false);
|
|
37
|
+
this.availableSeasons = computed(() => {
|
|
38
|
+
const usedSeasons = this.seasonForms().map((form) => form.type);
|
|
39
|
+
return this.seasons.filter((season) => !usedSeasons.includes(season));
|
|
40
|
+
});
|
|
41
|
+
this.consumptionOptions = computed(() => {
|
|
42
|
+
const consumable = this.consumable();
|
|
43
|
+
if (!(consumable.specifications || consumable.parameters)) {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
const consumableUnits = this.cuiConsumptionUnitsService.getConsumptionsUnits(consumable);
|
|
47
|
+
return Object.values(consumableUnits)
|
|
48
|
+
.reduce((accumulator, value) => accumulator.concat(value), [])
|
|
49
|
+
.map((unit) => ({ label: unit.abbreviation, value: unit.value }));
|
|
50
|
+
});
|
|
51
|
+
this.SEASON_OPTIONS = computed(() => this.availableSeasons().map((season) => ({
|
|
52
|
+
label: season,
|
|
53
|
+
command: () => this.addSeason(season, this.createForm())
|
|
54
|
+
})));
|
|
55
|
+
this.utilityId = input.required();
|
|
56
|
+
this.consumable = input.required();
|
|
57
|
+
this.readonly = input(false);
|
|
58
|
+
this.consumableChanged = output();
|
|
59
|
+
this.consumableDeleted = output();
|
|
60
|
+
this.initFormValuesEffect();
|
|
61
|
+
}
|
|
62
|
+
onConsumableChanged() {
|
|
63
|
+
this.updateConsumable();
|
|
64
|
+
}
|
|
65
|
+
onRemoveSeason(type) {
|
|
66
|
+
this.seasonForms.update((forms) => forms.filter((form) => form.type !== type));
|
|
67
|
+
this.updateConsumable();
|
|
68
|
+
}
|
|
69
|
+
onDeleteConsumable() {
|
|
70
|
+
const { id } = this.consumable();
|
|
71
|
+
this.isLoading.set(true);
|
|
72
|
+
this.quantumGroupResourcesStructureApiService
|
|
73
|
+
.deleteElementInStructure(this.utilityId(), ResourceContentType.Consumables.toLowerCase(), id)
|
|
74
|
+
.pipe(takeUntilDestroyed(this.destroyRef), tap(() => this.consumableDeleted.emit(id)), finalize(() => this.isLoading.set(false)), switchMap(() => this.cuiAlertService.open(this.translocoService.translate(ConsumableFormComponent.CONSUMABLE_WAS_DELETED), {
|
|
75
|
+
status: 'success'
|
|
76
|
+
})))
|
|
77
|
+
.subscribe();
|
|
78
|
+
}
|
|
79
|
+
initFormValuesEffect() {
|
|
80
|
+
effect(() => {
|
|
81
|
+
const seasonForms = untracked(this.seasonForms);
|
|
82
|
+
this.consumable().supply?.forEach((season) => {
|
|
83
|
+
const isExist = seasonForms.find((form) => form.type === season.season);
|
|
84
|
+
if (isExist) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.addSeason(season.season, this.createForm(season));
|
|
88
|
+
});
|
|
89
|
+
if (this.allSeasonForm()) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.allSeasonForm.set(this.createForm(this.consumable().supplyDefoliate));
|
|
93
|
+
}, { allowSignalWrites: true });
|
|
94
|
+
}
|
|
95
|
+
addSeason(seasonType, form) {
|
|
96
|
+
this.seasonForms.update((forms) => [
|
|
97
|
+
...forms,
|
|
98
|
+
{
|
|
99
|
+
type: seasonType,
|
|
100
|
+
form
|
|
101
|
+
}
|
|
102
|
+
]);
|
|
103
|
+
}
|
|
104
|
+
updateConsumable() {
|
|
105
|
+
const allSeasonForm = this.allSeasonForm();
|
|
106
|
+
if (!allSeasonForm?.valid) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const supply = this.seasonForms()
|
|
110
|
+
.filter((season) => season.form.valid)
|
|
111
|
+
.map((season) => this.formatMeasureUnits({ season: season.type, ...season.form.getRawValue() }));
|
|
112
|
+
const requestBody = {
|
|
113
|
+
id: this.consumable().id,
|
|
114
|
+
type: "consumable" /* ResourceRequestType.Consumables */,
|
|
115
|
+
supplyDefoliate: this.formatMeasureUnits(allSeasonForm.value),
|
|
116
|
+
supply
|
|
117
|
+
};
|
|
118
|
+
const updatedConsumable = {
|
|
119
|
+
...this.consumable(),
|
|
120
|
+
...requestBody
|
|
121
|
+
};
|
|
122
|
+
this.quantumGroupResourcesStructureApiService
|
|
123
|
+
.updateElementInStructure(this.utilityId(), ResourceContentType.Consumables, requestBody)
|
|
124
|
+
.pipe(takeUntilDestroyed(this.destroyRef), tap(() => this.consumableChanged.emit(updatedConsumable)))
|
|
125
|
+
.subscribe();
|
|
126
|
+
}
|
|
127
|
+
createForm(values) {
|
|
128
|
+
return this.formBuilder.group({
|
|
129
|
+
quantity: this.formBuilder.control(values?.quantity, [
|
|
130
|
+
Validators.required,
|
|
131
|
+
Validators.min(1),
|
|
132
|
+
Validators.max(99999)
|
|
133
|
+
]),
|
|
134
|
+
unit: this.formBuilder.control(UnitsAmount[0].value, [Validators.required]),
|
|
135
|
+
measure: this.formBuilder.group({
|
|
136
|
+
measure: this.formBuilder.control(values?.measure?.measure ??
|
|
137
|
+
(this.consumptionOptions?.()[0]?.value
|
|
138
|
+
? this.cuiConsumptionUnitsService.getConsumptionByUnit(this.consumptionOptions()[0].value)
|
|
139
|
+
: "LENGTH" /* Consumption.Length */), [Validators.required]),
|
|
140
|
+
value: this.formBuilder.control(values?.measure?.value, [
|
|
141
|
+
Validators.required,
|
|
142
|
+
Validators.min(0.001),
|
|
143
|
+
Validators.max(99999)
|
|
144
|
+
]),
|
|
145
|
+
unit: this.formBuilder.control(values?.measure?.measure === 'AMOUNT'
|
|
146
|
+
? 'PIECES'
|
|
147
|
+
: (values?.measure?.unit ?? this.consumptionOptions?.()[0].value), [Validators.required])
|
|
148
|
+
})
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
formatMeasureUnits(material) {
|
|
152
|
+
return {
|
|
153
|
+
...material,
|
|
154
|
+
measure: {
|
|
155
|
+
...material.measure,
|
|
156
|
+
unit: material.measure.measure === 'AMOUNT'
|
|
157
|
+
? null
|
|
158
|
+
: (material?.measure?.unit ?? this.consumptionOptions?.()[0].value)
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConsumableFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
163
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ConsumableFormComponent, isStandalone: true, selector: "cui-consumable-form", inputs: { utilityId: { classPropertyName: "utilityId", publicName: "utilityId", isSignal: true, isRequired: true, transformFunction: null }, consumable: { classPropertyName: "consumable", publicName: "consumable", isSignal: true, isRequired: true, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { consumableChanged: "consumableChanged", consumableDeleted: "consumableDeleted" }, ngImport: i0, template: "<cui-accordion-item\n *transloco=\"let t\"\n class=\"accordion\"\n>\n <div class=\"header\">\n {{ consumable().name }}\n\n @if (!readonly()) {\n <cui-options-button [options]=\"CONSUMABLE_OPTIONS\" />\n }\n </div>\n\n <div\n cuiAccordionItemContent\n class=\"content\"\n >\n <div class=\"info\">\n <div class=\"title\">{{ t('SEASON_CONSUMPTION') }}</div>\n\n @if (allSeasonForm() && consumptionOptions().length) {\n <cc-consumable-form-item\n title=\"{{ t('ALL_SEASON') }}:\"\n [consumptionOptions]=\"consumptionOptions()\"\n [form]=\"allSeasonForm()!\"\n [readonly]=\"readonly()\"\n (consumableChanged)=\"onConsumableChanged()\"\n />\n }\n </div>\n\n <div>\n @for (season of seasonForms(); track season) {\n <div class=\"season\">\n @if (consumptionOptions().length) {\n <cc-consumable-form-item\n title=\"{{ t(season.type) }}:\"\n [consumptionOptions]=\"consumptionOptions()\"\n [form]=\"season.form\"\n [readonly]=\"readonly()\"\n (consumableChanged)=\"onConsumableChanged()\"\n />\n }\n\n @if (!readonly()) {\n <div class=\"container-trash\">\n <button\n type=\"button\"\n cuiButton\n size=\"xxs\"\n appearance=\"ghost\"\n icon=\"cuiIconTrash\"\n (click)=\"onRemoveSeason(season.type)\"\n ></button>\n </div>\n }\n </div>\n }\n </div>\n @if (!readonly()) {\n <button\n #seasonButton=\"elementRef\"\n cuiButton\n cuiElement\n type=\"button\"\n appearance=\"flat\"\n size=\"xxs\"\n icon=\"cuiIconPlus\"\n [disabled]=\"!availableSeasons().length\"\n class=\"add-button\"\n >\n {{ t('ADD_SEASON') }}\n </button>\n <cui-context-menu\n [items]=\"SEASON_OPTIONS()\"\n [target]=\"seasonButton.nativeElement\"\n />\n }\n </div>\n</cui-accordion-item>\n", styles: [":host{display:flex;width:100%}.info{display:flex;flex-direction:column;gap:8px;padding-bottom:8px}.accordion{display:flex;flex-direction:column;gap:16px;padding-top:8px;padding-bottom:8px;flex-grow:1;border:1px solid var(--cui-base-200);background-color:var(--cui-base-0)}.season{display:flex;gap:8px;align-items:center;padding:16px;border:solid 1px var(--cui-base-200);border-radius:8px}.header{display:flex;justify-content:space-between;align-items:center}.title{font-weight:400;font-size:12px;line-height:14px;color:var(--cui-base-500);text-transform:uppercase}.content{display:flex;flex-direction:column;gap:4px}.container-trash{display:flex;align-items:center;justify-content:center}.add-button{align-self:flex-start}\n"], dependencies: [{ kind: "ngmodule", type: CuiAccordionModule }, { kind: "component", type: i1.CuiAccordionItemComponent, selector: "cui-accordion-item", inputs: ["isOpen", "appearance"], outputs: ["isOpenChange"] }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i2.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "ngmodule", type: CuiContextMenuModule }, { kind: "component", type: i3.CuiContextMenuComponent, selector: "cui-context-menu[items][target]", inputs: ["items", "target", "width", "withPaddings"] }, { kind: "directive", type: CuiElementDirective, selector: "[cuiElement]", exportAs: ["elementRef"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: OptionsButtonComponent, selector: "cui-options-button", inputs: ["options", "hoverBackgroundColor"] }, { kind: "ngmodule", type: CuiInputNumberModule }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "ngmodule", type: CuiFormFieldModule }, { kind: "ngmodule", type: CuiLabelModule }, { kind: "component", type: ConsumableFormItemComponent, selector: "cc-consumable-form-item", inputs: ["title", "consumptionOptions", "form", "readonly"], outputs: ["consumableChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConsumableFormComponent, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{ selector: 'cui-consumable-form', imports: [
|
|
168
|
+
CuiAccordionModule,
|
|
169
|
+
CuiButtonModule,
|
|
170
|
+
CuiContextMenuModule,
|
|
171
|
+
CuiElementDirective,
|
|
172
|
+
ReactiveFormsModule,
|
|
173
|
+
TranslocoDirective,
|
|
174
|
+
OptionsButtonComponent,
|
|
175
|
+
CuiInputNumberModule,
|
|
176
|
+
CuiSvgModule,
|
|
177
|
+
CuiFormFieldModule,
|
|
178
|
+
CuiLabelModule,
|
|
179
|
+
ConsumableFormItemComponent,
|
|
180
|
+
ConsumableFormItemComponent,
|
|
181
|
+
ConsumableFormItemComponent
|
|
182
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<cui-accordion-item\n *transloco=\"let t\"\n class=\"accordion\"\n>\n <div class=\"header\">\n {{ consumable().name }}\n\n @if (!readonly()) {\n <cui-options-button [options]=\"CONSUMABLE_OPTIONS\" />\n }\n </div>\n\n <div\n cuiAccordionItemContent\n class=\"content\"\n >\n <div class=\"info\">\n <div class=\"title\">{{ t('SEASON_CONSUMPTION') }}</div>\n\n @if (allSeasonForm() && consumptionOptions().length) {\n <cc-consumable-form-item\n title=\"{{ t('ALL_SEASON') }}:\"\n [consumptionOptions]=\"consumptionOptions()\"\n [form]=\"allSeasonForm()!\"\n [readonly]=\"readonly()\"\n (consumableChanged)=\"onConsumableChanged()\"\n />\n }\n </div>\n\n <div>\n @for (season of seasonForms(); track season) {\n <div class=\"season\">\n @if (consumptionOptions().length) {\n <cc-consumable-form-item\n title=\"{{ t(season.type) }}:\"\n [consumptionOptions]=\"consumptionOptions()\"\n [form]=\"season.form\"\n [readonly]=\"readonly()\"\n (consumableChanged)=\"onConsumableChanged()\"\n />\n }\n\n @if (!readonly()) {\n <div class=\"container-trash\">\n <button\n type=\"button\"\n cuiButton\n size=\"xxs\"\n appearance=\"ghost\"\n icon=\"cuiIconTrash\"\n (click)=\"onRemoveSeason(season.type)\"\n ></button>\n </div>\n }\n </div>\n }\n </div>\n @if (!readonly()) {\n <button\n #seasonButton=\"elementRef\"\n cuiButton\n cuiElement\n type=\"button\"\n appearance=\"flat\"\n size=\"xxs\"\n icon=\"cuiIconPlus\"\n [disabled]=\"!availableSeasons().length\"\n class=\"add-button\"\n >\n {{ t('ADD_SEASON') }}\n </button>\n <cui-context-menu\n [items]=\"SEASON_OPTIONS()\"\n [target]=\"seasonButton.nativeElement\"\n />\n }\n </div>\n</cui-accordion-item>\n", styles: [":host{display:flex;width:100%}.info{display:flex;flex-direction:column;gap:8px;padding-bottom:8px}.accordion{display:flex;flex-direction:column;gap:16px;padding-top:8px;padding-bottom:8px;flex-grow:1;border:1px solid var(--cui-base-200);background-color:var(--cui-base-0)}.season{display:flex;gap:8px;align-items:center;padding:16px;border:solid 1px var(--cui-base-200);border-radius:8px}.header{display:flex;justify-content:space-between;align-items:center}.title{font-weight:400;font-size:12px;line-height:14px;color:var(--cui-base-500);text-transform:uppercase}.content{display:flex;flex-direction:column;gap:4px}.container-trash{display:flex;align-items:center;justify-content:center}.add-button{align-self:flex-start}\n"] }]
|
|
183
|
+
}], ctorParameters: () => [] });
|
|
184
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3VtYWJsZS1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9jb25zdW1hYmxlLWZvcm0vY29uc3VtYWJsZS1mb3JtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9jb25zdW1hYmxlLWZvcm0vY29uc3VtYWJsZS1mb3JtLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFFBQVEsRUFDUixVQUFVLEVBQ1YsTUFBTSxFQUNOLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUNOLE1BQU0sRUFDTixTQUFTLEVBQ1osTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFaEUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLG1CQUFtQixFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpGLE9BQU8sRUFBZSwwQkFBMEIsRUFBRSxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFekcsT0FBTyxFQUFFLGtCQUFrQixFQUFFLGdCQUFnQ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Ck7XG4gICAgfVxuXG4gICAgcHJvdGVjdGVkIG9uRGVsZXRlQ29uc3VtYWJsZSgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgeyBpZCB9ID0gdGhpcy5jb25zdW1hYmxlKCk7XG5cbiAgICAgICAgdGhpcy5pc0xvYWRpbmcuc2V0KHRydWUpO1xuICAgICAgICB0aGlzLnF1YW50dW1Hcm91cFJlc291cmNlc1N0cnVjdHVyZUFwaVNlcnZpY2VcbiAgICAgICAgICAgIC5kZWxldGVFbGVtZW50SW5TdHJ1Y3R1cmUodGhpcy51dGlsaXR5SWQoKSwgUmVzb3VyY2VDb250ZW50VHlwZS5Db25zdW1hYmxlcy50b0xvd2VyQ2FzZSgpLCBpZClcbiAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIHRha2VVbnRpbERlc3Ryb3llZCh0aGlzLmRlc3Ryb3lSZWYpLFxuICAgICAgICAgICAgICAgIHRhcCgoKSA9PiB0aGlzLmNvbnN1bWFibGVEZWxldGVkLmVtaXQoaWQpKSxcbiAgICAgICAgICAgICAgICBmaW5hbGl6ZSgoKSA9PiB0aGlzLmlzTG9hZGluZy5zZXQoZmFsc2UpKSxcbiAgICAgICAgICAgICAgICBzd2l0Y2hNYXAoKCkgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jdWlBbGVydFNlcnZpY2Uub3BlbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudHJhbnNsb2NvU2VydmljZS50cmFuc2xhdGUoQ29uc3VtYWJsZUZvcm1Db21wb25lbnQuQ09OU1VNQUJMRV9XQVNfREVMRVRFRCksXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdHVzOiAnc3VjY2VzcydcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGluaXRGb3JtVmFsdWVzRWZmZWN0KCk6IHZvaWQge1xuICAgICAgICBlZmZlY3QoXG4gICAgICAgICAgICAoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3Qgc2Vhc29uRm9ybXMgPSB1bnRyYWNrZWQodGhpcy5zZWFzb25Gb3Jtcyk7XG5cbiAgICAgICAgICAgICAgICB0aGlzLmNvbnN1bWFibGUoKS5zdXBwbHk/LmZvckVhY2goKHNlYXNvbikgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBpc0V4aXN0ID0gc2Vhc29uRm9ybXMuZmluZCgoZm9ybSkgPT4gZm9ybS50eXBlID09PSBzZWFzb24uc2Vhc29uKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoaXNFeGlzdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hZGRTZWFzb24oc2Vhc29uLnNlYXNvbiwgdGhpcy5jcmVhdGVGb3JtKHNlYXNvbikpO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuYWxsU2Vhc29uRm9ybSgpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLmFsbFNlYXNvbkZvcm0uc2V0KHRoaXMuY3JlYXRlRm9ybSh0aGlzLmNvbnN1bWFibGUoKS5zdXBwbHlEZWZvbGlhdGUpKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7IGFsbG93U2lnbmFsV3JpdGVzOiB0cnVlIH1cbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGFkZFNlYXNvbihzZWFzb25UeXBlOiBTZWFzb25UeXBlLCBmb3JtOiBGb3JtR3JvdXApOiB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IHVuaXQ6IHRoaXMuZm9ybUJ1aWxkZXIuY29udHJvbChVbml0c0Ftb3VudFswXS52YWx1ZSwgW1ZhbGlkYXRvcnMucmVxdWlyZWRdKSxcbiAgICAgICAgICAgIG1lYXN1cmU6IHRoaXMuZm9ybUJ1aWxkZXIuZ3JvdXAoe1xuICAgICAgICAgICAgICAgIG1lYXN1cmU6IHRoaXMuZm9ybUJ1aWxkZXIuY29udHJvbChcbiAgICAgICAgICAgICAgICAgICAgdmFsdWVzPy5tZWFzdXJlPy5tZWFzdXJlID8/XG4gICAgICAgICAgICAgICAgICAgICAgICAodGhpcy5jb25zdW1wdGlvbk9wdGlvbnM/LigpWzBdPy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gdGhpcy5jdWlDb25zdW1wdGlvblVuaXRzU2VydmljZS5nZXRDb25zdW1wdGlvbkJ5VW5pdCh0aGlzLmNvbnN1bXB0aW9uT3B0aW9ucygpWzBdLnZhbHVlKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogQ29uc3VtcHRpb24uTGVuZ3RoKSxcbiAgICAgICAgICAgICAgICAgICAgW1ZhbGlkYXRvcnMucmVxdWlyZWRdXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB2YWx1ZTogdGhpcy5mb3JtQnVpbGRlci5jb250cm9sKHZhbHVlcz8ubWVhc3VyZT8udmFsdWUsIFtcbiAgICAgICAgICAgICAgICAgICAgVmFsaWRhdG9ycy5yZXF1aXJlZCxcbiAgICAgICAgICAgICAgICAgICAgVmFsaWRhdG9ycy5taW4oMC4wMDEpLFxuICAgICAgICAgICAgICAgICAgICBWYWxpZGF0b3JzLm1heCg5OTk5OSlcbiAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICB1bml0OiB0aGlzLmZvcm1CdWlsZGVyLmNvbnRyb2woXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlcz8ubWVhc3VyZT8ubWVhc3VyZSA9PT0gJ0FNT1VOVCdcbiAgICAgICAgICAgICAgICAgICAgICAgID8gJ1BJRUNFUydcbiAgICAgICAgICAgICAgICAgICAgICAgIDogKHZhbHVlcz8ubWVhc3VyZT8udW5pdCA/PyB0aGlzLmNvbnN1bXB0aW9uT3B0aW9ucz8uKClbMF0udmFsdWUpLFxuICAgICAgICAgICAgICAgICAgICBbVmFsaWRhdG9ycy5yZXF1aXJlZF1cbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICB9KVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGZvcm1hdE1lYXN1cmVVbml0cyhcbiAgICAgICAgbWF0ZXJpYWw6IE1hdGVyaWFsVHlwZURlZm9saWF0ZSB8IE1hdGVyaWFsVHlwZVN1cHBseVxuICAgICk6IE1hdGVyaWFsVHlwZURlZm9saWF0ZSB8IE1hdGVyaWFsVHlwZVN1cHBseSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAuLi5tYXRlcmlhbCxcbiAgICAgICAgICAgIG1lYXN1cmU6IHtcbiAgICAgICAgICAgICAgICAuLi5tYXRlcmlhbC5tZWFzdXJlLFxuICAgICAgICAgICAgICAgIHVuaXQ6XG4gICAgICAgICAgICAgICAgICAgIG1hdGVyaWFsLm1lYXN1cmUubWVhc3VyZSA9PT0gJ0FNT1VOVCdcbiAgICAgICAgICAgICAgICAgICAgICAgID8gbnVsbFxuICAgICAgICAgICAgICAgICAgICAgICAgOiAobWF0ZXJpYWw/Lm1lYXN1cmU/LnVuaXQgPz8gdGhpcy5jb25zdW1wdGlvbk9wdGlvbnM/LigpWzBdLnZhbHVlKVxuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgIH1cbn1cbiIsIjxjdWktYWNjb3JkaW9uLWl0ZW1cbiAgICAqdHJhbnNsb2NvPVwibGV0IHRcIlxuICAgIGNsYXNzPVwiYWNjb3JkaW9uXCJcbj5cbiAgICA8ZGl2IGNsYXNzPVwiaGVhZGVyXCI+XG4gICAgICAgIHt7IGNvbnN1bWFibGUoKS5uYW1lIH19XG5cbiAgICAgICAgQGlmICghcmVhZG9ubHkoKSkge1xuICAgICAgICAgICAgPGN1aS1vcHRpb25zLWJ1dHRvbiBbb3B0aW9uc109XCJDT05TVU1BQkxFX09QVElPTlNcIiAvPlxuICAgICAgICB9XG4gICAgPC9kaXY+XG5cbiAgICA8ZGl2XG4gICAgICAgIGN1aUFjY29yZGlvbkl0ZW1Db250ZW50XG4gICAgICAgIGNsYXNzPVwiY29udGVudFwiXG4gICAgPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiaW5mb1wiPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInRpdGxlXCI+e3sgdCgnU0VBU09OX0NPTlNVTVBUSU9OJykgfX08L2Rpdj5cblxuICAgICAgICAgICAgQGlmIChhbGxTZWFzb25Gb3JtKCkgJiYgY29uc3VtcHRpb25PcHRpb25zKCkubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgPGNjLWNvbnN1bWFibGUtZm9ybS1pdGVtXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlPVwie3sgdCgnQUxMX1NFQVNPTicpIH19OlwiXG4gICAgICAgICAgICAgICAgICAgIFtjb25zdW1wdGlvbk9wdGlvbnNdPVwiY29uc3VtcHRpb25PcHRpb25zKClcIlxuICAgICAgICAgICAgICAgICAgICBbZm9ybV09XCJhbGxTZWFzb25Gb3JtKCkhXCJcbiAgICAgICAgICAgICAgICAgICAgW3JlYWRvbmx5XT1cInJlYWRvbmx5KClcIlxuICAgICAgICAgICAgICAgICAgICAoY29uc3VtYWJsZUNoYW5nZWQpPVwib25Db25zdW1hYmxlQ2hhbmdlZCgpXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgfVxuICAgICAgICA8L2Rpdj5cblxuICAgICAgICA8ZGl2PlxuICAgICAgICAgICAgQGZvciAoc2Vhc29uIG9mIHNlYXNvbkZvcm1zKCk7IHRyYWNrIHNlYXNvbikge1xuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJzZWFzb25cIj5cbiAgICAgICAgICAgICAgICAgICAgQGlmIChjb25zdW1wdGlvbk9wdGlvbnMoKS5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIDxjYy1jb25zdW1hYmxlLWZvcm0taXRlbVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlPVwie3sgdChzZWFzb24udHlwZSkgfX06XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbY29uc3VtcHRpb25PcHRpb25zXT1cImNvbnN1bXB0aW9uT3B0aW9ucygpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybV09XCJzZWFzb24uZm9ybVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JlYWRvbmx5XT1cInJlYWRvbmx5KClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjb25zdW1hYmxlQ2hhbmdlZCk9XCJvbkNvbnN1bWFibGVDaGFuZ2VkKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIEBpZiAoIXJlYWRvbmx5KCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb250YWluZXItdHJhc2hcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZT1cInh4c1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJnaG9zdFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb249XCJjdWlJY29uVHJhc2hcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwib25SZW1vdmVTZWFzb24oc2Vhc29uLnR5cGUpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA+PC9idXR0b24+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgfVxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgQGlmICghcmVhZG9ubHkoKSkge1xuICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICNzZWFzb25CdXR0b249XCJlbGVtZW50UmVmXCJcbiAgICAgICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgICAgICBjdWlFbGVtZW50XG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImZsYXRcIlxuICAgICAgICAgICAgICAgIHNpemU9XCJ4eHNcIlxuICAgICAgICAgICAgICAgIGljb249XCJjdWlJY29uUGx1c1wiXG4gICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cIiFhdmFpbGFibGVTZWFzb25zKCkubGVuZ3RoXCJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImFkZC1idXR0b25cIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHt7IHQoJ0FERF9TRUFTT04nKSB9fVxuICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICA8Y3VpLWNvbnRleHQtbWVudVxuICAgICAgICAgICAgICAgIFtpdGVtc109XCJTRUFTT05fT1BUSU9OUygpXCJcbiAgICAgICAgICAgICAgICBbdGFyZ2V0XT1cInNlYXNvbkJ1dHRvbi5uYXRpdmVFbGVtZW50XCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgIH1cbiAgICA8L2Rpdj5cbjwvY3VpLWFjY29yZGlvbi1pdGVtPlxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
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kb25seSB1bml0OiBGb3JtQ29udHJvbDxzdHJpbmc+O1xuICAgIHJlYWRvbmx5IHZhbHVlOiBGb3JtQ29udHJvbDxudW1iZXI+O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIENvbnN1bWFibGVGb3JtVmFsdWVzIHtcbiAgICByZWFkb25seSBxdWFudGl0eTogbnVtYmVyO1xuICAgIHJlYWRvbmx5IHVuaXQ6IHN0cmluZztcbiAgICByZWFkb25seSBtZWFzdXJlOiBNZWFzdXJlbWVudDtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ConsumableFormComponent } from './consumable-form.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY29uc3VtYWJsZS1mb3JtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ29uc3VtYWJsZUZvcm1Db21wb25lbnQgfSBmcm9tICcuL2NvbnN1bWFibGUtZm9ybS5jb21wb25lbnQnO1xuIl19
|