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,66 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { SimpleModalComponent } from 'ngx-simple-modal';
3
- import { convertBase64ToFile } from '../../../../../helpers/extension/input-file.extension';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../../../../modal/modal.component";
6
- import * as i2 from "ngx-image-cropper";
7
- import * as i3 from "../../../../button/button.component";
8
- export class FileImageEditModalComponent extends SimpleModalComponent {
9
- constructor() {
10
- super();
11
- this.imageChangedEvent = '';
12
- this.croppedImage = '';
13
- this.canvasRotation = 0;
14
- this.transform = {};
15
- this.result = { result: false };
16
- }
17
- ok() {
18
- this.result = {
19
- result: true,
20
- fileImage: convertBase64ToFile(this.croppedImage, this.fileImage.name, this.fileImage.type),
21
- fileUrl: this.croppedImage
22
- };
23
- this.close();
24
- }
25
- rotateLeft() {
26
- this.canvasRotation--;
27
- this.flipAfterRotate();
28
- }
29
- rotateRight() {
30
- this.canvasRotation++;
31
- this.flipAfterRotate();
32
- }
33
- flipAfterRotate() {
34
- const flippedH = this.transform.flipH;
35
- const flippedV = this.transform.flipV;
36
- this.transform = {
37
- ...this.transform,
38
- flipH: flippedV,
39
- flipV: flippedH
40
- };
41
- }
42
- fileChangeEvent(event) {
43
- this.imageChangedEvent = event;
44
- }
45
- imageCropped(event) {
46
- if (event.base64) {
47
- this.croppedImage = event.base64;
48
- }
49
- }
50
- imageLoaded(image) {
51
- // console.log(image)
52
- }
53
- cropperReady() {
54
- // cropper ready
55
- }
56
- loadImageFailed() {
57
- // show message
58
- }
59
- }
60
- FileImageEditModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FileImageEditModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
- FileImageEditModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FileImageEditModalComponent, selector: "mrx-file-image-edit-modal", usesInheritance: true, ngImport: i0, template: "<mrx-modal\r\n [title]=\"title\"\r\n [size]=\"'medium'\"\r\n (close)=\"close()\"\r\n>\r\n <div class=\"row\">\r\n <div class=\"col col-12\">\r\n <p>\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 \u043E\u0431\u043B\u043E\u0436\u043A\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B</p>\r\n </div>\r\n\r\n <div class=\"col col-12\">\r\n <div class=\"mrx-input-image-cropper__wrapper\">\r\n <image-cropper\r\n [imageFile]=\"fileImage\"\r\n [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"aspectRatio\"\r\n format=\"png\"\r\n (imageCropped)=\"imageCropped($event)\"\r\n (imageLoaded)=\"imageLoaded($event)\"\r\n (cropperReady)=\"cropperReady()\"\r\n (loadImageFailed)=\"loadImageFailed()\"\r\n [backgroundColor]=\"'#000000'\"\r\n [canvasRotation]=\"canvasRotation\"\r\n [transform]=\"transform\"\r\n [cropperMaxWidth]=\"cropperMaxWidth\"\r\n [cropperMaxHeight]=\"cropperMaxHeight\"\r\n ></image-cropper>\r\n\r\n <div class=\"mrx-input-image-cropper__controls\">\r\n <svg (click)=\"rotateLeft()\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"2\" y=\"15\" width=\"8\" height=\"8\" rx=\"0.888889\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 18.5C5.05228 18.5 5.5 18.0523 5.5 17.5C5.5 16.9477 5.05228 16.5 4.5 16.5C3.94772 16.5 3.5 16.9477 3.5 17.5C3.5 18.0523 3.94772 18.5 4.5 18.5Z\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M9.99978 20.3333L7.77756 18.1111L2.88867 23\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M13.1575 21.6842C18.5932 21.6842 22.9996 17.2777 22.9996 11.8421C22.9996 6.40646 18.5932 2 13.1575 2C7.72189 2 3.31543 6.40646 3.31543 11.8421\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\r\n <path d=\"M1.00026 10.1052L3.31605 12.421L5.63184 10.1052\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n\r\n <svg (click)=\"rotateRight()\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"14\" y=\"15\" width=\"8\" height=\"8\" rx=\"0.888889\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.5 18.5C17.0523 18.5 17.5 18.0523 17.5 17.5C17.5 16.9477 17.0523 16.5 16.5 16.5C15.9477 16.5 15.5 16.9477 15.5 17.5C15.5 18.0523 15.9477 18.5 16.5 18.5Z\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M21.9998 20.3333L19.7776 18.1111L14.8887 23\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M10.8425 21.6842C5.40682 21.6842 1.00036 17.2777 1.00036 11.8421C1.00036 6.40646 5.40682 2 10.8425 2C16.2781 2 20.6846 6.40646 20.6846 11.8421\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\r\n <path d=\"M22.9997 10.1052L20.684 12.421L18.3682 10.1052\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\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 (click)=\"close()\"\r\n >\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\r\n </mrx-button>\r\n <mrx-button\r\n [type]=\"'primary'\"\r\n [size]=\"'medium'\"\r\n (click)=\"ok()\"\r\n >\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C\r\n </mrx-button>\r\n </ng-template>\r\n</mrx-modal>\r\n", styles: [":host::ng-deep .mrx-input-image-cropper__wrapper{position:relative}:host::ng-deep .mrx-input-image-cropper__controls{padding:8px;background:rgba(31,34,38,.5);border-radius:4px;position:absolute;left:50%;bottom:24px;transform:translate(-50%)}:host::ng-deep .mrx-input-image-cropper__controls svg{cursor:pointer}:host::ng-deep .mrx-input-image-cropper__controls svg:not(:last-child){margin-right:16px}\n"], components: [{ type: i1.ModalComponent, selector: "mrx-modal", inputs: ["title", "message", "okText", "closeText", "size", "color", "customClasses", "expandable", "isClose", "isBack", "backText", "enableFooter", "alignButtons", "isLoading", "iconPosition"], outputs: ["ok", "close", "back"] }, { type: i2.ImageCropperComponent, selector: "image-cropper", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "imageAltText", "format", "transform", "maintainAspectRatio", "aspectRatio", "resetCropOnAspectRatioChange", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "allowMoveImage", "cropper", "alignImage", "disabled", "hidden"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed", "transformChange"] }, { type: i3.ButtonComponent, selector: "mrx-button", inputs: ["size", "type", "color", "iconPosition", "active", "disabled", "isLoading", "iconOnly", "customClasses", "label", "icon", "iconClass", "buttonType"], outputs: ["mrxClick"] }] });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FileImageEditModalComponent, decorators: [{
63
- type: Component,
64
- args: [{ selector: 'mrx-file-image-edit-modal', template: "<mrx-modal\r\n [title]=\"title\"\r\n [size]=\"'medium'\"\r\n (close)=\"close()\"\r\n>\r\n <div class=\"row\">\r\n <div class=\"col col-12\">\r\n <p>\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 \u043E\u0431\u043B\u043E\u0436\u043A\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B</p>\r\n </div>\r\n\r\n <div class=\"col col-12\">\r\n <div class=\"mrx-input-image-cropper__wrapper\">\r\n <image-cropper\r\n [imageFile]=\"fileImage\"\r\n [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"aspectRatio\"\r\n format=\"png\"\r\n (imageCropped)=\"imageCropped($event)\"\r\n (imageLoaded)=\"imageLoaded($event)\"\r\n (cropperReady)=\"cropperReady()\"\r\n (loadImageFailed)=\"loadImageFailed()\"\r\n [backgroundColor]=\"'#000000'\"\r\n [canvasRotation]=\"canvasRotation\"\r\n [transform]=\"transform\"\r\n [cropperMaxWidth]=\"cropperMaxWidth\"\r\n [cropperMaxHeight]=\"cropperMaxHeight\"\r\n ></image-cropper>\r\n\r\n <div class=\"mrx-input-image-cropper__controls\">\r\n <svg (click)=\"rotateLeft()\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"2\" y=\"15\" width=\"8\" height=\"8\" rx=\"0.888889\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 18.5C5.05228 18.5 5.5 18.0523 5.5 17.5C5.5 16.9477 5.05228 16.5 4.5 16.5C3.94772 16.5 3.5 16.9477 3.5 17.5C3.5 18.0523 3.94772 18.5 4.5 18.5Z\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M9.99978 20.3333L7.77756 18.1111L2.88867 23\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M13.1575 21.6842C18.5932 21.6842 22.9996 17.2777 22.9996 11.8421C22.9996 6.40646 18.5932 2 13.1575 2C7.72189 2 3.31543 6.40646 3.31543 11.8421\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\r\n <path d=\"M1.00026 10.1052L3.31605 12.421L5.63184 10.1052\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n\r\n <svg (click)=\"rotateRight()\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"14\" y=\"15\" width=\"8\" height=\"8\" rx=\"0.888889\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.5 18.5C17.0523 18.5 17.5 18.0523 17.5 17.5C17.5 16.9477 17.0523 16.5 16.5 16.5C15.9477 16.5 15.5 16.9477 15.5 17.5C15.5 18.0523 15.9477 18.5 16.5 18.5Z\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M21.9998 20.3333L19.7776 18.1111L14.8887 23\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M10.8425 21.6842C5.40682 21.6842 1.00036 17.2777 1.00036 11.8421C1.00036 6.40646 5.40682 2 10.8425 2C16.2781 2 20.6846 6.40646 20.6846 11.8421\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\r\n <path d=\"M22.9997 10.1052L20.684 12.421L18.3682 10.1052\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\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 (click)=\"close()\"\r\n >\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\r\n </mrx-button>\r\n <mrx-button\r\n [type]=\"'primary'\"\r\n [size]=\"'medium'\"\r\n (click)=\"ok()\"\r\n >\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C\r\n </mrx-button>\r\n </ng-template>\r\n</mrx-modal>\r\n", styles: [":host::ng-deep .mrx-input-image-cropper__wrapper{position:relative}:host::ng-deep .mrx-input-image-cropper__controls{padding:8px;background:rgba(31,34,38,.5);border-radius:4px;position:absolute;left:50%;bottom:24px;transform:translate(-50%)}:host::ng-deep .mrx-input-image-cropper__controls svg{cursor:pointer}:host::ng-deep .mrx-input-image-cropper__controls svg:not(:last-child){margin-right:16px}\n"] }]
65
- }], ctorParameters: function () { return []; } });
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1pbWFnZS1lZGl0LW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZ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kYWw+XHJcbiJdfQ==
@@ -1,354 +0,0 @@
1
- import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
2
- import { convertBase64ToFile, formatBytes, getBase64FromUrl } from '../../../helpers/extension/input-file.extension';
3
- import { v4 as uuidv4 } from 'uuid';
4
- import { catchError } from 'rxjs/operators';
5
- import { EMPTY } from 'rxjs';
6
- import { HttpEventType } from '@angular/common/http';
7
- import { FileImageEditModalComponent } from './components/file-image-edit-modal/file-image-edit-modal.component';
8
- import { InputFileImageTypeEnum } from './input-file-image.enum';
9
- import { PreviewEnum } from './input-file-image.enum';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "../../../services/file-upload/file-upload.service";
12
- import * as i2 from "ngx-simple-modal";
13
- import * as i3 from "ngx-file-drop";
14
- import * as i4 from "@angular/common";
15
- export class InputFileImageComponent {
16
- constructor(imageUploadService, simpleModalService) {
17
- this.imageUploadService = imageUploadService;
18
- this.simpleModalService = simpleModalService;
19
- this.formatBytes = formatBytes;
20
- this.allowedExtensions = [];
21
- this.files = [];
22
- this.notFoundImage = PreviewEnum.notFoundImage;
23
- this.hostClass = 'ng-form-file-input';
24
- this.type = 'default';
25
- this.preview = '';
26
- this.customClasses = '';
27
- this.required = false;
28
- this.disabled = false;
29
- this.lightDisabled = false;
30
- this.maxSize = 31457280;
31
- this.maxFiles = 5;
32
- this.minFiles = 0;
33
- this.cropperMaxWidth = 0;
34
- this.cropperMaxHeight = 0;
35
- this.aspectRatio = 1 / 1;
36
- this.formData = {}; // Параметры, которые будут передаваться в форме
37
- // @Output() public uploadComplete: EventEmitter<InputFileModel[]> = new EventEmitter();
38
- this.filesChanged = new EventEmitter();
39
- }
40
- set initFiles(data) {
41
- if (data) {
42
- if (Array.isArray(data)) {
43
- this.files = data.map(s => ({ ...s }));
44
- }
45
- else {
46
- this.files = [{ ...data }];
47
- }
48
- }
49
- else {
50
- this.files = [];
51
- }
52
- }
53
- set initAllowedExtensions(val) {
54
- if (val) {
55
- this.allowedExtensions = val;
56
- this.extensions = val.join(', ');
57
- }
58
- else {
59
- this.allowedExtensions = [];
60
- this.extensions = undefined;
61
- }
62
- }
63
- get getDefaultPlaceholder() {
64
- return this.type === 'avatar' ? 'Загрузите фотографию' : 'Перенесите файл с устройства или нажмите на данное поле для добавления файла';
65
- }
66
- get getClasses() {
67
- return `${InputFileImageTypeEnum[this.type]} ${this.customClasses}`;
68
- }
69
- get getDropZoneClasses() {
70
- return `ng-custom-file-input ${this.disabled ? 'mrx-input-file-image__disabled' : ''}`;
71
- }
72
- get canAdd() {
73
- if (this.type === 'avatar') {
74
- return this.files.length < 1;
75
- }
76
- else {
77
- return this.maxFiles > this.files.filter(s => !s.error).length;
78
- }
79
- }
80
- trackByFn(index, item) {
81
- return Boolean(item.uuid) ? item.uuid : item.tempUuid;
82
- }
83
- delete(event, file) {
84
- event.stopPropagation();
85
- if (this.deleteConfirm) {
86
- this.deleteConfirm(file, (ok) => {
87
- if (ok) {
88
- const findFile = this.files.find(s => s.uuid === file.uuid);
89
- if (findFile) {
90
- if (this.deleteEndPoint) {
91
- const formData = this.createFormData();
92
- formData.append('Qquuid', file.uuid);
93
- findFile.deleting = true;
94
- this.imageUploadService.delete(this.deleteEndPoint, formData).subscribe(result => {
95
- this.files.splice(this.files.indexOf(findFile), 1);
96
- this.filesChanged.emit(this.files);
97
- });
98
- }
99
- else {
100
- this.files.splice(this.files.indexOf(findFile), 1);
101
- this.filesChanged.emit(this.files);
102
- }
103
- }
104
- }
105
- });
106
- }
107
- }
108
- canCancelUploading(file) {
109
- return !!file.uploading && file.percentage ? file.percentage < 90 : !!file.uploading;
110
- }
111
- clear(file) {
112
- if (file.uploading) {
113
- if (file.execution) {
114
- file.execution.unsubscribe();
115
- }
116
- }
117
- const findFileIdx = this.files.indexOf(file);
118
- if (findFileIdx >= 0) {
119
- this.files.splice(findFileIdx, 1);
120
- }
121
- }
122
- downloadUrl(file) {
123
- if (file.url) {
124
- return file.url;
125
- }
126
- else {
127
- if (this.downloadEndPoint) {
128
- return `${this.downloadEndPoint}?uuid=${file.uuid}`;
129
- }
130
- return this.notFoundImage;
131
- }
132
- }
133
- dropped(files) {
134
- const droppedFile = files[0];
135
- if (droppedFile.fileEntry.isFile) {
136
- const fileEntry = droppedFile.fileEntry;
137
- fileEntry.file((file) => {
138
- this.simpleModalService.addModal(FileImageEditModalComponent, {
139
- title: 'Обложка',
140
- fileImage: file,
141
- cropperMaxWidth: this.cropperMaxWidth,
142
- cropperMaxHeight: this.cropperMaxHeight,
143
- aspectRatio: this.aspectRatio
144
- }, { wrapperDefaultClasses: 'mrx-modal fade-anim' })
145
- .subscribe((res) => {
146
- if (res.result) {
147
- this.uploadFile(res.fileImage, res.fileUrl);
148
- }
149
- });
150
- });
151
- }
152
- else {
153
- // It was a directory (empty directories are added, otherwise only files)
154
- const fileEntry = droppedFile.fileEntry;
155
- }
156
- }
157
- changePreview(event, file) {
158
- event.stopPropagation();
159
- const url = this.downloadUrl(file);
160
- getBase64FromUrl(url).then((base64Url) => {
161
- this.simpleModalService.addModal(FileImageEditModalComponent, {
162
- title: 'Обложка',
163
- fileImage: convertBase64ToFile(base64Url, file.name || '', 'image/png'),
164
- cropperMaxWidth: this.cropperMaxWidth,
165
- cropperMaxHeight: this.cropperMaxHeight,
166
- aspectRatio: this.aspectRatio
167
- }, { wrapperDefaultClasses: 'mrx-modal fade-anim' })
168
- .subscribe((res) => {
169
- if (res.result) {
170
- const findFile = this.files.find(s => {
171
- if (s.uuid !== '') {
172
- return s.uuid === file.uuid;
173
- }
174
- else {
175
- return s.tempUuid === file.tempUuid;
176
- }
177
- });
178
- if (findFile) {
179
- if (this.deleteEndPoint) {
180
- const formData = this.createFormData();
181
- formData.append('Qquuid', file.uuid);
182
- findFile.deleting = true;
183
- this.imageUploadService.delete(this.deleteEndPoint, formData).subscribe(result => {
184
- this.files.splice(this.files.indexOf(findFile), 1);
185
- this.filesChanged.emit(this.files);
186
- this.uploadFile(res.fileImage, res.fileUrl);
187
- });
188
- }
189
- else {
190
- this.uploadFile(res.fileImage, res.fileUrl, this.files.indexOf(findFile), 'update');
191
- }
192
- }
193
- }
194
- });
195
- });
196
- }
197
- fileOver(event) {
198
- }
199
- fileLeave(event) {
200
- }
201
- formDataKeys() {
202
- return Object.keys(this.formData);
203
- }
204
- createFormData() {
205
- const form = new FormData();
206
- if (this.maxFiles) {
207
- form.append('MaxFiles', this.maxFiles.toString(10));
208
- }
209
- const keys = this.formDataKeys();
210
- keys.forEach(key => form.append(key, this.formData[key]));
211
- return form;
212
- }
213
- uploadFile(file, urlImage, idxFile = 0, eventType = 'create') {
214
- const data = {
215
- uuid: '',
216
- tempUuid: uuidv4(),
217
- name: file.name,
218
- size: file.size,
219
- uploading: true,
220
- percentage: 0,
221
- file: file,
222
- url: urlImage
223
- };
224
- if (!this.checkForUpload(data, idxFile, eventType)) {
225
- return;
226
- }
227
- const formData = this.createFormData();
228
- formData.append('File', file);
229
- data.execution = this.imageUploadService.upload(this.uploadEndPoint, formData).pipe(catchError((err) => {
230
- data.uploading = false;
231
- return EMPTY;
232
- }))
233
- .subscribe((event) => {
234
- switch (event.type) {
235
- case HttpEventType.Sent:
236
- break;
237
- case HttpEventType.ResponseHeader:
238
- break;
239
- case HttpEventType.UploadProgress:
240
- if (event.total) {
241
- data.percentage = Math.round(event.loaded / event.total * 100);
242
- }
243
- break;
244
- case HttpEventType.Response:
245
- if (event.body) {
246
- data.uploading = false;
247
- data.percentage = 0;
248
- data.uuid = event.body.uuid;
249
- data.file = undefined;
250
- data.error = event.body.message;
251
- if (data.execution) {
252
- data.execution.unsubscribe();
253
- }
254
- if (this.files.every(s => !s.uploading)) {
255
- this.filesChanged.emit(this.files);
256
- }
257
- }
258
- }
259
- });
260
- }
261
- checkForUpload(data, idxFile = 0, eventType) {
262
- if (eventType === 'update') {
263
- this.files.splice(idxFile, 1, data);
264
- this.filesChanged.emit(this.files);
265
- return true;
266
- }
267
- if (this.type === 'avatar') {
268
- this.files.length = 0;
269
- this.files.push(data);
270
- return true;
271
- }
272
- if (!this.canAdd) {
273
- data.error = 'Слишком много файлов';
274
- data.uploading = false;
275
- this.files.push(data);
276
- return false;
277
- }
278
- this.files.push(data);
279
- if (data.file && data.file.size > this.maxSize) {
280
- data.error = 'Слишком большой файл';
281
- data.uploading = false;
282
- return false;
283
- }
284
- if (data.file && data.file.size == 0) {
285
- data.error = 'Пустой файл';
286
- data.uploading = false;
287
- return false;
288
- }
289
- if (this.allowedExtensions.length > 0 && !this.allowedExtensions.some(s => data.file?.name.toLowerCase().endsWith(s.toLowerCase()))) {
290
- data.error = 'Неверный формат файла';
291
- data.uploading = false;
292
- return false;
293
- }
294
- return true;
295
- }
296
- }
297
- InputFileImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: InputFileImageComponent, deps: [{ token: i1.FileUploadService }, { token: i2.SimpleModalService }], target: i0.ɵɵFactoryTarget.Component });
298
- InputFileImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: InputFileImageComponent, selector: "mrx-input-file-image", inputs: { type: "type", preview: "preview", customClasses: "customClasses", required: "required", disabled: "disabled", lightDisabled: "lightDisabled", maxSize: "maxSize", maxFiles: "maxFiles", minFiles: "minFiles", cropperMaxWidth: "cropperMaxWidth", cropperMaxHeight: "cropperMaxHeight", aspectRatio: "aspectRatio", formData: "formData", placeholder: "placeholder", uploadEndPoint: "uploadEndPoint", deleteEndPoint: "deleteEndPoint", downloadEndPoint: "downloadEndPoint", fileNamePlaceholder: "fileNamePlaceholder", deleteConfirm: "deleteConfirm", innerTemplate: "innerTemplate", initFiles: ["files", "initFiles"], initAllowedExtensions: ["allowedExtensions", "initAllowedExtensions"] }, outputs: { filesChanged: "filesChanged" }, host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<div class=\"mrx-input-file-image\" [class]=\"getClasses\">\r\n\r\n <ng-container *ngIf=\"type === 'default'\">\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n\r\n <ngx-file-drop *ngIf=\"canAdd\" (onFileDrop)=\"dropped($event)\"\r\n [className]=\"getDropZoneClasses\"\r\n [accept]=\"extensions || ''\"\r\n [disabled]=\"disabled\"\r\n (onFileOver)=\"fileOver($event)\" (onFileLeave)=\"fileLeave($event)\">\r\n <ng-template ngx-file-drop-content-tmp let-openFileSelector=\"openFileSelector\">\r\n <div\r\n class=\"ng-custom-file-input-content\"\r\n (click)=\"!disabled ? openFileSelector() : undefined\"\r\n >\r\n <div class=\"text-center\">\r\n <span>{{placeholder || getDefaultPlaceholder}}</span>\r\n <br/>\r\n <span style=\"font-size: 12px\">\u0420\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430: \u0434\u043E {{formatBytes(maxSize)}}</span>\r\n <br/>\r\n <span *ngIf=\"extensions\" style=\"font-size: 12px\">\u0424\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430: {{extensions}}</span>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-file-drop>\r\n\r\n <div class=\"mrx-input-file-image-preview\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-md-4 col-lg-3\" *ngFor=\"let file of files\">\r\n <div class=\"mrx-input-file-image-preview__item p-3\" [class.mrx-input-file-image-error]=\"file.error\">\r\n <ng-container *ngIf=\"file.error\">\r\n <span class=\"mrx-icon icon-close icon-font-24\" (click)=\"delete($event, file)\"></span>\r\n <div class=\"mrx-input-file-image-preview__item--error p-2\">\r\n <span class=\"mrx-icon icon-image icon-font-24 icon-filled-color-negative mb-2\"></span>\r\n {{ file.error }}\r\n </div>\r\n <span class=\"mrx-input-file-image-preview__item--name mb-2\">\r\n {{ file.name }}\r\n </span>\r\n <span class=\"mrx-input-file-image-preview__item--description\">\r\n {{ formatBytes(file.size) }}\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"file.uploading && !file.error\">\r\n <div class=\"mrx-input-file-image-preview__item--uploading p-2\">\r\n <span class=\"mb-2\">\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...</span>\r\n <div class=\"mrx-input-file-image-preview__item--uploading-progress\">\r\n <span [ngStyle]=\"{width: file.percentage + '%'}\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!file.uploading && !file.error\">\r\n <img class=\"mb-2\" [src]=\"file.url || downloadUrl(file)\" [alt]=\"file.name\">\r\n\r\n <span class=\"mrx-input-file-image-preview__item--name mb-2\">\r\n {{ file.name }}\r\n </span>\r\n <span class=\"mrx-input-file-image-preview__item--description\">\r\n {{ formatBytes(file.size) }}\r\n </span>\r\n\r\n <div class=\"mrx-input-file-image__controls\">\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"changePreview($event, file)\">\r\n <span class=\"mrx-icon icon-pen icon-font-16\"></span>\r\n </div>\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"delete($event, file)\">\r\n <span class=\"mrx-icon icon-delete icon-font-16\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"type === 'avatar'\">\r\n <ngx-file-drop (onFileDrop)=\"dropped($event)\"\r\n [className]=\"getDropZoneClasses\"\r\n [accept]=\"extensions || ''\"\r\n [disabled]=\"disabled\"\r\n (onFileOver)=\"fileOver($event)\" (onFileLeave)=\"fileLeave($event)\">\r\n <ng-template ngx-file-drop-content-tmp let-openFileSelector=\"openFileSelector\">\r\n\r\n <div\r\n *ngIf=\"!files.length; else avatarTemplate\"\r\n class=\"ng-custom-file-input-content\"\r\n [class.mrx-input-file-image__disabled]=\"disabled\"\r\n (click)=\"!disabled ? openFileSelector() : undefined\"\r\n >\r\n <div class=\"text-center\">\r\n <span>{{placeholder || getDefaultPlaceholder}}</span>\r\n <br/>\r\n <span style=\"font-size: 12px\">\u0420\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430: \u0434\u043E {{formatBytes(maxSize)}}</span>\r\n <br/>\r\n <span *ngIf=\"extensions\" style=\"font-size: 12px\">\u0424\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430: {{extensions}}</span>\r\n </div>\r\n </div>\r\n\r\n <ng-template #avatarTemplate>\r\n <div class=\"mrx-input-file-image-avatar\" (click)=\"openFileSelector()\">\r\n <div *ngFor=\"let file of files\">\r\n <div class=\"mrx-input-file-image-avatar__item\" [class.mrx-input-file-image-error]=\"file.error\">\r\n <ng-container *ngIf=\"file.error\">\r\n <span class=\"mrx-icon icon-close icon-font-24\" (click)=\"delete($event, file)\"></span>\r\n <div class=\"mrx-input-file-image-avatar__item--error p-2\">\r\n <span class=\"mrx-icon icon-image icon-font-24 icon-filled-color-negative mb-2\"></span>\r\n {{ file.error }}\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"file.uploading && !file.error\">\r\n <div class=\"mrx-input-file-image-avatar__item--uploading p-2\">\r\n <span class=\"mb-2\">\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...</span>\r\n <div class=\"mrx-input-file-image-avatar__item--uploading-progress\">\r\n <span [ngStyle]=\"{width: file.percentage + '%'}\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!file.uploading && !file.error\">\r\n <img [src]=\"file.url || downloadUrl(file)\" [alt]=\"file.name\">\r\n\r\n <div class=\"mrx-input-file-image__controls\">\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"changePreview($event, file)\">\r\n <span class=\"mrx-icon icon-pen icon-font-16\"></span>\r\n </div>\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"delete($event, file)\">\r\n <span class=\"mrx-icon icon-delete icon-font-16\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-template>\r\n </ngx-file-drop>\r\n </ng-container>\r\n</div>\r\n", styles: [".mrx-input-file-image{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:12px}.mrx-input-file-image__disabled .ngx-file-drop__drop-zone{background-color:var(--neutral-bg-disabled)!important;color:var(--neutral-bg-stroke-default)!important;border:1px solid var(--neutral-bg-stroke-default)!important}.mrx-input-file-image-preview{width:100%}.mrx-input-file-image-preview__item{position:relative;border:1px solid var(--Stroke);border-radius:4px;display:flex;flex-direction:column;justify-content:flex-start;transition:.2s;word-break:break-word;height:100%}.mrx-input-file-image-preview__item .icon-close{position:absolute;top:8px;right:8px;cursor:pointer}.mrx-input-file-image-preview__item.mrx-input-file-image-error{border:1px solid var(--system-bg-controls-negative-default)}.mrx-input-file-image-preview__item img{word-wrap:break-word;max-height:236px;object-fit:cover;width:100%;height:100%}.mrx-input-file-image-preview__item:hover{border-color:var(--Main2)}.mrx-input-file-image-preview__item--name{font-family:var(--body-md-font-family);font-size:var(--body-md-font-size);font-weight:var(--body-md-font-weight);line-height:var(--body-md-line-height);color:var(--neutral-text-primary)}.mrx-input-file-image-preview__item--description{font-family:var(--body-md-font-family);font-size:var(--body-md-font-size);font-weight:var(--body-md-font-weight);line-height:var(--body-md-line-height);color:var(--neutral-text-secondary)}.mrx-input-file-image-preview__item--error{max-height:236px;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--system-text-negative)}.mrx-input-file-image-preview__item--uploading{display:flex;flex-direction:column;justify-content:center;align-items:center}.mrx-input-file-image-preview__item--uploading-progress{width:96px;height:4px;background-color:var(--neutral-bg-island-default);display:flex;justify-content:flex-start}.mrx-input-file-image-preview__item--uploading-progress span{display:block;height:100%;width:0;background-color:var(--brand-bg-primary-default);border-radius:2px}.mrx-input-file-image-preview .row{row-gap:12px}.mrx-input-file-image.mrx-input-file-image__type-avatar{display:flex}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar{width:157px;height:157px;display:flex;align-items:center;justify-content:center;cursor:pointer}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item{position:relative;display:flex;flex-direction:column;justify-content:center;word-break:break-word;width:154px;height:154px}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item .icon-close{position:absolute;top:8px;right:8px;cursor:pointer}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item img{word-wrap:break-word;max-height:236px;object-fit:cover;width:100%;height:100%}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item:hover{border-color:var(--Main2)}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--error{width:154px;height:154px;border:1px solid var(--system-bg-controls-negative-default);border-radius:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--system-text-negative)}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--uploading{width:154px;height:154px;border:1px solid var(--neutral-bg-stroke-default);border-radius:4px;display:flex;flex-direction:column;justify-content:center;align-items:center}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--uploading-progress{width:96px;height:4px;background-color:var(--neutral-bg-island-default);display:flex;justify-content:flex-start}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--uploading-progress span{display:block;height:100%;width:0;background-color:var(--brand-bg-primary-default);border-radius:2px}.mrx-input-file-image.mrx-input-file-image__type-avatar .ngx-file-drop__drop-zone{height:auto}.mrx-input-file-image.mrx-input-file-image__type-avatar .ngx-file-drop__content{width:154px;height:auto;min-height:154px;padding:4px}.mrx-input-file-image.mrx-input-file-image__type-avatar .ng-custom-file-input-content{padding:0}.mrx-input-file-image.mrx-input-file-image__type-default .ng-custom-file-input{width:100%}.mrx-input-file-image.mrx-input-file-image__type-default .ngx-file-drop__drop-zone{height:auto;min-height:100px}.mrx-input-file-image.mrx-input-file-image__type-default .ngx-file-drop__content{height:auto;min-height:100px;padding:16px}.mrx-input-file-image-preview__item:hover .mrx-input-file-image__controls,.mrx-input-file-image-avatar__item:hover .mrx-input-file-image__controls{display:flex}.mrx-input-file-image__controls{position:absolute;top:-16px;right:-16px;background:#FFFFFF;box-shadow:0 1px 4px #3a3a3a4d;border-radius:5px;padding:5px;display:none}.mrx-input-file-image__controls-item{min-width:16px;height:16px;cursor:pointer}.mrx-input-file-image__controls-item:not(:last-child){position:relative;padding-right:8px;border-right:1px solid #BFC5CC;margin-right:8px}\n"], components: [{ type: i3.NgxFileDropComponent, selector: "ngx-file-drop", inputs: ["accept", "directory", "multiple", "dropZoneLabel", "dropZoneClassName", "useDragEnter", "contentClassName", "showBrowseBtn", "browseBtnClassName", "browseBtnLabel", "disabled"], outputs: ["onFileDrop", "onFileOver", "onFileLeave"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgxFileDropContentTemplateDirective, selector: "[ngx-file-drop-content-tmp]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
299
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: InputFileImageComponent, decorators: [{
300
- type: Component,
301
- args: [{ selector: 'mrx-input-file-image', encapsulation: ViewEncapsulation.None, template: "<div class=\"mrx-input-file-image\" [class]=\"getClasses\">\r\n\r\n <ng-container *ngIf=\"type === 'default'\">\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n\r\n <ngx-file-drop *ngIf=\"canAdd\" (onFileDrop)=\"dropped($event)\"\r\n [className]=\"getDropZoneClasses\"\r\n [accept]=\"extensions || ''\"\r\n [disabled]=\"disabled\"\r\n (onFileOver)=\"fileOver($event)\" (onFileLeave)=\"fileLeave($event)\">\r\n <ng-template ngx-file-drop-content-tmp let-openFileSelector=\"openFileSelector\">\r\n <div\r\n class=\"ng-custom-file-input-content\"\r\n (click)=\"!disabled ? openFileSelector() : undefined\"\r\n >\r\n <div class=\"text-center\">\r\n <span>{{placeholder || getDefaultPlaceholder}}</span>\r\n <br/>\r\n <span style=\"font-size: 12px\">\u0420\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430: \u0434\u043E {{formatBytes(maxSize)}}</span>\r\n <br/>\r\n <span *ngIf=\"extensions\" style=\"font-size: 12px\">\u0424\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430: {{extensions}}</span>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-file-drop>\r\n\r\n <div class=\"mrx-input-file-image-preview\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-md-4 col-lg-3\" *ngFor=\"let file of files\">\r\n <div class=\"mrx-input-file-image-preview__item p-3\" [class.mrx-input-file-image-error]=\"file.error\">\r\n <ng-container *ngIf=\"file.error\">\r\n <span class=\"mrx-icon icon-close icon-font-24\" (click)=\"delete($event, file)\"></span>\r\n <div class=\"mrx-input-file-image-preview__item--error p-2\">\r\n <span class=\"mrx-icon icon-image icon-font-24 icon-filled-color-negative mb-2\"></span>\r\n {{ file.error }}\r\n </div>\r\n <span class=\"mrx-input-file-image-preview__item--name mb-2\">\r\n {{ file.name }}\r\n </span>\r\n <span class=\"mrx-input-file-image-preview__item--description\">\r\n {{ formatBytes(file.size) }}\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"file.uploading && !file.error\">\r\n <div class=\"mrx-input-file-image-preview__item--uploading p-2\">\r\n <span class=\"mb-2\">\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...</span>\r\n <div class=\"mrx-input-file-image-preview__item--uploading-progress\">\r\n <span [ngStyle]=\"{width: file.percentage + '%'}\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!file.uploading && !file.error\">\r\n <img class=\"mb-2\" [src]=\"file.url || downloadUrl(file)\" [alt]=\"file.name\">\r\n\r\n <span class=\"mrx-input-file-image-preview__item--name mb-2\">\r\n {{ file.name }}\r\n </span>\r\n <span class=\"mrx-input-file-image-preview__item--description\">\r\n {{ formatBytes(file.size) }}\r\n </span>\r\n\r\n <div class=\"mrx-input-file-image__controls\">\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"changePreview($event, file)\">\r\n <span class=\"mrx-icon icon-pen icon-font-16\"></span>\r\n </div>\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"delete($event, file)\">\r\n <span class=\"mrx-icon icon-delete icon-font-16\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"type === 'avatar'\">\r\n <ngx-file-drop (onFileDrop)=\"dropped($event)\"\r\n [className]=\"getDropZoneClasses\"\r\n [accept]=\"extensions || ''\"\r\n [disabled]=\"disabled\"\r\n (onFileOver)=\"fileOver($event)\" (onFileLeave)=\"fileLeave($event)\">\r\n <ng-template ngx-file-drop-content-tmp let-openFileSelector=\"openFileSelector\">\r\n\r\n <div\r\n *ngIf=\"!files.length; else avatarTemplate\"\r\n class=\"ng-custom-file-input-content\"\r\n [class.mrx-input-file-image__disabled]=\"disabled\"\r\n (click)=\"!disabled ? openFileSelector() : undefined\"\r\n >\r\n <div class=\"text-center\">\r\n <span>{{placeholder || getDefaultPlaceholder}}</span>\r\n <br/>\r\n <span style=\"font-size: 12px\">\u0420\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430: \u0434\u043E {{formatBytes(maxSize)}}</span>\r\n <br/>\r\n <span *ngIf=\"extensions\" style=\"font-size: 12px\">\u0424\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430: {{extensions}}</span>\r\n </div>\r\n </div>\r\n\r\n <ng-template #avatarTemplate>\r\n <div class=\"mrx-input-file-image-avatar\" (click)=\"openFileSelector()\">\r\n <div *ngFor=\"let file of files\">\r\n <div class=\"mrx-input-file-image-avatar__item\" [class.mrx-input-file-image-error]=\"file.error\">\r\n <ng-container *ngIf=\"file.error\">\r\n <span class=\"mrx-icon icon-close icon-font-24\" (click)=\"delete($event, file)\"></span>\r\n <div class=\"mrx-input-file-image-avatar__item--error p-2\">\r\n <span class=\"mrx-icon icon-image icon-font-24 icon-filled-color-negative mb-2\"></span>\r\n {{ file.error }}\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"file.uploading && !file.error\">\r\n <div class=\"mrx-input-file-image-avatar__item--uploading p-2\">\r\n <span class=\"mb-2\">\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...</span>\r\n <div class=\"mrx-input-file-image-avatar__item--uploading-progress\">\r\n <span [ngStyle]=\"{width: file.percentage + '%'}\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!file.uploading && !file.error\">\r\n <img [src]=\"file.url || downloadUrl(file)\" [alt]=\"file.name\">\r\n\r\n <div class=\"mrx-input-file-image__controls\">\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"changePreview($event, file)\">\r\n <span class=\"mrx-icon icon-pen icon-font-16\"></span>\r\n </div>\r\n <div class=\"mrx-input-file-image__controls-item\" (click)=\"delete($event, file)\">\r\n <span class=\"mrx-icon icon-delete icon-font-16\"></span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-template>\r\n </ngx-file-drop>\r\n </ng-container>\r\n</div>\r\n", styles: [".mrx-input-file-image{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:12px}.mrx-input-file-image__disabled .ngx-file-drop__drop-zone{background-color:var(--neutral-bg-disabled)!important;color:var(--neutral-bg-stroke-default)!important;border:1px solid var(--neutral-bg-stroke-default)!important}.mrx-input-file-image-preview{width:100%}.mrx-input-file-image-preview__item{position:relative;border:1px solid var(--Stroke);border-radius:4px;display:flex;flex-direction:column;justify-content:flex-start;transition:.2s;word-break:break-word;height:100%}.mrx-input-file-image-preview__item .icon-close{position:absolute;top:8px;right:8px;cursor:pointer}.mrx-input-file-image-preview__item.mrx-input-file-image-error{border:1px solid var(--system-bg-controls-negative-default)}.mrx-input-file-image-preview__item img{word-wrap:break-word;max-height:236px;object-fit:cover;width:100%;height:100%}.mrx-input-file-image-preview__item:hover{border-color:var(--Main2)}.mrx-input-file-image-preview__item--name{font-family:var(--body-md-font-family);font-size:var(--body-md-font-size);font-weight:var(--body-md-font-weight);line-height:var(--body-md-line-height);color:var(--neutral-text-primary)}.mrx-input-file-image-preview__item--description{font-family:var(--body-md-font-family);font-size:var(--body-md-font-size);font-weight:var(--body-md-font-weight);line-height:var(--body-md-line-height);color:var(--neutral-text-secondary)}.mrx-input-file-image-preview__item--error{max-height:236px;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--system-text-negative)}.mrx-input-file-image-preview__item--uploading{display:flex;flex-direction:column;justify-content:center;align-items:center}.mrx-input-file-image-preview__item--uploading-progress{width:96px;height:4px;background-color:var(--neutral-bg-island-default);display:flex;justify-content:flex-start}.mrx-input-file-image-preview__item--uploading-progress span{display:block;height:100%;width:0;background-color:var(--brand-bg-primary-default);border-radius:2px}.mrx-input-file-image-preview .row{row-gap:12px}.mrx-input-file-image.mrx-input-file-image__type-avatar{display:flex}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar{width:157px;height:157px;display:flex;align-items:center;justify-content:center;cursor:pointer}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item{position:relative;display:flex;flex-direction:column;justify-content:center;word-break:break-word;width:154px;height:154px}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item .icon-close{position:absolute;top:8px;right:8px;cursor:pointer}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item img{word-wrap:break-word;max-height:236px;object-fit:cover;width:100%;height:100%}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item:hover{border-color:var(--Main2)}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--error{width:154px;height:154px;border:1px solid var(--system-bg-controls-negative-default);border-radius:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--system-text-negative)}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--uploading{width:154px;height:154px;border:1px solid var(--neutral-bg-stroke-default);border-radius:4px;display:flex;flex-direction:column;justify-content:center;align-items:center}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--uploading-progress{width:96px;height:4px;background-color:var(--neutral-bg-island-default);display:flex;justify-content:flex-start}.mrx-input-file-image.mrx-input-file-image__type-avatar .mrx-input-file-image-avatar__item--uploading-progress span{display:block;height:100%;width:0;background-color:var(--brand-bg-primary-default);border-radius:2px}.mrx-input-file-image.mrx-input-file-image__type-avatar .ngx-file-drop__drop-zone{height:auto}.mrx-input-file-image.mrx-input-file-image__type-avatar .ngx-file-drop__content{width:154px;height:auto;min-height:154px;padding:4px}.mrx-input-file-image.mrx-input-file-image__type-avatar .ng-custom-file-input-content{padding:0}.mrx-input-file-image.mrx-input-file-image__type-default .ng-custom-file-input{width:100%}.mrx-input-file-image.mrx-input-file-image__type-default .ngx-file-drop__drop-zone{height:auto;min-height:100px}.mrx-input-file-image.mrx-input-file-image__type-default .ngx-file-drop__content{height:auto;min-height:100px;padding:16px}.mrx-input-file-image-preview__item:hover .mrx-input-file-image__controls,.mrx-input-file-image-avatar__item:hover .mrx-input-file-image__controls{display:flex}.mrx-input-file-image__controls{position:absolute;top:-16px;right:-16px;background:#FFFFFF;box-shadow:0 1px 4px #3a3a3a4d;border-radius:5px;padding:5px;display:none}.mrx-input-file-image__controls-item{min-width:16px;height:16px;cursor:pointer}.mrx-input-file-image__controls-item:not(:last-child){position:relative;padding-right:8px;border-right:1px solid #BFC5CC;margin-right:8px}\n"] }]
302
- }], ctorParameters: function () { return [{ type: i1.FileUploadService }, { type: i2.SimpleModalService }]; }, propDecorators: { hostClass: [{
303
- type: HostBinding,
304
- args: ['class']
305
- }], type: [{
306
- type: Input
307
- }], preview: [{
308
- type: Input
309
- }], customClasses: [{
310
- type: Input
311
- }], required: [{
312
- type: Input
313
- }], disabled: [{
314
- type: Input
315
- }], lightDisabled: [{
316
- type: Input
317
- }], maxSize: [{
318
- type: Input
319
- }], maxFiles: [{
320
- type: Input
321
- }], minFiles: [{
322
- type: Input
323
- }], cropperMaxWidth: [{
324
- type: Input
325
- }], cropperMaxHeight: [{
326
- type: Input
327
- }], aspectRatio: [{
328
- type: Input
329
- }], formData: [{
330
- type: Input
331
- }], placeholder: [{
332
- type: Input
333
- }], uploadEndPoint: [{
334
- type: Input
335
- }], deleteEndPoint: [{
336
- type: Input
337
- }], downloadEndPoint: [{
338
- type: Input
339
- }], fileNamePlaceholder: [{
340
- type: Input
341
- }], deleteConfirm: [{
342
- type: Input
343
- }], innerTemplate: [{
344
- type: Input
345
- }], initFiles: [{
346
- type: Input,
347
- args: ['files']
348
- }], initAllowedExtensions: [{
349
- type: Input,
350
- args: ['allowedExtensions']
351
- }], filesChanged: [{
352
- type: Output
353
- }] } });
354
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtZmlsZS1pbWFnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9teXJ0YS11aS9zcmMvbGliL2NvbXBvbmVudHMvZm9ybS9pbnB1dC1maWxlLWltYWdlL2lucHV0LWZpbGUtaW1hZ2UuY29tcG9uZW50LnRzIiwiLi4vL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Jlc3VsdE1vZGVsPikgPT4ge1xyXG4gICAgICAgIHN3aXRjaCAoZXZlbnQudHlwZSkge1xyXG4gICAgICAgICAgY2FzZSBIdHRwRXZlbnRUeXBlLlNlbnQ6XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgY2FzZSBIdHRwRXZlbnRUeXBlLlJlc3BvbnNlSGVhZGVyOlxyXG4gICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIGNhc2UgSHR0cEV2ZW50VHlwZS5VcGxvYWRQcm9ncmVzczpcclxuICAgICAgICAgICAgaWYgKGV2ZW50LnRvdGFsKSB7XHJcbiAgICAgICAgICAgICAgZGF0YS5wZXJjZW50YWdlID0gTWF0aC5yb3VuZChldmVudC5sb2FkZWQgLyBldmVudC50b3RhbCAqIDEwMCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICBjYXNlIEh0dHBFdmVudFR5cGUuUmVzcG9uc2U6XHJcbiAgICAgICAgICAgIGlmKGV2ZW50LmJvZHkpIHtcclxuICAgICAgICAgICAgICBkYXRhLnVwbG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgIGRhdGEucGVyY2VudGFnZSA9IDA7XHJcbiAgICAgICAgICAgICAgZGF0YS51dWlkID0gZXZlbnQuYm9keS51dWlkO1xyXG4gICAgICAgICAgICAgIGRhdGEuZmlsZSA9IHVuZGVmaW5lZDtcclxuICAgICAgICAgICAgICBkYXRhLmVycm9yID0gZXZlbnQuYm9keS5tZXNzYWdlO1xyXG5cclxuICAgICAgICAgICAgICBpZiAoZGF0YS5leGVjdXRpb24pIHtcclxuICAgICAgICAgICAgICAgIGRhdGEuZXhlY3V0aW9uLnVuc3Vic2NyaWJlKCk7XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIGlmICh0aGlzLmZpbGVzLmV2ZXJ5KHMgPT4gIXMudXBsb2FkaW5nKSkge1xyXG5cclxuICAgIC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GUtZHJvcCAqbmdJZj1cImNhbkFkZFwiIChvbkZpbGVEcm9wKT1cImRyb3BwZWQoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAgICBbY2xhc3NOYW1lXT1cImdldERyb3Bab25lQ2xhc3Nlc1wiXHJcbiAgICAgICAgICAgICAgICAgICBbYWNjZXB0XT1cImV4dGVuc2lvbnMgfHwgJydcIlxyXG4gICAgICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcclxuICAgICAgICAgICAgICAgICAgIChvbkZpbGVPdmVyKT1cImZpbGVPdmVyKCRldmVudClcIiAob25GaWxlTGVhdmUpPVwiZmlsZUxlYXZlKCRldmVudClcIj5cclxuICAgICAgPG5nLXRlbXBsYXRlIG5neC1maWxlLWRyb3AtY29udGVudC10bXAgbGV0LW9wZW5GaWxlU2VsZWN0b3I9XCJvcGVuRmlsZVNlbGVjdG9yXCI+XHJcbiAgICAgICAgPGRpdlxyXG4gICAgICAgICAgICBjbGFzcz1cIm5nLWN1c3RvbS1maWxlLWlucHV0LWNvbnRlbnRcIlxyXG4gICAgICAgICAgICAoY2xpY2spPVwiIWRpc2FibGVkID8gb3BlbkZpbGVTZWxlY3RvcigpIDogdW5kZWZpbmVkXCJcclxuICAgICAgICA+XHJcbiAgICAgICAgICA8ZGl2IGNsYXNzPVwidGV4dC1jZW50ZXJcIj5cclxuICAgICAgICAgICAgPHNwYW4+e3twbGFjZWhvbGRlciB8fCBnZXREZWZhdWx0UGxhY2Vob2xkZXJ9fTwvc3Bhbj5cclxuICAgICAgICAgICAgPGJyLz5cclxuICAgICAgICAgICAgPHNwYW4gc3R5bGU9XCJmb250LXNpemU6IDEycHhcIj7QoNCw0LfQvNC10YAg0YTQsNC50LvQsDog0LTQviB7e2Zvcm1hdEJ5dGVzKG1heFNpemUpfX08L3NwYW4+XHJcbiAgICAgICAgICAgIDxici8+XHJcbiAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiZXh0ZW5zaW9uc1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ycm9yIH19XHJcbiAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJtcngtaW5wdXQtZmlsZS1pbWFnZS1wcmV2aWV3X19pdGVtLS1uYW1lIG1iLTJcIj5cclxuICAgICAgICAgICAgICAgIHt7IGZpbGUubmFtZSB9fVxyXG4gICAgICAgICAgICAgIDwvc3Bhbj5cclxuICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cIm1yeC1pbnB1dC1maWxlLWltYWdlLXByZXZpZXdfX2l0ZW0tLWRlc2NyaXB0aW9uXCI+XHJcbiAgICAgICAgICAgICAgICB7eyBmb3JtYXRCeXRlcyhmaWxlLnNpemUpIH19XHJcbiAgICAgICAgICAgICAgPC9zcGFuPlxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuXHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJmaWxlLnVwbG9hZGluZyAmJiAhZmlsZS5lcnJvclwiPlxyXG4gICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJtcngtaW5wdXQtZmlsZS1pbWFnZS1wcmV2aWV3X19pdGVtLS11cGxvYWRpbmcgcC0yXCI+XHJcbiAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cIm1iLTJcIj7Ql9Cw0LPRgNGD0LfQutCwLi4uPC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1yeC1pbnB1dC1maWxlLWltYWdlLXByZXZpZXdfX2l0ZW0tLXVwbG9hZGluZy1wcm9ncmVzc1wiPlxyXG4gICAgICAgICAgICAgICAgICA8c3BhbiBbbmdTdHlsZV09XCJ7d2lkdGg6IGZpbGUucGVyY2VudGFnZSArICclJ31cIj48L3NwYW4+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcblxyXG4gICAgICAgIC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LWZpbGUtaW1hZ2UtZXJyb3JdPVwiZmlsZS5lcnJvclwiPlxyXG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpbGUuZXJyb3JcIj5cclxuICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJtcngtaWNvbiBpY29uLWNsb3NlIGljb24tZm9udC0yNFwiIChjbGljayk9XCJkZWxldGUoJGV2ZW50LCBmaWxlKVwiPjwvc3Bhbj5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1yeC1pbnB1dC1maWxlLWltYWdlLWF2YXRhcl9faXRlbS0tZXJyb3IgcC0yXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJtcngtaWNvbiBpY29uLWltYWdlIGljb24tZm9udC0yNCBpY29uLWZpbGxlZC1jb2xvci1uZWdhdGl2ZSBtYi0yXCI+PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgIHt7IGZpbGUuZXJyb3IgfX1cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuXHJcbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZmlsZS51cGxvYWRpbmcgJiYgIWZpbGUuZXJyb3JcIj5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1yeC1pbnB1dC1maWxlLWltYWdlLWF2YXRhcl9faXRlbS0tdXBsb2FkaW5nIHAtMlwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwibWItMlwiPtCX0LDQs9GA0YPQt9C60LAuLi48L3NwYW4+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1yeC1pbnB1dC1maWxlLWltYWdlLWF2YXRhcl9faXRlbS0tdXBsb2FkaW5nLXByb2dyZXNzXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBbbmdTdHlsZV09XCJ7d2lkdGg6IGZpbGUucGVyY2VudGFnZSArICclJ31cIj48L3NwYW4+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcblxyXG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiFmaWxlLnVwbG9hZGluZyAmJiAhZmlsZS5lcnJvclwiPlxyXG4gICAgICAgICAgICAgICAgICA8aW1nIFtzcmNdPVwiZmlsZS51cmwgfHwgZG93bmxvYWRVcmwoZmlsZSlcIiBbYWx0XT1cImZpbGUubmFtZVwiPlxyXG5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1yeC1pbnB1dC1maWxlLWltYWdlX19jb250cm9sc1wiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJtcngtaW5wdXQtZmlsZS1pbWFnZV9fY29udHJvbHMtaXRlbVwiIChjbGljayk9XCJjaGFuZ2VQcmV2aWV3KCRldmVudCwgZmlsZSlcIj5cclxuICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwibXJ4LWljb24gaWNvbi1wZW4gaWNvbi1mb250LTE2XCI+PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJtcngtaW5wdXQtZmlsZS1pbWFnZV9fY29udHJvbHMtaXRlbVwiIChjbGljayk9XCJkZWxldGUoJGV2ZW50LCBmaWxlKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJtcngtaWNvbiBpY29uLWRlbGV0ZSBpY29uLWZvbnQtMTZcIj48L3NwYW4+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgPC9uZy10ZW1wbGF0ZT5cclxuXHJcbiAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICA8L25neC1maWxlLWRyb3A+XHJcbiAgPC9uZy1jb250YWluZXI+XHJcbjwvZGl2PlxyXG4iXX0=