myrta-ui 14.0.0-beta.1 → 17.0.0-beta.2

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 (702) hide show
  1. package/README.md +2 -0
  2. package/esm2022/lib/components/alert/alert.component.mjs +43 -0
  3. package/{esm2020 → esm2022}/lib/components/alert/alert.enum.mjs +14 -14
  4. package/{esm2020 → esm2022}/lib/components/alert/alert.module.mjs +19 -19
  5. package/{esm2020 → esm2022}/lib/components/badges/badge.enum.mjs +31 -31
  6. package/{esm2020 → esm2022}/lib/components/badges/badges.module.mjs +30 -30
  7. package/esm2022/lib/components/badges/components/badge/badge.component.mjs +61 -0
  8. package/{esm2020 → esm2022}/lib/components/badges/components/badge-group/badge-group.component.mjs +11 -11
  9. package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +28 -0
  10. package/{esm2020 → esm2022}/lib/components/breadcrumbs/breadcrumbs.enum.mjs +5 -5
  11. package/{esm2020 → esm2022}/lib/components/breadcrumbs/breadcrumbs.module.mjs +25 -25
  12. package/esm2022/lib/components/button/button.component.mjs +100 -0
  13. package/esm2022/lib/components/button/button.enum.mjs +27 -0
  14. package/{esm2020 → esm2022}/lib/components/button/button.module.mjs +21 -21
  15. package/esm2022/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.mjs +29 -0
  16. package/esm2022/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +99 -0
  17. package/{esm2020 → esm2022}/lib/components/cdk-tooltip/cdk-tooltip.module.mjs +21 -21
  18. package/{esm2020 → esm2022}/lib/components/cdk-tooltip/constants/index.mjs +69 -69
  19. package/{esm2020 → esm2022}/lib/components/cdk-tooltip/models/tooltip-data.mjs +1 -1
  20. package/esm2022/lib/components/chars-left/chars-left.component.mjs +24 -0
  21. package/{esm2020 → esm2022}/lib/components/chars-left/chars-left.module.mjs +19 -19
  22. package/esm2022/lib/components/dropdown/directives/hide-after-click.directive.mjs +24 -0
  23. package/esm2022/lib/components/dropdown/dropdown.component.mjs +107 -0
  24. package/{esm2020 → esm2022}/lib/components/dropdown/dropdown.module.mjs +21 -21
  25. package/esm2022/lib/components/error-message/error-message.component.mjs +32 -0
  26. package/{esm2020 → esm2022}/lib/components/error-message/error-message.module.mjs +19 -19
  27. package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +153 -0
  28. package/{esm2020 → esm2022}/lib/components/form/checkbox/checkbox.enum.mjs +4 -4
  29. package/{esm2020 → esm2022}/lib/components/form/checkbox/checkbox.module.mjs +22 -22
  30. package/esm2022/lib/components/form/checkbox-group/checkbox-group.component.mjs +178 -0
  31. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/checkbox-group.module.mjs +47 -47
  32. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.mjs +48 -49
  33. package/esm2022/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +106 -0
  34. package/esm2022/lib/components/form/checkbox-group/helpers/change-group-value.mjs +20 -0
  35. package/esm2022/lib/components/form/checkbox-group/helpers/change-item-value.mjs +15 -0
  36. package/esm2022/lib/components/form/checkbox-group/helpers/filter-search-group.mjs +27 -0
  37. package/esm2022/lib/components/form/checkbox-group/helpers/get-checked-items.mjs +20 -0
  38. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/helpers/get-item-by-id.mjs +10 -10
  39. package/esm2022/lib/components/form/checkbox-group/helpers/get-sorted-list.mjs +50 -0
  40. package/{esm2020 → esm2022}/lib/components/form/checkbox-group/models/checkbox-group.model.mjs +1 -1
  41. package/esm2022/lib/components/form/editor/config/default-inline-style.mjs +6 -0
  42. package/{esm2020 → esm2022}/lib/components/form/editor/config/index.mjs +1 -1
  43. package/{esm2020 → esm2022}/lib/components/form/editor/config/popups-toolbar.mjs +8 -8
  44. package/{esm2020 → esm2022}/lib/components/form/editor/config/toolbar.mjs +71 -71
  45. package/esm2022/lib/components/form/editor/editor.component.mjs +261 -0
  46. package/esm2022/lib/components/form/editor/editor.module.mjs +45 -0
  47. package/{esm2020 → esm2022}/lib/components/form/editor/models/toolbar.model.mjs +1 -1
  48. package/esm2022/lib/components/form/editor/modules/change-icon-module.mjs +92 -0
  49. package/{esm2020 → esm2022}/lib/components/form/input-date-time/constants/value-models.mjs +13 -13
  50. package/{esm2020 → esm2022}/lib/components/form/input-date-time/enum/timezone.mjs +6 -6
  51. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/clean-date.mjs +4 -4
  52. package/esm2022/lib/components/form/input-date-time/helpers/cursor-position.mjs +23 -0
  53. package/esm2022/lib/components/form/input-date-time/helpers/formatting-from-models.mjs +10 -0
  54. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.mjs +9 -9
  55. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/validate-value-models.mjs +60 -60
  56. package/{esm2020 → esm2022}/lib/components/form/input-date-time/helpers/value-parser.mjs +38 -38
  57. package/esm2022/lib/components/form/input-date-time/input-date-time.component.mjs +386 -0
  58. package/{esm2020 → esm2022}/lib/components/form/input-date-time/input-date-time.enum.mjs +6 -6
  59. package/esm2022/lib/components/form/input-date-time/input-date-time.module.mjs +46 -0
  60. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/constants/value-models.mjs +14 -14
  61. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/clean-date.mjs +4 -4
  62. package/esm2022/lib/components/form/input-datepicker/helpers/cursor-position.mjs +23 -0
  63. package/esm2022/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.mjs +10 -0
  64. package/esm2022/lib/components/form/input-datepicker/helpers/get-date-object.mjs +10 -0
  65. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/validate-value-models.mjs +74 -74
  66. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/helpers/value-parser.mjs +47 -47
  67. package/esm2022/lib/components/form/input-datepicker/input-datepicker.component.mjs +356 -0
  68. package/{esm2020 → esm2022}/lib/components/form/input-datepicker/input-datepicker.enum.mjs +6 -6
  69. package/esm2022/lib/components/form/input-datepicker/input-datepicker.module.mjs +46 -0
  70. package/{esm2020 → esm2022}/lib/components/form/input-file/enums/error-messages.enum.mjs +7 -7
  71. package/esm2022/lib/components/form/input-file/input-file.component.mjs +370 -0
  72. package/{esm2020 → esm2022}/lib/components/form/input-file/input-file.enum.mjs +7 -7
  73. package/{esm2020 → esm2022}/lib/components/form/input-file/input-file.module.mjs +26 -26
  74. package/esm2022/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +88 -0
  75. package/esm2022/lib/components/form/input-file-image/input-file-image.component.mjs +364 -0
  76. package/{esm2020 → esm2022}/lib/components/form/input-file-image/input-file-image.enum.mjs +9 -9
  77. package/esm2022/lib/components/form/input-file-image/input-file-image.module.mjs +51 -0
  78. package/esm2022/lib/components/form/input-number/input-number.component.mjs +267 -0
  79. package/{esm2020 → esm2022}/lib/components/form/input-number/input-number.enum.mjs +6 -6
  80. package/esm2022/lib/components/form/input-number/input-number.module.mjs +55 -0
  81. package/esm2022/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +370 -0
  82. package/{esm2020 → esm2022}/lib/components/form/input-opt/components/input-opt/input-opt.enum.mjs +7 -7
  83. package/esm2022/lib/components/form/input-opt/directives/opt-pattern.directive.mjs +43 -0
  84. package/{esm2020 → esm2022}/lib/components/form/input-opt/input-opt.module.mjs +38 -38
  85. package/{esm2020 → esm2022}/lib/components/form/input-opt/models/input-opt.model.mjs +5 -5
  86. package/{esm2020 → esm2022}/lib/components/form/input-opt/services/input-opt.service.mjs +33 -33
  87. package/esm2022/lib/components/form/input-password/input-password.component.mjs +118 -0
  88. package/{esm2020 → esm2022}/lib/components/form/input-password/input-password.enum.mjs +6 -6
  89. package/{esm2020 → esm2022}/lib/components/form/input-password/input-password.module.mjs +36 -36
  90. package/esm2022/lib/components/form/input-phone/data/country-code.mjs +1331 -0
  91. package/esm2022/lib/components/form/input-phone/directives/native-element-injector.directive.mjs +35 -0
  92. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/country-iso.enum.mjs +246 -246
  93. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/input-phone.enum.mjs +6 -6
  94. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/mask.enum.mjs +138 -138
  95. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/phone-number-format.enum.mjs +5 -5
  96. package/{esm2020 → esm2022}/lib/components/form/input-phone/enums/search-country-field.enum.mjs +7 -7
  97. package/esm2022/lib/components/form/input-phone/input-phone.component.mjs +679 -0
  98. package/esm2022/lib/components/form/input-phone/input-phone.module.mjs +50 -0
  99. package/esm2022/lib/components/form/input-phone/input-phone.validator.mjs +61 -0
  100. package/{esm2020 → esm2022}/lib/components/form/input-phone/interfaces/change-data.mjs +1 -1
  101. package/{esm2020 → esm2022}/lib/components/form/input-phone/models/country.model.mjs +1 -1
  102. package/esm2022/lib/components/form/input-search/input-search.component.mjs +167 -0
  103. package/{esm2020 → esm2022}/lib/components/form/input-search/input-search.enum.mjs +6 -6
  104. package/esm2022/lib/components/form/input-search/input-search.module.mjs +41 -0
  105. package/esm2022/lib/components/form/input-select/input-select.component.mjs +253 -0
  106. package/{esm2020 → esm2022}/lib/components/form/input-select/input-select.enum.mjs +5 -5
  107. package/{esm2020 → esm2022}/lib/components/form/input-select/input-select.module.mjs +45 -45
  108. package/esm2022/lib/components/form/input-tel/assets/base64.mjs +4 -0
  109. package/esm2022/lib/components/form/input-tel/data/all-countries.mjs +1323 -0
  110. package/esm2022/lib/components/form/input-tel/data/country-iso.enum.mjs +247 -0
  111. package/esm2022/lib/components/form/input-tel/data/phone-number-format.enum.mjs +6 -0
  112. package/esm2022/lib/components/form/input-tel/data/search-country-field.enum.mjs +8 -0
  113. package/esm2022/lib/components/form/input-tel/directives/input-tel.directive.mjs +66 -0
  114. package/esm2022/lib/components/form/input-tel/enums/input-phone.enum.mjs +7 -0
  115. package/esm2022/lib/components/form/input-tel/input-tel.component.mjs +400 -0
  116. package/esm2022/lib/components/form/input-tel/input-tel.module.mjs +43 -0
  117. package/esm2022/lib/components/form/input-tel/models/country.model.mjs +2 -0
  118. package/esm2022/lib/components/form/input-text/input-text.component.mjs +189 -0
  119. package/{esm2020 → esm2022}/lib/components/form/input-text/input-text.enum.mjs +14 -14
  120. package/esm2022/lib/components/form/input-text/input-text.module.mjs +49 -0
  121. package/esm2022/lib/components/form/input-textarea/input-textarea.component.mjs +197 -0
  122. package/{esm2020 → esm2022}/lib/components/form/input-textarea/input-textarea.enum.mjs +6 -6
  123. package/esm2022/lib/components/form/input-textarea/input-textarea.module.mjs +49 -0
  124. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/constants/value-models.mjs +7 -7
  125. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/clean-date.mjs +4 -4
  126. package/esm2022/lib/components/form/input-timepicker/helpers/cursor-position.mjs +14 -0
  127. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/get-date-dayjs-object.mjs +4 -4
  128. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/get-date-object.mjs +4 -4
  129. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/validate-value-models.mjs +29 -29
  130. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/helpers/value-parser.mjs +17 -17
  131. package/esm2022/lib/components/form/input-timepicker/input-timepicker.component.mjs +292 -0
  132. package/{esm2020 → esm2022}/lib/components/form/input-timepicker/input-timepicker.enum.mjs +6 -6
  133. package/esm2022/lib/components/form/input-timepicker/input-timepicker.module.mjs +46 -0
  134. package/esm2022/lib/components/form/radio/radio.component.mjs +91 -0
  135. package/{esm2020 → esm2022}/lib/components/form/radio/radio.enum.mjs +4 -4
  136. package/{esm2020 → esm2022}/lib/components/form/radio/radio.module.mjs +20 -20
  137. package/esm2022/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +45 -0
  138. package/esm2022/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +66 -0
  139. package/esm2022/lib/components/form/radio-group/helpers/filter-search-group.mjs +27 -0
  140. package/esm2022/lib/components/form/radio-group/helpers/get-item-by-id.mjs +11 -0
  141. package/esm2022/lib/components/form/radio-group/helpers/move-selected-to-first.mjs +27 -0
  142. package/esm2022/lib/components/form/radio-group/models/radio-group.model.mjs +2 -0
  143. package/esm2022/lib/components/form/radio-group/radio-group.component.mjs +175 -0
  144. package/esm2022/lib/components/form/radio-group/radio-group.module.mjs +26 -0
  145. package/esm2022/lib/components/form/rating/rating.component.mjs +215 -0
  146. package/{esm2020 → esm2022}/lib/components/form/rating/rating.enum.mjs +15 -15
  147. package/{esm2020 → esm2022}/lib/components/form/rating/rating.module.mjs +25 -25
  148. package/esm2022/lib/components/form/switch/switch.component.mjs +95 -0
  149. package/{esm2020 → esm2022}/lib/components/form/switch/switch.enum.mjs +10 -10
  150. package/{esm2020 → esm2022}/lib/components/form/switch/switch.module.mjs +21 -21
  151. package/esm2022/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +39 -0
  152. package/esm2022/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +112 -0
  153. package/{esm2020 → esm2022}/lib/components/gallery/constants/custom-buttons-default.mjs +6 -6
  154. package/{esm2020 → esm2022}/lib/components/gallery/constants/thumbs-config-default.mjs +4 -4
  155. package/esm2022/lib/components/gallery/gallery.component.mjs +203 -0
  156. package/{esm2020 → esm2022}/lib/components/gallery/gallery.module.mjs +54 -54
  157. package/{esm2020 → esm2022}/lib/components/gallery/models/gallery-item.model.mjs +1 -1
  158. package/esm2022/lib/components/gallery/services/gallery.service.mjs +33 -0
  159. package/esm2022/lib/components/hint-error-message/hint-error-message.component.mjs +121 -0
  160. package/{esm2020 → esm2022}/lib/components/hint-error-message/hint-error-message.module.mjs +19 -19
  161. package/esm2022/lib/components/icon-button/icon-button.component.mjs +49 -0
  162. package/{esm2020 → esm2022}/lib/components/icon-button/icon-button.enum.mjs +15 -15
  163. package/{esm2020 → esm2022}/lib/components/icon-button/icon-button.module.mjs +19 -19
  164. package/esm2022/lib/components/label/label.component.mjs +143 -0
  165. package/{esm2020 → esm2022}/lib/components/label/label.module.mjs +25 -25
  166. package/esm2022/lib/components/link/link.component.mjs +48 -0
  167. package/{esm2020 → esm2022}/lib/components/link/link.enum.mjs +19 -19
  168. package/{esm2020 → esm2022}/lib/components/link/link.module.mjs +19 -19
  169. package/esm2022/lib/components/loader/loader.component.mjs +24 -0
  170. package/{esm2020 → esm2022}/lib/components/loader/loader.enum.mjs +19 -19
  171. package/{esm2020 → esm2022}/lib/components/loader/loader.module.mjs +19 -19
  172. package/esm2022/lib/components/modal/modal.component.mjs +137 -0
  173. package/{esm2020 → esm2022}/lib/components/modal/modal.emun.mjs +20 -20
  174. package/{esm2020 → esm2022}/lib/components/modal/modal.module.mjs +20 -20
  175. package/esm2022/lib/components/pages-nav/pages-nav.component.mjs +31 -0
  176. package/{esm2020 → esm2022}/lib/components/pages-nav/pages-nav.enum.mjs +5 -5
  177. package/{esm2020 → esm2022}/lib/components/pages-nav/pages-nav.module.mjs +24 -24
  178. package/esm2022/lib/components/paginator/paginator.component.mjs +140 -0
  179. package/{esm2020 → esm2022}/lib/components/paginator/paginator.enum.mjs +5 -5
  180. package/{esm2020 → esm2022}/lib/components/paginator/paginator.module.mjs +31 -31
  181. package/esm2022/lib/components/progress/progress.component.mjs +24 -0
  182. package/{esm2020 → esm2022}/lib/components/progress/progress.enum.mjs +7 -7
  183. package/{esm2020 → esm2022}/lib/components/progress/progress.module.mjs +19 -19
  184. package/esm2022/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.mjs +16 -0
  185. package/esm2022/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.mjs +16 -0
  186. package/esm2022/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +16 -0
  187. package/esm2022/lib/components/save-state/components/save-state-input/save-state-input.component.mjs +16 -0
  188. package/esm2022/lib/components/save-state/components/save-state-switch/save-state-switch.component.mjs +16 -0
  189. package/esm2022/lib/components/save-state/save-state.component.mjs +40 -0
  190. package/{esm2020 → esm2022}/lib/components/save-state/save-state.enum.mjs +1 -1
  191. package/{esm2020 → esm2022}/lib/components/save-state/save-state.module.mjs +37 -37
  192. package/esm2022/lib/components/stepper/stepper.component.mjs +52 -0
  193. package/{esm2020 → esm2022}/lib/components/stepper/stepper.enum.mjs +5 -5
  194. package/{esm2020 → esm2022}/lib/components/stepper/stepper.module.mjs +20 -20
  195. package/esm2022/lib/components/table/components/column/column.component.mjs +40 -0
  196. package/{esm2020 → esm2022}/lib/components/table/default/default-pager-settings.mjs +6 -6
  197. package/{esm2020 → esm2022}/lib/components/table/models/data-state-change.event.mjs +1 -1
  198. package/{esm2020 → esm2022}/lib/components/table/models/index.mjs +3 -3
  199. package/{esm2020 → esm2022}/lib/components/table/models/pager-settings.mjs +1 -1
  200. package/esm2022/lib/components/table/table.component.mjs +281 -0
  201. package/{esm2020 → esm2022}/lib/components/table/table.enum.mjs +7 -7
  202. package/{esm2020 → esm2022}/lib/components/table/table.module.mjs +50 -50
  203. package/esm2022/lib/components/tabs/tab/tab.component.mjs +33 -0
  204. package/esm2022/lib/components/tabs/tabs-group/tabs-group.component.mjs +27 -0
  205. package/{esm2020 → esm2022}/lib/components/tabs/tabs.enum.mjs +13 -13
  206. package/{esm2020 → esm2022}/lib/components/tabs/tabs.module.mjs +20 -20
  207. package/esm2022/lib/components/tooltip/services/tooltip.service.mjs +65 -0
  208. package/esm2022/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +36 -0
  209. package/{esm2020 → esm2022}/lib/components/tooltip/tooltip-trigger/tooltip-trigger.enum.mjs +10 -10
  210. package/esm2022/lib/components/tooltip/tooltip.component.mjs +59 -0
  211. package/{esm2020 → esm2022}/lib/components/tooltip/tooltip.enum.mjs +5 -5
  212. package/{esm2020 → esm2022}/lib/components/tooltip/tooltip.module.mjs +21 -21
  213. package/{esm2020 → esm2022}/lib/components/truncate-text/directives/truncate-text.directive.mjs +149 -139
  214. package/esm2022/lib/components/truncate-text/truncate-text.component.mjs +30 -0
  215. package/{esm2020 → esm2022}/lib/components/truncate-text/truncate-text.enum.mjs +1 -1
  216. package/{esm2020 → esm2022}/lib/components/truncate-text/truncate-text.module.mjs +21 -21
  217. package/esm2022/lib/components/warning-message/warning-message.component.mjs +29 -0
  218. package/{esm2020 → esm2022}/lib/components/warning-message/warning-message.module.mjs +19 -19
  219. package/esm2022/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +25 -0
  220. package/{esm2020 → esm2022}/lib/components/wrappers/content-wrapper/content-wrapper.enum.mjs +5 -5
  221. package/{esm2020 → esm2022}/lib/components/wrappers/content-wrapper/content-wrapper.module.mjs +19 -19
  222. package/esm2022/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.mjs +15 -0
  223. package/esm2022/lib/components/wrappers/controls-wrapper/controls-wrapper.component.mjs +23 -0
  224. package/{esm2020 → esm2022}/lib/components/wrappers/controls-wrapper/controls-wrapper.enum.mjs +6 -6
  225. package/{esm2020 → esm2022}/lib/components/wrappers/controls-wrapper/controls-wrapper.module.mjs +20 -20
  226. package/esm2022/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +99 -0
  227. package/{esm2020 → esm2022}/lib/components/wrappers/widget-wrapper/widget-wrapper.enum.mjs +16 -16
  228. package/{esm2020 → esm2022}/lib/components/wrappers/widget-wrapper/widget-wrapper.module.mjs +24 -24
  229. package/esm2022/lib/directives/autosize/autosize.directive.mjs +57 -0
  230. package/{esm2020 → esm2022}/lib/directives/autosize/autosize.module.mjs +24 -24
  231. package/esm2022/lib/directives/truncate/truncate.directive.mjs +34 -0
  232. package/{esm2020 → esm2022}/lib/directives/truncate/truncate.module.mjs +18 -18
  233. package/{esm2020 → esm2022}/lib/enums/typed.input.state.mjs +7 -7
  234. package/esm2022/lib/helpers/extension/input-file.extension.mjs +39 -0
  235. package/esm2022/lib/helpers/formatting-date.mjs +51 -0
  236. package/{esm2020 → esm2022}/lib/helpers/formatting-dates-from-array.mjs +18 -18
  237. package/{esm2020 → esm2022}/lib/helpers/formatting-iso-to-string.mjs +12 -12
  238. package/{esm2020 → esm2022}/lib/helpers/index.mjs +7 -7
  239. package/{esm2020 → esm2022}/lib/helpers/number-format.mjs +8 -8
  240. package/esm2022/lib/helpers/string-hash-code.mjs +17 -0
  241. package/{esm2020 → esm2022}/lib/helpers/word-form.mjs +10 -10
  242. package/{esm2020 → esm2022}/lib/models/index.mjs +2 -2
  243. package/{esm2020 → esm2022}/lib/models/input-file/input-file.model.mjs +1 -1
  244. package/{esm2020 → esm2022}/lib/models/typed-input-model.mjs +1 -1
  245. package/{esm2020 → esm2022}/lib/pipes/currency/currency.module.mjs +20 -20
  246. package/esm2022/lib/pipes/currency/currency.pipe.mjs +22 -0
  247. package/{esm2020 → esm2022}/lib/pipes/date/date-format.module.mjs +19 -19
  248. package/esm2022/lib/pipes/date/date-format.pipe.mjs +21 -0
  249. package/esm2022/lib/pipes/date/date-time-format.pipe.mjs +21 -0
  250. package/{esm2020 → esm2022}/lib/pipes/date/enums/timezone.mjs +9 -9
  251. package/{esm2020 → esm2022}/lib/pipes/date/helpers/change-timezone.mjs +22 -22
  252. package/{esm2020 → esm2022}/lib/pipes/phone/phone-format.module.mjs +18 -18
  253. package/esm2022/lib/pipes/phone/phone-format.pipe.mjs +23 -0
  254. package/{esm2020 → esm2022}/lib/pipes/safe/safe.module.mjs +20 -20
  255. package/esm2022/lib/pipes/safe/safe.pipe.mjs +21 -0
  256. package/{esm2020 → esm2022}/lib/pipes/truncate/truncate.module.mjs +20 -20
  257. package/esm2022/lib/pipes/truncate/truncate.pipe.mjs +23 -0
  258. package/esm2022/lib/services/file-upload/file-upload.service.mjs +27 -0
  259. package/{esm2020 → esm2022}/lib/services/index.mjs +6 -6
  260. package/esm2022/lib/services/modal-service/components/alert-modal/alert-modal.component.mjs +46 -0
  261. package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs +50 -0
  262. package/esm2022/lib/services/modal-service/helpers/modal-default-config.mjs +14 -0
  263. package/esm2022/lib/services/modal-service/helpers/modal-ref.mjs +29 -0
  264. package/esm2022/lib/services/modal-service/helpers/modal-tokens.mjs +4 -0
  265. package/esm2022/lib/services/modal-service/helpers/modal.component.mjs +5 -0
  266. package/esm2022/lib/services/modal-service/modal-service.service.mjs +84 -0
  267. package/esm2022/lib/services/modal-service/models/modal-config.model.mjs +2 -0
  268. package/esm2022/lib/services/mrx-autosave/mrx-autosave.service.mjs +43 -0
  269. package/esm2022/lib/services/mrx-form-validator/mrx-form-validator.mjs +283 -0
  270. package/{esm2020 → esm2022}/lib/services/save-store/constants/constants.mjs +1 -1
  271. package/{esm2020 → esm2022}/lib/services/save-store/models/save-store.model.mjs +1 -1
  272. package/{esm2020 → esm2022}/lib/services/save-store/save-store.module.mjs +29 -29
  273. package/{esm2020 → esm2022}/lib/services/save-store/store/actions.mjs +22 -22
  274. package/esm2022/lib/services/save-store/store/effect.mjs +61 -0
  275. package/esm2022/lib/services/save-store/store/reducer.mjs +96 -0
  276. package/{esm2020 → esm2022}/lib/services/save-store/store/selectors.mjs +4 -4
  277. package/{esm2020 → esm2022}/lib/services/save-store/store/state.mjs +3 -3
  278. package/{esm2020 → esm2022}/myrta-ui.mjs +4 -4
  279. package/esm2022/public-api.mjs +176 -0
  280. package/fesm2022/myrta-ui.mjs +15458 -0
  281. package/fesm2022/myrta-ui.mjs.map +1 -0
  282. package/index.d.ts +5 -5
  283. package/lib/components/alert/alert.component.d.ts +17 -17
  284. package/lib/components/alert/alert.enum.d.ts +13 -13
  285. package/lib/components/alert/alert.module.d.ts +8 -8
  286. package/lib/components/badges/badge.enum.d.ts +38 -38
  287. package/lib/components/badges/badges.module.d.ts +9 -9
  288. package/lib/components/badges/components/badge/badge.component.d.ts +21 -21
  289. package/lib/components/badges/components/badge-group/badge-group.component.d.ts +5 -5
  290. package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +11 -11
  291. package/lib/components/breadcrumbs/breadcrumbs.enum.d.ts +11 -11
  292. package/lib/components/breadcrumbs/breadcrumbs.module.d.ts +8 -8
  293. package/lib/components/button/button.component.d.ts +31 -31
  294. package/lib/components/button/button.enum.d.ts +27 -29
  295. package/lib/components/button/button.module.d.ts +10 -10
  296. package/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.d.ts +13 -13
  297. package/lib/components/cdk-tooltip/cdk-tooltip.directive.d.ts +24 -24
  298. package/lib/components/cdk-tooltip/cdk-tooltip.module.d.ts +10 -10
  299. package/lib/components/cdk-tooltip/constants/index.d.ts +7 -7
  300. package/lib/components/cdk-tooltip/models/tooltip-data.d.ts +6 -6
  301. package/lib/components/chars-left/chars-left.component.d.ts +9 -9
  302. package/lib/components/chars-left/chars-left.module.d.ts +8 -8
  303. package/lib/components/dropdown/directives/hide-after-click.directive.d.ts +9 -9
  304. package/lib/components/dropdown/dropdown.component.d.ts +26 -26
  305. package/lib/components/dropdown/dropdown.module.d.ts +10 -10
  306. package/lib/components/error-message/error-message.component.d.ts +10 -9
  307. package/lib/components/error-message/error-message.module.d.ts +8 -8
  308. package/lib/components/form/checkbox/checkbox.component.d.ts +48 -48
  309. package/lib/components/form/checkbox/checkbox.enum.d.ts +14 -14
  310. package/lib/components/form/checkbox/checkbox.module.d.ts +11 -11
  311. package/lib/components/form/checkbox-group/checkbox-group.component.d.ts +54 -54
  312. package/lib/components/form/checkbox-group/checkbox-group.module.d.ts +16 -16
  313. package/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.d.ts +19 -19
  314. package/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.d.ts +26 -26
  315. package/lib/components/form/checkbox-group/helpers/change-group-value.d.ts +3 -3
  316. package/lib/components/form/checkbox-group/helpers/change-item-value.d.ts +3 -3
  317. package/lib/components/form/checkbox-group/helpers/filter-search-group.d.ts +2 -2
  318. package/lib/components/form/checkbox-group/helpers/get-checked-items.d.ts +2 -2
  319. package/lib/components/form/checkbox-group/helpers/get-item-by-id.d.ts +2 -2
  320. package/lib/components/form/checkbox-group/helpers/get-sorted-list.d.ts +2 -2
  321. package/lib/components/form/checkbox-group/models/checkbox-group.model.d.ts +15 -15
  322. package/lib/components/form/editor/config/default-inline-style.d.ts +11 -0
  323. package/lib/components/form/editor/config/index.d.ts +1 -1
  324. package/lib/components/form/editor/config/popups-toolbar.d.ts +15 -15
  325. package/lib/components/form/editor/config/toolbar.d.ts +2 -2
  326. package/lib/components/form/editor/editor.component.d.ts +63 -48
  327. package/lib/components/form/editor/editor.module.d.ts +14 -14
  328. package/lib/components/form/editor/models/toolbar.model.d.ts +6 -6
  329. package/lib/components/form/editor/modules/change-icon-module.d.ts +1 -1
  330. package/lib/components/form/input-date-time/constants/value-models.d.ts +3 -3
  331. package/lib/components/form/input-date-time/enum/timezone.d.ts +6 -6
  332. package/lib/components/form/input-date-time/helpers/clean-date.d.ts +1 -1
  333. package/lib/components/form/input-date-time/helpers/cursor-position.d.ts +1 -1
  334. package/lib/components/form/input-date-time/helpers/formatting-from-models.d.ts +3 -3
  335. package/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.d.ts +2 -2
  336. package/lib/components/form/input-date-time/helpers/validate-value-models.d.ts +19 -19
  337. package/lib/components/form/input-date-time/helpers/value-parser.d.ts +4 -4
  338. package/lib/components/form/input-date-time/input-date-time.component.d.ts +72 -72
  339. package/lib/components/form/input-date-time/input-date-time.enum.d.ts +21 -21
  340. package/lib/components/form/input-date-time/input-date-time.module.d.ts +13 -13
  341. package/lib/components/form/input-datepicker/constants/value-models.d.ts +3 -3
  342. package/lib/components/form/input-datepicker/helpers/clean-date.d.ts +1 -1
  343. package/lib/components/form/input-datepicker/helpers/cursor-position.d.ts +1 -1
  344. package/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.d.ts +3 -3
  345. package/lib/components/form/input-datepicker/helpers/get-date-object.d.ts +2 -2
  346. package/lib/components/form/input-datepicker/helpers/validate-value-models.d.ts +20 -20
  347. package/lib/components/form/input-datepicker/helpers/value-parser.d.ts +3 -3
  348. package/lib/components/form/input-datepicker/input-datepicker.component.d.ts +69 -69
  349. package/lib/components/form/input-datepicker/input-datepicker.enum.d.ts +12 -12
  350. package/lib/components/form/input-datepicker/input-datepicker.module.d.ts +13 -13
  351. package/lib/components/form/input-file/enums/error-messages.enum.d.ts +6 -6
  352. package/lib/components/form/input-file/input-file.component.d.ts +72 -72
  353. package/lib/components/form/input-file/input-file.enum.d.ts +7 -7
  354. package/lib/components/form/input-file/input-file.module.d.ts +13 -13
  355. package/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.d.ts +42 -33
  356. package/lib/components/form/input-file-image/input-file-image.component.d.ts +62 -59
  357. package/lib/components/form/input-file-image/input-file-image.enum.d.ts +8 -8
  358. package/lib/components/form/input-file-image/input-file-image.module.d.ts +15 -16
  359. package/lib/components/form/input-number/input-number.component.d.ts +64 -61
  360. package/lib/components/form/input-number/input-number.enum.d.ts +12 -12
  361. package/lib/components/form/input-number/input-number.module.d.ts +13 -13
  362. package/lib/components/form/input-opt/components/input-opt/input-opt.component.d.ts +77 -77
  363. package/lib/components/form/input-opt/components/input-opt/input-opt.enum.d.ts +7 -7
  364. package/lib/components/form/input-opt/directives/opt-pattern.directive.d.ts +8 -8
  365. package/lib/components/form/input-opt/input-opt.module.d.ts +11 -11
  366. package/lib/components/form/input-opt/models/input-opt.model.d.ts +26 -26
  367. package/lib/components/form/input-opt/services/input-opt.service.d.ts +11 -11
  368. package/lib/components/form/input-password/input-password.component.d.ts +38 -38
  369. package/lib/components/form/input-password/input-password.enum.d.ts +7 -7
  370. package/lib/components/form/input-password/input-password.module.d.ts +11 -11
  371. package/lib/components/form/input-phone/data/country-code.d.ts +6 -6
  372. package/lib/components/form/input-phone/directives/native-element-injector.directive.d.ts +11 -11
  373. package/lib/components/form/input-phone/enums/country-iso.enum.d.ts +245 -245
  374. package/lib/components/form/input-phone/enums/input-phone.enum.d.ts +11 -11
  375. package/lib/components/form/input-phone/enums/mask.enum.d.ts +8 -8
  376. package/lib/components/form/input-phone/enums/phone-number-format.enum.d.ts +4 -4
  377. package/lib/components/form/input-phone/enums/search-country-field.enum.d.ts +6 -6
  378. package/lib/components/form/input-phone/input-phone.component.d.ts +132 -132
  379. package/lib/components/form/input-phone/input-phone.module.d.ts +14 -14
  380. package/lib/components/form/input-phone/input-phone.validator.d.ts +5 -5
  381. package/lib/components/form/input-phone/interfaces/change-data.d.ts +9 -9
  382. package/lib/components/form/input-phone/models/country.model.d.ts +13 -13
  383. package/lib/components/form/input-search/input-search.component.d.ts +48 -48
  384. package/lib/components/form/input-search/input-search.enum.d.ts +6 -6
  385. package/lib/components/form/input-search/input-search.module.d.ts +12 -12
  386. package/lib/components/form/input-select/input-select.component.d.ts +84 -84
  387. package/lib/components/form/input-select/input-select.enum.d.ts +10 -10
  388. package/lib/components/form/input-select/input-select.module.d.ts +14 -14
  389. package/lib/components/form/input-tel/assets/base64.d.ts +3 -0
  390. package/lib/components/form/input-tel/data/all-countries.d.ts +1 -0
  391. package/lib/components/form/input-tel/data/country-iso.enum.d.ts +245 -0
  392. package/lib/components/form/input-tel/data/phone-number-format.enum.d.ts +5 -0
  393. package/lib/components/form/input-tel/data/search-country-field.enum.d.ts +6 -0
  394. package/lib/components/form/input-tel/directives/input-tel.directive.d.ts +21 -0
  395. package/lib/components/form/input-tel/enums/input-phone.enum.d.ts +11 -0
  396. package/lib/components/form/input-tel/input-tel.component.d.ts +89 -0
  397. package/lib/components/form/input-tel/input-tel.module.d.ts +13 -0
  398. package/lib/components/form/input-tel/models/country.model.d.ts +18 -0
  399. package/lib/components/form/input-text/input-text.component.d.ts +54 -54
  400. package/lib/components/form/input-text/input-text.enum.d.ts +19 -19
  401. package/lib/components/form/input-text/input-text.module.d.ts +14 -14
  402. package/lib/components/form/input-textarea/input-textarea.component.d.ts +54 -52
  403. package/lib/components/form/input-textarea/input-textarea.enum.d.ts +11 -11
  404. package/lib/components/form/input-textarea/input-textarea.module.d.ts +14 -14
  405. package/lib/components/form/input-timepicker/constants/value-models.d.ts +2 -2
  406. package/lib/components/form/input-timepicker/helpers/clean-date.d.ts +1 -1
  407. package/lib/components/form/input-timepicker/helpers/cursor-position.d.ts +1 -1
  408. package/lib/components/form/input-timepicker/helpers/get-date-dayjs-object.d.ts +3 -3
  409. package/lib/components/form/input-timepicker/helpers/get-date-object.d.ts +2 -2
  410. package/lib/components/form/input-timepicker/helpers/validate-value-models.d.ts +10 -10
  411. package/lib/components/form/input-timepicker/helpers/value-parser.d.ts +2 -2
  412. package/lib/components/form/input-timepicker/input-timepicker.component.d.ts +60 -60
  413. package/lib/components/form/input-timepicker/input-timepicker.enum.d.ts +11 -11
  414. package/lib/components/form/input-timepicker/input-timepicker.module.d.ts +13 -13
  415. package/lib/components/form/radio/radio.component.d.ts +29 -29
  416. package/lib/components/form/radio/radio.enum.d.ts +4 -4
  417. package/lib/components/form/radio/radio.module.d.ts +9 -9
  418. package/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.d.ts +18 -0
  419. package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts +26 -0
  420. package/lib/components/form/radio-group/helpers/filter-search-group.d.ts +2 -0
  421. package/lib/components/form/radio-group/helpers/get-item-by-id.d.ts +2 -0
  422. package/lib/components/form/radio-group/helpers/move-selected-to-first.d.ts +2 -0
  423. package/lib/components/form/radio-group/models/radio-group.model.d.ts +8 -0
  424. package/lib/components/form/radio-group/radio-group.component.d.ts +57 -0
  425. package/lib/components/form/radio-group/radio-group.module.d.ts +15 -0
  426. package/lib/components/form/rating/rating.component.d.ts +51 -51
  427. package/lib/components/form/rating/rating.enum.d.ts +27 -27
  428. package/lib/components/form/rating/rating.module.d.ts +9 -9
  429. package/lib/components/form/switch/switch.component.d.ts +32 -32
  430. package/lib/components/form/switch/switch.enum.d.ts +15 -15
  431. package/lib/components/form/switch/switch.module.d.ts +10 -10
  432. package/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.d.ts +21 -17
  433. package/lib/components/gallery/components/gallery-item/gallery-item.component.d.ts +38 -38
  434. package/lib/components/gallery/constants/custom-buttons-default.d.ts +3 -3
  435. package/lib/components/gallery/constants/thumbs-config-default.d.ts +2 -2
  436. package/lib/components/gallery/gallery.component.d.ts +38 -38
  437. package/lib/components/gallery/gallery.module.d.ts +16 -16
  438. package/lib/components/gallery/models/gallery-item.model.d.ts +24 -24
  439. package/lib/components/gallery/services/gallery.service.d.ts +14 -14
  440. package/lib/components/hint-error-message/hint-error-message.component.d.ts +21 -21
  441. package/lib/components/hint-error-message/hint-error-message.module.d.ts +8 -8
  442. package/lib/components/icon-button/icon-button.component.d.ts +19 -19
  443. package/lib/components/icon-button/icon-button.enum.d.ts +15 -15
  444. package/lib/components/icon-button/icon-button.module.d.ts +9 -9
  445. package/lib/components/label/label.component.d.ts +44 -44
  446. package/lib/components/label/label.module.d.ts +14 -14
  447. package/lib/components/link/link.component.d.ts +18 -18
  448. package/lib/components/link/link.enum.d.ts +19 -19
  449. package/lib/components/link/link.module.d.ts +8 -8
  450. package/lib/components/loader/loader.component.d.ts +10 -10
  451. package/lib/components/loader/loader.enum.d.ts +19 -19
  452. package/lib/components/loader/loader.module.d.ts +8 -8
  453. package/lib/components/modal/modal.component.d.ts +36 -36
  454. package/lib/components/modal/modal.emun.d.ts +20 -20
  455. package/lib/components/modal/modal.module.d.ts +9 -9
  456. package/lib/components/pages-nav/pages-nav.component.d.ts +12 -12
  457. package/lib/components/pages-nav/pages-nav.enum.d.ts +5 -5
  458. package/lib/components/pages-nav/pages-nav.module.d.ts +8 -8
  459. package/lib/components/paginator/paginator.component.d.ts +29 -29
  460. package/lib/components/paginator/paginator.enum.d.ts +10 -10
  461. package/lib/components/paginator/paginator.module.d.ts +10 -10
  462. package/lib/components/progress/progress.component.d.ts +10 -10
  463. package/lib/components/progress/progress.enum.d.ts +7 -7
  464. package/lib/components/progress/progress.module.d.ts +8 -8
  465. package/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.d.ts +8 -8
  466. package/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.d.ts +8 -8
  467. package/lib/components/save-state/components/save-state-editor/save-state-editor.component.d.ts +8 -8
  468. package/lib/components/save-state/components/save-state-input/save-state-input.component.d.ts +8 -8
  469. package/lib/components/save-state/components/save-state-switch/save-state-switch.component.d.ts +8 -8
  470. package/lib/components/save-state/save-state.component.d.ts +13 -13
  471. package/lib/components/save-state/save-state.enum.d.ts +1 -1
  472. package/lib/components/save-state/save-state.module.d.ts +13 -13
  473. package/lib/components/stepper/stepper.component.d.ts +17 -17
  474. package/lib/components/stepper/stepper.enum.d.ts +5 -5
  475. package/lib/components/stepper/stepper.module.d.ts +9 -9
  476. package/lib/components/table/components/column/column.component.d.ts +14 -14
  477. package/lib/components/table/default/default-pager-settings.d.ts +2 -2
  478. package/lib/components/table/models/data-state-change.event.d.ts +15 -15
  479. package/lib/components/table/models/index.d.ts +3 -3
  480. package/lib/components/table/models/pager-settings.d.ts +22 -22
  481. package/lib/components/table/table.component.d.ts +55 -55
  482. package/lib/components/table/table.enum.d.ts +32 -32
  483. package/lib/components/table/table.module.d.ts +14 -14
  484. package/lib/components/tabs/tab/tab.component.d.ts +13 -13
  485. package/lib/components/tabs/tabs-group/tabs-group.component.d.ts +11 -11
  486. package/lib/components/tabs/tabs.enum.d.ts +11 -11
  487. package/lib/components/tabs/tabs.module.d.ts +9 -9
  488. package/lib/components/tooltip/services/tooltip.service.d.ts +18 -18
  489. package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.d.ts +15 -16
  490. package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.enum.d.ts +10 -10
  491. package/lib/components/tooltip/tooltip.component.d.ts +18 -18
  492. package/lib/components/tooltip/tooltip.enum.d.ts +4 -4
  493. package/lib/components/tooltip/tooltip.module.d.ts +10 -10
  494. package/lib/components/truncate-text/directives/truncate-text.directive.d.ts +37 -37
  495. package/lib/components/truncate-text/truncate-text.component.d.ts +12 -12
  496. package/lib/components/truncate-text/truncate-text.enum.d.ts +2 -2
  497. package/lib/components/truncate-text/truncate-text.module.d.ts +10 -10
  498. package/lib/components/warning-message/warning-message.component.d.ts +9 -9
  499. package/lib/components/warning-message/warning-message.module.d.ts +8 -8
  500. package/lib/components/wrappers/content-wrapper/content-wrapper.component.d.ts +10 -10
  501. package/lib/components/wrappers/content-wrapper/content-wrapper.enum.d.ts +5 -5
  502. package/lib/components/wrappers/content-wrapper/content-wrapper.module.d.ts +8 -8
  503. package/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.d.ts +6 -6
  504. package/lib/components/wrappers/controls-wrapper/controls-wrapper.component.d.ts +10 -10
  505. package/lib/components/wrappers/controls-wrapper/controls-wrapper.enum.d.ts +6 -6
  506. package/lib/components/wrappers/controls-wrapper/controls-wrapper.module.d.ts +9 -9
  507. package/lib/components/wrappers/widget-wrapper/widget-wrapper.component.d.ts +26 -26
  508. package/lib/components/wrappers/widget-wrapper/widget-wrapper.enum.d.ts +15 -15
  509. package/lib/components/wrappers/widget-wrapper/widget-wrapper.module.d.ts +8 -8
  510. package/lib/directives/autosize/autosize.directive.d.ts +16 -16
  511. package/lib/directives/autosize/autosize.module.d.ts +8 -8
  512. package/lib/directives/truncate/truncate.directive.d.ts +12 -12
  513. package/lib/directives/truncate/truncate.module.d.ts +8 -8
  514. package/lib/enums/typed.input.state.d.ts +6 -6
  515. package/lib/helpers/extension/input-file.extension.d.ts +4 -4
  516. package/lib/helpers/formatting-date.d.ts +9 -9
  517. package/lib/helpers/formatting-dates-from-array.d.ts +2 -2
  518. package/lib/helpers/formatting-iso-to-string.d.ts +2 -2
  519. package/lib/helpers/index.d.ts +7 -7
  520. package/lib/helpers/number-format.d.ts +6 -6
  521. package/lib/helpers/string-hash-code.d.ts +2 -2
  522. package/lib/helpers/word-form.d.ts +7 -7
  523. package/lib/models/index.d.ts +2 -2
  524. package/lib/models/input-file/input-file.model.d.ts +22 -22
  525. package/lib/models/typed-input-model.d.ts +16 -16
  526. package/lib/pipes/currency/currency.module.d.ts +8 -8
  527. package/lib/pipes/currency/currency.pipe.d.ts +7 -7
  528. package/lib/pipes/date/date-format.module.d.ts +9 -9
  529. package/lib/pipes/date/date-format.pipe.d.ts +9 -9
  530. package/lib/pipes/date/date-time-format.pipe.d.ts +9 -9
  531. package/lib/pipes/date/enums/timezone.d.ts +8 -8
  532. package/lib/pipes/date/helpers/change-timezone.d.ts +2 -2
  533. package/lib/pipes/phone/phone-format.module.d.ts +8 -8
  534. package/lib/pipes/phone/phone-format.pipe.d.ts +8 -8
  535. package/lib/pipes/safe/safe.module.d.ts +8 -8
  536. package/lib/pipes/safe/safe.pipe.d.ts +10 -10
  537. package/lib/pipes/truncate/truncate.module.d.ts +8 -8
  538. package/lib/pipes/truncate/truncate.pipe.d.ts +7 -7
  539. package/lib/services/file-upload/file-upload.service.d.ts +12 -12
  540. package/lib/services/index.d.ts +6 -6
  541. package/lib/services/modal-service/components/alert-modal/alert-modal.component.d.ts +20 -0
  542. package/lib/services/modal-service/components/confirm-modal/confirm-modal.component.d.ts +21 -0
  543. package/lib/services/modal-service/helpers/modal-default-config.d.ts +3 -0
  544. package/lib/services/modal-service/helpers/modal-ref.d.ts +11 -0
  545. package/lib/services/modal-service/helpers/modal-tokens.d.ts +3 -0
  546. package/lib/services/modal-service/helpers/modal.component.d.ts +4 -0
  547. package/lib/services/modal-service/modal-service.service.d.ts +20 -0
  548. package/lib/services/modal-service/models/modal-config.model.d.ts +14 -0
  549. package/lib/services/mrx-autosave/mrx-autosave.service.d.ts +19 -19
  550. package/lib/services/mrx-form-validator/mrx-form-validator.d.ts +51 -51
  551. package/lib/services/save-store/constants/constants.d.ts +1 -1
  552. package/lib/services/save-store/models/save-store.model.d.ts +4 -4
  553. package/lib/services/save-store/save-store.module.d.ts +9 -9
  554. package/lib/services/save-store/store/actions.d.ts +21 -21
  555. package/lib/services/save-store/store/effect.d.ts +10 -16
  556. package/lib/services/save-store/store/reducer.d.ts +3 -3
  557. package/lib/services/save-store/store/selectors.d.ts +3 -3
  558. package/lib/services/save-store/store/state.d.ts +11 -11
  559. package/package.json +29 -37
  560. package/public-api.d.ts +162 -171
  561. package/esm2020/lib/components/alert/alert.component.mjs +0 -45
  562. package/esm2020/lib/components/badges/components/badge/badge.component.mjs +0 -61
  563. package/esm2020/lib/components/breadcrumbs/breadcrumbs.component.mjs +0 -29
  564. package/esm2020/lib/components/button/button.component.mjs +0 -102
  565. package/esm2020/lib/components/button/button.enum.mjs +0 -29
  566. package/esm2020/lib/components/cdk-tooltip/cdk-tooltip/tooltip-container.component.mjs +0 -28
  567. package/esm2020/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +0 -95
  568. package/esm2020/lib/components/chars-left/chars-left.component.mjs +0 -26
  569. package/esm2020/lib/components/context-menu/components/context-menu/context-menu.component.mjs +0 -99
  570. package/esm2020/lib/components/context-menu/components/context-menu-content/context-menu-content.component.mjs +0 -324
  571. package/esm2020/lib/components/context-menu/context-menu.module.mjs +0 -51
  572. package/esm2020/lib/components/context-menu/context-menu.options.mjs +0 -2
  573. package/esm2020/lib/components/context-menu/context-menu.tokens.mjs +0 -3
  574. package/esm2020/lib/components/context-menu/directives/context-menu/context-menu.directive.mjs +0 -36
  575. package/esm2020/lib/components/context-menu/directives/context-menu-item/context-menu-item.directive.mjs +0 -61
  576. package/esm2020/lib/components/context-menu/models/context-menu.enum.mjs +0 -2
  577. package/esm2020/lib/components/context-menu/services/context-menu/context-menu-fixed.service.mjs +0 -103
  578. package/esm2020/lib/components/context-menu/services/context-menu/context-menu.service.mjs +0 -223
  579. package/esm2020/lib/components/dropdown/directives/hide-after-click.directive.mjs +0 -23
  580. package/esm2020/lib/components/dropdown/dropdown.component.mjs +0 -104
  581. package/esm2020/lib/components/error-message/error-message.component.mjs +0 -31
  582. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -150
  583. package/esm2020/lib/components/form/checkbox-group/checkbox-group.component.mjs +0 -178
  584. package/esm2020/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +0 -103
  585. package/esm2020/lib/components/form/checkbox-group/helpers/change-group-value.mjs +0 -20
  586. package/esm2020/lib/components/form/checkbox-group/helpers/change-item-value.mjs +0 -15
  587. package/esm2020/lib/components/form/checkbox-group/helpers/filter-search-group.mjs +0 -27
  588. package/esm2020/lib/components/form/checkbox-group/helpers/get-checked-items.mjs +0 -20
  589. package/esm2020/lib/components/form/checkbox-group/helpers/get-sorted-list.mjs +0 -50
  590. package/esm2020/lib/components/form/document-editor/components/document-editor-preview-modal/document-editor-preview-modal.component.mjs +0 -33
  591. package/esm2020/lib/components/form/document-editor/document-editor.component.mjs +0 -105
  592. package/esm2020/lib/components/form/document-editor/document-editor.module.mjs +0 -42
  593. package/esm2020/lib/components/form/document-editor/helpers/transform-sysname.mjs +0 -41
  594. package/esm2020/lib/components/form/document-editor/models/document-editor-short-codes.enum.mjs +0 -2
  595. package/esm2020/lib/components/form/editor/editor.component.mjs +0 -232
  596. package/esm2020/lib/components/form/editor/editor.module.mjs +0 -45
  597. package/esm2020/lib/components/form/editor/modules/change-icon-module.mjs +0 -92
  598. package/esm2020/lib/components/form/input-date-time/helpers/cursor-position.mjs +0 -23
  599. package/esm2020/lib/components/form/input-date-time/helpers/formatting-from-models.mjs +0 -10
  600. package/esm2020/lib/components/form/input-date-time/input-date-time.component.mjs +0 -381
  601. package/esm2020/lib/components/form/input-date-time/input-date-time.module.mjs +0 -46
  602. package/esm2020/lib/components/form/input-datepicker/helpers/cursor-position.mjs +0 -23
  603. package/esm2020/lib/components/form/input-datepicker/helpers/get-date-dayjs-object.mjs +0 -10
  604. package/esm2020/lib/components/form/input-datepicker/helpers/get-date-object.mjs +0 -10
  605. package/esm2020/lib/components/form/input-datepicker/input-datepicker.component.mjs +0 -354
  606. package/esm2020/lib/components/form/input-datepicker/input-datepicker.module.mjs +0 -46
  607. package/esm2020/lib/components/form/input-file/input-file.component.mjs +0 -362
  608. package/esm2020/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +0 -66
  609. package/esm2020/lib/components/form/input-file-image/input-file-image.component.mjs +0 -339
  610. package/esm2020/lib/components/form/input-file-image/input-file-image.module.mjs +0 -58
  611. package/esm2020/lib/components/form/input-number/input-number.component.mjs +0 -238
  612. package/esm2020/lib/components/form/input-number/input-number.module.mjs +0 -55
  613. package/esm2020/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +0 -363
  614. package/esm2020/lib/components/form/input-opt/directives/opt-pattern.directive.mjs +0 -44
  615. package/esm2020/lib/components/form/input-password/input-password.component.mjs +0 -119
  616. package/esm2020/lib/components/form/input-phone/data/country-code.mjs +0 -1333
  617. package/esm2020/lib/components/form/input-phone/directives/native-element-injector.directive.mjs +0 -33
  618. package/esm2020/lib/components/form/input-phone/input-phone.component.mjs +0 -671
  619. package/esm2020/lib/components/form/input-phone/input-phone.module.mjs +0 -50
  620. package/esm2020/lib/components/form/input-phone/input-phone.validator.mjs +0 -61
  621. package/esm2020/lib/components/form/input-search/input-search.component.mjs +0 -166
  622. package/esm2020/lib/components/form/input-search/input-search.module.mjs +0 -41
  623. package/esm2020/lib/components/form/input-select/input-select.component.mjs +0 -243
  624. package/esm2020/lib/components/form/input-text/input-text.component.mjs +0 -188
  625. package/esm2020/lib/components/form/input-text/input-text.module.mjs +0 -49
  626. package/esm2020/lib/components/form/input-textarea/input-textarea.component.mjs +0 -169
  627. package/esm2020/lib/components/form/input-textarea/input-textarea.module.mjs +0 -48
  628. package/esm2020/lib/components/form/input-timepicker/helpers/cursor-position.mjs +0 -14
  629. package/esm2020/lib/components/form/input-timepicker/input-timepicker.component.mjs +0 -290
  630. package/esm2020/lib/components/form/input-timepicker/input-timepicker.module.mjs +0 -46
  631. package/esm2020/lib/components/form/radio/radio.component.mjs +0 -91
  632. package/esm2020/lib/components/form/rating/rating.component.mjs +0 -217
  633. package/esm2020/lib/components/form/switch/switch.component.mjs +0 -97
  634. package/esm2020/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +0 -22
  635. package/esm2020/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +0 -102
  636. package/esm2020/lib/components/gallery/gallery.component.mjs +0 -197
  637. package/esm2020/lib/components/gallery/services/gallery.service.mjs +0 -31
  638. package/esm2020/lib/components/hint-error-message/hint-error-message.component.mjs +0 -123
  639. package/esm2020/lib/components/icon-button/icon-button.component.mjs +0 -51
  640. package/esm2020/lib/components/label/label.component.mjs +0 -141
  641. package/esm2020/lib/components/link/link.component.mjs +0 -50
  642. package/esm2020/lib/components/loader/loader.component.mjs +0 -26
  643. package/esm2020/lib/components/modal/modal.component.mjs +0 -136
  644. package/esm2020/lib/components/pages-nav/pages-nav.component.mjs +0 -33
  645. package/esm2020/lib/components/paginator/paginator.component.mjs +0 -142
  646. package/esm2020/lib/components/progress/progress.component.mjs +0 -26
  647. package/esm2020/lib/components/save-state/components/save-state-checkbox/save-state-checkbox.component.mjs +0 -15
  648. package/esm2020/lib/components/save-state/components/save-state-checkbox-group/save-state-checkbox-group.component.mjs +0 -15
  649. package/esm2020/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +0 -15
  650. package/esm2020/lib/components/save-state/components/save-state-input/save-state-input.component.mjs +0 -15
  651. package/esm2020/lib/components/save-state/components/save-state-switch/save-state-switch.component.mjs +0 -15
  652. package/esm2020/lib/components/save-state/save-state.component.mjs +0 -39
  653. package/esm2020/lib/components/stepper/stepper.component.mjs +0 -54
  654. package/esm2020/lib/components/table/components/column/column.component.mjs +0 -40
  655. package/esm2020/lib/components/table/table.component.mjs +0 -274
  656. package/esm2020/lib/components/tabs/tab/tab.component.mjs +0 -31
  657. package/esm2020/lib/components/tabs/tabs-group/tabs-group.component.mjs +0 -29
  658. package/esm2020/lib/components/tooltip/services/tooltip.service.mjs +0 -67
  659. package/esm2020/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +0 -48
  660. package/esm2020/lib/components/tooltip/tooltip.component.mjs +0 -60
  661. package/esm2020/lib/components/truncate-text/truncate-text.component.mjs +0 -30
  662. package/esm2020/lib/components/warning-message/warning-message.component.mjs +0 -31
  663. package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +0 -26
  664. package/esm2020/lib/components/wrappers/controls-wrapper/components/controls-item/controls-item.component.mjs +0 -17
  665. package/esm2020/lib/components/wrappers/controls-wrapper/controls-wrapper.component.mjs +0 -24
  666. package/esm2020/lib/components/wrappers/widget-wrapper/widget-wrapper.component.mjs +0 -96
  667. package/esm2020/lib/directives/autosize/autosize.directive.mjs +0 -55
  668. package/esm2020/lib/directives/truncate/truncate.directive.mjs +0 -32
  669. package/esm2020/lib/helpers/extension/input-file.extension.mjs +0 -39
  670. package/esm2020/lib/helpers/formatting-date.mjs +0 -51
  671. package/esm2020/lib/helpers/string-hash-code.mjs +0 -17
  672. package/esm2020/lib/pipes/currency/currency.pipe.mjs +0 -22
  673. package/esm2020/lib/pipes/date/date-format.pipe.mjs +0 -21
  674. package/esm2020/lib/pipes/date/date-time-format.pipe.mjs +0 -21
  675. package/esm2020/lib/pipes/phone/phone-format.pipe.mjs +0 -23
  676. package/esm2020/lib/pipes/safe/safe.pipe.mjs +0 -20
  677. package/esm2020/lib/pipes/truncate/truncate.pipe.mjs +0 -23
  678. package/esm2020/lib/services/file-upload/file-upload.service.mjs +0 -26
  679. package/esm2020/lib/services/mrx-autosave/mrx-autosave.service.mjs +0 -44
  680. package/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +0 -282
  681. package/esm2020/lib/services/save-store/store/effect.mjs +0 -31
  682. package/esm2020/lib/services/save-store/store/reducer.mjs +0 -79
  683. package/esm2020/public-api.mjs +0 -180
  684. package/fesm2015/myrta-ui.mjs +0 -13594
  685. package/fesm2015/myrta-ui.mjs.map +0 -1
  686. package/fesm2020/myrta-ui.mjs +0 -13637
  687. package/fesm2020/myrta-ui.mjs.map +0 -1
  688. package/lib/components/context-menu/components/context-menu/context-menu.component.d.ts +0 -34
  689. package/lib/components/context-menu/components/context-menu-content/context-menu-content.component.d.ts +0 -62
  690. package/lib/components/context-menu/context-menu.module.d.ts +0 -15
  691. package/lib/components/context-menu/context-menu.options.d.ts +0 -4
  692. package/lib/components/context-menu/context-menu.tokens.d.ts +0 -2
  693. package/lib/components/context-menu/directives/context-menu/context-menu.directive.d.ts +0 -12
  694. package/lib/components/context-menu/directives/context-menu-item/context-menu-item.directive.d.ts +0 -30
  695. package/lib/components/context-menu/models/context-menu.enum.d.ts +0 -11
  696. package/lib/components/context-menu/services/context-menu/context-menu-fixed.service.d.ts +0 -11
  697. package/lib/components/context-menu/services/context-menu/context-menu.service.d.ts +0 -56
  698. package/lib/components/form/document-editor/components/document-editor-preview-modal/document-editor-preview-modal.component.d.ts +0 -22
  699. package/lib/components/form/document-editor/document-editor.component.d.ts +0 -37
  700. package/lib/components/form/document-editor/document-editor.module.d.ts +0 -13
  701. package/lib/components/form/document-editor/helpers/transform-sysname.d.ts +0 -5
  702. package/lib/components/form/document-editor/models/document-editor-short-codes.enum.d.ts +0 -6
@@ -0,0 +1,370 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { HttpEventType } from '@angular/common/http';
3
+ import { catchError } from 'rxjs/operators';
4
+ import { EMPTY } from 'rxjs';
5
+ import { v4 as uuidv4 } from 'uuid';
6
+ import { formatBytes } from '../../../helpers/extension/input-file.extension';
7
+ import { ErrorMessagesEnum } from './enums/error-messages.enum';
8
+ import { InputFileTargetTypesEnum } from './input-file.enum';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "../../../services/file-upload/file-upload.service";
11
+ import * as i2 from "@angular/common";
12
+ import * as i3 from "ngx-file-drop";
13
+ import * as i4 from "../../error-message/error-message.component";
14
+ import * as i5 from "../../cdk-tooltip/cdk-tooltip.directive";
15
+ export class InputFileComponent {
16
+ fileUploadService;
17
+ formatBytes = formatBytes;
18
+ extensions;
19
+ allowedExtensions = [];
20
+ files = [];
21
+ autoUpload = true;
22
+ required = false;
23
+ disabled = false;
24
+ viewOnly = false;
25
+ lightDisabled = false;
26
+ bottomFiles = false;
27
+ maxSize = 31457280;
28
+ maxFiles = 5;
29
+ minFiles = 0;
30
+ formData = {}; // Параметры, которые будут передаваться в форме
31
+ uploadEndPoint;
32
+ deleteEndPoint;
33
+ downloadEndPoint;
34
+ fileNamePlaceholder;
35
+ showInputWithError = true;
36
+ showDeleteButton = true;
37
+ isTooltipValue = false;
38
+ isDownloadingFile = true;
39
+ isHideListFiles = false;
40
+ target = '_self';
41
+ deleteConfirm;
42
+ innerTemplate;
43
+ uploadAdditionalData = {};
44
+ // ERROR
45
+ invalid = false;
46
+ invalidMessage = '';
47
+ checkInvalid = null;
48
+ // ERROR MESSAGES
49
+ messageTooManyFiles = ErrorMessagesEnum.TooManyFiles;
50
+ messageFileTooBig = ErrorMessagesEnum.FileTooBig;
51
+ messageEmptyFile = ErrorMessagesEnum.EmptyFile;
52
+ messageInvalidFileFormat = ErrorMessagesEnum.InvalidFileFormat;
53
+ // PLACEHOLDERS
54
+ placeholder = 'Перенесите файл с устройства или нажмите на данное поле для добавления файла';
55
+ placeholderFileMaxSize = 'Размер файла: не больше';
56
+ placeholderFileFormat = 'Формат файла:';
57
+ set initFiles(data) {
58
+ if (data) {
59
+ if (Array.isArray(data)) {
60
+ this.files = data.map(s => ({ ...s }));
61
+ }
62
+ else {
63
+ this.files = [{ ...data }];
64
+ }
65
+ }
66
+ else {
67
+ this.files = [];
68
+ }
69
+ }
70
+ set initAllowedExtensions(val) {
71
+ if (val) {
72
+ this.allowedExtensions = val;
73
+ this.extensions = val.join(', ');
74
+ }
75
+ else {
76
+ this.allowedExtensions = [];
77
+ this.extensions = undefined;
78
+ }
79
+ }
80
+ filesChanged = new EventEmitter();
81
+ checkDroppedFile = new EventEmitter();
82
+ constructor(fileUploadService) {
83
+ this.fileUploadService = fileUploadService;
84
+ }
85
+ get canAdd() {
86
+ if (this.showInputWithError) {
87
+ return this.maxFiles > this.files.filter(s => !s.error).length;
88
+ }
89
+ else {
90
+ return this.maxFiles > this.files.length;
91
+ }
92
+ }
93
+ get getTarget() {
94
+ return InputFileTargetTypesEnum[this.target];
95
+ }
96
+ get isInvalidMessage() {
97
+ return !!this.invalidMessage || !!this.invalidMessage.length;
98
+ }
99
+ get checkValidClasses() {
100
+ return this.checkInvalid === false ?
101
+ 'mrx-input-checked-success' :
102
+ this.checkInvalid === true ? 'mrx-input-checked-error' : '';
103
+ }
104
+ get getClasses() {
105
+ return `${this.checkValidClasses}`;
106
+ }
107
+ get isValid() {
108
+ return this.baseValidate();
109
+ }
110
+ getTooltipValue(value) {
111
+ return this.isTooltipValue && value ? value : '';
112
+ }
113
+ baseValidate() {
114
+ return true;
115
+ }
116
+ trackByFn(index, item) {
117
+ return Boolean(item.uuid) ? item.uuid : item.tempUuid;
118
+ }
119
+ delete(file) {
120
+ if (this.deleteConfirm) {
121
+ this.deleteConfirm(file, (ok) => {
122
+ if (ok) {
123
+ const findFile = this.files.find(s => s.uuid === file.uuid);
124
+ if (findFile) {
125
+ if (this.deleteEndPoint) {
126
+ const formData = this.createFormData();
127
+ formData.append('Qquuid', file.uuid);
128
+ findFile.deleting = true;
129
+ if (this.autoUpload) {
130
+ this.fileUploadService.delete(this.deleteEndPoint, formData).subscribe(result => {
131
+ this.files.splice(this.files.indexOf(findFile), 1);
132
+ this.filesChanged.emit(this.files);
133
+ });
134
+ }
135
+ else {
136
+ this.clear(file);
137
+ }
138
+ }
139
+ else {
140
+ this.files.splice(this.files.indexOf(findFile), 1);
141
+ this.filesChanged.emit(this.files);
142
+ }
143
+ }
144
+ }
145
+ });
146
+ }
147
+ }
148
+ canCancelUploading(file) {
149
+ return !!file.uploading && file.percentage ? file.percentage < 90 : false;
150
+ }
151
+ clear(file) {
152
+ if (file.uploading) {
153
+ if (file.execution) {
154
+ file.execution.unsubscribe();
155
+ }
156
+ }
157
+ const findFileIdx = this.files.indexOf(file);
158
+ if (findFileIdx >= 0) {
159
+ this.files.splice(findFileIdx, 1);
160
+ }
161
+ }
162
+ downloadUrl(file) {
163
+ if (file.url && !file.size) {
164
+ return file.url;
165
+ }
166
+ else {
167
+ if (this.downloadEndPoint) {
168
+ return `${this.downloadEndPoint}?uuid=${file.uuid}`;
169
+ }
170
+ return '#';
171
+ }
172
+ }
173
+ dropped(files) {
174
+ for (const droppedFile of files) {
175
+ if (droppedFile.fileEntry.isFile) {
176
+ const fileEntry = droppedFile.fileEntry;
177
+ fileEntry.file((file) => {
178
+ this.uploadFile(file);
179
+ });
180
+ }
181
+ else {
182
+ // It was a directory (empty directories are added, otherwise only files)
183
+ const fileEntry = droppedFile.fileEntry;
184
+ }
185
+ }
186
+ }
187
+ formDataKeys() {
188
+ return Object.keys(this.formData);
189
+ }
190
+ createFormData() {
191
+ const form = new FormData();
192
+ if (this.maxFiles) {
193
+ form.append('MaxFiles', this.maxFiles.toString(10));
194
+ }
195
+ const keys = this.formDataKeys();
196
+ keys.forEach(key => form.append(key, this.formData[key]));
197
+ return form;
198
+ }
199
+ uploadFile(file) {
200
+ const data = {
201
+ uuid: '',
202
+ tempUuid: uuidv4(),
203
+ name: file.name,
204
+ size: file.size,
205
+ uploading: true,
206
+ percentage: 0,
207
+ file: file
208
+ };
209
+ if (!this.checkForUpload(data)) {
210
+ return;
211
+ }
212
+ const formData = this.createFormData();
213
+ formData.append('File', file);
214
+ if (this.uploadAdditionalData && Object.keys(this.uploadAdditionalData).length) {
215
+ Object.keys(this.uploadAdditionalData).forEach(key => {
216
+ formData.append(key, this.uploadAdditionalData[key]);
217
+ });
218
+ }
219
+ if (this.autoUpload) {
220
+ data.execution = this.fileUploadService.upload(this.uploadEndPoint, formData).pipe(catchError((err) => {
221
+ data.uploading = false;
222
+ return EMPTY;
223
+ }))
224
+ .subscribe((event) => {
225
+ switch (event.type) {
226
+ case HttpEventType.Sent:
227
+ break;
228
+ case HttpEventType.ResponseHeader:
229
+ break;
230
+ case HttpEventType.UploadProgress:
231
+ if (event.total) {
232
+ data.percentage = Math.round(event.loaded / event.total * 100);
233
+ }
234
+ break;
235
+ case HttpEventType.Response:
236
+ if (event.body) {
237
+ data.uploading = false;
238
+ data.percentage = 0;
239
+ data.uuid = event.body.uuid;
240
+ data.file = undefined;
241
+ data.error = event.body.message;
242
+ if (data.execution) {
243
+ data.execution.unsubscribe();
244
+ }
245
+ if (this.files.every(s => !s.uploading)) {
246
+ const completedFiles = this.files.filter(s => !s.error);
247
+ this.filesChanged.emit(completedFiles);
248
+ }
249
+ }
250
+ }
251
+ });
252
+ }
253
+ else {
254
+ data.uploading = false;
255
+ data.uuid = data.tempUuid || '';
256
+ if (this.files.every(s => !s.uploading)) {
257
+ this.filesChanged.emit(this.files);
258
+ }
259
+ }
260
+ }
261
+ checkForUpload(data) {
262
+ this.checkDroppedFile.emit(data);
263
+ if (!this.canAdd) {
264
+ data.error = this.messageTooManyFiles;
265
+ data.uploading = false;
266
+ this.files.push(data);
267
+ return false;
268
+ }
269
+ this.files.push(data);
270
+ if (data.file && data.file.size > this.maxSize) {
271
+ data.error = this.messageFileTooBig;
272
+ data.uploading = false;
273
+ return false;
274
+ }
275
+ if (data.file && data.file.size == 0) {
276
+ data.error = this.messageEmptyFile;
277
+ data.uploading = false;
278
+ return false;
279
+ }
280
+ if (this.allowedExtensions.length > 0 && !this.allowedExtensions.some(s => data.file && data.file.name.toLowerCase().endsWith(s.toLowerCase()))) {
281
+ data.error = this.messageInvalidFileFormat;
282
+ data.uploading = false;
283
+ return false;
284
+ }
285
+ return true;
286
+ }
287
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: InputFileComponent, deps: [{ token: i1.FileUploadService }], target: i0.ɵɵFactoryTarget.Component });
288
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: InputFileComponent, selector: "mrx-input-file", inputs: { autoUpload: "autoUpload", required: "required", disabled: "disabled", viewOnly: "viewOnly", lightDisabled: "lightDisabled", bottomFiles: "bottomFiles", maxSize: "maxSize", maxFiles: "maxFiles", minFiles: "minFiles", formData: "formData", uploadEndPoint: "uploadEndPoint", deleteEndPoint: "deleteEndPoint", downloadEndPoint: "downloadEndPoint", fileNamePlaceholder: "fileNamePlaceholder", showInputWithError: "showInputWithError", showDeleteButton: "showDeleteButton", isTooltipValue: "isTooltipValue", isDownloadingFile: "isDownloadingFile", isHideListFiles: "isHideListFiles", target: "target", deleteConfirm: "deleteConfirm", innerTemplate: "innerTemplate", uploadAdditionalData: "uploadAdditionalData", invalid: "invalid", invalidMessage: "invalidMessage", checkInvalid: "checkInvalid", messageTooManyFiles: "messageTooManyFiles", messageFileTooBig: "messageFileTooBig", messageEmptyFile: "messageEmptyFile", messageInvalidFileFormat: "messageInvalidFileFormat", placeholder: "placeholder", placeholderFileMaxSize: "placeholderFileMaxSize", placeholderFileFormat: "placeholderFileFormat", initFiles: ["files", "initFiles"], initAllowedExtensions: ["allowedExtensions", "initAllowedExtensions"] }, outputs: { filesChanged: "filesChanged", checkDroppedFile: "checkDroppedFile" }, ngImport: i0, template: "<div\r\n class=\"ng-form-file-input\"\r\n [class]=\"getClasses\"\r\n [class.mrx-input-error]=\"invalid\">\r\n <div class=\"form-row\" *ngIf=\"disabled; else notDisabled\">\r\n <div *ngIf=\"!files || files.length == 0\"\r\n class=\"col-sm-12 col-md-6\"\r\n >\r\n <div class=\"d-flex align-items-center color-tertiary\">\r\n <div class=\"mrx-icon icon-file icon-font-24 mr-2\"></div>\r\n <span>\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043D\u0435\u0442</span>\r\n </div> \r\n </div>\r\n\r\n <div class=\"col-12\">\r\n <ul class=\"new-custom-file-input\" *ngIf=\"files.length\">\r\n <li\r\n class=\"new-custom-file-input__item\"\r\n *ngFor=\"let file of files; trackBy: trackByFn\"\r\n >\r\n <div class=\"qq-file-info\">\r\n <div class=\"d-flex align-items-center\">\r\n <span class=\"mrx-icon icon-file icon-font-24 mr-2\"></span>\r\n <a\r\n class=\"qq-upload-file-selector qq-upload-file\"\r\n [target]=\"getTarget\"\r\n [href]=\"downloadUrl(file)\"\r\n [title]=\"fileNamePlaceholder ? fileNamePlaceholder : file.name\"\r\n >{{fileNamePlaceholder ? fileNamePlaceholder : file.name}}</a>\r\n </div>\r\n <div class=\"info\">\r\n <span class=\"qq-upload-size-selector qq-upload-size\" *ngIf=\"!file.error\">{{formatBytes(file.size)}}</span>\r\n </div>\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n </div>\r\n\r\n <ng-template #notDisabled>\r\n <ng-container *ngIf=\"!bottomFiles && !isHideListFiles\">\r\n <ng-container *ngTemplateOutlet=\"fileListTemplate\"></ng-container>\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n </ng-container>\r\n\r\n <ngx-file-drop\r\n *ngIf=\"canAdd\"\r\n [className]=\"'ng-custom-file-input'\"\r\n [accept]=\"extensions || ''\"\r\n [disabled]=\"lightDisabled\"\r\n [ngClass]=\"{'ng-custom-file-input--disabled': lightDisabled}\"\r\n (onFileDrop)=\"dropped($event)\"\r\n >\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)=\"!lightDisabled ? openFileSelector() : undefined\"\r\n >\r\n <div class=\"text-center\">\r\n <div class=\"ng-custom-file-input-content--placeholder mb-2\">\r\n {{placeholder}}\r\n </div>\r\n <div class=\"ng-custom-file-input-content--size\">\r\n {{placeholderFileMaxSize}} {{formatBytes(maxSize)}}\r\n </div>\r\n <div class=\"ng-custom-file-input-content--extensions\" *ngIf=\"extensions\">\r\n {{placeholderFileFormat}} {{extensions}}\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-file-drop>\r\n\r\n <ng-container *ngIf=\"bottomFiles && !isHideListFiles\">\r\n <ng-container *ngTemplateOutlet=\"fileListTemplate\"></ng-container>\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n </ng-container>\r\n </ng-template>\r\n</div>\r\n\r\n<mrx-error-message\r\n *ngIf=\"(!isValid || invalid) && isInvalidMessage\"\r\n [invalidMessage]=\"invalidMessage\"\r\n></mrx-error-message>\r\n\r\n<ng-template #fileListTemplate>\r\n <ul class=\"new-custom-file-input\" *ngIf=\"files.length\">\r\n <li\r\n class=\"new-custom-file-input__item\"\r\n *ngFor=\"let file of files; trackBy: trackByFn\"\r\n [ngClass]=\"{'file-error': file.error}\"\r\n [mrxCdkTooltip]=\"getTooltipValue(fileNamePlaceholder ? fileNamePlaceholder : file.name || '')\"\r\n [tooltipPosition]=\"'top-start'\"\r\n >\r\n <ng-container *ngIf=\"autoUpload\">\r\n <a class=\"qq-download-link\" [target]=\"getTarget\" [href]=\"downloadUrl(file)\" *ngIf=\"file.uuid && isDownloadingFile\"></a>\r\n </ng-container>\r\n <div class=\"qq-file-info\">\r\n <div class=\"d-flex align-items-center\">\r\n <span class=\"mrx-icon icon-file icon-font-24 mr-2\"></span>\r\n <span\r\n class=\"qq-upload-file-selector qq-upload-file\"\r\n [title]=\"fileNamePlaceholder ? fileNamePlaceholder : file.name\"\r\n >{{fileNamePlaceholder ? fileNamePlaceholder : file.name}}</span>\r\n </div>\r\n <div class=\"info\">\r\n <div class=\"ng-custom-file-input_progress\" *ngIf=\"file.uploading\">\r\n <span [ngStyle]=\"{width: file.percentage + '%'}\"></span>\r\n </div>\r\n\r\n <span class=\"qq-upload-size-selector qq-upload-size\" *ngIf=\"!file.error\">{{formatBytes(file.size)}}</span>\r\n <span\r\n *ngIf=\"!disabled && file.uuid && showDeleteButton && !viewOnly\"\r\n (click)=\"delete(file)\"\r\n class=\"mrx-icon icon-delete icon-font-24 cursor-pointer\"\r\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C\"\r\n ></span>\r\n\r\n <div class=\"ng-custom-file-input-error\" *ngIf=\"file.error\">\r\n <span class=\"mrx-icon icon-attention icon-color-red icon-font-16 mr-1\"></span>\r\n <span class=\"color-negative\">{{file.error}}</span>\r\n </div>\r\n\r\n <div \r\n class=\"mrx-icon icon-close icon-font-24 cursor-pointer ml-2\"\r\n *ngIf=\"(file.error && !file.uuid) || canCancelUploading(file) && !viewOnly\"\r\n (click)=\"clear(file)\"\r\n ></div>\r\n </div>\r\n </div>\r\n </li>\r\n </ul>\r\n</ng-template>\r\n", styles: ["mrx-input-file .new-custom-file-input__item .qq-upload-size-selector{color:var(--neutral-text-tertiary, #71767E)!important}:host::ng-deep .ng-form-file-input{display:flex;flex-direction:column;gap:12px}:host::ng-deep .ng-form-file-input .color-tertiary,:host::ng-deep .ng-form-file-input .color-tertiary *{color:var(--neutral-text-tertiary, #71767E)}.ng-custom-file-input-content{padding:var(--spacing-4);color:var(--neutral-text-secondary, #636363)}.ng-custom-file-input-content--placeholder{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, #636363)}.ng-custom-file-input-content--size,.ng-custom-file-input-content--extensions{font-family:var(--body-sm-font-family);font-size:var(--body-sm-font-size);font-weight:var(--body-sm-font-weight);line-height:var(--body-sm-line-height);color:var(--neutral-text-secondary, #636363)}.new-custom-file-input{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.new-custom-file-input__item{border:1px solid var(--neutral-bg-stroke-default, #DAD5CE);border-radius:var(--border-radius-1);padding:var(--spacing-3);background-color:var(--brand-bg-tertiary-default, #FFF)}.new-custom-file-input__item .qq-file-info{display:flex;justify-content:space-between;align-items:center}.new-custom-file-input__item .qq-file-info .info{display:flex;align-items:center}.new-custom-file-input__item .qq-file-info .qq-upload-file-selector{margin:0;-webkit-line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;color:var(--neutral-text-primary)}.new-custom-file-input__item .qq-file-info .qq-upload-size-selector{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, #636363);padding-left:var(--spacing-2);margin-right:var(--spacing-2)}.new-custom-file-input .qq-file-info .info{position:relative;z-index:2}:host::ng-deep .ng-form-file-input .ng-custom-file-input .ngx-file-drop__drop-zone{background:var(--brand-bg-tertiary-default, #FFF);border-radius:var(--border-radius-1)!important;border:none;background-image:repeating-linear-gradient(0deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px),repeating-linear-gradient(90deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px),repeating-linear-gradient(180deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px),repeating-linear-gradient(270deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px);background-size:1px 100%,100% 1px,1px 100%,100% 1px;background-position:0 0,0 0,100% 0,0 100%;background-repeat:no-repeat}:host::ng-deep .ng-form-file-input .ng-custom-file-input .ngx-file-drop__drop-zone:hover,:host::ng-deep .ng-form-file-input .ng-custom-file-input .ngx-file-drop__drop-zone:focus{background-image:repeating-linear-gradient(0deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px),repeating-linear-gradient(90deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px),repeating-linear-gradient(180deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px),repeating-linear-gradient(270deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px)}:host::ng-deep .ng-form-file-input .ng-custom-file-input.ng-custom-file-input--disabled .ngx-file-drop__drop-zone{background-color:var(--neutral-bg-disabled, #F4F4F4)}::ng-deep .new-custom-file-input__item.file-error{border-color:var(--system-bg-controls-negative-default, #B83B15)}::ng-deep .ng-custom-file-input-error{display:flex;align-items:center;white-space:nowrap;font-family:var(--body-sm-font-family);font-size:var(--body-sm-font-size);font-weight:var(--body-sm-font-weight);line-height:var(--body-sm-line-height)}::ng-deep .ng-form-file-input.mrx-input-error .ng-custom-file-input .ngx-file-drop__drop-zone{background-image:repeating-linear-gradient(0deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(90deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(180deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(270deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px)!important}::ng-deep .ng-form-file-input.mrx-input-checked-error .ng-custom-file-input .ngx-file-drop__drop-zone{background-color:var(--system-bg-negative-secondary);background-image:repeating-linear-gradient(0deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(90deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(180deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(270deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px)!important}::ng-deep .ng-form-file-input.mrx-input-checked-success .ng-custom-file-input .ngx-file-drop__drop-zone{background-color:var(--system-bg-positive-secondary);background-image:repeating-linear-gradient(0deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px),repeating-linear-gradient(90deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px),repeating-linear-gradient(180deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px),repeating-linear-gradient(270deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px)!important}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.NgxFileDropComponent, selector: "ngx-file-drop", inputs: ["accept", "directory", "multiple", "dropZoneLabel", "dropZoneClassName", "useDragEnter", "contentClassName", "showBrowseBtn", "browseBtnClassName", "browseBtnLabel", "disabled"], outputs: ["onFileDrop", "onFileOver", "onFileLeave"] }, { kind: "directive", type: i3.NgxFileDropContentTemplateDirective, selector: "[ngx-file-drop-content-tmp]" }, { kind: "component", type: i4.ErrorMessageComponent, selector: "mrx-error-message", inputs: ["invalid", "invalidMessage", "customClasses"] }, { kind: "directive", type: i5.CdkTooltipDirective, selector: "[mrxCdkTooltip]", inputs: ["mrxCdkTooltip", "tooltipActive", "autoCloseByScroll", "tooltipPosition", "tooltipMaxWidth"] }] });
289
+ }
290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: InputFileComponent, decorators: [{
291
+ type: Component,
292
+ args: [{ selector: 'mrx-input-file', template: "<div\r\n class=\"ng-form-file-input\"\r\n [class]=\"getClasses\"\r\n [class.mrx-input-error]=\"invalid\">\r\n <div class=\"form-row\" *ngIf=\"disabled; else notDisabled\">\r\n <div *ngIf=\"!files || files.length == 0\"\r\n class=\"col-sm-12 col-md-6\"\r\n >\r\n <div class=\"d-flex align-items-center color-tertiary\">\r\n <div class=\"mrx-icon icon-file icon-font-24 mr-2\"></div>\r\n <span>\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043D\u0435\u0442</span>\r\n </div> \r\n </div>\r\n\r\n <div class=\"col-12\">\r\n <ul class=\"new-custom-file-input\" *ngIf=\"files.length\">\r\n <li\r\n class=\"new-custom-file-input__item\"\r\n *ngFor=\"let file of files; trackBy: trackByFn\"\r\n >\r\n <div class=\"qq-file-info\">\r\n <div class=\"d-flex align-items-center\">\r\n <span class=\"mrx-icon icon-file icon-font-24 mr-2\"></span>\r\n <a\r\n class=\"qq-upload-file-selector qq-upload-file\"\r\n [target]=\"getTarget\"\r\n [href]=\"downloadUrl(file)\"\r\n [title]=\"fileNamePlaceholder ? fileNamePlaceholder : file.name\"\r\n >{{fileNamePlaceholder ? fileNamePlaceholder : file.name}}</a>\r\n </div>\r\n <div class=\"info\">\r\n <span class=\"qq-upload-size-selector qq-upload-size\" *ngIf=\"!file.error\">{{formatBytes(file.size)}}</span>\r\n </div>\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n </div>\r\n\r\n <ng-template #notDisabled>\r\n <ng-container *ngIf=\"!bottomFiles && !isHideListFiles\">\r\n <ng-container *ngTemplateOutlet=\"fileListTemplate\"></ng-container>\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n </ng-container>\r\n\r\n <ngx-file-drop\r\n *ngIf=\"canAdd\"\r\n [className]=\"'ng-custom-file-input'\"\r\n [accept]=\"extensions || ''\"\r\n [disabled]=\"lightDisabled\"\r\n [ngClass]=\"{'ng-custom-file-input--disabled': lightDisabled}\"\r\n (onFileDrop)=\"dropped($event)\"\r\n >\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)=\"!lightDisabled ? openFileSelector() : undefined\"\r\n >\r\n <div class=\"text-center\">\r\n <div class=\"ng-custom-file-input-content--placeholder mb-2\">\r\n {{placeholder}}\r\n </div>\r\n <div class=\"ng-custom-file-input-content--size\">\r\n {{placeholderFileMaxSize}} {{formatBytes(maxSize)}}\r\n </div>\r\n <div class=\"ng-custom-file-input-content--extensions\" *ngIf=\"extensions\">\r\n {{placeholderFileFormat}} {{extensions}}\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-file-drop>\r\n\r\n <ng-container *ngIf=\"bottomFiles && !isHideListFiles\">\r\n <ng-container *ngTemplateOutlet=\"fileListTemplate\"></ng-container>\r\n <ng-container *ngTemplateOutlet=\"innerTemplate; context:{}\"></ng-container>\r\n </ng-container>\r\n </ng-template>\r\n</div>\r\n\r\n<mrx-error-message\r\n *ngIf=\"(!isValid || invalid) && isInvalidMessage\"\r\n [invalidMessage]=\"invalidMessage\"\r\n></mrx-error-message>\r\n\r\n<ng-template #fileListTemplate>\r\n <ul class=\"new-custom-file-input\" *ngIf=\"files.length\">\r\n <li\r\n class=\"new-custom-file-input__item\"\r\n *ngFor=\"let file of files; trackBy: trackByFn\"\r\n [ngClass]=\"{'file-error': file.error}\"\r\n [mrxCdkTooltip]=\"getTooltipValue(fileNamePlaceholder ? fileNamePlaceholder : file.name || '')\"\r\n [tooltipPosition]=\"'top-start'\"\r\n >\r\n <ng-container *ngIf=\"autoUpload\">\r\n <a class=\"qq-download-link\" [target]=\"getTarget\" [href]=\"downloadUrl(file)\" *ngIf=\"file.uuid && isDownloadingFile\"></a>\r\n </ng-container>\r\n <div class=\"qq-file-info\">\r\n <div class=\"d-flex align-items-center\">\r\n <span class=\"mrx-icon icon-file icon-font-24 mr-2\"></span>\r\n <span\r\n class=\"qq-upload-file-selector qq-upload-file\"\r\n [title]=\"fileNamePlaceholder ? fileNamePlaceholder : file.name\"\r\n >{{fileNamePlaceholder ? fileNamePlaceholder : file.name}}</span>\r\n </div>\r\n <div class=\"info\">\r\n <div class=\"ng-custom-file-input_progress\" *ngIf=\"file.uploading\">\r\n <span [ngStyle]=\"{width: file.percentage + '%'}\"></span>\r\n </div>\r\n\r\n <span class=\"qq-upload-size-selector qq-upload-size\" *ngIf=\"!file.error\">{{formatBytes(file.size)}}</span>\r\n <span\r\n *ngIf=\"!disabled && file.uuid && showDeleteButton && !viewOnly\"\r\n (click)=\"delete(file)\"\r\n class=\"mrx-icon icon-delete icon-font-24 cursor-pointer\"\r\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C\"\r\n ></span>\r\n\r\n <div class=\"ng-custom-file-input-error\" *ngIf=\"file.error\">\r\n <span class=\"mrx-icon icon-attention icon-color-red icon-font-16 mr-1\"></span>\r\n <span class=\"color-negative\">{{file.error}}</span>\r\n </div>\r\n\r\n <div \r\n class=\"mrx-icon icon-close icon-font-24 cursor-pointer ml-2\"\r\n *ngIf=\"(file.error && !file.uuid) || canCancelUploading(file) && !viewOnly\"\r\n (click)=\"clear(file)\"\r\n ></div>\r\n </div>\r\n </div>\r\n </li>\r\n </ul>\r\n</ng-template>\r\n", styles: ["mrx-input-file .new-custom-file-input__item .qq-upload-size-selector{color:var(--neutral-text-tertiary, #71767E)!important}:host::ng-deep .ng-form-file-input{display:flex;flex-direction:column;gap:12px}:host::ng-deep .ng-form-file-input .color-tertiary,:host::ng-deep .ng-form-file-input .color-tertiary *{color:var(--neutral-text-tertiary, #71767E)}.ng-custom-file-input-content{padding:var(--spacing-4);color:var(--neutral-text-secondary, #636363)}.ng-custom-file-input-content--placeholder{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, #636363)}.ng-custom-file-input-content--size,.ng-custom-file-input-content--extensions{font-family:var(--body-sm-font-family);font-size:var(--body-sm-font-size);font-weight:var(--body-sm-font-weight);line-height:var(--body-sm-line-height);color:var(--neutral-text-secondary, #636363)}.new-custom-file-input{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.new-custom-file-input__item{border:1px solid var(--neutral-bg-stroke-default, #DAD5CE);border-radius:var(--border-radius-1);padding:var(--spacing-3);background-color:var(--brand-bg-tertiary-default, #FFF)}.new-custom-file-input__item .qq-file-info{display:flex;justify-content:space-between;align-items:center}.new-custom-file-input__item .qq-file-info .info{display:flex;align-items:center}.new-custom-file-input__item .qq-file-info .qq-upload-file-selector{margin:0;-webkit-line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;color:var(--neutral-text-primary)}.new-custom-file-input__item .qq-file-info .qq-upload-size-selector{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, #636363);padding-left:var(--spacing-2);margin-right:var(--spacing-2)}.new-custom-file-input .qq-file-info .info{position:relative;z-index:2}:host::ng-deep .ng-form-file-input .ng-custom-file-input .ngx-file-drop__drop-zone{background:var(--brand-bg-tertiary-default, #FFF);border-radius:var(--border-radius-1)!important;border:none;background-image:repeating-linear-gradient(0deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px),repeating-linear-gradient(90deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px),repeating-linear-gradient(180deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px),repeating-linear-gradient(270deg,var(--neutral-bg-stroke-default, #DAD5CE),var(--neutral-bg-stroke-default, #DAD5CE) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-default, #DAD5CE) 10px);background-size:1px 100%,100% 1px,1px 100%,100% 1px;background-position:0 0,0 0,100% 0,0 100%;background-repeat:no-repeat}:host::ng-deep .ng-form-file-input .ng-custom-file-input .ngx-file-drop__drop-zone:hover,:host::ng-deep .ng-form-file-input .ng-custom-file-input .ngx-file-drop__drop-zone:focus{background-image:repeating-linear-gradient(0deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px),repeating-linear-gradient(90deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px),repeating-linear-gradient(180deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px),repeating-linear-gradient(270deg,var(--neutral-bg-stroke-hover, #BCB5AC),var(--neutral-bg-stroke-hover, #BCB5AC) 6px,transparent 6px,transparent 10px,var(--neutral-bg-stroke-hover, #BCB5AC) 10px)}:host::ng-deep .ng-form-file-input .ng-custom-file-input.ng-custom-file-input--disabled .ngx-file-drop__drop-zone{background-color:var(--neutral-bg-disabled, #F4F4F4)}::ng-deep .new-custom-file-input__item.file-error{border-color:var(--system-bg-controls-negative-default, #B83B15)}::ng-deep .ng-custom-file-input-error{display:flex;align-items:center;white-space:nowrap;font-family:var(--body-sm-font-family);font-size:var(--body-sm-font-size);font-weight:var(--body-sm-font-weight);line-height:var(--body-sm-line-height)}::ng-deep .ng-form-file-input.mrx-input-error .ng-custom-file-input .ngx-file-drop__drop-zone{background-image:repeating-linear-gradient(0deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(90deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(180deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(270deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px)!important}::ng-deep .ng-form-file-input.mrx-input-checked-error .ng-custom-file-input .ngx-file-drop__drop-zone{background-color:var(--system-bg-negative-secondary);background-image:repeating-linear-gradient(0deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(90deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(180deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px),repeating-linear-gradient(270deg,var(--system-bg-controls-negative-default, #B83B15),var(--system-bg-controls-negative-default, #B83B15) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-negative-default, #B83B15) 10px)!important}::ng-deep .ng-form-file-input.mrx-input-checked-success .ng-custom-file-input .ngx-file-drop__drop-zone{background-color:var(--system-bg-positive-secondary);background-image:repeating-linear-gradient(0deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px),repeating-linear-gradient(90deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px),repeating-linear-gradient(180deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px),repeating-linear-gradient(270deg,var(--system-bg-controls-positive-default, #108E3A),var(--system-bg-controls-positive-default, #108E3A) 6px,transparent 6px,transparent 10px,var(--system-bg-controls-positive-default, #108E3A) 10px)!important}\n"] }]
293
+ }], ctorParameters: () => [{ type: i1.FileUploadService }], propDecorators: { autoUpload: [{
294
+ type: Input
295
+ }], required: [{
296
+ type: Input
297
+ }], disabled: [{
298
+ type: Input
299
+ }], viewOnly: [{
300
+ type: Input
301
+ }], lightDisabled: [{
302
+ type: Input
303
+ }], bottomFiles: [{
304
+ type: Input
305
+ }], maxSize: [{
306
+ type: Input
307
+ }], maxFiles: [{
308
+ type: Input
309
+ }], minFiles: [{
310
+ type: Input
311
+ }], formData: [{
312
+ type: Input
313
+ }], uploadEndPoint: [{
314
+ type: Input
315
+ }], deleteEndPoint: [{
316
+ type: Input
317
+ }], downloadEndPoint: [{
318
+ type: Input
319
+ }], fileNamePlaceholder: [{
320
+ type: Input
321
+ }], showInputWithError: [{
322
+ type: Input
323
+ }], showDeleteButton: [{
324
+ type: Input
325
+ }], isTooltipValue: [{
326
+ type: Input
327
+ }], isDownloadingFile: [{
328
+ type: Input
329
+ }], isHideListFiles: [{
330
+ type: Input
331
+ }], target: [{
332
+ type: Input
333
+ }], deleteConfirm: [{
334
+ type: Input
335
+ }], innerTemplate: [{
336
+ type: Input
337
+ }], uploadAdditionalData: [{
338
+ type: Input
339
+ }], invalid: [{
340
+ type: Input
341
+ }], invalidMessage: [{
342
+ type: Input
343
+ }], checkInvalid: [{
344
+ type: Input
345
+ }], messageTooManyFiles: [{
346
+ type: Input
347
+ }], messageFileTooBig: [{
348
+ type: Input
349
+ }], messageEmptyFile: [{
350
+ type: Input
351
+ }], messageInvalidFileFormat: [{
352
+ type: Input
353
+ }], placeholder: [{
354
+ type: Input
355
+ }], placeholderFileMaxSize: [{
356
+ type: Input
357
+ }], placeholderFileFormat: [{
358
+ type: Input
359
+ }], initFiles: [{
360
+ type: Input,
361
+ args: ['files']
362
+ }], initAllowedExtensions: [{
363
+ type: Input,
364
+ args: ['allowedExtensions']
365
+ }], filesChanged: [{
366
+ type: Output
367
+ }], checkDroppedFile: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mxlbmd0aCkge1xyXG4gICAgICBPYmplY3Qua2V5cyh0aGlzLnVwbG9hZEFkZGl0aW9uYWxEYXRhKS5mb3JFYWNoKGtleSA9PiB7XHJcbiAgICAgICAgZm9ybURhdGEuYXBwZW5kKGtleSwgdGhpcy51cGxvYWRBZGRpdGlvbmFsRGF0YVtrZXldKTtcclxuICAgICAgfSlcclxuICAgIH1cclxuXHJcbiAgICBpZiAodGhpcy5hdXRvVXBsb2FkKSB7XHJcbiAgICAgIGRhdGEuZXhlY3V0aW9uID0gdGhpcy5maWxlVXBsb2FkU2VydmljZS51cGxvYWQodGhpcy51cGxvYWRFbmRQb2ludCwgZm9ybURhdGEpLnBpcGUoXHJcbiAgICAgICAgY2F0Y2hFcnJvcigoZXJyKSA9PiB7XHJcbiAgICAgICAgICBkYXRhLnVwbG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgICAgcmV0dXJuIEVNUFRZO1xyXG4gICAgICAgIH0pXHJcbiAgICAgIClcclxuICAgICAgICAuc3Vic2NyaWJlKChldmVudDogSHR0cEV2ZW50PFVwbG9hZGVkUmVzdWx0TW9kZWw+KSA9PiB7XHJcbiAgICAgICAgICBzd2l0Y2ggKGV2ZW50LnR5cGUpIHtcclxuICAgICAgICAgICAgY2FzZSBIdHRwRXZlbnRUeXBlLlNlbnQ6XHJcbiAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgSHR0cEV2ZW50VHlwZS5SZXNwb25zZUhlYWRlcjpcclxuICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgY2FzZSBIdHRwRXZlbnRUeXBlLlVwbG9hZFByb2dyZXNzOlxyXG4gICAgICAgICAgICAgIGlmIChldmVudC50b3RhbCkge1xyXG4gICAgICAgICAgICAgICAgZGF0YS5wZXJjZW50YWdlID0gTWF0aC5yb3VuZChldmVudC5sb2FkZWQgLyBldmVudC50b3RhbCAqIDEwMCk7XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlIEh0dHBFdmVudFR5cGUuUmVzcG9uc2U6XHJcbiAgICAgICAgICAgICAgaWYgKGV2ZW50LmJvZHkpIHtcclxuICAgICAgICAgICAgICAgIGRhdGEudXBsb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICBkYXRhLnBlcmNlbnRhZ2UgPSAwO1xyXG4gICAgICAgICAgICAgICAgZGF0YS51dWlkID0gZXZlbnQuYm9keS51dWlkO1xyXG4gICAgICAgICAgICAgICAgZGF0YS5maWxlID0gdW5kZWZpbmVkO1xyXG4gICAgICAgICAgICAgICAgZGF0YS5lcnJvciA9IGV2ZW50LmJvZHkubWVzc2FnZTtcclxuICAgICAgICAgICAgICAgIGlmIChkYXRhLmV4ZWN1dGlvbikge1xyXG4gICAgICAgICAgICAgICAgICBkYXRhLmV4ZWN1dGlvbi51bnN1YnNjcmliZSgpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmZpbGVzLmV2ZXJ5KHMgPT4gIXMudXBsb2FkaW5nKSkge1xyXG4gICAgICAgICAgICAgICAgICBjb25zdCBjb21wbGV0ZWRGaWxlcyA9IHRoaXMuZmlsZXMuZmlsdGVyKHMgPT4gIXMuZXJyb3IpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLmZpbGVzQ2hhbmdlZC5lbWl0KGNvbXBsZXRlZEZpbGVzKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICBkYXRhLnVwbG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICBkYXRhLnV1aWQgPSBkYXRhLnRlbXBVdWlkIHx8ICcnO1xyXG5cclxuICAgICAgaWYgKHRoaXMuZmlsZXMuZXZlcnkocyA9PiAhcy51cGxvYWRpbmcpKSB7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cclxuICAgICAgICAgICAgKm5nSWY9XCIoZmlsZS5lcnJvciAmJiAhZmlsZS51dWlkKSB8fCBjYW5DYW5jZWxVcGxvYWRpbmcoZmlsZSkgJiYgIXZpZXdPbmx5XCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cImNsZWFyKGZpbGUpXCJcclxuICAgICAgICAgID48L2Rpdj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgPC9kaXY+XHJcbiAgICA8L2xpPlxyXG4gIDwvdWw+XHJcbjwvbmctdGVtcGxhdGU+XHJcbiJdfQ==
@@ -1,8 +1,8 @@
1
- export var InputFileTargetTypesEnum;
2
- (function (InputFileTargetTypesEnum) {
3
- InputFileTargetTypesEnum["_self"] = "_self";
4
- InputFileTargetTypesEnum["_blank"] = "_blank";
5
- InputFileTargetTypesEnum["_parent"] = "_parent";
6
- InputFileTargetTypesEnum["_top"] = "_top";
7
- })(InputFileTargetTypesEnum || (InputFileTargetTypesEnum = {}));
1
+ export var InputFileTargetTypesEnum;
2
+ (function (InputFileTargetTypesEnum) {
3
+ InputFileTargetTypesEnum["_self"] = "_self";
4
+ InputFileTargetTypesEnum["_blank"] = "_blank";
5
+ InputFileTargetTypesEnum["_parent"] = "_parent";
6
+ InputFileTargetTypesEnum["_top"] = "_top";
7
+ })(InputFileTargetTypesEnum || (InputFileTargetTypesEnum = {}));
8
8
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtZmlsZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlydGEtdWkvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm0vaW5wdXQtZmlsZS9pbnB1dC1maWxlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksd0JBS1g7QUFMRCxXQUFZLHdCQUF3QjtJQUNsQywyQ0FBaUIsQ0FBQTtJQUNqQiw2Q0FBbUIsQ0FBQTtJQUNuQiwrQ0FBcUIsQ0FBQTtJQUNyQix5Q0FBZSxDQUFBO0FBQ2pCLENBQUMsRUFMVyx3QkFBd0IsS0FBeEIsd0JBQXdCLFFBS25DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gSW5wdXRGaWxlVGFyZ2V0VHlwZXNFbnVtIHtcclxuICAnX3NlbGYnID0gJ19zZWxmJyxcclxuICAnX2JsYW5rJyA9ICdfYmxhbmsnLFxyXG4gICdfcGFyZW50JyA9ICdfcGFyZW50JyxcclxuICAnX3RvcCcgPSAnX3RvcCcsXHJcbn1cclxuXHJcbmV4cG9ydCB0eXBlIElucHV0RmlsZVRhcmdldFR5cGVzID0gJ19zZWxmJyB8ICdfYmxhbmsnIHwgJ19wYXJlbnQnIHwgJ190b3AnXHJcbiJdfQ==
@@ -1,26 +1,26 @@
1
- import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule } from '@angular/forms';
4
- import { NgxFileDropModule } from 'ngx-file-drop';
5
- import { InputFileComponent } from './input-file.component';
6
- import { HttpClientModule } from '@angular/common/http';
7
- import { FileUploadService } from '../../../services/file-upload/file-upload.service';
8
- import { ErrorMessageModule } from '../../error-message/error-message.module';
9
- import { CdkTooltipModule } from '../../cdk-tooltip/cdk-tooltip.module';
10
- import * as i0 from "@angular/core";
11
- export class InputFileModule {
12
- }
13
- InputFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
- InputFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: InputFileModule, declarations: [InputFileComponent], imports: [CommonModule, FormsModule, HttpClientModule, NgxFileDropModule, ErrorMessageModule, CdkTooltipModule], exports: [InputFileComponent] });
15
- InputFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputFileModule, providers: [FileUploadService], imports: [CommonModule, FormsModule, HttpClientModule, NgxFileDropModule, ErrorMessageModule, CdkTooltipModule] });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputFileModule, decorators: [{
17
- type: NgModule,
18
- args: [{
19
- declarations: [InputFileComponent],
20
- imports: [CommonModule, FormsModule, HttpClientModule, NgxFileDropModule, ErrorMessageModule, CdkTooltipModule],
21
- schemas: [CUSTOM_ELEMENTS_SCHEMA],
22
- exports: [InputFileComponent],
23
- providers: [FileUploadService]
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtZmlsZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9teXJ0YS11aS9zcmMvbGliL2NvbXBvbmVudHMvZm9ybS9pbnB1dC1maWxlL2lucHV0LWZpbGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQU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STOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FormsModule } from '@angular/forms';
4
+ import { NgxFileDropModule } from 'ngx-file-drop';
5
+ import { InputFileComponent } from './input-file.component';
6
+ import { HttpClientModule } from '@angular/common/http';
7
+ import { FileUploadService } from '../../../services/file-upload/file-upload.service';
8
+ import { ErrorMessageModule } from '../../error-message/error-message.module';
9
+ import { CdkTooltipModule } from '../../cdk-tooltip/cdk-tooltip.module';
10
+ import * as i0 from "@angular/core";
11
+ export class InputFileModule {
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: InputFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: InputFileModule, declarations: [InputFileComponent], imports: [CommonModule, FormsModule, HttpClientModule, NgxFileDropModule, ErrorMessageModule, CdkTooltipModule], exports: [InputFileComponent] });
14
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: InputFileModule, providers: [FileUploadService], imports: [CommonModule, FormsModule, HttpClientModule, NgxFileDropModule, ErrorMessageModule, CdkTooltipModule] });
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: InputFileModule, decorators: [{
17
+ type: NgModule,
18
+ args: [{
19
+ declarations: [InputFileComponent],
20
+ imports: [CommonModule, FormsModule, HttpClientModule, NgxFileDropModule, ErrorMessageModule, CdkTooltipModule],
21
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
22
+ exports: [InputFileComponent],
23
+ providers: [FileUploadService]
24
+ }]
25
+ }] });
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtZmlsZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiI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