@cuby-ui/core 0.0.487 → 0.0.489
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/animations/animations.d.ts +36 -0
- package/animations/index.d.ts +1 -0
- package/classes/accessors.d.ts +17 -0
- package/classes/driver.d.ts +16 -0
- package/classes/index.d.ts +3 -0
- package/classes/vehicle.d.ts +6 -0
- package/components/accordion/accordion-item/accordion-item.component.d.ts +14 -0
- package/components/accordion/accordion-item/accordion-item.options.d.ts +1 -0
- package/components/accordion/accordion.component.d.ts +5 -0
- package/components/accordion/accordion.directive.d.ts +15 -0
- package/components/accordion/accordion.module.d.ts +11 -0
- package/components/accordion/index.d.ts +4 -0
- package/components/alert/alert.component.d.ts +13 -0
- package/components/alert/alert.interfaces.d.ts +9 -0
- package/components/alert/alert.module.d.ts +11 -0
- package/components/alert/alert.service.d.ts +7 -0
- package/components/alert/alert.tokens.d.ts +16 -0
- package/components/alert/alert.types.d.ts +3 -0
- package/components/alert/alerts.component.d.ts +17 -0
- package/components/alert/index.d.ts +8 -0
- 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/badge/badge.component.d.ts +10 -0
- package/components/badge/badge.module.d.ts +8 -0
- package/components/badge/badge.options.d.ts +12 -0
- package/components/badge/index.d.ts +3 -0
- package/components/banner/banner.component.d.ts +21 -0
- package/components/banner/banner.module.d.ts +11 -0
- package/components/banner/banner.options.d.ts +13 -0
- package/components/banner/index.d.ts +3 -0
- package/components/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.component.d.ts +7 -0
- package/components/breadcrumbs/breadcrumbs.module.d.ts +10 -0
- package/components/breadcrumbs/index.d.ts +3 -0
- package/components/button/button.component.d.ts +39 -0
- package/components/button/button.module.d.ts +9 -0
- package/components/button/button.options.d.ts +14 -0
- package/components/button/index.d.ts +3 -0
- package/components/button-group/button-group.component.d.ts +5 -0
- package/components/button-group/button-group.module.d.ts +7 -0
- package/components/button-group/index.d.ts +2 -0
- package/components/card-wrapper/card-wrapper.component.d.ts +7 -0
- package/components/card-wrapper/index.d.ts +1 -0
- package/components/checkbox/checkbox.component.d.ts +5 -0
- package/components/checkbox/checkbox.module.d.ts +7 -0
- package/components/checkbox/index.d.ts +2 -0
- package/components/content-header/content-header.component.d.ts +8 -0
- package/components/content-header/index.d.ts +1 -0
- package/components/content-wrapper/content-wrapper.component.d.ts +11 -0
- package/components/content-wrapper/index.d.ts +1 -0
- package/components/context-menu/context-menu.component.d.ts +41 -0
- package/components/context-menu/context-menu.module.d.ts +9 -0
- package/components/context-menu/index.d.ts +2 -0
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +5 -0
- package/components/dialog/dialog-header/dialog-header.component.d.ts +12 -0
- package/components/dialog/dialog.component.d.ts +33 -0
- package/components/dialog/dialog.interfaces.d.ts +11 -0
- package/components/dialog/dialog.module.d.ts +14 -0
- package/components/dialog/dialog.service.d.ts +7 -0
- package/components/dialog/dialog.tokens.d.ts +8 -0
- package/components/dialog/dialogs.component.d.ts +18 -0
- package/components/dialog/index.d.ts +8 -0
- package/components/dropdown/dropdown-wrapper.component.d.ts +9 -0
- package/components/dropdown/dropdown.directive.d.ts +41 -0
- package/components/dropdown/dropdown.interfaces.d.ts +8 -0
- package/components/dropdown/index.d.ts +3 -0
- package/components/empty-state/empty-state.component.d.ts +7 -0
- package/components/empty-state/index.d.ts +1 -0
- package/components/file-icon/file-icon.component.d.ts +9 -0
- package/components/file-icon/file-icon.options.d.ts +12 -0
- package/components/file-icon/index.d.ts +1 -0
- package/components/form-field/form-field.component.d.ts +5 -0
- package/components/form-field/form-field.module.d.ts +7 -0
- package/components/form-field/index.d.ts +2 -0
- package/components/ghost-input/ghost-input.component.d.ts +6 -0
- package/components/ghost-input/index.d.ts +1 -0
- package/components/hint/hint.component.d.ts +7 -0
- package/components/hint/hint.module.d.ts +7 -0
- package/components/hint/index.d.ts +2 -0
- package/components/icon-button/icon-button.component.d.ts +13 -0
- package/components/icon-button/icon-button.module.d.ts +9 -0
- package/components/icon-button/index.d.ts +2 -0
- package/components/index.d.ts +41 -0
- package/components/input-number/index.d.ts +2 -0
- package/components/input-number/input-number.component.d.ts +38 -0
- package/components/input-number/input-number.module.d.ts +12 -0
- package/components/input-password/index.d.ts +2 -0
- package/components/input-password/input-password.component.d.ts +31 -0
- package/components/input-password/input-password.module.d.ts +11 -0
- package/components/input-text/index.d.ts +2 -0
- package/components/input-text/input-text.component.d.ts +31 -0
- package/components/input-text/input-text.module.d.ts +11 -0
- package/components/input-time/index.d.ts +3 -0
- package/components/input-time/input-time.component.d.ts +36 -0
- package/components/input-time/input-time.module.d.ts +12 -0
- package/components/input-time/input-time.options.d.ts +7 -0
- package/components/label/index.d.ts +2 -0
- package/components/label/label.component.d.ts +6 -0
- package/components/label/label.module.d.ts +8 -0
- package/components/layout/index.d.ts +1 -0
- package/components/layout/layout.component.d.ts +6 -0
- package/components/letter-box/index.d.ts +1 -0
- package/components/letter-box/letter-box.component.d.ts +14 -0
- package/components/letter-box/letter-box.interfaces.d.ts +3 -0
- package/components/notification/index.d.ts +3 -0
- package/components/notification/notification.component.d.ts +18 -0
- package/components/notification/notification.module.d.ts +9 -0
- package/components/notification/notification.options.d.ts +17 -0
- package/components/options-button/index.d.ts +1 -0
- package/components/options-button/options-button.component.d.ts +8 -0
- package/components/radio/index.d.ts +2 -0
- package/components/radio/radio.component.d.ts +5 -0
- package/components/radio/radio.module.d.ts +7 -0
- package/components/render-dynamic-components/index.d.ts +3 -0
- package/components/render-dynamic-components/render-dynamic-components.component.d.ts +7 -0
- package/components/render-dynamic-components/render-dynamic-components.options.d.ts +7 -0
- package/components/render-dynamic-components/render-dynamic-components.service.d.ts +12 -0
- package/components/root/index.d.ts +3 -0
- package/components/root/root.component.d.ts +10 -0
- package/components/root/root.module.d.ts +11 -0
- package/components/root/root.options.d.ts +1 -0
- package/components/select/index.d.ts +2 -0
- package/components/select/select.component.d.ts +53 -0
- package/components/select/select.module.d.ts +11 -0
- package/components/sidebar/index.d.ts +7 -0
- package/components/sidebar/sidebar-container/index.d.ts +1 -0
- package/components/sidebar/sidebar-container/sidebar-container.component.d.ts +10 -0
- package/components/sidebar/sidebar-header/index.d.ts +1 -0
- package/components/sidebar/sidebar-header/sidebar-header.component.d.ts +12 -0
- package/components/sidebar/sidebar-navigation/index.d.ts +1 -0
- package/components/sidebar/sidebar-navigation/sidebar-navigation.component.d.ts +9 -0
- package/components/sidebar/sidebar-navigation-container/index.d.ts +1 -0
- package/components/sidebar/sidebar-navigation-container/sidebar-navigation-container.component.d.ts +8 -0
- package/components/sidebar/sidebar-navigation-item/index.d.ts +1 -0
- package/components/sidebar/sidebar-navigation-item/sidebar-navigation-item.component.d.ts +9 -0
- package/components/sidebar/sidebar.options.d.ts +4 -0
- package/components/sidebar/sidebar.service.d.ts +17 -0
- package/components/svg/index.d.ts +2 -0
- package/components/svg/svg.component.d.ts +16 -0
- package/components/svg/svg.module.d.ts +8 -0
- package/components/tab/index.d.ts +1 -0
- package/components/tab/tab.component.d.ts +15 -0
- package/components/tabs/components/abstract-tabs/abstract-tabs.component.d.ts +15 -0
- package/components/tabs/components/abstract-tabs/index.d.ts +1 -0
- package/components/tabs/components/index.d.ts +1 -0
- package/components/tabs/index.d.ts +5 -0
- package/components/tabs/services/index.d.ts +1 -0
- package/components/tabs/services/tabs.service.d.ts +14 -0
- package/components/tabs/tabs.component.d.ts +8 -0
- package/components/tabs/tabs.options.d.ts +21 -0
- package/components/tabs/tabs.provider.d.ts +3 -0
- package/components/textarea/index.d.ts +2 -0
- package/components/textarea/textarea.component.d.ts +10 -0
- package/components/textarea/textarea.module.d.ts +7 -0
- package/components/toggle/index.d.ts +2 -0
- package/components/toggle/toggle.component.d.ts +5 -0
- package/components/toggle/toggle.module.d.ts +7 -0
- package/directives/index.d.ts +2 -0
- package/directives/text-field-controller/index.d.ts +8 -0
- package/directives/text-field-controller/text-field-controller.module.d.ts +11 -0
- package/directives/text-field-controller/text-field-controller.provider.d.ts +4 -0
- package/directives/text-field-controller/text-field-icon-left.directive.d.ts +9 -0
- package/directives/text-field-controller/text-field-id.directive.d.ts +8 -0
- package/directives/text-field-controller/text-field-is-error.directive.d.ts +8 -0
- package/directives/text-field-controller/text-field-placeholder.directive.d.ts +8 -0
- package/directives/text-field-controller/text-field-size.directive.d.ts +9 -0
- package/directives/text-field-controller/text-field.controller.d.ts +20 -0
- package/directives/tooltip/index.d.ts +16 -0
- package/directives/tooltip/tooltip-describe.directive.d.ts +16 -0
- package/directives/tooltip/tooltip-driver.directive.d.ts +7 -0
- package/directives/tooltip/tooltip-host.directive.d.ts +9 -0
- package/directives/tooltip/tooltip-hover.directive.d.ts +21 -0
- package/directives/tooltip/tooltip-manual.directive.d.ts +13 -0
- package/directives/tooltip/tooltip-options.directive.d.ts +36 -0
- package/directives/tooltip/tooltip-overflow.directive.d.ts +8 -0
- package/directives/tooltip/tooltip-pointer.directive.d.ts +10 -0
- package/directives/tooltip/tooltip-position.directive.d.ts +20 -0
- package/directives/tooltip/tooltip-unstyled.component.d.ts +17 -0
- package/directives/tooltip/tooltip.component.d.ts +33 -0
- package/directives/tooltip/tooltip.d.ts +13 -0
- package/directives/tooltip/tooltip.directive.d.ts +26 -0
- package/directives/tooltip/tooltip.providers.d.ts +5 -0
- package/directives/tooltip/tooltip.service.d.ts +13 -0
- package/directives/tooltip/tooltips.component.d.ts +12 -0
- package/editor/components/editor-attaches-tool/editor-attaches-tool.component.d.ts +19 -0
- package/editor/components/editor-attaches-tool/editor-attaches-tool.options.d.ts +18 -0
- package/editor/components/editor-attaches-tool/index.d.ts +2 -0
- package/editor/components/editor-image-tool/editor-image-tool.component.d.ts +14 -0
- package/editor/components/editor-image-tool/editor-image-tool.options.d.ts +26 -0
- package/editor/components/editor-image-tool/index.d.ts +2 -0
- package/editor/components/editor-tool/editor-tool.component.d.ts +22 -0
- package/editor/components/editor-tool-modal/editor-tool-modal.component.d.ts +24 -0
- package/editor/components/editor-tool-modal/editor-tool-modal.options.d.ts +8 -0
- package/editor/components/editor-tool-modal/index.d.ts +2 -0
- package/editor/components/editor-tooltip/editor-tooltip.component.d.ts +16 -0
- package/editor/components/editor-tooltip/editor-tooltip.options.d.ts +9 -0
- package/editor/components/editor-tooltip/index.d.ts +2 -0
- package/editor/components/editor-video-tool/editor-video-tool.component.d.ts +12 -0
- package/editor/components/editor-video-tool/editor-video-tool.options.d.ts +26 -0
- package/editor/components/editor-video-tool/index.d.ts +2 -0
- package/editor/components/index.d.ts +7 -0
- package/editor/components/marker-modal/index.d.ts +3 -0
- package/editor/components/marker-modal/marker-modal.component.d.ts +62 -0
- package/editor/components/marker-modal/marker-modal.interfaces.d.ts +7 -0
- package/editor/components/marker-modal/marker-modal.options.d.ts +1 -0
- package/editor/components/marker-select/component/select-item/select-option.component.d.ts +7 -0
- package/editor/components/marker-select/index.d.ts +2 -0
- package/editor/components/marker-select/marker-select.component.d.ts +40 -0
- package/editor/components/marker-select/marker-select.options.d.ts +1 -0
- package/editor/config/custom-elements.d.ts +2 -0
- package/editor/config/editor.config.d.ts +3 -0
- package/editor/config/index.d.ts +1 -0
- package/editor/constants/editor.constants.d.ts +15 -0
- package/editor/constants/index.d.ts +1 -0
- package/editor/editor.component.d.ts +74 -0
- package/editor/events/editor-drag.event.d.ts +2 -0
- package/editor/events/editor-keyboard.event.d.ts +2 -0
- package/editor/events/editor-modal.event.d.ts +3 -0
- package/editor/events/editor-tooltip.event.d.ts +2 -0
- package/editor/events/set-editor-events.d.ts +1 -0
- package/editor/index.d.ts +9 -0
- package/editor/interfaces/angular-element.d.ts +2 -0
- package/editor/interfaces/blocks-request-data.d.ts +6 -0
- package/editor/interfaces/combined-block-adding-event.d.ts +7 -0
- package/editor/interfaces/combined-block-data.d.ts +5 -0
- package/editor/interfaces/combined-part-block-data.d.ts +7 -0
- package/editor/interfaces/custom-element.d.ts +5 -0
- package/editor/interfaces/editor-service.d.ts +4 -0
- package/editor/interfaces/event-action-data.d.ts +5 -0
- package/editor/interfaces/file-response-data.d.ts +15 -0
- package/editor/interfaces/full-block-data.d.ts +8 -0
- package/editor/interfaces/index.d.ts +15 -0
- package/editor/interfaces/main-editor-config.d.ts +12 -0
- package/editor/interfaces/mutation-actions.d.ts +5 -0
- package/editor/interfaces/parent.d.ts +4 -0
- package/editor/interfaces/tools.d.ts +4 -0
- package/editor/interfaces/tune.d.ts +6 -0
- package/editor/pipes/file-size.pipe.d.ts +9 -0
- package/editor/providers/editor.provider.d.ts +2 -0
- package/editor/providers/index.d.ts +1 -0
- package/editor/services/editor-service.options.d.ts +8 -0
- package/editor/services/editor.service.d.ts +23 -0
- package/editor/services/index.d.ts +4 -0
- package/editor/services/markers-service.options.d.ts +4 -0
- package/editor/services/markers.service.d.ts +11 -0
- package/editor/tools/attaches.tool.d.ts +31 -0
- package/editor/tools/bold.tool.d.ts +11 -0
- package/editor/tools/combined-text-block.tool.d.ts +48 -0
- package/editor/tools/custom-marker.tool.d.ts +16 -0
- package/editor/tools/header.tool.d.ts +8 -0
- package/editor/tools/image.tool.d.ts +37 -0
- package/editor/tools/index.d.ts +11 -0
- package/editor/tools/italic.tool.d.ts +12 -0
- package/editor/tools/link-marker.tool.d.ts +15 -0
- package/editor/tools/list.tool.d.ts +5 -0
- package/editor/tools/marker.tool.d.ts +36 -0
- package/editor/tools/role-marker.tool.d.ts +7 -0
- package/editor/tools/selection-base.tool.d.ts +24 -0
- package/editor/tools/tool-marker.tool.d.ts +7 -0
- package/editor/tools/video.tool.d.ts +32 -0
- package/editor/utils/copy-text-to-clipboard.d.ts +1 -0
- package/editor/utils/create-link-modal.d.ts +3 -0
- package/editor/utils/create-tool-modal.d.ts +4 -0
- package/editor/utils/create-tools-data.d.ts +3 -0
- package/editor/utils/create-tooltip.d.ts +8 -0
- package/editor/utils/file-uploader.d.ts +27 -0
- package/editor/utils/generate-id.d.ts +1 -0
- package/editor/utils/index.d.ts +12 -0
- package/editor/utils/open-file-in-browser.d.ts +2 -0
- package/editor/utils/recalculate-indexes.d.ts +2 -0
- package/editor/utils/remove-element-tag-wrapper.d.ts +1 -0
- package/editor/utils/set-loading.d.ts +2 -0
- package/editor/utils/split-html.d.ts +1 -0
- package/editor/utils/url.validator.d.ts +2 -0
- package/editor/widgets/editor-block/editor-block.component.d.ts +22 -0
- package/editor/widgets/editor-block/index.d.ts +1 -0
- package/editor/widgets/editor-modal/editor-modal.component.d.ts +19 -0
- package/editor/widgets/editor-modal/index.d.ts +1 -0
- package/editor/widgets/editor-readonly/editor-readonly.component.d.ts +27 -0
- package/editor/widgets/editor-readonly/editor-readonly.options.d.ts +5 -0
- package/editor/widgets/editor-readonly/editor-resize-observer.directive.d.ts +15 -0
- package/editor/widgets/editor-readonly/index.d.ts +2 -0
- package/editor/widgets/index.d.ts +3 -0
- package/esm2022/animations/animations.mjs +228 -0
- package/esm2022/animations/index.mjs +2 -0
- package/esm2022/classes/accessors.mjs +31 -0
- package/esm2022/classes/driver.mjs +35 -0
- package/esm2022/classes/index.mjs +4 -0
- package/esm2022/classes/vehicle.mjs +7 -0
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +37 -0
- package/esm2022/components/accordion/accordion-item/accordion-item.options.mjs +2 -0
- package/esm2022/components/accordion/accordion.component.mjs +11 -0
- package/esm2022/components/accordion/accordion.directive.mjs +56 -0
- package/esm2022/components/accordion/accordion.module.mjs +21 -0
- package/esm2022/components/accordion/index.mjs +5 -0
- package/esm2022/components/alert/alert.component.mjs +36 -0
- package/esm2022/components/alert/alert.interfaces.mjs +2 -0
- package/esm2022/components/alert/alert.module.mjs +21 -0
- package/esm2022/components/alert/alert.service.mjs +17 -0
- package/esm2022/components/alert/alert.tokens.mjs +20 -0
- package/esm2022/components/alert/alert.types.mjs +2 -0
- package/esm2022/components/alert/alerts.component.mjs +34 -0
- package/esm2022/components/alert/index.mjs +9 -0
- 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/badge/badge.component.mjs +31 -0
- package/esm2022/components/badge/badge.module.mjs +18 -0
- package/esm2022/components/badge/badge.options.mjs +8 -0
- package/esm2022/components/badge/index.mjs +3 -0
- package/esm2022/components/banner/banner.component.mjs +68 -0
- package/esm2022/components/banner/banner.module.mjs +21 -0
- package/esm2022/components/banner/banner.options.mjs +6 -0
- package/esm2022/components/banner/index.mjs +4 -0
- package/esm2022/components/breadcrumbs/breadcrumb/breadcrumb.component.mjs +16 -0
- package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +17 -0
- package/esm2022/components/breadcrumbs/breadcrumbs.module.mjs +20 -0
- package/esm2022/components/breadcrumbs/index.mjs +4 -0
- package/esm2022/components/button/button.component.mjs +133 -0
- package/esm2022/components/button/button.module.mjs +19 -0
- package/esm2022/components/button/button.options.mjs +11 -0
- package/esm2022/components/button/index.mjs +4 -0
- package/esm2022/components/button-group/button-group.component.mjs +11 -0
- package/esm2022/components/button-group/button-group.module.mjs +16 -0
- package/esm2022/components/button-group/index.mjs +3 -0
- package/esm2022/components/card-wrapper/card-wrapper.component.mjs +18 -0
- package/esm2022/components/card-wrapper/index.mjs +2 -0
- package/esm2022/components/checkbox/checkbox.component.mjs +11 -0
- package/esm2022/components/checkbox/checkbox.module.mjs +16 -0
- package/esm2022/components/checkbox/index.mjs +3 -0
- package/esm2022/components/content-header/content-header.component.mjs +19 -0
- package/esm2022/components/content-header/index.mjs +2 -0
- package/esm2022/components/content-wrapper/content-wrapper.component.mjs +29 -0
- package/esm2022/components/content-wrapper/index.mjs +2 -0
- package/esm2022/components/context-menu/context-menu.component.mjs +148 -0
- package/esm2022/components/context-menu/context-menu.module.mjs +19 -0
- package/esm2022/components/context-menu/index.mjs +3 -0
- package/esm2022/components/dialog/dialog-actions/dialog-actions.component.mjs +11 -0
- package/esm2022/components/dialog/dialog-header/dialog-header.component.mjs +28 -0
- package/esm2022/components/dialog/dialog.component.mjs +67 -0
- package/esm2022/components/dialog/dialog.interfaces.mjs +2 -0
- package/esm2022/components/dialog/dialog.module.mjs +24 -0
- package/esm2022/components/dialog/dialog.service.mjs +17 -0
- package/esm2022/components/dialog/dialog.tokens.mjs +12 -0
- package/esm2022/components/dialog/dialogs.component.mjs +49 -0
- package/esm2022/components/dialog/index.mjs +9 -0
- package/esm2022/components/dropdown/dropdown-wrapper.component.mjs +23 -0
- package/esm2022/components/dropdown/dropdown.directive.mjs +182 -0
- package/esm2022/components/dropdown/dropdown.interfaces.mjs +2 -0
- package/esm2022/components/dropdown/index.mjs +3 -0
- package/esm2022/components/empty-state/empty-state.component.mjs +17 -0
- package/esm2022/components/empty-state/index.mjs +2 -0
- package/esm2022/components/file-icon/file-icon.component.mjs +22 -0
- package/esm2022/components/file-icon/file-icon.options.mjs +120 -0
- package/esm2022/components/file-icon/index.mjs +2 -0
- package/esm2022/components/form-field/form-field.component.mjs +11 -0
- package/esm2022/components/form-field/form-field.module.mjs +16 -0
- package/esm2022/components/form-field/index.mjs +3 -0
- package/esm2022/components/ghost-input/ghost-input.component.mjs +16 -0
- package/esm2022/components/ghost-input/index.mjs +2 -0
- package/esm2022/components/hint/hint.component.mjs +19 -0
- package/esm2022/components/hint/hint.module.mjs +16 -0
- package/esm2022/components/hint/index.mjs +3 -0
- package/esm2022/components/icon-button/icon-button.component.mjs +32 -0
- package/esm2022/components/icon-button/icon-button.module.mjs +19 -0
- package/esm2022/components/icon-button/index.mjs +3 -0
- package/esm2022/components/index.mjs +42 -0
- package/esm2022/components/input-number/index.mjs +3 -0
- package/esm2022/components/input-number/input-number.component.mjs +107 -0
- package/esm2022/components/input-number/input-number.module.mjs +22 -0
- package/esm2022/components/input-password/index.mjs +3 -0
- package/esm2022/components/input-password/input-password.component.mjs +83 -0
- package/esm2022/components/input-password/input-password.module.mjs +21 -0
- package/esm2022/components/input-text/index.mjs +3 -0
- package/esm2022/components/input-text/input-text.component.mjs +81 -0
- package/esm2022/components/input-text/input-text.module.mjs +21 -0
- package/esm2022/components/input-time/index.mjs +4 -0
- package/esm2022/components/input-time/input-time.component.mjs +93 -0
- package/esm2022/components/input-time/input-time.module.mjs +22 -0
- package/esm2022/components/input-time/input-time.options.mjs +8 -0
- package/esm2022/components/label/index.mjs +3 -0
- package/esm2022/components/label/label.component.mjs +17 -0
- package/esm2022/components/label/label.module.mjs +18 -0
- package/esm2022/components/layout/index.mjs +2 -0
- package/esm2022/components/layout/layout.component.mjs +16 -0
- package/esm2022/components/letter-box/index.mjs +2 -0
- package/esm2022/components/letter-box/letter-box.component.mjs +43 -0
- package/esm2022/components/letter-box/letter-box.interfaces.mjs +2 -0
- package/esm2022/components/notification/index.mjs +4 -0
- package/esm2022/components/notification/notification.component.mjs +47 -0
- package/esm2022/components/notification/notification.module.mjs +19 -0
- package/esm2022/components/notification/notification.options.mjs +53 -0
- package/esm2022/components/options-button/index.mjs +2 -0
- package/esm2022/components/options-button/options-button.component.mjs +20 -0
- package/esm2022/components/radio/index.mjs +3 -0
- package/esm2022/components/radio/radio.component.mjs +11 -0
- package/esm2022/components/radio/radio.module.mjs +16 -0
- package/esm2022/components/render-dynamic-components/index.mjs +3 -0
- package/esm2022/components/render-dynamic-components/render-dynamic-components.component.mjs +17 -0
- package/esm2022/components/render-dynamic-components/render-dynamic-components.options.mjs +2 -0
- package/esm2022/components/render-dynamic-components/render-dynamic-components.service.mjs +29 -0
- package/esm2022/components/root/index.mjs +4 -0
- package/esm2022/components/root/root.component.mjs +27 -0
- package/esm2022/components/root/root.module.mjs +21 -0
- package/esm2022/components/root/root.options.mjs +2 -0
- package/esm2022/components/select/index.mjs +3 -0
- package/esm2022/components/select/select.component.mjs +171 -0
- package/esm2022/components/select/select.module.mjs +21 -0
- package/esm2022/components/sidebar/index.mjs +7 -0
- package/esm2022/components/sidebar/sidebar-container/index.mjs +2 -0
- package/esm2022/components/sidebar/sidebar-container/sidebar-container.component.mjs +30 -0
- package/esm2022/components/sidebar/sidebar-header/index.mjs +2 -0
- package/esm2022/components/sidebar/sidebar-header/sidebar-header.component.mjs +27 -0
- package/esm2022/components/sidebar/sidebar-navigation/index.mjs +2 -0
- package/esm2022/components/sidebar/sidebar-navigation/sidebar-navigation.component.mjs +16 -0
- package/esm2022/components/sidebar/sidebar-navigation-container/index.mjs +2 -0
- package/esm2022/components/sidebar/sidebar-navigation-container/sidebar-navigation-container.component.mjs +16 -0
- package/esm2022/components/sidebar/sidebar-navigation-item/index.mjs +2 -0
- package/esm2022/components/sidebar/sidebar-navigation-item/sidebar-navigation-item.component.mjs +21 -0
- package/esm2022/components/sidebar/sidebar.options.mjs +2 -0
- package/esm2022/components/sidebar/sidebar.service.mjs +39 -0
- package/esm2022/components/svg/index.mjs +3 -0
- package/esm2022/components/svg/svg.component.mjs +48 -0
- package/esm2022/components/svg/svg.module.mjs +18 -0
- package/esm2022/components/tab/index.mjs +2 -0
- package/esm2022/components/tab/tab.component.mjs +36 -0
- package/esm2022/components/tabs/components/abstract-tabs/abstract-tabs.component.mjs +40 -0
- package/esm2022/components/tabs/components/abstract-tabs/index.mjs +2 -0
- package/esm2022/components/tabs/components/index.mjs +2 -0
- package/esm2022/components/tabs/index.mjs +6 -0
- package/esm2022/components/tabs/services/index.mjs +2 -0
- package/esm2022/components/tabs/services/tabs.service.mjs +27 -0
- package/esm2022/components/tabs/tabs.component.mjs +17 -0
- package/esm2022/components/tabs/tabs.options.mjs +5 -0
- package/esm2022/components/tabs/tabs.provider.mjs +9 -0
- package/esm2022/components/textarea/index.mjs +3 -0
- package/esm2022/components/textarea/textarea.component.mjs +35 -0
- package/esm2022/components/textarea/textarea.module.mjs +16 -0
- package/esm2022/components/toggle/index.mjs +3 -0
- package/esm2022/components/toggle/toggle.component.mjs +11 -0
- package/esm2022/components/toggle/toggle.module.mjs +16 -0
- package/esm2022/cuby-ui-core.mjs +5 -0
- package/esm2022/directives/index.mjs +3 -0
- package/esm2022/directives/text-field-controller/index.mjs +9 -0
- package/esm2022/directives/text-field-controller/text-field-controller.module.mjs +40 -0
- package/esm2022/directives/text-field-controller/text-field-controller.provider.mjs +24 -0
- package/esm2022/directives/text-field-controller/text-field-icon-left.directive.mjs +21 -0
- package/esm2022/directives/text-field-controller/text-field-id.directive.mjs +21 -0
- package/esm2022/directives/text-field-controller/text-field-is-error.directive.mjs +24 -0
- package/esm2022/directives/text-field-controller/text-field-placeholder.directive.mjs +21 -0
- package/esm2022/directives/text-field-controller/text-field-size.directive.mjs +24 -0
- package/esm2022/directives/text-field-controller/text-field.controller.mjs +25 -0
- package/esm2022/directives/tooltip/index.mjs +17 -0
- package/esm2022/directives/tooltip/tooltip-describe.directive.mjs +47 -0
- package/esm2022/directives/tooltip/tooltip-driver.directive.mjs +18 -0
- package/esm2022/directives/tooltip/tooltip-host.directive.mjs +26 -0
- package/esm2022/directives/tooltip/tooltip-hover.directive.mjs +50 -0
- package/esm2022/directives/tooltip/tooltip-manual.directive.mjs +31 -0
- package/esm2022/directives/tooltip/tooltip-options.directive.mjs +83 -0
- package/esm2022/directives/tooltip/tooltip-overflow.directive.mjs +31 -0
- package/esm2022/directives/tooltip/tooltip-pointer.directive.mjs +31 -0
- package/esm2022/directives/tooltip/tooltip-position.directive.mjs +91 -0
- package/esm2022/directives/tooltip/tooltip-unstyled.component.mjs +40 -0
- package/esm2022/directives/tooltip/tooltip.component.mjs +109 -0
- package/esm2022/directives/tooltip/tooltip.directive.mjs +92 -0
- package/esm2022/directives/tooltip/tooltip.mjs +27 -0
- package/esm2022/directives/tooltip/tooltip.providers.mjs +7 -0
- package/esm2022/directives/tooltip/tooltip.service.mjs +28 -0
- package/esm2022/directives/tooltip/tooltips.component.mjs +33 -0
- package/esm2022/editor/components/editor-attaches-tool/editor-attaches-tool.component.mjs +60 -0
- package/esm2022/editor/components/editor-attaches-tool/editor-attaches-tool.options.mjs +2 -0
- package/esm2022/editor/components/editor-attaches-tool/index.mjs +3 -0
- package/esm2022/editor/components/editor-image-tool/editor-image-tool.component.mjs +43 -0
- package/esm2022/editor/components/editor-image-tool/editor-image-tool.options.mjs +2 -0
- package/esm2022/editor/components/editor-image-tool/index.mjs +3 -0
- package/esm2022/editor/components/editor-tool/editor-tool.component.mjs +74 -0
- package/esm2022/editor/components/editor-tool-modal/editor-tool-modal.component.mjs +69 -0
- package/esm2022/editor/components/editor-tool-modal/editor-tool-modal.options.mjs +2 -0
- package/esm2022/editor/components/editor-tool-modal/index.mjs +3 -0
- package/esm2022/editor/components/editor-tooltip/editor-tooltip.component.mjs +45 -0
- package/esm2022/editor/components/editor-tooltip/editor-tooltip.options.mjs +2 -0
- package/esm2022/editor/components/editor-tooltip/index.mjs +3 -0
- package/esm2022/editor/components/editor-video-tool/editor-video-tool.component.mjs +41 -0
- package/esm2022/editor/components/editor-video-tool/editor-video-tool.options.mjs +2 -0
- package/esm2022/editor/components/editor-video-tool/index.mjs +3 -0
- package/esm2022/editor/components/index.mjs +8 -0
- package/esm2022/editor/components/marker-modal/index.mjs +3 -0
- package/esm2022/editor/components/marker-modal/marker-modal.component.mjs +261 -0
- package/esm2022/editor/components/marker-modal/marker-modal.interfaces.mjs +2 -0
- package/esm2022/editor/components/marker-modal/marker-modal.options.mjs +2 -0
- package/esm2022/editor/components/marker-select/component/select-item/select-option.component.mjs +15 -0
- package/esm2022/editor/components/marker-select/index.mjs +3 -0
- package/esm2022/editor/components/marker-select/marker-select.component.mjs +155 -0
- package/esm2022/editor/components/marker-select/marker-select.options.mjs +2 -0
- package/esm2022/editor/config/custom-elements.mjs +32 -0
- package/esm2022/editor/config/editor.config.mjs +30 -0
- package/esm2022/editor/config/index.mjs +2 -0
- package/esm2022/editor/constants/editor.constants.mjs +20 -0
- package/esm2022/editor/constants/index.mjs +2 -0
- package/esm2022/editor/editor.component.mjs +393 -0
- package/esm2022/editor/events/editor-drag.event.mjs +7 -0
- package/esm2022/editor/events/editor-keyboard.event.mjs +33 -0
- package/esm2022/editor/events/editor-modal.event.mjs +31 -0
- package/esm2022/editor/events/editor-tooltip.event.mjs +63 -0
- package/esm2022/editor/events/set-editor-events.mjs +11 -0
- package/esm2022/editor/i18n/en.json +14 -0
- package/esm2022/editor/index.mjs +8 -0
- package/esm2022/editor/interfaces/angular-element.mjs +2 -0
- package/esm2022/editor/interfaces/blocks-request-data.mjs +2 -0
- package/esm2022/editor/interfaces/combined-block-adding-event.mjs +2 -0
- package/esm2022/editor/interfaces/combined-block-data.mjs +2 -0
- package/esm2022/editor/interfaces/combined-part-block-data.mjs +2 -0
- package/esm2022/editor/interfaces/custom-element.mjs +2 -0
- package/esm2022/editor/interfaces/editor-service.mjs +2 -0
- package/esm2022/editor/interfaces/event-action-data.mjs +2 -0
- package/esm2022/editor/interfaces/file-response-data.mjs +2 -0
- package/esm2022/editor/interfaces/full-block-data.mjs +2 -0
- package/esm2022/editor/interfaces/index.mjs +15 -0
- package/esm2022/editor/interfaces/main-editor-config.mjs +2 -0
- package/esm2022/editor/interfaces/mutation-actions.mjs +2 -0
- package/esm2022/editor/interfaces/parent.mjs +2 -0
- package/esm2022/editor/interfaces/tools.mjs +2 -0
- package/esm2022/editor/interfaces/tune.mjs +2 -0
- package/esm2022/editor/pipes/file-size.pipe.mjs +25 -0
- package/esm2022/editor/providers/editor.provider.mjs +19 -0
- package/esm2022/editor/providers/index.mjs +2 -0
- package/esm2022/editor/services/editor-service.options.mjs +4 -0
- package/esm2022/editor/services/editor.service.mjs +138 -0
- package/esm2022/editor/services/index.mjs +5 -0
- package/esm2022/editor/services/markers-service.options.mjs +2 -0
- package/esm2022/editor/services/markers.service.mjs +79 -0
- package/esm2022/editor/tools/attaches.tool.mjs +102 -0
- package/esm2022/editor/tools/bold.tool.mjs +33 -0
- package/esm2022/editor/tools/combined-text-block.tool.mjs +363 -0
- package/esm2022/editor/tools/custom-marker.tool.mjs +88 -0
- package/esm2022/editor/tools/header.tool.mjs +16 -0
- package/esm2022/editor/tools/image.tool.mjs +157 -0
- package/esm2022/editor/tools/index.mjs +12 -0
- package/esm2022/editor/tools/italic.tool.mjs +35 -0
- package/esm2022/editor/tools/link-marker.tool.mjs +80 -0
- package/esm2022/editor/tools/list.tool.mjs +10 -0
- package/esm2022/editor/tools/marker.tool.mjs +144 -0
- package/esm2022/editor/tools/role-marker.tool.mjs +17 -0
- package/esm2022/editor/tools/selection-base.tool.mjs +92 -0
- package/esm2022/editor/tools/tool-marker.tool.mjs +14 -0
- package/esm2022/editor/tools/video.tool.mjs +132 -0
- package/esm2022/editor/utils/copy-text-to-clipboard.mjs +17 -0
- package/esm2022/editor/utils/create-link-modal.mjs +22 -0
- package/esm2022/editor/utils/create-tool-modal.mjs +45 -0
- package/esm2022/editor/utils/create-tools-data.mjs +56 -0
- package/esm2022/editor/utils/create-tooltip.mjs +43 -0
- package/esm2022/editor/utils/file-uploader.mjs +60 -0
- package/esm2022/editor/utils/generate-id.mjs +4 -0
- package/esm2022/editor/utils/index.mjs +13 -0
- package/esm2022/editor/utils/open-file-in-browser.mjs +9 -0
- package/esm2022/editor/utils/recalculate-indexes.mjs +32 -0
- package/esm2022/editor/utils/remove-element-tag-wrapper.mjs +11 -0
- package/esm2022/editor/utils/set-loading.mjs +14 -0
- package/esm2022/editor/utils/split-html.mjs +128 -0
- package/esm2022/editor/utils/url.validator.mjs +12 -0
- package/esm2022/editor/widgets/editor-block/editor-block.component.mjs +63 -0
- package/esm2022/editor/widgets/editor-block/index.mjs +2 -0
- package/esm2022/editor/widgets/editor-modal/editor-modal.component.mjs +42 -0
- package/esm2022/editor/widgets/editor-modal/index.mjs +2 -0
- package/esm2022/editor/widgets/editor-readonly/editor-readonly.component.mjs +36 -0
- package/esm2022/editor/widgets/editor-readonly/editor-readonly.options.mjs +2 -0
- package/esm2022/editor/widgets/editor-readonly/editor-resize-observer.directive.mjs +51 -0
- package/esm2022/editor/widgets/editor-readonly/index.mjs +2 -0
- package/esm2022/editor/widgets/index.mjs +4 -0
- package/esm2022/index.mjs +12 -0
- package/esm2022/interceptors/auth.interceptor.mjs +15 -0
- package/esm2022/interceptors/error-handler.interceptor.mjs +23 -0
- package/esm2022/interceptors/index.mjs +6 -0
- package/esm2022/interceptors/loader.interceptor.mjs +12 -0
- package/esm2022/interceptors/sse-stream-reader.interceptor.mjs +78 -0
- package/esm2022/interceptors/x-ndjson.interceptor.mjs +48 -0
- package/esm2022/interfaces/context-menu-item.mjs +2 -0
- package/esm2022/interfaces/error-notification-service.mjs +2 -0
- package/esm2022/interfaces/error-stategy.mjs +2 -0
- package/esm2022/interfaces/image.mjs +2 -0
- package/esm2022/interfaces/index.mjs +6 -0
- package/esm2022/interfaces/option.mjs +2 -0
- package/esm2022/operators/handle-error.mjs +12 -0
- package/esm2022/operators/index.mjs +2 -0
- package/esm2022/providers/auth.options.mjs +3 -0
- package/esm2022/providers/auth.provider.mjs +31 -0
- package/esm2022/providers/error-handler.options.mjs +2 -0
- package/esm2022/providers/error-handler.provider.mjs +23 -0
- package/esm2022/providers/index.mjs +4 -0
- package/esm2022/services/auth.service.mjs +31 -0
- package/esm2022/services/browser-auth.service.mjs +31 -0
- package/esm2022/services/error-resolver-factory.service.mjs +75 -0
- package/esm2022/services/global-handler-error.service.mjs +26 -0
- package/esm2022/services/index.mjs +10 -0
- package/esm2022/services/loader.options.mjs +6 -0
- package/esm2022/services/loader.service.mjs +60 -0
- package/esm2022/services/mobile-auth.service.mjs +25 -0
- package/esm2022/services/position.service.mjs +23 -0
- package/esm2022/services/theme.options.mjs +6 -0
- package/esm2022/services/theme.service.mjs +30 -0
- package/esm2022/services/token.options.mjs +2 -0
- package/esm2022/services/token.service.mjs +121 -0
- package/esm2022/services/visual-viewport.service.mjs +28 -0
- package/esm2022/tokens/animations-speed.mjs +8 -0
- package/esm2022/tokens/error-notification-service.mjs +15 -0
- package/esm2022/tokens/error-translation-prefix.mjs +6 -0
- package/esm2022/tokens/index.mjs +6 -0
- package/esm2022/tokens/reduced-motion.mjs +5 -0
- package/esm2022/tokens/viewport.mjs +31 -0
- package/esm2022/types/appearance.mjs +2 -0
- package/esm2022/types/button-theme.mjs +2 -0
- package/esm2022/types/hint-type.mjs +2 -0
- package/esm2022/types/index.mjs +11 -0
- package/esm2022/types/point.mjs +2 -0
- package/esm2022/types/portal-item.mjs +2 -0
- package/esm2022/types/position.mjs +2 -0
- package/esm2022/types/resizing.mjs +2 -0
- package/esm2022/types/shape.mjs +2 -0
- package/esm2022/types/size.mjs +2 -0
- package/esm2022/types/status.mjs +2 -0
- package/esm2022/utils/check-fixed-position.mjs +7 -0
- package/esm2022/utils/default-validators/create-default-validators.mjs +19 -0
- package/esm2022/utils/default-validators/create-default-validators.options.mjs +2 -0
- package/esm2022/utils/default-validators/extra-spaces.options.mjs +11 -0
- package/esm2022/utils/default-validators/extra-spaces.validators.mjs +11 -0
- package/esm2022/utils/default-validators/index.mjs +2 -0
- package/esm2022/utils/format/index.mjs +3 -0
- package/esm2022/utils/format/remove-spaces.mjs +4 -0
- package/esm2022/utils/format/replace.mjs +5 -0
- package/esm2022/utils/index.mjs +5 -0
- package/esm2022/utils/miscellaneous/index.mjs +4 -0
- package/esm2022/utils/miscellaneous/is-obscured.mjs +8 -0
- package/esm2022/utils/miscellaneous/override-options.mjs +11 -0
- package/esm2022/utils/miscellaneous/to-animation-options.mjs +14 -0
- 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/circle-loader-size.type.mjs +2 -0
- package/esm2022/widgets/model/index.mjs +11 -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/button-change-theme/button-change-theme.component.mjs +27 -0
- package/esm2022/widgets/ui/button-change-theme/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/circle-loader/circle-loader.component.mjs +20 -0
- package/esm2022/widgets/ui/circle-loader/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 +30 -0
- package/esm2022/widgets/ui/inserted/index.mjs +2 -0
- package/esm2022/widgets/ui/inserted/inserted.component.mjs +17 -0
- 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/linear-loader/index.mjs +2 -0
- package/esm2022/widgets/ui/linear-loader/linear-loader.component.mjs +11 -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 +58 -0
- package/esm2022/widgets/ui/modal-divided-section/modal-divided-section.interfaces.mjs +2 -0
- package/esm2022/widgets/ui/modal-header/index.mjs +2 -0
- package/esm2022/widgets/ui/modal-header/modal-header.component.mjs +31 -0
- 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 +119 -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/stated-loader/index.mjs +2 -0
- package/esm2022/widgets/ui/stated-loader/stated-loader.component.mjs +36 -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 +59 -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 +67 -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 +80 -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 +94 -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-en-CnpigsdW.mjs +29 -0
- package/fesm2022/cuby-ui-core-en-CnpigsdW.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 +12232 -0
- package/fesm2022/cuby-ui-core.mjs.map +1 -0
- package/fonts/Inter-Bold.eot +0 -0
- package/fonts/Inter-Bold.otf +0 -0
- package/fonts/Inter-Bold.svg +25443 -0
- package/fonts/Inter-Bold.ttf +0 -0
- package/fonts/Inter-Bold.woff +0 -0
- package/fonts/Inter-Bold.woff2 +0 -0
- package/fonts/Inter-Medium.eot +0 -0
- package/fonts/Inter-Medium.otf +0 -0
- package/fonts/Inter-Medium.svg +25400 -0
- package/fonts/Inter-Medium.ttf +0 -0
- package/fonts/Inter-Medium.woff +0 -0
- package/fonts/Inter-Medium.woff2 +0 -0
- package/fonts/Inter-Regular.eot +0 -0
- package/fonts/Inter-Regular.otf +0 -0
- package/fonts/Inter-Regular.svg +24341 -0
- package/fonts/Inter-Regular.ttf +0 -0
- package/fonts/Inter-Regular.woff +0 -0
- package/fonts/Inter-Regular.woff2 +0 -0
- package/fonts/Inter-SemiBold.eot +0 -0
- package/fonts/Inter-SemiBold.otf +0 -0
- package/fonts/Inter-SemiBold.svg +25459 -0
- package/fonts/Inter-SemiBold.ttf +0 -0
- package/fonts/Inter-SemiBold.woff +0 -0
- package/fonts/Inter-SemiBold.woff2 +0 -0
- package/fonts/Nunito-ExtraBoldItalic.eot +0 -0
- package/fonts/Nunito-ExtraBoldItalic.otf +0 -0
- package/fonts/Nunito-ExtraBoldItalic.svg +9508 -0
- package/fonts/Nunito-ExtraBoldItalic.ttf +0 -0
- package/fonts/Nunito-ExtraBoldItalic.woff +0 -0
- package/fonts/Nunito-ExtraBoldItalic.woff2 +0 -0
- package/index.d.ts +11 -0
- package/interceptors/auth.interceptor.d.ts +2 -0
- package/interceptors/error-handler.interceptor.d.ts +2 -0
- package/interceptors/index.d.ts +5 -0
- package/interceptors/loader.interceptor.d.ts +2 -0
- package/interceptors/sse-stream-reader.interceptor.d.ts +2 -0
- package/interceptors/x-ndjson.interceptor.d.ts +2 -0
- package/interfaces/context-menu-item.d.ts +7 -0
- package/interfaces/error-notification-service.d.ts +3 -0
- package/interfaces/error-stategy.d.ts +3 -0
- package/interfaces/image.d.ts +5 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/option.d.ts +5 -0
- package/operators/handle-error.d.ts +2 -0
- package/operators/index.d.ts +1 -0
- package/package.json +4 -7
- package/providers/auth.options.d.ts +15 -0
- package/providers/auth.provider.d.ts +3 -0
- package/providers/error-handler.options.d.ts +6 -0
- package/providers/error-handler.provider.d.ts +3 -0
- package/providers/index.d.ts +4 -0
- package/services/auth.service.d.ts +8 -0
- package/services/browser-auth.service.d.ts +10 -0
- package/services/error-resolver-factory.service.d.ts +10 -0
- package/services/global-handler-error.service.d.ts +10 -0
- package/services/index.d.ts +9 -0
- package/services/loader.options.d.ts +7 -0
- package/services/loader.service.d.ts +21 -0
- package/services/mobile-auth.service.d.ts +8 -0
- package/services/position.service.d.ts +10 -0
- package/services/theme.options.d.ts +5 -0
- package/services/theme.service.d.ts +12 -0
- package/services/token.options.d.ts +31 -0
- package/services/token.service.d.ts +26 -0
- package/services/visual-viewport.service.d.ts +9 -0
- package/styles/direcive/flex-container.scss +3 -0
- package/styles/fonts.scss +69 -0
- package/styles/global.scss +10 -0
- package/styles/mixins/buttons.scss +13 -0
- package/styles/mixins/flex.scss +11 -0
- package/styles/mixins/headings.scss +115 -0
- package/styles/mixins/inputs.scss +91 -0
- package/styles/mixins/lists.scss +41 -0
- package/styles/mixins/paddings.scss +35 -0
- package/styles/mixins/shadows.scss +42 -0
- package/styles/mixins/texts.scss +224 -0
- package/styles/reset.scss +111 -0
- package/styles/theme.scss +427 -0
- package/styles/variables/colors.scss +288 -0
- package/styles/variables/fonts.scss +2 -0
- package/tokens/animations-speed.d.ts +4 -0
- package/tokens/error-notification-service.d.ts +3 -0
- package/tokens/error-translation-prefix.d.ts +2 -0
- package/tokens/index.d.ts +5 -0
- package/tokens/reduced-motion.d.ts +1 -0
- package/tokens/viewport.d.ts +7 -0
- package/types/appearance.d.ts +11 -0
- package/types/button-theme.d.ts +5 -0
- package/types/hint-type.d.ts +1 -0
- package/types/index.d.ts +10 -0
- package/types/point.d.ts +1 -0
- package/types/portal-item.d.ts +9 -0
- package/types/position.d.ts +2 -0
- package/types/resizing.d.ts +3 -0
- package/types/shape.d.ts +1 -0
- package/types/size.d.ts +6 -0
- package/types/status.d.ts +1 -0
- package/utils/check-fixed-position.d.ts +1 -0
- package/utils/default-validators/create-default-validators.d.ts +5 -0
- package/utils/default-validators/create-default-validators.options.d.ts +5 -0
- package/utils/default-validators/extra-spaces.options.d.ts +2 -0
- package/utils/default-validators/extra-spaces.validators.d.ts +3 -0
- package/utils/default-validators/index.d.ts +2 -0
- package/utils/format/index.d.ts +2 -0
- package/utils/format/remove-spaces.d.ts +1 -0
- package/utils/format/replace.d.ts +1 -0
- package/utils/index.d.ts +4 -0
- package/utils/miscellaneous/index.d.ts +3 -0
- package/utils/miscellaneous/is-obscured.d.ts +4 -0
- package/utils/miscellaneous/override-options.d.ts +1 -0
- package/utils/miscellaneous/to-animation-options.d.ts +4 -0
- 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/circle-loader-size.type.d.ts +2 -0
- package/widgets/model/index.d.ts +10 -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/button-change-theme/button-change-theme.component.d.ts +9 -0
- package/widgets/ui/button-change-theme/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/circle-loader/circle-loader.component.d.ts +8 -0
- package/widgets/ui/circle-loader/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 +29 -0
- package/widgets/ui/inserted/index.d.ts +1 -0
- package/widgets/ui/inserted/inserted.component.d.ts +5 -0
- 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/linear-loader/index.d.ts +1 -0
- package/widgets/ui/linear-loader/linear-loader.component.d.ts +5 -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/index.d.ts +1 -0
- package/widgets/ui/modal-header/modal-header.component.d.ts +12 -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 +26 -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 +4 -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/stated-loader/index.d.ts +1 -0
- package/widgets/ui/stated-loader/stated-loader.component.d.ts +20 -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 +16 -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 +20 -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 +25 -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 +29 -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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, DestroyRef, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { CUI_DIALOG_CONTEXT, CuiButtonModule, CuiSvgModule } from '../../../../../components';
|
|
4
|
+
import { UTILITY_MODAL_SERVICE_TOKEN } from '../../utility-modal.options';
|
|
5
|
+
import { CuiUtilityModalCreateComponent } from '../utility-modal-create';
|
|
6
|
+
import { CuiInstructionInfoComponent } from '../../../instruction-info';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class CuiInstructionModalCreateComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.destroyRef = inject(DestroyRef);
|
|
11
|
+
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
12
|
+
this.instructionApiService = inject(UTILITY_MODAL_SERVICE_TOKEN);
|
|
13
|
+
this.isCreated = false;
|
|
14
|
+
this.editorResourceUrl = this.cuiDialogContext.data.editorResourceUrl;
|
|
15
|
+
this.tools = this.cuiDialogContext.data.tools;
|
|
16
|
+
this.header = this.cuiDialogContext.data.header;
|
|
17
|
+
this._instruction = computed(() => signal(this.initialUtility()));
|
|
18
|
+
this.isFormValid = signal(false);
|
|
19
|
+
this.instruction = computed(() => this._instruction()());
|
|
20
|
+
this.initialUtility = input.required();
|
|
21
|
+
}
|
|
22
|
+
onInstructionCreated(storageNodeId) {
|
|
23
|
+
if (this.isCreated || this.initialUtility()) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.instructionApiService
|
|
27
|
+
.createUtility(storageNodeId)
|
|
28
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
29
|
+
.subscribe((instruction) => {
|
|
30
|
+
this.isCreated = true;
|
|
31
|
+
this._instruction().set(instruction);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionModalCreateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: CuiInstructionModalCreateComponent, isStandalone: true, selector: "ng-component", inputs: { initialUtility: { classPropertyName: "initialUtility", publicName: "initialUtility", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<cui-utility-modal-create [initialUtility]=\"instruction()\">\n <cui-instruction-info\n [instruction]=\"instruction()\"\n [tools]=\"tools\"\n [editorResourceUrl]=\"editorResourceUrl\"\n (validationChanged)=\"isFormValid.set($event)\"\n (instructionCreated)=\"onInstructionCreated($event)\"\n />\n</cui-utility-modal-create>\n", dependencies: [{ kind: "ngmodule", type: CuiButtonModule }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: CuiUtilityModalCreateComponent, selector: "cui-utility-modal-create", inputs: ["initialUtility"] }, { kind: "component", type: CuiInstructionInfoComponent, selector: "cui-instruction-info", inputs: ["instruction", "tools", "editorResourceUrl"], outputs: ["instructionChange", "validationChanged", "instructionCreated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionModalCreateComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{ imports: [CuiButtonModule, CuiSvgModule, CuiUtilityModalCreateComponent, CuiInstructionInfoComponent], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<cui-utility-modal-create [initialUtility]=\"instruction()\">\n <cui-instruction-info\n [instruction]=\"instruction()\"\n [tools]=\"tools\"\n [editorResourceUrl]=\"editorResourceUrl\"\n (validationChanged)=\"isFormValid.set($event)\"\n (instructionCreated)=\"onInstructionCreated($event)\"\n />\n</cui-utility-modal-create>\n" }]
|
|
40
|
+
}] });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdHJ1Y3Rpb24tbW9kYWwtY3JlYXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS91dGlsaXR5LW1vZGFsL2NvbXBvbmVudHMvaW5zdHJ1Y3Rpb24tbW9kYWw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CI+XG4gICAgPGN1aS1pbnN0cnVjdGlvbi1pbmZvXG4gICAgICAgIFtpbnN0cnVjdGlvbl09XCJpbnN0cnVjdGlvbigpXCJcbiAgICAgICAgW3Rvb2xzXT1cInRvb2xzXCJcbiAgICAgICAgW2VkaXRvclJlc291cmNlVXJsXT1cImVkaXRvclJlc291cmNlVXJsXCJcbiAgICAgICAgKHZhbGlkYXRpb25DaGFuZ2VkKT1cImlzRm9ybVZhbGlkLnNldCgkZXZlbnQpXCJcbiAgICAgICAgKGluc3RydWN0aW9uQ3JlYXRlZCk9XCJvbkluc3RydWN0aW9uQ3JlYXRlZCgkZXZlbnQpXCJcbiAgICAvPlxuPC9jdWktdXRpbGl0eS1tb2RhbC1jcmVhdGU+XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiReadonlyCriterionModalComponent } from './readonly-criterion-modal.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3JlYWRvbmx5LWNyaXRlcmlvbi1tb2RhbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0NBQWtDLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1aVJlYWRvbmx5Q3JpdGVyaW9uTW9kYWxDb21wb25lbnQgfSBmcm9tICcuL3JlYWRvbmx5LWNyaXRlcmlvbi1tb2RhbC5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
3
|
+
import { CUI_DIALOG_CONTEXT, CuiBadgeModule, CuiButtonModule, CuiRenderDynamicComponentsService, CuiSvgModule } from '../../../../../components';
|
|
4
|
+
import { CuiReadonlyUtilityModalComponent } from '../readonly-utility-modal';
|
|
5
|
+
import { CuiCriterionModalCreateComponent } from '../criterion-modal-create';
|
|
6
|
+
import { CuiCriterionReadonlyInfoComponent } from '../../../criterion-readonly-info';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class CuiReadonlyCriterionModalComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
11
|
+
this.cuiRenderDynamicComponentsService = inject(CuiRenderDynamicComponentsService);
|
|
12
|
+
this.editorResourceUrl = this.cuiDialogContext.data.editorResourceUrl;
|
|
13
|
+
this.tools = this.cuiDialogContext.data.tools;
|
|
14
|
+
this.header = this.cuiDialogContext.data.header;
|
|
15
|
+
this.isLoading = signal(false);
|
|
16
|
+
this.framerId = computed(() => this.criterion().storageElement.framerCriterionId);
|
|
17
|
+
this.criterion = input.required();
|
|
18
|
+
}
|
|
19
|
+
onUnbind(criterion) {
|
|
20
|
+
this.cuiRenderDynamicComponentsService.closeAll();
|
|
21
|
+
this.cuiRenderDynamicComponentsService.open({
|
|
22
|
+
component: CuiCriterionModalCreateComponent,
|
|
23
|
+
inputs: { criterion }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiReadonlyCriterionModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: CuiReadonlyCriterionModalComponent, isStandalone: true, selector: "cui-readonly-criterion-modal", inputs: { criterion: { classPropertyName: "criterion", publicName: "criterion", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<cui-readonly-utility-modal\n [utility]=\"criterion()\"\n (utilityUnbinded)=\"onUnbind($event)\"\n>\n <ng-container *transloco=\"let t\">\n <div\n #scrollContainer\n class=\"info\"\n >\n <h3 class=\"title\">{{ criterion().storageElement.title }}</h3>\n\n <cui-criterion-readonly-info\n [framerId]=\"framerId()\"\n [editorResourceUrl]=\"editorResourceUrl\"\n [tools]=\"tools\"\n [element]=\"scrollContainer\"\n class=\"info__block\"\n />\n </div>\n </ng-container>\n</cui-readonly-utility-modal>\n", styles: [".info{padding:16px 8px;display:flex;flex-direction:column;height:calc(100vh - 177px);overflow:auto}.info__block{overflow:visible}.title{padding-right:16px;padding-left:16px;font-weight:500;font-size:16px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow:visible}\n"], dependencies: [{ kind: "ngmodule", type: CuiBadgeModule }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiReadonlyUtilityModalComponent, selector: "cui-readonly-utility-modal", inputs: ["utility"], outputs: ["utilityUnbinded"] }, { kind: "component", type: CuiCriterionReadonlyInfoComponent, selector: "cui-criterion-readonly-info", inputs: ["framerId", "element", "tools", "editorResourceUrl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiReadonlyCriterionModalComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'cui-readonly-criterion-modal', imports: [
|
|
32
|
+
CuiBadgeModule,
|
|
33
|
+
CuiButtonModule,
|
|
34
|
+
CuiSvgModule,
|
|
35
|
+
TranslocoDirective,
|
|
36
|
+
CuiReadonlyUtilityModalComponent,
|
|
37
|
+
CuiCriterionReadonlyInfoComponent
|
|
38
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<cui-readonly-utility-modal\n [utility]=\"criterion()\"\n (utilityUnbinded)=\"onUnbind($event)\"\n>\n <ng-container *transloco=\"let t\">\n <div\n #scrollContainer\n class=\"info\"\n >\n <h3 class=\"title\">{{ criterion().storageElement.title }}</h3>\n\n <cui-criterion-readonly-info\n [framerId]=\"framerId()\"\n [editorResourceUrl]=\"editorResourceUrl\"\n [tools]=\"tools\"\n [element]=\"scrollContainer\"\n class=\"info__block\"\n />\n </div>\n </ng-container>\n</cui-readonly-utility-modal>\n", styles: [".info{padding:16px 8px;display:flex;flex-direction:column;height:calc(100vh - 177px);overflow:auto}.info__block{overflow:visible}.title{padding-right:16px;padding-left:16px;font-weight:500;font-size:16px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow:visible}\n"] }]
|
|
39
|
+
}] });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZG9ubHktY3JpdGVyaW9uLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS91dGlsaXR5LW1vZGFsL2NvbXBvbmVudHMvcmVhZG9ubHktY3JpdGVyaW9uLW1vZGFsL3JlYWRvbmx5LWNyaXRlcmlvbi1tb2RhbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3JlYWRvbmx5LWNyaXRlcmlvbi1tb2RhbC9yZWFkb25seS1jcml0ZXJpb24tbW9kYWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLC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gICAgW2VsZW1lbnRdPVwic2Nyb2xsQ29udGFpbmVyXCJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImluZm9fX2Jsb2NrXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvbmctY29udGFpbmVyPlxuPC9jdWktcmVhZG9ubHktdXRpbGl0eS1tb2RhbD5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiReadonlyInstructionModalComponent } from './readonly-instruction-modal.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3JlYWRvbmx5LWluc3RydWN0aW9uLW1vZGFsL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQ0FBb0MsRUFBRSxNQUFNLHdDQUF3QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ3VpUmVhZG9ubHlJbnN0cnVjdGlvbk1vZGFsQ29tcG9uZW50IH0gZnJvbSAnLi9yZWFkb25seS1pbnN0cnVjdGlvbi1tb2RhbC5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
3
|
+
import { CUI_DIALOG_CONTEXT, CuiBadgeModule, CuiButtonModule, CuiRenderDynamicComponentsService, CuiSvgModule } from '../../../../../components';
|
|
4
|
+
import { CuiInstructionReadonlyInfoComponent } from '../../../instruction-readonly-info';
|
|
5
|
+
import { CuiInstructionModalCreateComponent } from '../instruction-modal-create';
|
|
6
|
+
import { CuiReadonlyUtilityModalComponent } from '../readonly-utility-modal';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class CuiReadonlyInstructionModalComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
11
|
+
this.cuiRenderDynamicComponentsService = inject(CuiRenderDynamicComponentsService);
|
|
12
|
+
this.editorResourceUrl = this.cuiDialogContext.data.editorResourceUrl;
|
|
13
|
+
this.tools = this.cuiDialogContext.data.tools;
|
|
14
|
+
this.header = this.cuiDialogContext.data.header;
|
|
15
|
+
this.isLoading = signal(false);
|
|
16
|
+
this.framerId = computed(() => this.instruction().storageElement.framerInstructionId);
|
|
17
|
+
this.instruction = input.required();
|
|
18
|
+
}
|
|
19
|
+
onUnbind(instruction) {
|
|
20
|
+
this.cuiRenderDynamicComponentsService.closeAll();
|
|
21
|
+
this.cuiRenderDynamicComponentsService.open({
|
|
22
|
+
component: CuiInstructionModalCreateComponent,
|
|
23
|
+
inputs: { initialUtility: instruction }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiReadonlyInstructionModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: CuiReadonlyInstructionModalComponent, isStandalone: true, selector: "cui-readonly-instruction-modal", inputs: { instruction: { classPropertyName: "instruction", publicName: "instruction", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <cui-readonly-utility-modal\n [utility]=\"instruction()\"\n (utilityUnbinded)=\"onUnbind($event)\"\n >\n <div\n #scrollContainer\n class=\"info\"\n >\n <h3 class=\"title\">{{ instruction().storageElement.title }}</h3>\n\n <cui-instruction-readonly-info\n [framerId]=\"framerId()\"\n [editorResourceUrl]=\"editorResourceUrl\"\n [tools]=\"tools\"\n [element]=\"scrollContainer\"\n class=\"info__block\"\n />\n </div>\n </cui-readonly-utility-modal>\n</ng-container>\n", styles: [".info{padding:16px 8px;display:flex;flex-direction:column;height:calc(100vh - 177px);overflow:auto}.info__block{overflow:visible}.title{padding-right:16px;padding-left:16px;font-weight:500;font-size:16px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow:visible}\n"], dependencies: [{ kind: "ngmodule", type: CuiBadgeModule }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: CuiInstructionReadonlyInfoComponent, selector: "cui-instruction-readonly-info", inputs: ["framerId", "element", "tools", "editorResourceUrl"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiReadonlyUtilityModalComponent, selector: "cui-readonly-utility-modal", inputs: ["utility"], outputs: ["utilityUnbinded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiReadonlyInstructionModalComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'cui-readonly-instruction-modal', imports: [
|
|
32
|
+
CuiBadgeModule,
|
|
33
|
+
CuiButtonModule,
|
|
34
|
+
CuiSvgModule,
|
|
35
|
+
CuiInstructionReadonlyInfoComponent,
|
|
36
|
+
TranslocoDirective,
|
|
37
|
+
CuiReadonlyUtilityModalComponent
|
|
38
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n <cui-readonly-utility-modal\n [utility]=\"instruction()\"\n (utilityUnbinded)=\"onUnbind($event)\"\n >\n <div\n #scrollContainer\n class=\"info\"\n >\n <h3 class=\"title\">{{ instruction().storageElement.title }}</h3>\n\n <cui-instruction-readonly-info\n [framerId]=\"framerId()\"\n [editorResourceUrl]=\"editorResourceUrl\"\n [tools]=\"tools\"\n [element]=\"scrollContainer\"\n class=\"info__block\"\n />\n </div>\n </cui-readonly-utility-modal>\n</ng-container>\n", styles: [".info{padding:16px 8px;display:flex;flex-direction:column;height:calc(100vh - 177px);overflow:auto}.info__block{overflow:visible}.title{padding-right:16px;padding-left:16px;font-weight:500;font-size:16px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow:visible}\n"] }]
|
|
39
|
+
}] });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZG9ubHktaW5zdHJ1Y3Rpb24tbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3V0aWxpdHktbW9kYWwvY29tcG9uZW50cy9yZWFkb25seS1pbnN0cnVjdGlvbi1tb2RhbC9yZWFkb25seS1pbnN0cnVjdGlvbi1tb2RhbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3JlYWRvbmx5LWluc3RydWN0aW9uLW1vZGFsL3JlYWRvbmx5LWluc3RydWN0aW9uLW1vZGFsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3BHLE9BQU8sRUFBRSxrQkFBa0IsRUFB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XMuY3VpUmVuZGVyRHluYW1pY0NvbXBvbmVudHNTZXJ2aWNlLmNsb3NlQWxsKCk7XG4gICAgICAgIHRoaXMuY3VpUmVuZGVyRHluYW1pY0NvbXBvbmVudHNTZXJ2aWNlLm9wZW4oe1xuICAgICAgICAgICAgY29tcG9uZW50OiBDdWlJbnN0cnVjdGlvbk1vZGFsQ3JlYXRlQ29tcG9uZW50LFxuICAgICAgICAgICAgaW5wdXRzOiB7IGluaXRpYWxVdGlsaXR5OiBpbnN0cnVjdGlvbiB9XG4gICAgICAgIH0pO1xuICAgIH1cbn1cbiIsIjxuZy1jb250YWluZXIgKnRyYW5zbG9jbz1cImxldCB0XCI+XG4gICAgPGN1aS1yZWFkb25seS11dGlsaXR5LW1vZGFsXG4gICAgICAgIFt1dGlsaXR5XT1cImluc3RydWN0aW9uKClcIlxuICAgICAgICAodXRpbGl0eVVuYmluZGVkKT1cIm9uVW5iaW5kKCRldmVudClcIlxuICAgID5cbiAgICAgICAgPGRpdlxuICAgICAgICAgICAgI3Njcm9sbENvbnRhaW5lclxuICAgICAgICAgICAgY2xhc3M9XCJpbmZvXCJcbiAgICAgICAgPlxuICAgICAgICAgICAgPGgzIGNsYXNzPVwidGl0bGVcIj57eyBpbnN0cnVjdGlvbigpLnN0b3JhZ2VFbGVtZW50LnRpdGxlIH19PC9oMz5cblxuICAgICAgICAgICAgPGN1aS1pbnN0cnVjdGlvbi1yZWFkb25seS1pbmZvXG4gICAgICAgICAgICAgICAgW2ZyYW1lcklkXT1cImZyYW1lcklkKClcIlxuICAgICAgICAgICAgICAgIFtlZGl0b3JSZXNvdXJjZVVybF09XCJlZGl0b3JSZXNvdXJjZVVybFwiXG4gICAgICAgICAgICAgICAgW3Rvb2xzXT1cInRvb2xzXCJcbiAgICAgICAgICAgICAgICBbZWxlbWVudF09XCJzY3JvbGxDb250YWluZXJcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwiaW5mb19fYmxvY2tcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9jdWktcmVhZG9ubHktdXRpbGl0eS1tb2RhbD5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiReadonlyUtilityModalComponent } from './readonly-utility-modal.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3JlYWRvbmx5LXV0aWxpdHktbW9kYWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sb0NBQW9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlSZWFkb25seVV0aWxpdHlNb2RhbENvbXBvbmVudCB9IGZyb20gJy4vcmVhZG9ubHktdXRpbGl0eS1tb2RhbC5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, inject, input, output, signal } from '@angular/core';
|
|
3
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
5
|
+
import { finalize } from 'rxjs';
|
|
6
|
+
import { CUI_DIALOG_CONTEXT, CuiBadgeModule, CuiButtonModule, CuiSvgModule } from '../../../../../components';
|
|
7
|
+
import { UTILITY_MODAL_SERVICE_TOKEN } from '../../utility-modal.options';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../../../../../components/badge/badge.component";
|
|
10
|
+
import * as i2 from "../../../../../components/button/button.component";
|
|
11
|
+
import * as i3 from "../../../../../components/svg/svg.component";
|
|
12
|
+
export class CuiReadonlyUtilityModalComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.destroyRef = inject(DestroyRef);
|
|
15
|
+
this.cuiDialogContext = inject(CUI_DIALOG_CONTEXT);
|
|
16
|
+
this.utilityModalService = inject(UTILITY_MODAL_SERVICE_TOKEN);
|
|
17
|
+
this.editorResourceUrl = this.cuiDialogContext.data.editorResourceUrl;
|
|
18
|
+
this.tools = this.cuiDialogContext.data.tools;
|
|
19
|
+
this.header = this.cuiDialogContext.data.header;
|
|
20
|
+
this.isLoading = signal(false);
|
|
21
|
+
this.utility = input.required();
|
|
22
|
+
this.utilityUnbinded = output();
|
|
23
|
+
}
|
|
24
|
+
onClose() {
|
|
25
|
+
this.cuiDialogContext.completeWith();
|
|
26
|
+
}
|
|
27
|
+
onUnbind() {
|
|
28
|
+
this.isLoading.set(true);
|
|
29
|
+
this.utilityModalService
|
|
30
|
+
.unbindUtility(this.utility().id)
|
|
31
|
+
.pipe(takeUntilDestroyed(this.destroyRef), finalize(() => this.isLoading.set(false)))
|
|
32
|
+
.subscribe((utility) => {
|
|
33
|
+
this.utilityUnbinded.emit(utility);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiReadonlyUtilityModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: CuiReadonlyUtilityModalComponent, isStandalone: true, selector: "cui-readonly-utility-modal", inputs: { utility: { classPropertyName: "utility", publicName: "utility", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { utilityUnbinded: "utilityUnbinded" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <header class=\"header\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n\n <cui-badge\n color=\"violet\"\n class=\"badge\"\n >\n <cui-svg\n class=\"icon\"\n icon=\"cuiIconVariant\"\n color=\"var(--cui-violet-400)\"\n />\n {{ t('INSERTED') }}\n </cui-badge>\n\n <button\n type=\"button\"\n cuiButton\n appearance=\"ghost\"\n icon=\"cuiIconX\"\n class=\"button\"\n (click)=\"onClose()\"\n ></button>\n </header>\n\n <ng-content />\n\n <div class=\"actions\">\n <button\n type=\"button\"\n #button\n cuiButton\n size=\"sm\"\n icon=\"cuiIconLinkBroken\"\n appearance=\"action-violet\"\n [isLoaderShown]=\"isLoading()\"\n (click)=\"onUnbind()\"\n >\n {{ t('UNBIND') }}\n </button>\n </div>\n</ng-container>\n", styles: [".header{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;padding:16px 24px}.header__title{font-weight:500;font-size:16px;line-height:24px}.button{margin-left:auto}.actions{padding:16px;border-top:1px solid var(--cui-base-200)}.badge{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:flex-start;font-weight:500;font-size:14px;line-height:20px}\n"], dependencies: [{ kind: "ngmodule", type: CuiBadgeModule }, { kind: "component", type: i1.CuiBadgeComponent, selector: "cui-badge", inputs: ["color", "size", "isWithDot"] }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i2.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: i3.CuiSvgComponent, selector: "cui-svg[icon]", inputs: ["width", "height", "strokeWidth", "color", "icon"] }, { 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 }); }
|
|
38
|
+
}
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiReadonlyUtilityModalComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: 'cui-readonly-utility-modal', imports: [CuiBadgeModule, CuiButtonModule, CuiSvgModule, NgTemplateOutlet, TranslocoDirective], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n <header class=\"header\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n\n <cui-badge\n color=\"violet\"\n class=\"badge\"\n >\n <cui-svg\n class=\"icon\"\n icon=\"cuiIconVariant\"\n color=\"var(--cui-violet-400)\"\n />\n {{ t('INSERTED') }}\n </cui-badge>\n\n <button\n type=\"button\"\n cuiButton\n appearance=\"ghost\"\n icon=\"cuiIconX\"\n class=\"button\"\n (click)=\"onClose()\"\n ></button>\n </header>\n\n <ng-content />\n\n <div class=\"actions\">\n <button\n type=\"button\"\n #button\n cuiButton\n size=\"sm\"\n icon=\"cuiIconLinkBroken\"\n appearance=\"action-violet\"\n [isLoaderShown]=\"isLoading()\"\n (click)=\"onUnbind()\"\n >\n {{ t('UNBIND') }}\n </button>\n </div>\n</ng-container>\n", styles: [".header{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;padding:16px 24px}.header__title{font-weight:500;font-size:16px;line-height:24px}.button{margin-left:auto}.actions{padding:16px;border-top:1px solid var(--cui-base-200)}.badge{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:flex-start;font-weight:500;font-size:14px;line-height:20px}\n"] }]
|
|
42
|
+
}] });
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZG9ubHktdXRpbGl0eS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uL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pbGl0eUVsZW1lbnQ+KSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy51dGlsaXR5VW5iaW5kZWQuZW1pdCh1dGlsaXR5KTtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cbn1cbiIsIjxuZy1jb250YWluZXIgKnRyYW5zbG9jbz1cImxldCB0XCI+XG4gICAgPGhlYWRlciBjbGFzcz1cImhlYWRlclwiPlxuICAgICAgICA8bmctY29udGFpbmVyIFtuZ1RlbXBsYXRlT3V0bGV0XT1cImhlYWRlclwiIC8+XG5cbiAgICAgICAgPGN1aS1iYWRnZVxuICAgICAgICAgICAgY29sb3I9XCJ2aW9sZXRcIlxuICAgICAgICAgICAgY2xhc3M9XCJiYWRnZVwiXG4gICAgICAgID5cbiAgICAgICAgICAgIDxjdWktc3ZnXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJpY29uXCJcbiAgICAgICAgICAgICAgICBpY29uPVwiY3VpSWNvblZhcmlhbnRcIlxuICAgICAgICAgICAgICAgIGNvbG9yPVwidmFyKC0tY3VpLXZpb2xldC00MDApXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgICB7eyB0KCdJTlNFUlRFRCcpIH19XG4gICAgICAgIDwvY3VpLWJhZGdlPlxuXG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICBhcHBlYXJhbmNlPVwiZ2hvc3RcIlxuICAgICAgICAgICAgaWNvbj1cImN1aUljb25YXCJcbiAgICAgICAgICAgIGNsYXNzPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIChjbGljayk9XCJvbkNsb3NlKClcIlxuICAgICAgICA+PC9idXR0b24+XG4gICAgPC9oZWFkZXI+XG5cbiAgICA8bmctY29udGVudCAvPlxuXG4gICAgPGRpdiBjbGFzcz1cImFjdGlvbnNcIj5cbiAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAjYnV0dG9uXG4gICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgIHNpemU9XCJzbVwiXG4gICAgICAgICAgICBpY29uPVwiY3VpSWNvbkxpbmtCcm9rZW5cIlxuICAgICAgICAgICAgYXBwZWFyYW5jZT1cImFjdGlvbi12aW9sZXRcIlxuICAgICAgICAgICAgW2lzTG9hZGVyU2hvd25dPVwiaXNMb2FkaW5nKClcIlxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uVW5iaW5kKClcIlxuICAgICAgICA+XG4gICAgICAgICAgICB7eyB0KCdVTkJJTkQnKSB9fVxuICAgICAgICA8L2J1dHRvbj5cbiAgICA8L2Rpdj5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiUtilityModalCreateComponent } from './utility-modal-create.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9jb21wb25lbnRzL3V0aWxpdHktbW9kYWwtY3JlYXRlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ3VpVXRpbGl0eU1vZGFsQ3JlYXRlQ29tcG9uZW50IH0gZnJvbSAnLi91dGlsaXR5LW1vZGFsLWNyZWF0ZS5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { CuiStatedLoaderComponent } from '../../../stated-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-stated-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;flex-direction:row;gap:0;align-items:center;justify-content:space-between;padding:16px 24px}.header__content{display:flex;flex-direction:row;gap:8px}.actions{display:flex;flex-direction:row;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: CuiStatedLoaderComponent, selector: "cui-stated-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, CuiStatedLoaderComponent, 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-stated-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;flex-direction:row;gap:0;align-items:center;justify-content:space-between;padding:16px 24px}.header__content{display:flex;flex-direction:row;gap:8px}.actions{display:flex;flex-direction:row;gap:16px}\n"] }]
|
|
54
|
+
}] });
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1tb2RhbC1jcmV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gICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICBhcHBlYXJhbmNlPVwic2Vjb25kYXJ5XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJvbkNhbmNlbCgpXCJcbiAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAge3sgdCgnQ0FOQ0VMJykgfX1cbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgICAgIFtkaXNhYmxlZF09XCIhaXNGb3JtVmFsaWQoKVwiXG4gICAgICAgICAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJhY3Rpb24tdmlvbGV0XCJcbiAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIm9uU2F2ZSgpXCJcbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHt7IHQoJ0RPTkUnKSB9fVxuICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvaGVhZGVyPlxuXG4gICAgPG5nLWNvbnRlbnQgLz5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './components';
|
|
2
|
+
export { CuiUtilityModalComponent } from './utility-modal.component';
|
|
3
|
+
export * from './utility-modal.options';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNyRSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnRzJztcbmV4cG9ydCB7IEN1aVV0aWxpdHlNb2RhbENvbXBvbmVudCB9IGZyb20gJy4vdXRpbGl0eS1tb2RhbC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi91dGlsaXR5LW1vZGFsLm9wdGlvbnMnO1xuIl19
|
|
@@ -0,0 +1,22 @@
|
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1tb2RhbC91dGlsaXR5LW1vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS91dGlsaXR5LW1vZGFsL3V0aWxpdHktbW9kYWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0UsT0FBTyxFQUNILGtCQUFrQix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jb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgdGhpcy5jdWlSZW5kZXJEeW5hbWljQ29tcG9uZW50c1NlcnZpY2Uub3Blbih7XG4gICAgICAgICAgICBjb21wb25lbnQ6IHRoaXMuaW5pdGlhbENvbXBvbmVudCxcbiAgICAgICAgICAgIGlucHV0czogeyBpbml0aWFsVXRpbGl0eTogdGhpcy51dGlsaXR5IH1cbiAgICAgICAgfSk7XG4gICAgfVxufVxuIiwiPGN1aS1yZW5kZXItZHluYW1pYy1jb21wb25lbnRzIC8+XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1tb2RhbC5vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3V0aWxpdHktbW9kYWwvdXRpbGl0eS1tb2RhbC5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFJL0MsTUFBTSxDQUFDLE1BQU0sMkJBQTJCLEdBQUcsSUFBSSxjQUFjLENBQ3pELDZCQUE2QixDQUNoQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcbmltcG9ydCB0eXBlIHsgSW5zdHJ1Y3Rpb24sIFN0b3JhZ2VPYmplY3QsIENyaXRlcmlvbiB9IGZyb20gJ0BjdWJ5LXVpL2FwaSc7XG5cbmV4cG9ydCBjb25zdCBVVElMSVRZX01PREFMX1NFUlZJQ0VfVE9LRU4gPSBuZXcgSW5qZWN0aW9uVG9rZW48VXRpbGl0eU1vZGFsU2VydmljZTxVdGlsaXR5RWxlbWVudD4+KFxuICAgICdVVElMSVRZX01PREFMX1NFUlZJQ0VfVE9LRU4nXG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIFV0aWxpdHlNb2RhbFNlcnZpY2U8VCBleHRlbmRzIFV0aWxpdHlFbGVtZW50PiB7XG4gICAgY3JlYXRlVXRpbGl0eShpZDogc3RyaW5nKTogT2JzZXJ2YWJsZTxTdG9yYWdlT2JqZWN0PFQ+PjtcbiAgICBjaGFuZ2VUaXRsZSh1dGlsaXR5SWQ6IHN0cmluZywgdGl0bGU6IHN0cmluZyk6IE9ic2VydmFibGU8dm9pZD47XG4gICAgY2hhbmdlRGVzY3JpcHRpb24/KHV0aWxpdHlJZDogc3RyaW5nLCBzaG9ydERlc2NyaXB0aW9uOiBzdHJpbmcpOiBPYnNlcnZhYmxlPHZvaWQ+O1xuICAgIHVuYmluZFV0aWxpdHkoaWQ6IHN0cmluZyk6IE9ic2VydmFibGU8U3RvcmFnZU9iamVjdDxUPj47XG4gICAgZGVsZXRlVXRpbGl0eSh1dGlsaXR5OiBTdG9yYWdlT2JqZWN0PFQ+KTogT2JzZXJ2YWJsZTx2b2lkPjtcbn1cblxuZXhwb3J0IHR5cGUgVXRpbGl0eUVsZW1lbnQgPSBJbnN0cnVjdGlvbiB8IENyaXRlcmlvbjtcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiUtilityReadonlyThumbnailComponent } from './utility-readonly-thumbnail.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS1yZWFkb25seS10aHVtYm5haWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG9DQUFvQyxFQUFFLE1BQU0sd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlVdGlsaXR5UmVhZG9ubHlUaHVtYm5haWxDb21wb25lbnQgfSBmcm9tICcuL3V0aWxpdHktcmVhZG9ubHktdGh1bWJuYWlsLmNvbXBvbmVudCc7XG4iXX0=
|
package/esm2022/widgets/ui/utility-readonly-thumbnail/utility-readonly-thumbnail.component.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1yZWFkb25seS10aHVtYm5haWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3V0aWxpdHktcmVhZG9ubHktdGh1bWJuYWlsL3V0aWxpdHktcmVhZG9ubHktdGh1bWJuYWlsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS91dGlsaXR5LXJlYWRvbmx5LXRodW1ibmFpbC91dGlsaXR5LXJlYWRvbmx5LXRodW1ibmFpbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFXMU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1YmxpYyByZWFkb25seSBpc1ZpZGVvID0gaW5wdXQoZmFsc2UpO1xufVxuIiwiQGxldCB1cmwgPSB0aHVtYm5haWxVcmwoKTtcblxuQGlmICh1cmw/LnNyYzsgYXMgc3JjKSB7XG4gICAgQGlmIChpc1ZpZGVvKCkpIHtcbiAgICAgICAgPHZpZGVvXG4gICAgICAgICAgICBjbGFzcz1cInRodW1ibmFpbFwiXG4gICAgICAgICAgICBbc3JjXT1cInNyY1wiXG4gICAgICAgICAgICBjb250cm9sc1xuICAgICAgICA+PC92aWRlbz5cbiAgICB9IEBlbHNlIHtcbiAgICAgICAgPGltZ1xuICAgICAgICAgICAgY2xhc3M9XCJ0aHVtYm5haWxcIlxuICAgICAgICAgICAgW3NyY109XCJzcmNcIlxuICAgICAgICAgICAgW2FsdF09XCJ1cmw/Lm5hbWVcIlxuICAgICAgICAvPlxuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiUtilityThumbnailComponent } from './utility-thumbnail.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvdXRpbGl0eS10aHVtYm5haWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlVdGlsaXR5VGh1bWJuYWlsQ29tcG9uZW50IH0gZnJvbSAnLi91dGlsaXR5LXRodW1ibmFpbC5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,95 @@
|
|
|
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, CuiButtonModule } from '../../../components';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../../components/button/button.component";
|
|
8
|
+
export class CuiUtilityThumbnailComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.cuiAlertService = inject(CuiAlertService);
|
|
11
|
+
this.translocoService = inject(TranslocoService);
|
|
12
|
+
this.frameApiService = inject(CuiFrameApiService);
|
|
13
|
+
this.MAX_FILE_SIZE = 20971520;
|
|
14
|
+
this.thumbnailUrl = computed(() => {
|
|
15
|
+
const thumbnail = this.thumbnail();
|
|
16
|
+
if (thumbnail?.resource) {
|
|
17
|
+
return thumbnail.resource;
|
|
18
|
+
}
|
|
19
|
+
return this.baseResourceUrl() + thumbnail.fileId;
|
|
20
|
+
});
|
|
21
|
+
this.uploadButtonName = computed(() => {
|
|
22
|
+
const thumbnail = this.thumbnail();
|
|
23
|
+
if (thumbnail?.name) {
|
|
24
|
+
return this.translocoService.translate('REPLACE_FILE');
|
|
25
|
+
}
|
|
26
|
+
return this.translocoService.translate('UPLOAD_FILE');
|
|
27
|
+
});
|
|
28
|
+
this.thumbnail = model.required();
|
|
29
|
+
this.framerId = input.required();
|
|
30
|
+
this.baseResourceUrl = input.required();
|
|
31
|
+
}
|
|
32
|
+
onSelectFile() {
|
|
33
|
+
const types = 'image/jpg, image/jpeg, image/png, video/mp4';
|
|
34
|
+
FilesUploader.uploadFile(types).then((files) => this.getFile(files));
|
|
35
|
+
}
|
|
36
|
+
onRemoveThumbnail() {
|
|
37
|
+
const frameId = this.framerId();
|
|
38
|
+
const fragmentId = this.thumbnail()?.id;
|
|
39
|
+
if (!frameId || !fragmentId) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.frameApiService.deleteResource(frameId, fragmentId).subscribe(() => {
|
|
43
|
+
this.thumbnail.update((prev) => ({ ...prev, fileId: null, name: null, resource: null }));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
getFile(files) {
|
|
47
|
+
const file = files.item(0);
|
|
48
|
+
if (!file) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (file.size > this.MAX_FILE_SIZE) {
|
|
52
|
+
this.cuiAlertService
|
|
53
|
+
.open(this.translocoService.translate('INVALID_FILE_SIZE'), {
|
|
54
|
+
status: 'error'
|
|
55
|
+
})
|
|
56
|
+
.subscribe();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const isVideo = file.name.split('.').at(-1) === 'mp4';
|
|
60
|
+
const url = URL.createObjectURL(file);
|
|
61
|
+
if (isVideo) {
|
|
62
|
+
this.getCaptureFromVideo(url, file);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.thumbnail.update((prev) => ({ ...prev, name: file.name, resource: url }));
|
|
66
|
+
}
|
|
67
|
+
this.uploadFile(file);
|
|
68
|
+
}
|
|
69
|
+
uploadFile(file) {
|
|
70
|
+
const frameId = this.framerId();
|
|
71
|
+
const fragmentId = this.thumbnail()?.id;
|
|
72
|
+
if (!frameId || !fragmentId) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const formData = new FormData();
|
|
76
|
+
formData.append('resource', file);
|
|
77
|
+
this.frameApiService.uploadResource(formData, frameId, fragmentId).subscribe();
|
|
78
|
+
}
|
|
79
|
+
getCaptureFromVideo(url, file) {
|
|
80
|
+
takeCaptureFromVideo(url).then((capture) => {
|
|
81
|
+
this.thumbnail.update((prev) => ({
|
|
82
|
+
...prev,
|
|
83
|
+
name: (file?.name || prev?.name),
|
|
84
|
+
resource: capture
|
|
85
|
+
}));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
+
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;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;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"] }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i1.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityThumbnailComponent, decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{ selector: 'cui-utility-thumbnail', imports: [TranslocoDirective, CuiButtonModule], 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;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;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"] }]
|
|
94
|
+
}] });
|
|
95
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS10aHVtYm5haWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL3V0aWxpdHktdGh1bWJuYWlsL3V0aWxpdHktdGh1bWJuYWlsLmNvb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blxuICAgIHByaXZhdGUgZ2V0Q2FwdHVyZUZyb21WaWRlbyh1cmw6IHN0cmluZywgZmlsZT86IEZpbGUpOiB2b2lkIHtcbiAgICAgICAgdGFrZUNhcHR1cmVGcm9tVmlkZW8odXJsKS50aGVuKChjYXB0dXJlKSA9PiB7XG4gICAgICAgICAgICB0aGlzLnRodW1ibmFpbC51cGRhdGUoKHByZXYpID0+ICh7XG4gICAgICAgICAgICAgICAgLi4ucHJldiEsXG4gICAgICAgICAgICAgICAgbmFtZTogKGZpbGU/Lm5hbWUgfHwgcHJldj8ubmFtZSkhLFxuICAgICAgICAgICAgICAgIHJlc291cmNlOiBjYXB0dXJlXG4gICAgICAgICAgICB9KSk7XG4gICAgICAgIH0pO1xuICAgIH1cbn1cbiIsIjxzZWN0aW9uXG4gICAgKnRyYW5zbG9jbz1cImxldCB0XCJcbiAgICBjbGFzcz1cImZpbGVcIlxuPlxuICAgIDxzcGFuIGNsYXNzPVwidGl0bGVcIj57eyB0KCdUSFVNQk5BSUwnKSB9fTwvc3Bhbj5cbiAgICA8ZGl2IGNsYXNzPVwidXBsb2FkXCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJ1cGxvYWQtZmlsZVwiPlxuICAgICAgICAgICAgQGlmICh0aHVtYm5haWwoKT8ubmFtZTsgYXMgZmlsZUlkKSB7XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImltYWdlXCI+XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiaW1hZ2VfX25hbWVcIj57eyB0aHVtYm5haWwoKT8ubmFtZSB9fTwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgPCEtLSBUT0RPOiBuZ1NyYyAtLT5cbiAgICAgICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJpbWFnZV9fdmlld1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBbc3JjXT1cInRodW1ibmFpbFVybCgpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodD1cIjEyMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aD1cIjE4NFwiXG4gICAgICAgICAgICAgICAgICAgICAgICBhbHQ9XCJUaHVtYm5haWxcIlxuICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImluZm9cIj5cbiAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cIm91dGxpbmVkLWdyYXlcIlxuICAgICAgICAgICAgICAgICAgICBzaXplPVwieHhzXCJcbiAgICAgICAgICAgICAgICAgICAgaWNvbj1cImN1aUljb25VcGxvYWRcIlxuICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwib25TZWxlY3RGaWxlKClcIlxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAge3sgdXBsb2FkQnV0dG9uTmFtZSgpIH19XG4gICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgQGlmICh0aHVtYm5haWwoKT8ubmFtZSkge1xuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInJlbW92ZS1idXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICBhcHBlYXJhbmNlPVwibGlua1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBzaXplPVwic21cIlxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwib25SZW1vdmVUaHVtYm5haWwoKVwiXG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgIHt7IHQoJ1JFTU9WRScpIH19XG4gICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiYWNjZXB0ZWRcIj57eyB0KCdBQ0NFUFRFRCcpIH19OiBKUEcsIEpQRUcsIFBORywgTVA0IHt7IHQoJ1VQX1RPJykgfX0gMjBNQjwvc3Bhbj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvc2VjdGlvbj5cbiJdfQ==
|