myrta-ui 1.0.65 → 17.0.0-beta.1
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/esm2022/lib/components/alert/alert.component.mjs +43 -0
- package/{esm2020 → esm2022}/lib/components/alert/alert.enum.mjs +14 -14
- package/esm2022/lib/components/alert/alert.module.mjs +19 -0
- package/{esm2020 → esm2022}/lib/components/badges/badge.enum.mjs +31 -31
- package/esm2022/lib/components/badges/badges.module.mjs +30 -0
- 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/esm2022/lib/components/breadcrumbs/breadcrumbs.module.mjs +25 -0
- package/esm2022/lib/components/button/button.component.mjs +100 -0
- package/esm2022/lib/components/button/button.enum.mjs +27 -0
- package/esm2022/lib/components/button/button.module.mjs +21 -0
- 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/esm2022/lib/components/cdk-tooltip/cdk-tooltip.module.mjs +21 -0
- 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/esm2022/lib/components/chars-left/chars-left.module.mjs +19 -0
- package/esm2022/lib/components/dropdown/directives/hide-after-click.directive.mjs +24 -0
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +107 -0
- package/esm2022/lib/components/dropdown/dropdown.module.mjs +21 -0
- package/esm2022/lib/components/error-message/error-message.component.mjs +32 -0
- package/esm2022/lib/components/error-message/error-message.module.mjs +19 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +153 -0
- package/{esm2020 → esm2022}/lib/components/form/checkbox/checkbox.enum.mjs +4 -4
- package/esm2022/lib/components/form/checkbox/checkbox.module.mjs +22 -0
- package/esm2022/lib/components/form/checkbox-group/checkbox-group.component.mjs +178 -0
- package/esm2022/lib/components/form/checkbox-group/checkbox-group.module.mjs +47 -0
- 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 +261 -0
- 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 +6 -6
- 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 +370 -0
- package/{esm2020 → esm2022}/lib/components/form/input-file/input-file.enum.mjs +7 -7
- package/esm2022/lib/components/form/input-file/input-file.module.mjs +26 -0
- 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 +364 -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 +51 -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 +6 -6
- 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/esm2022/lib/components/form/input-opt/input-opt.module.mjs +38 -0
- 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 +6 -6
- 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 +6 -6
- 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/esm2022/lib/components/form/input-select/input-select.module.mjs +45 -0
- 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 +1322 -1322
- 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/esm2022/lib/components/form/radio/radio.module.mjs +20 -0
- 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 +1 -1
- 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/esm2022/lib/components/form/rating/rating.module.mjs +25 -0
- package/esm2022/lib/components/form/switch/switch.component.mjs +95 -0
- package/{esm2020 → esm2022}/lib/components/form/switch/switch.enum.mjs +10 -10
- package/esm2022/lib/components/form/switch/switch.module.mjs +21 -0
- package/esm2022/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +39 -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/esm2022/lib/components/gallery/gallery.module.mjs +54 -0
- 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/esm2022/lib/components/hint-error-message/hint-error-message.module.mjs +19 -0
- 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/esm2022/lib/components/icon-button/icon-button.module.mjs +19 -0
- package/esm2022/lib/components/label/label.component.mjs +143 -0
- package/esm2022/lib/components/label/label.module.mjs +25 -0
- package/esm2022/lib/components/link/link.component.mjs +48 -0
- package/{esm2020 → esm2022}/lib/components/link/link.enum.mjs +19 -19
- package/esm2022/lib/components/link/link.module.mjs +19 -0
- package/esm2022/lib/components/loader/loader.component.mjs +24 -0
- package/{esm2020 → esm2022}/lib/components/loader/loader.enum.mjs +19 -19
- package/esm2022/lib/components/loader/loader.module.mjs +19 -0
- package/esm2022/lib/components/modal/modal.component.mjs +137 -0
- package/{esm2020 → esm2022}/lib/components/modal/modal.emun.mjs +20 -20
- package/esm2022/lib/components/modal/modal.module.mjs +20 -0
- 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/esm2022/lib/components/pages-nav/pages-nav.module.mjs +24 -0
- 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/esm2022/lib/components/progress/progress.module.mjs +19 -0
- 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 +1 -1
- package/esm2022/lib/components/save-state/save-state.module.mjs +37 -0
- package/esm2022/lib/components/stepper/stepper.component.mjs +52 -0
- package/{esm2020 → esm2022}/lib/components/stepper/stepper.enum.mjs +5 -5
- package/esm2022/lib/components/stepper/stepper.module.mjs +20 -0
- 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/esm2022/lib/components/table/table.module.mjs +50 -0
- 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/esm2022/lib/components/tabs/tabs.module.mjs +20 -0
- 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/esm2022/lib/components/tooltip/tooltip.module.mjs +21 -0
- 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/esm2022/lib/components/truncate-text/truncate-text.module.mjs +21 -0
- package/esm2022/lib/components/warning-message/warning-message.component.mjs +29 -0
- package/esm2022/lib/components/warning-message/warning-message.module.mjs +19 -0
- 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/esm2022/lib/components/wrappers/content-wrapper/content-wrapper.module.mjs +19 -0
- 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/esm2022/lib/components/wrappers/controls-wrapper/controls-wrapper.module.mjs +20 -0
- 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/esm2022/lib/components/wrappers/widget-wrapper/widget-wrapper.module.mjs +24 -0
- package/esm2022/lib/directives/autosize/autosize.directive.mjs +57 -0
- package/esm2022/lib/directives/autosize/autosize.module.mjs +24 -0
- package/esm2022/lib/directives/truncate/truncate.directive.mjs +34 -0
- package/esm2022/lib/directives/truncate/truncate.module.mjs +18 -0
- package/{esm2020 → esm2022}/lib/enums/typed.input.state.mjs +7 -7
- 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/{esm2020 → esm2022}/lib/models/input-file/input-file.model.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/typed-input-model.mjs +1 -1
- package/esm2022/lib/pipes/currency/currency.module.mjs +20 -0
- package/esm2022/lib/pipes/currency/currency.pipe.mjs +22 -0
- package/esm2022/lib/pipes/date/date-format.module.mjs +19 -0
- 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/esm2022/lib/pipes/phone/phone-format.module.mjs +18 -0
- package/esm2022/lib/pipes/phone/phone-format.pipe.mjs +23 -0
- package/esm2022/lib/pipes/safe/safe.module.mjs +20 -0
- package/esm2022/lib/pipes/safe/safe.pipe.mjs +21 -0
- package/esm2022/lib/pipes/truncate/truncate.module.mjs +20 -0
- package/esm2022/lib/pipes/truncate/truncate.pipe.mjs +23 -0
- package/esm2022/lib/services/file-upload/file-upload.service.mjs +27 -0
- package/{esm2020 → esm2022}/lib/services/index.mjs +6 -6
- package/esm2022/lib/services/modal-service/components/alert-modal/alert-modal.component.mjs +46 -0
- package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs +50 -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 +5 -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/esm2022/lib/services/save-store/save-store.module.mjs +29 -0
- 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 +15458 -0
- package/fesm2022/myrta-ui.mjs.map +1 -0
- package/{myrta-ui.d.ts → 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 -9
- 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 -48
- package/lib/components/form/checkbox/checkbox.enum.d.ts +14 -14
- package/lib/components/form/checkbox/checkbox.module.d.ts +11 -11
- package/lib/components/form/checkbox-group/checkbox-group.component.d.ts +54 -54
- 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 -26
- 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 +63 -49
- 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 -72
- 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 -69
- 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 +72 -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 +42 -39
- package/lib/components/form/input-file-image/input-file-image.component.d.ts +62 -62
- 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 -64
- 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 -38
- package/lib/components/form/input-password/input-password.enum.d.ts +7 -7
- package/lib/components/form/input-password/input-password.module.d.ts +11 -11
- 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 -48
- package/lib/components/form/input-search/input-search.enum.d.ts +6 -6
- package/lib/components/form/input-search/input-search.module.d.ts +12 -12
- package/lib/components/form/input-select/input-select.component.d.ts +84 -84
- 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 -54
- 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 -54
- 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 -18
- package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts +26 -26
- 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 -8
- package/lib/components/form/radio-group/radio-group.component.d.ts +57 -57
- package/lib/components/form/radio-group/radio-group.module.d.ts +15 -15
- 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 +21 -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 -29
- 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 +22 -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 +6 -6
- package/lib/services/modal-service/components/alert-modal/alert-modal.component.d.ts +20 -0
- package/lib/services/modal-service/components/confirm-modal/confirm-modal.component.d.ts +21 -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 +4 -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 -51
- 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 +29 -39
- package/public-api.d.ts +162 -175
- package/esm2020/lib/components/alert/alert.component.mjs +0 -45
- package/esm2020/lib/components/alert/alert.module.mjs +0 -19
- package/esm2020/lib/components/badges/badges.module.mjs +0 -32
- 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/breadcrumbs/breadcrumbs.module.mjs +0 -27
- package/esm2020/lib/components/button/button.component.mjs +0 -102
- package/esm2020/lib/components/button/button.enum.mjs +0 -29
- package/esm2020/lib/components/button/button.module.mjs +0 -21
- 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/cdk-tooltip/cdk-tooltip.module.mjs +0 -21
- package/esm2020/lib/components/chars-left/chars-left.component.mjs +0 -26
- package/esm2020/lib/components/chars-left/chars-left.module.mjs +0 -19
- package/esm2020/lib/components/context-menu/components/context-menu/context-menu.component.mjs +0 -121
- package/esm2020/lib/components/context-menu/components/context-menu-content/context-menu-content.component.mjs +0 -343
- 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/dropdown/dropdown.module.mjs +0 -21
- package/esm2020/lib/components/error-message/error-message.component.mjs +0 -34
- package/esm2020/lib/components/error-message/error-message.module.mjs +0 -19
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -150
- package/esm2020/lib/components/form/checkbox/checkbox.module.mjs +0 -22
- package/esm2020/lib/components/form/checkbox-group/checkbox-group.component.mjs +0 -178
- package/esm2020/lib/components/form/checkbox-group/checkbox-group.module.mjs +0 -49
- package/esm2020/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +0 -103
- 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 -44
- 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 -240
- package/esm2020/lib/components/form/editor/editor.module.mjs +0 -47
- 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 -381
- package/esm2020/lib/components/form/input-date-time/input-date-time.module.mjs +0 -48
- 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 -354
- package/esm2020/lib/components/form/input-datepicker/input-datepicker.module.mjs +0 -48
- package/esm2020/lib/components/form/input-file/input-file.component.mjs +0 -362
- package/esm2020/lib/components/form/input-file/input-file.module.mjs +0 -26
- 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 -354
- package/esm2020/lib/components/form/input-file-image/input-file-image.module.mjs +0 -60
- package/esm2020/lib/components/form/input-number/input-number.component.mjs +0 -258
- package/esm2020/lib/components/form/input-number/input-number.module.mjs +0 -57
- 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-opt/input-opt.module.mjs +0 -40
- package/esm2020/lib/components/form/input-password/input-password.component.mjs +0 -119
- package/esm2020/lib/components/form/input-password/input-password.module.mjs +0 -38
- 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 -52
- 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 -166
- package/esm2020/lib/components/form/input-search/input-search.module.mjs +0 -43
- package/esm2020/lib/components/form/input-select/input-select.component.mjs +0 -243
- package/esm2020/lib/components/form/input-select/input-select.module.mjs +0 -47
- 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 -49
- package/esm2020/lib/components/form/input-text/input-text.component.mjs +0 -188
- package/esm2020/lib/components/form/input-text/input-text.module.mjs +0 -51
- package/esm2020/lib/components/form/input-textarea/input-textarea.component.mjs +0 -195
- package/esm2020/lib/components/form/input-textarea/input-textarea.module.mjs +0 -50
- 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 -48
- package/esm2020/lib/components/form/radio/radio.component.mjs +0 -91
- package/esm2020/lib/components/form/radio/radio.module.mjs +0 -20
- package/esm2020/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +0 -46
- package/esm2020/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +0 -63
- 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 -175
- package/esm2020/lib/components/form/radio-group/radio-group.module.mjs +0 -26
- package/esm2020/lib/components/form/rating/rating.component.mjs +0 -217
- package/esm2020/lib/components/form/rating/rating.module.mjs +0 -27
- package/esm2020/lib/components/form/switch/switch.component.mjs +0 -97
- package/esm2020/lib/components/form/switch/switch.module.mjs +0 -21
- 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/gallery.module.mjs +0 -56
- 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/hint-error-message/hint-error-message.module.mjs +0 -19
- package/esm2020/lib/components/icon-button/icon-button.component.mjs +0 -51
- package/esm2020/lib/components/icon-button/icon-button.module.mjs +0 -19
- package/esm2020/lib/components/label/label.component.mjs +0 -141
- package/esm2020/lib/components/label/label.module.mjs +0 -25
- package/esm2020/lib/components/link/link.component.mjs +0 -50
- package/esm2020/lib/components/link/link.module.mjs +0 -19
- package/esm2020/lib/components/loader/loader.component.mjs +0 -26
- package/esm2020/lib/components/loader/loader.module.mjs +0 -19
- package/esm2020/lib/components/modal/modal.component.mjs +0 -146
- package/esm2020/lib/components/modal/modal.module.mjs +0 -20
- package/esm2020/lib/components/pages-nav/pages-nav.component.mjs +0 -33
- package/esm2020/lib/components/pages-nav/pages-nav.module.mjs +0 -26
- package/esm2020/lib/components/paginator/paginator.component.mjs +0 -142
- package/esm2020/lib/components/paginator/paginator.module.mjs +0 -33
- package/esm2020/lib/components/progress/progress.component.mjs +0 -26
- package/esm2020/lib/components/progress/progress.module.mjs +0 -19
- 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/save-state/save-state.module.mjs +0 -39
- package/esm2020/lib/components/stepper/stepper.component.mjs +0 -54
- package/esm2020/lib/components/stepper/stepper.module.mjs +0 -20
- 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/table/table.module.mjs +0 -52
- 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/tabs/tabs.module.mjs +0 -20
- 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/tooltip/tooltip.module.mjs +0 -21
- package/esm2020/lib/components/truncate-text/truncate-text.component.mjs +0 -30
- package/esm2020/lib/components/truncate-text/truncate-text.module.mjs +0 -21
- package/esm2020/lib/components/warning-message/warning-message.component.mjs +0 -31
- package/esm2020/lib/components/warning-message/warning-message.module.mjs +0 -19
- package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +0 -26
- package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.module.mjs +0 -19
- 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/controls-wrapper/controls-wrapper.module.mjs +0 -20
- package/esm2020/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +0 -96
- package/esm2020/lib/components/wrappers/widget-wrapper/widget-wrapper.module.mjs +0 -26
- package/esm2020/lib/directives/autosize/autosize.directive.mjs +0 -55
- package/esm2020/lib/directives/autosize/autosize.module.mjs +0 -26
- package/esm2020/lib/directives/truncate/truncate.directive.mjs +0 -32
- package/esm2020/lib/directives/truncate/truncate.module.mjs +0 -18
- 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/pipes/currency/currency.module.mjs +0 -22
- package/esm2020/lib/pipes/currency/currency.pipe.mjs +0 -22
- package/esm2020/lib/pipes/date/date-format.module.mjs +0 -19
- 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.module.mjs +0 -18
- package/esm2020/lib/pipes/phone/phone-format.pipe.mjs +0 -23
- package/esm2020/lib/pipes/safe/safe.module.mjs +0 -22
- package/esm2020/lib/pipes/safe/safe.pipe.mjs +0 -20
- package/esm2020/lib/pipes/truncate/truncate.module.mjs +0 -22
- 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/mrx-autosave/mrx-autosave.service.mjs +0 -44
- package/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +0 -283
- package/esm2020/lib/services/save-store/save-store.module.mjs +0 -31
- 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 -185
- package/fesm2015/myrta-ui.mjs +0 -16173
- package/fesm2015/myrta-ui.mjs.map +0 -1
- package/fesm2020/myrta-ui.mjs +0 -16212
- 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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { ModalComponent } from '../../helpers/modal.component';
|
|
3
|
+
import { MODAL_CONFIG, MODAL_DATA } from '../../helpers/modal-tokens';
|
|
4
|
+
import { ModalModule } from '../../../../components/modal/modal.module';
|
|
5
|
+
import { ButtonModule } from '../../../../components/button/button.module';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../helpers/modal-ref";
|
|
8
|
+
import * as i2 from "../../../../components/modal/modal.component";
|
|
9
|
+
import * as i3 from "../../../../components/button/button.component";
|
|
10
|
+
export class AlertModalComponent extends ModalComponent {
|
|
11
|
+
dialogRef;
|
|
12
|
+
data;
|
|
13
|
+
config;
|
|
14
|
+
model;
|
|
15
|
+
constructor(dialogRef, data, config) {
|
|
16
|
+
super();
|
|
17
|
+
this.dialogRef = dialogRef;
|
|
18
|
+
this.data = data;
|
|
19
|
+
this.config = config;
|
|
20
|
+
this.model = data;
|
|
21
|
+
this.result = this.config.defaultValue || undefined;
|
|
22
|
+
}
|
|
23
|
+
ok() {
|
|
24
|
+
this.result = true;
|
|
25
|
+
this.dialogRef.close(this.result);
|
|
26
|
+
}
|
|
27
|
+
close() {
|
|
28
|
+
this.dialogRef.close(this.result);
|
|
29
|
+
}
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AlertModalComponent, deps: [{ token: i1.ModalRef }, { token: MODAL_DATA }, { token: MODAL_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: AlertModalComponent, isStandalone: true, selector: "mrx-default-alert-modal", usesInheritance: true, ngImport: i0, template: "<mrx-modal\r\n [customClasses]=\"config.customClasses || ''\"\r\n [title]=\"model.title\"\r\n [message]=\"model.message\"\r\n [color]=\"config.color || 'default'\"\r\n size=\"small\"\r\n (close)=\"close()\"\r\n (ok)=\"ok()\"\r\n>\r\n <ng-template #footerContent>\r\n <mrx-button\r\n [type]=\"'primary'\"\r\n [size]=\"'medium'\"\r\n [color]=\"config.color || 'default'\"\r\n (click)=\"ok()\"\r\n >\r\n {{ config.okText || '\u041E\u043A' }}\r\n </mrx-button>\r\n </ng-template>\r\n</mrx-modal>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ModalModule }, { kind: "component", type: i2.ModalComponent, selector: "mrx-modal", inputs: ["title", "message", "okText", "closeText", "size", "color", "customClasses", "expandable", "isEmbed", "isClose", "isBack", "backText", "enableFooter", "alignButtons", "isLoading", "iconPosition"], outputs: ["ok", "close", "back"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.ButtonComponent, selector: "mrx-button", inputs: ["size", "type", "color", "iconPosition", "active", "disabled", "isLoading", "iconOnly", "customClasses", "label", "icon", "iconClass", "buttonType"], outputs: ["mrxClick"] }] });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AlertModalComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{ selector: 'mrx-default-alert-modal', standalone: true, imports: [
|
|
36
|
+
ModalModule,
|
|
37
|
+
ButtonModule
|
|
38
|
+
], template: "<mrx-modal\r\n [customClasses]=\"config.customClasses || ''\"\r\n [title]=\"model.title\"\r\n [message]=\"model.message\"\r\n [color]=\"config.color || 'default'\"\r\n size=\"small\"\r\n (close)=\"close()\"\r\n (ok)=\"ok()\"\r\n>\r\n <ng-template #footerContent>\r\n <mrx-button\r\n [type]=\"'primary'\"\r\n [size]=\"'medium'\"\r\n [color]=\"config.color || 'default'\"\r\n (click)=\"ok()\"\r\n >\r\n {{ config.okText || '\u041E\u043A' }}\r\n </mrx-button>\r\n </ng-template>\r\n</mrx-modal>\r\n" }]
|
|
39
|
+
}], ctorParameters: () => [{ type: i1.ModalRef }, { type: undefined, decorators: [{
|
|
40
|
+
type: Inject,
|
|
41
|
+
args: [MODAL_DATA]
|
|
42
|
+
}] }, { type: undefined, decorators: [{
|
|
43
|
+
type: Inject,
|
|
44
|
+
args: [MODAL_CONFIG]
|
|
45
|
+
}] }] });
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4v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AnZGVmYXVsdCdcIlxyXG4gICAgICAoY2xpY2spPVwib2soKVwiXHJcbiAgICA+XHJcbiAgICAgIHt7IGNvbmZpZy5va1RleHQgfHwgJ9Ce0LonIH19XHJcbiAgICA8L21yeC1idXR0b24+XHJcbiAgPC9uZy10ZW1wbGF0ZT5cclxuPC9tcngtbW9kYWw+XHJcbiJdfQ==
|
package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { MODAL_CONFIG, MODAL_DATA } from '../../helpers/modal-tokens';
|
|
3
|
+
import { ModalComponent } from '../../helpers/modal.component';
|
|
4
|
+
import { ButtonModule } from '../../../../components/button/button.module';
|
|
5
|
+
import { ModalModule } from '../../../../components/modal/modal.module';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../helpers/modal-ref";
|
|
8
|
+
import * as i2 from "../../../../components/button/button.component";
|
|
9
|
+
import * as i3 from "../../../../components/modal/modal.component";
|
|
10
|
+
export class ConfirmModalComponent extends ModalComponent {
|
|
11
|
+
dialogRef;
|
|
12
|
+
data;
|
|
13
|
+
config;
|
|
14
|
+
model;
|
|
15
|
+
constructor(dialogRef, data, config) {
|
|
16
|
+
super();
|
|
17
|
+
this.dialogRef = dialogRef;
|
|
18
|
+
this.data = data;
|
|
19
|
+
this.config = config;
|
|
20
|
+
this.model = data;
|
|
21
|
+
this.result = this.config.defaultValue || undefined;
|
|
22
|
+
}
|
|
23
|
+
ok() {
|
|
24
|
+
this.result = true;
|
|
25
|
+
this.dialogRef.close(this.result);
|
|
26
|
+
}
|
|
27
|
+
cancel() {
|
|
28
|
+
this.result = false;
|
|
29
|
+
this.dialogRef.close(this.result);
|
|
30
|
+
}
|
|
31
|
+
close() {
|
|
32
|
+
this.dialogRef.close(this.result);
|
|
33
|
+
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ConfirmModalComponent, deps: [{ token: i1.ModalRef }, { token: MODAL_DATA }, { token: MODAL_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: ConfirmModalComponent, isStandalone: true, selector: "mrx-confirm-modal", usesInheritance: true, ngImport: i0, template: "<mrx-modal\r\n [customClasses]=\"config.customClasses || ''\"\r\n [title]=\"model.title\"\r\n [message]=\"model.message\"\r\n [color]=\"config.color || 'default'\"\r\n size=\"small\"\r\n (close)=\"close()\"\r\n (ok)=\"ok()\"\r\n>\r\n <ng-template #footerContent>\r\n <mrx-button\r\n [customClasses]=\"'mr-3'\"\r\n [type]=\"'secondary'\"\r\n [size]=\"'medium'\"\r\n [color]=\"config.color || 'default'\"\r\n (click)=\"cancel()\"\r\n >\r\n {{ config.cancelText || '\u041E\u0442\u043C\u0435\u043D\u0430' }}\r\n </mrx-button>\r\n <mrx-button\r\n [type]=\"'primary'\"\r\n [size]=\"'medium'\"\r\n [color]=\"config.color || 'default'\"\r\n (click)=\"ok()\"\r\n >\r\n {{ config.okText || '\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C' }}\r\n </mrx-button>\r\n </ng-template>\r\n</mrx-modal>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2.ButtonComponent, selector: "mrx-button", inputs: ["size", "type", "color", "iconPosition", "active", "disabled", "isLoading", "iconOnly", "customClasses", "label", "icon", "iconClass", "buttonType"], outputs: ["mrxClick"] }, { kind: "ngmodule", type: ModalModule }, { kind: "component", type: i3.ModalComponent, selector: "mrx-modal", inputs: ["title", "message", "okText", "closeText", "size", "color", "customClasses", "expandable", "isEmbed", "isClose", "isBack", "backText", "enableFooter", "alignButtons", "isLoading", "iconPosition"], outputs: ["ok", "close", "back"] }] });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ConfirmModalComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{ selector: 'mrx-confirm-modal', standalone: true, imports: [
|
|
40
|
+
ButtonModule,
|
|
41
|
+
ModalModule
|
|
42
|
+
], template: "<mrx-modal\r\n [customClasses]=\"config.customClasses || ''\"\r\n [title]=\"model.title\"\r\n [message]=\"model.message\"\r\n [color]=\"config.color || 'default'\"\r\n size=\"small\"\r\n (close)=\"close()\"\r\n (ok)=\"ok()\"\r\n>\r\n <ng-template #footerContent>\r\n <mrx-button\r\n [customClasses]=\"'mr-3'\"\r\n [type]=\"'secondary'\"\r\n [size]=\"'medium'\"\r\n [color]=\"config.color || 'default'\"\r\n (click)=\"cancel()\"\r\n >\r\n {{ config.cancelText || '\u041E\u0442\u043C\u0435\u043D\u0430' }}\r\n </mrx-button>\r\n <mrx-button\r\n [type]=\"'primary'\"\r\n [size]=\"'medium'\"\r\n [color]=\"config.color || 'default'\"\r\n (click)=\"ok()\"\r\n >\r\n {{ config.okText || '\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C' }}\r\n </mrx-button>\r\n </ng-template>\r\n</mrx-modal>\r\n" }]
|
|
43
|
+
}], ctorParameters: () => [{ type: i1.ModalRef }, { type: undefined, decorators: [{
|
|
44
|
+
type: Inject,
|
|
45
|
+
args: [MODAL_DATA]
|
|
46
|
+
}] }, { type: undefined, decorators: [{
|
|
47
|
+
type: Inject,
|
|
48
|
+
args: [MODAL_CONFIG]
|
|
49
|
+
}] }] });
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9teXJ0YS11aS9zcmMvbGliL3NlcnZpY2VzL21vZ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PVwib2soKVwiXHJcbj5cclxuICA8bmctdGVtcGxhdGUgI2Zvb3RlckNvbnRlbnQ+XHJcbiAgICA8bXJ4LWJ1dHRvblxyXG4gICAgICBbY3VzdG9tQ2xhc3Nlc109XCInbXItMydcIlxyXG4gICAgICBbdHlwZV09XCInc2Vjb25kYXJ5J1wiXHJcbiAgICAgIFtzaXplXT1cIidtZWRpdW0nXCJcclxuICAgICAgW2NvbG9yXT1cImNvbmZpZy5jb2xvciB8fCAnZGVmYXVsdCdcIlxyXG4gICAgICAoY2xpY2spPVwiY2FuY2VsKClcIlxyXG4gICAgPlxyXG4gICAgICB7eyBjb25maWcuY2FuY2VsVGV4dCB8fCAn0J7RgtC80LXQvdCwJyB9fVxyXG4gICAgPC9tcngtYnV0dG9uPlxyXG4gICAgPG1yeC1idXR0b25cclxuICAgICAgW3R5cGVdPVwiJ3ByaW1hcnknXCJcclxuICAgICAgW3NpemVdPVwiJ21lZGl1bSdcIlxyXG4gICAgICBbY29sb3JdPVwiY29uZmlnLmNvbG9yIHx8ICdkZWZhdWx0J1wiXHJcbiAgICAgIChjbGljayk9XCJvaygpXCJcclxuICAgID5cclxuICAgICAge3sgY29uZmlnLm9rVGV4dCB8fCAn0KHQvtGF0YDQsNC90LjRgtGMJyB9fVxyXG4gICAgPC9tcngtYnV0dG9uPlxyXG4gIDwvbmctdGVtcGxhdGU+XHJcbjwvbXJ4LW1vZGFsPlxyXG4iXX0=
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const defaultConfig = {
|
|
2
|
+
closeOnEscape: false,
|
|
3
|
+
closeOnClickOutside: false,
|
|
4
|
+
panelClass: [],
|
|
5
|
+
hasBackdrop: true
|
|
6
|
+
};
|
|
7
|
+
export const defaultCustomConfig = {
|
|
8
|
+
color: 'default',
|
|
9
|
+
closeOnEscape: false,
|
|
10
|
+
closeOnClickOutside: false,
|
|
11
|
+
panelClass: [],
|
|
12
|
+
hasBackdrop: true
|
|
13
|
+
};
|
|
14
|
+
//# s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EN1c3RvbUNvbmZpZyA9IHtcclxuICBjb2xvcjogJ2RlZmF1bHQnLFxyXG4gIGNsb3NlT25Fc2NhcGU6IGZhbHNlLFxyXG4gIGNsb3NlT25DbGlja091dHNpZGU6IGZhbHNlLFxyXG4gIHBhbmVsQ2xhc3M6IFtdLFxyXG4gIGhhc0JhY2tkcm9wOiB0cnVlXHJcbn07XHJcbiJdfQ==
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Subject, filter } from 'rxjs';
|
|
2
|
+
export class ModalRef {
|
|
3
|
+
overlayRef;
|
|
4
|
+
config;
|
|
5
|
+
afterClosedSubject = new Subject();
|
|
6
|
+
constructor(overlayRef, config) {
|
|
7
|
+
this.overlayRef = overlayRef;
|
|
8
|
+
this.config = config;
|
|
9
|
+
if (config.closeOnClickOutside) {
|
|
10
|
+
this.overlayRef.backdropClick().subscribe(() => {
|
|
11
|
+
this.close(undefined);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
if (config.closeOnEscape) {
|
|
15
|
+
this.overlayRef.keydownEvents().pipe(filter(event => event.key === 'Escape')).subscribe(() => {
|
|
16
|
+
this.close(undefined);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
close(result) {
|
|
21
|
+
this.overlayRef.dispose();
|
|
22
|
+
this.afterClosedSubject.next(result);
|
|
23
|
+
this.afterClosedSubject.complete();
|
|
24
|
+
}
|
|
25
|
+
afterClosed() {
|
|
26
|
+
return this.afterClosedSubject.asObservable();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9zZXJ2aWNlcy9tb2RhbC1zZXJ2aWNlL2hlbHBlcnMvbW9kYWw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oKCkgPT4ge1xyXG4gICAgICAgIHRoaXMuY2xvc2UodW5kZWZpbmVkKTtcclxuICAgICAgfSk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwdWJsaWMgY2xvc2UocmVzdWx0PzogVDEpIHtcclxuICAgIHRoaXMub3ZlcmxheVJlZi5kaXNwb3NlKCk7XHJcbiAgICB0aGlzLmFmdGVyQ2xvc2VkU3ViamVjdC5uZXh0KHJlc3VsdCk7XHJcbiAgICB0aGlzLmFmdGVyQ2xvc2VkU3ViamVjdC5jb21wbGV0ZSgpO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIGFmdGVyQ2xvc2VkKCk6IE9ic2VydmFibGU8VDE+IHtcclxuICAgIHJldHVybiB0aGlzLmFmdGVyQ2xvc2VkU3ViamVjdC5hc09ic2VydmFibGUoKTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export const MODAL_DATA = new InjectionToken('MODAL_DATA');
|
|
3
|
+
export const MODAL_CONFIG = new InjectionToken('MODAL_CONFIG');
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtdG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9zZXJ2aWNlcy9tb2RhbC1zZXJ2aWNlL2hlbHBlcnMvbW9kYWwtdG9rZW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0MsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHLElBQUksY0FBYyxDQUFNLFlBQVksQ0FBQyxDQUFDO0FBQ2hFLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBRyxJQUFJLGNBQWMsQ0FBTSxjQUFjLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5leHBvcnQgY29uc3QgTU9EQUxfREFUQSA9IG5ldyBJbmplY3Rpb25Ub2tlbjxhbnk+KCdNT0RBTF9EQVRBJyk7XHJcbmV4cG9ydCBjb25zdCBNT0RBTF9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48YW55PignTU9EQUxfQ09ORklHJyk7XHJcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export class ModalComponent {
|
|
2
|
+
data;
|
|
3
|
+
result;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9zZXJ2aWNlcy9tb2RhbC1zZXJ2aWNlL2hlbHBlcnMvbW9kYWwuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxjQUFjO0lBQ3pCLElBQUksQ0FBYTtJQUNqQixNQUFNLENBQWM7Q0FDckIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgTW9kYWxDb21wb25lbnQ8RGF0YUlucHV0LCBEYXRhT3V0cHV0PiB7XHJcbiAgZGF0YSE6IERhdGFJbnB1dDtcclxuICByZXN1bHQhOiBEYXRhT3V0cHV0O1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Injectable, Injector } from '@angular/core';
|
|
2
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
+
import { ModalRef } from './helpers/modal-ref';
|
|
4
|
+
import { MODAL_CONFIG, MODAL_DATA } from './helpers/modal-tokens';
|
|
5
|
+
import { defaultConfig, defaultCustomConfig } from './helpers/modal-default-config';
|
|
6
|
+
import { AlertModalComponent } from './components/alert-modal/alert-modal.component';
|
|
7
|
+
import { ConfirmModalComponent } from './components/confirm-modal/confirm-modal.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
10
|
+
export class ModalService {
|
|
11
|
+
overlay;
|
|
12
|
+
injector;
|
|
13
|
+
constructor(overlay, injector) {
|
|
14
|
+
this.overlay = overlay;
|
|
15
|
+
this.injector = injector;
|
|
16
|
+
}
|
|
17
|
+
open(component, data, config = defaultConfig) {
|
|
18
|
+
return this.createModal(component, data, config);
|
|
19
|
+
}
|
|
20
|
+
openAlert(data, config = defaultCustomConfig) {
|
|
21
|
+
return this.createDefaultModal(AlertModalComponent, data, config);
|
|
22
|
+
}
|
|
23
|
+
openConfirm(data, config = defaultCustomConfig) {
|
|
24
|
+
return this.createDefaultModal(ConfirmModalComponent, data, config);
|
|
25
|
+
}
|
|
26
|
+
createModal(component, data, config) {
|
|
27
|
+
const positionStrategy = this.overlay
|
|
28
|
+
.position()
|
|
29
|
+
.global()
|
|
30
|
+
.centerHorizontally()
|
|
31
|
+
.centerVertically();
|
|
32
|
+
const overlayRef = this.overlay.create({
|
|
33
|
+
positionStrategy,
|
|
34
|
+
hasBackdrop: true,
|
|
35
|
+
backdropClass: 'mrx-modal',
|
|
36
|
+
panelClass: 'mrx-modal'
|
|
37
|
+
});
|
|
38
|
+
const dialogRef = new ModalRef(overlayRef, config);
|
|
39
|
+
const injector = Injector.create({
|
|
40
|
+
parent: this.injector,
|
|
41
|
+
providers: [
|
|
42
|
+
{ provide: (ModalRef), useValue: dialogRef },
|
|
43
|
+
{ provide: MODAL_DATA, useValue: data },
|
|
44
|
+
],
|
|
45
|
+
});
|
|
46
|
+
const portal = new ComponentPortal(component, null, injector);
|
|
47
|
+
overlayRef.attach(portal);
|
|
48
|
+
return dialogRef;
|
|
49
|
+
}
|
|
50
|
+
createDefaultModal(component, data, config) {
|
|
51
|
+
const positionStrategy = this.overlay
|
|
52
|
+
.position()
|
|
53
|
+
.global()
|
|
54
|
+
.centerHorizontally()
|
|
55
|
+
.centerVertically();
|
|
56
|
+
const overlayRef = this.overlay.create({
|
|
57
|
+
positionStrategy,
|
|
58
|
+
hasBackdrop: true,
|
|
59
|
+
backdropClass: 'mrx-modal',
|
|
60
|
+
panelClass: 'mrx-modal'
|
|
61
|
+
});
|
|
62
|
+
const dialogRef = new ModalRef(overlayRef, config);
|
|
63
|
+
const injector = Injector.create({
|
|
64
|
+
parent: this.injector,
|
|
65
|
+
providers: [
|
|
66
|
+
{ provide: (ModalRef), useValue: dialogRef },
|
|
67
|
+
{ provide: MODAL_DATA, useValue: data },
|
|
68
|
+
{ provide: MODAL_CONFIG, useValue: config },
|
|
69
|
+
],
|
|
70
|
+
});
|
|
71
|
+
const portal = new ComponentPortal(component, null, injector);
|
|
72
|
+
overlayRef.attach(portal);
|
|
73
|
+
return dialogRef;
|
|
74
|
+
}
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ModalService, deps: [{ token: i1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ModalService, providedIn: 'root' });
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ModalService, decorators: [{
|
|
79
|
+
type: Injectable,
|
|
80
|
+
args: [{
|
|
81
|
+
providedIn: 'root'
|
|
82
|
+
}]
|
|
83
|
+
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }] });
|
|
84
|
+
//# sourceMappingURL=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uICAgICAgaGFzQmFja2Ryb3A6IHRydWUsXHJcbiAgICAgIGJhY2tkcm9wQ2xhc3M6ICdtcngtbW9kYWwnLFxyXG4gICAgICBwYW5lbENsYXNzOiAnbXJ4LW1vZGFsJ1xyXG4gICAgfSk7XHJcblxyXG4gICAgY29uc3QgZGlhbG9nUmVmID0gbmV3IE1vZGFsUmVmPFQxPihvdmVybGF5UmVmLCBjb25maWcpO1xyXG5cclxuICAgIGNvbnN0IGluamVjdG9yID0gSW5qZWN0b3IuY3JlYXRlKHtcclxuICAgICAgcGFyZW50OiB0aGlzLmluamVjdG9yLFxyXG4gICAgICBwcm92aWRlcnM6IFtcclxuICAgICAgICB7cHJvdmlkZTogTW9kYWxSZWY8VDE+LCB1c2VWYWx1ZTogZGlhbG9nUmVmfSxcclxuICAgICAgICB7cHJvdmlkZTogTU9EQUxfREFUQSwgdXNlVmFsdWU6IGRhdGF9LFxyXG4gICAgICAgIHtwcm92aWRlOiBNT0RBTF9DT05GSUcsIHVzZVZhbHVlOiBjb25maWd9LFxyXG4gICAgICBdLFxyXG4gICAgfSk7XHJcblxyXG4gICAgY29uc3QgcG9ydGFsID0gbmV3IENvbXBvbmVudFBvcnRhbChjb21wb25lbnQsIG51bGwsIGluamVjdG9yKTtcclxuICAgIG92ZXJsYXlSZWYuYXR0YWNoKHBvcnRhbCk7XHJcblxyXG4gICAgcmV0dXJuIGRpYWxvZ1JlZjtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtY29uZmlnLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9zZXJ2aWNlcy9tb2RhbC1zZXJ2aWNlL21vZGVscy9tb2RhbC1jb25maWcubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE1vZGFsQ29sb3JUeXBlcyB9IGZyb20gJy4uLy4uLy4uL2NvbXBvbmVudHMvbW9kYWwvbW9kYWwuZW11bic7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIE1vZGFsQ29uZmlnIHtcclxuICBjbG9zZU9uRXNjYXBlPzogYm9vbGVhbjtcclxuICBjbG9zZU9uQ2xpY2tPdXRzaWRlPzogYm9vbGVhbjtcclxuICBwYW5lbENsYXNzPzogc3RyaW5nIHwgc3RyaW5nW107XHJcbiAgaGFzQmFja2Ryb3A/OiBib29sZWFuO1xyXG4gIGN1c3RvbUNsYXNzZXM/OiBzdHJpbmc7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgTW9kYWxDdXN0b21Db25maWcgZXh0ZW5kcyBNb2RhbENvbmZpZyB7XHJcbiAgY29sb3I/OiBNb2RhbENvbG9yVHlwZXM7XHJcbiAgb2tUZXh0Pzogc3RyaW5nO1xyXG4gIGNhbmNlbFRleHQ/OiBzdHJpbmc7XHJcbiAgZGVmYXVsdFZhbHVlPzogYW55O1xyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class MrxAutosaveService {
|
|
4
|
+
_fields = [];
|
|
5
|
+
stoppedTimer;
|
|
6
|
+
addId(id) {
|
|
7
|
+
const isFind = this._fields.some((field) => field.id === id);
|
|
8
|
+
clearTimeout(this.stoppedTimer);
|
|
9
|
+
if (!isFind) {
|
|
10
|
+
this._fields.push({ id: id, state: 'stopped' });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
start() {
|
|
14
|
+
this._fields = this._fields.filter((field) => field.state !== 'saved').map((field) => ({ ...field, state: 'saving' }));
|
|
15
|
+
}
|
|
16
|
+
success() {
|
|
17
|
+
this._fields = this._fields.map((field) => ({ ...field, state: 'saved' }));
|
|
18
|
+
this.stoppedTimer = setTimeout(() => {
|
|
19
|
+
this.stop();
|
|
20
|
+
}, 2000);
|
|
21
|
+
}
|
|
22
|
+
stop() {
|
|
23
|
+
this._fields = this._fields.map((field) => ({ ...field, state: 'stopped' }));
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
this._fields.length = 0;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
error() {
|
|
29
|
+
this._fields = this._fields.map((field) => ({ ...field, state: 'error' }));
|
|
30
|
+
this.stoppedTimer = setTimeout(() => {
|
|
31
|
+
this.stop();
|
|
32
|
+
}, 2000);
|
|
33
|
+
}
|
|
34
|
+
get fields() {
|
|
35
|
+
return this._fields;
|
|
36
|
+
}
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MrxAutosaveService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MrxAutosaveService });
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MrxAutosaveService, decorators: [{
|
|
41
|
+
type: Injectable
|
|
42
|
+
}] });
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXJ4LWF1dG9zYXZlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9teXJ0YS11aS9zcmMvbGliL3NlcnZpY2VzL21yeC1hdXRvc2F2ZS9tcngtYXV0b3NhdmUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFF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