myrta-ui 14.0.0-beta.5 → 17.0.0-beta.10
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/README.md +1 -0
- package/esm2022/lib/components/alert/alert.component.mjs +43 -0
- package/{esm2020 → esm2022}/lib/components/alert/alert.enum.mjs +14 -14
- package/{esm2020 → esm2022}/lib/components/alert/alert.module.mjs +19 -19
- package/{esm2020 → esm2022}/lib/components/badges/badge.enum.mjs +31 -31
- package/{esm2020 → esm2022}/lib/components/badges/badges.module.mjs +30 -30
- package/esm2022/lib/components/badges/components/badge/badge.component.mjs +61 -0
- package/{esm2020 → esm2022}/lib/components/badges/components/badge-group/badge-group.component.mjs +11 -11
- package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +28 -0
- package/{esm2020 → esm2022}/lib/components/breadcrumbs/breadcrumbs.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/breadcrumbs/breadcrumbs.module.mjs +25 -25
- package/esm2022/lib/components/button/button.component.mjs +100 -0
- package/esm2022/lib/components/button/button.enum.mjs +27 -0
- package/{esm2020 → esm2022}/lib/components/button/button.module.mjs +21 -21
- package/esm2022/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.mjs +29 -0
- package/esm2022/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +99 -0
- package/{esm2020 → esm2022}/lib/components/cdk-tooltip/cdk-tooltip.module.mjs +21 -21
- package/{esm2020 → esm2022}/lib/components/cdk-tooltip/constants/index.mjs +69 -69
- package/{esm2020 → esm2022}/lib/components/cdk-tooltip/models/tooltip-data.mjs +1 -1
- package/esm2022/lib/components/chars-left/chars-left.component.mjs +24 -0
- package/{esm2020 → esm2022}/lib/components/chars-left/chars-left.module.mjs +19 -19
- package/esm2022/lib/components/dropdown/directives/hide-after-click.directive.mjs +24 -0
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +107 -0
- package/{esm2020 → esm2022}/lib/components/dropdown/dropdown.module.mjs +21 -21
- package/esm2022/lib/components/error-message/error-message.component.mjs +32 -0
- package/{esm2020 → esm2022}/lib/components/error-message/error-message.module.mjs +19 -19
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +153 -0
- package/esm2022/lib/components/form/checkbox/checkbox.enum.mjs +5 -0
- package/{esm2020 → esm2022}/lib/components/form/checkbox/checkbox.module.mjs +22 -22
- package/esm2022/lib/components/form/checkbox-group/checkbox-group.component.mjs +178 -0
- package/{esm2020 → esm2022}/lib/components/form/checkbox-group/checkbox-group.module.mjs +47 -47
- package/{esm2020 → esm2022}/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.mjs +48 -49
- package/esm2022/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +106 -0
- package/esm2022/lib/components/form/checkbox-group/helpers/change-group-value.mjs +20 -0
- package/esm2022/lib/components/form/checkbox-group/helpers/change-item-value.mjs +15 -0
- package/esm2022/lib/components/form/checkbox-group/helpers/filter-search-group.mjs +27 -0
- package/esm2022/lib/components/form/checkbox-group/helpers/get-checked-items.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/form/checkbox-group/helpers/get-item-by-id.mjs +10 -10
- package/esm2022/lib/components/form/checkbox-group/helpers/get-sorted-list.mjs +50 -0
- package/{esm2020 → esm2022}/lib/components/form/checkbox-group/models/checkbox-group.model.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/form/editor/config/default-inline-style.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/editor/config/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/form/editor/config/popups-toolbar.mjs +8 -8
- package/{esm2020 → esm2022}/lib/components/form/editor/config/toolbar.mjs +71 -71
- package/esm2022/lib/components/form/editor/editor.component.mjs +265 -0
- package/{esm2020 → esm2022}/lib/components/form/editor/editor.enum.mjs +1 -1
- package/esm2022/lib/components/form/editor/editor.module.mjs +45 -0
- package/{esm2020 → esm2022}/lib/components/form/editor/models/toolbar.model.mjs +1 -1
- package/esm2022/lib/components/form/editor/modules/change-icon-module.mjs +92 -0
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/constants/value-models.mjs +13 -13
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/enum/timezone.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/clean-date.mjs +4 -4
- package/esm2022/lib/components/form/input-date-time/helpers/cursor-position.mjs +23 -0
- package/esm2022/lib/components/form/input-date-time/helpers/formatting-from-models.mjs +10 -0
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.mjs +9 -9
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/validate-value-models.mjs +60 -60
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/value-parser.mjs +38 -38
- package/esm2022/lib/components/form/input-date-time/input-date-time.component.mjs +386 -0
- package/{esm2020 → esm2022}/lib/components/form/input-date-time/input-date-time.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-date-time/input-date-time.module.mjs +46 -0
- package/{esm2020 → esm2022}/lib/components/form/input-datepicker/constants/value-models.mjs +14 -14
- package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/clean-date.mjs +4 -4
- package/esm2022/lib/components/form/input-datepicker/helpers/cursor-position.mjs +23 -0
- package/esm2022/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.mjs +10 -0
- package/esm2022/lib/components/form/input-datepicker/helpers/get-date-object.mjs +10 -0
- package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/validate-value-models.mjs +74 -74
- package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/value-parser.mjs +47 -47
- package/esm2022/lib/components/form/input-datepicker/input-datepicker.component.mjs +356 -0
- package/{esm2020 → esm2022}/lib/components/form/input-datepicker/input-datepicker.enum.mjs +6 -6
- package/esm2022/lib/components/form/input-datepicker/input-datepicker.module.mjs +46 -0
- package/{esm2020 → esm2022}/lib/components/form/input-file/enums/error-messages.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-file/input-file.component.mjs +368 -0
- package/{esm2020 → esm2022}/lib/components/form/input-file/input-file.enum.mjs +7 -7
- package/{esm2020 → esm2022}/lib/components/form/input-file/input-file.module.mjs +26 -26
- package/esm2022/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +88 -0
- package/esm2022/lib/components/form/input-file-image/input-file-image.component.mjs +356 -0
- package/{esm2020 → esm2022}/lib/components/form/input-file-image/input-file-image.enum.mjs +9 -9
- package/esm2022/lib/components/form/input-file-image/input-file-image.module.mjs +53 -0
- package/esm2022/lib/components/form/input-number/input-number.component.mjs +267 -0
- package/{esm2020 → esm2022}/lib/components/form/input-number/input-number.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-number/input-number.module.mjs +55 -0
- package/esm2022/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +370 -0
- package/{esm2020 → esm2022}/lib/components/form/input-opt/components/input-opt/input-opt.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-opt/directives/opt-pattern.directive.mjs +43 -0
- package/{esm2020 → esm2022}/lib/components/form/input-opt/input-opt.module.mjs +38 -38
- package/{esm2020 → esm2022}/lib/components/form/input-opt/models/input-opt.model.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/input-opt/services/input-opt.service.mjs +33 -33
- package/esm2022/lib/components/form/input-password/input-password.component.mjs +118 -0
- package/{esm2020 → esm2022}/lib/components/form/input-password/input-password.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-password/input-password.module.mjs +36 -0
- package/esm2022/lib/components/form/input-phone/data/country-code.mjs +1331 -0
- package/esm2022/lib/components/form/input-phone/directives/native-element-injector.directive.mjs +35 -0
- package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/country-iso.enum.mjs +246 -246
- package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/input-phone.enum.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/mask.enum.mjs +138 -138
- package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/phone-number-format.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/search-country-field.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-phone/input-phone.component.mjs +679 -0
- package/esm2022/lib/components/form/input-phone/input-phone.module.mjs +50 -0
- package/esm2022/lib/components/form/input-phone/input-phone.validator.mjs +61 -0
- package/{esm2020 → esm2022}/lib/components/form/input-phone/interfaces/change-data.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/form/input-phone/models/country.model.mjs +1 -1
- package/esm2022/lib/components/form/input-search/input-search.component.mjs +167 -0
- package/{esm2020 → esm2022}/lib/components/form/input-search/input-search.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-search/input-search.module.mjs +41 -0
- package/esm2022/lib/components/form/input-select/input-select.component.mjs +253 -0
- package/{esm2020 → esm2022}/lib/components/form/input-select/input-select.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/input-select/input-select.module.mjs +45 -45
- package/{esm2020 → esm2022}/lib/components/form/input-tel/assets/base64.mjs +3 -3
- package/{esm2020 → esm2022}/lib/components/form/input-tel/data/all-countries.mjs +1323 -1323
- package/{esm2020 → esm2022}/lib/components/form/input-tel/data/country-iso.enum.mjs +246 -246
- package/{esm2020 → esm2022}/lib/components/form/input-tel/data/phone-number-format.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/input-tel/data/search-country-field.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-tel/directives/input-tel.directive.mjs +66 -0
- package/{esm2020 → esm2022}/lib/components/form/input-tel/enums/input-phone.enum.mjs +6 -6
- package/esm2022/lib/components/form/input-tel/input-tel.component.mjs +400 -0
- package/esm2022/lib/components/form/input-tel/input-tel.module.mjs +43 -0
- package/{esm2020 → esm2022}/lib/components/form/input-tel/models/country.model.mjs +1 -1
- package/esm2022/lib/components/form/input-text/input-text.component.mjs +189 -0
- package/{esm2020 → esm2022}/lib/components/form/input-text/input-text.enum.mjs +14 -14
- package/esm2022/lib/components/form/input-text/input-text.module.mjs +49 -0
- package/esm2022/lib/components/form/input-textarea/input-textarea.component.mjs +197 -0
- package/{esm2020 → esm2022}/lib/components/form/input-textarea/input-textarea.enum.mjs +6 -6
- package/esm2022/lib/components/form/input-textarea/input-textarea.module.mjs +49 -0
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/constants/value-models.mjs +7 -7
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/clean-date.mjs +4 -4
- package/esm2022/lib/components/form/input-timepicker/helpers/cursor-position.mjs +14 -0
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/get-date-dayjs-object.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/get-date-object.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/validate-value-models.mjs +29 -29
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/value-parser.mjs +17 -17
- package/esm2022/lib/components/form/input-timepicker/input-timepicker.component.mjs +292 -0
- package/{esm2020 → esm2022}/lib/components/form/input-timepicker/input-timepicker.enum.mjs +6 -6
- package/esm2022/lib/components/form/input-timepicker/input-timepicker.module.mjs +46 -0
- package/esm2022/lib/components/form/radio/radio.component.mjs +91 -0
- package/{esm2020 → esm2022}/lib/components/form/radio/radio.enum.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/radio/radio.module.mjs +20 -20
- package/esm2022/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +45 -0
- package/esm2022/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +66 -0
- package/esm2022/lib/components/form/radio-group/helpers/filter-search-group.mjs +27 -0
- package/{esm2020 → esm2022}/lib/components/form/radio-group/helpers/get-item-by-id.mjs +10 -10
- package/esm2022/lib/components/form/radio-group/helpers/move-selected-to-first.mjs +27 -0
- package/{esm2020 → esm2022}/lib/components/form/radio-group/models/radio-group.model.mjs +2 -2
- package/esm2022/lib/components/form/radio-group/radio-group.component.mjs +175 -0
- package/esm2022/lib/components/form/radio-group/radio-group.module.mjs +26 -0
- package/esm2022/lib/components/form/rating/rating.component.mjs +215 -0
- package/{esm2020 → esm2022}/lib/components/form/rating/rating.enum.mjs +15 -15
- package/{esm2020 → esm2022}/lib/components/form/rating/rating.module.mjs +25 -25
- package/esm2022/lib/components/form/switch/switch.component.mjs +95 -0
- package/{esm2020 → esm2022}/lib/components/form/switch/switch.enum.mjs +10 -10
- package/{esm2020 → esm2022}/lib/components/form/switch/switch.module.mjs +21 -21
- package/esm2022/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +37 -0
- package/esm2022/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +112 -0
- package/{esm2020 → esm2022}/lib/components/gallery/constants/custom-buttons-default.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/gallery/constants/thumbs-config-default.mjs +4 -4
- package/esm2022/lib/components/gallery/gallery.component.mjs +203 -0
- package/{esm2020 → esm2022}/lib/components/gallery/gallery.module.mjs +54 -54
- package/{esm2020 → esm2022}/lib/components/gallery/models/gallery-item.model.mjs +1 -1
- package/esm2022/lib/components/gallery/services/gallery.service.mjs +33 -0
- package/esm2022/lib/components/hint-error-message/hint-error-message.component.mjs +121 -0
- package/{esm2020 → esm2022}/lib/components/hint-error-message/hint-error-message.module.mjs +19 -19
- package/esm2022/lib/components/icon-button/icon-button.component.mjs +49 -0
- package/{esm2020 → esm2022}/lib/components/icon-button/icon-button.enum.mjs +15 -15
- package/{esm2020 → esm2022}/lib/components/icon-button/icon-button.module.mjs +19 -19
- package/esm2022/lib/components/label/label.component.mjs +143 -0
- package/{esm2020 → esm2022}/lib/components/label/label.module.mjs +25 -25
- package/esm2022/lib/components/link/link.component.mjs +48 -0
- package/{esm2020 → esm2022}/lib/components/link/link.enum.mjs +19 -19
- package/{esm2020 → esm2022}/lib/components/link/link.module.mjs +19 -19
- package/esm2022/lib/components/loader/loader.component.mjs +24 -0
- package/{esm2020 → esm2022}/lib/components/loader/loader.enum.mjs +19 -19
- package/{esm2020 → esm2022}/lib/components/loader/loader.module.mjs +19 -19
- package/esm2022/lib/components/modal/modal.component.mjs +137 -0
- package/{esm2020 → esm2022}/lib/components/modal/modal.emun.mjs +20 -20
- package/{esm2020 → esm2022}/lib/components/modal/modal.module.mjs +20 -20
- package/esm2022/lib/components/pages-nav/pages-nav.component.mjs +31 -0
- package/{esm2020 → esm2022}/lib/components/pages-nav/pages-nav.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/pages-nav/pages-nav.module.mjs +24 -24
- package/esm2022/lib/components/paginator/paginator.component.mjs +140 -0
- package/{esm2020 → esm2022}/lib/components/paginator/paginator.enum.mjs +5 -5
- package/esm2022/lib/components/paginator/paginator.module.mjs +31 -0
- package/esm2022/lib/components/progress/progress.component.mjs +24 -0
- package/{esm2020 → esm2022}/lib/components/progress/progress.enum.mjs +7 -7
- package/{esm2020 → esm2022}/lib/components/progress/progress.module.mjs +19 -19
- package/esm2022/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.mjs +16 -0
- package/esm2022/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.mjs +16 -0
- package/esm2022/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +16 -0
- package/esm2022/lib/components/save-state/components/save-state-input/save-state-input.component.mjs +16 -0
- package/esm2022/lib/components/save-state/components/save-state-switch/save-state-switch.component.mjs +16 -0
- package/esm2022/lib/components/save-state/save-state.component.mjs +40 -0
- package/{esm2020 → esm2022}/lib/components/save-state/save-state.enum.mjs +2 -2
- package/{esm2020 → esm2022}/lib/components/save-state/save-state.module.mjs +37 -37
- package/esm2022/lib/components/stepper/stepper.component.mjs +52 -0
- package/{esm2020 → esm2022}/lib/components/stepper/stepper.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/stepper/stepper.module.mjs +20 -20
- package/esm2022/lib/components/table/components/column/column.component.mjs +40 -0
- package/{esm2020 → esm2022}/lib/components/table/default/default-pager-settings.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/table/models/data-state-change.event.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/table/models/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/components/table/models/pager-settings.mjs +1 -1
- package/esm2022/lib/components/table/table.component.mjs +281 -0
- package/{esm2020 → esm2022}/lib/components/table/table.enum.mjs +7 -7
- package/{esm2020 → esm2022}/lib/components/table/table.module.mjs +50 -50
- package/esm2022/lib/components/tabs/tab/tab.component.mjs +33 -0
- package/esm2022/lib/components/tabs/tabs-group/tabs-group.component.mjs +27 -0
- package/{esm2020 → esm2022}/lib/components/tabs/tabs.enum.mjs +13 -13
- package/{esm2020 → esm2022}/lib/components/tabs/tabs.module.mjs +20 -20
- package/esm2022/lib/components/tooltip/services/tooltip.service.mjs +65 -0
- package/esm2022/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +36 -0
- package/{esm2020 → esm2022}/lib/components/tooltip/tooltip-trigger/tooltip-trigger.enum.mjs +10 -10
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +59 -0
- package/{esm2020 → esm2022}/lib/components/tooltip/tooltip.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/tooltip/tooltip.module.mjs +21 -21
- package/{esm2020 → esm2022}/lib/components/truncate-text/directives/truncate-text.directive.mjs +149 -139
- package/esm2022/lib/components/truncate-text/truncate-text.component.mjs +30 -0
- package/{esm2020 → esm2022}/lib/components/truncate-text/truncate-text.enum.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/truncate-text/truncate-text.module.mjs +21 -21
- package/esm2022/lib/components/warning-message/warning-message.component.mjs +29 -0
- package/{esm2020 → esm2022}/lib/components/warning-message/warning-message.module.mjs +19 -19
- package/esm2022/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +25 -0
- package/{esm2020 → esm2022}/lib/components/wrappers/content-wrapper/content-wrapper.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/wrappers/content-wrapper/content-wrapper.module.mjs +19 -19
- package/esm2022/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.mjs +15 -0
- package/esm2022/lib/components/wrappers/controls-wrapper/controls-wrapper.component.mjs +23 -0
- package/{esm2020 → esm2022}/lib/components/wrappers/controls-wrapper/controls-wrapper.enum.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/wrappers/controls-wrapper/controls-wrapper.module.mjs +20 -20
- package/esm2022/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +99 -0
- package/{esm2020 → esm2022}/lib/components/wrappers/widget-wrapper/widget-wrapper.enum.mjs +16 -16
- package/{esm2020 → esm2022}/lib/components/wrappers/widget-wrapper/widget-wrapper.module.mjs +24 -24
- package/esm2022/lib/directives/autosize/autosize.directive.mjs +57 -0
- package/{esm2020 → esm2022}/lib/directives/autosize/autosize.module.mjs +24 -24
- package/esm2022/lib/directives/truncate/truncate.directive.mjs +34 -0
- package/{esm2020 → esm2022}/lib/directives/truncate/truncate.module.mjs +18 -18
- package/{esm2020 → esm2022}/lib/enums/typed.input.state.mjs +8 -8
- package/esm2022/lib/helpers/extension/input-file.extension.mjs +39 -0
- package/esm2022/lib/helpers/formatting-date.mjs +51 -0
- package/{esm2020 → esm2022}/lib/helpers/formatting-dates-from-array.mjs +18 -18
- package/{esm2020 → esm2022}/lib/helpers/formatting-iso-to-string.mjs +12 -12
- package/{esm2020 → esm2022}/lib/helpers/index.mjs +7 -7
- package/{esm2020 → esm2022}/lib/helpers/number-format.mjs +8 -8
- package/esm2022/lib/helpers/string-hash-code.mjs +17 -0
- package/{esm2020 → esm2022}/lib/helpers/word-form.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/index.mjs +2 -2
- package/esm2022/lib/models/input-file/input-file.model.mjs +2 -0
- package/{esm2020 → esm2022}/lib/models/typed-input-model.mjs +1 -1
- package/{esm2020 → esm2022}/lib/pipes/currency/currency.module.mjs +20 -20
- package/esm2022/lib/pipes/currency/currency.pipe.mjs +22 -0
- package/{esm2020 → esm2022}/lib/pipes/date/date-format.module.mjs +19 -19
- package/esm2022/lib/pipes/date/date-format.pipe.mjs +21 -0
- package/esm2022/lib/pipes/date/date-time-format.pipe.mjs +21 -0
- package/{esm2020 → esm2022}/lib/pipes/date/enums/timezone.mjs +9 -9
- package/{esm2020 → esm2022}/lib/pipes/date/helpers/change-timezone.mjs +22 -22
- package/{esm2020 → esm2022}/lib/pipes/phone/phone-format.module.mjs +18 -18
- package/esm2022/lib/pipes/phone/phone-format.pipe.mjs +23 -0
- package/{esm2020 → esm2022}/lib/pipes/safe/safe.module.mjs +20 -20
- package/esm2022/lib/pipes/safe/safe.pipe.mjs +21 -0
- package/{esm2020 → esm2022}/lib/pipes/truncate/truncate.module.mjs +20 -20
- package/esm2022/lib/pipes/truncate/truncate.pipe.mjs +23 -0
- package/esm2022/lib/services/file-upload/file-upload.service.mjs +28 -0
- package/esm2022/lib/services/index.mjs +11 -0
- package/esm2022/lib/services/modal-service/components/alert-modal/alert-modal.component.mjs +44 -0
- package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs +48 -0
- package/esm2022/lib/services/modal-service/helpers/index.mjs +5 -0
- package/esm2022/lib/services/modal-service/helpers/modal-default-config.mjs +14 -0
- package/esm2022/lib/services/modal-service/helpers/modal-ref.mjs +29 -0
- package/esm2022/lib/services/modal-service/helpers/modal-tokens.mjs +4 -0
- package/esm2022/lib/services/modal-service/helpers/modal.component.mjs +4 -0
- package/esm2022/lib/services/modal-service/modal-service.module.mjs +25 -0
- package/esm2022/lib/services/modal-service/modal-service.service.mjs +84 -0
- package/esm2022/lib/services/modal-service/models/modal-config.model.mjs +2 -0
- package/esm2022/lib/services/mrx-autosave/mrx-autosave.service.mjs +43 -0
- package/esm2022/lib/services/mrx-form-validator/mrx-form-validator.mjs +283 -0
- package/{esm2020 → esm2022}/lib/services/save-store/constants/constants.mjs +1 -1
- package/{esm2020 → esm2022}/lib/services/save-store/models/save-store.model.mjs +1 -1
- package/{esm2020 → esm2022}/lib/services/save-store/save-store.module.mjs +29 -29
- package/{esm2020 → esm2022}/lib/services/save-store/store/actions.mjs +22 -22
- package/esm2022/lib/services/save-store/store/effect.mjs +61 -0
- package/esm2022/lib/services/save-store/store/reducer.mjs +96 -0
- package/{esm2020 → esm2022}/lib/services/save-store/store/selectors.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/save-store/store/state.mjs +3 -3
- package/{esm2020 → esm2022}/myrta-ui.mjs +4 -4
- package/esm2022/public-api.mjs +176 -0
- package/fesm2022/myrta-ui.mjs +15470 -0
- package/fesm2022/myrta-ui.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/components/alert/alert.component.d.ts +17 -17
- package/lib/components/alert/alert.enum.d.ts +13 -13
- package/lib/components/alert/alert.module.d.ts +8 -8
- package/lib/components/badges/badge.enum.d.ts +38 -38
- package/lib/components/badges/badges.module.d.ts +9 -9
- package/lib/components/badges/components/badge/badge.component.d.ts +21 -21
- package/lib/components/badges/components/badge-group/badge-group.component.d.ts +5 -5
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +11 -11
- package/lib/components/breadcrumbs/breadcrumbs.enum.d.ts +11 -11
- package/lib/components/breadcrumbs/breadcrumbs.module.d.ts +8 -8
- package/lib/components/button/button.component.d.ts +31 -31
- package/lib/components/button/button.enum.d.ts +27 -29
- package/lib/components/button/button.module.d.ts +10 -10
- package/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.d.ts +13 -13
- package/lib/components/cdk-tooltip/cdk-tooltip.directive.d.ts +24 -24
- package/lib/components/cdk-tooltip/cdk-tooltip.module.d.ts +10 -10
- package/lib/components/cdk-tooltip/constants/index.d.ts +7 -7
- package/lib/components/cdk-tooltip/models/tooltip-data.d.ts +6 -6
- package/lib/components/chars-left/chars-left.component.d.ts +9 -10
- package/lib/components/chars-left/chars-left.module.d.ts +8 -8
- package/lib/components/dropdown/directives/hide-after-click.directive.d.ts +9 -9
- package/lib/components/dropdown/dropdown.component.d.ts +26 -26
- package/lib/components/dropdown/dropdown.module.d.ts +10 -10
- package/lib/components/error-message/error-message.component.d.ts +10 -10
- package/lib/components/error-message/error-message.module.d.ts +8 -8
- package/lib/components/form/checkbox/checkbox.component.d.ts +48 -46
- package/lib/components/form/checkbox/checkbox.enum.d.ts +14 -10
- package/lib/components/form/checkbox/checkbox.module.d.ts +11 -11
- package/lib/components/form/checkbox-group/checkbox-group.component.d.ts +54 -56
- package/lib/components/form/checkbox-group/checkbox-group.module.d.ts +16 -16
- package/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.d.ts +19 -19
- package/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.d.ts +26 -29
- package/lib/components/form/checkbox-group/helpers/change-group-value.d.ts +3 -3
- package/lib/components/form/checkbox-group/helpers/change-item-value.d.ts +3 -3
- package/lib/components/form/checkbox-group/helpers/filter-search-group.d.ts +2 -2
- package/lib/components/form/checkbox-group/helpers/get-checked-items.d.ts +2 -2
- package/lib/components/form/checkbox-group/helpers/get-item-by-id.d.ts +2 -2
- package/lib/components/form/checkbox-group/helpers/get-sorted-list.d.ts +2 -2
- package/lib/components/form/checkbox-group/models/checkbox-group.model.d.ts +15 -15
- package/lib/components/form/editor/config/default-inline-style.d.ts +11 -11
- package/lib/components/form/editor/config/index.d.ts +1 -1
- package/lib/components/form/editor/config/popups-toolbar.d.ts +15 -15
- package/lib/components/form/editor/config/toolbar.d.ts +2 -2
- package/lib/components/form/editor/editor.component.d.ts +65 -57
- package/lib/components/form/editor/editor.enum.d.ts +5 -5
- package/lib/components/form/editor/editor.module.d.ts +14 -14
- package/lib/components/form/editor/models/toolbar.model.d.ts +6 -6
- package/lib/components/form/editor/modules/change-icon-module.d.ts +1 -1
- package/lib/components/form/input-date-time/constants/value-models.d.ts +3 -3
- package/lib/components/form/input-date-time/enum/timezone.d.ts +6 -6
- package/lib/components/form/input-date-time/helpers/clean-date.d.ts +1 -1
- package/lib/components/form/input-date-time/helpers/cursor-position.d.ts +1 -1
- package/lib/components/form/input-date-time/helpers/formatting-from-models.d.ts +3 -3
- package/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.d.ts +2 -2
- package/lib/components/form/input-date-time/helpers/validate-value-models.d.ts +19 -19
- package/lib/components/form/input-date-time/helpers/value-parser.d.ts +4 -4
- package/lib/components/form/input-date-time/input-date-time.component.d.ts +72 -76
- package/lib/components/form/input-date-time/input-date-time.enum.d.ts +21 -21
- package/lib/components/form/input-date-time/input-date-time.module.d.ts +13 -13
- package/lib/components/form/input-datepicker/constants/value-models.d.ts +3 -3
- package/lib/components/form/input-datepicker/helpers/clean-date.d.ts +1 -1
- package/lib/components/form/input-datepicker/helpers/cursor-position.d.ts +1 -1
- package/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.d.ts +3 -3
- package/lib/components/form/input-datepicker/helpers/get-date-object.d.ts +2 -2
- package/lib/components/form/input-datepicker/helpers/validate-value-models.d.ts +20 -20
- package/lib/components/form/input-datepicker/helpers/value-parser.d.ts +3 -3
- package/lib/components/form/input-datepicker/input-datepicker.component.d.ts +69 -70
- package/lib/components/form/input-datepicker/input-datepicker.enum.d.ts +12 -12
- package/lib/components/form/input-datepicker/input-datepicker.module.d.ts +13 -13
- package/lib/components/form/input-file/enums/error-messages.enum.d.ts +6 -6
- package/lib/components/form/input-file/input-file.component.d.ts +74 -72
- package/lib/components/form/input-file/input-file.enum.d.ts +7 -7
- package/lib/components/form/input-file/input-file.module.d.ts +13 -13
- package/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.d.ts +43 -39
- package/lib/components/form/input-file-image/input-file-image.component.d.ts +57 -61
- package/lib/components/form/input-file-image/input-file-image.enum.d.ts +8 -8
- package/lib/components/form/input-file-image/input-file-image.module.d.ts +15 -16
- package/lib/components/form/input-number/input-number.component.d.ts +64 -69
- package/lib/components/form/input-number/input-number.enum.d.ts +12 -12
- package/lib/components/form/input-number/input-number.module.d.ts +13 -13
- package/lib/components/form/input-opt/components/input-opt/input-opt.component.d.ts +77 -77
- package/lib/components/form/input-opt/components/input-opt/input-opt.enum.d.ts +7 -7
- package/lib/components/form/input-opt/directives/opt-pattern.directive.d.ts +8 -8
- package/lib/components/form/input-opt/input-opt.module.d.ts +11 -11
- package/lib/components/form/input-opt/models/input-opt.model.d.ts +26 -26
- package/lib/components/form/input-opt/services/input-opt.service.d.ts +11 -11
- package/lib/components/form/input-password/input-password.component.d.ts +38 -43
- package/lib/components/form/input-password/input-password.enum.d.ts +7 -11
- package/lib/components/form/input-password/input-password.module.d.ts +11 -13
- package/lib/components/form/input-phone/data/country-code.d.ts +6 -6
- package/lib/components/form/input-phone/directives/native-element-injector.directive.d.ts +11 -11
- package/lib/components/form/input-phone/enums/country-iso.enum.d.ts +245 -245
- package/lib/components/form/input-phone/enums/input-phone.enum.d.ts +11 -11
- package/lib/components/form/input-phone/enums/mask.enum.d.ts +8 -8
- package/lib/components/form/input-phone/enums/phone-number-format.enum.d.ts +4 -4
- package/lib/components/form/input-phone/enums/search-country-field.enum.d.ts +6 -6
- package/lib/components/form/input-phone/input-phone.component.d.ts +132 -132
- package/lib/components/form/input-phone/input-phone.module.d.ts +14 -14
- package/lib/components/form/input-phone/input-phone.validator.d.ts +5 -5
- package/lib/components/form/input-phone/interfaces/change-data.d.ts +9 -9
- package/lib/components/form/input-phone/models/country.model.d.ts +13 -13
- package/lib/components/form/input-search/input-search.component.d.ts +48 -52
- package/lib/components/form/input-search/input-search.enum.d.ts +6 -11
- package/lib/components/form/input-search/input-search.module.d.ts +12 -13
- package/lib/components/form/input-select/input-select.component.d.ts +94 -86
- package/lib/components/form/input-select/input-select.enum.d.ts +10 -10
- package/lib/components/form/input-select/input-select.module.d.ts +14 -14
- package/lib/components/form/input-tel/assets/base64.d.ts +3 -3
- package/lib/components/form/input-tel/data/all-countries.d.ts +1 -1
- package/lib/components/form/input-tel/data/country-iso.enum.d.ts +245 -245
- package/lib/components/form/input-tel/data/phone-number-format.enum.d.ts +5 -5
- package/lib/components/form/input-tel/data/search-country-field.enum.d.ts +6 -6
- package/lib/components/form/input-tel/directives/input-tel.directive.d.ts +21 -21
- package/lib/components/form/input-tel/enums/input-phone.enum.d.ts +11 -11
- package/lib/components/form/input-tel/input-tel.component.d.ts +89 -89
- package/lib/components/form/input-tel/input-tel.module.d.ts +13 -14
- package/lib/components/form/input-tel/models/country.model.d.ts +18 -18
- package/lib/components/form/input-text/input-text.component.d.ts +54 -57
- package/lib/components/form/input-text/input-text.enum.d.ts +19 -19
- package/lib/components/form/input-text/input-text.module.d.ts +14 -14
- package/lib/components/form/input-textarea/input-textarea.component.d.ts +54 -49
- package/lib/components/form/input-textarea/input-textarea.enum.d.ts +11 -11
- package/lib/components/form/input-textarea/input-textarea.module.d.ts +14 -14
- package/lib/components/form/input-timepicker/constants/value-models.d.ts +2 -2
- package/lib/components/form/input-timepicker/helpers/clean-date.d.ts +1 -1
- package/lib/components/form/input-timepicker/helpers/cursor-position.d.ts +1 -1
- package/lib/components/form/input-timepicker/helpers/get-date-dayjs-object.d.ts +3 -3
- package/lib/components/form/input-timepicker/helpers/get-date-object.d.ts +2 -2
- package/lib/components/form/input-timepicker/helpers/validate-value-models.d.ts +10 -10
- package/lib/components/form/input-timepicker/helpers/value-parser.d.ts +2 -2
- package/lib/components/form/input-timepicker/input-timepicker.component.d.ts +60 -60
- package/lib/components/form/input-timepicker/input-timepicker.enum.d.ts +11 -11
- package/lib/components/form/input-timepicker/input-timepicker.module.d.ts +13 -13
- package/lib/components/form/radio/radio.component.d.ts +29 -29
- package/lib/components/form/radio/radio.enum.d.ts +4 -4
- package/lib/components/form/radio/radio.module.d.ts +9 -9
- package/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.d.ts +18 -20
- package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts +26 -28
- package/lib/components/form/radio-group/helpers/filter-search-group.d.ts +2 -2
- package/lib/components/form/radio-group/helpers/get-item-by-id.d.ts +2 -2
- package/lib/components/form/radio-group/helpers/move-selected-to-first.d.ts +2 -2
- package/lib/components/form/radio-group/models/radio-group.model.d.ts +8 -12
- package/lib/components/form/radio-group/radio-group.component.d.ts +57 -60
- package/lib/components/form/radio-group/radio-group.module.d.ts +15 -16
- package/lib/components/form/rating/rating.component.d.ts +51 -51
- package/lib/components/form/rating/rating.enum.d.ts +27 -27
- package/lib/components/form/rating/rating.module.d.ts +9 -9
- package/lib/components/form/switch/switch.component.d.ts +32 -32
- package/lib/components/form/switch/switch.enum.d.ts +15 -15
- package/lib/components/form/switch/switch.module.d.ts +10 -10
- package/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.d.ts +20 -17
- package/lib/components/gallery/components/gallery-item/gallery-item.component.d.ts +38 -38
- package/lib/components/gallery/constants/custom-buttons-default.d.ts +3 -3
- package/lib/components/gallery/constants/thumbs-config-default.d.ts +2 -2
- package/lib/components/gallery/gallery.component.d.ts +38 -38
- package/lib/components/gallery/gallery.module.d.ts +16 -16
- package/lib/components/gallery/models/gallery-item.model.d.ts +24 -24
- package/lib/components/gallery/services/gallery.service.d.ts +14 -14
- package/lib/components/hint-error-message/hint-error-message.component.d.ts +21 -21
- package/lib/components/hint-error-message/hint-error-message.module.d.ts +8 -8
- package/lib/components/icon-button/icon-button.component.d.ts +19 -19
- package/lib/components/icon-button/icon-button.enum.d.ts +15 -15
- package/lib/components/icon-button/icon-button.module.d.ts +9 -9
- package/lib/components/label/label.component.d.ts +44 -44
- package/lib/components/label/label.module.d.ts +14 -14
- package/lib/components/link/link.component.d.ts +18 -18
- package/lib/components/link/link.enum.d.ts +19 -19
- package/lib/components/link/link.module.d.ts +8 -8
- package/lib/components/loader/loader.component.d.ts +10 -10
- package/lib/components/loader/loader.enum.d.ts +19 -19
- package/lib/components/loader/loader.module.d.ts +8 -8
- package/lib/components/modal/modal.component.d.ts +36 -37
- package/lib/components/modal/modal.emun.d.ts +20 -20
- package/lib/components/modal/modal.module.d.ts +9 -9
- package/lib/components/pages-nav/pages-nav.component.d.ts +12 -12
- package/lib/components/pages-nav/pages-nav.enum.d.ts +5 -5
- package/lib/components/pages-nav/pages-nav.module.d.ts +8 -8
- package/lib/components/paginator/paginator.component.d.ts +29 -31
- package/lib/components/paginator/paginator.enum.d.ts +10 -10
- package/lib/components/paginator/paginator.module.d.ts +10 -10
- package/lib/components/progress/progress.component.d.ts +10 -10
- package/lib/components/progress/progress.enum.d.ts +7 -7
- package/lib/components/progress/progress.module.d.ts +8 -8
- package/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.d.ts +8 -8
- package/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.d.ts +8 -8
- package/lib/components/save-state/components/save-state-editor/save-state-editor.component.d.ts +8 -8
- package/lib/components/save-state/components/save-state-input/save-state-input.component.d.ts +8 -8
- package/lib/components/save-state/components/save-state-switch/save-state-switch.component.d.ts +8 -8
- package/lib/components/save-state/save-state.component.d.ts +13 -13
- package/lib/components/save-state/save-state.enum.d.ts +1 -1
- package/lib/components/save-state/save-state.module.d.ts +13 -13
- package/lib/components/stepper/stepper.component.d.ts +17 -17
- package/lib/components/stepper/stepper.enum.d.ts +5 -5
- package/lib/components/stepper/stepper.module.d.ts +9 -9
- package/lib/components/table/components/column/column.component.d.ts +14 -14
- package/lib/components/table/default/default-pager-settings.d.ts +2 -2
- package/lib/components/table/models/data-state-change.event.d.ts +15 -15
- package/lib/components/table/models/index.d.ts +3 -3
- package/lib/components/table/models/pager-settings.d.ts +22 -22
- package/lib/components/table/table.component.d.ts +55 -55
- package/lib/components/table/table.enum.d.ts +32 -32
- package/lib/components/table/table.module.d.ts +14 -14
- package/lib/components/tabs/tab/tab.component.d.ts +13 -13
- package/lib/components/tabs/tabs-group/tabs-group.component.d.ts +11 -11
- package/lib/components/tabs/tabs.enum.d.ts +11 -11
- package/lib/components/tabs/tabs.module.d.ts +9 -9
- package/lib/components/tooltip/services/tooltip.service.d.ts +18 -18
- package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.d.ts +15 -15
- package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.enum.d.ts +10 -10
- package/lib/components/tooltip/tooltip.component.d.ts +18 -18
- package/lib/components/tooltip/tooltip.enum.d.ts +4 -4
- package/lib/components/tooltip/tooltip.module.d.ts +10 -10
- package/lib/components/truncate-text/directives/truncate-text.directive.d.ts +37 -37
- package/lib/components/truncate-text/truncate-text.component.d.ts +12 -12
- package/lib/components/truncate-text/truncate-text.enum.d.ts +2 -2
- package/lib/components/truncate-text/truncate-text.module.d.ts +10 -10
- package/lib/components/warning-message/warning-message.component.d.ts +9 -9
- package/lib/components/warning-message/warning-message.module.d.ts +8 -8
- package/lib/components/wrappers/content-wrapper/content-wrapper.component.d.ts +10 -10
- package/lib/components/wrappers/content-wrapper/content-wrapper.enum.d.ts +5 -5
- package/lib/components/wrappers/content-wrapper/content-wrapper.module.d.ts +8 -8
- package/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.d.ts +6 -6
- package/lib/components/wrappers/controls-wrapper/controls-wrapper.component.d.ts +10 -10
- package/lib/components/wrappers/controls-wrapper/controls-wrapper.enum.d.ts +6 -6
- package/lib/components/wrappers/controls-wrapper/controls-wrapper.module.d.ts +9 -9
- package/lib/components/wrappers/widget-wrapper/widget-wrapper.component.d.ts +26 -26
- package/lib/components/wrappers/widget-wrapper/widget-wrapper.enum.d.ts +15 -15
- package/lib/components/wrappers/widget-wrapper/widget-wrapper.module.d.ts +8 -8
- package/lib/directives/autosize/autosize.directive.d.ts +16 -16
- package/lib/directives/autosize/autosize.module.d.ts +8 -8
- package/lib/directives/truncate/truncate.directive.d.ts +12 -12
- package/lib/directives/truncate/truncate.module.d.ts +8 -8
- package/lib/enums/typed.input.state.d.ts +6 -6
- package/lib/helpers/extension/input-file.extension.d.ts +4 -4
- package/lib/helpers/formatting-date.d.ts +9 -9
- package/lib/helpers/formatting-dates-from-array.d.ts +2 -2
- package/lib/helpers/formatting-iso-to-string.d.ts +2 -2
- package/lib/helpers/index.d.ts +7 -7
- package/lib/helpers/number-format.d.ts +6 -6
- package/lib/helpers/string-hash-code.d.ts +2 -2
- package/lib/helpers/word-form.d.ts +7 -7
- package/lib/models/index.d.ts +2 -2
- package/lib/models/input-file/input-file.model.d.ts +23 -22
- package/lib/models/typed-input-model.d.ts +16 -16
- package/lib/pipes/currency/currency.module.d.ts +8 -8
- package/lib/pipes/currency/currency.pipe.d.ts +7 -7
- package/lib/pipes/date/date-format.module.d.ts +9 -9
- package/lib/pipes/date/date-format.pipe.d.ts +9 -9
- package/lib/pipes/date/date-time-format.pipe.d.ts +9 -9
- package/lib/pipes/date/enums/timezone.d.ts +8 -8
- package/lib/pipes/date/helpers/change-timezone.d.ts +2 -2
- package/lib/pipes/phone/phone-format.module.d.ts +8 -8
- package/lib/pipes/phone/phone-format.pipe.d.ts +8 -8
- package/lib/pipes/safe/safe.module.d.ts +8 -8
- package/lib/pipes/safe/safe.pipe.d.ts +10 -10
- package/lib/pipes/truncate/truncate.module.d.ts +8 -8
- package/lib/pipes/truncate/truncate.pipe.d.ts +7 -7
- package/lib/services/file-upload/file-upload.service.d.ts +12 -12
- package/lib/services/index.d.ts +10 -7
- package/lib/services/modal-service/components/alert-modal/alert-modal.component.d.ts +19 -0
- package/lib/services/modal-service/components/confirm-modal/confirm-modal.component.d.ts +20 -0
- package/lib/services/modal-service/helpers/index.d.ts +4 -0
- package/lib/services/modal-service/helpers/modal-default-config.d.ts +3 -0
- package/lib/services/modal-service/helpers/modal-ref.d.ts +11 -0
- package/lib/services/modal-service/helpers/modal-tokens.d.ts +3 -0
- package/lib/services/modal-service/helpers/modal.component.d.ts +3 -0
- package/lib/services/modal-service/modal-service.module.d.ts +9 -0
- package/lib/services/modal-service/modal-service.service.d.ts +20 -0
- package/lib/services/modal-service/models/modal-config.model.d.ts +14 -0
- package/lib/services/mrx-autosave/mrx-autosave.service.d.ts +19 -19
- package/lib/services/mrx-form-validator/mrx-form-validator.d.ts +51 -23
- package/lib/services/save-store/constants/constants.d.ts +1 -1
- package/lib/services/save-store/models/save-store.model.d.ts +4 -4
- package/lib/services/save-store/save-store.module.d.ts +9 -9
- package/lib/services/save-store/store/actions.d.ts +21 -21
- package/lib/services/save-store/store/effect.d.ts +10 -16
- package/lib/services/save-store/store/reducer.d.ts +3 -3
- package/lib/services/save-store/store/selectors.d.ts +3 -3
- package/lib/services/save-store/store/state.d.ts +11 -11
- package/package.json +27 -37
- package/public-api.d.ts +162 -176
- package/esm2020/lib/components/alert/alert.component.mjs +0 -45
- package/esm2020/lib/components/badges/components/badge/badge.component.mjs +0 -61
- package/esm2020/lib/components/breadcrumbs/breadcrumbs.component.mjs +0 -29
- package/esm2020/lib/components/button/button.component.mjs +0 -102
- package/esm2020/lib/components/button/button.enum.mjs +0 -29
- package/esm2020/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.mjs +0 -28
- package/esm2020/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +0 -95
- package/esm2020/lib/components/chars-left/chars-left.component.mjs +0 -29
- package/esm2020/lib/components/context-menu/components/context-menu/context-menu.component.mjs +0 -99
- package/esm2020/lib/components/context-menu/components/context-menu-content/context-menu-content.component.mjs +0 -324
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +0 -51
- package/esm2020/lib/components/context-menu/context-menu.options.mjs +0 -2
- package/esm2020/lib/components/context-menu/context-menu.tokens.mjs +0 -3
- package/esm2020/lib/components/context-menu/directives/context-menu/context-menu.directive.mjs +0 -36
- package/esm2020/lib/components/context-menu/directives/context-menu-item/context-menu-item.directive.mjs +0 -61
- package/esm2020/lib/components/context-menu/models/context-menu.enum.mjs +0 -2
- package/esm2020/lib/components/context-menu/services/context-menu/context-menu-fixed.service.mjs +0 -103
- package/esm2020/lib/components/context-menu/services/context-menu/context-menu.service.mjs +0 -223
- package/esm2020/lib/components/dropdown/directives/hide-after-click.directive.mjs +0 -23
- package/esm2020/lib/components/dropdown/dropdown.component.mjs +0 -104
- package/esm2020/lib/components/error-message/error-message.component.mjs +0 -34
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -143
- package/esm2020/lib/components/form/checkbox/checkbox.enum.mjs +0 -2
- package/esm2020/lib/components/form/checkbox-group/checkbox-group.component.mjs +0 -184
- package/esm2020/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +0 -112
- package/esm2020/lib/components/form/checkbox-group/helpers/change-group-value.mjs +0 -20
- package/esm2020/lib/components/form/checkbox-group/helpers/change-item-value.mjs +0 -15
- package/esm2020/lib/components/form/checkbox-group/helpers/filter-search-group.mjs +0 -27
- package/esm2020/lib/components/form/checkbox-group/helpers/get-checked-items.mjs +0 -20
- package/esm2020/lib/components/form/checkbox-group/helpers/get-sorted-list.mjs +0 -50
- package/esm2020/lib/components/form/document-editor/components/document-editor-preview-modal/document-editor-preview-modal.component.mjs +0 -33
- package/esm2020/lib/components/form/document-editor/document-editor.component.mjs +0 -105
- package/esm2020/lib/components/form/document-editor/document-editor.module.mjs +0 -42
- package/esm2020/lib/components/form/document-editor/helpers/transform-sysname.mjs +0 -41
- package/esm2020/lib/components/form/document-editor/models/document-editor-short-codes.enum.mjs +0 -2
- package/esm2020/lib/components/form/editor/editor.component.mjs +0 -264
- package/esm2020/lib/components/form/editor/editor.module.mjs +0 -45
- package/esm2020/lib/components/form/editor/modules/change-icon-module.mjs +0 -92
- package/esm2020/lib/components/form/input-date-time/helpers/cursor-position.mjs +0 -23
- package/esm2020/lib/components/form/input-date-time/helpers/formatting-from-models.mjs +0 -10
- package/esm2020/lib/components/form/input-date-time/input-date-time.component.mjs +0 -413
- package/esm2020/lib/components/form/input-date-time/input-date-time.module.mjs +0 -46
- package/esm2020/lib/components/form/input-datepicker/helpers/cursor-position.mjs +0 -23
- package/esm2020/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.mjs +0 -10
- package/esm2020/lib/components/form/input-datepicker/helpers/get-date-object.mjs +0 -10
- package/esm2020/lib/components/form/input-datepicker/input-datepicker.component.mjs +0 -359
- package/esm2020/lib/components/form/input-datepicker/input-datepicker.module.mjs +0 -46
- package/esm2020/lib/components/form/input-file/input-file.component.mjs +0 -363
- package/esm2020/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +0 -66
- package/esm2020/lib/components/form/input-file-image/input-file-image.component.mjs +0 -350
- package/esm2020/lib/components/form/input-file-image/input-file-image.module.mjs +0 -58
- package/esm2020/lib/components/form/input-number/input-number.component.mjs +0 -265
- package/esm2020/lib/components/form/input-number/input-number.module.mjs +0 -55
- package/esm2020/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +0 -361
- package/esm2020/lib/components/form/input-opt/directives/opt-pattern.directive.mjs +0 -44
- package/esm2020/lib/components/form/input-password/input-password.component.mjs +0 -133
- package/esm2020/lib/components/form/input-password/input-password.module.mjs +0 -44
- package/esm2020/lib/components/form/input-phone/data/country-code.mjs +0 -1333
- package/esm2020/lib/components/form/input-phone/directives/native-element-injector.directive.mjs +0 -33
- package/esm2020/lib/components/form/input-phone/input-phone.component.mjs +0 -671
- package/esm2020/lib/components/form/input-phone/input-phone.module.mjs +0 -50
- package/esm2020/lib/components/form/input-phone/input-phone.validator.mjs +0 -61
- package/esm2020/lib/components/form/input-search/input-search.component.mjs +0 -174
- package/esm2020/lib/components/form/input-search/input-search.module.mjs +0 -44
- package/esm2020/lib/components/form/input-select/input-select.component.mjs +0 -249
- package/esm2020/lib/components/form/input-tel/directives/input-tel.directive.mjs +0 -62
- package/esm2020/lib/components/form/input-tel/input-tel.component.mjs +0 -389
- package/esm2020/lib/components/form/input-tel/input-tel.module.mjs +0 -47
- package/esm2020/lib/components/form/input-text/input-text.component.mjs +0 -194
- package/esm2020/lib/components/form/input-text/input-text.module.mjs +0 -49
- package/esm2020/lib/components/form/input-textarea/input-textarea.component.mjs +0 -174
- package/esm2020/lib/components/form/input-textarea/input-textarea.module.mjs +0 -48
- package/esm2020/lib/components/form/input-timepicker/helpers/cursor-position.mjs +0 -14
- package/esm2020/lib/components/form/input-timepicker/input-timepicker.component.mjs +0 -290
- package/esm2020/lib/components/form/input-timepicker/input-timepicker.module.mjs +0 -46
- package/esm2020/lib/components/form/radio/radio.component.mjs +0 -91
- package/esm2020/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +0 -49
- package/esm2020/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +0 -69
- package/esm2020/lib/components/form/radio-group/helpers/filter-search-group.mjs +0 -27
- package/esm2020/lib/components/form/radio-group/helpers/move-selected-to-first.mjs +0 -27
- package/esm2020/lib/components/form/radio-group/radio-group.component.mjs +0 -185
- package/esm2020/lib/components/form/radio-group/radio-group.module.mjs +0 -47
- package/esm2020/lib/components/form/rating/rating.component.mjs +0 -217
- package/esm2020/lib/components/form/switch/switch.component.mjs +0 -97
- package/esm2020/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +0 -22
- package/esm2020/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +0 -102
- package/esm2020/lib/components/gallery/gallery.component.mjs +0 -197
- package/esm2020/lib/components/gallery/services/gallery.service.mjs +0 -31
- package/esm2020/lib/components/hint-error-message/hint-error-message.component.mjs +0 -123
- package/esm2020/lib/components/icon-button/icon-button.component.mjs +0 -51
- package/esm2020/lib/components/label/label.component.mjs +0 -141
- package/esm2020/lib/components/link/link.component.mjs +0 -50
- package/esm2020/lib/components/loader/loader.component.mjs +0 -26
- package/esm2020/lib/components/modal/modal.component.mjs +0 -146
- package/esm2020/lib/components/pages-nav/pages-nav.component.mjs +0 -33
- package/esm2020/lib/components/paginator/paginator.component.mjs +0 -152
- package/esm2020/lib/components/paginator/paginator.module.mjs +0 -31
- package/esm2020/lib/components/progress/progress.component.mjs +0 -26
- package/esm2020/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.mjs +0 -15
- package/esm2020/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.mjs +0 -15
- package/esm2020/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +0 -15
- package/esm2020/lib/components/save-state/components/save-state-input/save-state-input.component.mjs +0 -15
- package/esm2020/lib/components/save-state/components/save-state-switch/save-state-switch.component.mjs +0 -15
- package/esm2020/lib/components/save-state/save-state.component.mjs +0 -39
- package/esm2020/lib/components/stepper/stepper.component.mjs +0 -54
- package/esm2020/lib/components/table/components/column/column.component.mjs +0 -40
- package/esm2020/lib/components/table/table.component.mjs +0 -274
- package/esm2020/lib/components/tabs/tab/tab.component.mjs +0 -31
- package/esm2020/lib/components/tabs/tabs-group/tabs-group.component.mjs +0 -29
- package/esm2020/lib/components/tooltip/services/tooltip.service.mjs +0 -67
- package/esm2020/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +0 -38
- package/esm2020/lib/components/tooltip/tooltip.component.mjs +0 -60
- package/esm2020/lib/components/truncate-text/truncate-text.component.mjs +0 -30
- package/esm2020/lib/components/warning-message/warning-message.component.mjs +0 -31
- package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +0 -26
- package/esm2020/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.mjs +0 -17
- package/esm2020/lib/components/wrappers/controls-wrapper/controls-wrapper.component.mjs +0 -24
- package/esm2020/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +0 -96
- package/esm2020/lib/directives/autosize/autosize.directive.mjs +0 -55
- package/esm2020/lib/directives/truncate/truncate.directive.mjs +0 -32
- package/esm2020/lib/helpers/extension/input-file.extension.mjs +0 -39
- package/esm2020/lib/helpers/formatting-date.mjs +0 -51
- package/esm2020/lib/helpers/string-hash-code.mjs +0 -17
- package/esm2020/lib/models/input-file/input-file.model.mjs +0 -2
- package/esm2020/lib/pipes/currency/currency.pipe.mjs +0 -22
- package/esm2020/lib/pipes/date/date-format.pipe.mjs +0 -21
- package/esm2020/lib/pipes/date/date-time-format.pipe.mjs +0 -21
- package/esm2020/lib/pipes/phone/phone-format.pipe.mjs +0 -23
- package/esm2020/lib/pipes/safe/safe.pipe.mjs +0 -20
- package/esm2020/lib/pipes/truncate/truncate.pipe.mjs +0 -23
- package/esm2020/lib/services/file-upload/file-upload.service.mjs +0 -26
- package/esm2020/lib/services/index.mjs +0 -8
- package/esm2020/lib/services/mrx-autosave/mrx-autosave.service.mjs +0 -44
- package/esm2020/lib/services/mrx-form-validator/constants/invalid-messages.mjs +0 -10
- package/esm2020/lib/services/mrx-form-validator/helpers/get-error-message.helper.mjs +0 -10
- package/esm2020/lib/services/mrx-form-validator/helpers/get-sorting-validations.helper.mjs +0 -28
- package/esm2020/lib/services/mrx-form-validator/models/index.mjs +0 -4
- package/esm2020/lib/services/mrx-form-validator/models/validations-options.model.mjs +0 -2
- package/esm2020/lib/services/mrx-form-validator/models/validations-settings.model.mjs +0 -2
- package/esm2020/lib/services/mrx-form-validator/models/validations-types.model.mjs +0 -22
- package/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +0 -207
- package/esm2020/lib/services/mrx-form-validator/validations/callback.validation.mjs +0 -15
- package/esm2020/lib/services/mrx-form-validator/validations/email.validation.mjs +0 -11
- package/esm2020/lib/services/mrx-form-validator/validations/max-length.validation.mjs +0 -10
- package/esm2020/lib/services/mrx-form-validator/validations/max-value.validation.mjs +0 -10
- package/esm2020/lib/services/mrx-form-validator/validations/min-length.validation.mjs +0 -11
- package/esm2020/lib/services/mrx-form-validator/validations/min-value.validation.mjs +0 -10
- package/esm2020/lib/services/mrx-form-validator/validations/pattern.validation.mjs +0 -11
- package/esm2020/lib/services/mrx-form-validator/validations/required.validation.mjs +0 -22
- package/esm2020/lib/services/save-store/store/effect.mjs +0 -31
- package/esm2020/lib/services/save-store/store/reducer.mjs +0 -79
- package/esm2020/public-api.mjs +0 -186
- package/fesm2015/myrta-ui.mjs +0 -16283
- package/fesm2015/myrta-ui.mjs.map +0 -1
- package/fesm2020/myrta-ui.mjs +0 -16319
- package/fesm2020/myrta-ui.mjs.map +0 -1
- package/lib/components/context-menu/components/context-menu/context-menu.component.d.ts +0 -34
- package/lib/components/context-menu/components/context-menu-content/context-menu-content.component.d.ts +0 -62
- package/lib/components/context-menu/context-menu.module.d.ts +0 -15
- package/lib/components/context-menu/context-menu.options.d.ts +0 -4
- package/lib/components/context-menu/context-menu.tokens.d.ts +0 -2
- package/lib/components/context-menu/directives/context-menu/context-menu.directive.d.ts +0 -12
- package/lib/components/context-menu/directives/context-menu-item/context-menu-item.directive.d.ts +0 -30
- package/lib/components/context-menu/models/context-menu.enum.d.ts +0 -11
- package/lib/components/context-menu/services/context-menu/context-menu-fixed.service.d.ts +0 -11
- package/lib/components/context-menu/services/context-menu/context-menu.service.d.ts +0 -56
- package/lib/components/form/document-editor/components/document-editor-preview-modal/document-editor-preview-modal.component.d.ts +0 -22
- package/lib/components/form/document-editor/document-editor.component.d.ts +0 -37
- package/lib/components/form/document-editor/document-editor.module.d.ts +0 -13
- package/lib/components/form/document-editor/helpers/transform-sysname.d.ts +0 -5
- package/lib/components/form/document-editor/models/document-editor-short-codes.enum.d.ts +0 -6
- package/lib/services/mrx-form-validator/constants/invalid-messages.d.ts +0 -9
- package/lib/services/mrx-form-validator/helpers/get-error-message.helper.d.ts +0 -3
- package/lib/services/mrx-form-validator/helpers/get-sorting-validations.helper.d.ts +0 -2
- package/lib/services/mrx-form-validator/models/index.d.ts +0 -3
- package/lib/services/mrx-form-validator/models/validations-options.model.d.ts +0 -28
- package/lib/services/mrx-form-validator/models/validations-settings.model.d.ts +0 -7
- package/lib/services/mrx-form-validator/models/validations-types.model.d.ts +0 -19
- package/lib/services/mrx-form-validator/validations/callback.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/email.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/max-length.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/max-value.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/min-length.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/min-value.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/pattern.validation.d.ts +0 -6
- package/lib/services/mrx-form-validator/validations/required.validation.d.ts +0 -6
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Directive, HostListener, Injector, Input } from '@angular/core';
|
|
2
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
-
import { TooltipContainerComponent, TOOLTIP_DATA } from './cdk-tooltip/tooltip-container.component';
|
|
4
|
-
import { positionStrategy } from './constants';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/cdk/overlay";
|
|
7
|
-
export class CdkTooltipDirective {
|
|
8
|
-
constructor(element, overlay, viewContainer) {
|
|
9
|
-
this.element = element;
|
|
10
|
-
this.overlay = overlay;
|
|
11
|
-
this.viewContainer = viewContainer;
|
|
12
|
-
this.tooltipActive = true;
|
|
13
|
-
this.autoCloseByScroll = false;
|
|
14
|
-
this.tooltipPosition = 'top';
|
|
15
|
-
this.tooltipMaxWidth = null;
|
|
16
|
-
this.overlayRef = null;
|
|
17
|
-
}
|
|
18
|
-
ngOnDestroy() {
|
|
19
|
-
this.overlayRef?.dispose();
|
|
20
|
-
}
|
|
21
|
-
attachTooltip() {
|
|
22
|
-
if (this.overlayRef === null) {
|
|
23
|
-
const positionStrategy = this.getPositionStrategy();
|
|
24
|
-
this.overlayRef = this.overlay.create({
|
|
25
|
-
positionStrategy,
|
|
26
|
-
scrollStrategy: this.overlay.scrollStrategies.close(),
|
|
27
|
-
hasBackdrop: false
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
const injector = Injector.create({
|
|
31
|
-
providers: [
|
|
32
|
-
{
|
|
33
|
-
provide: TOOLTIP_DATA,
|
|
34
|
-
useValue: {
|
|
35
|
-
value: this.mrxCdkTooltip,
|
|
36
|
-
maxWidth: this.tooltipMaxWidth
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
});
|
|
41
|
-
const component = new ComponentPortal(TooltipContainerComponent, this.viewContainer, injector);
|
|
42
|
-
this.overlayRef.attach(component);
|
|
43
|
-
}
|
|
44
|
-
getPositionStrategy() {
|
|
45
|
-
return this.overlay
|
|
46
|
-
.position()
|
|
47
|
-
.flexibleConnectedTo(this.element)
|
|
48
|
-
.withPositions(positionStrategy[this.tooltipPosition]);
|
|
49
|
-
}
|
|
50
|
-
showTooltip() {
|
|
51
|
-
if (this.mrxCdkTooltip === null || !this.tooltipActive) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (this.overlayRef?.hasAttached() === true) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
this.attachTooltip();
|
|
58
|
-
}
|
|
59
|
-
hideTooltip() {
|
|
60
|
-
if (this.overlayRef?.hasAttached() === true) {
|
|
61
|
-
this.overlayRef?.detach();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
CdkTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CdkTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i1.Overlay }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
66
|
-
CdkTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: CdkTooltipDirective, selector: "[mrxCdkTooltip]", inputs: { mrxCdkTooltip: "mrxCdkTooltip", tooltipActive: "tooltipActive", autoCloseByScroll: "autoCloseByScroll", tooltipPosition: "tooltipPosition", tooltipMaxWidth: "tooltipMaxWidth" }, host: { listeners: { "mouseenter": "showTooltip()", "focus": "showTooltip()", "mouseleave": "hideTooltip()", "blur": "hideTooltip()" } }, ngImport: i0 });
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CdkTooltipDirective, decorators: [{
|
|
68
|
-
type: Directive,
|
|
69
|
-
args: [{
|
|
70
|
-
selector: '[mrxCdkTooltip]',
|
|
71
|
-
}]
|
|
72
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }]; }, propDecorators: { mrxCdkTooltip: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], tooltipActive: [{
|
|
75
|
-
type: Input
|
|
76
|
-
}], autoCloseByScroll: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}], tooltipPosition: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], tooltipMaxWidth: [{
|
|
81
|
-
type: Input
|
|
82
|
-
}], showTooltip: [{
|
|
83
|
-
type: HostListener,
|
|
84
|
-
args: ['mouseenter']
|
|
85
|
-
}, {
|
|
86
|
-
type: HostListener,
|
|
87
|
-
args: ['focus']
|
|
88
|
-
}], hideTooltip: [{
|
|
89
|
-
type: HostListener,
|
|
90
|
-
args: ['mouseleave']
|
|
91
|
-
}, {
|
|
92
|
-
type: HostListener,
|
|
93
|
-
args: ['blur']
|
|
94
|
-
}] } });
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2RrLXRvb2x0aXAuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9jb21wb25lbnRzL2Nkay10b29sdGlwL2Nkay10b29sdGlwLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUErQixNQUFNLGVBQWUsQ0FBQztBQUVsSCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLHlCQUF5QixFQUFFLFlBQVksRUFBRSxNQUFNLDJDQUEyQyxDQUFDO0FBQ3BHLE9BQU8sRUFBaUMsZ0JBQWdCLEVBQUUsTUFBTSxhQUFh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ICAgICBzY3JvbGxTdHJhdGVneTogdGhpcy5vdmVybGF5LnNjcm9sbFN0cmF0ZWdpZXMuY2xvc2UoKSxcclxuICAgICAgICBoYXNCYWNrZHJvcDogZmFsc2VcclxuICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgY29uc3QgaW5qZWN0b3IgPSBJbmplY3Rvci5jcmVhdGUoe1xyXG4gICAgICBwcm92aWRlcnM6IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBwcm92aWRlOiBUT09MVElQX0RBVEEsXHJcbiAgICAgICAgICB1c2VWYWx1ZToge1xyXG4gICAgICAgICAgICB2YWx1ZTogdGhpcy5tcnhDZGtUb29sdGlwLFxyXG4gICAgICAgICAgICBtYXhXaWR0aDogdGhpcy50b29sdGlwTWF4V2lkdGhcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxcclxuICAgICAgXSxcclxuICAgIH0pO1xyXG4gICAgY29uc3QgY29tcG9uZW50ID0gbmV3IENvbXBvbmVudFBvcnRhbChUb29sdGlwQ29udGFpbmVyQ29tcG9uZW50LCB0aGlzLnZpZXdDb250YWluZXIsIGluamVjdG9yKTtcclxuICAgIHRoaXMub3ZlcmxheVJlZi5hdHRhY2goY29tcG9uZW50KTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgZ2V0UG9zaXRpb25TdHJhdGVneSgpOiBQb3NpdGlvblN0cmF0ZWd5IHtcclxuICAgIHJldHVybiB0aGlzLm92ZXJsYXlcclxuICAgICAgLnBvc2l0aW9uKClcclxuICAgICAgLmZsZXhpYmxlQ29ubmVjdGVkVG8odGhpcy5lbGVtZW50KVxyXG4gICAgICAud2l0aFBvc2l0aW9ucyhwb3NpdGlvblN0cmF0ZWd5W3RoaXMudG9vbHRpcFBvc2l0aW9uXSk7XHJcbiAgfVxyXG5cclxuICBASG9zdExpc3RlbmVyKCdtb3VzZWVudGVyJylcclxuICBASG9zdExpc3RlbmVyKCdmb2N1cycpXHJcbiAgc2hvd1Rvb2x0aXAoKTogdm9pZCB7XHJcbiAgICBpZiAodGhpcy5tcnhDZGtUb29sdGlwID09PSBudWxsIHx8ICF0aGlzLnRvb2x0aXBBY3RpdmUpIHtcclxuICAgICAgcmV0dXJuO1xyXG4gICAgfVxyXG4gICAgaWYgKHRoaXMub3ZlcmxheVJlZj8uaGFzQXR0YWNoZWQoKSA9PT0gdHJ1ZSkge1xyXG4gICAgICByZXR1cm47XHJcbiAgICB9XHJcblxyXG4gICAgdGhpcy5hdHRhY2hUb29sdGlwKCk7XHJcbiAgfVxyXG5cclxuICBASG9zdExpc3RlbmVyKCdtb3VzZWxlYXZlJylcclxuICBASG9zdExpc3RlbmVyKCdibHVyJylcclxuICBoaWRlVG9vbHRpcCgpOiB2b2lkIHtcclxuICAgIGlmICh0aGlzLm92ZXJsYXlSZWY/Lmhhc0F0dGFjaGVkKCkgPT09IHRydWUpIHtcclxuICAgICAgdGhpcy5vdmVybGF5UmVmPy5kZXRhY2goKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export class CharsLeftComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.maxlength = 0;
|
|
7
|
-
this.valueLength = 0;
|
|
8
|
-
this.value = '';
|
|
9
|
-
}
|
|
10
|
-
get getValueLength() {
|
|
11
|
-
return this.value ? this.value.length : this.valueLength;
|
|
12
|
-
}
|
|
13
|
-
get isInvalidValueLength() {
|
|
14
|
-
return this.maxlength < this.value?.length && this.maxlength > 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
CharsLeftComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CharsLeftComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
CharsLeftComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CharsLeftComponent, selector: "mrx-chars-left", inputs: { maxlength: "maxlength", valueLength: "valueLength", value: "value" }, ngImport: i0, template: "<div *ngIf=\"maxlength\" class=\"mrx-chars\" [class.-invalid]=\"isInvalidValueLength\">\r\n {{ getValueLength }}/{{ maxlength }}\r\n</div>\r\n", styles: [".mrx-chars.mrx-chars{position:absolute;bottom:var(--spacing-1);right:var(--spacing-1);color:var(--neutral-text-secondary);font-family:var(--body-extra-sm-font-family);font-size:var(--body-extra-sm-font-size);font-weight:var(--body-extra-sm-font-weight);line-height:var(--body-extra-sm-line-height);z-index:1}.mrx-chars.mrx-chars.-invalid{color:var(--system-text-negative, #8E2100)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CharsLeftComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: 'mrx-chars-left', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"maxlength\" class=\"mrx-chars\" [class.-invalid]=\"isInvalidValueLength\">\r\n {{ getValueLength }}/{{ maxlength }}\r\n</div>\r\n", styles: [".mrx-chars.mrx-chars{position:absolute;bottom:var(--spacing-1);right:var(--spacing-1);color:var(--neutral-text-secondary);font-family:var(--body-extra-sm-font-family);font-size:var(--body-extra-sm-font-size);font-weight:var(--body-extra-sm-font-weight);line-height:var(--body-extra-sm-line-height);z-index:1}.mrx-chars.mrx-chars.-invalid{color:var(--system-text-negative, #8E2100)}\n"] }]
|
|
22
|
-
}], propDecorators: { maxlength: [{
|
|
23
|
-
type: Input
|
|
24
|
-
}], valueLength: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], value: [{
|
|
27
|
-
type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A+IDBcclxuICB9XHJcbn1cclxuIiwiPGRpdiAqbmdJZj1cIm1heGxlbmd0aFwiIGNsYXNzPVwibXJ4LWNoYXJzXCIgW2NsYXNzLi1pbnZhbGlkXT1cImlzSW52YWxpZFZhbHVlTGVuZ3RoXCI+XHJcbiAge3sgZ2V0VmFsdWVMZW5ndGggfX0ve3sgbWF4bGVuZ3RoIH19XHJcbjwvZGl2PlxyXG4iXX0=
|
package/esm2020/lib/components/context-menu/components/context-menu/context-menu.component.mjs
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChildren, EventEmitter, Inject, Input, Optional, Output, ViewChild, ViewEncapsulation, } from '@angular/core';
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
|
-
import { first } from 'rxjs/operators';
|
|
4
|
-
import { ContextMenuItemDirective } from '../../directives/context-menu-item/context-menu-item.directive';
|
|
5
|
-
import { CONTEXT_MENU_OPTIONS } from '../../context-menu.tokens';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../services/context-menu/context-menu.service";
|
|
8
|
-
export class ContextMenuComponent {
|
|
9
|
-
constructor(contextMenuService, options) {
|
|
10
|
-
this.contextMenuService = contextMenuService;
|
|
11
|
-
this.options = options;
|
|
12
|
-
this.menuClass = '';
|
|
13
|
-
this.autoFocus = false;
|
|
14
|
-
this.useBootstrap4 = false;
|
|
15
|
-
this.disabled = false;
|
|
16
|
-
this.close = new EventEmitter();
|
|
17
|
-
this.open = new EventEmitter();
|
|
18
|
-
this.visibleMenuItems = [];
|
|
19
|
-
this.links = [];
|
|
20
|
-
this.subscription = new Subscription();
|
|
21
|
-
if (this.options) {
|
|
22
|
-
this.autoFocus = this.options.autoFocus || false;
|
|
23
|
-
this.useBootstrap4 = this.options.useBootstrap4 || false;
|
|
24
|
-
}
|
|
25
|
-
this.subscription.add(contextMenuService.show.subscribe((menuEvent) => {
|
|
26
|
-
this.onMenuEvent(menuEvent);
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
ngOnDestroy() {
|
|
33
|
-
this.subscription.unsubscribe();
|
|
34
|
-
}
|
|
35
|
-
onMenuEvent(menuEvent) {
|
|
36
|
-
if (this.disabled) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const { contextMenu, event, item } = menuEvent;
|
|
40
|
-
if (contextMenu && contextMenu !== this) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
this.event = event;
|
|
44
|
-
this.item = item;
|
|
45
|
-
this.setVisibleMenuItems();
|
|
46
|
-
this.contextMenuService.openContextMenu({
|
|
47
|
-
...menuEvent,
|
|
48
|
-
menuItems: this.visibleMenuItems,
|
|
49
|
-
menuClass: this.menuClass,
|
|
50
|
-
});
|
|
51
|
-
this.contextMenuService.close
|
|
52
|
-
.asObservable()
|
|
53
|
-
.pipe(first())
|
|
54
|
-
.subscribe((closeEvent) => this.close.emit(closeEvent));
|
|
55
|
-
this.open.next(menuEvent);
|
|
56
|
-
}
|
|
57
|
-
isMenuItemVisible(menuItem) {
|
|
58
|
-
return this.evaluateIfFunction(menuItem.visible);
|
|
59
|
-
}
|
|
60
|
-
setVisibleMenuItems() {
|
|
61
|
-
this.visibleMenuItems = this.menuItems.filter((menuItem) => this.isMenuItemVisible(menuItem));
|
|
62
|
-
}
|
|
63
|
-
evaluateIfFunction(value) {
|
|
64
|
-
if (value instanceof Function) {
|
|
65
|
-
return value(this.item);
|
|
66
|
-
}
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
ContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ContextMenuComponent, deps: [{ token: i1.ContextMenuService }, { token: CONTEXT_MENU_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
-
ContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ContextMenuComponent, selector: "context-menu", inputs: { menuClass: "menuClass", autoFocus: "autoFocus", useBootstrap4: "useBootstrap4", disabled: "disabled" }, outputs: { close: "close", open: "open" }, queries: [{ propertyName: "menuItems", predicate: ContextMenuItemDirective }], viewQueries: [{ propertyName: "menuElement", first: true, predicate: ["menu"], descendants: true }], ngImport: i0, template: ``, isInline: true, styles: [".cdk-overlay-container{position:fixed;z-index:1000;pointer-events:none;top:0;left:0;width:100%;height:100%}.ngx-contextmenu.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ContextMenuComponent, decorators: [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{ encapsulation: ViewEncapsulation.None, selector: 'context-menu', template: ``, styles: [".cdk-overlay-container{position:fixed;z-index:1000;pointer-events:none;top:0;left:0;width:100%;height:100%}.ngx-contextmenu.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box}\n"] }]
|
|
75
|
-
}], ctorParameters: function () { return [{ type: i1.ContextMenuService }, { type: undefined, decorators: [{
|
|
76
|
-
type: Optional
|
|
77
|
-
}, {
|
|
78
|
-
type: Inject,
|
|
79
|
-
args: [CONTEXT_MENU_OPTIONS]
|
|
80
|
-
}] }]; }, propDecorators: { menuClass: [{
|
|
81
|
-
type: Input
|
|
82
|
-
}], autoFocus: [{
|
|
83
|
-
type: Input
|
|
84
|
-
}], useBootstrap4: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], disabled: [{
|
|
87
|
-
type: Input
|
|
88
|
-
}], close: [{
|
|
89
|
-
type: Output
|
|
90
|
-
}], open: [{
|
|
91
|
-
type: Output
|
|
92
|
-
}], menuItems: [{
|
|
93
|
-
type: ContentChildren,
|
|
94
|
-
args: [ContextMenuItemDirective]
|
|
95
|
-
}], menuElement: [{
|
|
96
|
-
type: ViewChild,
|
|
97
|
-
args: ['menu', { static: false }]
|
|
98
|
-
}] } });
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL215cnRhLXVpL3NyYy9saWIvY29tcG9uZW50cy9jb250ZXh0LW1lbnUvY29tcG9uZW50cy9jb250ZXh0LW1lbnUvY29udGV4dC1tZW51LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULGVBQWUsRUFFZixZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFFTCxRQUFRLEVBQ1IsTUFBTSxFQUVOLFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNwQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdkMsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZ0VBQWdFLENBQUM7QUFFMUcsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7OztBQStCakUsTUFBTSxPQUFPLG9CQUFvQjtJQThCL0IsWUFDVSxrQkFBc0MsRUFHdEMsT0FBNEI7UUFINUIsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFvQjtRQUd0QyxZQUFPLEdBQVAsT0FBTyxDQUFxQjtRQWhDL0IsY0FBUyxHQUFHLEVBQUUsQ0FBQztRQUdmLGNBQVMsR0FBRyxLQUFLLENBQUM7UUFHbEIsa0JBQWEsR0FBRyxLQUFLLENBQUM7UUFHdE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JZkZ1bmN0aW9uKG1lbnVJdGVtLnZpc2libGUpO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIHNldFZpc2libGVNZW51SXRlbXMoKTogdm9pZCB7XHJcbiAgICB0aGlzLnZpc2libGVNZW51SXRlbXMgPSB0aGlzLm1lbnVJdGVtcy5maWx0ZXIoKG1lbnVJdGVtKSA9PlxyXG4gICAgICB0aGlzLmlzTWVudUl0ZW1WaXNpYmxlKG1lbnVJdGVtKVxyXG4gICAgKTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBldmFsdWF0ZUlmRnVuY3Rpb24odmFsdWU6IGFueSk6IGFueSB7XHJcbiAgICBpZiAodmFsdWUgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xyXG4gICAgICByZXR1cm4gdmFsdWUodGhpcy5pdGVtKTtcclxuICAgIH1cclxuICAgIHJldHVybiB2YWx1ZTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { Component, EventEmitter, HostListener, Inject, Input, Optional, Output, QueryList, ViewChild, ViewChildren, } from '@angular/core';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import { CONTEXT_MENU_OPTIONS } from '../../context-menu.tokens';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
const ARROW_LEFT_KEYCODE = 37;
|
|
8
|
-
export class ContextMenuContentComponent {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.options = options;
|
|
11
|
-
this.menuItems = [];
|
|
12
|
-
this.isLeaf = false;
|
|
13
|
-
this.execute = new EventEmitter();
|
|
14
|
-
this.openSubMenu = new EventEmitter();
|
|
15
|
-
this.closeLeafMenu = new EventEmitter();
|
|
16
|
-
this.closeAllMenus = new EventEmitter();
|
|
17
|
-
this.autoFocus = false;
|
|
18
|
-
this.useBootstrap4 = false;
|
|
19
|
-
this.subscription = new Subscription();
|
|
20
|
-
if (options) {
|
|
21
|
-
this.autoFocus = options.autoFocus;
|
|
22
|
-
this.useBootstrap4 = options.useBootstrap4;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
this.menuItems.forEach((menuItem) => {
|
|
30
|
-
menuItem.currentItem = this.item;
|
|
31
|
-
this.subscription.add(menuItem.execute.subscribe((event) => this.execute.emit({ ...event, menuItem })));
|
|
32
|
-
});
|
|
33
|
-
const queryList = new QueryList();
|
|
34
|
-
queryList.reset(this.menuItems);
|
|
35
|
-
this._keyManager = new ActiveDescendantKeyManager(queryList).withWrap();
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
|
-
ngAfterViewInit() {
|
|
41
|
-
if (this.autoFocus) {
|
|
42
|
-
setTimeout(() => this.focus());
|
|
43
|
-
}
|
|
44
|
-
this.overlay?.updatePosition();
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
ngOnDestroy() {
|
|
50
|
-
this.subscription.unsubscribe();
|
|
51
|
-
}
|
|
52
|
-
focus() {
|
|
53
|
-
if (this.autoFocus) {
|
|
54
|
-
this.menuElement.nativeElement.focus();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
stopEvent(event) {
|
|
58
|
-
event.stopPropagation();
|
|
59
|
-
}
|
|
60
|
-
isMenuItemEnabled(menuItem) {
|
|
61
|
-
return this.evaluateIfFunction(menuItem && menuItem.enabled);
|
|
62
|
-
}
|
|
63
|
-
isMenuItemVisible(menuItem) {
|
|
64
|
-
return this.evaluateIfFunction(menuItem && menuItem.visible);
|
|
65
|
-
}
|
|
66
|
-
evaluateIfFunction(value) {
|
|
67
|
-
if (value instanceof Function) {
|
|
68
|
-
return value(this.item);
|
|
69
|
-
}
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
isDisabled(link) {
|
|
73
|
-
return !!link.enabled && !link.enabled(this.item);
|
|
74
|
-
}
|
|
75
|
-
onKeyEvent(event) {
|
|
76
|
-
if (!this.isLeaf) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this._keyManager.onKeydown(event);
|
|
80
|
-
}
|
|
81
|
-
keyboardOpenSubMenu(event) {
|
|
82
|
-
if (!this.isLeaf || this._keyManager.activeItemIndex === null) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
this.cancelEvent(event);
|
|
86
|
-
const menuItem = this.menuItems[this._keyManager.activeItemIndex];
|
|
87
|
-
if (menuItem) {
|
|
88
|
-
this.onOpenSubMenu(menuItem, event);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
keyboardMenuItemSelect(event) {
|
|
92
|
-
if (!this.isLeaf || this._keyManager.activeItemIndex === null) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
this.cancelEvent(event);
|
|
96
|
-
const menuItem = this.menuItems[this._keyManager.activeItemIndex];
|
|
97
|
-
if (menuItem) {
|
|
98
|
-
this.onMenuItemSelect(menuItem, event);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
onCloseLeafMenu(event) {
|
|
102
|
-
if (!this.isLeaf) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
this.cancelEvent(event);
|
|
106
|
-
this.closeLeafMenu.emit({
|
|
107
|
-
exceptRootMenu: event.keyCode === ARROW_LEFT_KEYCODE,
|
|
108
|
-
event,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
closeMenu(event) {
|
|
112
|
-
if (event.type === 'click' && event.button === 2) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
this.closeAllMenus.emit({ event });
|
|
116
|
-
}
|
|
117
|
-
onOpenSubMenu(menuItem, event) {
|
|
118
|
-
if (this._keyManager.activeItemIndex === null) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const anchorElementRef = this.menuItemElements.toArray()[this._keyManager.activeItemIndex];
|
|
122
|
-
const anchorElement = anchorElementRef && anchorElementRef.nativeElement;
|
|
123
|
-
this.openSubMenu.emit({
|
|
124
|
-
anchorElement,
|
|
125
|
-
contextMenu: menuItem.subMenu,
|
|
126
|
-
event,
|
|
127
|
-
item: this.item,
|
|
128
|
-
parentContextMenu: this,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
onMenuItemSelect(menuItem, event) {
|
|
132
|
-
event.preventDefault();
|
|
133
|
-
event.stopPropagation();
|
|
134
|
-
this.onOpenSubMenu(menuItem, event);
|
|
135
|
-
if (!menuItem.subMenu) {
|
|
136
|
-
menuItem.triggerExecute(this.item, event);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
cancelEvent(event) {
|
|
140
|
-
if (!event || !event.target) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
const target = event.target;
|
|
144
|
-
if (['INPUT', 'TEXTAREA', 'SELECT'].indexOf(target.tagName) > -1 ||
|
|
145
|
-
target.isContentEditable) {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
event.preventDefault();
|
|
149
|
-
event.stopPropagation();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
ContextMenuContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ContextMenuContentComponent, deps: [{ token: CONTEXT_MENU_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
153
|
-
ContextMenuContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ContextMenuContentComponent, selector: "context-menu-content", inputs: { menuItems: "menuItems", item: "item", event: "event", parentContextMenu: "parentContextMenu", menuClass: "menuClass", overlay: "overlay", isLeaf: "isLeaf" }, outputs: { execute: "execute", openSubMenu: "openSubMenu", closeLeafMenu: "closeLeafMenu", closeAllMenus: "closeAllMenus" }, host: { listeners: { "window:keydown.ArrowDown": "onKeyEvent($event)", "window:keydown.ArrowUp": "onKeyEvent($event)", "window:keydown.ArrowRight": "keyboardOpenSubMenu($event)", "window:keydown.Enter": "keyboardMenuItemSelect($event)", "window:keydown.Space": "keyboardMenuItemSelect($event)", "window:keydown.Escape": "onCloseLeafMenu($event)", "window:keydown.ArrowLeft": "onCloseLeafMenu($event)", "document:click": "closeMenu($event)", "document:contextmenu": "closeMenu($event)" } }, viewQueries: [{ propertyName: "menuElement", first: true, predicate: ["menu"], descendants: true, static: true }, { propertyName: "menuItemElements", predicate: ["li"], descendants: true }], ngImport: i0, template: `
|
|
154
|
-
<div
|
|
155
|
-
class="dropdown open show ngx-contextmenu"
|
|
156
|
-
[ngClass]="menuClass"
|
|
157
|
-
tabindex="0"
|
|
158
|
-
>
|
|
159
|
-
<ul
|
|
160
|
-
#menu
|
|
161
|
-
class="dropdown-menu show"
|
|
162
|
-
style="position: static; float: none;"
|
|
163
|
-
tabindex="0"
|
|
164
|
-
>
|
|
165
|
-
<li
|
|
166
|
-
#li
|
|
167
|
-
*ngFor="let menuItem of menuItems; let i = index"
|
|
168
|
-
[class.disabled]="!isMenuItemEnabled(menuItem)"
|
|
169
|
-
[class.divider]="menuItem.divider"
|
|
170
|
-
[class.dropdown-divider]="useBootstrap4 && menuItem.divider"
|
|
171
|
-
[class.active]="menuItem.isActive && isMenuItemEnabled(menuItem)"
|
|
172
|
-
[attr.role]="menuItem.divider ? 'separator' : undefined"
|
|
173
|
-
>
|
|
174
|
-
<a
|
|
175
|
-
*ngIf="!menuItem.divider && !menuItem.passive"
|
|
176
|
-
href
|
|
177
|
-
[class.dropdown-item]="useBootstrap4"
|
|
178
|
-
[class.active]="menuItem.isActive && isMenuItemEnabled(menuItem)"
|
|
179
|
-
[class.disabled]="useBootstrap4 && !isMenuItemEnabled(menuItem)"
|
|
180
|
-
[class.hasSubMenu]="!!menuItem.subMenu"
|
|
181
|
-
(click)="onMenuItemSelect(menuItem, $event)"
|
|
182
|
-
(mouseenter)="onOpenSubMenu(menuItem, $event)"
|
|
183
|
-
>
|
|
184
|
-
<ng-template
|
|
185
|
-
[ngTemplateOutlet]="menuItem.template"
|
|
186
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
187
|
-
></ng-template>
|
|
188
|
-
</a>
|
|
189
|
-
|
|
190
|
-
<span
|
|
191
|
-
(click)="stopEvent($event)"
|
|
192
|
-
(contextmenu)="stopEvent($event)"
|
|
193
|
-
class="passive"
|
|
194
|
-
*ngIf="!menuItem.divider && menuItem.passive"
|
|
195
|
-
[class.dropdown-item]="useBootstrap4"
|
|
196
|
-
[class.disabled]="useBootstrap4 && !isMenuItemEnabled(menuItem)"
|
|
197
|
-
>
|
|
198
|
-
<ng-template
|
|
199
|
-
[ngTemplateOutlet]="menuItem.template"
|
|
200
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
201
|
-
></ng-template>
|
|
202
|
-
</span>
|
|
203
|
-
</li>
|
|
204
|
-
</ul>
|
|
205
|
-
</div>
|
|
206
|
-
`, isInline: true, styles: [".passive{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:20px;white-space:nowrap}.hasSubMenu:before{content:\"\\25b6\";float:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ContextMenuContentComponent, decorators: [{
|
|
208
|
-
type: Component,
|
|
209
|
-
args: [{ selector: 'context-menu-content', template: `
|
|
210
|
-
<div
|
|
211
|
-
class="dropdown open show ngx-contextmenu"
|
|
212
|
-
[ngClass]="menuClass"
|
|
213
|
-
tabindex="0"
|
|
214
|
-
>
|
|
215
|
-
<ul
|
|
216
|
-
#menu
|
|
217
|
-
class="dropdown-menu show"
|
|
218
|
-
style="position: static; float: none;"
|
|
219
|
-
tabindex="0"
|
|
220
|
-
>
|
|
221
|
-
<li
|
|
222
|
-
#li
|
|
223
|
-
*ngFor="let menuItem of menuItems; let i = index"
|
|
224
|
-
[class.disabled]="!isMenuItemEnabled(menuItem)"
|
|
225
|
-
[class.divider]="menuItem.divider"
|
|
226
|
-
[class.dropdown-divider]="useBootstrap4 && menuItem.divider"
|
|
227
|
-
[class.active]="menuItem.isActive && isMenuItemEnabled(menuItem)"
|
|
228
|
-
[attr.role]="menuItem.divider ? 'separator' : undefined"
|
|
229
|
-
>
|
|
230
|
-
<a
|
|
231
|
-
*ngIf="!menuItem.divider && !menuItem.passive"
|
|
232
|
-
href
|
|
233
|
-
[class.dropdown-item]="useBootstrap4"
|
|
234
|
-
[class.active]="menuItem.isActive && isMenuItemEnabled(menuItem)"
|
|
235
|
-
[class.disabled]="useBootstrap4 && !isMenuItemEnabled(menuItem)"
|
|
236
|
-
[class.hasSubMenu]="!!menuItem.subMenu"
|
|
237
|
-
(click)="onMenuItemSelect(menuItem, $event)"
|
|
238
|
-
(mouseenter)="onOpenSubMenu(menuItem, $event)"
|
|
239
|
-
>
|
|
240
|
-
<ng-template
|
|
241
|
-
[ngTemplateOutlet]="menuItem.template"
|
|
242
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
243
|
-
></ng-template>
|
|
244
|
-
</a>
|
|
245
|
-
|
|
246
|
-
<span
|
|
247
|
-
(click)="stopEvent($event)"
|
|
248
|
-
(contextmenu)="stopEvent($event)"
|
|
249
|
-
class="passive"
|
|
250
|
-
*ngIf="!menuItem.divider && menuItem.passive"
|
|
251
|
-
[class.dropdown-item]="useBootstrap4"
|
|
252
|
-
[class.disabled]="useBootstrap4 && !isMenuItemEnabled(menuItem)"
|
|
253
|
-
>
|
|
254
|
-
<ng-template
|
|
255
|
-
[ngTemplateOutlet]="menuItem.template"
|
|
256
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
257
|
-
></ng-template>
|
|
258
|
-
</span>
|
|
259
|
-
</li>
|
|
260
|
-
</ul>
|
|
261
|
-
</div>
|
|
262
|
-
`, styles: [".passive{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:20px;white-space:nowrap}.hasSubMenu:before{content:\"\\25b6\";float:right}\n"] }]
|
|
263
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
264
|
-
type: Optional
|
|
265
|
-
}, {
|
|
266
|
-
type: Inject,
|
|
267
|
-
args: [CONTEXT_MENU_OPTIONS]
|
|
268
|
-
}] }]; }, propDecorators: { menuItems: [{
|
|
269
|
-
type: Input
|
|
270
|
-
}], item: [{
|
|
271
|
-
type: Input
|
|
272
|
-
}], event: [{
|
|
273
|
-
type: Input
|
|
274
|
-
}], parentContextMenu: [{
|
|
275
|
-
type: Input
|
|
276
|
-
}], menuClass: [{
|
|
277
|
-
type: Input
|
|
278
|
-
}], overlay: [{
|
|
279
|
-
type: Input
|
|
280
|
-
}], isLeaf: [{
|
|
281
|
-
type: Input
|
|
282
|
-
}], execute: [{
|
|
283
|
-
type: Output
|
|
284
|
-
}], openSubMenu: [{
|
|
285
|
-
type: Output
|
|
286
|
-
}], closeLeafMenu: [{
|
|
287
|
-
type: Output
|
|
288
|
-
}], closeAllMenus: [{
|
|
289
|
-
type: Output
|
|
290
|
-
}], menuElement: [{
|
|
291
|
-
type: ViewChild,
|
|
292
|
-
args: ['menu', { static: true }]
|
|
293
|
-
}], menuItemElements: [{
|
|
294
|
-
type: ViewChildren,
|
|
295
|
-
args: ['li']
|
|
296
|
-
}], onKeyEvent: [{
|
|
297
|
-
type: HostListener,
|
|
298
|
-
args: ['window:keydown.ArrowDown', ['$event']]
|
|
299
|
-
}, {
|
|
300
|
-
type: HostListener,
|
|
301
|
-
args: ['window:keydown.ArrowUp', ['$event']]
|
|
302
|
-
}], keyboardOpenSubMenu: [{
|
|
303
|
-
type: HostListener,
|
|
304
|
-
args: ['window:keydown.ArrowRight', ['$event']]
|
|
305
|
-
}], keyboardMenuItemSelect: [{
|
|
306
|
-
type: HostListener,
|
|
307
|
-
args: ['window:keydown.Enter', ['$event']]
|
|
308
|
-
}, {
|
|
309
|
-
type: HostListener,
|
|
310
|
-
args: ['window:keydown.Space', ['$event']]
|
|
311
|
-
}], onCloseLeafMenu: [{
|
|
312
|
-
type: HostListener,
|
|
313
|
-
args: ['window:keydown.Escape', ['$event']]
|
|
314
|
-
}, {
|
|
315
|
-
type: HostListener,
|
|
316
|
-
args: ['window:keydown.ArrowLeft', ['$event']]
|
|
317
|
-
}], closeMenu: [{
|
|
318
|
-
type: HostListener,
|
|
319
|
-
args: ['document:click', ['$event']]
|
|
320
|
-
}, {
|
|
321
|
-
type: HostListener,
|
|
322
|
-
args: ['document:contextmenu', ['$event']]
|
|
323
|
-
}] } });
|
|
324
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1tZW51LWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9jb21wb25lbnRzL2NvbnRleHQtbWVudS9jb21wb25lbnRzL2NvbnRleHQtbWVudS1jb250ZW50L2NvbnRleHQtbWVudS1jb250ZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUUvRCxPQUFPLEVBRUwsU0FBUyxFQUV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ICAgICAgICAgID5cclxuICAgICAgICAgICAgPG5nLXRlbXBsYXRlXHJcbiAgICAgICAgICAgICAgW25nVGVtcGxhdGVPdXRsZXRdPVwibWVudUl0ZW0udGVtcGxhdGVcIlxyXG4gICAgICAgICAgICAgIFtuZ1RlbXBsYXRlT3V0bGV0Q29udGV4dF09XCJ7ICRpbXBsaWNpdDogaXRlbSB9XCJcclxuICAgICAgICAgICAgPjwvbmctdGVtcGxhdGU+XHJcbiAgICAgICAgICA8L2E+XHJcblxyXG4gICAgICAgICAgPHNwYW5cclxuICAgICAgICAgICAgKGNsaWNrKT1cInN0b3BFdmVudCgkZXZlbnQpXCJcclxuICAgICAgICAgICAgKGNvbnRleHRtZW51KT1cInN0b3BFdmVudCgkZXZlbnQpXCJcclxuICAgICAgICAgICAgY2xhc3M9XCJwYXNzaXZlXCJcclxuICAgICAgICAgICAgKm5nSWY9XCIhbWVudUl0ZW0uZGl2aWRlciAmJiBtZW51SXRlbS5wYXNzaXZlXCJcclxuICAgICAgICAgICAgW2NsYXNzLmRyb3Bkb3duLWl0ZW1dPVwidXNlQm9vdHN0cmFwNFwiXHJcbiAgICAgICAgICAgIFtjbGFzcy5kaXNhYmxlZF09XCJ1c2VCb290c3RyYXA0ICYmICFpc01lbnVJdGVtRW5hYmxlZChtZW51SXRlbSlcIlxyXG4gICAgICAgICAgPlxyXG4gICAgICAgICAgICA8bmctdGVtcGxhdGVcclxuICAgICAgICAgICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJtZW51SXRlbS50ZW1wbGF0ZVwiXHJcbiAgICAgICAgICAgICAgW25nVGVtcGxhdGVPdXRsZXRDb250ZXh0XT1cInsgJGltcGxpY2l0OiBpdGVtIH1cIlxyXG4gICAgICAgICAgICA+PC9uZy10ZW1wbGF0ZT5cclxuICAgICAgICAgIDwvc3Bhbj5cclxuICAgICAgICA8L2xpPlxyXG4gICAgICA8L3VsPlxyXG4gICAgPC9kaXY+XHJcbiAgYCxcclxufSlcclxuZXhwb3J0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