@cuby-ui/core 0.0.448 → 0.0.450
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 +5 -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 +4 -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
package/esm2022/widgets/ui/modal-header-inserted-buttons/modal-header-inserted-buttons.component.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, output } from '@angular/core';
|
|
2
|
+
import { CuiButtonModule } from '../../../components';
|
|
3
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
4
|
+
import { CuiTooltip } from '../../../directives';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../../components/button/button.component";
|
|
7
|
+
import * as i2 from "../../../directives/tooltip/tooltip.directive";
|
|
8
|
+
export class ModalHeaderInsertedButtonsComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.unbindClicked = output();
|
|
11
|
+
}
|
|
12
|
+
onUnbind() {
|
|
13
|
+
this.unbindClicked.emit();
|
|
14
|
+
}
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalHeaderInsertedButtonsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ModalHeaderInsertedButtonsComponent, isStandalone: true, selector: "cui-modal-header-inserted-buttons", outputs: { unbindClicked: "unbindClicked" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <!-- TODO: \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0445\u043E\u0434 \u043D\u0430 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u043A\u043E\u0433\u0434\u0430 \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 -->\n <button\n cuiButton\n [cuiTooltip]=\"t('IN_DEVELOPMENT')\"\n type=\"button\"\n size=\"sm\"\n appearance=\"outlined-gray\"\n iconRight=\"cuiIconExternalLinkSm\"\n [disabled]=\"true\"\n >\n {{ t('VIEW') }}\n </button>\n <button\n cuiButton\n type=\"button\"\n size=\"sm\"\n icon=\"cuiIconLinkBroken\"\n appearance=\"action\"\n class=\"cc-violet-action-button\"\n (click)=\"onUnbind()\"\n >\n {{ t('UNBIND') }}\n </button>\n</ng-container>\n", styles: [":host{display:flex;gap:8px;align-items:center;justify-content:flex-end}\n"], dependencies: [{ kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i1.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "directive", type: i2.CuiTooltipDirective, selector: "[cuiTooltip]:not(ng-container):not(ng-template)", inputs: ["cuiTooltipContext", "cuiTooltipAppearance", "cuiTooltip"] }] }); }
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalHeaderInsertedButtonsComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'cui-modal-header-inserted-buttons', standalone: true, imports: [CuiButtonModule, TranslocoDirective, CuiTooltip], template: "<ng-container *transloco=\"let t\">\n <!-- TODO: \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0445\u043E\u0434 \u043D\u0430 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u043A\u043E\u0433\u0434\u0430 \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 -->\n <button\n cuiButton\n [cuiTooltip]=\"t('IN_DEVELOPMENT')\"\n type=\"button\"\n size=\"sm\"\n appearance=\"outlined-gray\"\n iconRight=\"cuiIconExternalLinkSm\"\n [disabled]=\"true\"\n >\n {{ t('VIEW') }}\n </button>\n <button\n cuiButton\n type=\"button\"\n size=\"sm\"\n icon=\"cuiIconLinkBroken\"\n appearance=\"action\"\n class=\"cc-violet-action-button\"\n (click)=\"onUnbind()\"\n >\n {{ t('UNBIND') }}\n </button>\n</ng-container>\n", styles: [":host{display:flex;gap:8px;align-items:center;justify-content:flex-end}\n"] }]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaGVhZGVyLWluc2VydGVkLWJ1dHRvbnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL21vZGFsLWhlYWRlci1pbnNlcnRlZC1idXR0b25zL21vZGFsLWhlYWRlci1pbnNlcnRlZC1idXR0b25zLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9tb2RhbC1oZWFkZXItaW5zZXJ0ZWQtYnV0dG9ucy9tb2RhbC1oZWFkZXItaW5zZXJ0ZWQtYnV0dG9ucy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyx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mtCcm9rZW5cIlxuICAgICAgICBhcHBlYXJhbmNlPVwiYWN0aW9uXCJcbiAgICAgICAgY2xhc3M9XCJjYy12aW9sZXQtYWN0aW9uLWJ1dHRvblwiXG4gICAgICAgIChjbGljayk9XCJvblVuYmluZCgpXCJcbiAgICA+XG4gICAgICAgIHt7IHQoJ1VOQklORCcpIH19XG4gICAgPC9idXR0b24+XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ModalHeaderTabsComponent } from './modal-header-tabs.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtaGVhZGVyLXRhYnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBNb2RhbEhlYWRlclRhYnNDb21wb25lbnQgfSBmcm9tICcuL21vZGFsLWhlYWRlci10YWJzLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, input } from '@angular/core';
|
|
2
|
+
import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';
|
|
3
|
+
import { CuiTabsComponent } from '../../../components/tabs';
|
|
4
|
+
import { CuiTabDirective } from '../../../components/tab';
|
|
5
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class ModalHeaderTabsComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.tabs = input.required();
|
|
10
|
+
this.selectedIndex = input(0);
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalHeaderTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ModalHeaderTabsComponent, isStandalone: true, selector: "cui-modal-header-tabs", inputs: { tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: true, transformFunction: null }, selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <cui-tabs\n class=\"tabs\"\n [selectedIndex]=\"selectedIndex()\"\n [headerSlot]=\"headerSlot\"\n >\n <ng-template\n #headerSlot\n let-buttons\n >\n <header class=\"header\">\n <div\n #buttons\n class=\"buttons\"\n >\n <ng-container [ngTemplateOutlet]=\"buttons\" />\n </div>\n </header>\n </ng-template>\n\n @for (tab of tabs(); track tab) {\n <cui-tab\n [data]=\"tab\"\n [buttonSlot]=\"cuiButtonSlot\"\n [contentSlot]=\"cuiContentSlot\"\n class=\"tab\"\n >\n <ng-template\n #cuiButtonSlot\n let-isActive=\"isActive\"\n let-element\n >\n <div\n class=\"button\"\n [class.button_active]=\"isActive\"\n >\n {{ t(element.title) }}\n </div>\n </ng-template>\n <ng-template\n #cuiContentSlot\n let-element\n >\n <div class=\"content\">\n <ng-container\n [ngComponentOutlet]=\"element.component\"\n [ngComponentOutletInputs]=\"element.inputs\"\n />\n </div>\n </ng-template>\n </cui-tab>\n }\n </cui-tabs>\n</ng-container>\n", styles: [":host{display:block;width:100%;height:calc(100% - 70px);padding-bottom:32px}.tabs{display:flex;flex-direction:column;height:100%}.header{padding-bottom:8px;border-bottom:1px solid var(--cui-base-200)}.content{height:100%;overflow:auto}.buttons{padding-right:24px;padding-left:24px;display:flex;gap:8px;align-items:center;justify-content:space-evenly}.actions{padding-left:4px;border-left:1px solid var(--cui-base-200)}.button{padding:8px 12px;font-weight:500;font-size:14px;line-height:20px;color:var(--cui-base-500);border-radius:6px;flex:1}@media (hover: hover){.button:hover{color:var(--cui-base-900);background:var(--cui-base-50)}}.button:active{color:var(--cui-base-900);background:var(--cui-base-50)}.button_active{color:var(--cui-light-blue-600);background:var(--cui-base-50)}\n"], dependencies: [{ kind: "component", type: CuiTabsComponent, selector: "cui-tabs", inputs: ["headerSlot", "selectedIndex"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CuiTabDirective, selector: "cui-tab, [cuiTab]", inputs: ["buttonSlot", "contentSlot", "data"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalHeaderTabsComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'cui-modal-header-tabs', standalone: true, imports: [CuiTabsComponent, NgTemplateOutlet, CuiTabDirective, NgComponentOutlet, TranslocoDirective], template: "<ng-container *transloco=\"let t\">\n <cui-tabs\n class=\"tabs\"\n [selectedIndex]=\"selectedIndex()\"\n [headerSlot]=\"headerSlot\"\n >\n <ng-template\n #headerSlot\n let-buttons\n >\n <header class=\"header\">\n <div\n #buttons\n class=\"buttons\"\n >\n <ng-container [ngTemplateOutlet]=\"buttons\" />\n </div>\n </header>\n </ng-template>\n\n @for (tab of tabs(); track tab) {\n <cui-tab\n [data]=\"tab\"\n [buttonSlot]=\"cuiButtonSlot\"\n [contentSlot]=\"cuiContentSlot\"\n class=\"tab\"\n >\n <ng-template\n #cuiButtonSlot\n let-isActive=\"isActive\"\n let-element\n >\n <div\n class=\"button\"\n [class.button_active]=\"isActive\"\n >\n {{ t(element.title) }}\n </div>\n </ng-template>\n <ng-template\n #cuiContentSlot\n let-element\n >\n <div class=\"content\">\n <ng-container\n [ngComponentOutlet]=\"element.component\"\n [ngComponentOutletInputs]=\"element.inputs\"\n />\n </div>\n </ng-template>\n </cui-tab>\n }\n </cui-tabs>\n</ng-container>\n", styles: [":host{display:block;width:100%;height:calc(100% - 70px);padding-bottom:32px}.tabs{display:flex;flex-direction:column;height:100%}.header{padding-bottom:8px;border-bottom:1px solid var(--cui-base-200)}.content{height:100%;overflow:auto}.buttons{padding-right:24px;padding-left:24px;display:flex;gap:8px;align-items:center;justify-content:space-evenly}.actions{padding-left:4px;border-left:1px solid var(--cui-base-200)}.button{padding:8px 12px;font-weight:500;font-size:14px;line-height:20px;color:var(--cui-base-500);border-radius:6px;flex:1}@media (hover: hover){.button:hover{color:var(--cui-base-900);background:var(--cui-base-50)}}.button:active{color:var(--cui-base-900);background:var(--cui-base-50)}.button_active{color:var(--cui-light-blue-600);background:var(--cui-base-50)}\n"] }]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaGVhZGVyLXRhYnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL21vZGFsLWhlYWRlci10YWJzL21vZGFsLWhlYWRlci10YWJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9tb2RhbC1oZWFkZXItdGFicy9tb2RhbC1oZWFkZ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G90XT1cImhlYWRlclNsb3RcIlxuICAgID5cbiAgICAgICAgPG5nLXRlbXBsYXRlXG4gICAgICAgICAgICAjaGVhZGVyU2xvdFxuICAgICAgICAgICAgbGV0LWJ1dHRvbnNcbiAgICAgICAgPlxuICAgICAgICAgICAgPGhlYWRlciBjbGFzcz1cImhlYWRlclwiPlxuICAgICAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgICAgICAgI2J1dHRvbnNcbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJidXR0b25zXCJcbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgW25nVGVtcGxhdGVPdXRsZXRdPVwiYnV0dG9uc1wiIC8+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2hlYWRlcj5cbiAgICAgICAgPC9uZy10ZW1wbGF0ZT5cblxuICAgICAgICBAZm9yICh0YWIgb2YgdGFicygpOyB0cmFjayB0YWIpIHtcbiAgICAgICAgICAgIDxjdWktdGFiXG4gICAgICAgICAgICAgICAgW2RhdGFdPVwidGFiXCJcbiAgICAgICAgICAgICAgICBbYnV0dG9uU2xvdF09XCJjdWlCdXR0b25TbG90XCJcbiAgICAgICAgICAgICAgICBbY29udGVudFNsb3RdPVwiY3VpQ29udGVudFNsb3RcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidGFiXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGVcbiAgICAgICAgICAgICAgICAgICAgI2N1aUJ1dHRvblNsb3RcbiAgICAgICAgICAgICAgICAgICAgbGV0LWlzQWN0aXZlPVwiaXNBY3RpdmVcIlxuICAgICAgICAgICAgICAgICAgICBsZXQtZWxlbWVudFxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2NsYXNzLmJ1dHRvbl9hY3RpdmVdPVwiaXNBY3RpdmVcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICB7eyB0KGVsZW1lbnQudGl0bGUpIH19XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlXG4gICAgICAgICAgICAgICAgICAgICNjdWlDb250ZW50U2xvdFxuICAgICAgICAgICAgICAgICAgICBsZXQtZWxlbWVudFxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbnRlbnRcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdDb21wb25lbnRPdXRsZXRdPVwiZWxlbWVudC5jb21wb25lbnRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtuZ0NvbXBvbmVudE91dGxldElucHV0c109XCJlbGVtZW50LmlucHV0c1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuICAgICAgICAgICAgPC9jdWktdGFiPlxuICAgICAgICB9XG4gICAgPC9jdWktdGFicz5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ModalInfoTabComponent } from './modal-info-tab.component';
|
|
2
|
+
export * from './modal-info-tab.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtaW5mby10YWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDbkUsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IE1vZGFsSW5mb1RhYkNvbXBvbmVudCB9IGZyb20gJy4vbW9kYWwtaW5mby10YWIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbW9kYWwtaW5mby10YWIub3B0aW9ucyc7XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, input } from '@angular/core';
|
|
2
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
3
|
+
import { KeyValuePipe, NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ModalInfoTabComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.content = input.required();
|
|
8
|
+
}
|
|
9
|
+
compareFn() {
|
|
10
|
+
return 0;
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInfoTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ModalInfoTabComponent, isStandalone: true, selector: "cui-modal-info-tab", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <h3 class=\"heading\">{{ t('INFO') }}</h3>\n <div class=\"wrapper\">\n @for (option of content() | keyvalue: compareFn; track option.key) {\n <span class=\"category-title\">{{ t(option.key) }}:</span>\n <ng-container *ngTemplateOutlet=\"option.value\" />\n }\n </div>\n</ng-container>\n", styles: [":host{padding:15px 24px 16px;display:flex;flex-direction:column;gap:8px;height:100%}.heading{padding-top:8px;padding-bottom:8px;font-weight:400;font-size:12px;line-height:14px;text-transform:uppercase}.wrapper{display:grid;grid-template-columns:max-content 1fr;gap:16px 32px;color:var(--cui-base-500)}.category-title{font-weight:500;flex-shrink:0;color:var(--cui-base-900)}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }] }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInfoTabComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'cui-modal-info-tab', standalone: true, imports: [TranslocoDirective, NgTemplateOutlet, KeyValuePipe], template: "<ng-container *transloco=\"let t\">\n <h3 class=\"heading\">{{ t('INFO') }}</h3>\n <div class=\"wrapper\">\n @for (option of content() | keyvalue: compareFn; track option.key) {\n <span class=\"category-title\">{{ t(option.key) }}:</span>\n <ng-container *ngTemplateOutlet=\"option.value\" />\n }\n </div>\n</ng-container>\n", styles: [":host{padding:15px 24px 16px;display:flex;flex-direction:column;gap:8px;height:100%}.heading{padding-top:8px;padding-bottom:8px;font-weight:400;font-size:12px;line-height:14px;text-transform:uppercase}.wrapper{display:grid;grid-template-columns:max-content 1fr;gap:16px 32px;color:var(--cui-base-500)}.category-title{font-weight:500;flex-shrink:0;color:var(--cui-base-900)}\n"] }]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaW5mby10YWIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsIn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5nVGVtcGxhdGVPdXRsZXQ9XCJvcHRpb24udmFsdWVcIiAvPlxuICAgICAgICB9XG4gICAgPC9kaXY+XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaW5mby10YWIub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9tb2RhbC1pbmZvLXRhYi9tb2RhbC1pbmZvLXRhYi5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFRlbXBsYXRlUmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ29udGVudCB7XG4gICAgcmVhZG9ubHkgW2tleTogc3RyaW5nXTogVGVtcGxhdGVSZWY8dW5rbm93bj47XG59XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ModalInstructionsTabComponent } from './modal-instructions-tab.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtaW5zdHJ1Y3Rpb25zLXRhYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IE1vZGFsSW5zdHJ1Y3Rpb25zVGFiQ29tcG9uZW50IH0gZnJvbSAnLi9tb2RhbC1pbnN0cnVjdGlvbnMtdGFiLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { UtilityApiService } from '@cuby-ui/api';
|
|
3
|
+
import { ModalDividedSectionComponent } from '../modal-divided-section';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ModalInstructionsTabComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.utilityApiService = inject(UtilityApiService);
|
|
8
|
+
this.utilityId = input.required();
|
|
9
|
+
this.environmentUrlForInstruction = input.required();
|
|
10
|
+
this.context = input.required();
|
|
11
|
+
this.storageObjectInstructions = signal(null);
|
|
12
|
+
}
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
this.initInstructions();
|
|
15
|
+
}
|
|
16
|
+
initInstructions() {
|
|
17
|
+
this.utilityApiService.getById(this.utilityId()).subscribe((utility) => {
|
|
18
|
+
const utilityComponentWithInstructions = utility.components.find((utilityComponent) => utilityComponent.componentType === "INSTRUCTIONS" /* UtilityComponentType.Instructions */);
|
|
19
|
+
this.storageObjectInstructions.set(utilityComponentWithInstructions
|
|
20
|
+
? utilityComponentWithInstructions.structure.map((listObjectInstruction) => listObjectInstruction.instruction)
|
|
21
|
+
: []);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInstructionsTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ModalInstructionsTabComponent, isStandalone: true, selector: "ng-component", inputs: { utilityId: { classPropertyName: "utilityId", publicName: "utilityId", isSignal: true, isRequired: true, transformFunction: null }, environmentUrlForInstruction: { classPropertyName: "environmentUrlForInstruction", publicName: "environmentUrlForInstruction", isSignal: true, isRequired: true, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (storageObjectInstructions(); as storageObjectInstructions) {\n <cui-modal-divided-section\n storageElementTypeName=\"INSTRUCTION\"\n [context]=\"context()\"\n [environmentUrlForInstruction]=\"environmentUrlForInstruction()\"\n [storageObjects]=\"storageObjectInstructions\"\n />\n}\n", styles: [":host{display:flex;height:100%}\n"], dependencies: [{ kind: "component", type: ModalDividedSectionComponent, selector: "cui-modal-divided-section", inputs: ["storageElementTypeName", "storageObjects", "environmentUrlForResources", "environmentUrlForInstruction", "context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalInstructionsTabComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ imports: [ModalDividedSectionComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "@if (storageObjectInstructions(); as storageObjectInstructions) {\n <cui-modal-divided-section\n storageElementTypeName=\"INSTRUCTION\"\n [context]=\"context()\"\n [environmentUrlForInstruction]=\"environmentUrlForInstruction()\"\n [storageObjects]=\"storageObjectInstructions\"\n />\n}\n", styles: [":host{display:flex;height:100%}\n"] }]
|
|
30
|
+
}] });
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaW5zdHJ1Y3Rpb25zLXRhYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtaW5zdHJ1Y3Rpb25zLXRhYi9tb2RhbC1pbnN0cnVjdGlvbnMtdGFiLmNvbXBvbmVud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B7XG4gICAgPGN1aS1tb2RhbC1kaXZpZGVkLXNlY3Rpb25cbiAgICAgICAgc3RvcmFnZUVsZW1lbnRUeXBlTmFtZT1cIklOU1RSVUNUSU9OXCJcbiAgICAgICAgW2NvbnRleHRdPVwiY29udGV4dCgpXCJcbiAgICAgICAgW2Vudmlyb25tZW50VXJsRm9ySW5zdHJ1Y3Rpb25dPVwiZW52aXJvbm1lbnRVcmxGb3JJbnN0cnVjdGlvbigpXCJcbiAgICAgICAgW3N0b3JhZ2VPYmplY3RzXT1cInN0b3JhZ2VPYmplY3RJbnN0cnVjdGlvbnNcIlxuICAgIC8+XG59XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ModalOperationPartComponent } from './modal-operation-part.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtb3BlcmF0aW9uLXBhcnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBNb2RhbE9wZXJhdGlvblBhcnRDb21wb25lbnQgfSBmcm9tICcuL21vZGFsLW9wZXJhdGlvbi1wYXJ0LmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Component, computed, inject, input, signal, viewChild } from '@angular/core';
|
|
2
|
+
import { CUI_DIALOG_CONTEXT, CuiLetterBoxComponent } from '../../../components';
|
|
3
|
+
import { CuiEditorComponent } from '../../../editor';
|
|
4
|
+
import { CuiTime } from '@cuby-ui/cdk';
|
|
5
|
+
import { CuiJobApiService, JobType, SHARED_INSTRUCTION_HTTP_OPTIONS } from '@cuby-ui/api';
|
|
6
|
+
import { ModalInfoTabComponent } from '../modal-info-tab';
|
|
7
|
+
import { ModalResourcesTabComponent } from '../modal-resources-tab';
|
|
8
|
+
import { ModalInstructionsTabComponent } from '../modal-instructions-tab';
|
|
9
|
+
import { ModalHeaderTabsComponent } from '../modal-header-tabs';
|
|
10
|
+
import { ModalHeaderInsertedButtonsComponent } from '../modal-header-inserted-buttons';
|
|
11
|
+
import { ModalCriteriaTabComponent } from '../modal-criteria-tab';
|
|
12
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
13
|
+
import { ModalHeaderComponent } from '../modal-header';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class ModalOperationPartComponent {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.context = inject(CUI_DIALOG_CONTEXT);
|
|
18
|
+
this.jobApiService = inject(CuiJobApiService);
|
|
19
|
+
this.tabs = signal([]);
|
|
20
|
+
this.ptFormat = computed(() => CuiTime.fromPT(this.storageObjectOperation().storageElement.estimatedTime).toString('HH:MM:SS'));
|
|
21
|
+
this.storageObjectOperation = input.required();
|
|
22
|
+
this.isInserted = input(false);
|
|
23
|
+
this.containerId = input();
|
|
24
|
+
this.quantumId = input();
|
|
25
|
+
this.jobId = input();
|
|
26
|
+
this.environmentUrlForResources = input.required();
|
|
27
|
+
this.environmentUrlForInstruction = input.required();
|
|
28
|
+
this.estimatedTime = viewChild.required('estimatedTime');
|
|
29
|
+
this.editor = viewChild.required('editor');
|
|
30
|
+
}
|
|
31
|
+
ngAfterViewInit() {
|
|
32
|
+
this.initSectionComponent();
|
|
33
|
+
}
|
|
34
|
+
onUnbindOperation() {
|
|
35
|
+
const containerId = this.containerId();
|
|
36
|
+
const operationId = this.storageObjectOperation().id;
|
|
37
|
+
const quantumId = this.quantumId();
|
|
38
|
+
const jobId = this.jobId();
|
|
39
|
+
if (!containerId) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (!quantumId) {
|
|
43
|
+
const requestBody = {
|
|
44
|
+
jobId: jobId,
|
|
45
|
+
pointerOperationsId: containerId,
|
|
46
|
+
selectOperation: operationId,
|
|
47
|
+
type: JobType.JobCorrective
|
|
48
|
+
};
|
|
49
|
+
this.jobApiService.unbindOperation(requestBody).subscribe((response) => {
|
|
50
|
+
this.context.completeWith(response);
|
|
51
|
+
});
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.jobApiService
|
|
55
|
+
.unbindOperation({
|
|
56
|
+
jobId: jobId,
|
|
57
|
+
pointerOperationsId: containerId,
|
|
58
|
+
selectOperation: operationId,
|
|
59
|
+
type: JobType.JobMain
|
|
60
|
+
})
|
|
61
|
+
.subscribe((response) => {
|
|
62
|
+
this.context.completeWith(response);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
initSectionComponent() {
|
|
66
|
+
const { storageElement: { utilityId, acceptancesCriteria } } = this.storageObjectOperation();
|
|
67
|
+
this.tabs.set([
|
|
68
|
+
{
|
|
69
|
+
title: 'INFO',
|
|
70
|
+
component: ModalInfoTabComponent,
|
|
71
|
+
inputs: { content: { ESTIMATED_TIME: this.estimatedTime(), DESCRIPTION: this.editor() } }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: 'RESOURCES',
|
|
75
|
+
component: ModalResourcesTabComponent,
|
|
76
|
+
inputs: { utilityId }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: 'INSTRUCTIONS',
|
|
80
|
+
component: ModalInstructionsTabComponent,
|
|
81
|
+
inputs: {
|
|
82
|
+
utilityId,
|
|
83
|
+
environmentUrlForInstruction: this.environmentUrlForInstruction(),
|
|
84
|
+
context: SHARED_INSTRUCTION_HTTP_OPTIONS
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: 'CRITERIA',
|
|
89
|
+
component: ModalCriteriaTabComponent,
|
|
90
|
+
inputs: {
|
|
91
|
+
acceptanceCriteriaContainerId: acceptancesCriteria,
|
|
92
|
+
environmentUrlForResources: this.environmentUrlForResources()
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]);
|
|
96
|
+
}
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalOperationPartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ModalOperationPartComponent, isStandalone: true, selector: "cui-modal-operation-part", inputs: { storageObjectOperation: { classPropertyName: "storageObjectOperation", publicName: "storageObjectOperation", isSignal: true, isRequired: true, transformFunction: null }, isInserted: { classPropertyName: "isInserted", publicName: "isInserted", isSignal: true, isRequired: false, transformFunction: null }, containerId: { classPropertyName: "containerId", publicName: "containerId", isSignal: true, isRequired: false, transformFunction: null }, quantumId: { classPropertyName: "quantumId", publicName: "quantumId", isSignal: true, isRequired: false, transformFunction: null }, jobId: { classPropertyName: "jobId", publicName: "jobId", isSignal: true, isRequired: false, transformFunction: null }, environmentUrlForResources: { classPropertyName: "environmentUrlForResources", publicName: "environmentUrlForResources", isSignal: true, isRequired: true, transformFunction: null }, environmentUrlForInstruction: { classPropertyName: "environmentUrlForInstruction", publicName: "environmentUrlForInstruction", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "estimatedTime", first: true, predicate: ["estimatedTime"], descendants: true, isSignal: true }, { propertyName: "editor", first: true, predicate: ["editor"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (storageObjectOperation().storageElement; as operation) {\n <ng-container *transloco=\"let t\">\n <cui-modal-header\n [heading]=\"operation.title\"\n [isInserted]=\"isInserted()\"\n >\n <cui-letter-box\n cuiModalHeaderIcon\n letter=\"o\"\n backgroundColor=\"var(--cui-success)\"\n />\n\n @if (isInserted()) {\n <cui-modal-header-inserted-buttons\n cuiModalHeaderButtons\n (unbindClicked)=\"onUnbindOperation()\"\n />\n }\n </cui-modal-header>\n\n @if (tabs().length) {\n <cui-modal-header-tabs [tabs]=\"tabs()\" />\n }\n </ng-container>\n\n <ng-template #estimatedTime>\n {{ ptFormat() }}\n </ng-template>\n\n <ng-template #editor>\n <cui-editor [editorApiId]=\"operation.textContainerId\" />\n </ng-template>\n}\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "component", type: CuiLetterBoxComponent, selector: "cui-letter-box", inputs: ["letter", "backgroundColor", "size", "shape"] }, { kind: "component", type: CuiEditorComponent, selector: "cui-editor", inputs: ["editorApiId", "config", "requestSize"], outputs: ["editorEmpty"] }, { kind: "component", type: ModalHeaderTabsComponent, selector: "cui-modal-header-tabs", inputs: ["tabs", "selectedIndex"] }, { kind: "component", type: ModalHeaderInsertedButtonsComponent, selector: "cui-modal-header-inserted-buttons", outputs: ["unbindClicked"] }, { kind: "component", type: ModalHeaderComponent, selector: "cui-modal-header", inputs: ["heading", "isInserted"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] }); }
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalOperationPartComponent, decorators: [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{ selector: 'cui-modal-operation-part', standalone: true, imports: [
|
|
103
|
+
CuiLetterBoxComponent,
|
|
104
|
+
CuiEditorComponent,
|
|
105
|
+
ModalHeaderTabsComponent,
|
|
106
|
+
ModalHeaderInsertedButtonsComponent,
|
|
107
|
+
ModalHeaderTabsComponent,
|
|
108
|
+
ModalHeaderTabsComponent,
|
|
109
|
+
ModalHeaderTabsComponent,
|
|
110
|
+
ModalHeaderComponent,
|
|
111
|
+
TranslocoDirective
|
|
112
|
+
], template: "@if (storageObjectOperation().storageElement; as operation) {\n <ng-container *transloco=\"let t\">\n <cui-modal-header\n [heading]=\"operation.title\"\n [isInserted]=\"isInserted()\"\n >\n <cui-letter-box\n cuiModalHeaderIcon\n letter=\"o\"\n backgroundColor=\"var(--cui-success)\"\n />\n\n @if (isInserted()) {\n <cui-modal-header-inserted-buttons\n cuiModalHeaderButtons\n (unbindClicked)=\"onUnbindOperation()\"\n />\n }\n </cui-modal-header>\n\n @if (tabs().length) {\n <cui-modal-header-tabs [tabs]=\"tabs()\" />\n }\n </ng-container>\n\n <ng-template #estimatedTime>\n {{ ptFormat() }}\n </ng-template>\n\n <ng-template #editor>\n <cui-editor [editorApiId]=\"operation.textContainerId\" />\n </ng-template>\n}\n", styles: [":host{display:contents}\n"] }]
|
|
113
|
+
}] });
|
|
114
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtb3BlcmF0aW9uLXBhcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL21vZGFsLW9wZXJhdGlvbi1wYXJ0L21vZGFsLW9wZXJhdGlvbi1wYXJ0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9tb2RhbC1vcGVyYXRpb24tcGFydC9tb2RhbC1vcGVyYXRpb24tcGFydC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLFNBQVMsRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQWUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2xILE9BQU8sRUFBRSxrQkFBa0IsRUFBb0IscUJBQXFCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNsRyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTS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lLkpvYkNvcnJlY3RpdmVcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHRoaXMuam9iQXBpU2VydmljZS51bmJpbmRPcGVyYXRpb24ocmVxdWVzdEJvZHkpLnN1YnNjcmliZSgocmVzcG9uc2UpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRleHQuY29tcGxldGVXaXRoKHJlc3BvbnNlKTtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmpvYkFwaVNlcnZpY2VcbiAgICAgICAgICAgIC51bmJpbmRPcGVyYXRpb24oe1xuICAgICAgICAgICAgICAgIGpvYklkOiBqb2JJZCEsXG4gICAgICAgICAgICAgICAgcG9pbnRlck9wZXJhdGlvbnNJZDogY29udGFpbmVySWQsXG4gICAgICAgICAgICAgICAgc2VsZWN0T3BlcmF0aW9uOiBvcGVyYXRpb25JZCxcbiAgICAgICAgICAgICAgICB0eXBlOiBKb2JUeXBlLkpvYk1haW5cbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAuc3Vic2NyaWJlKChyZXNwb25zZSkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuY29udGV4dC5jb21wbGV0ZVdpdGgocmVzcG9uc2UpO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBpbml0U2VjdGlvbkNvbXBvbmVudCgpOiB2b2lkIHtcbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgc3RvcmFnZUVsZW1lbnQ6IHsgdXRpbGl0eUlkLCBhY2NlcHRhbmNlc0NyaXRlcmlhIH1cbiAgICAgICAgfSA9IHRoaXMuc3RvcmFnZU9iamVjdE9wZXJhdGlvbigpO1xuXG4gICAgICAgIHRoaXMudGFicy5zZXQoW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHRpdGxlOiAnSU5GTycsXG4gICAgICAgICAgICAgICAgY29tcG9uZW50OiBNb2RhbEluZm9UYWJDb21wb25lbnQsXG4gICAgICAgICAgICAgICAgaW5wdXRzOiB7IGNvbnRlbnQ6IHsgRVNUSU1BVEVEX1RJTUU6IHRoaXMuZXN0aW1hdGVkVGltZSgpLCBERVNDUklQVElPTjogdGhpcy5lZGl0b3IoKSB9IH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgdGl0bGU6ICdSRVNPVVJDRVMnLFxuICAgICAgICAgICAgICAgIGNvbXBvbmVudDogTW9kYWxSZXNvdXJjZXNUYWJDb21wb25lbnQsXG4gICAgICAgICAgICAgICAgaW5wdXRzOiB7IHV0aWxpdHlJZCB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHRpdGxlOiAnSU5TVFJVQ1RJT05TJyxcbiAgICAgICAgICAgICAgICBjb21wb25lbnQ6IE1vZGFsSW5zdHJ1Y3Rpb25zVGFiQ29tcG9uZW50LFxuICAgICAgICAgICAgICAgIGlucHV0czoge1xuICAgICAgICAgICAgICAgICAgICB1dGlsaXR5SWQsXG4gICAgICAgICAgICAgICAgICAgIGVudmlyb25tZW50VXJsRm9ySW5zdHJ1Y3Rpb246IHRoaXMuZW52aXJvbm1lbnRVcmxGb3JJbnN0cnVjdGlvbigpLFxuICAgICAgICAgICAgICAgICAgICBjb250ZXh0OiBTSEFSRURfSU5TVFJVQ1RJT05fSFRUUF9PUFRJT05TXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICB0aXRsZTogJ0NSSVRFUklBJyxcbiAgICAgICAgICAgICAgICBjb21wb25lbnQ6IE1vZGFsQ3JpdGVyaWFUYWJDb21wb25lbnQsXG4gICAgICAgICAgICAgICAgaW5wdXRzOiB7XG4gICAgICAgICAgICAgICAgICAgIGFjY2VwdGFuY2VDcml0ZXJpYUNvbnRhaW5lcklkOiBhY2NlcHRhbmNlc0NyaXRlcmlhLFxuICAgICAgICAgICAgICAgICAgICBlbnZpcm9ubWVudFVybEZvclJlc291cmNlczogdGhpcy5lbnZpcm9ubWVudFVybEZvclJlc291cmNlcygpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICBdKTtcbiAgICB9XG59XG4iLCJAaWYgKHN0b3JhZ2VPYmplY3RPcGVyYXRpb24oKS5zdG9yYWdlRWxlbWVudDsgYXMgb3BlcmF0aW9uKSB7XG4gICAgPG5nLWNvbnRhaW5lciAqdHJhbnNsb2NvPVwibGV0IHRcIj5cbiAgICAgICAgPGN1aS1tb2RhbC1oZWFkZXJcbiAgICAgICAgICAgIFtoZWFkaW5nXT1cIm9wZXJhdGlvbi50aXRsZVwiXG4gICAgICAgICAgICBbaXNJbnNlcnRlZF09XCJpc0luc2VydGVkKClcIlxuICAgICAgICA+XG4gICAgICAgICAgICA8Y3VpLWxldHRlci1ib3hcbiAgICAgICAgICAgICAgICBjdWlNb2RhbEhlYWRlckljb25cbiAgICAgICAgICAgICAgICBsZXR0ZXI9XCJvXCJcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I9XCJ2YXIoLS1jdWktc3VjY2VzcylcIlxuICAgICAgICAgICAgLz5cblxuICAgICAgICAgICAgQGlmIChpc0luc2VydGVkKCkpIHtcbiAgICAgICAgICAgICAgICA8Y3VpLW1vZGFsLWhlYWRlci1pbnNlcnRlZC1idXR0b25zXG4gICAgICAgICAgICAgICAgICAgIGN1aU1vZGFsSGVhZGVyQnV0dG9uc1xuICAgICAgICAgICAgICAgICAgICAodW5iaW5kQ2xpY2tlZCk9XCJvblVuYmluZE9wZXJhdGlvbigpXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgfVxuICAgICAgICA8L2N1aS1tb2RhbC1oZWFkZXI+XG5cbiAgICAgICAgQGlmICh0YWJzKCkubGVuZ3RoKSB7XG4gICAgICAgICAgICA8Y3VpLW1vZGFsLWhlYWRlci10YWJzIFt0YWJzXT1cInRhYnMoKVwiIC8+XG4gICAgICAgIH1cbiAgICA8L25nLWNvbnRhaW5lcj5cblxuICAgIDxuZy10ZW1wbGF0ZSAjZXN0aW1hdGVkVGltZT5cbiAgICAgICAge3sgcHRGb3JtYXQoKSB9fVxuICAgIDwvbmctdGVtcGxhdGU+XG5cbiAgICA8bmctdGVtcGxhdGUgI2VkaXRvcj5cbiAgICAgICAgPGN1aS1lZGl0b3IgW2VkaXRvckFwaUlkXT1cIm9wZXJhdGlvbi50ZXh0Q29udGFpbmVySWRcIiAvPlxuICAgIDwvbmctdGVtcGxhdGU+XG59XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ModalResourcesTabComponent } from './modal-resources-tab.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtcmVzb3VyY2VzLXRhYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IE1vZGFsUmVzb3VyY2VzVGFiQ29tcG9uZW50IH0gZnJvbSAnLi9tb2RhbC1yZXNvdXJjZXMtdGFiLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { CuiEmptyStateComponent } from '../../../components';
|
|
3
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
4
|
+
import { UtilityApiService } from '@cuby-ui/api';
|
|
5
|
+
import { CUI_UTILITY_SERVICE_TOKEN } from '../../model';
|
|
6
|
+
import { ResourcesBlockTabsComponent } from '../resources-block-tabs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class ModalResourcesTabComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.utilityApiService = inject(UtilityApiService);
|
|
11
|
+
this.utilityService = inject(CUI_UTILITY_SERVICE_TOKEN);
|
|
12
|
+
this.isLoaded = signal(false);
|
|
13
|
+
this.utilityComponentWithResources = this.utilityService.resourcesComponent;
|
|
14
|
+
this.utilityId = input.required();
|
|
15
|
+
}
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
this.initResources();
|
|
18
|
+
}
|
|
19
|
+
initResources() {
|
|
20
|
+
this.utilityApiService.getById(this.utilityId()).subscribe((utility) => {
|
|
21
|
+
this.isLoaded.set(true);
|
|
22
|
+
const utilityComponentWithResources = utility.components.find((utilityComponent) => utilityComponent.componentType === "RESOURCES" /* UtilityComponentType.Resources */) ?? null;
|
|
23
|
+
this.utilityService.setComponent(utilityComponentWithResources);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalResourcesTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ModalResourcesTabComponent, isStandalone: true, selector: "cui-modal-resources-tab", inputs: { utilityId: { classPropertyName: "utilityId", publicName: "utilityId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n @if (isLoaded()) {\n @if (utilityComponentWithResources(); as utilityComponentWithResources) {\n <cui-resources-block-tabs\n [resourceComponent]=\"utilityComponentWithResources\"\n [utilityId]=\"utilityId()\"\n [buttonSlot]=\"button\"\n [readonly]=\"true\"\n />\n <ng-template #button />\n } @else {\n <cui-empty-state [subtitle]=\"t('NO_RESOURCES_TO_VIEW_YET')\" />\n }\n }\n</ng-container>\n", styles: [":host{padding:15px 24px 16px;display:flex;flex-direction:column;min-height:100%}\n"], dependencies: [{ kind: "component", type: CuiEmptyStateComponent, selector: "cui-empty-state, [cuiEmptyState]", inputs: ["title", "subtitle"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: ResourcesBlockTabsComponent, selector: "cui-resources-block-tabs", inputs: ["resourceComponent", "utilityId", "buttonSlot", "readonly", "selectedIndex"], outputs: ["resourceAdded", "resourceDeleted", "selectedIndexChange"] }] }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ModalResourcesTabComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'cui-modal-resources-tab', standalone: true, imports: [CuiEmptyStateComponent, TranslocoDirective, ResourcesBlockTabsComponent], template: "<ng-container *transloco=\"let t\">\n @if (isLoaded()) {\n @if (utilityComponentWithResources(); as utilityComponentWithResources) {\n <cui-resources-block-tabs\n [resourceComponent]=\"utilityComponentWithResources\"\n [utilityId]=\"utilityId()\"\n [buttonSlot]=\"button\"\n [readonly]=\"true\"\n />\n <ng-template #button />\n } @else {\n <cui-empty-state [subtitle]=\"t('NO_RESOURCES_TO_VIEW_YET')\" />\n }\n }\n</ng-container>\n", styles: [":host{padding:15px 24px 16px;display:flex;flex-direction:column;min-height:100%}\n"] }]
|
|
32
|
+
}] });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtcmVzb3VyY2VzLXRhYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvbW9kYWwtcmVzb3VyY2VzLXRhYi9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LXJlc291cmNlcy1ibG9jay10YWJzXG4gICAgICAgICAgICAgICAgW3Jlc291cmNlQ29tcG9uZW50XT1cInV0aWxpdHlDb21wb25lbnRXaXRoUmVzb3VyY2VzXCJcbiAgICAgICAgICAgICAgICBbdXRpbGl0eUlkXT1cInV0aWxpdHlJZCgpXCJcbiAgICAgICAgICAgICAgICBbYnV0dG9uU2xvdF09XCJidXR0b25cIlxuICAgICAgICAgICAgICAgIFtyZWFkb25seV09XCJ0cnVlXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8bmctdGVtcGxhdGUgI2J1dHRvbiAvPlxuICAgICAgICB9IEBlbHNlIHtcbiAgICAgICAgICAgIDxjdWktZW1wdHktc3RhdGUgW3N1YnRpdGxlXT1cInQoJ05PX1JFU09VUkNFU19UT19WSUVXX1lFVCcpXCIgLz5cbiAgICAgICAgfVxuICAgIH1cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { RenderDynamicModalComponent } from './render-dynamic-modal.component';
|
|
2
|
+
export * from './render-dynamic-modal.option';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvcmVuZGVyLWR5bmFtaWMtbW9kYWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDL0UsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IFJlbmRlckR5bmFtaWNNb2RhbENvbXBvbmVudCB9IGZyb20gJy4vcmVuZGVyLWR5bmFtaWMtbW9kYWwuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vcmVuZGVyLWR5bmFtaWMtbW9kYWwub3B0aW9uJztcbiJdfQ==
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, HostBinding, inject } from '@angular/core';
|
|
2
|
+
import { CUI_DIALOG_CONTEXT, CuiRenderDynamicComponentsComponent, CuiRenderDynamicComponentsService } from '../../../components';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class RenderDynamicModalComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
7
|
+
this.renderDynamicComponentsService = inject(CuiRenderDynamicComponentsService);
|
|
8
|
+
}
|
|
9
|
+
get size() {
|
|
10
|
+
return this.cuiDialogContext.size;
|
|
11
|
+
}
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
this.initParentParentOfModal();
|
|
14
|
+
}
|
|
15
|
+
initParentParentOfModal() {
|
|
16
|
+
const { component, inputs } = this.cuiDialogContext.data;
|
|
17
|
+
this.renderDynamicComponentsService.open({ component, inputs });
|
|
18
|
+
}
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RenderDynamicModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RenderDynamicModalComponent, isStandalone: true, selector: "cui-render-dynamic-modal", host: { properties: { "attr.data-size": "this.size" } }, ngImport: i0, template: "<div class=\"wrapper\">\n <cui-render-dynamic-components />\n</div>\n", styles: [".wrapper{display:flex;flex-direction:column;overflow:hidden}:host[data-size=auto] .wrapper{height:auto}:host[data-size=sm] .wrapper{height:578px}:host[data-size=xl] .wrapper{height:916px}\n"], dependencies: [{ kind: "component", type: CuiRenderDynamicComponentsComponent, selector: "cui-render-dynamic-components" }] }); }
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RenderDynamicModalComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'cui-render-dynamic-modal', standalone: true, imports: [CuiRenderDynamicComponentsComponent], template: "<div class=\"wrapper\">\n <cui-render-dynamic-components />\n</div>\n", styles: [".wrapper{display:flex;flex-direction:column;overflow:hidden}:host[data-size=auto] .wrapper{height:auto}:host[data-size=sm] .wrapper{height:578px}:host[data-size=xl] .wrapper{height:916px}\n"] }]
|
|
25
|
+
}], propDecorators: { size: [{
|
|
26
|
+
type: HostBinding,
|
|
27
|
+
args: ['attr.data-size']
|
|
28
|
+
}] } });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLWR5bmFtaWMtbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3JlbmRlci1keW5hbWljLW1vZGFsL3JlbmRlci1keW5hbWljLW1vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9yZW5kZXItZHluYW1pYy1tb2RhbC9yZW5kZXItZHluYW1pYy1tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0QsT0FBTyxFQUNILGtCQUFrQixFQUdsQixtQ0FBbUMsRUFDbkMsaUNBQWlDLEVBQ3BDLE1BQU0scUJBQXFCLENBQUM7O0FBVTdCLE1BQU0sT0FBTywyQkFBMkI7SUFQeEM7UUFRcUIscUJBQWdCLEdBQUcsTUFBTSxDQUFvRCxrQkFBa0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JpdmF0ZSBpbml0UGFyZW50UGFyZW50T2ZNb2RhbCgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgeyBjb21wb25lbnQsIGlucHV0cyB9ID0gdGhpcy5jdWlEaWFsb2dDb250ZXh0LmRhdGE7XG5cbiAgICAgICAgdGhpcy5yZW5kZXJEeW5hbWljQ29tcG9uZW50c1NlcnZpY2Uub3Blbih7IGNvbXBvbmVudCwgaW5wdXRzIH0pO1xuICAgIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJ3cmFwcGVyXCI+XG4gICAgPGN1aS1yZW5kZXItZHluYW1pYy1jb21wb25lbnRzIC8+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLWR5bmFtaWMtbW9kYWwub3B0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3JlbmRlci1keW5hbWljLW1vZGFsL3JlbmRlci1keW5hbWljLW1vZGFsLm9wdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ3VpUmVuZGVyRHluYW1pY01vZGFsRGlhbG9nRGF0YSB7XG4gICAgY29tcG9uZW50OiBUeXBlPHVua25vd24+O1xuICAgIGlucHV0czogUmVjb3JkPHN0cmluZywgdW5rbm93bj47XG59XG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ResourcesBlockPartComponent } from './resources-block-part';
|
|
2
|
+
export { ResourcesBlockTabsComponent } from './resources-block-tabs';
|
|
3
|
+
export { ResourcesOptionsComponent } from './resources-options';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvcmVzb3VyY2VzLWJsb2NrL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDckUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFckUsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0scUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSB7IFJlc291cmNlVXRpbGl0eU1hdGVyaWFsIH0gZnJvbSAnLi9yZXNvdXJjZXMtYmxvY2stY29uc3VtYWJsZXMnO1xuZXhwb3J0IHsgUmVzb3VyY2VzQmxvY2tQYXJ0Q29tcG9uZW50IH0gZnJvbSAnLi9yZXNvdXJjZXMtYmxvY2stcGFydCc7XG5leHBvcnQgeyBSZXNvdXJjZXNCbG9ja1RhYnNDb21wb25lbnQgfSBmcm9tICcuL3Jlc291cmNlcy1ibG9jay10YWJzJztcbmV4cG9ydCB0eXBlIHsgUmVzb3VyY2VVdGlsaXR5VG9vbCB9IGZyb20gJy4vcmVzb3VyY2VzLWJsb2NrLXRvb2xib3gnO1xuZXhwb3J0IHsgUmVzb3VyY2VzT3B0aW9uc0NvbXBvbmVudCB9IGZyb20gJy4vcmVzb3VyY2VzLW9wdGlvbnMnO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ResourcesBlockConsumablesComponent } from './resources-block-consumables.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvcmVzb3VyY2VzLWJsb2NrL2NvbXBvbmVudHMvcmVzb3VyY2VzLWJsb2NrLWNvbnN1bWFibGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLHlDQUF5QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgUmVzb3VyY2VzQmxvY2tDb25zdW1hYmxlc0NvbXBvbmVudCB9IGZyb20gJy4vcmVzb3VyY2VzLWJsb2NrLWNvbnN1bWFibGVzLmNvbXBvbmVudCc7XG5leHBvcnQgdHlwZSB7IFJlc291cmNlVXRpbGl0eU1hdGVyaWFsIH0gZnJvbSAnLi9yZXNvdXJjZXMtYmxvY2stY29uc3VtYWJsZXMub3B0aW9ucyc7XG4iXX0=
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, effect, inject, input } from '@angular/core';
|
|
2
|
+
import { EMPTY, map } from 'rxjs';
|
|
3
|
+
import { ConsumableFormComponent } from '../../../consumable-form';
|
|
4
|
+
import { CuiFactoryApiService } from '@cuby-ui/api';
|
|
5
|
+
import { CUI_UTILITY_SERVICE_TOKEN } from '../../../../model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class ResourcesBlockConsumablesComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.factoryApiService = inject(CuiFactoryApiService);
|
|
10
|
+
this.utilityService = inject(CUI_UTILITY_SERVICE_TOKEN);
|
|
11
|
+
this.utilityId = input.required();
|
|
12
|
+
this.containerId = input.required();
|
|
13
|
+
this.elements = input.required();
|
|
14
|
+
this.readonly = input(false);
|
|
15
|
+
this.initConsumablesStructure();
|
|
16
|
+
}
|
|
17
|
+
onConsumableChanged(consumable) {
|
|
18
|
+
this.utilityService.updateResource(consumable, this.containerId());
|
|
19
|
+
}
|
|
20
|
+
onConsumableDeleted(consumableId) {
|
|
21
|
+
this.utilityService.removeResource(consumableId, this.containerId());
|
|
22
|
+
}
|
|
23
|
+
initConsumablesStructure() {
|
|
24
|
+
const effectRef = effect(() => {
|
|
25
|
+
const materials = this.elements();
|
|
26
|
+
const areMaterialsWithFullInfo = materials.every((material) => material.name);
|
|
27
|
+
if (areMaterialsWithFullInfo) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.getAddintionalResourceInfo(materials).subscribe((consumable) => {
|
|
31
|
+
this.utilityService.updateResource(consumable, this.containerId());
|
|
32
|
+
});
|
|
33
|
+
effectRef.destroy();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
getAddintionalResourceInfo(resources) {
|
|
37
|
+
if (!resources.length) {
|
|
38
|
+
return EMPTY;
|
|
39
|
+
}
|
|
40
|
+
const ids = resources.map((resource) => resource.id);
|
|
41
|
+
return this.factoryApiService.getMaterialsByIds(ids).pipe(map((factoryElement) => ({
|
|
42
|
+
...resources.find((resource) => factoryElement.id === resource.id),
|
|
43
|
+
...factoryElement
|
|
44
|
+
})));
|
|
45
|
+
}
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ResourcesBlockConsumablesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ResourcesBlockConsumablesComponent, isStandalone: true, selector: "cui-resources-block-consumables", inputs: { utilityId: { classPropertyName: "utilityId", publicName: "utilityId", isSignal: true, isRequired: true, transformFunction: null }, containerId: { classPropertyName: "containerId", publicName: "containerId", isSignal: true, isRequired: true, transformFunction: null }, elements: { classPropertyName: "elements", publicName: "elements", isSignal: true, isRequired: true, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (consumable of elements(); track consumable.id) {\n <cui-consumable-form\n [utilityId]=\"utilityId()\"\n [consumable]=\"consumable\"\n [readonly]=\"readonly()\"\n (consumableChanged)=\"onConsumableChanged($event)\"\n (consumableDeleted)=\"onConsumableDeleted($event)\"\n />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:8px;width:100%}.table__toolbox{grid-template-columns:10fr 3fr 3fr 1fr}.table__toolbox_readonly{grid-template-columns:10fr 2fr 1.5fr}.custom{padding-right:4px;padding-left:4px}\n"], dependencies: [{ kind: "component", type: ConsumableFormComponent, selector: "cui-consumable-form", inputs: ["utilityId", "consumable", "readonly"], outputs: ["consumableChanged", "consumableDeleted"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ResourcesBlockConsumablesComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{ selector: 'cui-resources-block-consumables', imports: [ConsumableFormComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "@for (consumable of elements(); track consumable.id) {\n <cui-consumable-form\n [utilityId]=\"utilityId()\"\n [consumable]=\"consumable\"\n [readonly]=\"readonly()\"\n (consumableChanged)=\"onConsumableChanged($event)\"\n (consumableDeleted)=\"onConsumableDeleted($event)\"\n />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:8px;width:100%}.table__toolbox{grid-template-columns:10fr 3fr 3fr 1fr}.table__toolbox_readonly{grid-template-columns:10fr 2fr 1.5fr}.custom{padding-right:4px;padding-left:4px}\n"] }]
|
|
52
|
+
}], ctorParameters: () => [] });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLWJsb2NrLWNvb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nlJZHMoaWRzKS5waXBlKFxuICAgICAgICAgICAgbWFwKFxuICAgICAgICAgICAgICAgIChmYWN0b3J5RWxlbWVudCkgPT5cbiAgICAgICAgICAgICAgICAgICAgKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLnJlc291cmNlcy5maW5kKChyZXNvdXJjZSkgPT4gZmFjdG9yeUVsZW1lbnQuaWQgPT09IHJlc291cmNlLmlkKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLmZhY3RvcnlFbGVtZW50XG4gICAgICAgICAgICAgICAgICAgIH0pIGFzIFJlc291cmNlVXRpbGl0eU1hdGVyaWFsXG4gICAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgfVxufVxuIiwiQGZvciAoY29uc3VtYWJsZSBvZiBlbGVtZW50cygpOyB0cmFjayBjb25zdW1hYmxlLmlkKSB7XG4gICAgPGN1aS1jb25zdW1hYmxlLWZvcm1cbiAgICAgICAgW3V0aWxpdHlJZF09XCJ1dGlsaXR5SWQoKVwiXG4gICAgICAgIFtjb25zdW1hYmxlXT1cImNvbnN1bWFibGVcIlxuICAgICAgICBbcmVhZG9ubHldPVwicmVhZG9ubHkoKVwiXG4gICAgICAgIChjb25zdW1hYmxlQ2hhbmdlZCk9XCJvbkNvbnN1bWFibGVDaGFuZ2VkKCRldmVudClcIlxuICAgICAgICAoY29uc3VtYWJsZURlbGV0ZWQpPVwib25Db25zdW1hYmxlRGVsZXRlZCgkZXZlbnQpXCJcbiAgICAvPlxufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLWJsb2NrLWNvbnN1bWFibGVzLm9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvcmVzb3VyY2VzLWJsb2NrL2NvbXBvbmVudHMvcmVzb3VyY2VzLWJsb2NrLWNvbnN1bWFibGVzL3Jlc291cmNlcy1ibG9jay1jb25zdW1hYmxlcy5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFNwZWNpZmljYXRpb25zLCBVdGlsaXR5TWF0ZXJpYWxSZXF1ZXN0Qm9keSB9IGZyb20gJ0BjdWJ5LXVpL2FwaSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgUmVzb3VyY2VVdGlsaXR5TWF0ZXJpYWwgZXh0ZW5kcyBVdGlsaXR5TWF0ZXJpYWxSZXF1ZXN0Qm9keSB7XG4gICAgcmVhZG9ubHkgaXNEZWxldGU6IGJvb2xlYW47XG4gICAgcmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuICAgIHJlYWRvbmx5IHNwZWNpZmljYXRpb25zPzogU3BlY2lmaWNhdGlvbnM7XG4gICAgcmVhZG9ubHkgcGFyYW1ldGVycz86IFNwZWNpZmljYXRpb25zO1xufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ResourcesBlockContentComponent } from './resources-block-content.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvcmVzb3VyY2VzLWJsb2NrL2NvbXBvbmVudHMvcmVzb3VyY2VzLWJsb2NrLWNvbnRlbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDhCQUE4QixFQUFFLE1BQU0scUNBQXFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBSZXNvdXJjZXNCbG9ja0NvbnRlbnRDb21wb25lbnQgfSBmcm9tICcuL3Jlc291cmNlcy1ibG9jay1jb250ZW50LmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TitleCasePipe } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, output, signal } from '@angular/core';
|
|
3
|
+
import { SHARED_FACTORY_HTTP_OPTIONS } from '@cuby-ui/api';
|
|
4
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
5
|
+
import { CUI_SUBJECT_MODAL_SERVICE_TOKEN } from '../../../../model';
|
|
6
|
+
import { CuiButtonModule, CuiEmptyStateComponent } from '../../../../../components';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../../../../components/button/button.component";
|
|
9
|
+
export class ResourcesBlockContentComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.subjectModalBase = inject(CUI_SUBJECT_MODAL_SERVICE_TOKEN);
|
|
12
|
+
this.config = SHARED_FACTORY_HTTP_OPTIONS;
|
|
13
|
+
this.isLoading = signal(false);
|
|
14
|
+
this.emptyState = computed(() => `NO_${this.type().toUpperCase()}_TO_VIEW_YET`);
|
|
15
|
+
this.resourcesAdded = output();
|
|
16
|
+
this.type = input.required();
|
|
17
|
+
this.utilityId = input.required();
|
|
18
|
+
this.empty = input(true);
|
|
19
|
+
this.readonly = input(false);
|
|
20
|
+
}
|
|
21
|
+
onAddResource() {
|
|
22
|
+
this.subjectModalBase.addResource(this.utilityId());
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ResourcesBlockContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ResourcesBlockContentComponent, isStandalone: true, selector: "cui-resources-block-content", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, utilityId: { classPropertyName: "utilityId", publicName: "utilityId", isSignal: true, isRequired: true, transformFunction: null }, empty: { classPropertyName: "empty", publicName: "empty", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resourcesAdded: "resourcesAdded" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n @if (!empty()) {\n <ng-content />\n } @else {\n <cui-empty-state [subtitle]=\"t(emptyState())\" />\n }\n\n @if (!readonly()) {\n <button\n type=\"button\"\n cuiButton\n appearance=\"flat\"\n size=\"xxs\"\n icon=\"cuiIconPlus\"\n (click)=\"onAddResource()\"\n >\n {{ t('ADD') }} {{ type() | titlecase }}\n </button>\n }\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;gap:8px;align-items:flex-start}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiEmptyStateComponent, selector: "cui-empty-state, [cuiEmptyState]", inputs: ["title", "subtitle"] }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i1.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ResourcesBlockContentComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ selector: 'cui-resources-block-content', imports: [
|
|
30
|
+
TranslocoDirective,
|
|
31
|
+
CuiEmptyStateComponent,
|
|
32
|
+
CuiButtonModule,
|
|
33
|
+
TitleCasePipe,
|
|
34
|
+
CuiButtonModule,
|
|
35
|
+
CuiEmptyStateComponent
|
|
36
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<ng-container *transloco=\"let t\">\n @if (!empty()) {\n <ng-content />\n } @else {\n <cui-empty-state [subtitle]=\"t(emptyState())\" />\n }\n\n @if (!readonly()) {\n <button\n type=\"button\"\n cuiButton\n appearance=\"flat\"\n size=\"xxs\"\n icon=\"cuiIconPlus\"\n (click)=\"onAddResource()\"\n >\n {{ t('ADD') }} {{ type() | titlecase }}\n </button>\n }\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;gap:8px;align-items:flex-start}\n"] }]
|
|
37
|
+
}] });
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLWJsb2NrLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3Jlc291cmNlcy1ibG9jay9jb21wb25lbnRzL3Jlc291cmNlcy1ibG9jay1jb250ZW50L3Jlc291cmNlcy1ibG9jay1jb250ZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9yZXNvdXJjZXMtYmxvY2svY29tcG9uZW50cy9yZXNvdXJjZXMtYmxvY2stY29udGVudC9yZXNvdXJjZXMtYmxvY2stY29udGVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFB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WluZXI+XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ResourcesBlockPartComponent } from './resources-block-part.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvcmVzb3VyY2VzLWJsb2NrL2NvbXBvbmVudHMvcmVzb3VyY2VzLWJsb2NrLXBhcnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBSZXNvdXJjZXNCbG9ja1BhcnRDb21wb25lbnQgfSBmcm9tICcuL3Jlc291cmNlcy1ibG9jay1wYXJ0LmNvbXBvbmVudCc7XG4iXX0=
|