@cuby-ui/core 0.0.446 → 0.0.448
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/alert-hint/alert-hint.component.d.ts +11 -0
- package/components/alert-hint/error-status.d.ts +1 -0
- package/components/alert-hint/index.d.ts +2 -0
- package/components/card-wrapper/card-wrapper.component.d.ts +2 -1
- package/components/content-header/content-header.component.d.ts +8 -0
- package/components/content-header/index.d.ts +1 -0
- package/components/index.d.ts +5 -0
- package/components/inserted/index.d.ts +1 -0
- package/components/inserted/inserted.component.d.ts +5 -0
- package/components/options-button/index.d.ts +1 -0
- package/components/options-button/options-button.component.d.ts +8 -0
- package/components/sidebar/sidebar-header/sidebar-header.component.d.ts +1 -1
- package/components/sidebar/sidebar-navigation-item/sidebar-navigation-item.component.d.ts +1 -1
- package/editor/utils/open-file-in-browser.d.ts +1 -1
- package/editor/utils/set-loading.d.ts +1 -1
- package/esm2022/components/alert-hint/alert-hint.component.mjs +28 -0
- package/esm2022/components/alert-hint/error-status.mjs +2 -0
- package/esm2022/components/alert-hint/index.mjs +2 -0
- package/esm2022/components/card-wrapper/card-wrapper.component.mjs +6 -4
- package/esm2022/components/content-header/content-header.component.mjs +19 -0
- package/esm2022/components/content-header/index.mjs +2 -0
- package/esm2022/components/index.mjs +6 -1
- package/esm2022/components/inserted/index.mjs +2 -0
- package/esm2022/components/inserted/inserted.component.mjs +15 -0
- package/esm2022/components/options-button/index.mjs +2 -0
- package/esm2022/components/options-button/options-button.component.mjs +20 -0
- package/esm2022/editor/editor.component.mjs +1 -1
- package/esm2022/editor/index.mjs +1 -1
- package/esm2022/editor/utils/open-file-in-browser.mjs +1 -1
- package/esm2022/editor/utils/set-loading.mjs +3 -3
- package/esm2022/index.mjs +1 -2
- package/esm2022/widgets/ui/inserted/index.mjs +2 -0
- package/esm2022/widgets/ui/inserted/inserted.component.mjs +17 -0
- package/esm2022/widgets/ui/modal-header/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-header/modal-header.component.mjs +31 -0
- package/fesm2022/cuby-ui-core.mjs +6174 -8834
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +4 -4
- package/styles/direcive/flex-container.scss +3 -0
- package/widgets/ui/inserted/index.d.ts +1 -0
- package/widgets/ui/inserted/inserted.component.d.ts +5 -0
- package/widgets/ui/modal-header/index.d.ts +1 -0
- package/widgets/ui/modal-header/modal-header.component.d.ts +12 -0
- package/esm2022/widgets/categories/categories.component.mjs +0 -76
- package/esm2022/widgets/categories/components/categories-list/categories-list.component.mjs +0 -17
- package/esm2022/widgets/categories/components/categories-list/index.mjs +0 -2
- package/esm2022/widgets/categories/components/category-form/category-form.component.mjs +0 -79
- package/esm2022/widgets/categories/components/category-form/index.mjs +0 -2
- package/esm2022/widgets/categories/components/category-item/category-item.component.mjs +0 -125
- package/esm2022/widgets/categories/components/category-item/index.mjs +0 -2
- package/esm2022/widgets/categories/components/create-category-item/create-category-item.component.mjs +0 -25
- package/esm2022/widgets/categories/components/create-category-item/index.mjs +0 -2
- package/esm2022/widgets/categories/components/index.mjs +0 -3
- package/esm2022/widgets/categories/index.mjs +0 -3
- package/esm2022/widgets/categories/services/index.mjs +0 -2
- package/esm2022/widgets/categories/services/selected-category.service.mjs +0 -38
- package/esm2022/widgets/checklist-block/checklist-block.component.mjs +0 -75
- package/esm2022/widgets/checklist-block/checklist-block.options.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list/checklist-block-list.component.mjs +0 -85
- package/esm2022/widgets/checklist-block/components/checklist-block-list/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-action-card/checklist-block-list-item-action-card.component.mjs +0 -133
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-action-card/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-action-with-verification/checklist-block-list-item-action-with-verification.component.mjs +0 -45
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-action-with-verification/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-action-without-verification/checklist-block-list-item-action-without-verification.component.mjs +0 -35
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-action-without-verification/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.mjs +0 -152
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.options.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-container/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.component.mjs +0 -282
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.options.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-evaluation/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.component.mjs +0 -117
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.options.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-list-item-evaluation-criteria/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/checklist-block-title-control/checklist-block-title-control.component.mjs +0 -39
- package/esm2022/widgets/checklist-block/components/checklist-block-title-control/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/components/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/index.mjs +0 -2
- package/esm2022/widgets/checklist-block/services/checklist-block.service.mjs +0 -50
- package/esm2022/widgets/checklist-block/services/index.mjs +0 -2
- package/esm2022/widgets/criterion-info/criterion-info.component.mjs +0 -137
- package/esm2022/widgets/criterion-info/index.mjs +0 -2
- package/esm2022/widgets/criterion-info-form/criterion-info-form.component.mjs +0 -147
- package/esm2022/widgets/criterion-info-form/criterion-info-form.options.mjs +0 -2
- package/esm2022/widgets/criterion-info-form/index.mjs +0 -2
- package/esm2022/widgets/criterion-readonly-info/criterion-readonly-info.component.mjs +0 -72
- package/esm2022/widgets/criterion-readonly-info/index.mjs +0 -2
- package/esm2022/widgets/delete-modal/delete-modal.component.mjs +0 -39
- package/esm2022/widgets/delete-modal/delete-modal.options.mjs +0 -2
- package/esm2022/widgets/delete-modal/index.mjs +0 -2
- package/esm2022/widgets/framer-preview/framer-preview.component.mjs +0 -77
- package/esm2022/widgets/framer-preview/framer-preview.options.mjs +0 -2
- package/esm2022/widgets/framer-preview/index.mjs +0 -2
- package/esm2022/widgets/general-control-error-hint/general-control-error-hint.component.mjs +0 -21
- package/esm2022/widgets/general-control-error-hint/index.mjs +0 -2
- package/esm2022/widgets/index.mjs +0 -15
- package/esm2022/widgets/instruction-info/index.mjs +0 -2
- package/esm2022/widgets/instruction-info/instruction-info.component.mjs +0 -147
- package/esm2022/widgets/instruction-info-form/index.mjs +0 -2
- package/esm2022/widgets/instruction-info-form/instruction-info-form.component.mjs +0 -153
- package/esm2022/widgets/instruction-info-form/instruction-info-form.options.mjs +0 -2
- package/esm2022/widgets/instruction-readonly-info/index.mjs +0 -2
- package/esm2022/widgets/instruction-readonly-info/instruction-readonly-info.component.mjs +0 -72
- package/esm2022/widgets/loader/index.mjs +0 -2
- package/esm2022/widgets/loader/loader.component.mjs +0 -36
- package/esm2022/widgets/select-modal/components/index.mjs +0 -3
- package/esm2022/widgets/select-modal/components/select-modal-folder/index.mjs +0 -2
- package/esm2022/widgets/select-modal/components/select-modal-folder/select-modal-folder.component.mjs +0 -21
- package/esm2022/widgets/select-modal/components/select-modal-search/index.mjs +0 -2
- package/esm2022/widgets/select-modal/components/select-modal-search/select-modal-search.component.mjs +0 -32
- package/esm2022/widgets/select-modal/index.mjs +0 -4
- package/esm2022/widgets/select-modal/select-modal.component.mjs +0 -35
- package/esm2022/widgets/select-modal/select-modal.interfaces.mjs +0 -2
- package/esm2022/widgets/select-modal/select-modal.service.mjs +0 -23
- package/esm2022/widgets/storage-list/components/index.mjs +0 -2
- package/esm2022/widgets/storage-list/components/storage-list-item/index.mjs +0 -2
- package/esm2022/widgets/storage-list/components/storage-list-item/storage-list-item.component.mjs +0 -87
- package/esm2022/widgets/storage-list/index.mjs +0 -3
- package/esm2022/widgets/storage-list/storage-list.component.mjs +0 -17
- package/esm2022/widgets/storage-list/storage-list.options.mjs +0 -3
- package/esm2022/widgets/user-action-context-menu/activity-item/activity-item.component.mjs +0 -61
- package/esm2022/widgets/user-action-context-menu/activity-item/index.mjs +0 -2
- package/esm2022/widgets/user-action-context-menu/company-item/company-item.component.mjs +0 -68
- package/esm2022/widgets/user-action-context-menu/company-item/index.mjs +0 -2
- package/esm2022/widgets/user-action-context-menu/constants/index.mjs +0 -2
- package/esm2022/widgets/user-action-context-menu/constants/translations.mjs +0 -5
- package/esm2022/widgets/user-action-context-menu/i18n/en.json +0 -12
- package/esm2022/widgets/user-action-context-menu/i18n/ru.json +0 -12
- package/esm2022/widgets/user-action-context-menu/index.mjs +0 -5
- package/esm2022/widgets/user-action-context-menu/services/activity-base.service.mjs +0 -32
- package/esm2022/widgets/user-action-context-menu/services/activity.service.mjs +0 -35
- package/esm2022/widgets/user-action-context-menu/services/index.mjs +0 -3
- package/esm2022/widgets/user-action-context-menu/user-action-context-menu.component.mjs +0 -83
- package/esm2022/widgets/user-action-context-menu/user-action-context.option.mjs +0 -3
- package/esm2022/widgets/utility-modal/components/criterion-modal-create/criterion-modal-create.component.mjs +0 -41
- package/esm2022/widgets/utility-modal/components/criterion-modal-create/index.mjs +0 -2
- package/esm2022/widgets/utility-modal/components/index.mjs +0 -5
- package/esm2022/widgets/utility-modal/components/instruction-modal-create/index.mjs +0 -2
- package/esm2022/widgets/utility-modal/components/instruction-modal-create/instruction-modal-create.component.mjs +0 -41
- package/esm2022/widgets/utility-modal/components/readonly-criterion-modal/index.mjs +0 -2
- package/esm2022/widgets/utility-modal/components/readonly-criterion-modal/readonly-criterion-modal.component.mjs +0 -40
- package/esm2022/widgets/utility-modal/components/readonly-instruction-modal/index.mjs +0 -2
- package/esm2022/widgets/utility-modal/components/readonly-instruction-modal/readonly-instruction-modal.component.mjs +0 -40
- package/esm2022/widgets/utility-modal/components/readonly-utility-modal/index.mjs +0 -2
- package/esm2022/widgets/utility-modal/components/readonly-utility-modal/readonly-utility-modal.component.mjs +0 -43
- package/esm2022/widgets/utility-modal/components/utility-modal-create/index.mjs +0 -2
- package/esm2022/widgets/utility-modal/components/utility-modal-create/utility-modal-create.component.mjs +0 -55
- package/esm2022/widgets/utility-modal/index.mjs +0 -4
- package/esm2022/widgets/utility-modal/utility-modal.component.mjs +0 -22
- package/esm2022/widgets/utility-modal/utility-modal.options.mjs +0 -3
- package/esm2022/widgets/utility-readonly-thumbnail/index.mjs +0 -2
- package/esm2022/widgets/utility-readonly-thumbnail/utility-readonly-thumbnail.component.mjs +0 -15
- package/esm2022/widgets/utility-thumbnail/index.mjs +0 -2
- package/esm2022/widgets/utility-thumbnail/utility-thumbnail.component.mjs +0 -94
- package/fesm2022/cuby-ui-core-en-D0un3--2.mjs +0 -25
- package/fesm2022/cuby-ui-core-en-D0un3--2.mjs.map +0 -1
- package/fesm2022/cuby-ui-core-ru-CMm--FpA.mjs +0 -25
- package/fesm2022/cuby-ui-core-ru-CMm--FpA.mjs.map +0 -1
- package/widgets/categories/categories.component.d.ts +0 -25
- package/widgets/categories/components/categories-list/categories-list.component.d.ts +0 -8
- package/widgets/categories/components/categories-list/index.d.ts +0 -1
- package/widgets/categories/components/category-form/category-form.component.d.ts +0 -28
- package/widgets/categories/components/category-form/index.d.ts +0 -1
- package/widgets/categories/components/category-item/category-item.component.d.ts +0 -42
- package/widgets/categories/components/category-item/index.d.ts +0 -1
- package/widgets/categories/components/create-category-item/create-category-item.component.d.ts +0 -10
- package/widgets/categories/components/create-category-item/index.d.ts +0 -1
- package/widgets/categories/components/index.d.ts +0 -2
- package/widgets/categories/index.d.ts +0 -2
- package/widgets/categories/services/index.d.ts +0 -1
- package/widgets/categories/services/selected-category.service.d.ts +0 -18
- package/widgets/checklist-block/checklist-block.component.d.ts +0 -21
- package/widgets/checklist-block/checklist-block.options.d.ts +0 -12
- package/widgets/checklist-block/components/checklist-block-list/checklist-block-list.component.d.ts +0 -27
- package/widgets/checklist-block/components/checklist-block-list/index.d.ts +0 -1
- package/widgets/checklist-block/components/checklist-block-list-item-action-card/checklist-block-list-item-action-card.component.d.ts +0 -30
- package/widgets/checklist-block/components/checklist-block-list-item-action-card/index.d.ts +0 -1
- package/widgets/checklist-block/components/checklist-block-list-item-action-with-verification/checklist-block-list-item-action-with-verification.component.d.ts +0 -11
- package/widgets/checklist-block/components/checklist-block-list-item-action-with-verification/index.d.ts +0 -1
- package/widgets/checklist-block/components/checklist-block-list-item-action-without-verification/checklist-block-list-item-action-without-verification.component.d.ts +0 -10
- package/widgets/checklist-block/components/checklist-block-list-item-action-without-verification/index.d.ts +0 -1
- package/widgets/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.d.ts +0 -41
- package/widgets/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.options.d.ts +0 -5
- package/widgets/checklist-block/components/checklist-block-list-item-container/index.d.ts +0 -1
- package/widgets/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.component.d.ts +0 -51
- package/widgets/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.options.d.ts +0 -14
- package/widgets/checklist-block/components/checklist-block-list-item-evaluation/index.d.ts +0 -2
- package/widgets/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.component.d.ts +0 -33
- package/widgets/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.options.d.ts +0 -4
- package/widgets/checklist-block/components/checklist-block-list-item-evaluation-criteria/index.d.ts +0 -1
- package/widgets/checklist-block/components/checklist-block-title-control/checklist-block-title-control.component.d.ts +0 -8
- package/widgets/checklist-block/components/checklist-block-title-control/index.d.ts +0 -1
- package/widgets/checklist-block/components/index.d.ts +0 -1
- package/widgets/checklist-block/index.d.ts +0 -1
- package/widgets/checklist-block/services/checklist-block.service.d.ts +0 -19
- package/widgets/checklist-block/services/index.d.ts +0 -1
- package/widgets/criterion-info/criterion-info.component.d.ts +0 -43
- package/widgets/criterion-info/index.d.ts +0 -1
- package/widgets/criterion-info-form/criterion-info-form.component.d.ts +0 -39
- package/widgets/criterion-info-form/criterion-info-form.options.d.ts +0 -7
- package/widgets/criterion-info-form/index.d.ts +0 -2
- package/widgets/criterion-readonly-info/criterion-readonly-info.component.d.ts +0 -26
- package/widgets/criterion-readonly-info/index.d.ts +0 -1
- package/widgets/delete-modal/delete-modal.component.d.ts +0 -13
- package/widgets/delete-modal/delete-modal.options.d.ts +0 -7
- package/widgets/delete-modal/index.d.ts +0 -2
- package/widgets/framer-preview/framer-preview.component.d.ts +0 -26
- package/widgets/framer-preview/framer-preview.options.d.ts +0 -5
- package/widgets/framer-preview/index.d.ts +0 -2
- package/widgets/general-control-error-hint/general-control-error-hint.component.d.ts +0 -9
- package/widgets/general-control-error-hint/index.d.ts +0 -1
- package/widgets/index.d.ts +0 -14
- package/widgets/instruction-info/index.d.ts +0 -1
- package/widgets/instruction-info/instruction-info.component.d.ts +0 -45
- package/widgets/instruction-info-form/index.d.ts +0 -2
- package/widgets/instruction-info-form/instruction-info-form.component.d.ts +0 -43
- package/widgets/instruction-info-form/instruction-info-form.options.d.ts +0 -9
- package/widgets/instruction-readonly-info/index.d.ts +0 -1
- package/widgets/instruction-readonly-info/instruction-readonly-info.component.d.ts +0 -26
- package/widgets/loader/index.d.ts +0 -1
- package/widgets/loader/loader.component.d.ts +0 -20
- package/widgets/select-modal/components/index.d.ts +0 -2
- package/widgets/select-modal/components/select-modal-folder/index.d.ts +0 -1
- package/widgets/select-modal/components/select-modal-folder/select-modal-folder.component.d.ts +0 -10
- package/widgets/select-modal/components/select-modal-search/index.d.ts +0 -1
- package/widgets/select-modal/components/select-modal-search/select-modal-search.component.d.ts +0 -12
- package/widgets/select-modal/index.d.ts +0 -3
- package/widgets/select-modal/select-modal.component.d.ts +0 -13
- package/widgets/select-modal/select-modal.interfaces.d.ts +0 -15
- package/widgets/select-modal/select-modal.service.d.ts +0 -13
- package/widgets/storage-list/components/index.d.ts +0 -1
- package/widgets/storage-list/components/storage-list-item/index.d.ts +0 -1
- package/widgets/storage-list/components/storage-list-item/storage-list-item.component.d.ts +0 -24
- package/widgets/storage-list/index.d.ts +0 -2
- package/widgets/storage-list/storage-list.component.d.ts +0 -10
- package/widgets/storage-list/storage-list.options.d.ts +0 -16
- package/widgets/user-action-context-menu/activity-item/activity-item.component.d.ts +0 -17
- package/widgets/user-action-context-menu/activity-item/index.d.ts +0 -1
- package/widgets/user-action-context-menu/company-item/company-item.component.d.ts +0 -22
- package/widgets/user-action-context-menu/company-item/index.d.ts +0 -1
- package/widgets/user-action-context-menu/constants/index.d.ts +0 -1
- package/widgets/user-action-context-menu/constants/translations.d.ts +0 -2
- package/widgets/user-action-context-menu/index.d.ts +0 -4
- package/widgets/user-action-context-menu/services/activity-base.service.d.ts +0 -14
- package/widgets/user-action-context-menu/services/activity.service.d.ts +0 -14
- package/widgets/user-action-context-menu/services/index.d.ts +0 -2
- package/widgets/user-action-context-menu/user-action-context-menu.component.d.ts +0 -29
- package/widgets/user-action-context-menu/user-action-context.option.d.ts +0 -15
- package/widgets/utility-modal/components/criterion-modal-create/criterion-modal-create.component.d.ts +0 -18
- package/widgets/utility-modal/components/criterion-modal-create/index.d.ts +0 -1
- package/widgets/utility-modal/components/index.d.ts +0 -4
- package/widgets/utility-modal/components/instruction-modal-create/index.d.ts +0 -1
- package/widgets/utility-modal/components/instruction-modal-create/instruction-modal-create.component.d.ts +0 -18
- package/widgets/utility-modal/components/readonly-criterion-modal/index.d.ts +0 -1
- package/widgets/utility-modal/components/readonly-criterion-modal/readonly-criterion-modal.component.d.ts +0 -16
- package/widgets/utility-modal/components/readonly-instruction-modal/index.d.ts +0 -1
- package/widgets/utility-modal/components/readonly-instruction-modal/readonly-instruction-modal.component.d.ts +0 -16
- package/widgets/utility-modal/components/readonly-utility-modal/index.d.ts +0 -1
- package/widgets/utility-modal/components/readonly-utility-modal/readonly-utility-modal.component.d.ts +0 -18
- package/widgets/utility-modal/components/utility-modal-create/index.d.ts +0 -1
- package/widgets/utility-modal/components/utility-modal-create/utility-modal-create.component.d.ts +0 -25
- package/widgets/utility-modal/index.d.ts +0 -3
- package/widgets/utility-modal/utility-modal.component.d.ts +0 -10
- package/widgets/utility-modal/utility-modal.options.d.ts +0 -12
- package/widgets/utility-readonly-thumbnail/index.d.ts +0 -1
- package/widgets/utility-readonly-thumbnail/utility-readonly-thumbnail.component.d.ts +0 -8
- package/widgets/utility-thumbnail/index.d.ts +0 -1
- package/widgets/utility-thumbnail/utility-thumbnail.component.d.ts +0 -21
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, computed, inject, input, signal } from '@angular/core';
|
|
3
|
-
import { TranslocoDirective } from '@jsverse/transloco';
|
|
4
|
-
import { CUI_WINDOW } from '@cuby-ui/cdk';
|
|
5
|
-
import { CUI_DIALOG_CONTEXT, CuiButtonModule, CuiSvgModule } from '../../../../components';
|
|
6
|
-
import { CuiLoaderComponent } from '../../../loader';
|
|
7
|
-
import { UTILITY_MODAL_SERVICE_TOKEN } from '../../utility-modal.options';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../../../components/button/button.component";
|
|
10
|
-
export class CuiUtilityModalCreateComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.window = inject(CUI_WINDOW);
|
|
13
|
-
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
14
|
-
this.utilityModalService = inject(UTILITY_MODAL_SERVICE_TOKEN);
|
|
15
|
-
this.prevUtility = this.cuiDialogContext.data.utility;
|
|
16
|
-
this.editorResourceUrl = this.cuiDialogContext.data.editorResourceUrl;
|
|
17
|
-
this.tools = this.cuiDialogContext.data.tools;
|
|
18
|
-
this.header = this.cuiDialogContext.data.header;
|
|
19
|
-
this._utility = computed(() => signal(this.initialUtility()));
|
|
20
|
-
this.isFormValid = signal(false);
|
|
21
|
-
this.utility = computed(() => this._utility()());
|
|
22
|
-
this.initialUtility = input.required();
|
|
23
|
-
}
|
|
24
|
-
ngOnInit() {
|
|
25
|
-
this.initWindowUnloadEvent();
|
|
26
|
-
}
|
|
27
|
-
ngOnDestroy() {
|
|
28
|
-
this.window.onbeforeunload = null;
|
|
29
|
-
}
|
|
30
|
-
onSave() {
|
|
31
|
-
this.cuiDialogContext.completeWith(this.initialUtility() ? { prevId: this.prevUtility.id, ...this.utility() } : this.utility());
|
|
32
|
-
}
|
|
33
|
-
onCancel() {
|
|
34
|
-
this.destroyUtility();
|
|
35
|
-
const returnedValue = this.initialUtility() ? this.utility() : null;
|
|
36
|
-
this.cuiDialogContext.completeWith(returnedValue);
|
|
37
|
-
}
|
|
38
|
-
initWindowUnloadEvent() {
|
|
39
|
-
this.window.onbeforeunload = () => this.destroyUtility();
|
|
40
|
-
}
|
|
41
|
-
destroyUtility() {
|
|
42
|
-
const utility = this.utility();
|
|
43
|
-
if (!utility || this.initialUtility()) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
this.utilityModalService.deleteUtility(utility).subscribe();
|
|
47
|
-
}
|
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityModalCreateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
49
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiUtilityModalCreateComponent, isStandalone: true, selector: "cui-utility-modal-create", inputs: { initialUtility: { classPropertyName: "initialUtility", publicName: "initialUtility", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"wrapper\"\n *transloco=\"let t\"\n>\n <header class=\"header\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n\n <div class=\"header__content\">\n <cui-loader />\n\n <div class=\"actions\">\n @if (!initialUtility()) {\n <button\n type=\"button\"\n cuiButton\n appearance=\"secondary\"\n (click)=\"onCancel()\"\n >\n {{ t('CANCEL') }}\n </button>\n }\n\n <button\n type=\"button\"\n cuiButton\n [disabled]=\"!isFormValid()\"\n appearance=\"action-violet\"\n (click)=\"onSave()\"\n >\n {{ t('DONE') }}\n </button>\n </div>\n </div>\n </header>\n\n <ng-content />\n</div>\n", styles: [".header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px}.header__content{display:flex;gap:8px}.actions{display:flex;gap:16px}\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: "component", type: CuiLoaderComponent, selector: "cui-loader" }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
50
|
-
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityModalCreateComponent, decorators: [{
|
|
52
|
-
type: Component,
|
|
53
|
-
args: [{ selector: 'cui-utility-modal-create', imports: [CuiButtonModule, CuiLoaderComponent, CuiSvgModule, NgTemplateOutlet, TranslocoDirective], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"wrapper\"\n *transloco=\"let t\"\n>\n <header class=\"header\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n\n <div class=\"header__content\">\n <cui-loader />\n\n <div class=\"actions\">\n @if (!initialUtility()) {\n <button\n type=\"button\"\n cuiButton\n appearance=\"secondary\"\n (click)=\"onCancel()\"\n >\n {{ t('CANCEL') }}\n </button>\n }\n\n <button\n type=\"button\"\n cuiButton\n [disabled]=\"!isFormValid()\"\n appearance=\"action-violet\"\n (click)=\"onSave()\"\n >\n {{ t('DONE') }}\n </button>\n </div>\n </div>\n </header>\n\n <ng-content />\n</div>\n", styles: [".header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px}.header__content{display:flex;gap:8px}.actions{display:flex;gap:16px}\n"] }]
|
|
54
|
-
}] });
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1tb2RhbC1jcmVhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3V0aWxpdHktbW9kYWwvY29tcG9uZW50cy91dGlsaXR5LW1vZGFsLWNyZWF0ZS91dGlsaXR5LW1vZGFsLWNyZWF0ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3V0aWxpdHktbW9kYWwtY3JlYXRlL3V0aWxpdHktbW9kYWwtY3JlYXRlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRW5ELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQ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oKTtcbiAgICB9XG59XG4iLCI8ZGl2XG4gICAgY2xhc3M9XCJ3cmFwcGVyXCJcbiAgICAqdHJhbnNsb2NvPVwibGV0IHRcIlxuPlxuICAgIDxoZWFkZXIgY2xhc3M9XCJoZWFkZXJcIj5cbiAgICAgICAgPG5nLWNvbnRhaW5lciBbbmdUZW1wbGF0ZU91dGxldF09XCJoZWFkZXJcIiAvPlxuXG4gICAgICAgIDxkaXYgY2xhc3M9XCJoZWFkZXJfX2NvbnRlbnRcIj5cbiAgICAgICAgICAgIDxjdWktbG9hZGVyIC8+XG5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJhY3Rpb25zXCI+XG4gICAgICAgICAgICAgICAgQGlmICghaW5pdGlhbFV0aWxpdHkoKSkge1xuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1aUJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cInNlY29uZGFyeVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwib25DYW5jZWwoKVwiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgIHt7IHQoJ0NBTkNFTCcpIH19XG4gICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgIGN1aUJ1dHRvblxuICAgICAgICAgICAgICAgICAgICBbZGlzYWJsZWRdPVwiIWlzRm9ybVZhbGlkKClcIlxuICAgICAgICAgICAgICAgICAgICBhcHBlYXJhbmNlPVwiYWN0aW9uLXZpb2xldFwiXG4gICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJvblNhdmUoKVwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7eyB0KCdET05FJykgfX1cbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2hlYWRlcj5cblxuICAgIDxuZy1jb250ZW50IC8+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
2
|
-
export { CuiUtilityModalComponent } from './utility-modal.component';
|
|
3
|
-
export * from './utility-modal.options';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdXRpbGl0eS1tb2RhbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNyRSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnRzJztcbmV4cG9ydCB7IEN1aVV0aWxpdHlNb2RhbENvbXBvbmVudCB9IGZyb20gJy4vdXRpbGl0eS1tb2RhbC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi91dGlsaXR5LW1vZGFsLm9wdGlvbnMnO1xuIl19
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, inject } from '@angular/core';
|
|
2
|
-
import { CUI_DIALOG_CONTEXT, CuiRenderDynamicComponentsComponent, CuiRenderDynamicComponentsService } from '../../components';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class CuiUtilityModalComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
7
|
-
this.cuiRenderDynamicComponentsService = inject(CuiRenderDynamicComponentsService);
|
|
8
|
-
this.utility = this.cuiDialogContext.data.utility;
|
|
9
|
-
this.initialComponent = this.cuiDialogContext.data.initialComponent;
|
|
10
|
-
this.cuiRenderDynamicComponentsService.open({
|
|
11
|
-
component: this.initialComponent,
|
|
12
|
-
inputs: { initialUtility: this.utility }
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CuiUtilityModalComponent, isStandalone: true, selector: "cui-utility-modal", providers: [CuiRenderDynamicComponentsService], ngImport: i0, template: "<cui-render-dynamic-components />\n", styles: [".host{display:block;height:calc(100vh - 40px)}\n"], dependencies: [{ kind: "component", type: CuiRenderDynamicComponentsComponent, selector: "cui-render-dynamic-components" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityModalComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ selector: 'cui-utility-modal', imports: [CuiRenderDynamicComponentsComponent], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [CuiRenderDynamicComponentsService], template: "<cui-render-dynamic-components />\n", styles: [".host{display:block;height:calc(100vh - 40px)}\n"] }]
|
|
21
|
-
}], ctorParameters: () => [] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290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JQUxPR19DT05URVhUKTtcbiAgICBwcml2YXRlIHJlYWRvbmx5IGN1aVJlbmRlckR5bmFtaWNDb21wb25lbnRzU2VydmljZSA9IGluamVjdChDdWlSZW5kZXJEeW5hbWljQ29tcG9uZW50c1NlcnZpY2UpO1xuXG4gICAgcHJvdGVjdGVkIHJlYWRvbmx5IHV0aWxpdHkgPSB0aGlzLmN1aURpYWxvZ0NvbnRleHQuZGF0YS51dGlsaXR5O1xuICAgIHByb3RlY3RlZCByZWFkb25seSBpbml0aWFsQ29tcG9uZW50ID0gdGhpcy5jdWlEaWFsb2dDb250ZXh0LmRhdGEuaW5pdGlhbENvbXBvbmVudDtcblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICB0aGlzLmN1aVJlbmRlckR5bmFtaWNDb21wb25lbnRzU2VydmljZS5vcGVuKHtcbiAgICAgICAgICAgIGNvbXBvbmVudDogdGhpcy5pbml0aWFsQ29tcG9uZW50LFxuICAgICAgICAgICAgaW5wdXRzOiB7IGluaXRpYWxVdGlsaXR5OiB0aGlzLnV0aWxpdHkgfVxuICAgICAgICB9KTtcbiAgICB9XG59XG4iLCI8Y3VpLXJlbmRlci1keW5hbWljLWNvbXBvbmVudHMgLz5cbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const UTILITY_MODAL_SERVICE_TOKEN = new InjectionToken('UTILITY_MODAL_SERVICE_TOKEN');
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1tb2RhbC5vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3V0aWxpdHktbW9kYWwvdXRpbGl0eS1tb2RhbC5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR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WdlT2JqZWN0PFQ+KTogT2JzZXJ2YWJsZTx2b2lkPjtcbn1cblxuZXhwb3J0IHR5cGUgVXRpbGl0eUVsZW1lbnQgPSBJbnN0cnVjdGlvbiB8IENyaXRlcmlvbjtcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { CuiUtilityReadonlyThumbnailComponent } from './utility-readonly-thumbnail.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdXRpbGl0eS1yZWFkb25seS10aHVtYm5haWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG9DQUFvQyxFQUFFLE1BQU0sd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlVdGlsaXR5UmVhZG9ubHlUaHVtYm5haWxDb21wb25lbnQgfSBmcm9tICcuL3V0aWxpdHktcmVhZG9ubHktdGh1bWJuYWlsLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class CuiUtilityReadonlyThumbnailComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.thumbnailUrl = input.required();
|
|
6
|
-
this.isVideo = input(false);
|
|
7
|
-
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityReadonlyThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiUtilityReadonlyThumbnailComponent, isStandalone: true, selector: "cui-utility-readonly-thumbnail", inputs: { thumbnailUrl: { classPropertyName: "thumbnailUrl", publicName: "thumbnailUrl", isSignal: true, isRequired: true, transformFunction: null }, isVideo: { classPropertyName: "isVideo", publicName: "isVideo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let url = thumbnailUrl();\n\n@if (url?.src; as src) {\n @if (isVideo()) {\n <video\n class=\"thumbnail\"\n [src]=\"src\"\n controls\n ></video>\n } @else {\n <img\n class=\"thumbnail\"\n [src]=\"src\"\n [alt]=\"url?.name\"\n />\n }\n}\n", styles: [".thumbnail{width:100%;max-height:271px;object-fit:contain}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityReadonlyThumbnailComponent, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: 'cui-utility-readonly-thumbnail', imports: [], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@let url = thumbnailUrl();\n\n@if (url?.src; as src) {\n @if (isVideo()) {\n <video\n class=\"thumbnail\"\n [src]=\"src\"\n controls\n ></video>\n } @else {\n <img\n class=\"thumbnail\"\n [src]=\"src\"\n [alt]=\"url?.name\"\n />\n }\n}\n", styles: [".thumbnail{width:100%;max-height:271px;object-fit:contain}\n"] }]
|
|
14
|
-
}] });
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1yZWFkb25seS10aHVtYm5haWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3V0aWxpdHktcmVhZG9ubHktdGh1bWJuYWlsL3V0aWxpdHktcmVhZG9ubHktdGh1bWJuYWlsLmNvbXBvb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lsLmNvbXBvbmVudC5zY3NzJyxcbiAgICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBDdWlVdGlsaXR5UmVhZG9ubHlUaHVtYm5haWxDb21wb25lbnQge1xuICAgIHB1YmxpYyByZWFkb25seSB0aHVtYm5haWxVcmwgPSBpbnB1dC5yZXF1aXJlZDxDdWlJbWdVcmw+KCk7XG4gICAgcHVibGljIHJlYWRvbmx5IGlzVmlkZW8gPSBpbnB1dChmYWxzZSk7XG59XG4iLCJAbGV0IHVybCA9IHRodW1ibmFpbFVybCgpO1xuXG5AaWYgKHVybD8uc3JjOyBhcyBzcmMpIHtcbiAgICBAaWYgKGlzVmlkZW8oKSkge1xuICAgICAgICA8dmlkZW9cbiAgICAgICAgICAgIGNsYXNzPVwidGh1bWJuYWlsXCJcbiAgICAgICAgICAgIFtzcmNdPVwic3JjXCJcbiAgICAgICAgICAgIGNvbnRyb2xzXG4gICAgICAgID48L3ZpZGVvPlxuICAgIH0gQGVsc2Uge1xuICAgICAgICA8aW1nXG4gICAgICAgICAgICBjbGFzcz1cInRodW1ibmFpbFwiXG4gICAgICAgICAgICBbc3JjXT1cInNyY1wiXG4gICAgICAgICAgICBbYWx0XT1cInVybD8ubmFtZVwiXG4gICAgICAgIC8+XG4gICAgfVxufVxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { CuiUtilityThumbnailComponent } from './utility-thumbnail.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdXRpbGl0eS10aHVtYm5haWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlVdGlsaXR5VGh1bWJuYWlsQ29tcG9uZW50IH0gZnJvbSAnLi91dGlsaXR5LXRodW1ibmFpbC5jb21wb25lbnQnO1xuIl19
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed, inject, input, model } from '@angular/core';
|
|
2
|
-
import { TranslocoDirective, TranslocoService } from '@jsverse/transloco';
|
|
3
|
-
import { CuiFrameApiService } from '@cuby-ui/api';
|
|
4
|
-
import { FilesUploader, takeCaptureFromVideo } from '@cuby-ui/cdk';
|
|
5
|
-
import { CuiAlertService } from '../../components';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class CuiUtilityThumbnailComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.cuiAlertService = inject(CuiAlertService);
|
|
10
|
-
this.translocoService = inject(TranslocoService);
|
|
11
|
-
this.frameApiService = inject(CuiFrameApiService);
|
|
12
|
-
this.MAX_FILE_SIZE = 20971520;
|
|
13
|
-
this.thumbnailUrl = computed(() => {
|
|
14
|
-
const thumbnail = this.thumbnail();
|
|
15
|
-
if (thumbnail?.resource) {
|
|
16
|
-
return thumbnail.resource;
|
|
17
|
-
}
|
|
18
|
-
return this.baseResourceUrl() + thumbnail.fileId;
|
|
19
|
-
});
|
|
20
|
-
this.uploadButtonName = computed(() => {
|
|
21
|
-
const thumbnail = this.thumbnail();
|
|
22
|
-
if (thumbnail?.name) {
|
|
23
|
-
return this.translocoService.translate('REPLACE_FILE');
|
|
24
|
-
}
|
|
25
|
-
return this.translocoService.translate('UPLOAD_FILE');
|
|
26
|
-
});
|
|
27
|
-
this.thumbnail = model.required();
|
|
28
|
-
this.framerId = input.required();
|
|
29
|
-
this.baseResourceUrl = input.required();
|
|
30
|
-
}
|
|
31
|
-
onSelectFile() {
|
|
32
|
-
const types = 'image/jpg, image/jpeg, image/png, video/mp4';
|
|
33
|
-
FilesUploader.uploadFile(types).then((files) => this.getFile(files));
|
|
34
|
-
}
|
|
35
|
-
onRemoveThumbnail() {
|
|
36
|
-
const frameId = this.framerId();
|
|
37
|
-
const fragmentId = this.thumbnail()?.id;
|
|
38
|
-
if (!frameId || !fragmentId) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
this.frameApiService.deleteResource(frameId, fragmentId).subscribe(() => {
|
|
42
|
-
this.thumbnail.update((prev) => ({ ...prev, fileId: null, name: null, resource: null }));
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
getFile(files) {
|
|
46
|
-
const file = files.item(0);
|
|
47
|
-
if (!file) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (file.size > this.MAX_FILE_SIZE) {
|
|
51
|
-
this.cuiAlertService
|
|
52
|
-
.open(this.translocoService.translate('INVALID_FILE_SIZE'), {
|
|
53
|
-
status: 'error'
|
|
54
|
-
})
|
|
55
|
-
.subscribe();
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const isVideo = file.name.split('.').at(-1) === 'mp4';
|
|
59
|
-
const url = URL.createObjectURL(file);
|
|
60
|
-
if (isVideo) {
|
|
61
|
-
this.getCaptureFromVideo(url, file);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
this.thumbnail.update((prev) => ({ ...prev, name: file.name, resource: url }));
|
|
65
|
-
}
|
|
66
|
-
this.uploadFile(file);
|
|
67
|
-
}
|
|
68
|
-
uploadFile(file) {
|
|
69
|
-
const frameId = this.framerId();
|
|
70
|
-
const fragmentId = this.thumbnail()?.id;
|
|
71
|
-
if (!frameId || !fragmentId) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const formData = new FormData();
|
|
75
|
-
formData.append('resource', file);
|
|
76
|
-
this.frameApiService.uploadResource(formData, frameId, fragmentId).subscribe();
|
|
77
|
-
}
|
|
78
|
-
getCaptureFromVideo(url, file) {
|
|
79
|
-
takeCaptureFromVideo(url).then((capture) => {
|
|
80
|
-
this.thumbnail.update((prev) => ({
|
|
81
|
-
...prev,
|
|
82
|
-
name: (file?.name || prev?.name),
|
|
83
|
-
resource: capture
|
|
84
|
-
}));
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
88
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiUtilityThumbnailComponent, isStandalone: true, selector: "cui-utility-thumbnail", inputs: { thumbnail: { classPropertyName: "thumbnail", publicName: "thumbnail", isSignal: true, isRequired: true, transformFunction: null }, framerId: { classPropertyName: "framerId", publicName: "framerId", isSignal: true, isRequired: true, transformFunction: null }, baseResourceUrl: { classPropertyName: "baseResourceUrl", publicName: "baseResourceUrl", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { thumbnail: "thumbnailChange" }, ngImport: i0, template: "<section\n *transloco=\"let t\"\n class=\"file\"\n>\n <span class=\"title\">{{ t('THUMBNAIL') }}</span>\n <div class=\"upload\">\n <div class=\"upload-file\">\n @if (thumbnail()?.name; as fileId) {\n <div class=\"image\">\n <span class=\"image__name\">{{ thumbnail()?.name }}</span>\n <!-- TODO: ngSrc -->\n <img\n class=\"image__view\"\n [src]=\"thumbnailUrl()\"\n height=\"120\"\n width=\"184\"\n alt=\"Thumbnail\"\n />\n </div>\n }\n <div class=\"info\">\n <button\n type=\"button\"\n cuiButton\n appearance=\"outlined-gray\"\n size=\"xxs\"\n icon=\"cuiIconUpload\"\n (click)=\"onSelectFile()\"\n >\n {{ uploadButtonName() }}\n </button>\n @if (thumbnail()?.name) {\n <button\n class=\"remove-button\"\n cuiButton\n appearance=\"link\"\n size=\"sm\"\n type=\"button\"\n (click)=\"onRemoveThumbnail()\"\n >\n {{ t('REMOVE') }}\n </button>\n }\n\n <span class=\"accepted\">{{ t('ACCEPTED') }}: JPG, JPEG, PNG, MP4 {{ t('UP_TO') }} 20MB</span>\n </div>\n </div>\n </div>\n</section>\n", styles: [".file{display:flex;flex-direction:column;gap:4px}.title{font-weight:500;font-size:14px;line-height:20px;display:flex;gap:2px}.title_required{color:var(--cui-danger)}.upload{padding:12px 16px;border-radius:8px;border:1px solid var(--cui-base-200);background:var(--cui-base-10)}.upload-file{display:flex;align-items:center;gap:8px}.upload-file input[type=file]{display:none}.info{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.accepted{color:var(--cui-base-500)}.remove-button ::ng-deep .c-content{color:var(--cui-danger)!important}.image{position:relative;display:inline-block}.image__view{border-radius:8px;object-fit:cover}.image__name{position:absolute;top:6px;left:14px;color:var(--cui-base-0);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px;z-index:1}.image:after{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0003;z-index:0;pointer-events:none;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
89
|
-
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityThumbnailComponent, decorators: [{
|
|
91
|
-
type: Component,
|
|
92
|
-
args: [{ selector: 'cui-utility-thumbnail', imports: [TranslocoDirective], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<section\n *transloco=\"let t\"\n class=\"file\"\n>\n <span class=\"title\">{{ t('THUMBNAIL') }}</span>\n <div class=\"upload\">\n <div class=\"upload-file\">\n @if (thumbnail()?.name; as fileId) {\n <div class=\"image\">\n <span class=\"image__name\">{{ thumbnail()?.name }}</span>\n <!-- TODO: ngSrc -->\n <img\n class=\"image__view\"\n [src]=\"thumbnailUrl()\"\n height=\"120\"\n width=\"184\"\n alt=\"Thumbnail\"\n />\n </div>\n }\n <div class=\"info\">\n <button\n type=\"button\"\n cuiButton\n appearance=\"outlined-gray\"\n size=\"xxs\"\n icon=\"cuiIconUpload\"\n (click)=\"onSelectFile()\"\n >\n {{ uploadButtonName() }}\n </button>\n @if (thumbnail()?.name) {\n <button\n class=\"remove-button\"\n cuiButton\n appearance=\"link\"\n size=\"sm\"\n type=\"button\"\n (click)=\"onRemoveThumbnail()\"\n >\n {{ t('REMOVE') }}\n </button>\n }\n\n <span class=\"accepted\">{{ t('ACCEPTED') }}: JPG, JPEG, PNG, MP4 {{ t('UP_TO') }} 20MB</span>\n </div>\n </div>\n </div>\n</section>\n", styles: [".file{display:flex;flex-direction:column;gap:4px}.title{font-weight:500;font-size:14px;line-height:20px;display:flex;gap:2px}.title_required{color:var(--cui-danger)}.upload{padding:12px 16px;border-radius:8px;border:1px solid var(--cui-base-200);background:var(--cui-base-10)}.upload-file{display:flex;align-items:center;gap:8px}.upload-file input[type=file]{display:none}.info{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.accepted{color:var(--cui-base-500)}.remove-button ::ng-deep .c-content{color:var(--cui-danger)!important}.image{position:relative;display:inline-block}.image__view{border-radius:8px;object-fit:cover}.image__name{position:absolute;top:6px;left:14px;color:var(--cui-base-0);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px;z-index:1}.image:after{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0003;z-index:0;pointer-events:none;border-radius:8px}\n"] }]
|
|
93
|
-
}] });
|
|
94
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS10aHVtYm5haWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3V0aWxpdHktdGh1bW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ICAgICB0YWtlQ2FwdHVyZUZyb21WaWRlbyh1cmwpLnRoZW4oKGNhcHR1cmUpID0+IHtcbiAgICAgICAgICAgIHRoaXMudGh1bWJuYWlsLnVwZGF0ZSgocHJldikgPT4gKHtcbiAgICAgICAgICAgICAgICAuLi5wcmV2ISxcbiAgICAgICAgICAgICAgICBuYW1lOiAoZmlsZT8ubmFtZSB8fCBwcmV2Py5uYW1lKSEsXG4gICAgICAgICAgICAgICAgcmVzb3VyY2U6IGNhcHR1cmVcbiAgICAgICAgICAgIH0pKTtcbiAgICAgICAgfSk7XG4gICAgfVxufVxuIiwiPHNlY3Rpb25cbiAgICAqdHJhbnNsb2NvPVwibGV0IHRcIlxuICAgIGNsYXNzPVwiZmlsZVwiXG4+XG4gICAgPHNwYW4gY2xhc3M9XCJ0aXRsZVwiPnt7IHQoJ1RIVU1CTkFJTCcpIH19PC9zcGFuPlxuICAgIDxkaXYgY2xhc3M9XCJ1cGxvYWRcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cInVwbG9hZC1maWxlXCI+XG4gICAgICAgICAgICBAaWYgKHRodW1ibmFpbCgpPy5uYW1lOyBhcyBmaWxlSWQpIHtcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaW1hZ2VcIj5cbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJpbWFnZV9fbmFtZVwiPnt7IHRodW1ibmFpbCgpPy5uYW1lIH19PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8IS0tIFRPRE86IG5nU3JjIC0tPlxuICAgICAgICAgICAgICAgICAgICA8aW1nXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImltYWdlX192aWV3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtzcmNdPVwidGh1bWJuYWlsVXJsKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0PVwiMTIwXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoPVwiMTg0XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsdD1cIlRodW1ibmFpbFwiXG4gICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaW5mb1wiPlxuICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgIGN1aUJ1dHRvblxuICAgICAgICAgICAgICAgICAgICBhcHBlYXJhbmNlPVwib3V0bGluZWQtZ3JheVwiXG4gICAgICAgICAgICAgICAgICAgIHNpemU9XCJ4eHNcIlxuICAgICAgICAgICAgICAgICAgICBpY29uPVwiY3VpSWNvblVwbG9hZFwiXG4gICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJvblNlbGVjdEZpbGUoKVwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7eyB1cGxvYWRCdXR0b25OYW1lKCkgfX1cbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICBAaWYgKHRodW1ibmFpbCgpPy5uYW1lKSB7XG4gICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwicmVtb3ZlLWJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJsaW5rXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIHNpemU9XCJzbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJvblJlbW92ZVRodW1ibmFpbCgpXCJcbiAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAge3sgdCgnUkVNT1ZFJykgfX1cbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJhY2NlcHRlZFwiPnt7IHQoJ0FDQ0VQVEVEJykgfX06IEpQRywgSlBFRywgUE5HLCBNUDQge3sgdCgnVVBfVE8nKSB9fSAyME1CPC9zcGFuPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuPC9zZWN0aW9uPlxuIl19
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var CUBY_PLATFORM = "Cuby platform";
|
|
2
|
-
var SWITCH_THEME = "Switch theme";
|
|
3
|
-
var LOG_OUT = "Log out";
|
|
4
|
-
var LANGUAGE = "Language";
|
|
5
|
-
var YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY = "You have no activity in this company.";
|
|
6
|
-
var YOU_DONT_HAVE_COMPANY = "You have no available companies.";
|
|
7
|
-
var COMPANY = "Company";
|
|
8
|
-
var MANUFACTURE = "Manufacture";
|
|
9
|
-
var DELIVERY = "Delivery";
|
|
10
|
-
var DEVELOPER = "Developer";
|
|
11
|
-
var en = {
|
|
12
|
-
CUBY_PLATFORM: CUBY_PLATFORM,
|
|
13
|
-
SWITCH_THEME: SWITCH_THEME,
|
|
14
|
-
LOG_OUT: LOG_OUT,
|
|
15
|
-
LANGUAGE: LANGUAGE,
|
|
16
|
-
YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY: YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY,
|
|
17
|
-
YOU_DONT_HAVE_COMPANY: YOU_DONT_HAVE_COMPANY,
|
|
18
|
-
COMPANY: COMPANY,
|
|
19
|
-
MANUFACTURE: MANUFACTURE,
|
|
20
|
-
DELIVERY: DELIVERY,
|
|
21
|
-
DEVELOPER: DEVELOPER
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { COMPANY, CUBY_PLATFORM, DELIVERY, DEVELOPER, LANGUAGE, LOG_OUT, MANUFACTURE, SWITCH_THEME, YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY, YOU_DONT_HAVE_COMPANY, en as default };
|
|
25
|
-
//# sourceMappingURL=cuby-ui-core-en-D0un3--2.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cuby-ui-core-en-D0un3--2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var CUBY_PLATFORM = "Платформа Cuby";
|
|
2
|
-
var SWITCH_THEME = "Сменить тему";
|
|
3
|
-
var LOG_OUT = "Выйти";
|
|
4
|
-
var LANGUAGE = "Язык";
|
|
5
|
-
var YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY = "У вас нет активности в этой компании.";
|
|
6
|
-
var YOU_DONT_HAVE_COMPANY = "У вас нет доступных компаний.";
|
|
7
|
-
var COMPANY = "Компания";
|
|
8
|
-
var MANUFACTURE = "Производство";
|
|
9
|
-
var DELIVERY = "Доставка";
|
|
10
|
-
var DEVELOPER = "Разработка";
|
|
11
|
-
var ru = {
|
|
12
|
-
CUBY_PLATFORM: CUBY_PLATFORM,
|
|
13
|
-
SWITCH_THEME: SWITCH_THEME,
|
|
14
|
-
LOG_OUT: LOG_OUT,
|
|
15
|
-
LANGUAGE: LANGUAGE,
|
|
16
|
-
YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY: YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY,
|
|
17
|
-
YOU_DONT_HAVE_COMPANY: YOU_DONT_HAVE_COMPANY,
|
|
18
|
-
COMPANY: COMPANY,
|
|
19
|
-
MANUFACTURE: MANUFACTURE,
|
|
20
|
-
DELIVERY: DELIVERY,
|
|
21
|
-
DEVELOPER: DEVELOPER
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { COMPANY, CUBY_PLATFORM, DELIVERY, DEVELOPER, LANGUAGE, LOG_OUT, MANUFACTURE, SWITCH_THEME, YOU_DONT_HAVE_ACTIVITY_IN_THIS_COMPANY, YOU_DONT_HAVE_COMPANY, ru as default };
|
|
25
|
-
//# sourceMappingURL=cuby-ui-core-ru-CMm--FpA.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cuby-ui-core-ru-CMm--FpA.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
-
import { CuiApiContext, TreeStruct, TreeStructType } from '@cuby-ui/api';
|
|
3
|
-
import { CuiDropdownDirective } from '../../components';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CuiCategoriesComponent {
|
|
6
|
-
private readonly treeStructNavigatorApiService;
|
|
7
|
-
private readonly selectedCategoryService;
|
|
8
|
-
protected readonly stageStorages: import("@angular/core").WritableSignal<CuiNullable<TreeStruct<import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>>[]>>;
|
|
9
|
-
protected readonly isCategoryCreating: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
-
protected readonly isCategoryCreationLoading: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
-
protected readonly isCreateCategoryControlVisible: import("@angular/core").Signal<boolean>;
|
|
12
|
-
protected readonly dropdown: import("@angular/core").Signal<CuiDropdownDirective>;
|
|
13
|
-
readonly treeStructType: import("@angular/core").InputSignal<TreeStructType>;
|
|
14
|
-
readonly buttonId: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
-
readonly context: import("@angular/core").InputSignal<CuiApiContext | undefined>;
|
|
17
|
-
constructor();
|
|
18
|
-
protected onOpenStageStorages(): void;
|
|
19
|
-
protected onStartCreatingNewCategory(): void;
|
|
20
|
-
protected onCreateNewCategory(title: string): void;
|
|
21
|
-
protected onCreatingCategoryCanceled(): void;
|
|
22
|
-
private initSelectCategoryEffect;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCategoriesComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiCategoriesComponent, "cui-categories", never, { "treeStructType": { "alias": "treeStructType"; "required": true; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
25
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CuiApiContext, TreeStruct } from '@cuby-ui/api';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CuiCategoriesListComponent {
|
|
4
|
-
readonly stageStorages: import("@angular/core").InputSignal<TreeStruct<import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>>[]>;
|
|
5
|
-
readonly context: import("@angular/core").InputSignal<CuiApiContext | undefined>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCategoriesListComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiCategoriesListComponent, "cui-categories-list", never, { "stageStorages": { "alias": "stageStorages"; "required": true; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CuiCategoriesListComponent } from './categories-list.component';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { OnInit } from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import { NonNullableFormBuilder } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CuiCategoryFormComponent implements OnInit {
|
|
6
|
-
protected readonly nonNullableFormBuilder: NonNullableFormBuilder;
|
|
7
|
-
protected readonly form: import("@angular/forms").FormGroup<{
|
|
8
|
-
title: import("@angular/forms").FormControl<string>;
|
|
9
|
-
}>;
|
|
10
|
-
protected readonly titleControl: import("@angular/forms").FormControl<string>;
|
|
11
|
-
readonly isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
12
|
-
readonly defaultTitle: import("@angular/core").InputSignal<string>;
|
|
13
|
-
protected readonly created: import("@angular/core").OutputEmitterRef<string>;
|
|
14
|
-
protected readonly canceled: import("@angular/core").OutputEmitterRef<void>;
|
|
15
|
-
protected readonly input: import("@angular/core").Signal<ElementRef<any>>;
|
|
16
|
-
protected get isTitleInvalid(): boolean;
|
|
17
|
-
protected get isSubmitButtonDisabled(): boolean;
|
|
18
|
-
constructor();
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
protected onHostClick(event: Event): void;
|
|
21
|
-
protected onSubmit(): void;
|
|
22
|
-
protected onCancel(event: Event): void;
|
|
23
|
-
private initInputDisableStateSubscription;
|
|
24
|
-
private initDefaultTitle;
|
|
25
|
-
private initInputFocus;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCategoryFormComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiCategoryFormComponent, "cui-category-form", never, { "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "defaultTitle": { "alias": "defaultTitle"; "required": false; "isSignal": true; }; }, { "created": "created"; "canceled": "canceled"; }, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CuiCategoryFormComponent } from './category-form.component';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { CuiApiContext, TreeStruct } from '@cuby-ui/api';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CuiCategoryItemComponent {
|
|
4
|
-
private readonly treeStructNavigatorApiService;
|
|
5
|
-
private readonly selectedCategoryService;
|
|
6
|
-
protected readonly isStageCreationLoading: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
-
protected readonly stageStorageChildren: import("@angular/core").WritableSignal<TreeStruct<import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>>[]>;
|
|
8
|
-
protected readonly areChildrenOpened: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
-
protected readonly openCloseButtonIcon: import("@angular/core").Signal<"cuiIconLock2" | "cuiIconClipboardListBold" | "cuiIconClipboardCompletedBold" | "cuiIconStarOutlined" | "cuiIconSlashSm" | "cuiIconTextSm" | "cuiIconSlash" | "cuiIconLoading" | "cuiIconCheck" | "cuiIconCheckSm" | "cuiIconCheckCircle" | "cuiIconCheckCircleSm" | "cuiIconCheckCircleV2" | "cuiIconMoreVertical" | "cuiIconMoreVerticalSm" | "cuiIconTrash" | "cuiIconTrashSm" | "cuiIconEdit" | "cuiIconEditSm" | "cuiIconArrowSortSm" | "cuiIconX" | "cuiIconXSm" | "cuiIconXCircle" | "cuiIconXCircleSm" | "cuiIconClear" | "cuiIconClearSm" | "cuiIconEye" | "cuiIconEyeSm" | "cuiIconEyeOff" | "cuiIconEyeOffSm" | "cuiIconChevronUp" | "cuiIconChevronUpSm" | "cuiIconChevronRight" | "cuiIconChevronRightSm" | "cuiIconChevronDown" | "cuiIconChevronDownSm" | "cuiIconChevronLeft" | "cuiIconChevronLeftSm" | "cuiIconChevronsRight" | "cuiIconChevronsRightSm" | "cuiIconChevronsLeft" | "cuiIconChevronsLeftSm" | "cuiIconChevronsSwitch" | "cuiIconDatabase" | "cuiIconDatabaseSm" | "cuiIconHome" | "cuiIconHomeSm" | "cuiIconUser" | "cuiIconUserSm" | "cuiIconUsers" | "cuiIconUsersBg" | "cuiIconUsersSm" | "cuiIconUserPlus" | "cuiIconUserPlusSm" | "cuiIconFormula" | "cuiIconSettings" | "cuiIconSettingsSm" | "cuiIconSettingsBold" | "cuiIconCopy" | "cuiIconCopySm" | "cuiIconSidebar" | "cuiIconSidebarSm" | "cuiIconChart" | "cuiIconFolder" | "cuiIconFolderSm" | "cuiIconFolderOpen" | "cuiIconFolderOpenSm" | "cuiIconPlus" | "cuiIconPlusSm" | "cuiIconPlusCircle" | "cuiIconFiltersLines" | "cuiIconFiltersLinesSm" | "cuiIconSearch" | "cuiIconSearchSm" | "cuiIconGrid" | "cuiIconGridSm" | "cuiIconList" | "cuiIconListSm" | "cuiIconProgress" | "cuiIconSortAZSm" | "cuiIconFlagBold" | "cuiIconFileText" | "cuiIconFileTextSm" | "cuiIconLink" | "cuiIconExternalLinkSm" | "cuiIconLinkBroken" | "cuiIconLinkBrokenSm" | "cuiIconClock" | "cuiIconClockSm" | "cuiIconInfo" | "cuiIconInfoSm" | "cuiIconInfoCircle" | "cuiIconInfoCircleBg" | "cuiIconAlertTriangle" | "cuiIconAlertTriangleSm" | "cuiIconAlertCircle" | "cuiIcon2Layers" | "cuiIcon2LayersSm" | "cuiIcon3Layers" | "cuiIcon3LayersSm" | "cuiIconLearningSm" | "cuiIconBellSm" | "cuiIconMessageCircle" | "cuiIconMessageCircleSm" | "cuiIconSlashDivider" | "cuiIconCaretDownFillXxs" | "cuiIconCaretDownFill" | "cuiIconDragHandleDots" | "cuiIconPlayCircle" | "cuiIconPlayCircleSm" | "cuiIconClipBoardBold" | "cuiIconClipBoard" | "cuiIconClipBoardSm" | "cuiIconUpload" | "cuiIconUploadSm" | "cuiIconMaximize" | "cuiIconMaximizeSm" | "cuiIconArrowUpRight" | "cuiIconArrowUpRightSm" | "cuiIconAddBranchSm" | "cuiIconBranch" | "cuiIconBranchSm" | "cuiIconPaperclip" | "cuiIconPaperclipSm" | "cuiIconToolsSm" | "cuiIconPartsSm" | "cuiIconEquipmentSm" | "cuiIconPrimitive" | "cuiIconPrimitiveSm" | "cuiIconSpool" | "cuiIconSpoolSm" | "cuiIconTank" | "cuiIconTankSm" | "cuiIconAssembly" | "cuiIconAssemblySm" | "cuiIconVariant" | "cuiIconVariantSm" | "cuiIconRichText" | "cuiIconRichTextSm" | "cuiIconChecklist" | "cuiIconRefreshCcwSm" | "cuiIconRefreshCcw" | "cuiIconBarChartSm" | "cuiIconBarChart" | "cuiIconCurvedArrow" | "cuiIconBulletFillSm" | "cuiIconBulletSm" | "cuiIconArrowRight" | "cuiIconArrowRightSm" | "cuiIconImage" | "cuiIconCutLinearSm" | "cuiIconCutLinear" | "cuiIconForkLift" | "cuiIconForkLiftSm" | "cuiIconPartPrimitive" | "cuiIconPartPrimitiveSm" | "cuiIconChecklistsSm" | "cuiIconViewInAr" | "cuiIconViewInArSm" | "cuiIconFloorplanSolid" | "cuiIconFloorplanSolidSm" | "cuiIconMoon" | "cuiIconMoonSm" | "cuiIconSunSm" | "cuiIconTool" | "cuiIconToolSm" | "cuiIconCamera" | "cuiIconPanModeSm" | "cuiIconCrane" | "cuiIconCraneSm" | "cuiIconBin" | "cuiIconBinSm" | "cuiIconAuxSm" | "cuiIcon5sSm" | "cuiIconRackSm" | "cuiIconComputerChipSm" | "cuiIconRack" | "cuiIconAccessories" | "cuiIconAccessoriesSm" | "cuiIconLogisticVehicle" | "cuiIconLogisticVehicleSm" | "cuiIconCollapse" | "cuiIconCollapseSm" | "cuiIconBookOpenSm" | "cuiIconBriefcaseSm" | "cuiIconCreditCardSm" | "cuiIconTrelloSm" | "cuiIconBookOpen" | "cuiIconBriefcase" | "cuiIconCreditCard" | "cuiIconTrello" | "cuiIconLogOut" | "cuiIconOrderSm" | "cuiIconCalendarSm" | "cuiIconMapPin" | "cuiIconBuildingSm" | "cuiIconStopCircleSm" | "cuiIconPauseCircleSm" | "cuiIconPlayCircleFilledSm" | "cuiIconMenuSm" | "cuiIconTeaCupSm" | "cuiIconSubstageInstructionSm" | "cuiIconTaskInstructionSm" | "cuiIconToolsInstructionSm" | "cuiIconApprovalInstructionSm" | "cuiIconQuestionCircleBold" | "cuiIconClockBold" | "cuiIconHammerBold" | "cuiIconAlignLeftSm" | "cuiIconChecklistSm" | "cuiIconMessageSquare" | "cuiIconMessageSquareSm" | "cuiIconSurfaceArea" | "cuiIconMinimize2" | "cuiIconMinimize2Sm" | "cuiIconHistorySm" | "cuiIconSun" | "cuiIconGlobeSm" | "cuiIconPaletteSm" | "cuiIconLogOutSm" | "cuiIconLogo" | "cuiIconBoldFileDefaultSm">;
|
|
10
|
-
protected readonly doChildrenExist: import("@angular/core").Signal<number>;
|
|
11
|
-
protected readonly isOpenCloseButtonHidden: import("@angular/core").Signal<boolean>;
|
|
12
|
-
protected readonly stageStorageIcon: import("@angular/core").Signal<"cuiIconLock2" | "cuiIconClipboardListBold" | "cuiIconClipboardCompletedBold" | "cuiIconStarOutlined" | "cuiIconSlashSm" | "cuiIconTextSm" | "cuiIconSlash" | "cuiIconLoading" | "cuiIconCheck" | "cuiIconCheckSm" | "cuiIconCheckCircle" | "cuiIconCheckCircleSm" | "cuiIconCheckCircleV2" | "cuiIconMoreVertical" | "cuiIconMoreVerticalSm" | "cuiIconTrash" | "cuiIconTrashSm" | "cuiIconEdit" | "cuiIconEditSm" | "cuiIconArrowSortSm" | "cuiIconX" | "cuiIconXSm" | "cuiIconXCircle" | "cuiIconXCircleSm" | "cuiIconClear" | "cuiIconClearSm" | "cuiIconEye" | "cuiIconEyeSm" | "cuiIconEyeOff" | "cuiIconEyeOffSm" | "cuiIconChevronUp" | "cuiIconChevronUpSm" | "cuiIconChevronRight" | "cuiIconChevronRightSm" | "cuiIconChevronDown" | "cuiIconChevronDownSm" | "cuiIconChevronLeft" | "cuiIconChevronLeftSm" | "cuiIconChevronsRight" | "cuiIconChevronsRightSm" | "cuiIconChevronsLeft" | "cuiIconChevronsLeftSm" | "cuiIconChevronsSwitch" | "cuiIconDatabase" | "cuiIconDatabaseSm" | "cuiIconHome" | "cuiIconHomeSm" | "cuiIconUser" | "cuiIconUserSm" | "cuiIconUsers" | "cuiIconUsersBg" | "cuiIconUsersSm" | "cuiIconUserPlus" | "cuiIconUserPlusSm" | "cuiIconFormula" | "cuiIconSettings" | "cuiIconSettingsSm" | "cuiIconSettingsBold" | "cuiIconCopy" | "cuiIconCopySm" | "cuiIconSidebar" | "cuiIconSidebarSm" | "cuiIconChart" | "cuiIconFolder" | "cuiIconFolderSm" | "cuiIconFolderOpen" | "cuiIconFolderOpenSm" | "cuiIconPlus" | "cuiIconPlusSm" | "cuiIconPlusCircle" | "cuiIconFiltersLines" | "cuiIconFiltersLinesSm" | "cuiIconSearch" | "cuiIconSearchSm" | "cuiIconGrid" | "cuiIconGridSm" | "cuiIconList" | "cuiIconListSm" | "cuiIconProgress" | "cuiIconSortAZSm" | "cuiIconFlagBold" | "cuiIconFileText" | "cuiIconFileTextSm" | "cuiIconLink" | "cuiIconExternalLinkSm" | "cuiIconLinkBroken" | "cuiIconLinkBrokenSm" | "cuiIconClock" | "cuiIconClockSm" | "cuiIconInfo" | "cuiIconInfoSm" | "cuiIconInfoCircle" | "cuiIconInfoCircleBg" | "cuiIconAlertTriangle" | "cuiIconAlertTriangleSm" | "cuiIconAlertCircle" | "cuiIcon2Layers" | "cuiIcon2LayersSm" | "cuiIcon3Layers" | "cuiIcon3LayersSm" | "cuiIconLearningSm" | "cuiIconBellSm" | "cuiIconMessageCircle" | "cuiIconMessageCircleSm" | "cuiIconSlashDivider" | "cuiIconCaretDownFillXxs" | "cuiIconCaretDownFill" | "cuiIconDragHandleDots" | "cuiIconPlayCircle" | "cuiIconPlayCircleSm" | "cuiIconClipBoardBold" | "cuiIconClipBoard" | "cuiIconClipBoardSm" | "cuiIconUpload" | "cuiIconUploadSm" | "cuiIconMaximize" | "cuiIconMaximizeSm" | "cuiIconArrowUpRight" | "cuiIconArrowUpRightSm" | "cuiIconAddBranchSm" | "cuiIconBranch" | "cuiIconBranchSm" | "cuiIconPaperclip" | "cuiIconPaperclipSm" | "cuiIconToolsSm" | "cuiIconPartsSm" | "cuiIconEquipmentSm" | "cuiIconPrimitive" | "cuiIconPrimitiveSm" | "cuiIconSpool" | "cuiIconSpoolSm" | "cuiIconTank" | "cuiIconTankSm" | "cuiIconAssembly" | "cuiIconAssemblySm" | "cuiIconVariant" | "cuiIconVariantSm" | "cuiIconRichText" | "cuiIconRichTextSm" | "cuiIconChecklist" | "cuiIconRefreshCcwSm" | "cuiIconRefreshCcw" | "cuiIconBarChartSm" | "cuiIconBarChart" | "cuiIconCurvedArrow" | "cuiIconBulletFillSm" | "cuiIconBulletSm" | "cuiIconArrowRight" | "cuiIconArrowRightSm" | "cuiIconImage" | "cuiIconCutLinearSm" | "cuiIconCutLinear" | "cuiIconForkLift" | "cuiIconForkLiftSm" | "cuiIconPartPrimitive" | "cuiIconPartPrimitiveSm" | "cuiIconChecklistsSm" | "cuiIconViewInAr" | "cuiIconViewInArSm" | "cuiIconFloorplanSolid" | "cuiIconFloorplanSolidSm" | "cuiIconMoon" | "cuiIconMoonSm" | "cuiIconSunSm" | "cuiIconTool" | "cuiIconToolSm" | "cuiIconCamera" | "cuiIconPanModeSm" | "cuiIconCrane" | "cuiIconCraneSm" | "cuiIconBin" | "cuiIconBinSm" | "cuiIconAuxSm" | "cuiIcon5sSm" | "cuiIconRackSm" | "cuiIconComputerChipSm" | "cuiIconRack" | "cuiIconAccessories" | "cuiIconAccessoriesSm" | "cuiIconLogisticVehicle" | "cuiIconLogisticVehicleSm" | "cuiIconCollapse" | "cuiIconCollapseSm" | "cuiIconBookOpenSm" | "cuiIconBriefcaseSm" | "cuiIconCreditCardSm" | "cuiIconTrelloSm" | "cuiIconBookOpen" | "cuiIconBriefcase" | "cuiIconCreditCard" | "cuiIconTrello" | "cuiIconLogOut" | "cuiIconOrderSm" | "cuiIconCalendarSm" | "cuiIconMapPin" | "cuiIconBuildingSm" | "cuiIconStopCircleSm" | "cuiIconPauseCircleSm" | "cuiIconPlayCircleFilledSm" | "cuiIconMenuSm" | "cuiIconTeaCupSm" | "cuiIconSubstageInstructionSm" | "cuiIconTaskInstructionSm" | "cuiIconToolsInstructionSm" | "cuiIconApprovalInstructionSm" | "cuiIconQuestionCircleBold" | "cuiIconClockBold" | "cuiIconHammerBold" | "cuiIconAlignLeftSm" | "cuiIconChecklistSm" | "cuiIconMessageSquare" | "cuiIconMessageSquareSm" | "cuiIconSurfaceArea" | "cuiIconMinimize2" | "cuiIconMinimize2Sm" | "cuiIconHistorySm" | "cuiIconSun" | "cuiIconGlobeSm" | "cuiIconPaletteSm" | "cuiIconLogOutSm" | "cuiIconLogo" | "cuiIconBoldFileDefaultSm">;
|
|
13
|
-
protected readonly isSubcategoryCreating: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
-
protected readonly isSubcategoryCreationLoading: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
-
protected readonly alignItems: import("@angular/core").Signal<"center" | "flex-start">;
|
|
16
|
-
protected readonly isTitleEdit: import("@angular/core").Signal<boolean>;
|
|
17
|
-
protected readonly isCreateCategoryControlVisible: import("@angular/core").Signal<boolean>;
|
|
18
|
-
readonly categoryTitle: import("@angular/core").WritableSignal<string>;
|
|
19
|
-
readonly category: import("@angular/core").Signal<{
|
|
20
|
-
title: string;
|
|
21
|
-
elements: import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>[];
|
|
22
|
-
children: string[] | TreeStruct<import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>>[];
|
|
23
|
-
id: string;
|
|
24
|
-
treeStructType: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
ancestors: [import("@cuby-ui/api").TreeStructAncestor, ...import("@cuby-ui/api").TreeStructAncestor[]];
|
|
27
|
-
}>;
|
|
28
|
-
readonly stageStorage: import("@angular/core").InputSignal<TreeStruct<import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>>>;
|
|
29
|
-
readonly context: import("@angular/core").InputSignal<CuiApiContext | undefined>;
|
|
30
|
-
constructor();
|
|
31
|
-
protected onSelectCategory(): void;
|
|
32
|
-
protected onToggleChildren(event: MouseEvent): void;
|
|
33
|
-
protected onTitleChanged(title: string): void;
|
|
34
|
-
protected onStartTitleEdit(event?: Event): void;
|
|
35
|
-
protected onCancelTitleEdit(): void;
|
|
36
|
-
protected onStartCreatingSubcategory(event: MouseEvent): void;
|
|
37
|
-
protected onCreateNewSubcategoryCategory(title: string): void;
|
|
38
|
-
protected onCreatingSubcategoryCanceled(): void;
|
|
39
|
-
private initStageStorageChildren;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCategoryItemComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiCategoryItemComponent, "cui-category-item", never, { "stageStorage": { "alias": "stageStorage"; "required": true; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CuiCategoryItemComponent } from './category-item.component';
|
package/widgets/categories/components/create-category-item/create-category-item.component.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CuiCreateCategoryItemComponent {
|
|
3
|
-
protected readonly created: import("@angular/core").OutputEmitterRef<string>;
|
|
4
|
-
protected readonly canceled: import("@angular/core").OutputEmitterRef<void>;
|
|
5
|
-
readonly isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
protected onSubmit(title: string): void;
|
|
7
|
-
protected onCancel(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCreateCategoryItemComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiCreateCategoryItemComponent, "cui-create-category-item", never, { "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; }, { "created": "created"; "canceled": "canceled"; }, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CuiCreateCategoryItemComponent } from './create-category-item.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CuiSelectedCategoryService } from './selected-category.service';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
-
import { TreeStruct } from '@cuby-ui/api';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CuiSelectedCategoryService {
|
|
5
|
-
private readonly editingIdSignal;
|
|
6
|
-
private readonly creatingIdSignal;
|
|
7
|
-
private readonly categorySignal;
|
|
8
|
-
readonly editingId: import("@angular/core").Signal<CuiNullable<string>>;
|
|
9
|
-
readonly creatingId: import("@angular/core").Signal<CuiNullable<string>>;
|
|
10
|
-
readonly category: import("@angular/core").Signal<CuiNullable<TreeStruct<import("@cuby-ui/api").Job<import("@cuby-ui/api").JobContentStructureType>>>>;
|
|
11
|
-
setCurrentCategory(category: CuiNullable<TreeStruct>): void;
|
|
12
|
-
setEditingId(id: string): void;
|
|
13
|
-
setCreatingId(id: string): void;
|
|
14
|
-
clearEditingId(): void;
|
|
15
|
-
clearCreatingId(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiSelectedCategoryService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CuiSelectedCategoryService>;
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NodeCheckListItem, NodeCheckListItemContentType } from '@cuby-ui/api';
|
|
2
|
-
import { CuiContextMenuItem } from '../../interfaces';
|
|
3
|
-
import { CuiEditorConfig } from '../../editor/interfaces';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CuiChecklistBlockComponent {
|
|
6
|
-
private readonly destroyRef;
|
|
7
|
-
private readonly treeStructApiService;
|
|
8
|
-
private readonly translocoService;
|
|
9
|
-
private readonly nodeCheckListApiService;
|
|
10
|
-
private readonly checkListBlockService;
|
|
11
|
-
protected readonly CHECKLIST_BLOCK_SELECT_OPTIONS: CuiContextMenuItem[];
|
|
12
|
-
protected readonly checkListItems: import("@angular/core").Signal<import("@cuby-ui/cdk").CuiNullable<NodeCheckListItem<NodeCheckListItemContentType>[]>>;
|
|
13
|
-
protected readonly isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
-
readonly componentId: import("@angular/core").InputSignal<string>;
|
|
15
|
-
readonly config: import("@angular/core").InputSignal<CuiEditorConfig>;
|
|
16
|
-
constructor();
|
|
17
|
-
private initNodeCheckListBlock;
|
|
18
|
-
private addCheckListItem;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiChecklistBlockComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiChecklistBlockComponent, "cui-checklist-block, [cuiCheckListBlock]", never, { "componentId": { "alias": "componentId"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Type } from '@angular/core';
|
|
2
|
-
import { NodeCheckListItem, NodeCheckListItemContentType } from '@cuby-ui/api';
|
|
3
|
-
export declare const enum CuiCheckListBlockItemType {
|
|
4
|
-
WITH_VERIFICATION = "NODE_CHECKLIST_ACTION_WITH_VERIFICATION",
|
|
5
|
-
WITHOUT_VERIFICATION = "NODE_CHECKLIST_ACTION_WITHOUT_VERIFICATION",
|
|
6
|
-
EVALUATION = "NODE_CHECKLIST_EVALUATION"
|
|
7
|
-
}
|
|
8
|
-
export interface CuiCheckListBlockItem {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly content: NodeCheckListItem<NodeCheckListItemContentType>;
|
|
11
|
-
readonly component: Type<unknown>;
|
|
12
|
-
}
|