@cuby-ui/core 0.0.487 → 0.0.488
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 +5 -0
- package/esm2022/interceptors/loader.interceptor.mjs +12 -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 +12156 -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 +4 -0
- package/interceptors/loader.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,60 @@
|
|
|
1
|
+
import { NgIf } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
5
|
+
import { CuiFileIconComponent, CuiSvgModule } from '../../../components';
|
|
6
|
+
import { FileSizePipe } from '../../pipes/file-size.pipe';
|
|
7
|
+
import { EditorToolComponent } from '../editor-tool/editor-tool.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../../../components/svg/svg.component";
|
|
10
|
+
export class EditorAttachesToolComponent extends EditorToolComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.fileClicked = new EventEmitter();
|
|
14
|
+
}
|
|
15
|
+
get file() {
|
|
16
|
+
return this._file;
|
|
17
|
+
}
|
|
18
|
+
set file(value) {
|
|
19
|
+
this._file = value;
|
|
20
|
+
}
|
|
21
|
+
get title() {
|
|
22
|
+
return this._title;
|
|
23
|
+
}
|
|
24
|
+
set title(value) {
|
|
25
|
+
this._title = value;
|
|
26
|
+
}
|
|
27
|
+
get isShowLoadButton() {
|
|
28
|
+
return !this.file && !this.isCaptionShown && !this.isLoading;
|
|
29
|
+
}
|
|
30
|
+
onFileClick() {
|
|
31
|
+
this.fileClicked.emit(this.file);
|
|
32
|
+
}
|
|
33
|
+
onPreventEnter(event) {
|
|
34
|
+
if (this.checkKey(event)) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
}
|
|
40
|
+
checkKey(event) {
|
|
41
|
+
return event.key !== 'Enter';
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorAttachesToolComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorAttachesToolComponent, isStandalone: true, selector: "ng-component", inputs: { file: "file", title: "title" }, outputs: { fileClicked: "fileClicked" }, host: { properties: { "class._hidden": "isShowLoadButton" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <div\r\n *ngIf=\"file; else buttonTemplate\"\r\n class=\"file\"\r\n >\r\n <cui-file-icon\r\n *ngIf=\"file.extension\"\r\n [extension]=\"file.extension\"\r\n ></cui-file-icon>\r\n\r\n <div class=\"info\">\r\n <div\r\n class=\"title\"\r\n attr.data-placeholder=\"{{ t('FILE_TITLE') }}...\"\r\n [innerHTML]=\"title\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n ></div>\r\n <div\r\n *ngIf=\"file.size; let size\"\r\n class=\"size\"\r\n >\r\n {{ size | fileSize }}\r\n </div>\r\n </div>\r\n <a\r\n class=\"download\"\r\n (click)=\"onFileClick()\"\r\n >\r\n <cui-svg\r\n icon=\"cuiIconChevronRightSm\"\r\n color=\"var(--cui-base-500)\"\r\n />\r\n </a>\r\n </div>\r\n <ng-template #buttonTemplate>\r\n <button\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n type=\"button\"\r\n >\r\n <cui-svg icon=\"cuiIconPaperclipSm\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\"></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:4px;padding-bottom:4px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host._hidden{display:none}:host ::ng-deep .icon path{stroke:none}.file{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px;border-radius:8px;border:1px solid var(--cui-base-200);background-color:var(--cui-base-10)}.info{display:flex;flex-direction:column;gap:2px;flex-grow:1;width:0;word-wrap:break-word}.extension{display:flex;flex-direction:row;gap:0;align-items:flex-end;justify-content:flex-start;padding:6px 2px;font-weight:500;font-size:12px;line-height:14px;border-radius:8px;width:35px;height:35px;color:var(--cui-gray-0)}.size{font-weight:400;font-size:13px;line-height:16px;color:var(--cui-base-500)}.download{padding:6px;flex-shrink:0;margin-left:auto;border-radius:8px;color:var(--cui-base-0)}.wrapper{display:flex;flex-direction:column;gap:0;margin-bottom:10px;border-radius:8px;border:1px solid var(--cui-base-200);min-height:50px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.preloader{width:30px;height:30px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader:after{content:\"\";position:absolute;z-index:3;width:30px;height:30px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-15px;margin-left:-15px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.title{font-weight:400;font-size:14px;line-height:20px;outline:none}.title[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;width:100%}\n"], dependencies: [{ kind: "pipe", type: FileSizePipe, name: "fileSize" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiFileIconComponent, selector: "cui-file-icon", inputs: ["extension", "color"] }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: i1.CuiSvgComponent, selector: "cui-svg[icon]", inputs: ["width", "height", "strokeWidth", "color", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorAttachesToolComponent, decorators: [{
|
|
47
|
+
type: Component,
|
|
48
|
+
args: [{ standalone: true, imports: [FileSizePipe, FormsModule, NgIf, TranslocoDirective, CuiFileIconComponent, CuiSvgModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
49
|
+
'[class._hidden]': 'isShowLoadButton'
|
|
50
|
+
}, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <div\r\n *ngIf=\"file; else buttonTemplate\"\r\n class=\"file\"\r\n >\r\n <cui-file-icon\r\n *ngIf=\"file.extension\"\r\n [extension]=\"file.extension\"\r\n ></cui-file-icon>\r\n\r\n <div class=\"info\">\r\n <div\r\n class=\"title\"\r\n attr.data-placeholder=\"{{ t('FILE_TITLE') }}...\"\r\n [innerHTML]=\"title\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n ></div>\r\n <div\r\n *ngIf=\"file.size; let size\"\r\n class=\"size\"\r\n >\r\n {{ size | fileSize }}\r\n </div>\r\n </div>\r\n <a\r\n class=\"download\"\r\n (click)=\"onFileClick()\"\r\n >\r\n <cui-svg\r\n icon=\"cuiIconChevronRightSm\"\r\n color=\"var(--cui-base-500)\"\r\n />\r\n </a>\r\n </div>\r\n <ng-template #buttonTemplate>\r\n <button\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n type=\"button\"\r\n >\r\n <cui-svg icon=\"cuiIconPaperclipSm\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\"></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:4px;padding-bottom:4px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host._hidden{display:none}:host ::ng-deep .icon path{stroke:none}.file{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px;border-radius:8px;border:1px solid var(--cui-base-200);background-color:var(--cui-base-10)}.info{display:flex;flex-direction:column;gap:2px;flex-grow:1;width:0;word-wrap:break-word}.extension{display:flex;flex-direction:row;gap:0;align-items:flex-end;justify-content:flex-start;padding:6px 2px;font-weight:500;font-size:12px;line-height:14px;border-radius:8px;width:35px;height:35px;color:var(--cui-gray-0)}.size{font-weight:400;font-size:13px;line-height:16px;color:var(--cui-base-500)}.download{padding:6px;flex-shrink:0;margin-left:auto;border-radius:8px;color:var(--cui-base-0)}.wrapper{display:flex;flex-direction:column;gap:0;margin-bottom:10px;border-radius:8px;border:1px solid var(--cui-base-200);min-height:50px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.preloader{width:30px;height:30px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader:after{content:\"\";position:absolute;z-index:3;width:30px;height:30px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-15px;margin-left:-15px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.title{font-weight:400;font-size:14px;line-height:20px;outline:none}.title[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;width:100%}\n"] }]
|
|
51
|
+
}], propDecorators: { file: [{
|
|
52
|
+
type: Input,
|
|
53
|
+
args: [{ required: true }]
|
|
54
|
+
}], title: [{
|
|
55
|
+
type: Input,
|
|
56
|
+
args: [{ required: true }]
|
|
57
|
+
}], fileClicked: [{
|
|
58
|
+
type: Output
|
|
59
|
+
}] } });
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWF0dGFjaGVzLXRvb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItYXR0Y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289XCJsZXQgdFwiPlxyXG4gICAgICAgIDxkaXZcclxuICAgICAgICAgICAgKm5nSWY9XCJmaWxlOyBlbHNlIGJ1dHRvblRlbXBsYXRlXCJcclxuICAgICAgICAgICAgY2xhc3M9XCJmaWxlXCJcclxuICAgICAgICA+XHJcbiAgICAgICAgICAgIDxjdWktZmlsZS1pY29uXHJcbiAgICAgICAgICAgICAgICAqbmdJZj1cImZpbGUuZXh0ZW5zaW9uXCJcclxuICAgICAgICAgICAgICAgIFtleHRlbnNpb25dPVwiZmlsZS5leHRlbnNpb25cIlxyXG4gICAgICAgICAgICA+PC9jdWktZmlsZS1pY29uPlxyXG5cclxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImluZm9cIj5cclxuICAgICAgICAgICAgICAgIDxkaXZcclxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInRpdGxlXCJcclxuICAgICAgICAgICAgICAgICAgICBhdHRyLmRhdGEtcGxhY2Vob2xkZXI9XCJ7eyB0KCdGSUxFX1RJVExFJykgfX0uLi5cIlxyXG4gICAgICAgICAgICAgICAgICAgIFtpbm5lckhUTUxdPVwidGl0bGVcIlxyXG4gICAgICAgICAgICAgICAgICAgIFthdHRyLmNvbnRlbnRlZGl0YWJsZV09XCIhcmVhZE9ubHlcIlxyXG4gICAgICAgICAgICAgICAgICAgIChwYXN0ZSk9XCJvblRpdGxlUGFzdGUoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAgICAgKGtleWRvd24pPVwib25QcmV2ZW50RW50ZXIoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAgICAgKGtleXVwKT1cIm9uVGl0bGVDaGFuZ2UoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICA+PC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8ZGl2XHJcbiAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJmaWxlLnNpemU7IGxldCBzaXplXCJcclxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInNpemVcIlxyXG4gICAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgICAgIHt7IHNpemUgfCBmaWxlU2l6ZSB9fVxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8YVxyXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJkb3dubG9hZFwiXHJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25GaWxlQ2xpY2soKVwiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDxjdWktc3ZnXHJcbiAgICAgICAgICAgICAgICAgICAgaWNvbj1cImN1aUljb25DaGV2cm9uUmlnaHRTbVwiXHJcbiAgICAgICAgICAgICAgICAgICAgY29sb3I9XCJ2YXIoLS1jdWktYmFzZS01MDApXCJcclxuICAgICAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgIDwvYT5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8bmctdGVtcGxhdGUgI2J1dHRvblRlbXBsYXRlPlxyXG4gICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICBbY2xhc3NdPVwiWydzZWxlY3QtYnRuJywgdGhpcy5hcGkuc3R5bGVzLmJ1dHRvbl1cIlxyXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cIm9uU2VsZWN0RmlsZSgpXCJcclxuICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8Y3VpLXN2ZyBpY29uPVwiY3VpSWNvblBhcGVyY2xpcFNtXCIgLz5cclxuICAgICAgICAgICAgICAgICZuYnNwO3t7IGJ1dHRvbkNvbnRlbnQgfX1cclxuICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgPC9uZy10ZW1wbGF0ZT5cclxuICAgIDwvbmctY29udGFpbmVyPlxyXG48L25nLWNvbnRhaW5lcj5cclxuXHJcbjxuZy10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WNoZXNUb29sQ29uZmlnIGV4dGVuZHMgQ3VpRmlsZVVwbG9hZGVyQ29uZmlnIHtcclxuICAgIHJlYWRvbmx5IGJ1dHRvbkNvbnRlbnQ6IHN0cmluZztcclxuICAgIHJlYWRvbmx5IGZpbGVDbGlja2VkOiAoZmlsZTogQ3VpRmlsZURhdGEpID0+IHZvaWQ7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQ3VpQXR0YWNoZXNUb29sT3B0aW9ucyB7XHJcbiAgICByZWFkb25seSBhcGk6IEFQSTtcclxuICAgIHJlYWRvbmx5IGNvbmZpZzogQ3VpQXR0YWNoZXNUb29sQ29uZmlnO1xyXG4gICAgcmVhZG9ubHkgb25TZWxlY3RGaWxlOiAoKSA9PiB2b2lkO1xyXG4gICAgcmVhZG9ubHkgcmVhZE9ubHk6IGJvb2xlYW47XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQ3VpQXR0YWNoZXNUb29sRGF0YSB7XHJcbiAgICB0aXRsZTogc3RyaW5nO1xyXG4gICAgZmlsZTogQ3VpRmlsZURhdGE7XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EditorAttachesToolComponent } from './editor-attaches-tool.component';
|
|
2
|
+
export * from './editor-attaches-tool.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2VkaXRvci1hdHRhY2hlcy10b29sL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQy9FLGNBQWMsZ0NBQWdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFZGl0b3JBdHRhY2hlc1Rvb2xDb21wb25lbnQgfSBmcm9tICcuL2VkaXRvci1hdHRhY2hlcy10b29sLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vZWRpdG9yLWF0dGFjaGVzLXRvb2wub3B0aW9ucyc7XHJcbiJdfQ==
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { NgClass, NgIf } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, signal } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
5
|
+
import { CuiSvgModule } from '../../../components';
|
|
6
|
+
import { EditorToolComponent } from '../editor-tool/editor-tool.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class EditorImageToolComponent extends EditorToolComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.isLoaded = signal(false);
|
|
12
|
+
this.tunesSignal = signal({});
|
|
13
|
+
}
|
|
14
|
+
set tunes(tunes) {
|
|
15
|
+
this.tunesSignal.set(tunes);
|
|
16
|
+
}
|
|
17
|
+
get isShowLoadButton() {
|
|
18
|
+
return !this.image && !this.isCaptionShown && !this.isLoading;
|
|
19
|
+
}
|
|
20
|
+
onPreventEnter(event) {
|
|
21
|
+
if (this.checkKey(event)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
event.stopPropagation();
|
|
25
|
+
}
|
|
26
|
+
checkKey(event) {
|
|
27
|
+
return (event.key !== 'Backspace' && event.key !== 'Enter') || event.shiftKey;
|
|
28
|
+
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorImageToolComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorImageToolComponent, isStandalone: true, selector: "ng-component", inputs: { image: "image", tunes: "tunes" }, host: { properties: { "class._hidden": "isShowLoadButton" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <ng-container *ngIf=\"image; else buttonTemplate\">\r\n <div\r\n class=\"wrapper\"\r\n [ngClass]=\"tunesSignal()\"\r\n [class._loaded]=\"isLoaded()\"\r\n >\r\n <img\r\n class=\"image\"\r\n [src]=\"image\"\r\n alt=\"Image\"\r\n />\r\n </div>\r\n <div\r\n *ngIf=\"isCaptionShown\"\r\n class=\"caption cdx-input\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n attr.data-placeholder=\"{{ t('CAPTION') }}...\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n [innerHTML]=\"caption\"\r\n ></div>\r\n </ng-container>\r\n <ng-template #buttonTemplate>\r\n <button\r\n #button\r\n type=\"button\"\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n >\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\"\r\n height=\"20\"\r\n viewBox=\"0 0 20 20\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M12.5013 4.1665H7.5013C5.66035 4.1665 4.16797 5.65889 4.16797 7.49984V12.4998C4.16797 14.3408 5.66035 15.8332 7.5013 15.8332H12.5013C14.3423 15.8332 15.8346 14.3408 15.8346 12.4998V7.49984C15.8346 5.65889 14.3423 4.1665 12.5013 4.1665Z\"\r\n stroke=\"#121315\"\r\n stroke-width=\"1.66667\"\r\n />\r\n <path\r\n d=\"M4.28125 12.7665L7.24033 9.63825C7.52263 9.33617 7.90546 9.1665 8.30463 9.1665C8.70377 9.1665 9.0866 9.33617 9.36893 9.63825L12.8208 13.3332M11.3154 11.7218L12.5092 10.444C12.7914 10.1419 13.1743 9.97217 13.5734 9.97217C13.9726 9.97217 14.3554 10.1419 14.6378 10.444L15.699 11.636\"\r\n stroke=\"#121315\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <path\r\n d=\"M11.4805 7.77783H11.4879\"\r\n stroke=\"#121315\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\">\r\n <img\r\n *ngIf=\"preview\"\r\n class=\"preloader__image\"\r\n [src]=\"preview\"\r\n alt=\"Preloader\"\r\n />\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:6px;padding-bottom:6px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host ::ng-deep .cdx-input{border:1px solid var(--cui-base-200);background:transparent;box-shadow:none}:host ::ng-deep .play{margin:auto}:host ::ng-deep .play path{fill:var(--cui-base-0);stroke:var(--cui-base-300)}:host._hidden{display:none}.image{display:block;max-width:100%;width:fit-content;height:250px}.wrapper{display:flex;flex-direction:column;border-radius:8px;border:1px solid var(--cui-base-200);min-height:200px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.wrapper.stretched .image{width:100%;height:auto}.wrapper.center .image{margin:auto}.preloader{width:50px;height:50px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--cui-base-200);background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader__image{width:50px;height:50px;border-radius:50%}.preloader:after{content:\"\";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.caption{border-radius:8px;margin-top:10px}.caption[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;align-items:center;justify-content:center;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CuiSvgModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorImageToolComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ standalone: true, imports: [CuiSvgModule, FormsModule, NgClass, NgIf, TranslocoDirective], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
35
|
+
'[class._hidden]': 'isShowLoadButton'
|
|
36
|
+
}, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <ng-container *ngIf=\"image; else buttonTemplate\">\r\n <div\r\n class=\"wrapper\"\r\n [ngClass]=\"tunesSignal()\"\r\n [class._loaded]=\"isLoaded()\"\r\n >\r\n <img\r\n class=\"image\"\r\n [src]=\"image\"\r\n alt=\"Image\"\r\n />\r\n </div>\r\n <div\r\n *ngIf=\"isCaptionShown\"\r\n class=\"caption cdx-input\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n attr.data-placeholder=\"{{ t('CAPTION') }}...\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n [innerHTML]=\"caption\"\r\n ></div>\r\n </ng-container>\r\n <ng-template #buttonTemplate>\r\n <button\r\n #button\r\n type=\"button\"\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n >\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\"\r\n height=\"20\"\r\n viewBox=\"0 0 20 20\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M12.5013 4.1665H7.5013C5.66035 4.1665 4.16797 5.65889 4.16797 7.49984V12.4998C4.16797 14.3408 5.66035 15.8332 7.5013 15.8332H12.5013C14.3423 15.8332 15.8346 14.3408 15.8346 12.4998V7.49984C15.8346 5.65889 14.3423 4.1665 12.5013 4.1665Z\"\r\n stroke=\"#121315\"\r\n stroke-width=\"1.66667\"\r\n />\r\n <path\r\n d=\"M4.28125 12.7665L7.24033 9.63825C7.52263 9.33617 7.90546 9.1665 8.30463 9.1665C8.70377 9.1665 9.0866 9.33617 9.36893 9.63825L12.8208 13.3332M11.3154 11.7218L12.5092 10.444C12.7914 10.1419 13.1743 9.97217 13.5734 9.97217C13.9726 9.97217 14.3554 10.1419 14.6378 10.444L15.699 11.636\"\r\n stroke=\"#121315\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <path\r\n d=\"M11.4805 7.77783H11.4879\"\r\n stroke=\"#121315\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\">\r\n <img\r\n *ngIf=\"preview\"\r\n class=\"preloader__image\"\r\n [src]=\"preview\"\r\n alt=\"Preloader\"\r\n />\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:6px;padding-bottom:6px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host ::ng-deep .cdx-input{border:1px solid var(--cui-base-200);background:transparent;box-shadow:none}:host ::ng-deep .play{margin:auto}:host ::ng-deep .play path{fill:var(--cui-base-0);stroke:var(--cui-base-300)}:host._hidden{display:none}.image{display:block;max-width:100%;width:fit-content;height:250px}.wrapper{display:flex;flex-direction:column;border-radius:8px;border:1px solid var(--cui-base-200);min-height:200px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.wrapper.stretched .image{width:100%;height:auto}.wrapper.center .image{margin:auto}.preloader{width:50px;height:50px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--cui-base-200);background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader__image{width:50px;height:50px;border-radius:50%}.preloader:after{content:\"\";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.caption{border-radius:8px;margin-top:10px}.caption[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;align-items:center;justify-content:center;width:100%}\n"] }]
|
|
37
|
+
}], propDecorators: { image: [{
|
|
38
|
+
type: Input,
|
|
39
|
+
args: [{ required: true }]
|
|
40
|
+
}], tunes: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}] } });
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWltYWdlLXRvb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItaW1hZ2UtdG9vbC9lZGl0b3ItaW1hZ2UtdG9vbC5jb21wb25lbnQudHMiLCIuLi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5lciAqbmdJZj1cImltYWdlOyBlbHNlIGJ1dHRvblRlbXBsYXRlXCI+XHJcbiAgICAgICAgICAgIDxkaXZcclxuICAgICAgICAgICAgICAgIGNsYXNzPVwid3JhcHBlclwiXHJcbiAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ0dW5lc1NpZ25hbCgpXCJcclxuICAgICAgICAgICAgICAgIFtjbGFzcy5fbG9hZGVkXT1cImlzTG9hZGVkKClcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8aW1nXHJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJpbWFnZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgW3NyY109XCJpbWFnZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgYWx0PVwiSW1hZ2VcIlxyXG4gICAgICAgICAgICAgICAgLz5cclxuICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDxkaXZcclxuICAgICAgICAgICAgICAgICpuZ0lmPVwiaXNDYXB0aW9uU2hvd25cIlxyXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJjYXB0aW9uIGNkeC1pbnB1dFwiXHJcbiAgICAgICAgICAgICAgICBbYXR0ci5jb250ZW50ZWRpdGFibGVdPVwiIXJlYWRPbmx5XCJcclxuICAgICAgICAgICAgICAgIGF0dHIuZGF0YS1wbGFjZWhvbGRlcj1cInt7IHQoJ0NBUFRJT04nKSB9fS4uLlwiXHJcbiAgICAgICAgICAgICAgICAocGFzdGUpPVwib25UaXRsZVBhc3RlKCRldmVudClcIlxyXG4gICAgICAgICAgICAgICAgKGtleWRvd24pPVwib25QcmV2ZW50RW50ZXIoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAoa2V5dXApPVwib25UaXRsZUNoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgICAgICAgICAgIFtpbm5lckhUTUxdPVwiY2FwdGlvblwiXHJcbiAgICAgICAgICAgID48L2Rpdj5cclxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICA8bmctdGVtcGxhdGUgI2J1dHRvblRlbXBsYXRlPlxyXG4gICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICAjYnV0dG9uXHJcbiAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICAgIFtjbGFzc109XCJbJ3NlbGVjdC1idG4nLCB0aGlzLmFwaS5zdHlsZXMuYnV0dG9uXVwiXHJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25TZWxlY3RGaWxlKClcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8c3ZnXHJcbiAgICAgICAgICAgICAgICAgICAgeG1sbnM9XCJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Z1wiXHJcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg9XCIyMFwiXHJcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0PVwiMjBcIlxyXG4gICAgICAgICAgICAgICAgICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxyXG4gICAgICAgICAgICAgICAgICAgIGZpbGw9XCJub25lXCJcclxuICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgICA8cGF0aFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBkPVwiTTEyLjUwMTMgNC4xNjY1SDcuNTAxM0M1LjY2MDM1IDQuMTY2NSA0LjE2Nzk3IDUuNjU4ODkgNC4xNjc5NyA3LjQ5OTg0VjEyLjQ5OThDNC4xNjc5NyAxNC4zNDA4IDUuNjYwMzUgMTUuODMzMiA3LjUwMTMgMTUuODMzMkgxMi41MDEzQzE0LjM0MjMgMTUuODMzMiAxNS44MzQ2IDE0LjM0MDggMTUuODM0NiAxMi40OTk4VjcuNDk5ODRDMTUuODM0NiA1LjY1ODg5IDE0LjM0MjMgNC4xNjY1IDEyLjUwMTMgNC4xNjY1WlwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZT1cIiMxMjEzMTVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHJva2Utd2lkdGg9XCIxLjY2NjY3XCJcclxuICAgICAgICAgICAgICAgICAgICAvPlxyXG4gICAgICAgICAgICAgICAgICAgIDxwYXRoXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGQ9XCJNNC4yODEyNSAxMi43NjY1TDcuMjQwMzMgOS42MzgyNUM3LjUyMjYzIDkuMzM2MTcgNy45MDU0NiA5LjE2NjUgOC4zMDQ2MyA5LjE2NjVDOC43MDM3NyA5LjE2NjUgOS4wODY2IDkuMzM2MTcgOS4zNjg5MyA5LjYzODI1TDEyLjgyMDggMTMuMzMzMk0xMS4zMTU0IDExLjcyMThMMTIuNTA5MiAxMC40NDRDMTIuNzkxNCAxMC4xNDE5IDEzLjE3NDMgOS45NzIxNyAxMy41NzM0IDkuOTcyMTdDMTMuOTcyNiA5Ljk3MjE3IDE0LjM1NTQgMTAuMTQxOSAxNC42Mzc4IDEwLjQ0NEwxNS42OTkgMTEuNjM2XCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlPVwiIzEyMTMxNVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZS13aWR0aD1cIjEuNjY2NjdcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHJva2UtbGluZWNhcD1cInJvdW5kXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlLWxpbmVqb2luPVwicm91bmRcIlxyXG4gICAgICAgICAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgICAgICAgICAgPHBhdGhcclxuICAgICAgICAgICAgICAgICAgICAgICAgZD1cIk0xMS40ODA1IDcuNzc3ODNIMTEuNDg3OVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZT1cIiMxMjEzMTVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHJva2Utd2lkdGg9XCIxLjY2NjY3XCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlLWxpbmVjYXA9XCJyb3VuZFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZS1saW5lam9pbj1cInJvdW5kXCJcclxuICAgICAgICAgICAgICAgICAgICAvPlxyXG4gICAgICAgICAgICAgICAgPC9zdmc+XHJcbiAgICAgICAgICAgICAgICAmbmJzcDt7eyBidXR0b25Db250ZW50IH19XHJcbiAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICA8L25nLWNvbnRhaW5lcj5cclxuPC9uZy1jb250YWluZXI+XHJcbjxuZy10ZW1wbGF0ZSAjcHJlbG9hZGVyPlxyXG4gICAgPGRpdiBjbGFzcz1cIndyYXBwZXJcIj5cclxuICAgICAgICA8ZGl2IGNsYXNzPVwicHJlbG9hZGVyXCI+XHJcbiAgICAgICAgICAgIDxpbWdcclxuICAgICAgICAgICAgICAgICpuZ0lmPVwicHJldmlld1wiXHJcbiAgICAgICAgICAgICAgICBjbGFzcz1cInByZWxvYWRlcl9faW1hZ2VcIlxyXG4gICAgICAgICAgICAgICAgW3NyY109XCJwcmV2aWV3XCJcclxuICAgICAgICAgICAgICAgIGFsdD1cIlByZWxvYWRlclwiXHJcbiAgICAgICAgICAgIC8+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICA8L2Rpdj5cclxuPC9uZy10ZW1wbGF0ZT5cclxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const EDITOR_IMAGE_TOOL_SELECTOR = 'cc-editor-image-tool';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWltYWdlLXRvb2wub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL2NvbXBvbm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clxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQ3VpSW1hZ2VUb29sRGF0YSB7XHJcbiAgICBjYXB0aW9uOiBzdHJpbmc7XHJcbiAgICBmaWxlOiBDdWlGaWxlRGF0YTtcclxuICAgIHR1bmVzOiBDdWlJbWFnZVR1bmVzO1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEN1aUltYWdlVHVuZXMge1xyXG4gICAgc3RyZXRjaGVkPzogYm9vbGVhbjtcclxuICAgIGxlZnQ/OiBib29sZWFuO1xyXG4gICAgcmlnaHQ/OiBib29sZWFuO1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EditorImageToolComponent } from './editor-image-tool.component';
|
|
2
|
+
export * from './editor-image-tool.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2VkaXRvci1pbWFnZS10b29sL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3pFLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFZGl0b3JJbWFnZVRvb2xDb21wb25lbnQgfSBmcm9tICcuL2VkaXRvci1pbWFnZS10b29sLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vZWRpdG9yLWltYWdlLXRvb2wub3B0aW9ucyc7XHJcbiJdfQ==
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core';
|
|
3
|
+
import { CUI_WINDOW } from '@cuby-ui/cdk';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class EditorToolComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.window = inject(CUI_WINDOW);
|
|
8
|
+
this.document = inject(DOCUMENT);
|
|
9
|
+
this.readOnly = false;
|
|
10
|
+
this.isLoading = false;
|
|
11
|
+
this.fileSelected = new EventEmitter();
|
|
12
|
+
this.captionChanged = new EventEmitter();
|
|
13
|
+
this.previousValue = this.caption;
|
|
14
|
+
}
|
|
15
|
+
get isCaptionShown() {
|
|
16
|
+
return !this.readOnly || !!this.caption;
|
|
17
|
+
}
|
|
18
|
+
onSelectFile() {
|
|
19
|
+
this.fileSelected.emit();
|
|
20
|
+
}
|
|
21
|
+
onTitleChange(event) {
|
|
22
|
+
const target = event.currentTarget;
|
|
23
|
+
if (target.innerHTML === '<br>') {
|
|
24
|
+
target.innerHTML = '';
|
|
25
|
+
}
|
|
26
|
+
const value = target.innerHTML;
|
|
27
|
+
if (this.previousValue === value) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.previousValue = value;
|
|
31
|
+
this.captionChanged.emit(value);
|
|
32
|
+
}
|
|
33
|
+
onTitlePaste(event) {
|
|
34
|
+
event.stopPropagation();
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
if (!this.document) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const value = event.clipboardData?.getData('text/plain');
|
|
40
|
+
const target = event.target;
|
|
41
|
+
this.document.execCommand('insertText', false, value);
|
|
42
|
+
setTimeout(() => this.captionChanged.emit(target.textContent));
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorToolComponent, selector: "ng-component", inputs: { api: "api", preview: "preview", caption: "caption", buttonContent: "buttonContent", readOnly: "readOnly", isLoading: "isLoading" }, outputs: { fileSelected: "fileSelected", captionChanged: "captionChanged" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
template: '',
|
|
51
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
52
|
+
}]
|
|
53
|
+
}], propDecorators: { api: [{
|
|
54
|
+
type: Input,
|
|
55
|
+
args: [{ required: true }]
|
|
56
|
+
}], preview: [{
|
|
57
|
+
type: Input,
|
|
58
|
+
args: [{ required: true }]
|
|
59
|
+
}], caption: [{
|
|
60
|
+
type: Input,
|
|
61
|
+
args: [{ required: true }]
|
|
62
|
+
}], buttonContent: [{
|
|
63
|
+
type: Input,
|
|
64
|
+
args: [{ required: true }]
|
|
65
|
+
}], readOnly: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], isLoading: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], fileSelected: [{
|
|
70
|
+
type: Output
|
|
71
|
+
}], captionChanged: [{
|
|
72
|
+
type: Output
|
|
73
|
+
}] } });
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXRvb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItdG9vbC9lZGl0b3ItdG9vbC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQU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VtaXQodGFyZ2V0LnRleHRDb250ZW50ISkpO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, Input, Output, inject, signal } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { CUI_WINDOW, CuiClickOutsideDirective } from '@cuby-ui/cdk';
|
|
4
|
+
import { skip } from 'rxjs';
|
|
5
|
+
import { CuiButtonModule } from '../../../components';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@cuby-ui/cdk";
|
|
8
|
+
import * as i2 from "../../../components/button/button.component";
|
|
9
|
+
export class EditorToolModalComponent {
|
|
10
|
+
set marker(value) {
|
|
11
|
+
this.calculateModalPosition(value);
|
|
12
|
+
}
|
|
13
|
+
get _isHidden() {
|
|
14
|
+
return this.isHidden();
|
|
15
|
+
}
|
|
16
|
+
get _isFullscreen() {
|
|
17
|
+
return this.isFullscreen();
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
this.element = inject(ElementRef).nativeElement;
|
|
21
|
+
this.window = inject(CUI_WINDOW);
|
|
22
|
+
this.cuiClickOutsideDirective = inject(CuiClickOutsideDirective, { self: true });
|
|
23
|
+
this.SPACE_BETWEEN_TARGET_AND_LIST = 10;
|
|
24
|
+
this.isFullscreen = signal(false);
|
|
25
|
+
this.isHidden = signal(true);
|
|
26
|
+
this.closed = new EventEmitter();
|
|
27
|
+
this.initClickOutsideSubscription();
|
|
28
|
+
}
|
|
29
|
+
onCloseModal() {
|
|
30
|
+
this.closed.emit();
|
|
31
|
+
}
|
|
32
|
+
onMaximizeModal() {
|
|
33
|
+
this.isFullscreen.update((prev) => !prev);
|
|
34
|
+
}
|
|
35
|
+
initClickOutsideSubscription() {
|
|
36
|
+
this.cuiClickOutsideDirective.cuiClickOutside
|
|
37
|
+
.pipe(skip(1), takeUntilDestroyed())
|
|
38
|
+
.subscribe(() => this.onCloseModal());
|
|
39
|
+
}
|
|
40
|
+
calculateModalPosition(marker) {
|
|
41
|
+
const { bottom, left } = marker.getBoundingClientRect();
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
const modalWidth = this.element.offsetWidth;
|
|
44
|
+
this.element.style.top = bottom + this.window.scrollY + this.SPACE_BETWEEN_TARGET_AND_LIST + 'px';
|
|
45
|
+
this.element.style.left = left + this.window.scrollX + marker.offsetWidth / 2 - modalWidth / 2 + 'px';
|
|
46
|
+
this.isHidden.set(false);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorToolModalComponent, isStandalone: true, selector: "ng-component", inputs: { tool: "tool", marker: "marker" }, outputs: { closed: "closed" }, host: { properties: { "class._hidden": "this._isHidden", "class._fullscreen": "this._isFullscreen" } }, hostDirectives: [{ directive: i1.CuiClickOutsideDirective }], ngImport: i0, template: "<div class=\"triangle\"></div>\n<div class=\"wrapper\">\n <header class=\"header\">\n <h3 class=\"title\">{{ tool.title }}</h3>\n <div class=\"header__buttons\">\n <!-- TODO: replace icon with 'maximize' -->\n <button\n cuiButton\n type=\"button\"\n appearance=\"ghost\"\n size=\"xxs\"\n icon=\"cuiIconArrowSortSm\"\n (click)=\"onMaximizeModal()\"\n ></button>\n <button\n cuiButton\n type=\"button\"\n appearance=\"ghost\"\n size=\"xxs\"\n icon=\"cuiIconX\"\n (click)=\"onCloseModal()\"\n ></button>\n </div>\n </header>\n <div class=\"content\">\n <div class=\"info\">\n <!-- TODO: \u0431\u0443\u0434\u0435\u0442 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430-->\n <p class=\"info__item\">\n <span class=\"info__field\">\u0422\u0438\u043F:</span>\n <span class=\"info__title\">{{ tool.title }}</span>\n </p>\n <p class=\"info__item\">\n <span class=\"info__field\">\u0421\u0442\u0440\u0430\u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C:</span>\n <span class=\"info__title\">{{ tool.title }}</span>\n </p>\n </div>\n </div>\n</div>\n", styles: [".content{padding-right:23px;padding-left:23px;padding-bottom:7px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);max-height:415px;overflow-y:auto}:host{position:absolute;z-index:10;left:50%;top:30px;min-height:100px;max-width:450px}:host._fullscreen{position:fixed;top:0!important;left:0!important;max-width:none;height:100vh;width:100%;transform:none}:host._fullscreen .content{max-height:calc(100% - 56px)}:host._hidden{visibility:hidden}.triangle{position:absolute;top:-7px;left:50%;width:14px;height:14px;border-radius:2px;border:1px solid var(--cui-base-200);background:var(--cui-base-0);transform:translate(-50%) rotate(45deg)}.wrapper{position:relative;border-radius:8px;border:1px solid var(--cui-base-200);background:var(--cui-base-0);height:100%}.header{padding:8.2px 15px 8px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}.title{font-weight:500;font-size:14px;line-height:20px;padding-top:2px;padding-bottom:2px;text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--cui-base-900)}.info{display:flex;flex-direction:column;gap:8px}.info__item{display:flex;gap:8px}.info__field{font-weight:400;font-size:16px;line-height:24px;text-wrap:nowrap;color:var(--cui-gray-600)}.info__title{font-weight:500;font-size:16px;line-height:24px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--cui-base-900)}\n"], dependencies: [{ kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i2.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
51
|
+
}
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolModalComponent, decorators: [{
|
|
53
|
+
type: Component,
|
|
54
|
+
args: [{ standalone: true, imports: [CuiButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [CuiClickOutsideDirective], template: "<div class=\"triangle\"></div>\n<div class=\"wrapper\">\n <header class=\"header\">\n <h3 class=\"title\">{{ tool.title }}</h3>\n <div class=\"header__buttons\">\n <!-- TODO: replace icon with 'maximize' -->\n <button\n cuiButton\n type=\"button\"\n appearance=\"ghost\"\n size=\"xxs\"\n icon=\"cuiIconArrowSortSm\"\n (click)=\"onMaximizeModal()\"\n ></button>\n <button\n cuiButton\n type=\"button\"\n appearance=\"ghost\"\n size=\"xxs\"\n icon=\"cuiIconX\"\n (click)=\"onCloseModal()\"\n ></button>\n </div>\n </header>\n <div class=\"content\">\n <div class=\"info\">\n <!-- TODO: \u0431\u0443\u0434\u0435\u0442 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430-->\n <p class=\"info__item\">\n <span class=\"info__field\">\u0422\u0438\u043F:</span>\n <span class=\"info__title\">{{ tool.title }}</span>\n </p>\n <p class=\"info__item\">\n <span class=\"info__field\">\u0421\u0442\u0440\u0430\u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C:</span>\n <span class=\"info__title\">{{ tool.title }}</span>\n </p>\n </div>\n </div>\n</div>\n", styles: [".content{padding-right:23px;padding-left:23px;padding-bottom:7px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);max-height:415px;overflow-y:auto}:host{position:absolute;z-index:10;left:50%;top:30px;min-height:100px;max-width:450px}:host._fullscreen{position:fixed;top:0!important;left:0!important;max-width:none;height:100vh;width:100%;transform:none}:host._fullscreen .content{max-height:calc(100% - 56px)}:host._hidden{visibility:hidden}.triangle{position:absolute;top:-7px;left:50%;width:14px;height:14px;border-radius:2px;border:1px solid var(--cui-base-200);background:var(--cui-base-0);transform:translate(-50%) rotate(45deg)}.wrapper{position:relative;border-radius:8px;border:1px solid var(--cui-base-200);background:var(--cui-base-0);height:100%}.header{padding:8.2px 15px 8px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}.title{font-weight:500;font-size:14px;line-height:20px;padding-top:2px;padding-bottom:2px;text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--cui-base-900)}.info{display:flex;flex-direction:column;gap:8px}.info__item{display:flex;gap:8px}.info__field{font-weight:400;font-size:16px;line-height:24px;text-wrap:nowrap;color:var(--cui-gray-600)}.info__title{font-weight:500;font-size:16px;line-height:24px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--cui-base-900)}\n"] }]
|
|
55
|
+
}], ctorParameters: () => [], propDecorators: { tool: [{
|
|
56
|
+
type: Input,
|
|
57
|
+
args: [{ required: true }]
|
|
58
|
+
}], marker: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], closed: [{
|
|
61
|
+
type: Output
|
|
62
|
+
}], _isHidden: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['class._hidden']
|
|
65
|
+
}], _isFullscreen: [{
|
|
66
|
+
type: HostBinding,
|
|
67
|
+
args: ['class._fullscreen']
|
|
68
|
+
}] } });
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXRvb2wtbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItdG9vbC1tb2RhbC9lZGl0b3ItdG9vbC1tb2RhbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbn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2IGNsYXNzPVwidHJpYW5nbGVcIj48L2Rpdj5cbjxkaXYgY2xhc3M9XCJ3cmFwcGVyXCI+XG4gICAgPGhlYWRlciBjbGFzcz1cImhlYWRlclwiPlxuICAgICAgICA8aDMgY2xhc3M9XCJ0aXRsZVwiPnt7IHRvb2wudGl0bGUgfX08L2gzPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiaGVhZGVyX19idXR0b25zXCI+XG4gICAgICAgICAgICA8IS0tIFRPRE86IHJlcGxhY2UgaWNvbiB3aXRoICdtYXhpbWl6ZScgLS0+XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImdob3N0XCJcbiAgICAgICAgICAgICAgICBzaXplPVwieHhzXCJcbiAgICAgICAgICAgICAgICBpY29uPVwiY3VpSWNvbkFycm93U29ydFNtXCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25NYXhpbWl6ZU1vZGFsKClcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgIGN1aUJ1dHRvblxuICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJnaG9zdFwiXG4gICAgICAgICAgICAgICAgc2l6ZT1cInh4c1wiXG4gICAgICAgICAgICAgICAgaWNvbj1cImN1aUljb25YXCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25DbG9zZU1vZGFsKClcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2hlYWRlcj5cbiAgICA8ZGl2IGNsYXNzPVwiY29udGVudFwiPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiaW5mb1wiPlxuICAgICAgICAgICAgPCEtLSBUT0RPOiDQsdGD0LTQtdGCINC60LDRgNGC0LjQvdC60LAtLT5cbiAgICAgICAgICAgIDxwIGNsYXNzPVwiaW5mb19faXRlbVwiPlxuICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiaW5mb19fZmllbGRcIj7QotC40L86PC9zcGFuPlxuICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiaW5mb19fdGl0bGVcIj57eyB0b29sLnRpdGxlIH19PC9zcGFuPlxuICAgICAgICAgICAgPC9wPlxuICAgICAgICAgICAgPHAgY2xhc3M9XCJpbmZvX19pdGVtXCI+XG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJpbmZvX19maWVsZFwiPtCh0YLRgNCw0L3QsCDQv9GA0L7QuNC30LLQvtC00LjRgtC10LvRjDo8L3NwYW4+XG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJpbmZvX190aXRsZVwiPnt7IHRvb2wudGl0bGUgfX08L3NwYW4+XG4gICAgICAgICAgICA8L3A+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const EDITOR_TOOL_MODAL_SELECTOR = 'cc-editor-tool-modal';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXRvb2wtbW9kYWwub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL2NvbXBvbmVudHMvZWRpdG9yLXRvb2wtbW9kYWwvZWRpdG9yLXRvb2wtbW9kYWwub3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTQSxNQUFNLENBQUMsTUFBTSwwQkFBMEIsR0FBRyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTWFya2VyVHlwZSB9IGZyb20gJy4uLy4uL3NlcnZpY2VzL21hcmtlcnMtc2VydmljZS5vcHRpb25zJztcblxuZXhwb3J0IGludGVyZmFjZSBUb29sIHtcbiAgICBpZDogc3RyaW5nO1xuICAgIGltYWdlPzogc3RyaW5nO1xuICAgIHRpdGxlPzogc3RyaW5nO1xuICAgIHR5cGU/OiBNYXJrZXJUeXBlO1xufVxuXG5leHBvcnQgY29uc3QgRURJVE9SX1RPT0xfTU9EQUxfU0VMRUNUT1IgPSAnY2MtZWRpdG9yLXRvb2wtbW9kYWwnO1xuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EditorToolModalComponent } from './editor-tool-modal.component';
|
|
2
|
+
export { EDITOR_TOOL_MODAL_SELECTOR } from './editor-tool-modal.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2VkaXRvci10b29sLW1vZGFsL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3pFLE9BQU8sRUFBUSwwQkFBMEIsRUFBRSxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRWRpdG9yVG9vbE1vZGFsQ29tcG9uZW50IH0gZnJvbSAnLi9lZGl0b3ItdG9vbC1tb2RhbC5jb21wb25lbnQnO1xyXG5leHBvcnQgeyBUb29sLCBFRElUT1JfVE9PTF9NT0RBTF9TRUxFQ1RPUiB9IGZyb20gJy4vZWRpdG9yLXRvb2wtbW9kYWwub3B0aW9ucyc7XHJcbiJdfQ==
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { NgFor } from '@angular/common';
|
|
3
|
+
import { CuiButtonModule } from '../../../components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../../components/button/button.component";
|
|
6
|
+
export class EditorTooltipComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
// TODO: Удалить класс
|
|
9
|
+
this.BUTTONS_OPTIONS = new Map([
|
|
10
|
+
['copy', { icon: 'cuiIconCopy', handler: (event) => this.copyClicked.emit(event) }],
|
|
11
|
+
['edit', { icon: 'cuiIconEdit', handler: (event) => this.editClicked.emit(event), class: 'edit' }],
|
|
12
|
+
['delete', { icon: 'cuiIconTrash', handler: (event) => this.deleteClicked.emit(event) }]
|
|
13
|
+
]);
|
|
14
|
+
this._options = ['edit', 'delete'];
|
|
15
|
+
this.buttons = this.getButtonsFromOptions(this._options);
|
|
16
|
+
this.copyClicked = new EventEmitter();
|
|
17
|
+
this.editClicked = new EventEmitter();
|
|
18
|
+
this.deleteClicked = new EventEmitter();
|
|
19
|
+
}
|
|
20
|
+
set options(value) {
|
|
21
|
+
this._options = value;
|
|
22
|
+
this.buttons = this.getButtonsFromOptions(value);
|
|
23
|
+
}
|
|
24
|
+
getButtonsFromOptions(options) {
|
|
25
|
+
return options.map((option) => this.BUTTONS_OPTIONS.get(option));
|
|
26
|
+
}
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorTooltipComponent, isStandalone: true, selector: "ng-component", inputs: { title: "title", options: "options" }, outputs: { copyClicked: "copyClicked", editClicked: "editClicked", deleteClicked: "deleteClicked" }, ngImport: i0, template: "<h3 class=\"title\">{{ title }}</h3>\r\n<div class=\"buttons-container\">\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <div class=\"divider\"></div>\r\n <!-- TODO: class \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0451\u043D \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043C-->\r\n <button\r\n class=\"button\"\r\n cuiButton\r\n type=\"button\"\r\n appearance=\"ghost\"\r\n size=\"xxs\"\r\n [icon]=\"button.icon\"\r\n [class]=\"button.class\"\r\n (click)=\"button.handler($event)\"\r\n ></button>\r\n </ng-container>\r\n</div>\r\n", styles: [":host{padding:4px 6px;box-shadow:0 4px 6px -2px #0000000d,0 10px 15px -3px #0000001a;font-weight:400;font-size:14px;line-height:20px;position:fixed;z-index:12;left:0;top:0;display:flex;align-items:center;gap:12px;border-radius:4px;font-family:var(--cui-main-font);background:var(--cui-gray-800)}.title{font-weight:400;font-size:14px;line-height:20px;max-width:300px;text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--cui-gray-0)}.divider{width:1px;height:24px;background:var(--cui-gray-500)}.buttons-container{display:flex;align-items:center;gap:4px}.button{--cui-base-50: rgba(255 255 255 / 10%);--cui-base-500: var(--cui-gray-0)}\n"], dependencies: [{ kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i1.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorTooltipComponent, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{ standalone: true, imports: [CuiButtonModule, NgFor], changeDetection: ChangeDetectionStrategy.OnPush, template: "<h3 class=\"title\">{{ title }}</h3>\r\n<div class=\"buttons-container\">\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <div class=\"divider\"></div>\r\n <!-- TODO: class \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0451\u043D \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043C-->\r\n <button\r\n class=\"button\"\r\n cuiButton\r\n type=\"button\"\r\n appearance=\"ghost\"\r\n size=\"xxs\"\r\n [icon]=\"button.icon\"\r\n [class]=\"button.class\"\r\n (click)=\"button.handler($event)\"\r\n ></button>\r\n </ng-container>\r\n</div>\r\n", styles: [":host{padding:4px 6px;box-shadow:0 4px 6px -2px #0000000d,0 10px 15px -3px #0000001a;font-weight:400;font-size:14px;line-height:20px;position:fixed;z-index:12;left:0;top:0;display:flex;align-items:center;gap:12px;border-radius:4px;font-family:var(--cui-main-font);background:var(--cui-gray-800)}.title{font-weight:400;font-size:14px;line-height:20px;max-width:300px;text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--cui-gray-0)}.divider{width:1px;height:24px;background:var(--cui-gray-500)}.buttons-container{display:flex;align-items:center;gap:4px}.button{--cui-base-50: rgba(255 255 255 / 10%);--cui-base-500: var(--cui-gray-0)}\n"] }]
|
|
33
|
+
}], propDecorators: { title: [{
|
|
34
|
+
type: Input,
|
|
35
|
+
args: [{ required: true }]
|
|
36
|
+
}], options: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}], copyClicked: [{
|
|
39
|
+
type: Output
|
|
40
|
+
}], editClicked: [{
|
|
41
|
+
type: Output
|
|
42
|
+
}], deleteClicked: [{
|
|
43
|
+
type: Output
|
|
44
|
+
}] } });
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXRvb2x0aXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvd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iXHJcbiAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJnaG9zdFwiXHJcbiAgICAgICAgICAgIHNpemU9XCJ4eHNcIlxyXG4gICAgICAgICAgICBbaWNvbl09XCJidXR0b24uaWNvblwiXHJcbiAgICAgICAgICAgIFtjbGFzc109XCJidXR0b24uY2xhc3NcIlxyXG4gICAgICAgICAgICAoY2xpY2spPVwiYnV0dG9uLmhhbmRsZXIoJGV2ZW50KVwiXHJcbiAgICAgICAgPjwvYnV0dG9uPlxyXG4gICAgPC9uZy1jb250YWluZXI+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const EDITOR_TOOLTIP_SELECTOR = 'cc-editor-tooltip';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXRvb2x0aXAub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL2NvbXBvbmVudHMvZWRpdG9yLXRvb2x0aXAvZWRpdG9yLXRvb2x0aXAub3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhQSxNQUFNLENBQUMsTUFBTSx1QkFBdUIsR0FBRyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ3VpSWNvbiB9IGZyb20gJ0BjdWJ5LXVpL2ljb25zJztcclxuXHJcbmV4cG9ydCB0eXBlIEVkaXRvclRvb2x0aXBPcHRpb24gPSAnY29weScgfCAnZWRpdCcgfCAnZGVsZXRlJztcclxuXHJcbmV4cG9ydCB0eXBlIEVkaXRvclRvb2x0aXBPcHRpb25zID0gRWRpdG9yVG9vbHRpcE9wdGlvbltdO1xyXG5cclxuLy8gVE9ETzogY2xhc3Mg0LTQvtC70LbQtdC9INCx0YvRgtGMINGD0LTQsNC70ZHQvSDQsiDQsdGD0LTRg9GJ0LXQvFxyXG5leHBvcnQgaW50ZXJmYWNlIEVkaXRvclRvb2x0aXBCdXR0b24ge1xyXG4gICAgcmVhZG9ubHkgaWNvbjogQ3VpSWNvbjtcclxuICAgIHJlYWRvbmx5IGhhbmRsZXI6IChldmVudDogTW91c2VFdmVudCkgPT4gdm9pZDtcclxuICAgIHJlYWRvbmx5IGNsYXNzPzogc3RyaW5nO1xyXG59XHJcblxyXG5leHBvcnQgY29uc3QgRURJVE9SX1RPT0xUSVBfU0VMRUNUT1IgPSAnY2MtZWRpdG9yLXRvb2x0aXAnO1xyXG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EditorTooltipComponent } from './editor-tooltip.component';
|
|
2
|
+
export * from './editor-tooltip.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2VkaXRvci10b29sdGlwL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQ3BFLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFZGl0b3JUb29sdGlwQ29tcG9uZW50IH0gZnJvbSAnLi9lZGl0b3ItdG9vbHRpcC5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2VkaXRvci10b29sdGlwLm9wdGlvbnMnO1xyXG4iXX0=
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, signal } from '@angular/core';
|
|
2
|
+
import { FormsModule } from '@angular/forms';
|
|
3
|
+
import { NgIf } from '@angular/common';
|
|
4
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
5
|
+
import { CuiSvgModule } from '../../../components';
|
|
6
|
+
import { EditorToolComponent } from '../editor-tool/editor-tool.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../../components/svg/svg.component";
|
|
9
|
+
export class EditorVideoToolComponent extends EditorToolComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.isLoaded = signal(false);
|
|
13
|
+
}
|
|
14
|
+
get isShowLoadButton() {
|
|
15
|
+
return !this.video && !this.isCaptionShown && !this.isLoading;
|
|
16
|
+
}
|
|
17
|
+
onPlay() {
|
|
18
|
+
this.isLoaded.set(true);
|
|
19
|
+
}
|
|
20
|
+
onPreventEnter(event) {
|
|
21
|
+
if (this.checkKey(event)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
event.stopPropagation();
|
|
25
|
+
}
|
|
26
|
+
checkKey(event) {
|
|
27
|
+
return (event.key !== 'Backspace' && event.key !== 'Enter') || event.shiftKey;
|
|
28
|
+
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorVideoToolComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorVideoToolComponent, isStandalone: true, selector: "ng-component", inputs: { video: "video" }, host: { properties: { "class._hidden": "isShowLoadButton" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t\">\r\n <ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *ngIf=\"video; else buttonTemplate\">\r\n <div\r\n class=\"wrapper\"\r\n [class._loaded]=\"isLoaded()\"\r\n >\r\n <video\r\n *ngIf=\"isLoaded(); else playButtonTemplate\"\r\n class=\"video\"\r\n [src]=\"video\"\r\n controls\r\n autoplay\r\n muted\r\n playsinline\r\n ></video>\r\n\r\n <ng-template #playButtonTemplate>\r\n <button\r\n type=\"button\"\r\n class=\"play\"\r\n (click)=\"onPlay()\"\r\n >\r\n <cui-svg\r\n class=\"play\"\r\n icon=\"cuiIconPlayCircleSm\"\r\n [height]=\"72\"\r\n [width]=\"72\"\r\n [strokeWidth]=\"0.5\"\r\n />\r\n </button>\r\n </ng-template>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"isCaptionShown\"\r\n class=\"caption cdx-input\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n attr.data-placeholder=\"{{ t('CAPTION') }}...\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n [innerHTML]=\"caption\"\r\n ></div>\r\n </ng-container>\r\n\r\n <ng-template #buttonTemplate>\r\n <button\r\n type=\"button\"\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n >\r\n <cui-svg icon=\"cuiIconPlayCircle\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\">\r\n <img\r\n *ngIf=\"preview\"\r\n class=\"preloader__image\"\r\n [src]=\"preview\"\r\n alt=\"Preloader\"\r\n />\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{font-weight:400;font-size:14px;line-height:20px;padding-top:6px;padding-bottom:6px;font-family:var(--cui-main-font);display:block}:host ::ng-deep .cdx-input{border:1px solid var(--cui-base-200);background:transparent;box-shadow:none}:host ::ng-deep .play{margin:auto}:host ::ng-deep .play path{fill:var(--cui-base-0);stroke:var(--cui-base-300)}:host._hidden{display:none}.wrapper{display:flex;flex-direction:column;border-radius:8px;border:1px solid var(--cui-base-200);min-height:200px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.video{display:block;max-width:100%}.preloader{width:50px;height:50px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--cui-base-200);background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader__image{width:50px;height:50px;border-radius:50%}.preloader:after{content:\"\";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.caption{border-radius:8px;margin-top:10px}.caption[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;align-items:center;justify-content:center;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: i1.CuiSvgComponent, selector: "cui-svg[icon]", inputs: ["width", "height", "strokeWidth", "color", "icon"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorVideoToolComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ standalone: true, imports: [CuiSvgModule, FormsModule, NgIf, TranslocoDirective], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
35
|
+
'[class._hidden]': 'isShowLoadButton'
|
|
36
|
+
}, template: "<ng-container *transloco=\"let t\">\r\n <ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *ngIf=\"video; else buttonTemplate\">\r\n <div\r\n class=\"wrapper\"\r\n [class._loaded]=\"isLoaded()\"\r\n >\r\n <video\r\n *ngIf=\"isLoaded(); else playButtonTemplate\"\r\n class=\"video\"\r\n [src]=\"video\"\r\n controls\r\n autoplay\r\n muted\r\n playsinline\r\n ></video>\r\n\r\n <ng-template #playButtonTemplate>\r\n <button\r\n type=\"button\"\r\n class=\"play\"\r\n (click)=\"onPlay()\"\r\n >\r\n <cui-svg\r\n class=\"play\"\r\n icon=\"cuiIconPlayCircleSm\"\r\n [height]=\"72\"\r\n [width]=\"72\"\r\n [strokeWidth]=\"0.5\"\r\n />\r\n </button>\r\n </ng-template>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"isCaptionShown\"\r\n class=\"caption cdx-input\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n attr.data-placeholder=\"{{ t('CAPTION') }}...\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n [innerHTML]=\"caption\"\r\n ></div>\r\n </ng-container>\r\n\r\n <ng-template #buttonTemplate>\r\n <button\r\n type=\"button\"\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n >\r\n <cui-svg icon=\"cuiIconPlayCircle\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\">\r\n <img\r\n *ngIf=\"preview\"\r\n class=\"preloader__image\"\r\n [src]=\"preview\"\r\n alt=\"Preloader\"\r\n />\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{font-weight:400;font-size:14px;line-height:20px;padding-top:6px;padding-bottom:6px;font-family:var(--cui-main-font);display:block}:host ::ng-deep .cdx-input{border:1px solid var(--cui-base-200);background:transparent;box-shadow:none}:host ::ng-deep .play{margin:auto}:host ::ng-deep .play path{fill:var(--cui-base-0);stroke:var(--cui-base-300)}:host._hidden{display:none}.wrapper{display:flex;flex-direction:column;border-radius:8px;border:1px solid var(--cui-base-200);min-height:200px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.video{display:block;max-width:100%}.preloader{width:50px;height:50px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--cui-base-200);background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader__image{width:50px;height:50px;border-radius:50%}.preloader:after{content:\"\";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.caption{border-radius:8px;margin-top:10px}.caption[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;align-items:center;justify-content:center;width:100%}\n"] }]
|
|
37
|
+
}], propDecorators: { video: [{
|
|
38
|
+
type: Input,
|
|
39
|
+
args: [{ required: true }]
|
|
40
|
+
}] } });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXZpZGVvLXRvb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItdmlkZW8tdG9vbC9lZGl0b3ItdmlkZW8tdG9vbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2VkaXRvci12aWRlby10b29sL2VkaXRvci12aWRlby10b29sLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU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clxuXHJcbiAgICBwcml2YXRlIGNoZWNrS2V5KGV2ZW50OiBLZXlib2FyZEV2ZW50KTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIChldmVudC5rZXkgIT09ICdCYWNrc3BhY2UnICYmIGV2ZW50LmtleSAhPT0gJ0VudGVyJykgfHwgZXZlbnQuc2hpZnRLZXk7XHJcbiAgICB9XHJcbn1cclxuIiwiPG5nLWNvbnRhaW5lciAqdHJhbnNsb2NvPVwibGV0IHRcIj5cclxuICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhaXNMb2FkaW5nOyBlbHNlIHByZWxvYWRlclwiPlxyXG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJ2aWRlbzsgZWxzZSBidXR0b25UZW1wbGF0ZVwiPlxyXG4gICAgICAgICAgICA8ZGl2XHJcbiAgICAgICAgICAgICAgICBjbGFzcz1cIndyYXBwZXJcIlxyXG4gICAgICAgICAgICAgICAgW2NsYXNzLl9sb2FkZWRdPVwiaXNMb2FkZWQoKVwiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDx2aWRlb1xyXG4gICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiaXNMb2FkZWQoKTsgZWxzZSBwbGF5QnV0dG9uVGVtcGxhdGVcIlxyXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzPVwidmlkZW9cIlxyXG4gICAgICAgICAgICAgICAgICAgIFtzcmNdPVwidmlkZW9cIlxyXG4gICAgICAgICAgICAgICAgICAgIGNvbnRyb2xzXHJcbiAgICAgICAgICAgICAgICAgICAgYXV0b3BsYXlcclxuICAgICAgICAgICAgICAgICAgICBtdXRlZFxyXG4gICAgICAgICAgICAgICAgICAgIHBsYXlzaW5saW5lXHJcbiAgICAgICAgICAgICAgICA+PC92aWRlbz5cclxuXHJcbiAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgI3BsYXlCdXR0b25UZW1wbGF0ZT5cclxuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInBsYXlcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwib25QbGF5KClcIlxyXG4gICAgICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGN1aS1zdmdcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwicGxheVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uPVwiY3VpSWNvblBsYXlDaXJjbGVTbVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbaGVpZ2h0XT1cIjcyXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFt3aWR0aF09XCI3MlwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc3Ryb2tlV2lkdGhdPVwiMC41XCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cclxuICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgPGRpdlxyXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJpc0NhcHRpb25TaG93blwiXHJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImNhcHRpb24gY2R4LWlucHV0XCJcclxuICAgICAgICAgICAgICAgIFthdHRyLmNvbnRlbnRlZGl0YWJsZV09XCIhcmVhZE9ubHlcIlxyXG4gICAgICAgICAgICAgICAgYXR0ci5kYXRhLXBsYWNlaG9sZGVyPVwie3sgdCgnQ0FQVElPTicpIH19Li4uXCJcclxuICAgICAgICAgICAgICAgIChwYXN0ZSk9XCJvblRpdGxlUGFzdGUoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAoa2V5ZG93bik9XCJvblByZXZlbnRFbnRlcigkZXZlbnQpXCJcclxuICAgICAgICAgICAgICAgIChrZXl1cCk9XCJvblRpdGxlQ2hhbmdlKCRldmVudClcIlxyXG4gICAgICAgICAgICAgICAgW2lubmVySFRNTF09XCJjYXB0aW9uXCJcclxuICAgICAgICAgICAgPjwvZGl2PlxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuICAgICAgICA8bmctdGVtcGxhdGUgI2J1dHRvblRlbXBsYXRlPlxyXG4gICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICAgIFtjbGFzc109XCJbJ3NlbGVjdC1idG4nLCB0aGlzLmFwaS5zdHlsZXMuYnV0dG9uXVwiXHJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25TZWxlY3RGaWxlKClcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8Y3VpLXN2ZyBpY29uPVwiY3VpSWNvblBsYXlDaXJjbGVcIiAvPlxyXG4gICAgICAgICAgICAgICAgJm5ic3A7e3sgYnV0dG9uQ29udGVudCB9fVxyXG4gICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgPC9uZy1jb250YWluZXI+XHJcbjwvbmctY29udGFpbmVyPlxyXG5cclxuPG5nLXRlbXBsYXRlICNwcmVsb2FkZXI+XHJcbiAgICA8ZGl2IGNsYXNzPVwid3JhcHBlclwiPlxyXG4gICAgICAgIDxkaXYgY2xhc3M9XCJwcmVsb2FkZXJcIj5cclxuICAgICAgICAgICAgPGltZ1xyXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJwcmV2aWV3XCJcclxuICAgICAgICAgICAgICAgIGNsYXNzPVwicHJlbG9hZGVyX19pbWFnZVwiXHJcbiAgICAgICAgICAgICAgICBbc3JjXT1cInByZXZpZXdcIlxyXG4gICAgICAgICAgICAgICAgYWx0PVwiUHJlbG9hZGVyXCJcclxuICAgICAgICAgICAgLz5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvZGl2PlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const EDITOR_VIDEO_TOOL_SELECTOR = 'cc-editor-video-tool';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXZpZGVvLXRvb2wub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL2NvbXBvbmVudHMvZWRpdG9yLXZpZGVvLXRvb2wvZWRpdG9yLXZpZGVvLXRvb2wub3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLQSxNQUFNLENBQUMsTUFBTSwwQkFBMEIsR0FBRyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQVBJIH0gZnJvbSAnQGVkaXRvcmpzL2VkaXRvcmpzJztcclxuXHJcbmltcG9ydCB0eXBlIHsgQ3VpRmlsZURhdGEgfSBmcm9tICcuLi8uLi9pbnRlcmZhY2VzL2ZpbGUtcmVzcG9uc2UtZGF0YSc7XHJcbmltcG9ydCB7IEN1aUZpbGVVcGxvYWRlckNvbmZpZyB9IGZyb20gJy4uLy4uL3V0aWxzL2ZpbGUtdXBsb2FkZXInO1xyXG5cclxuZXhwb3J0IGNvbnN0IEVESVRPUl9WSURFT19UT09MX1NFTEVDVE9SID0gJ2NjLWVkaXRvci12aWRlby10b29sJztcclxuXHJcbmV4cG9ydCB0eXBlIFZpZGVvS2V5c09iamVjdDxWID0gc3RyaW5nPiA9IHtcclxuICAgIFtrZXk6IHN0cmluZ106IFY7XHJcbn07XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEN1aVZpZGVvVG9vbENvbmZpZyBleHRlbmRzIEN1aUZpbGVVcGxvYWRlckNvbmZpZyB7XHJcbiAgICByZWFkb25seSBidXR0b25Db250ZW50OiBzdHJpbmc7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQ3VpVmlkZW9Ub29sUGxheWVyIHtcclxuICAgIHJlYWRvbmx5IHBpcDogYm9vbGVhbjtcclxuICAgIHJlYWRvbmx5IGNvbnRyb2xzOiBib29sZWFuO1xyXG4gICAgcmVhZG9ubHkgbGlnaHQ6IGJvb2xlYW47XHJcbiAgICByZWFkb25seSBwbGF5aW5nOiBib29sZWFuO1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEN1aVZpZGVvVG9vbE9wdGlvbnMge1xyXG4gICAgcmVhZG9ubHkgYXBpOiBBUEk7XHJcbiAgICByZWFkb25seSBjb25maWc6IEN1aVZpZGVvVG9vbENvbmZpZztcclxuICAgIHJlYWRvbmx5IG9uU2VsZWN0RmlsZTogKCkgPT4gdm9pZDtcclxuICAgIHJlYWRvbmx5IHJlYWRPbmx5OiBib29sZWFuO1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEN1aVZpZGVvVG9vbERhdGEge1xyXG4gICAgY2FwdGlvbjogc3RyaW5nO1xyXG4gICAgZmlsZTogQ3VpRmlsZURhdGE7XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EditorVideoToolComponent } from './editor-video-tool.component';
|
|
2
|
+
export * from './editor-video-tool.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2VkaXRvci12aWRlby10b29sL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3pFLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFZGl0b3JWaWRlb1Rvb2xDb21wb25lbnQgfSBmcm9tICcuL2VkaXRvci12aWRlby10b29sLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vZWRpdG9yLXZpZGVvLXRvb2wub3B0aW9ucyc7XHJcbiJdfQ==
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { EditorToolModalComponent, EDITOR_TOOL_MODAL_SELECTOR } from './editor-tool-modal';
|
|
2
|
+
export { EditorTooltipComponent, EDITOR_TOOLTIP_SELECTOR } from './editor-tooltip';
|
|
3
|
+
export { MarkerModalComponent, MARKER_MODAL_SELECTOR } from './marker-modal';
|
|
4
|
+
export { MarkerSelectComponent, MARKER_SELECT_SELECTOR } from './marker-select';
|
|
5
|
+
export { EditorAttachesToolComponent, EDITOR_ATTACHES_TOOL_SELECTOR } from './editor-attaches-tool';
|
|
6
|
+
export { EditorImageToolComponent, EDITOR_IMAGE_TOOL_SELECTOR } from './editor-image-tool';
|
|
7
|
+
export { EditorVideoToolComponent, EDITOR_VIDEO_TOOL_SELECTOR } from './editor-video-tool';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSwwQkFBMEIsRUFBUSxNQUFNLHFCQUFxQixDQUFDO0FBQ2pHLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSx1QkFBdUIsRUFBd0IsT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ICBDdWlBdHRhY2hlc1Rvb2xDb25maWdcclxufSBmcm9tICcuL2VkaXRvci1hdHRhY2hlcy10b29sJztcclxuZXhwb3J0IHsgRWRpdG9ySW1hZ2VUb29sQ29tcG9uZW50LCBFRElUT1JfSU1BR0VfVE9PTF9TRUxFQ1RPUiwgQ3VpSW1hZ2VUb29sQ29uZmlnIH0gZnJvbSAnLi9lZGl0b3ItaW1hZ2UtdG9vbCc7XHJcbmV4cG9ydCB7IEVkaXRvclZpZGVvVG9vbENvbXBvbmVudCwgRURJVE9SX1ZJREVPX1RPT0xfU0VMRUNUT1IsIEN1aVZpZGVvVG9vbENvbmZpZyB9IGZyb20gJy4vZWRpdG9yLXZpZGVvLXRvb2wnO1xyXG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MarkerModalComponent } from './marker-modal.component';
|
|
2
|
+
export { MARKER_MODAL_SELECTOR } from './marker-modal.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci9jb21wb25lbnRzL21hcmtlci1tb2RhbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVoRSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IE1hcmtlck1vZGFsQ29tcG9uZW50IH0gZnJvbSAnLi9tYXJrZXItbW9kYWwuY29tcG9uZW50JztcclxuZXhwb3J0IHsgTWFya2VyRGF0YSB9IGZyb20gJy4vbWFya2VyLW1vZGFsLmludGVyZmFjZXMnO1xyXG5leHBvcnQgeyBNQVJLRVJfTU9EQUxfU0VMRUNUT1IgfSBmcm9tICcuL21hcmtlci1tb2RhbC5vcHRpb25zJztcclxuIl19
|