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.
Files changed (755) hide show
  1. package/esm2022/lib/components/alert/alert.component.mjs +43 -0
  2. package/{esm2020 → esm2022}/lib/components/alert/alert.enum.mjs +14 -14
  3. package/esm2022/lib/components/alert/alert.module.mjs +19 -0
  4. package/{esm2020 → esm2022}/lib/components/badges/badge.enum.mjs +31 -31
  5. package/esm2022/lib/components/badges/badges.module.mjs +30 -0
  6. package/esm2022/lib/components/badges/components/badge/badge.component.mjs +61 -0
  7. package/{esm2020 → esm2022}/lib/components/badges/components/badge-group/badge-group.component.mjs +11 -11
  8. package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +28 -0
  9. package/{esm2020 → esm2022}/lib/components/breadcrumbs/breadcrumbs.enum.mjs +5 -5
  10. package/esm2022/lib/components/breadcrumbs/breadcrumbs.module.mjs +25 -0
  11. package/esm2022/lib/components/button/button.component.mjs +100 -0
  12. package/esm2022/lib/components/button/button.enum.mjs +27 -0
  13. package/esm2022/lib/components/button/button.module.mjs +21 -0
  14. package/esm2022/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.mjs +29 -0
  15. package/esm2022/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +99 -0
  16. package/esm2022/lib/components/cdk-tooltip/cdk-tooltip.module.mjs +21 -0
  17. package/{esm2020 → esm2022}/lib/components/cdk-tooltip/constants/index.mjs +69 -69
  18. package/{esm2020 → esm2022}/lib/components/cdk-tooltip/models/tooltip-data.mjs +1 -1
  19. package/esm2022/lib/components/chars-left/chars-left.component.mjs +24 -0
  20. package/esm2022/lib/components/chars-left/chars-left.module.mjs +19 -0
  21. package/esm2022/lib/components/dropdown/directives/hide-after-click.directive.mjs +24 -0
  22. package/esm2022/lib/components/dropdown/dropdown.component.mjs +107 -0
  23. package/esm2022/lib/components/dropdown/dropdown.module.mjs +21 -0
  24. package/esm2022/lib/components/error-message/error-message.component.mjs +32 -0
  25. package/esm2022/lib/components/error-message/error-message.module.mjs +19 -0
  26. package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +153 -0
  27. package/{esm2020 → esm2022}/lib/components/form/checkbox/checkbox.enum.mjs +4 -4
  28. package/esm2022/lib/components/form/checkbox/checkbox.module.mjs +22 -0
  29. package/esm2022/lib/components/form/checkbox-group/checkbox-group.component.mjs +178 -0
  30. package/esm2022/lib/components/form/checkbox-group/checkbox-group.module.mjs +47 -0
  31. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.mjs +48 -49
  32. package/esm2022/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +106 -0
  33. package/esm2022/lib/components/form/checkbox-group/helpers/change-group-value.mjs +20 -0
  34. package/esm2022/lib/components/form/checkbox-group/helpers/change-item-value.mjs +15 -0
  35. package/esm2022/lib/components/form/checkbox-group/helpers/filter-search-group.mjs +27 -0
  36. package/esm2022/lib/components/form/checkbox-group/helpers/get-checked-items.mjs +20 -0
  37. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/helpers/get-item-by-id.mjs +10 -10
  38. package/esm2022/lib/components/form/checkbox-group/helpers/get-sorted-list.mjs +50 -0
  39. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/models/checkbox-group.model.mjs +1 -1
  40. package/{esm2020 → esm2022}/lib/components/form/editor/config/default-inline-style.mjs +5 -5
  41. package/{esm2020 → esm2022}/lib/components/form/editor/config/index.mjs +1 -1
  42. package/{esm2020 → esm2022}/lib/components/form/editor/config/popups-toolbar.mjs +8 -8
  43. package/{esm2020 → esm2022}/lib/components/form/editor/config/toolbar.mjs +71 -71
  44. package/esm2022/lib/components/form/editor/editor.component.mjs +261 -0
  45. package/esm2022/lib/components/form/editor/editor.module.mjs +45 -0
  46. package/{esm2020 → esm2022}/lib/components/form/editor/models/toolbar.model.mjs +1 -1
  47. package/esm2022/lib/components/form/editor/modules/change-icon-module.mjs +92 -0
  48. package/{esm2020 → esm2022}/lib/components/form/input-date-time/constants/value-models.mjs +13 -13
  49. package/{esm2020 → esm2022}/lib/components/form/input-date-time/enum/timezone.mjs +6 -6
  50. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/clean-date.mjs +4 -4
  51. package/esm2022/lib/components/form/input-date-time/helpers/cursor-position.mjs +23 -0
  52. package/esm2022/lib/components/form/input-date-time/helpers/formatting-from-models.mjs +10 -0
  53. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.mjs +9 -9
  54. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/validate-value-models.mjs +60 -60
  55. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/value-parser.mjs +38 -38
  56. package/esm2022/lib/components/form/input-date-time/input-date-time.component.mjs +386 -0
  57. package/{esm2020 → esm2022}/lib/components/form/input-date-time/input-date-time.enum.mjs +6 -6
  58. package/esm2022/lib/components/form/input-date-time/input-date-time.module.mjs +46 -0
  59. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/constants/value-models.mjs +14 -14
  60. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/clean-date.mjs +4 -4
  61. package/esm2022/lib/components/form/input-datepicker/helpers/cursor-position.mjs +23 -0
  62. package/esm2022/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.mjs +10 -0
  63. package/esm2022/lib/components/form/input-datepicker/helpers/get-date-object.mjs +10 -0
  64. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/validate-value-models.mjs +74 -74
  65. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/value-parser.mjs +47 -47
  66. package/esm2022/lib/components/form/input-datepicker/input-datepicker.component.mjs +356 -0
  67. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/input-datepicker.enum.mjs +6 -6
  68. package/esm2022/lib/components/form/input-datepicker/input-datepicker.module.mjs +46 -0
  69. package/{esm2020 → esm2022}/lib/components/form/input-file/enums/error-messages.enum.mjs +7 -7
  70. package/esm2022/lib/components/form/input-file/input-file.component.mjs +370 -0
  71. package/{esm2020 → esm2022}/lib/components/form/input-file/input-file.enum.mjs +7 -7
  72. package/esm2022/lib/components/form/input-file/input-file.module.mjs +26 -0
  73. package/esm2022/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +88 -0
  74. package/esm2022/lib/components/form/input-file-image/input-file-image.component.mjs +364 -0
  75. package/{esm2020 → esm2022}/lib/components/form/input-file-image/input-file-image.enum.mjs +9 -9
  76. package/esm2022/lib/components/form/input-file-image/input-file-image.module.mjs +51 -0
  77. package/esm2022/lib/components/form/input-number/input-number.component.mjs +267 -0
  78. package/{esm2020 → esm2022}/lib/components/form/input-number/input-number.enum.mjs +6 -6
  79. package/esm2022/lib/components/form/input-number/input-number.module.mjs +55 -0
  80. package/esm2022/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +370 -0
  81. package/{esm2020 → esm2022}/lib/components/form/input-opt/components/input-opt/input-opt.enum.mjs +7 -7
  82. package/esm2022/lib/components/form/input-opt/directives/opt-pattern.directive.mjs +43 -0
  83. package/esm2022/lib/components/form/input-opt/input-opt.module.mjs +38 -0
  84. package/{esm2020 → esm2022}/lib/components/form/input-opt/models/input-opt.model.mjs +5 -5
  85. package/{esm2020 → esm2022}/lib/components/form/input-opt/services/input-opt.service.mjs +33 -33
  86. package/esm2022/lib/components/form/input-password/input-password.component.mjs +118 -0
  87. package/{esm2020 → esm2022}/lib/components/form/input-password/input-password.enum.mjs +6 -6
  88. package/esm2022/lib/components/form/input-password/input-password.module.mjs +36 -0
  89. package/esm2022/lib/components/form/input-phone/data/country-code.mjs +1331 -0
  90. package/esm2022/lib/components/form/input-phone/directives/native-element-injector.directive.mjs +35 -0
  91. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/country-iso.enum.mjs +246 -246
  92. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/input-phone.enum.mjs +6 -6
  93. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/mask.enum.mjs +138 -138
  94. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/phone-number-format.enum.mjs +5 -5
  95. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/search-country-field.enum.mjs +7 -7
  96. package/esm2022/lib/components/form/input-phone/input-phone.component.mjs +679 -0
  97. package/esm2022/lib/components/form/input-phone/input-phone.module.mjs +50 -0
  98. package/esm2022/lib/components/form/input-phone/input-phone.validator.mjs +61 -0
  99. package/{esm2020 → esm2022}/lib/components/form/input-phone/interfaces/change-data.mjs +1 -1
  100. package/{esm2020 → esm2022}/lib/components/form/input-phone/models/country.model.mjs +1 -1
  101. package/esm2022/lib/components/form/input-search/input-search.component.mjs +167 -0
  102. package/{esm2020 → esm2022}/lib/components/form/input-search/input-search.enum.mjs +6 -6
  103. package/esm2022/lib/components/form/input-search/input-search.module.mjs +41 -0
  104. package/esm2022/lib/components/form/input-select/input-select.component.mjs +253 -0
  105. package/{esm2020 → esm2022}/lib/components/form/input-select/input-select.enum.mjs +5 -5
  106. package/esm2022/lib/components/form/input-select/input-select.module.mjs +45 -0
  107. package/{esm2020 → esm2022}/lib/components/form/input-tel/assets/base64.mjs +3 -3
  108. package/{esm2020 → esm2022}/lib/components/form/input-tel/data/all-countries.mjs +1322 -1322
  109. package/{esm2020 → esm2022}/lib/components/form/input-tel/data/country-iso.enum.mjs +246 -246
  110. package/{esm2020 → esm2022}/lib/components/form/input-tel/data/phone-number-format.enum.mjs +5 -5
  111. package/{esm2020 → esm2022}/lib/components/form/input-tel/data/search-country-field.enum.mjs +7 -7
  112. package/esm2022/lib/components/form/input-tel/directives/input-tel.directive.mjs +66 -0
  113. package/{esm2020 → esm2022}/lib/components/form/input-tel/enums/input-phone.enum.mjs +6 -6
  114. package/esm2022/lib/components/form/input-tel/input-tel.component.mjs +400 -0
  115. package/esm2022/lib/components/form/input-tel/input-tel.module.mjs +43 -0
  116. package/{esm2020 → esm2022}/lib/components/form/input-tel/models/country.model.mjs +1 -1
  117. package/esm2022/lib/components/form/input-text/input-text.component.mjs +189 -0
  118. package/{esm2020 → esm2022}/lib/components/form/input-text/input-text.enum.mjs +14 -14
  119. package/esm2022/lib/components/form/input-text/input-text.module.mjs +49 -0
  120. package/esm2022/lib/components/form/input-textarea/input-textarea.component.mjs +197 -0
  121. package/{esm2020 → esm2022}/lib/components/form/input-textarea/input-textarea.enum.mjs +6 -6
  122. package/esm2022/lib/components/form/input-textarea/input-textarea.module.mjs +49 -0
  123. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/constants/value-models.mjs +7 -7
  124. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/clean-date.mjs +4 -4
  125. package/esm2022/lib/components/form/input-timepicker/helpers/cursor-position.mjs +14 -0
  126. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/get-date-dayjs-object.mjs +4 -4
  127. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/get-date-object.mjs +4 -4
  128. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/validate-value-models.mjs +29 -29
  129. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/value-parser.mjs +17 -17
  130. package/esm2022/lib/components/form/input-timepicker/input-timepicker.component.mjs +292 -0
  131. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/input-timepicker.enum.mjs +6 -6
  132. package/esm2022/lib/components/form/input-timepicker/input-timepicker.module.mjs +46 -0
  133. package/esm2022/lib/components/form/radio/radio.component.mjs +91 -0
  134. package/{esm2020 → esm2022}/lib/components/form/radio/radio.enum.mjs +4 -4
  135. package/esm2022/lib/components/form/radio/radio.module.mjs +20 -0
  136. package/esm2022/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +45 -0
  137. package/esm2022/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +66 -0
  138. package/esm2022/lib/components/form/radio-group/helpers/filter-search-group.mjs +27 -0
  139. package/{esm2020 → esm2022}/lib/components/form/radio-group/helpers/get-item-by-id.mjs +10 -10
  140. package/esm2022/lib/components/form/radio-group/helpers/move-selected-to-first.mjs +27 -0
  141. package/{esm2020 → esm2022}/lib/components/form/radio-group/models/radio-group.model.mjs +1 -1
  142. package/esm2022/lib/components/form/radio-group/radio-group.component.mjs +175 -0
  143. package/esm2022/lib/components/form/radio-group/radio-group.module.mjs +26 -0
  144. package/esm2022/lib/components/form/rating/rating.component.mjs +215 -0
  145. package/{esm2020 → esm2022}/lib/components/form/rating/rating.enum.mjs +15 -15
  146. package/esm2022/lib/components/form/rating/rating.module.mjs +25 -0
  147. package/esm2022/lib/components/form/switch/switch.component.mjs +95 -0
  148. package/{esm2020 → esm2022}/lib/components/form/switch/switch.enum.mjs +10 -10
  149. package/esm2022/lib/components/form/switch/switch.module.mjs +21 -0
  150. package/esm2022/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +39 -0
  151. package/esm2022/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +112 -0
  152. package/{esm2020 → esm2022}/lib/components/gallery/constants/custom-buttons-default.mjs +6 -6
  153. package/{esm2020 → esm2022}/lib/components/gallery/constants/thumbs-config-default.mjs +4 -4
  154. package/esm2022/lib/components/gallery/gallery.component.mjs +203 -0
  155. package/esm2022/lib/components/gallery/gallery.module.mjs +54 -0
  156. package/{esm2020 → esm2022}/lib/components/gallery/models/gallery-item.model.mjs +1 -1
  157. package/esm2022/lib/components/gallery/services/gallery.service.mjs +33 -0
  158. package/esm2022/lib/components/hint-error-message/hint-error-message.component.mjs +121 -0
  159. package/esm2022/lib/components/hint-error-message/hint-error-message.module.mjs +19 -0
  160. package/esm2022/lib/components/icon-button/icon-button.component.mjs +49 -0
  161. package/{esm2020 → esm2022}/lib/components/icon-button/icon-button.enum.mjs +15 -15
  162. package/esm2022/lib/components/icon-button/icon-button.module.mjs +19 -0
  163. package/esm2022/lib/components/label/label.component.mjs +143 -0
  164. package/esm2022/lib/components/label/label.module.mjs +25 -0
  165. package/esm2022/lib/components/link/link.component.mjs +48 -0
  166. package/{esm2020 → esm2022}/lib/components/link/link.enum.mjs +19 -19
  167. package/esm2022/lib/components/link/link.module.mjs +19 -0
  168. package/esm2022/lib/components/loader/loader.component.mjs +24 -0
  169. package/{esm2020 → esm2022}/lib/components/loader/loader.enum.mjs +19 -19
  170. package/esm2022/lib/components/loader/loader.module.mjs +19 -0
  171. package/esm2022/lib/components/modal/modal.component.mjs +137 -0
  172. package/{esm2020 → esm2022}/lib/components/modal/modal.emun.mjs +20 -20
  173. package/esm2022/lib/components/modal/modal.module.mjs +20 -0
  174. package/esm2022/lib/components/pages-nav/pages-nav.component.mjs +31 -0
  175. package/{esm2020 → esm2022}/lib/components/pages-nav/pages-nav.enum.mjs +5 -5
  176. package/esm2022/lib/components/pages-nav/pages-nav.module.mjs +24 -0
  177. package/esm2022/lib/components/paginator/paginator.component.mjs +140 -0
  178. package/{esm2020 → esm2022}/lib/components/paginator/paginator.enum.mjs +5 -5
  179. package/esm2022/lib/components/paginator/paginator.module.mjs +31 -0
  180. package/esm2022/lib/components/progress/progress.component.mjs +24 -0
  181. package/{esm2020 → esm2022}/lib/components/progress/progress.enum.mjs +7 -7
  182. package/esm2022/lib/components/progress/progress.module.mjs +19 -0
  183. package/esm2022/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.mjs +16 -0
  184. package/esm2022/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.mjs +16 -0
  185. package/esm2022/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +16 -0
  186. package/esm2022/lib/components/save-state/components/save-state-input/save-state-input.component.mjs +16 -0
  187. package/esm2022/lib/components/save-state/components/save-state-switch/save-state-switch.component.mjs +16 -0
  188. package/esm2022/lib/components/save-state/save-state.component.mjs +40 -0
  189. package/{esm2020 → esm2022}/lib/components/save-state/save-state.enum.mjs +1 -1
  190. package/esm2022/lib/components/save-state/save-state.module.mjs +37 -0
  191. package/esm2022/lib/components/stepper/stepper.component.mjs +52 -0
  192. package/{esm2020 → esm2022}/lib/components/stepper/stepper.enum.mjs +5 -5
  193. package/esm2022/lib/components/stepper/stepper.module.mjs +20 -0
  194. package/esm2022/lib/components/table/components/column/column.component.mjs +40 -0
  195. package/{esm2020 → esm2022}/lib/components/table/default/default-pager-settings.mjs +6 -6
  196. package/{esm2020 → esm2022}/lib/components/table/models/data-state-change.event.mjs +1 -1
  197. package/{esm2020 → esm2022}/lib/components/table/models/index.mjs +3 -3
  198. package/{esm2020 → esm2022}/lib/components/table/models/pager-settings.mjs +1 -1
  199. package/esm2022/lib/components/table/table.component.mjs +281 -0
  200. package/{esm2020 → esm2022}/lib/components/table/table.enum.mjs +7 -7
  201. package/esm2022/lib/components/table/table.module.mjs +50 -0
  202. package/esm2022/lib/components/tabs/tab/tab.component.mjs +33 -0
  203. package/esm2022/lib/components/tabs/tabs-group/tabs-group.component.mjs +27 -0
  204. package/{esm2020 → esm2022}/lib/components/tabs/tabs.enum.mjs +13 -13
  205. package/esm2022/lib/components/tabs/tabs.module.mjs +20 -0
  206. package/esm2022/lib/components/tooltip/services/tooltip.service.mjs +65 -0
  207. package/esm2022/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +36 -0
  208. package/{esm2020 → esm2022}/lib/components/tooltip/tooltip-trigger/tooltip-trigger.enum.mjs +10 -10
  209. package/esm2022/lib/components/tooltip/tooltip.component.mjs +59 -0
  210. package/{esm2020 → esm2022}/lib/components/tooltip/tooltip.enum.mjs +5 -5
  211. package/esm2022/lib/components/tooltip/tooltip.module.mjs +21 -0
  212. package/{esm2020 → esm2022}/lib/components/truncate-text/directives/truncate-text.directive.mjs +149 -139
  213. package/esm2022/lib/components/truncate-text/truncate-text.component.mjs +30 -0
  214. package/{esm2020 → esm2022}/lib/components/truncate-text/truncate-text.enum.mjs +1 -1
  215. package/esm2022/lib/components/truncate-text/truncate-text.module.mjs +21 -0
  216. package/esm2022/lib/components/warning-message/warning-message.component.mjs +29 -0
  217. package/esm2022/lib/components/warning-message/warning-message.module.mjs +19 -0
  218. package/esm2022/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +25 -0
  219. package/{esm2020 → esm2022}/lib/components/wrappers/content-wrapper/content-wrapper.enum.mjs +5 -5
  220. package/esm2022/lib/components/wrappers/content-wrapper/content-wrapper.module.mjs +19 -0
  221. package/esm2022/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.mjs +15 -0
  222. package/esm2022/lib/components/wrappers/controls-wrapper/controls-wrapper.component.mjs +23 -0
  223. package/{esm2020 → esm2022}/lib/components/wrappers/controls-wrapper/controls-wrapper.enum.mjs +6 -6
  224. package/esm2022/lib/components/wrappers/controls-wrapper/controls-wrapper.module.mjs +20 -0
  225. package/esm2022/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +99 -0
  226. package/{esm2020 → esm2022}/lib/components/wrappers/widget-wrapper/widget-wrapper.enum.mjs +16 -16
  227. package/esm2022/lib/components/wrappers/widget-wrapper/widget-wrapper.module.mjs +24 -0
  228. package/esm2022/lib/directives/autosize/autosize.directive.mjs +57 -0
  229. package/esm2022/lib/directives/autosize/autosize.module.mjs +24 -0
  230. package/esm2022/lib/directives/truncate/truncate.directive.mjs +34 -0
  231. package/esm2022/lib/directives/truncate/truncate.module.mjs +18 -0
  232. package/{esm2020 → esm2022}/lib/enums/typed.input.state.mjs +7 -7
  233. package/esm2022/lib/helpers/extension/input-file.extension.mjs +39 -0
  234. package/esm2022/lib/helpers/formatting-date.mjs +51 -0
  235. package/{esm2020 → esm2022}/lib/helpers/formatting-dates-from-array.mjs +18 -18
  236. package/{esm2020 → esm2022}/lib/helpers/formatting-iso-to-string.mjs +12 -12
  237. package/{esm2020 → esm2022}/lib/helpers/index.mjs +7 -7
  238. package/{esm2020 → esm2022}/lib/helpers/number-format.mjs +8 -8
  239. package/esm2022/lib/helpers/string-hash-code.mjs +17 -0
  240. package/{esm2020 → esm2022}/lib/helpers/word-form.mjs +10 -10
  241. package/{esm2020 → esm2022}/lib/models/index.mjs +2 -2
  242. package/{esm2020 → esm2022}/lib/models/input-file/input-file.model.mjs +1 -1
  243. package/{esm2020 → esm2022}/lib/models/typed-input-model.mjs +1 -1
  244. package/esm2022/lib/pipes/currency/currency.module.mjs +20 -0
  245. package/esm2022/lib/pipes/currency/currency.pipe.mjs +22 -0
  246. package/esm2022/lib/pipes/date/date-format.module.mjs +19 -0
  247. package/esm2022/lib/pipes/date/date-format.pipe.mjs +21 -0
  248. package/esm2022/lib/pipes/date/date-time-format.pipe.mjs +21 -0
  249. package/{esm2020 → esm2022}/lib/pipes/date/enums/timezone.mjs +9 -9
  250. package/{esm2020 → esm2022}/lib/pipes/date/helpers/change-timezone.mjs +22 -22
  251. package/esm2022/lib/pipes/phone/phone-format.module.mjs +18 -0
  252. package/esm2022/lib/pipes/phone/phone-format.pipe.mjs +23 -0
  253. package/esm2022/lib/pipes/safe/safe.module.mjs +20 -0
  254. package/esm2022/lib/pipes/safe/safe.pipe.mjs +21 -0
  255. package/esm2022/lib/pipes/truncate/truncate.module.mjs +20 -0
  256. package/esm2022/lib/pipes/truncate/truncate.pipe.mjs +23 -0
  257. package/esm2022/lib/services/file-upload/file-upload.service.mjs +27 -0
  258. package/{esm2020 → esm2022}/lib/services/index.mjs +6 -6
  259. package/esm2022/lib/services/modal-service/components/alert-modal/alert-modal.component.mjs +46 -0
  260. package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs +50 -0
  261. package/esm2022/lib/services/modal-service/helpers/modal-default-config.mjs +14 -0
  262. package/esm2022/lib/services/modal-service/helpers/modal-ref.mjs +29 -0
  263. package/esm2022/lib/services/modal-service/helpers/modal-tokens.mjs +4 -0
  264. package/esm2022/lib/services/modal-service/helpers/modal.component.mjs +5 -0
  265. package/esm2022/lib/services/modal-service/modal-service.service.mjs +84 -0
  266. package/esm2022/lib/services/modal-service/models/modal-config.model.mjs +2 -0
  267. package/esm2022/lib/services/mrx-autosave/mrx-autosave.service.mjs +43 -0
  268. package/esm2022/lib/services/mrx-form-validator/mrx-form-validator.mjs +283 -0
  269. package/{esm2020 → esm2022}/lib/services/save-store/constants/constants.mjs +1 -1
  270. package/{esm2020 → esm2022}/lib/services/save-store/models/save-store.model.mjs +1 -1
  271. package/esm2022/lib/services/save-store/save-store.module.mjs +29 -0
  272. package/{esm2020 → esm2022}/lib/services/save-store/store/actions.mjs +22 -22
  273. package/esm2022/lib/services/save-store/store/effect.mjs +61 -0
  274. package/esm2022/lib/services/save-store/store/reducer.mjs +96 -0
  275. package/{esm2020 → esm2022}/lib/services/save-store/store/selectors.mjs +4 -4
  276. package/{esm2020 → esm2022}/lib/services/save-store/store/state.mjs +3 -3
  277. package/{esm2020 → esm2022}/myrta-ui.mjs +4 -4
  278. package/esm2022/public-api.mjs +176 -0
  279. package/fesm2022/myrta-ui.mjs +15458 -0
  280. package/fesm2022/myrta-ui.mjs.map +1 -0
  281. package/{myrta-ui.d.ts → index.d.ts} +5 -5
  282. package/lib/components/alert/alert.component.d.ts +17 -17
  283. package/lib/components/alert/alert.enum.d.ts +13 -13
  284. package/lib/components/alert/alert.module.d.ts +8 -8
  285. package/lib/components/badges/badge.enum.d.ts +38 -38
  286. package/lib/components/badges/badges.module.d.ts +9 -9
  287. package/lib/components/badges/components/badge/badge.component.d.ts +21 -21
  288. package/lib/components/badges/components/badge-group/badge-group.component.d.ts +5 -5
  289. package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +11 -11
  290. package/lib/components/breadcrumbs/breadcrumbs.enum.d.ts +11 -11
  291. package/lib/components/breadcrumbs/breadcrumbs.module.d.ts +8 -8
  292. package/lib/components/button/button.component.d.ts +31 -31
  293. package/lib/components/button/button.enum.d.ts +27 -29
  294. package/lib/components/button/button.module.d.ts +10 -10
  295. package/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.d.ts +13 -13
  296. package/lib/components/cdk-tooltip/cdk-tooltip.directive.d.ts +24 -24
  297. package/lib/components/cdk-tooltip/cdk-tooltip.module.d.ts +10 -10
  298. package/lib/components/cdk-tooltip/constants/index.d.ts +7 -7
  299. package/lib/components/cdk-tooltip/models/tooltip-data.d.ts +6 -6
  300. package/lib/components/chars-left/chars-left.component.d.ts +9 -9
  301. package/lib/components/chars-left/chars-left.module.d.ts +8 -8
  302. package/lib/components/dropdown/directives/hide-after-click.directive.d.ts +9 -9
  303. package/lib/components/dropdown/dropdown.component.d.ts +26 -26
  304. package/lib/components/dropdown/dropdown.module.d.ts +10 -10
  305. package/lib/components/error-message/error-message.component.d.ts +10 -10
  306. package/lib/components/error-message/error-message.module.d.ts +8 -8
  307. package/lib/components/form/checkbox/checkbox.component.d.ts +48 -48
  308. package/lib/components/form/checkbox/checkbox.enum.d.ts +14 -14
  309. package/lib/components/form/checkbox/checkbox.module.d.ts +11 -11
  310. package/lib/components/form/checkbox-group/checkbox-group.component.d.ts +54 -54
  311. package/lib/components/form/checkbox-group/checkbox-group.module.d.ts +16 -16
  312. package/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.d.ts +19 -19
  313. package/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.d.ts +26 -26
  314. package/lib/components/form/checkbox-group/helpers/change-group-value.d.ts +3 -3
  315. package/lib/components/form/checkbox-group/helpers/change-item-value.d.ts +3 -3
  316. package/lib/components/form/checkbox-group/helpers/filter-search-group.d.ts +2 -2
  317. package/lib/components/form/checkbox-group/helpers/get-checked-items.d.ts +2 -2
  318. package/lib/components/form/checkbox-group/helpers/get-item-by-id.d.ts +2 -2
  319. package/lib/components/form/checkbox-group/helpers/get-sorted-list.d.ts +2 -2
  320. package/lib/components/form/checkbox-group/models/checkbox-group.model.d.ts +15 -15
  321. package/lib/components/form/editor/config/default-inline-style.d.ts +11 -11
  322. package/lib/components/form/editor/config/index.d.ts +1 -1
  323. package/lib/components/form/editor/config/popups-toolbar.d.ts +15 -15
  324. package/lib/components/form/editor/config/toolbar.d.ts +2 -2
  325. package/lib/components/form/editor/editor.component.d.ts +63 -49
  326. package/lib/components/form/editor/editor.module.d.ts +14 -14
  327. package/lib/components/form/editor/models/toolbar.model.d.ts +6 -6
  328. package/lib/components/form/editor/modules/change-icon-module.d.ts +1 -1
  329. package/lib/components/form/input-date-time/constants/value-models.d.ts +3 -3
  330. package/lib/components/form/input-date-time/enum/timezone.d.ts +6 -6
  331. package/lib/components/form/input-date-time/helpers/clean-date.d.ts +1 -1
  332. package/lib/components/form/input-date-time/helpers/cursor-position.d.ts +1 -1
  333. package/lib/components/form/input-date-time/helpers/formatting-from-models.d.ts +3 -3
  334. package/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.d.ts +2 -2
  335. package/lib/components/form/input-date-time/helpers/validate-value-models.d.ts +19 -19
  336. package/lib/components/form/input-date-time/helpers/value-parser.d.ts +4 -4
  337. package/lib/components/form/input-date-time/input-date-time.component.d.ts +72 -72
  338. package/lib/components/form/input-date-time/input-date-time.enum.d.ts +21 -21
  339. package/lib/components/form/input-date-time/input-date-time.module.d.ts +13 -13
  340. package/lib/components/form/input-datepicker/constants/value-models.d.ts +3 -3
  341. package/lib/components/form/input-datepicker/helpers/clean-date.d.ts +1 -1
  342. package/lib/components/form/input-datepicker/helpers/cursor-position.d.ts +1 -1
  343. package/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.d.ts +3 -3
  344. package/lib/components/form/input-datepicker/helpers/get-date-object.d.ts +2 -2
  345. package/lib/components/form/input-datepicker/helpers/validate-value-models.d.ts +20 -20
  346. package/lib/components/form/input-datepicker/helpers/value-parser.d.ts +3 -3
  347. package/lib/components/form/input-datepicker/input-datepicker.component.d.ts +69 -69
  348. package/lib/components/form/input-datepicker/input-datepicker.enum.d.ts +12 -12
  349. package/lib/components/form/input-datepicker/input-datepicker.module.d.ts +13 -13
  350. package/lib/components/form/input-file/enums/error-messages.enum.d.ts +6 -6
  351. package/lib/components/form/input-file/input-file.component.d.ts +72 -72
  352. package/lib/components/form/input-file/input-file.enum.d.ts +7 -7
  353. package/lib/components/form/input-file/input-file.module.d.ts +13 -13
  354. package/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.d.ts +42 -39
  355. package/lib/components/form/input-file-image/input-file-image.component.d.ts +62 -62
  356. package/lib/components/form/input-file-image/input-file-image.enum.d.ts +8 -8
  357. package/lib/components/form/input-file-image/input-file-image.module.d.ts +15 -16
  358. package/lib/components/form/input-number/input-number.component.d.ts +64 -64
  359. package/lib/components/form/input-number/input-number.enum.d.ts +12 -12
  360. package/lib/components/form/input-number/input-number.module.d.ts +13 -13
  361. package/lib/components/form/input-opt/components/input-opt/input-opt.component.d.ts +77 -77
  362. package/lib/components/form/input-opt/components/input-opt/input-opt.enum.d.ts +7 -7
  363. package/lib/components/form/input-opt/directives/opt-pattern.directive.d.ts +8 -8
  364. package/lib/components/form/input-opt/input-opt.module.d.ts +11 -11
  365. package/lib/components/form/input-opt/models/input-opt.model.d.ts +26 -26
  366. package/lib/components/form/input-opt/services/input-opt.service.d.ts +11 -11
  367. package/lib/components/form/input-password/input-password.component.d.ts +38 -38
  368. package/lib/components/form/input-password/input-password.enum.d.ts +7 -7
  369. package/lib/components/form/input-password/input-password.module.d.ts +11 -11
  370. package/lib/components/form/input-phone/data/country-code.d.ts +6 -6
  371. package/lib/components/form/input-phone/directives/native-element-injector.directive.d.ts +11 -11
  372. package/lib/components/form/input-phone/enums/country-iso.enum.d.ts +245 -245
  373. package/lib/components/form/input-phone/enums/input-phone.enum.d.ts +11 -11
  374. package/lib/components/form/input-phone/enums/mask.enum.d.ts +8 -8
  375. package/lib/components/form/input-phone/enums/phone-number-format.enum.d.ts +4 -4
  376. package/lib/components/form/input-phone/enums/search-country-field.enum.d.ts +6 -6
  377. package/lib/components/form/input-phone/input-phone.component.d.ts +132 -132
  378. package/lib/components/form/input-phone/input-phone.module.d.ts +14 -14
  379. package/lib/components/form/input-phone/input-phone.validator.d.ts +5 -5
  380. package/lib/components/form/input-phone/interfaces/change-data.d.ts +9 -9
  381. package/lib/components/form/input-phone/models/country.model.d.ts +13 -13
  382. package/lib/components/form/input-search/input-search.component.d.ts +48 -48
  383. package/lib/components/form/input-search/input-search.enum.d.ts +6 -6
  384. package/lib/components/form/input-search/input-search.module.d.ts +12 -12
  385. package/lib/components/form/input-select/input-select.component.d.ts +84 -84
  386. package/lib/components/form/input-select/input-select.enum.d.ts +10 -10
  387. package/lib/components/form/input-select/input-select.module.d.ts +14 -14
  388. package/lib/components/form/input-tel/assets/base64.d.ts +3 -3
  389. package/lib/components/form/input-tel/data/all-countries.d.ts +1 -1
  390. package/lib/components/form/input-tel/data/country-iso.enum.d.ts +245 -245
  391. package/lib/components/form/input-tel/data/phone-number-format.enum.d.ts +5 -5
  392. package/lib/components/form/input-tel/data/search-country-field.enum.d.ts +6 -6
  393. package/lib/components/form/input-tel/directives/input-tel.directive.d.ts +21 -21
  394. package/lib/components/form/input-tel/enums/input-phone.enum.d.ts +11 -11
  395. package/lib/components/form/input-tel/input-tel.component.d.ts +89 -89
  396. package/lib/components/form/input-tel/input-tel.module.d.ts +13 -14
  397. package/lib/components/form/input-tel/models/country.model.d.ts +18 -18
  398. package/lib/components/form/input-text/input-text.component.d.ts +54 -54
  399. package/lib/components/form/input-text/input-text.enum.d.ts +19 -19
  400. package/lib/components/form/input-text/input-text.module.d.ts +14 -14
  401. package/lib/components/form/input-textarea/input-textarea.component.d.ts +54 -54
  402. package/lib/components/form/input-textarea/input-textarea.enum.d.ts +11 -11
  403. package/lib/components/form/input-textarea/input-textarea.module.d.ts +14 -14
  404. package/lib/components/form/input-timepicker/constants/value-models.d.ts +2 -2
  405. package/lib/components/form/input-timepicker/helpers/clean-date.d.ts +1 -1
  406. package/lib/components/form/input-timepicker/helpers/cursor-position.d.ts +1 -1
  407. package/lib/components/form/input-timepicker/helpers/get-date-dayjs-object.d.ts +3 -3
  408. package/lib/components/form/input-timepicker/helpers/get-date-object.d.ts +2 -2
  409. package/lib/components/form/input-timepicker/helpers/validate-value-models.d.ts +10 -10
  410. package/lib/components/form/input-timepicker/helpers/value-parser.d.ts +2 -2
  411. package/lib/components/form/input-timepicker/input-timepicker.component.d.ts +60 -60
  412. package/lib/components/form/input-timepicker/input-timepicker.enum.d.ts +11 -11
  413. package/lib/components/form/input-timepicker/input-timepicker.module.d.ts +13 -13
  414. package/lib/components/form/radio/radio.component.d.ts +29 -29
  415. package/lib/components/form/radio/radio.enum.d.ts +4 -4
  416. package/lib/components/form/radio/radio.module.d.ts +9 -9
  417. package/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.d.ts +18 -18
  418. package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts +26 -26
  419. package/lib/components/form/radio-group/helpers/filter-search-group.d.ts +2 -2
  420. package/lib/components/form/radio-group/helpers/get-item-by-id.d.ts +2 -2
  421. package/lib/components/form/radio-group/helpers/move-selected-to-first.d.ts +2 -2
  422. package/lib/components/form/radio-group/models/radio-group.model.d.ts +8 -8
  423. package/lib/components/form/radio-group/radio-group.component.d.ts +57 -57
  424. package/lib/components/form/radio-group/radio-group.module.d.ts +15 -15
  425. package/lib/components/form/rating/rating.component.d.ts +51 -51
  426. package/lib/components/form/rating/rating.enum.d.ts +27 -27
  427. package/lib/components/form/rating/rating.module.d.ts +9 -9
  428. package/lib/components/form/switch/switch.component.d.ts +32 -32
  429. package/lib/components/form/switch/switch.enum.d.ts +15 -15
  430. package/lib/components/form/switch/switch.module.d.ts +10 -10
  431. package/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.d.ts +21 -17
  432. package/lib/components/gallery/components/gallery-item/gallery-item.component.d.ts +38 -38
  433. package/lib/components/gallery/constants/custom-buttons-default.d.ts +3 -3
  434. package/lib/components/gallery/constants/thumbs-config-default.d.ts +2 -2
  435. package/lib/components/gallery/gallery.component.d.ts +38 -38
  436. package/lib/components/gallery/gallery.module.d.ts +16 -16
  437. package/lib/components/gallery/models/gallery-item.model.d.ts +24 -24
  438. package/lib/components/gallery/services/gallery.service.d.ts +14 -14
  439. package/lib/components/hint-error-message/hint-error-message.component.d.ts +21 -21
  440. package/lib/components/hint-error-message/hint-error-message.module.d.ts +8 -8
  441. package/lib/components/icon-button/icon-button.component.d.ts +19 -19
  442. package/lib/components/icon-button/icon-button.enum.d.ts +15 -15
  443. package/lib/components/icon-button/icon-button.module.d.ts +9 -9
  444. package/lib/components/label/label.component.d.ts +44 -44
  445. package/lib/components/label/label.module.d.ts +14 -14
  446. package/lib/components/link/link.component.d.ts +18 -18
  447. package/lib/components/link/link.enum.d.ts +19 -19
  448. package/lib/components/link/link.module.d.ts +8 -8
  449. package/lib/components/loader/loader.component.d.ts +10 -10
  450. package/lib/components/loader/loader.enum.d.ts +19 -19
  451. package/lib/components/loader/loader.module.d.ts +8 -8
  452. package/lib/components/modal/modal.component.d.ts +36 -37
  453. package/lib/components/modal/modal.emun.d.ts +20 -20
  454. package/lib/components/modal/modal.module.d.ts +9 -9
  455. package/lib/components/pages-nav/pages-nav.component.d.ts +12 -12
  456. package/lib/components/pages-nav/pages-nav.enum.d.ts +5 -5
  457. package/lib/components/pages-nav/pages-nav.module.d.ts +8 -8
  458. package/lib/components/paginator/paginator.component.d.ts +29 -29
  459. package/lib/components/paginator/paginator.enum.d.ts +10 -10
  460. package/lib/components/paginator/paginator.module.d.ts +10 -10
  461. package/lib/components/progress/progress.component.d.ts +10 -10
  462. package/lib/components/progress/progress.enum.d.ts +7 -7
  463. package/lib/components/progress/progress.module.d.ts +8 -8
  464. package/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.d.ts +8 -8
  465. package/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.d.ts +8 -8
  466. package/lib/components/save-state/components/save-state-editor/save-state-editor.component.d.ts +8 -8
  467. package/lib/components/save-state/components/save-state-input/save-state-input.component.d.ts +8 -8
  468. package/lib/components/save-state/components/save-state-switch/save-state-switch.component.d.ts +8 -8
  469. package/lib/components/save-state/save-state.component.d.ts +13 -13
  470. package/lib/components/save-state/save-state.enum.d.ts +1 -1
  471. package/lib/components/save-state/save-state.module.d.ts +13 -13
  472. package/lib/components/stepper/stepper.component.d.ts +17 -17
  473. package/lib/components/stepper/stepper.enum.d.ts +5 -5
  474. package/lib/components/stepper/stepper.module.d.ts +9 -9
  475. package/lib/components/table/components/column/column.component.d.ts +14 -14
  476. package/lib/components/table/default/default-pager-settings.d.ts +2 -2
  477. package/lib/components/table/models/data-state-change.event.d.ts +15 -15
  478. package/lib/components/table/models/index.d.ts +3 -3
  479. package/lib/components/table/models/pager-settings.d.ts +22 -22
  480. package/lib/components/table/table.component.d.ts +55 -55
  481. package/lib/components/table/table.enum.d.ts +32 -32
  482. package/lib/components/table/table.module.d.ts +14 -14
  483. package/lib/components/tabs/tab/tab.component.d.ts +13 -13
  484. package/lib/components/tabs/tabs-group/tabs-group.component.d.ts +11 -11
  485. package/lib/components/tabs/tabs.enum.d.ts +11 -11
  486. package/lib/components/tabs/tabs.module.d.ts +9 -9
  487. package/lib/components/tooltip/services/tooltip.service.d.ts +18 -18
  488. package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.d.ts +15 -15
  489. package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.enum.d.ts +10 -10
  490. package/lib/components/tooltip/tooltip.component.d.ts +18 -18
  491. package/lib/components/tooltip/tooltip.enum.d.ts +4 -4
  492. package/lib/components/tooltip/tooltip.module.d.ts +10 -10
  493. package/lib/components/truncate-text/directives/truncate-text.directive.d.ts +37 -37
  494. package/lib/components/truncate-text/truncate-text.component.d.ts +12 -12
  495. package/lib/components/truncate-text/truncate-text.enum.d.ts +2 -2
  496. package/lib/components/truncate-text/truncate-text.module.d.ts +10 -10
  497. package/lib/components/warning-message/warning-message.component.d.ts +9 -9
  498. package/lib/components/warning-message/warning-message.module.d.ts +8 -8
  499. package/lib/components/wrappers/content-wrapper/content-wrapper.component.d.ts +10 -10
  500. package/lib/components/wrappers/content-wrapper/content-wrapper.enum.d.ts +5 -5
  501. package/lib/components/wrappers/content-wrapper/content-wrapper.module.d.ts +8 -8
  502. package/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.d.ts +6 -6
  503. package/lib/components/wrappers/controls-wrapper/controls-wrapper.component.d.ts +10 -10
  504. package/lib/components/wrappers/controls-wrapper/controls-wrapper.enum.d.ts +6 -6
  505. package/lib/components/wrappers/controls-wrapper/controls-wrapper.module.d.ts +9 -9
  506. package/lib/components/wrappers/widget-wrapper/widget-wrapper.component.d.ts +26 -26
  507. package/lib/components/wrappers/widget-wrapper/widget-wrapper.enum.d.ts +15 -15
  508. package/lib/components/wrappers/widget-wrapper/widget-wrapper.module.d.ts +8 -8
  509. package/lib/directives/autosize/autosize.directive.d.ts +16 -16
  510. package/lib/directives/autosize/autosize.module.d.ts +8 -8
  511. package/lib/directives/truncate/truncate.directive.d.ts +12 -12
  512. package/lib/directives/truncate/truncate.module.d.ts +8 -8
  513. package/lib/enums/typed.input.state.d.ts +6 -6
  514. package/lib/helpers/extension/input-file.extension.d.ts +4 -4
  515. package/lib/helpers/formatting-date.d.ts +9 -9
  516. package/lib/helpers/formatting-dates-from-array.d.ts +2 -2
  517. package/lib/helpers/formatting-iso-to-string.d.ts +2 -2
  518. package/lib/helpers/index.d.ts +7 -7
  519. package/lib/helpers/number-format.d.ts +6 -6
  520. package/lib/helpers/string-hash-code.d.ts +2 -2
  521. package/lib/helpers/word-form.d.ts +7 -7
  522. package/lib/models/index.d.ts +2 -2
  523. package/lib/models/input-file/input-file.model.d.ts +22 -22
  524. package/lib/models/typed-input-model.d.ts +16 -16
  525. package/lib/pipes/currency/currency.module.d.ts +8 -8
  526. package/lib/pipes/currency/currency.pipe.d.ts +7 -7
  527. package/lib/pipes/date/date-format.module.d.ts +9 -9
  528. package/lib/pipes/date/date-format.pipe.d.ts +9 -9
  529. package/lib/pipes/date/date-time-format.pipe.d.ts +9 -9
  530. package/lib/pipes/date/enums/timezone.d.ts +8 -8
  531. package/lib/pipes/date/helpers/change-timezone.d.ts +2 -2
  532. package/lib/pipes/phone/phone-format.module.d.ts +8 -8
  533. package/lib/pipes/phone/phone-format.pipe.d.ts +8 -8
  534. package/lib/pipes/safe/safe.module.d.ts +8 -8
  535. package/lib/pipes/safe/safe.pipe.d.ts +10 -10
  536. package/lib/pipes/truncate/truncate.module.d.ts +8 -8
  537. package/lib/pipes/truncate/truncate.pipe.d.ts +7 -7
  538. package/lib/services/file-upload/file-upload.service.d.ts +12 -12
  539. package/lib/services/index.d.ts +6 -6
  540. package/lib/services/modal-service/components/alert-modal/alert-modal.component.d.ts +20 -0
  541. package/lib/services/modal-service/components/confirm-modal/confirm-modal.component.d.ts +21 -0
  542. package/lib/services/modal-service/helpers/modal-default-config.d.ts +3 -0
  543. package/lib/services/modal-service/helpers/modal-ref.d.ts +11 -0
  544. package/lib/services/modal-service/helpers/modal-tokens.d.ts +3 -0
  545. package/lib/services/modal-service/helpers/modal.component.d.ts +4 -0
  546. package/lib/services/modal-service/modal-service.service.d.ts +20 -0
  547. package/lib/services/modal-service/models/modal-config.model.d.ts +14 -0
  548. package/lib/services/mrx-autosave/mrx-autosave.service.d.ts +19 -19
  549. package/lib/services/mrx-form-validator/mrx-form-validator.d.ts +51 -51
  550. package/lib/services/save-store/constants/constants.d.ts +1 -1
  551. package/lib/services/save-store/models/save-store.model.d.ts +4 -4
  552. package/lib/services/save-store/save-store.module.d.ts +9 -9
  553. package/lib/services/save-store/store/actions.d.ts +21 -21
  554. package/lib/services/save-store/store/effect.d.ts +10 -16
  555. package/lib/services/save-store/store/reducer.d.ts +3 -3
  556. package/lib/services/save-store/store/selectors.d.ts +3 -3
  557. package/lib/services/save-store/store/state.d.ts +11 -11
  558. package/package.json +29 -39
  559. package/public-api.d.ts +162 -175
  560. package/esm2020/lib/components/alert/alert.component.mjs +0 -45
  561. package/esm2020/lib/components/alert/alert.module.mjs +0 -19
  562. package/esm2020/lib/components/badges/badges.module.mjs +0 -32
  563. package/esm2020/lib/components/badges/components/badge/badge.component.mjs +0 -61
  564. package/esm2020/lib/components/breadcrumbs/breadcrumbs.component.mjs +0 -29
  565. package/esm2020/lib/components/breadcrumbs/breadcrumbs.module.mjs +0 -27
  566. package/esm2020/lib/components/button/button.component.mjs +0 -102
  567. package/esm2020/lib/components/button/button.enum.mjs +0 -29
  568. package/esm2020/lib/components/button/button.module.mjs +0 -21
  569. package/esm2020/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.mjs +0 -28
  570. package/esm2020/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +0 -95
  571. package/esm2020/lib/components/cdk-tooltip/cdk-tooltip.module.mjs +0 -21
  572. package/esm2020/lib/components/chars-left/chars-left.component.mjs +0 -26
  573. package/esm2020/lib/components/chars-left/chars-left.module.mjs +0 -19
  574. package/esm2020/lib/components/context-menu/components/context-menu/context-menu.component.mjs +0 -121
  575. package/esm2020/lib/components/context-menu/components/context-menu-content/context-menu-content.component.mjs +0 -343
  576. package/esm2020/lib/components/context-menu/context-menu.module.mjs +0 -51
  577. package/esm2020/lib/components/context-menu/context-menu.options.mjs +0 -2
  578. package/esm2020/lib/components/context-menu/context-menu.tokens.mjs +0 -3
  579. package/esm2020/lib/components/context-menu/directives/context-menu/context-menu.directive.mjs +0 -36
  580. package/esm2020/lib/components/context-menu/directives/context-menu-item/context-menu-item.directive.mjs +0 -61
  581. package/esm2020/lib/components/context-menu/models/context-menu.enum.mjs +0 -2
  582. package/esm2020/lib/components/context-menu/services/context-menu/context-menu-fixed.service.mjs +0 -103
  583. package/esm2020/lib/components/context-menu/services/context-menu/context-menu.service.mjs +0 -223
  584. package/esm2020/lib/components/dropdown/directives/hide-after-click.directive.mjs +0 -23
  585. package/esm2020/lib/components/dropdown/dropdown.component.mjs +0 -104
  586. package/esm2020/lib/components/dropdown/dropdown.module.mjs +0 -21
  587. package/esm2020/lib/components/error-message/error-message.component.mjs +0 -34
  588. package/esm2020/lib/components/error-message/error-message.module.mjs +0 -19
  589. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -150
  590. package/esm2020/lib/components/form/checkbox/checkbox.module.mjs +0 -22
  591. package/esm2020/lib/components/form/checkbox-group/checkbox-group.component.mjs +0 -178
  592. package/esm2020/lib/components/form/checkbox-group/checkbox-group.module.mjs +0 -49
  593. package/esm2020/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +0 -103
  594. package/esm2020/lib/components/form/checkbox-group/helpers/change-group-value.mjs +0 -20
  595. package/esm2020/lib/components/form/checkbox-group/helpers/change-item-value.mjs +0 -15
  596. package/esm2020/lib/components/form/checkbox-group/helpers/filter-search-group.mjs +0 -27
  597. package/esm2020/lib/components/form/checkbox-group/helpers/get-checked-items.mjs +0 -20
  598. package/esm2020/lib/components/form/checkbox-group/helpers/get-sorted-list.mjs +0 -50
  599. package/esm2020/lib/components/form/document-editor/components/document-editor-preview-modal/document-editor-preview-modal.component.mjs +0 -33
  600. package/esm2020/lib/components/form/document-editor/document-editor.component.mjs +0 -105
  601. package/esm2020/lib/components/form/document-editor/document-editor.module.mjs +0 -44
  602. package/esm2020/lib/components/form/document-editor/helpers/transform-sysname.mjs +0 -41
  603. package/esm2020/lib/components/form/document-editor/models/document-editor-short-codes.enum.mjs +0 -2
  604. package/esm2020/lib/components/form/editor/editor.component.mjs +0 -240
  605. package/esm2020/lib/components/form/editor/editor.module.mjs +0 -47
  606. package/esm2020/lib/components/form/editor/modules/change-icon-module.mjs +0 -92
  607. package/esm2020/lib/components/form/input-date-time/helpers/cursor-position.mjs +0 -23
  608. package/esm2020/lib/components/form/input-date-time/helpers/formatting-from-models.mjs +0 -10
  609. package/esm2020/lib/components/form/input-date-time/input-date-time.component.mjs +0 -381
  610. package/esm2020/lib/components/form/input-date-time/input-date-time.module.mjs +0 -48
  611. package/esm2020/lib/components/form/input-datepicker/helpers/cursor-position.mjs +0 -23
  612. package/esm2020/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.mjs +0 -10
  613. package/esm2020/lib/components/form/input-datepicker/helpers/get-date-object.mjs +0 -10
  614. package/esm2020/lib/components/form/input-datepicker/input-datepicker.component.mjs +0 -354
  615. package/esm2020/lib/components/form/input-datepicker/input-datepicker.module.mjs +0 -48
  616. package/esm2020/lib/components/form/input-file/input-file.component.mjs +0 -362
  617. package/esm2020/lib/components/form/input-file/input-file.module.mjs +0 -26
  618. package/esm2020/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +0 -66
  619. package/esm2020/lib/components/form/input-file-image/input-file-image.component.mjs +0 -354
  620. package/esm2020/lib/components/form/input-file-image/input-file-image.module.mjs +0 -60
  621. package/esm2020/lib/components/form/input-number/input-number.component.mjs +0 -258
  622. package/esm2020/lib/components/form/input-number/input-number.module.mjs +0 -57
  623. package/esm2020/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +0 -361
  624. package/esm2020/lib/components/form/input-opt/directives/opt-pattern.directive.mjs +0 -44
  625. package/esm2020/lib/components/form/input-opt/input-opt.module.mjs +0 -40
  626. package/esm2020/lib/components/form/input-password/input-password.component.mjs +0 -119
  627. package/esm2020/lib/components/form/input-password/input-password.module.mjs +0 -38
  628. package/esm2020/lib/components/form/input-phone/data/country-code.mjs +0 -1333
  629. package/esm2020/lib/components/form/input-phone/directives/native-element-injector.directive.mjs +0 -33
  630. package/esm2020/lib/components/form/input-phone/input-phone.component.mjs +0 -671
  631. package/esm2020/lib/components/form/input-phone/input-phone.module.mjs +0 -52
  632. package/esm2020/lib/components/form/input-phone/input-phone.validator.mjs +0 -61
  633. package/esm2020/lib/components/form/input-search/input-search.component.mjs +0 -166
  634. package/esm2020/lib/components/form/input-search/input-search.module.mjs +0 -43
  635. package/esm2020/lib/components/form/input-select/input-select.component.mjs +0 -243
  636. package/esm2020/lib/components/form/input-select/input-select.module.mjs +0 -47
  637. package/esm2020/lib/components/form/input-tel/directives/input-tel.directive.mjs +0 -62
  638. package/esm2020/lib/components/form/input-tel/input-tel.component.mjs +0 -389
  639. package/esm2020/lib/components/form/input-tel/input-tel.module.mjs +0 -49
  640. package/esm2020/lib/components/form/input-text/input-text.component.mjs +0 -188
  641. package/esm2020/lib/components/form/input-text/input-text.module.mjs +0 -51
  642. package/esm2020/lib/components/form/input-textarea/input-textarea.component.mjs +0 -195
  643. package/esm2020/lib/components/form/input-textarea/input-textarea.module.mjs +0 -50
  644. package/esm2020/lib/components/form/input-timepicker/helpers/cursor-position.mjs +0 -14
  645. package/esm2020/lib/components/form/input-timepicker/input-timepicker.component.mjs +0 -290
  646. package/esm2020/lib/components/form/input-timepicker/input-timepicker.module.mjs +0 -48
  647. package/esm2020/lib/components/form/radio/radio.component.mjs +0 -91
  648. package/esm2020/lib/components/form/radio/radio.module.mjs +0 -20
  649. package/esm2020/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +0 -46
  650. package/esm2020/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +0 -63
  651. package/esm2020/lib/components/form/radio-group/helpers/filter-search-group.mjs +0 -27
  652. package/esm2020/lib/components/form/radio-group/helpers/move-selected-to-first.mjs +0 -27
  653. package/esm2020/lib/components/form/radio-group/radio-group.component.mjs +0 -175
  654. package/esm2020/lib/components/form/radio-group/radio-group.module.mjs +0 -26
  655. package/esm2020/lib/components/form/rating/rating.component.mjs +0 -217
  656. package/esm2020/lib/components/form/rating/rating.module.mjs +0 -27
  657. package/esm2020/lib/components/form/switch/switch.component.mjs +0 -97
  658. package/esm2020/lib/components/form/switch/switch.module.mjs +0 -21
  659. package/esm2020/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +0 -22
  660. package/esm2020/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +0 -102
  661. package/esm2020/lib/components/gallery/gallery.component.mjs +0 -197
  662. package/esm2020/lib/components/gallery/gallery.module.mjs +0 -56
  663. package/esm2020/lib/components/gallery/services/gallery.service.mjs +0 -31
  664. package/esm2020/lib/components/hint-error-message/hint-error-message.component.mjs +0 -123
  665. package/esm2020/lib/components/hint-error-message/hint-error-message.module.mjs +0 -19
  666. package/esm2020/lib/components/icon-button/icon-button.component.mjs +0 -51
  667. package/esm2020/lib/components/icon-button/icon-button.module.mjs +0 -19
  668. package/esm2020/lib/components/label/label.component.mjs +0 -141
  669. package/esm2020/lib/components/label/label.module.mjs +0 -25
  670. package/esm2020/lib/components/link/link.component.mjs +0 -50
  671. package/esm2020/lib/components/link/link.module.mjs +0 -19
  672. package/esm2020/lib/components/loader/loader.component.mjs +0 -26
  673. package/esm2020/lib/components/loader/loader.module.mjs +0 -19
  674. package/esm2020/lib/components/modal/modal.component.mjs +0 -146
  675. package/esm2020/lib/components/modal/modal.module.mjs +0 -20
  676. package/esm2020/lib/components/pages-nav/pages-nav.component.mjs +0 -33
  677. package/esm2020/lib/components/pages-nav/pages-nav.module.mjs +0 -26
  678. package/esm2020/lib/components/paginator/paginator.component.mjs +0 -142
  679. package/esm2020/lib/components/paginator/paginator.module.mjs +0 -33
  680. package/esm2020/lib/components/progress/progress.component.mjs +0 -26
  681. package/esm2020/lib/components/progress/progress.module.mjs +0 -19
  682. package/esm2020/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.mjs +0 -15
  683. package/esm2020/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.mjs +0 -15
  684. package/esm2020/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +0 -15
  685. package/esm2020/lib/components/save-state/components/save-state-input/save-state-input.component.mjs +0 -15
  686. package/esm2020/lib/components/save-state/components/save-state-switch/save-state-switch.component.mjs +0 -15
  687. package/esm2020/lib/components/save-state/save-state.component.mjs +0 -39
  688. package/esm2020/lib/components/save-state/save-state.module.mjs +0 -39
  689. package/esm2020/lib/components/stepper/stepper.component.mjs +0 -54
  690. package/esm2020/lib/components/stepper/stepper.module.mjs +0 -20
  691. package/esm2020/lib/components/table/components/column/column.component.mjs +0 -40
  692. package/esm2020/lib/components/table/table.component.mjs +0 -274
  693. package/esm2020/lib/components/table/table.module.mjs +0 -52
  694. package/esm2020/lib/components/tabs/tab/tab.component.mjs +0 -31
  695. package/esm2020/lib/components/tabs/tabs-group/tabs-group.component.mjs +0 -29
  696. package/esm2020/lib/components/tabs/tabs.module.mjs +0 -20
  697. package/esm2020/lib/components/tooltip/services/tooltip.service.mjs +0 -67
  698. package/esm2020/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +0 -38
  699. package/esm2020/lib/components/tooltip/tooltip.component.mjs +0 -60
  700. package/esm2020/lib/components/tooltip/tooltip.module.mjs +0 -21
  701. package/esm2020/lib/components/truncate-text/truncate-text.component.mjs +0 -30
  702. package/esm2020/lib/components/truncate-text/truncate-text.module.mjs +0 -21
  703. package/esm2020/lib/components/warning-message/warning-message.component.mjs +0 -31
  704. package/esm2020/lib/components/warning-message/warning-message.module.mjs +0 -19
  705. package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +0 -26
  706. package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.module.mjs +0 -19
  707. package/esm2020/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.mjs +0 -17
  708. package/esm2020/lib/components/wrappers/controls-wrapper/controls-wrapper.component.mjs +0 -24
  709. package/esm2020/lib/components/wrappers/controls-wrapper/controls-wrapper.module.mjs +0 -20
  710. package/esm2020/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +0 -96
  711. package/esm2020/lib/components/wrappers/widget-wrapper/widget-wrapper.module.mjs +0 -26
  712. package/esm2020/lib/directives/autosize/autosize.directive.mjs +0 -55
  713. package/esm2020/lib/directives/autosize/autosize.module.mjs +0 -26
  714. package/esm2020/lib/directives/truncate/truncate.directive.mjs +0 -32
  715. package/esm2020/lib/directives/truncate/truncate.module.mjs +0 -18
  716. package/esm2020/lib/helpers/extension/input-file.extension.mjs +0 -39
  717. package/esm2020/lib/helpers/formatting-date.mjs +0 -51
  718. package/esm2020/lib/helpers/string-hash-code.mjs +0 -17
  719. package/esm2020/lib/pipes/currency/currency.module.mjs +0 -22
  720. package/esm2020/lib/pipes/currency/currency.pipe.mjs +0 -22
  721. package/esm2020/lib/pipes/date/date-format.module.mjs +0 -19
  722. package/esm2020/lib/pipes/date/date-format.pipe.mjs +0 -21
  723. package/esm2020/lib/pipes/date/date-time-format.pipe.mjs +0 -21
  724. package/esm2020/lib/pipes/phone/phone-format.module.mjs +0 -18
  725. package/esm2020/lib/pipes/phone/phone-format.pipe.mjs +0 -23
  726. package/esm2020/lib/pipes/safe/safe.module.mjs +0 -22
  727. package/esm2020/lib/pipes/safe/safe.pipe.mjs +0 -20
  728. package/esm2020/lib/pipes/truncate/truncate.module.mjs +0 -22
  729. package/esm2020/lib/pipes/truncate/truncate.pipe.mjs +0 -23
  730. package/esm2020/lib/services/file-upload/file-upload.service.mjs +0 -26
  731. package/esm2020/lib/services/mrx-autosave/mrx-autosave.service.mjs +0 -44
  732. package/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +0 -283
  733. package/esm2020/lib/services/save-store/save-store.module.mjs +0 -31
  734. package/esm2020/lib/services/save-store/store/effect.mjs +0 -31
  735. package/esm2020/lib/services/save-store/store/reducer.mjs +0 -79
  736. package/esm2020/public-api.mjs +0 -185
  737. package/fesm2015/myrta-ui.mjs +0 -16173
  738. package/fesm2015/myrta-ui.mjs.map +0 -1
  739. package/fesm2020/myrta-ui.mjs +0 -16212
  740. package/fesm2020/myrta-ui.mjs.map +0 -1
  741. package/lib/components/context-menu/components/context-menu/context-menu.component.d.ts +0 -34
  742. package/lib/components/context-menu/components/context-menu-content/context-menu-content.component.d.ts +0 -62
  743. package/lib/components/context-menu/context-menu.module.d.ts +0 -15
  744. package/lib/components/context-menu/context-menu.options.d.ts +0 -4
  745. package/lib/components/context-menu/context-menu.tokens.d.ts +0 -2
  746. package/lib/components/context-menu/directives/context-menu/context-menu.directive.d.ts +0 -12
  747. package/lib/components/context-menu/directives/context-menu-item/context-menu-item.directive.d.ts +0 -30
  748. package/lib/components/context-menu/models/context-menu.enum.d.ts +0 -11
  749. package/lib/components/context-menu/services/context-menu/context-menu-fixed.service.d.ts +0 -11
  750. package/lib/components/context-menu/services/context-menu/context-menu.service.d.ts +0 -56
  751. package/lib/components/form/document-editor/components/document-editor-preview-modal/document-editor-preview-modal.component.d.ts +0 -22
  752. package/lib/components/form/document-editor/document-editor.component.d.ts +0 -37
  753. package/lib/components/form/document-editor/document-editor.module.d.ts +0 -13
  754. package/lib/components/form/document-editor/helpers/transform-sysname.d.ts +0 -5
  755. package/lib/components/form/document-editor/models/document-editor-short-codes.enum.d.ts +0 -6
@@ -1,28 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Inject, InjectionToken, TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export const TOOLTIP_DATA = new InjectionToken('Data to display in tooltip');
5
- export class TooltipContainerComponent {
6
- constructor(tooltipData) {
7
- this.tooltipData = tooltipData;
8
- }
9
- get asString() {
10
- return typeof this.tooltipData.value === 'string' ? this.tooltipData.value : false;
11
- }
12
- get asTemplate() {
13
- return this.tooltipData.value instanceof TemplateRef ? this.tooltipData.value : null;
14
- }
15
- get getMaxWidth() {
16
- return this.tooltipData.maxWidth ? this.tooltipData.maxWidth + 'px' : '480px';
17
- }
18
- }
19
- TooltipContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TooltipContainerComponent, deps: [{ token: TOOLTIP_DATA }], target: i0.ɵɵFactoryTarget.Component });
20
- TooltipContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: TooltipContainerComponent, selector: "mrx-cdk-tooltip", ngImport: i0, template: "<ng-container *ngIf=\"asString as string\">\r\n <div class=\"mrx-cdk-tooltip\" [style.max-width]=\"getMaxWidth\" [innerHtml]=\"string\"></div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"asTemplate as template\">\r\n <div class=\"mrx-cdk-tooltip\" [style.max-width]=\"getMaxWidth\">\r\n <ng-template [ngTemplateOutlet]=\"template\"></ng-template>\r\n </div>\r\n</ng-container>\r\n\r\n", styles: ["::ng-deep .cdk-overlay-container,::ng-deep .cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}::ng-deep .cdk-overlay-container{position:fixed;z-index:1000}::ng-deep .cdk-overlay-container:empty{display:none}::ng-deep .cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}::ng-deep .cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}::ng-deep .cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}::ng-deep .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}::ng-deep .cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}::ng-deep .cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}::ng-deep .cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}::ng-deep .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}::ng-deep .cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}::ng-deep .cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}:host .mrx-cdk-tooltip{display:block;padding:12px 16px;color:var(--neutral-text-inverse);background:var(--neutral-bg-inverse);border-radius:4px;box-sizing:border-box;position:relative;font-family:var(--body-sm-font-family);font-weight:var(--body-sm-font-weight);line-height:var(--body-sm-line-height);font-size:var(--body-sm-font-size)}:host .mrx-cdk-tooltip:after{width:0;height:0;content:\"\";position:absolute;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid var(--neutral-bg-inverse)}:host-context(.top) .mrx-cdk-tooltip{margin-bottom:5px}:host-context(.top) .mrx-cdk-tooltip:after{right:calc(50% - 4px);bottom:-4px;transform:rotate(180deg)}:host-context(.bottom) .mrx-cdk-tooltip{margin-top:5px}:host-context(.bottom) .mrx-cdk-tooltip:after{right:calc(50% - 4px);top:-4px;transform:rotate(0)}:host-context(.start) .mrx-cdk-tooltip{margin-right:5px}:host-context(.start) .mrx-cdk-tooltip:after{right:-6px;top:calc(50% - 4px);transform:rotate(90deg)}:host-context(.end) .mrx-cdk-tooltip{margin-left:5px}:host-context(.end) .mrx-cdk-tooltip:after{left:-6px;top:calc(50% - 4px);transform:rotate(-90deg)}:host-context(.top-start) .mrx-cdk-tooltip{margin-bottom:5px}:host-context(.top-start) .mrx-cdk-tooltip:after{left:8px;bottom:-4px;transform:rotate(180deg)}:host-context(.top-end) .mrx-cdk-tooltip{margin-bottom:5px}:host-context(.top-end) .mrx-cdk-tooltip:after{right:8px;bottom:-4px;transform:rotate(180deg)}:host-context(.bottom-start) .mrx-cdk-tooltip{margin-top:5px}:host-context(.bottom-start) .mrx-cdk-tooltip:after{left:8px;top:-4px;transform:rotate(0)}:host-context(.bottom-end) .mrx-cdk-tooltip{margin-top:5px}:host-context(.bottom-end) .mrx-cdk-tooltip:after{right:8px;top:-4px;transform:rotate(0)}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TooltipContainerComponent, decorators: [{
22
- type: Component,
23
- args: [{ selector: 'mrx-cdk-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"asString as string\">\r\n <div class=\"mrx-cdk-tooltip\" [style.max-width]=\"getMaxWidth\" [innerHtml]=\"string\"></div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"asTemplate as template\">\r\n <div class=\"mrx-cdk-tooltip\" [style.max-width]=\"getMaxWidth\">\r\n <ng-template [ngTemplateOutlet]=\"template\"></ng-template>\r\n </div>\r\n</ng-container>\r\n\r\n", styles: ["::ng-deep .cdk-overlay-container,::ng-deep .cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}::ng-deep .cdk-overlay-container{position:fixed;z-index:1000}::ng-deep .cdk-overlay-container:empty{display:none}::ng-deep .cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}::ng-deep .cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}::ng-deep .cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}::ng-deep .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}::ng-deep .cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}::ng-deep .cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}::ng-deep .cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}::ng-deep .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}::ng-deep .cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}::ng-deep .cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}:host .mrx-cdk-tooltip{display:block;padding:12px 16px;color:var(--neutral-text-inverse);background:var(--neutral-bg-inverse);border-radius:4px;box-sizing:border-box;position:relative;font-family:var(--body-sm-font-family);font-weight:var(--body-sm-font-weight);line-height:var(--body-sm-line-height);font-size:var(--body-sm-font-size)}:host .mrx-cdk-tooltip:after{width:0;height:0;content:\"\";position:absolute;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid var(--neutral-bg-inverse)}:host-context(.top) .mrx-cdk-tooltip{margin-bottom:5px}:host-context(.top) .mrx-cdk-tooltip:after{right:calc(50% - 4px);bottom:-4px;transform:rotate(180deg)}:host-context(.bottom) .mrx-cdk-tooltip{margin-top:5px}:host-context(.bottom) .mrx-cdk-tooltip:after{right:calc(50% - 4px);top:-4px;transform:rotate(0)}:host-context(.start) .mrx-cdk-tooltip{margin-right:5px}:host-context(.start) .mrx-cdk-tooltip:after{right:-6px;top:calc(50% - 4px);transform:rotate(90deg)}:host-context(.end) .mrx-cdk-tooltip{margin-left:5px}:host-context(.end) .mrx-cdk-tooltip:after{left:-6px;top:calc(50% - 4px);transform:rotate(-90deg)}:host-context(.top-start) .mrx-cdk-tooltip{margin-bottom:5px}:host-context(.top-start) .mrx-cdk-tooltip:after{left:8px;bottom:-4px;transform:rotate(180deg)}:host-context(.top-end) .mrx-cdk-tooltip{margin-bottom:5px}:host-context(.top-end) .mrx-cdk-tooltip:after{right:8px;bottom:-4px;transform:rotate(180deg)}:host-context(.bottom-start) .mrx-cdk-tooltip{margin-top:5px}:host-context(.bottom-start) .mrx-cdk-tooltip:after{left:8px;top:-4px;transform:rotate(0)}:host-context(.bottom-end) .mrx-cdk-tooltip{margin-top:5px}:host-context(.bottom-end) .mrx-cdk-tooltip:after{right:8px;top:-4px;transform:rotate(0)}\n"] }]
24
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
25
- type: Inject,
26
- args: [TOOLTIP_DATA]
27
- }] }]; } });
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9jb21wb25lbnRzL2Nkay10b29sdGlwL2Nkay10b29sdGlwL3Rvb2x0aXAtY29udGFpbmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL215c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VlID09PSAnc3RyaW5nJyA/IHRoaXMudG9vbHRpcERhdGEudmFsdWUgOiBmYWxzZTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBnZXQgYXNUZW1wbGF0ZSgpOiBUZW1wbGF0ZVJlZjx2b2lkPiB8IG51bGwge1xyXG4gICAgcmV0dXJuIHRoaXMudG9vbHRpcERhdGEudmFsdWUgaW5zdGFuY2VvZiBUZW1wbGF0ZVJlZiA/IHRoaXMudG9vbHRpcERhdGEudmFsdWUgOiBudWxsO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIGdldCBnZXRNYXhXaWR0aCgpOiBzdHJpbmcge1xyXG4gICAgcmV0dXJuIHRoaXMudG9vbHRpcERhdGEubWF4V2lkdGggPyB0aGlzLnRvb2x0aXBEYXRhLm1heFdpZHRoICsgJ3B4JyA6ICc0ODBweCdcclxuICB9XHJcbn1cclxuIiwiPG5nLWNvbnRhaW5lciAqbmdJZj1cImFzU3RyaW5nIGFzIHN0cmluZ1wiPlxyXG4gIDxkaXYgY2xhc3M9XCJtcngtY2RrLXRvb2x0aXBcIiBbc3R5bGUubWF4LXdpZHRoXT1cImdldE1heFdpZHRoXCIgW2lubmVySHRtbF09XCJzdHJpbmdcIj48L2Rpdj5cclxuPC9uZy1jb250YWluZXI+XHJcblxyXG48bmctY29udGFpbmVyICpuZ0lmPVwiYXNUZW1wbGF0ZSBhcyB0ZW1wbGF0ZVwiPlxyXG4gIDxkaXYgY2xhc3M9XCJtcngtY2RrLXRvb2x0aXBcIiBbc3R5bGUubWF4LXdpZHRoXT1cImdldE1heFdpZHRoXCI+XHJcbiAgICA8bmctdGVtcGxhdGUgW25nVGVtcGxhdGVPdXRsZXRdPVwidGVtcGxhdGVcIj48L25nLXRlbXBsYXRlPlxyXG4gIDwvZGl2PlxyXG48L25nLWNvbnRhaW5lcj5cclxuXHJcbiJdfQ==
@@ -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: "13.4.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: "12.0.0", version: "13.4.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: "13.4.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2RrLXRvb2x0aXAuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9jb21wb25lbnRzL2Nkay10b29sdGlwL2Nkay10b29sdGlwLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFP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biAgICByZXR1cm4gdGhpcy5vdmVybGF5XHJcbiAgICAgIC5wb3NpdGlvbigpXHJcbiAgICAgIC5mbGV4aWJsZUNvbm5lY3RlZFRvKHRoaXMuZWxlbWVudClcclxuICAgICAgLndpdGhQb3NpdGlvbnMocG9zaXRpb25TdHJhdGVneVt0aGlzLnRvb2x0aXBQb3NpdGlvbl0pO1xyXG4gIH1cclxuXHJcbiAgQEhvc3RMaXN0ZW5lcignbW91c2VlbnRlcicpXHJcbiAgQEhvc3RMaXN0ZW5lcignZm9jdXMnKVxyXG4gIHNob3dUb29sdGlwKCk6IHZvaWQge1xyXG4gICAgaWYgKHRoaXMubXJ4Q2RrVG9vbHRpcCA9PT0gbnVsbCB8fCAhdGhpcy50b29sdGlwQWN0aXZlKSB7XHJcbiAgICAgIHJldHVybjtcclxuICAgIH1cclxuICAgIGlmICh0aGlzLm92ZXJsYXlSZWY/Lmhhc0F0dGFjaGVkKCkgPT09IHRydWUpIHtcclxuICAgICAgcmV0dXJuO1xyXG4gICAgfVxyXG5cclxuICAgIHRoaXMuYXR0YWNoVG9vbHRpcCgpO1xyXG4gIH1cclxuXHJcbiAgQEhvc3RMaXN0ZW5lcignbW91c2VsZWF2ZScpXHJcbiAgQEhvc3RMaXN0ZW5lcignYmx1cicpXHJcbiAgaGlkZVRvb2x0aXAoKTogdm9pZCB7XHJcbiAgICBpZiAodGhpcy5vdmVybGF5UmVmPy5oYXNBdHRhY2hlZCgpID09PSB0cnVlKSB7XHJcbiAgICAgIHRoaXMub3ZlcmxheVJlZj8uZGV0YWNoKCk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,21 +0,0 @@
1
- import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { TooltipContainerComponent } from './cdk-tooltip/tooltip-container.component';
4
- import { CdkTooltipDirective } from './cdk-tooltip.directive';
5
- import { OverlayModule } from '@angular/cdk/overlay';
6
- import * as i0 from "@angular/core";
7
- export class CdkTooltipModule {
8
- }
9
- CdkTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CdkTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- CdkTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CdkTooltipModule, declarations: [TooltipContainerComponent, CdkTooltipDirective], imports: [CommonModule, OverlayModule], exports: [CdkTooltipDirective] });
11
- CdkTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CdkTooltipModule, imports: [[CommonModule, OverlayModule]] });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CdkTooltipModule, decorators: [{
13
- type: NgModule,
14
- args: [{
15
- declarations: [TooltipContainerComponent, CdkTooltipDirective],
16
- imports: [CommonModule, OverlayModule],
17
- schemas: [CUSTOM_ELEMENTS_SCHEMA],
18
- exports: [CdkTooltipDirective]
19
- }]
20
- }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2RrLXRvb2x0aXAubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9jb21wb25lbnRzL2Nkay10b29sdGlwL2Nkay10b29sdGlwLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSwyQ0FBMkMsQ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XknO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtUb29sdGlwQ29udGFpbmVyQ29tcG9uZW50LCBDZGtUb29sdGlwRGlyZWN0aXZlXSxcclxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBPdmVybGF5TW9kdWxlXSxcclxuICBzY2hlbWFzOiBbQ1VTVE9NX0VMRU1FTlRTX1NDSEVNQV0sXHJcbiAgZXhwb3J0czogW0Nka1Rvb2x0aXBEaXJlY3RpdmVdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBDZGtUb29sdGlwTW9kdWxlIHtcclxufVxyXG4iXX0=
@@ -1,26 +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
- }
14
- CharsLeftComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CharsLeftComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- CharsLeftComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: CharsLeftComponent, selector: "mrx-chars-left", inputs: { maxlength: "maxlength", valueLength: "valueLength", value: "value" }, ngImport: i0, template: "<div *ngIf=\"maxlength\" class=\"input-counter maxlength-feedback mrx-chars\">\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}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CharsLeftComponent, decorators: [{
17
- type: Component,
18
- args: [{ selector: 'mrx-chars-left', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"maxlength\" class=\"input-counter maxlength-feedback mrx-chars\">\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}\n"] }]
19
- }], propDecorators: { maxlength: [{
20
- type: Input
21
- }], valueLength: [{
22
- type: Input
23
- }], value: [{
24
- type: Input
25
- }] } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnMtbGVmdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9teXJ0YS11aS9zcmMvbGliL2NvbXBvbmVudHMvY2hhcnMtbGVmdC9jaGFycy1sZWZ0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL215cnRhLXVpL3NyYy9saWIvY29tcG9uZW50cy9jaGFycy1sZWZ0L2NoYXJzLWxlZnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQVExRSxNQUFNLE9BQU8sa0JBQWtCO0lBTi9CO1FBT2tCLGNBQVMsR0FBRyxDQUFDLENB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sdWUgPSAnJztcclxuXHJcbiAgcHVibGljIGdldCBnZXRWYWx1ZUxlbmd0aCgpOiBudW1iZXIge1xyXG4gICAgcmV0dXJuIHRoaXMudmFsdWUgPyB0aGlzLnZhbHVlLmxlbmd0aCA6IHRoaXMudmFsdWVMZW5ndGhcclxuICB9XHJcbn1cclxuIiwiPGRpdiAqbmdJZj1cIm1heGxlbmd0aFwiIGNsYXNzPVwiaW5wdXQtY291bnRlciBtYXhsZW5ndGgtZmVlZGJhY2sgbXJ4LWNoYXJzXCI+XHJcbiAge3tnZXRWYWx1ZUxlbmd0aH19L3t7IG1heGxlbmd0aCB9fVxyXG48L2Rpdj5cclxuIl19
@@ -1,19 +0,0 @@
1
- import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { CharsLeftComponent } from './chars-left.component';
4
- import * as i0 from "@angular/core";
5
- export class CharsLeftModule {
6
- }
7
- CharsLeftModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CharsLeftModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- CharsLeftModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CharsLeftModule, declarations: [CharsLeftComponent], imports: [CommonModule], exports: [CharsLeftComponent] });
9
- CharsLeftModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CharsLeftModule, imports: [[CommonModule]] });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: CharsLeftModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [CharsLeftComponent],
14
- imports: [CommonModule],
15
- schemas: [CUSTOM_ELEMENTS_SCHEMA],
16
- exports: [CharsLeftComponent],
17
- }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbQ2hhcnNMZWZ0Q29tcG9uZW50XSxcclxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcclxuICBzY2hlbWFzOiBbQ1VTVE9NX0VMRU1FTlRTX1NDSEVNQV0sXHJcbiAgZXhwb3J0czogW0NoYXJzTGVmdENvbXBvbmVudF0sXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBDaGFyc0xlZnRNb2R1bGUge31cclxuIl19
@@ -1,121 +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: "13.4.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: "12.0.0", version: "13.4.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: "13.4.0", ngImport: i0, type: ContextMenuComponent, decorators: [{
73
- type: Component,
74
- args: [{
75
- encapsulation: ViewEncapsulation.None,
76
- selector: 'context-menu',
77
- styles: [
78
- `
79
- .cdk-overlay-container {
80
- position: fixed;
81
- z-index: 1000;
82
- pointer-events: none;
83
- top: 0;
84
- left: 0;
85
- width: 100%;
86
- height: 100%;
87
- }
88
- .ngx-contextmenu.cdk-overlay-pane {
89
- position: absolute;
90
- pointer-events: auto;
91
- box-sizing: border-box;
92
- }
93
- `,
94
- ],
95
- template: ``,
96
- }]
97
- }], ctorParameters: function () { return [{ type: i1.ContextMenuService }, { type: undefined, decorators: [{
98
- type: Optional
99
- }, {
100
- type: Inject,
101
- args: [CONTEXT_MENU_OPTIONS]
102
- }] }]; }, propDecorators: { menuClass: [{
103
- type: Input
104
- }], autoFocus: [{
105
- type: Input
106
- }], useBootstrap4: [{
107
- type: Input
108
- }], disabled: [{
109
- type: Input
110
- }], close: [{
111
- type: Output
112
- }], open: [{
113
- type: Output
114
- }], menuItems: [{
115
- type: ContentChildren,
116
- args: [ContextMenuItemDirective]
117
- }], menuElement: [{
118
- type: ViewChild,
119
- args: ['menu', { static: false }]
120
- }] } });
121
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL215cnRhLXVpL3NyYy9saWIvY29tcG9uZW50cy9jb250ZXh0LW1lbnUvY29tcG9uZW50cy9jb250ZXh0LW1lbnUvY29udGV4dC1tZW51LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULGVBQWUsRUFFZixZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFFTCxRQUFRLEVBQ1IsTUFBTSxFQUVOLFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0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