@ptsecurity/mosaic 15.6.0 → 16.0.0

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 (750) hide show
  1. package/_theming.scss +19 -0
  2. package/_visual.scss +2 -0
  3. package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
  4. package/autocomplete/autocomplete.component.d.ts +1 -1
  5. package/button/button.component.d.ts +1 -1
  6. package/button-toggle/button-toggle.component.d.ts +3 -3
  7. package/card/card.component.d.ts +1 -1
  8. package/checkbox/_checkbox-theme.scss +4 -0
  9. package/checkbox/checkbox-config.d.ts +1 -1
  10. package/checkbox/checkbox.d.ts +1 -1
  11. package/code-block/actionbar.component.d.ts +1 -1
  12. package/code-block/code-block.component.d.ts +1 -1
  13. package/core/common-behaviors/color.d.ts +1 -1
  14. package/core/common-behaviors/constructor.d.ts +2 -2
  15. package/core/common-behaviors/disabled.d.ts +1 -1
  16. package/core/common-behaviors/error-state.d.ts +1 -1
  17. package/core/common-behaviors/tabindex.d.ts +1 -1
  18. package/core/datetime/date-formats.d.ts +1 -1
  19. package/core/formatters/index.d.ts +1 -1
  20. package/core/formatters/number/formatter.d.ts +55 -0
  21. package/core/label/label-options.d.ts +1 -1
  22. package/core/locales/en-US.d.ts +13 -2
  23. package/core/locales/es-LA.d.ts +21 -0
  24. package/core/locales/fa-IR.d.ts +22 -0
  25. package/core/locales/locale-service.d.ts +111 -5
  26. package/core/locales/pt-BR.d.ts +21 -0
  27. package/core/locales/ru-RU.d.ts +13 -2
  28. package/core/locales/zh-CN.d.ts +20 -0
  29. package/core/option/action.d.ts +1 -1
  30. package/core/option/optgroup.d.ts +1 -1
  31. package/core/option/option.d.ts +37 -8
  32. package/core/overlay/overlay-position-map.d.ts +7 -1
  33. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +2 -2
  34. package/core/styles/_variables.scss +1 -0
  35. package/core/styles/theming/_theming.scss +1 -0
  36. package/datepicker/calendar-body.component.d.ts +2 -2
  37. package/datepicker/calendar-header.component.d.ts +9 -3
  38. package/datepicker/calendar.component.d.ts +4 -5
  39. package/datepicker/datepicker-input.directive.d.ts +1 -1
  40. package/datepicker/datepicker-toggle.component.d.ts +1 -1
  41. package/datepicker/datepicker.component.d.ts +1 -1
  42. package/datepicker/month-view.component.d.ts +4 -5
  43. package/divider/divider.component.d.ts +1 -1
  44. package/dl/dl.component.d.ts +1 -1
  45. package/dropdown/dropdown-item.component.d.ts +1 -1
  46. package/dropdown/dropdown-trigger.directive.d.ts +1 -1
  47. package/dropdown/dropdown.component.d.ts +1 -1
  48. package/dropdown/dropdown.types.d.ts +3 -3
  49. package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
  50. package/{esm2020 → esm2022}/autocomplete/autocomplete-origin.directive.mjs +4 -4
  51. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +555 -0
  52. package/{esm2020 → esm2022}/autocomplete/autocomplete.component.mjs +26 -26
  53. package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +10 -10
  54. package/esm2022/button/button.component.mjs +148 -0
  55. package/{esm2020 → esm2022}/button/button.module.mjs +13 -13
  56. package/esm2022/button-toggle/button-toggle.component.mjs +381 -0
  57. package/{esm2020 → esm2022}/button-toggle/button-toggle.module.mjs +5 -5
  58. package/esm2022/card/card.component.mjs +80 -0
  59. package/{esm2020 → esm2022}/card/card.module.mjs +9 -9
  60. package/{esm2020 → esm2022}/checkbox/checkbox-module.mjs +5 -5
  61. package/{esm2020 → esm2022}/checkbox/checkbox-required-validator.mjs +4 -4
  62. package/esm2022/checkbox/checkbox.mjs +300 -0
  63. package/{esm2020 → esm2022}/code-block/actionbar.component.mjs +4 -4
  64. package/esm2022/code-block/code-block.component.mjs +157 -0
  65. package/esm2022/code-block/code-block.module.mjs +60 -0
  66. package/esm2022/core/common-behaviors/color.mjs +33 -0
  67. package/{esm2020 → esm2022}/core/common-behaviors/common-module.mjs +5 -5
  68. package/{esm2020 → esm2022}/core/common-behaviors/disabled.mjs +6 -6
  69. package/{esm2020 → esm2022}/core/common-behaviors/tabindex.mjs +6 -6
  70. package/{esm2020 → esm2022}/core/error/error-options.mjs +7 -7
  71. package/{esm2020 → esm2022}/core/formatters/date/formatter.mjs +4 -4
  72. package/{esm2020 → esm2022}/core/formatters/date/formatter.pipe.mjs +40 -40
  73. package/esm2022/core/formatters/index.mjs +86 -0
  74. package/esm2022/core/formatters/number/formatter.mjs +350 -0
  75. package/{esm2020 → esm2022}/core/forms/forms-module.mjs +7 -7
  76. package/{esm2020 → esm2022}/core/forms/forms.directive.mjs +7 -7
  77. package/{esm2020 → esm2022}/core/highlight/highlight.pipe.mjs +4 -4
  78. package/{esm2020 → esm2022}/core/highlight/index.mjs +5 -5
  79. package/{esm2020 → esm2022}/core/line/line.mjs +8 -8
  80. package/esm2022/core/locales/en-US.mjs +21 -0
  81. package/esm2022/core/locales/es-LA.mjs +27 -0
  82. package/esm2022/core/locales/fa-IR.mjs +28 -0
  83. package/{esm2020 → esm2022}/core/locales/locale-service.mjs +7 -7
  84. package/{esm2020 → esm2022}/core/locales/locale-service.module.mjs +7 -7
  85. package/esm2022/core/locales/pt-BR.mjs +27 -0
  86. package/esm2022/core/locales/ru-RU.mjs +21 -0
  87. package/esm2022/core/locales/zh-CN.mjs +26 -0
  88. package/{esm2020 → esm2022}/core/option/action.mjs +9 -9
  89. package/{esm2020 → esm2022}/core/option/optgroup.mjs +4 -4
  90. package/{esm2020 → esm2022}/core/option/option-module.mjs +5 -5
  91. package/esm2022/core/option/option.mjs +298 -0
  92. package/esm2022/core/overlay/overlay-position-map.mjs +251 -0
  93. package/{esm2020 → esm2022}/core/pop-up/pop-up-trigger.mjs +4 -4
  94. package/{esm2020 → esm2022}/core/pop-up/pop-up.mjs +4 -4
  95. package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  96. package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
  97. package/esm2022/core/services/measure-scrollbar.service.mjs +48 -0
  98. package/{esm2020 → esm2022}/core/utils/data-size/data-size.pipe.mjs +8 -8
  99. package/{esm2020 → esm2022}/core/version.mjs +2 -2
  100. package/{esm2020 → esm2022}/datepicker/calendar-body.component.mjs +4 -4
  101. package/esm2022/datepicker/calendar-header.component.mjs +135 -0
  102. package/esm2022/datepicker/calendar.component.mjs +166 -0
  103. package/esm2022/datepicker/datepicker-input.directive.mjs +955 -0
  104. package/{esm2020 → esm2022}/datepicker/datepicker-intl.mjs +4 -4
  105. package/{esm2020 → esm2022}/datepicker/datepicker-module.mjs +38 -38
  106. package/esm2022/datepicker/datepicker-toggle.component.mjs +86 -0
  107. package/esm2022/datepicker/datepicker.component.mjs +393 -0
  108. package/esm2022/datepicker/month-view.component.mjs +149 -0
  109. package/{esm2020 → esm2022}/divider/divider.component.mjs +4 -4
  110. package/{esm2020 → esm2022}/divider/divider.module.mjs +5 -5
  111. package/{esm2020 → esm2022}/dl/dl.component.mjs +10 -10
  112. package/{esm2020 → esm2022}/dl/dl.module.mjs +13 -13
  113. package/{esm2020 → esm2022}/dropdown/dropdown-content.directive.mjs +4 -4
  114. package/{esm2020 → esm2022}/dropdown/dropdown-item.component.mjs +6 -6
  115. package/esm2022/dropdown/dropdown-trigger.directive.mjs +489 -0
  116. package/esm2022/dropdown/dropdown.component.mjs +292 -0
  117. package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +15 -15
  118. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +106 -0
  119. package/{esm2020 → esm2022}/file-upload/file-drop.mjs +4 -4
  120. package/{esm2020 → esm2022}/file-upload/file-upload.module.mjs +25 -25
  121. package/esm2022/file-upload/multiple-file-upload.component.mjs +165 -0
  122. package/esm2022/file-upload/single-file-upload.component.mjs +134 -0
  123. package/{esm2020 → esm2022}/form-field/cleaner.mjs +4 -4
  124. package/esm2022/form-field/form-field.mjs +267 -0
  125. package/{esm2020 → esm2022}/form-field/form-field.module.mjs +23 -23
  126. package/{esm2020 → esm2022}/form-field/hint.mjs +4 -4
  127. package/{esm2020 → esm2022}/form-field/password-hint.mjs +9 -9
  128. package/{esm2020 → esm2022}/form-field/prefix.mjs +4 -4
  129. package/{esm2020 → esm2022}/form-field/stepper.mjs +6 -6
  130. package/{esm2020 → esm2022}/form-field/suffix.mjs +4 -4
  131. package/esm2022/form-field/validate.directive.mjs +158 -0
  132. package/{esm2020 → esm2022}/icon/icon.component.mjs +7 -7
  133. package/{esm2020 → esm2022}/icon/icon.module.mjs +11 -11
  134. package/{esm2020 → esm2022}/input/input-number-validators.mjs +7 -7
  135. package/esm2022/input/input-number.mjs +168 -0
  136. package/esm2022/input/input-password.mjs +343 -0
  137. package/esm2022/input/input.mjs +297 -0
  138. package/{esm2020 → esm2022}/input/input.module.mjs +23 -23
  139. package/esm2022/link/link.component.mjs +122 -0
  140. package/{esm2020 → esm2022}/link/link.module.mjs +7 -7
  141. package/esm2022/list/list-selection.component.mjs +705 -0
  142. package/{esm2020 → esm2022}/list/list.component.mjs +7 -7
  143. package/{esm2020 → esm2022}/list/list.module.mjs +20 -20
  144. package/esm2022/loader-overlay/loader-overlay.component.mjs +103 -0
  145. package/{esm2020 → esm2022}/loader-overlay/loader-overlay.module.mjs +17 -17
  146. package/{esm2020 → esm2022}/markdown/markdown.component.mjs +13 -13
  147. package/{esm2020 → esm2022}/markdown/markdown.module.mjs +5 -5
  148. package/{esm2020 → esm2022}/markdown/markdown.service.mjs +4 -4
  149. package/{esm2020 → esm2022}/modal/css-unit.pipe.mjs +4 -4
  150. package/esm2022/modal/modal-control.service.mjs +85 -0
  151. package/esm2022/modal/modal.component.mjs +520 -0
  152. package/{esm2020 → esm2022}/modal/modal.directive.mjs +13 -13
  153. package/esm2022/modal/modal.module.mjs +75 -0
  154. package/{esm2020 → esm2022}/modal/modal.service.mjs +8 -8
  155. package/esm2022/navbar/navbar-item.component.mjs +606 -0
  156. package/esm2022/navbar/navbar.component.mjs +248 -0
  157. package/{esm2020 → esm2022}/navbar/navbar.module.mjs +37 -37
  158. package/{esm2020 → esm2022}/navbar/vertical-navbar.component.mjs +20 -17
  159. package/esm2022/popover/popover-confirm.component.mjs +108 -0
  160. package/esm2022/popover/popover.component.mjs +266 -0
  161. package/{esm2020 → esm2022}/popover/popover.module.mjs +8 -8
  162. package/{esm2020 → esm2022}/progress-bar/progress-bar.component.mjs +4 -4
  163. package/{esm2020 → esm2022}/progress-bar/progress-bar.module.mjs +7 -7
  164. package/{esm2020 → esm2022}/progress-spinner/progress-spinner.component.mjs +12 -12
  165. package/{esm2020 → esm2022}/progress-spinner/progress-spinner.module.mjs +7 -7
  166. package/esm2022/radio/radio.component.mjs +457 -0
  167. package/{esm2020 → esm2022}/radio/radio.module.mjs +5 -5
  168. package/esm2022/select/select-option.directive.mjs +65 -0
  169. package/esm2022/select/select.component.mjs +1160 -0
  170. package/{esm2020 → esm2022}/select/select.module.mjs +32 -32
  171. package/esm2022/sidebar/sidebar.component.mjs +146 -0
  172. package/{esm2020 → esm2022}/sidebar/sidebar.module.mjs +9 -9
  173. package/esm2022/sidepanel/sidepanel-container.component.mjs +110 -0
  174. package/{esm2020 → esm2022}/sidepanel/sidepanel-directives.mjs +18 -18
  175. package/{esm2020 → esm2022}/sidepanel/sidepanel.module.mjs +32 -32
  176. package/{esm2020 → esm2022}/sidepanel/sidepanel.service.mjs +10 -10
  177. package/esm2022/splitter/splitter.component.mjs +482 -0
  178. package/{esm2020 → esm2022}/splitter/splitter.module.mjs +12 -12
  179. package/{esm2020 → esm2022}/table/table.component.mjs +4 -4
  180. package/{esm2020 → esm2022}/table/table.module.mjs +9 -9
  181. package/esm2022/tabs/paginated-tab-header.mjs +488 -0
  182. package/esm2022/tabs/tab-body.component.mjs +179 -0
  183. package/{esm2020 → esm2022}/tabs/tab-content.directive.mjs +4 -4
  184. package/esm2022/tabs/tab-group.component.mjs +349 -0
  185. package/{esm2020 → esm2022}/tabs/tab-header.component.mjs +4 -4
  186. package/{esm2020 → esm2022}/tabs/tab-label-wrapper.directive.mjs +4 -4
  187. package/{esm2020 → esm2022}/tabs/tab-label.directive.mjs +4 -4
  188. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +111 -0
  189. package/{esm2020 → esm2022}/tabs/tab.component.mjs +43 -34
  190. package/{esm2020 → esm2022}/tabs/tabs.module.mjs +42 -42
  191. package/esm2022/tags/tag-input.mjs +250 -0
  192. package/esm2022/tags/tag-list.component.mjs +718 -0
  193. package/esm2022/tags/tag.component.mjs +381 -0
  194. package/esm2022/tags/tag.module.mjs +56 -0
  195. package/esm2022/textarea/textarea.component.mjs +254 -0
  196. package/{esm2020 → esm2022}/textarea/textarea.module.mjs +5 -5
  197. package/esm2022/timepicker/timepicker.directive.mjs +647 -0
  198. package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +11 -11
  199. package/{esm2020 → esm2022}/timezone/cities-by-filter.pipe.mjs +4 -4
  200. package/esm2022/timezone/timezone-option.component.mjs +48 -0
  201. package/{esm2020 → esm2022}/timezone/timezone-option.directive.mjs +4 -4
  202. package/{esm2020 → esm2022}/timezone/timezone-select.component.mjs +11 -11
  203. package/{esm2020 → esm2022}/timezone/timezone.module.mjs +29 -29
  204. package/{esm2020 → esm2022}/timezone/utc-offset.pipe.mjs +4 -4
  205. package/esm2022/title/title.directive.mjs +107 -0
  206. package/{esm2020 → esm2022}/title/title.module.mjs +5 -5
  207. package/{esm2020 → esm2022}/toast/toast-container.component.mjs +4 -4
  208. package/esm2022/toast/toast.component.mjs +92 -0
  209. package/esm2022/toast/toast.module.mjs +48 -0
  210. package/esm2022/toast/toast.service.mjs +188 -0
  211. package/esm2022/toggle/toggle.component.mjs +156 -0
  212. package/{esm2020 → esm2022}/toggle/toggle.module.mjs +5 -5
  213. package/esm2022/tooltip/tooltip.component.mjs +299 -0
  214. package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +14 -14
  215. package/esm2022/tree/data-source/flat-data-source.mjs +162 -0
  216. package/{esm2020 → esm2022}/tree/node.mjs +4 -4
  217. package/{esm2020 → esm2022}/tree/outlet.mjs +4 -4
  218. package/esm2022/tree/padding.directive.mjs +113 -0
  219. package/esm2022/tree/toggle.mjs +81 -0
  220. package/esm2022/tree/tree-base.mjs +243 -0
  221. package/esm2022/tree/tree-option.component.mjs +303 -0
  222. package/esm2022/tree/tree-selection.component.mjs +558 -0
  223. package/{esm2020 → esm2022}/tree/tree.mjs +4 -4
  224. package/{esm2020 → esm2022}/tree/tree.module.mjs +21 -21
  225. package/esm2022/tree-select/tree-select.component.mjs +936 -0
  226. package/{esm2020 → esm2022}/tree-select/tree-select.module.mjs +17 -17
  227. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-autocomplete.mjs +80 -77
  228. package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  229. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs +47 -47
  230. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  231. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs +25 -25
  232. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs.map +1 -1
  233. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs +17 -17
  234. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs.map +1 -1
  235. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs +39 -39
  236. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  237. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs +34 -34
  238. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs.map +1 -1
  239. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-core.mjs +598 -222
  240. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -0
  241. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-datepicker.mjs +335 -351
  242. package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  243. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs +7 -7
  244. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs.map +1 -1
  245. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs +21 -21
  246. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs.map +1 -1
  247. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs +89 -89
  248. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  249. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs +11 -11
  250. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
  251. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-file-upload.mjs +55 -47
  252. package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -0
  253. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-form-field.mjs +80 -80
  254. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-form-field.mjs.map +1 -1
  255. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-icon.mjs +16 -16
  256. package/fesm2022/ptsecurity-mosaic-icon.mjs.map +1 -0
  257. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs +128 -128
  258. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs.map +1 -1
  259. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs +22 -22
  260. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs.map +1 -1
  261. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs +86 -86
  262. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs.map +1 -1
  263. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +155 -0
  264. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  265. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs +19 -19
  266. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs.map +1 -1
  267. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-modal.mjs +157 -144
  268. package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -0
  269. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-navbar.mjs +184 -176
  270. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -0
  271. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-popover.mjs +37 -37
  272. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-popover.mjs.map +1 -1
  273. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs +9 -9
  274. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  275. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs +18 -18
  276. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  277. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-radio.mjs +78 -78
  278. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-radio.mjs.map +1 -1
  279. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-select.mjs +188 -174
  280. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -0
  281. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs +29 -29
  282. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  283. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs +63 -63
  284. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  285. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-splitter.mjs +55 -55
  286. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-splitter.mjs.map +1 -1
  287. package/fesm2022/ptsecurity-mosaic-table.mjs +45 -0
  288. package/fesm2022/ptsecurity-mosaic-table.mjs.map +1 -0
  289. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tabs.mjs +188 -179
  290. package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -0
  291. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs +131 -131
  292. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs.map +1 -1
  293. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-textarea.mjs +41 -41
  294. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-textarea.mjs.map +1 -1
  295. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs +95 -95
  296. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  297. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs +53 -53
  298. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs.map +1 -1
  299. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-title.mjs +18 -18
  300. package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -0
  301. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs +47 -41
  302. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs.map +1 -1
  303. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs +35 -35
  304. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs.map +1 -1
  305. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs +47 -47
  306. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  307. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree-select.mjs +122 -122
  308. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  309. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree.mjs +202 -198
  310. package/fesm2022/ptsecurity-mosaic-tree.mjs.map +1 -0
  311. package/file-upload/file-upload.d.ts +1 -1
  312. package/file-upload/multiple-file-upload.component.d.ts +5 -4
  313. package/file-upload/single-file-upload.component.d.ts +5 -4
  314. package/form-field/_form-field-theme.scss +4 -0
  315. package/form-field/form-field.d.ts +1 -1
  316. package/form-field/hint.d.ts +1 -1
  317. package/form-field/password-hint.d.ts +1 -1
  318. package/icon/icon.component.d.ts +1 -1
  319. package/input/input-number-validators.d.ts +2 -2
  320. package/input/input-number.d.ts +1 -1
  321. package/input/input-password.d.ts +2 -2
  322. package/input/input.d.ts +1 -1
  323. package/link/link.component.d.ts +1 -1
  324. package/list/list-selection.component.d.ts +2 -2
  325. package/loader-overlay/loader-overlay.component.d.ts +1 -1
  326. package/loader-overlay/loader-overlay.scss +3 -0
  327. package/markdown/markdown.component.d.ts +1 -1
  328. package/modal/modal.component.d.ts +5 -2
  329. package/modal/modal.module.d.ts +2 -1
  330. package/modal/modal.scss +14 -2
  331. package/modal/modal.type.d.ts +3 -3
  332. package/navbar/navbar-item.component.d.ts +3 -3
  333. package/navbar/navbar.component.d.ts +7 -4
  334. package/navbar/vertical-navbar.component.d.ts +5 -3
  335. package/package.json +149 -239
  336. package/popover/popover-confirm.component.d.ts +1 -1
  337. package/popover/popover.component.d.ts +1 -1
  338. package/prebuilt-themes/dark-theme.css +1 -1
  339. package/prebuilt-themes/default-theme.css +1 -1
  340. package/prebuilt-visual/default-visual.css +1 -1
  341. package/progress-bar/progress-bar.component.d.ts +2 -2
  342. package/progress-spinner/progress-spinner.component.d.ts +3 -3
  343. package/radio/_radio-theme.scss +4 -0
  344. package/radio/radio.component.d.ts +2 -2
  345. package/select/select.component.d.ts +12 -9
  346. package/select/select.scss +1 -1
  347. package/sidebar/sidebar.component.d.ts +3 -3
  348. package/sidepanel/sidepanel-directives.d.ts +2 -2
  349. package/splitter/splitter.component.d.ts +3 -3
  350. package/tabs/paginated-tab-header.d.ts +3 -3
  351. package/tabs/tab-body.component.d.ts +3 -3
  352. package/tabs/tab-group.component.d.ts +2 -2
  353. package/tabs/tab-header.component.d.ts +2 -2
  354. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  355. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +1 -1
  356. package/tabs/tab.component.d.ts +1 -1
  357. package/tags/tag-input.d.ts +1 -1
  358. package/tags/tag-list.component.d.ts +1 -1
  359. package/tags/tag.component.d.ts +1 -1
  360. package/textarea/textarea.component.d.ts +1 -1
  361. package/timepicker/timepicker.directive.d.ts +1 -1
  362. package/timezone/timezone-option.component.d.ts +1 -1
  363. package/toast/toast.type.d.ts +1 -1
  364. package/toggle/toggle.component.d.ts +2 -2
  365. package/tooltip/tooltip.component.d.ts +3 -3
  366. package/tree/node.d.ts +1 -1
  367. package/tree/padding.directive.d.ts +1 -1
  368. package/tree/toggle.d.ts +2 -2
  369. package/tree/tree-base.d.ts +1 -1
  370. package/tree/tree-option.component.d.ts +1 -1
  371. package/tree/tree-option.scss +4 -2
  372. package/tree/tree-selection.component.d.ts +1 -1
  373. package/tree-select/tree-select.component.d.ts +1 -1
  374. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +0 -552
  375. package/esm2020/button/button.component.mjs +0 -148
  376. package/esm2020/button-toggle/button-toggle.component.mjs +0 -381
  377. package/esm2020/card/card.component.mjs +0 -80
  378. package/esm2020/checkbox/checkbox.mjs +0 -300
  379. package/esm2020/code-block/code-block.component.mjs +0 -157
  380. package/esm2020/code-block/code-block.module.mjs +0 -60
  381. package/esm2020/core/common-behaviors/color.mjs +0 -33
  382. package/esm2020/core/formatters/index.mjs +0 -78
  383. package/esm2020/core/formatters/number/formatter.mjs +0 -129
  384. package/esm2020/core/locales/en-US.mjs +0 -10
  385. package/esm2020/core/locales/es-LA.mjs +0 -6
  386. package/esm2020/core/locales/fa-IR.mjs +0 -6
  387. package/esm2020/core/locales/pt-BR.mjs +0 -6
  388. package/esm2020/core/locales/ru-RU.mjs +0 -10
  389. package/esm2020/core/locales/zh-CN.mjs +0 -6
  390. package/esm2020/core/option/option.mjs +0 -262
  391. package/esm2020/core/overlay/overlay-position-map.mjs +0 -245
  392. package/esm2020/core/services/measure-scrollbar.service.mjs +0 -48
  393. package/esm2020/datepicker/calendar-header.component.mjs +0 -134
  394. package/esm2020/datepicker/calendar.component.mjs +0 -175
  395. package/esm2020/datepicker/datepicker-input.directive.mjs +0 -954
  396. package/esm2020/datepicker/datepicker-toggle.component.mjs +0 -86
  397. package/esm2020/datepicker/datepicker.component.mjs +0 -393
  398. package/esm2020/datepicker/month-view.component.mjs +0 -158
  399. package/esm2020/dropdown/dropdown-trigger.directive.mjs +0 -489
  400. package/esm2020/dropdown/dropdown.component.mjs +0 -292
  401. package/esm2020/ellipsis-center/ellipsis-center.directive.mjs +0 -106
  402. package/esm2020/file-upload/multiple-file-upload.component.mjs +0 -161
  403. package/esm2020/file-upload/single-file-upload.component.mjs +0 -130
  404. package/esm2020/form-field/form-field.mjs +0 -267
  405. package/esm2020/form-field/validate.directive.mjs +0 -158
  406. package/esm2020/input/input-number.mjs +0 -168
  407. package/esm2020/input/input-password.mjs +0 -343
  408. package/esm2020/input/input.mjs +0 -297
  409. package/esm2020/link/link.component.mjs +0 -122
  410. package/esm2020/list/list-selection.component.mjs +0 -705
  411. package/esm2020/loader-overlay/loader-overlay.component.mjs +0 -103
  412. package/esm2020/modal/modal-control.service.mjs +0 -85
  413. package/esm2020/modal/modal.component.mjs +0 -510
  414. package/esm2020/modal/modal.module.mjs +0 -71
  415. package/esm2020/navbar/navbar-item.component.mjs +0 -606
  416. package/esm2020/navbar/navbar.component.mjs +0 -239
  417. package/esm2020/popover/popover-confirm.component.mjs +0 -108
  418. package/esm2020/popover/popover.component.mjs +0 -266
  419. package/esm2020/radio/radio.component.mjs +0 -457
  420. package/esm2020/select/select-option.directive.mjs +0 -65
  421. package/esm2020/select/select.component.mjs +0 -1146
  422. package/esm2020/sidebar/sidebar.component.mjs +0 -146
  423. package/esm2020/sidepanel/sidepanel-container.component.mjs +0 -110
  424. package/esm2020/splitter/splitter.component.mjs +0 -482
  425. package/esm2020/tabs/paginated-tab-header.mjs +0 -488
  426. package/esm2020/tabs/tab-body.component.mjs +0 -179
  427. package/esm2020/tabs/tab-group.component.mjs +0 -349
  428. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -111
  429. package/esm2020/tags/tag-input.mjs +0 -250
  430. package/esm2020/tags/tag-list.component.mjs +0 -718
  431. package/esm2020/tags/tag.component.mjs +0 -381
  432. package/esm2020/tags/tag.module.mjs +0 -56
  433. package/esm2020/textarea/textarea.component.mjs +0 -254
  434. package/esm2020/timepicker/timepicker.directive.mjs +0 -647
  435. package/esm2020/timezone/timezone-option.component.mjs +0 -48
  436. package/esm2020/title/title.directive.mjs +0 -107
  437. package/esm2020/toast/toast.component.mjs +0 -92
  438. package/esm2020/toast/toast.module.mjs +0 -42
  439. package/esm2020/toast/toast.service.mjs +0 -188
  440. package/esm2020/toggle/toggle.component.mjs +0 -156
  441. package/esm2020/tooltip/tooltip.component.mjs +0 -299
  442. package/esm2020/tree/data-source/flat-data-source.mjs +0 -162
  443. package/esm2020/tree/padding.directive.mjs +0 -113
  444. package/esm2020/tree/toggle.mjs +0 -81
  445. package/esm2020/tree/tree-base.mjs +0 -243
  446. package/esm2020/tree/tree-option.component.mjs +0 -300
  447. package/esm2020/tree/tree-selection.component.mjs +0 -557
  448. package/esm2020/tree-select/tree-select.component.mjs +0 -936
  449. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +0 -753
  450. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
  451. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +0 -405
  452. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +0 -1
  453. package/fesm2015/ptsecurity-mosaic-button.mjs +0 -193
  454. package/fesm2015/ptsecurity-mosaic-button.mjs.map +0 -1
  455. package/fesm2015/ptsecurity-mosaic-card.mjs +0 -111
  456. package/fesm2015/ptsecurity-mosaic-card.mjs.map +0 -1
  457. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +0 -351
  458. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +0 -1
  459. package/fesm2015/ptsecurity-mosaic-code-block.mjs +0 -280
  460. package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +0 -1
  461. package/fesm2015/ptsecurity-mosaic-core.mjs +0 -2314
  462. package/fesm2015/ptsecurity-mosaic-core.mjs.map +0 -1
  463. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +0 -2112
  464. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +0 -1
  465. package/fesm2015/ptsecurity-mosaic-divider.mjs +0 -61
  466. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +0 -1
  467. package/fesm2015/ptsecurity-mosaic-dl.mjs +0 -126
  468. package/fesm2015/ptsecurity-mosaic-dl.mjs.map +0 -1
  469. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +0 -1115
  470. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +0 -1
  471. package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs +0 -113
  472. package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs.map +0 -1
  473. package/fesm2015/ptsecurity-mosaic-file-upload.mjs +0 -392
  474. package/fesm2015/ptsecurity-mosaic-file-upload.mjs.map +0 -1
  475. package/fesm2015/ptsecurity-mosaic-form-field.mjs +0 -772
  476. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +0 -1
  477. package/fesm2015/ptsecurity-mosaic-icon.mjs +0 -86
  478. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +0 -1
  479. package/fesm2015/ptsecurity-mosaic-input.mjs +0 -951
  480. package/fesm2015/ptsecurity-mosaic-input.mjs.map +0 -1
  481. package/fesm2015/ptsecurity-mosaic-link.mjs +0 -150
  482. package/fesm2015/ptsecurity-mosaic-link.mjs.map +0 -1
  483. package/fesm2015/ptsecurity-mosaic-list.mjs +0 -807
  484. package/fesm2015/ptsecurity-mosaic-list.mjs.map +0 -1
  485. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +0 -157
  486. package/fesm2015/ptsecurity-mosaic-markdown.mjs +0 -128
  487. package/fesm2015/ptsecurity-mosaic-markdown.mjs.map +0 -1
  488. package/fesm2015/ptsecurity-mosaic-modal.mjs +0 -875
  489. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +0 -1
  490. package/fesm2015/ptsecurity-mosaic-navbar.mjs +0 -1055
  491. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +0 -1
  492. package/fesm2015/ptsecurity-mosaic-popover.mjs +0 -411
  493. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +0 -74
  494. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +0 -1
  495. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +0 -93
  496. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +0 -1
  497. package/fesm2015/ptsecurity-mosaic-radio.mjs +0 -481
  498. package/fesm2015/ptsecurity-mosaic-select.mjs +0 -1286
  499. package/fesm2015/ptsecurity-mosaic-select.mjs.map +0 -1
  500. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +0 -202
  501. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +0 -1
  502. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +0 -622
  503. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +0 -1
  504. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +0 -1
  505. package/fesm2015/ptsecurity-mosaic-table.mjs +0 -45
  506. package/fesm2015/ptsecurity-mosaic-table.mjs.map +0 -1
  507. package/fesm2015/ptsecurity-mosaic-tabs.mjs +0 -1523
  508. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +0 -1
  509. package/fesm2015/ptsecurity-mosaic-tags.mjs +0 -1397
  510. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +0 -1
  511. package/fesm2015/ptsecurity-mosaic-textarea.mjs +0 -280
  512. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +0 -708
  513. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +0 -1
  514. package/fesm2015/ptsecurity-mosaic-timezone.mjs +0 -316
  515. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +0 -1
  516. package/fesm2015/ptsecurity-mosaic-title.mjs +0 -128
  517. package/fesm2015/ptsecurity-mosaic-title.mjs.map +0 -1
  518. package/fesm2015/ptsecurity-mosaic-toast.mjs +0 -379
  519. package/fesm2015/ptsecurity-mosaic-toast.mjs.map +0 -1
  520. package/fesm2015/ptsecurity-mosaic-toggle.mjs +0 -178
  521. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +0 -1
  522. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +0 -369
  523. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +0 -1
  524. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +0 -983
  525. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +0 -1
  526. package/fesm2015/ptsecurity-mosaic-tree.mjs +0 -1816
  527. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +0 -1
  528. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
  529. package/fesm2020/ptsecurity-mosaic-core.mjs.map +0 -1
  530. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +0 -1
  531. package/fesm2020/ptsecurity-mosaic-file-upload.mjs.map +0 -1
  532. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +0 -1
  533. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +0 -155
  534. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +0 -1
  535. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +0 -1
  536. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +0 -1
  537. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +0 -1
  538. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +0 -1
  539. package/fesm2020/ptsecurity-mosaic-select.mjs.map +0 -1
  540. package/fesm2020/ptsecurity-mosaic-splitter.mjs +0 -524
  541. package/fesm2020/ptsecurity-mosaic-table.mjs +0 -45
  542. package/fesm2020/ptsecurity-mosaic-table.mjs.map +0 -1
  543. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +0 -1
  544. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +0 -1
  545. package/fesm2020/ptsecurity-mosaic-title.mjs.map +0 -1
  546. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +0 -1
  547. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +0 -1
  548. package/fesm2020/ptsecurity-mosaic.mjs +0 -4
  549. package/fesm2020/ptsecurity-mosaic.mjs.map +0 -1
  550. /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
  551. /package/{esm2020 → esm2022}/autocomplete/ptsecurity-mosaic-autocomplete.mjs +0 -0
  552. /package/{esm2020 → esm2022}/autocomplete/public-api.mjs +0 -0
  553. /package/{esm2020 → esm2022}/button/index.mjs +0 -0
  554. /package/{esm2020 → esm2022}/button/ptsecurity-mosaic-button.mjs +0 -0
  555. /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
  556. /package/{esm2020 → esm2022}/button-toggle/index.mjs +0 -0
  557. /package/{esm2020 → esm2022}/button-toggle/ptsecurity-mosaic-button-toggle.mjs +0 -0
  558. /package/{esm2020 → esm2022}/button-toggle/public-api.mjs +0 -0
  559. /package/{esm2020 → esm2022}/card/index.mjs +0 -0
  560. /package/{esm2020 → esm2022}/card/ptsecurity-mosaic-card.mjs +0 -0
  561. /package/{esm2020 → esm2022}/card/public-api.mjs +0 -0
  562. /package/{esm2020 → esm2022}/checkbox/checkbox-config.mjs +0 -0
  563. /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
  564. /package/{esm2020 → esm2022}/checkbox/ptsecurity-mosaic-checkbox.mjs +0 -0
  565. /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
  566. /package/{esm2020 → esm2022}/code-block/code-block.types.mjs +0 -0
  567. /package/{esm2020 → esm2022}/code-block/index.mjs +0 -0
  568. /package/{esm2020 → esm2022}/code-block/ptsecurity-mosaic-code-block.mjs +0 -0
  569. /package/{esm2020 → esm2022}/code-block/public-api.mjs +0 -0
  570. /package/{esm2020 → esm2022}/core/animation/animation.mjs +0 -0
  571. /package/{esm2020 → esm2022}/core/animation/fade-animations.mjs +0 -0
  572. /package/{esm2020 → esm2022}/core/animation/index.mjs +0 -0
  573. /package/{esm2020 → esm2022}/core/animation/select-animations.mjs +0 -0
  574. /package/{esm2020 → esm2022}/core/common-behaviors/constructor.mjs +0 -0
  575. /package/{esm2020 → esm2022}/core/common-behaviors/error-state.mjs +0 -0
  576. /package/{esm2020 → esm2022}/core/common-behaviors/index.mjs +0 -0
  577. /package/{esm2020 → esm2022}/core/datetime/date-adapter.mjs +0 -0
  578. /package/{esm2020 → esm2022}/core/datetime/date-formats.mjs +0 -0
  579. /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
  580. /package/{esm2020 → esm2022}/core/forms/index.mjs +0 -0
  581. /package/{esm2020 → esm2022}/core/index.mjs +0 -0
  582. /package/{esm2020 → esm2022}/core/label/label-options.mjs +0 -0
  583. /package/{esm2020 → esm2022}/core/locales/index.mjs +0 -0
  584. /package/{esm2020 → esm2022}/core/option/index.mjs +0 -0
  585. /package/{esm2020 → esm2022}/core/pop-up/constants.mjs +0 -0
  586. /package/{esm2020 → esm2022}/core/pop-up/index.mjs +0 -0
  587. /package/{esm2020 → esm2022}/core/ptsecurity-mosaic-core.mjs +0 -0
  588. /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
  589. /package/{esm2020 → esm2022}/core/select/constants.mjs +0 -0
  590. /package/{esm2020 → esm2022}/core/select/errors.mjs +0 -0
  591. /package/{esm2020 → esm2022}/core/select/events.mjs +0 -0
  592. /package/{esm2020 → esm2022}/core/select/index.mjs +0 -0
  593. /package/{esm2020 → esm2022}/core/selection/constants.mjs +0 -0
  594. /package/{esm2020 → esm2022}/core/selection/index.mjs +0 -0
  595. /package/{esm2020 → esm2022}/core/title/index.mjs +0 -0
  596. /package/{esm2020 → esm2022}/core/title/title-text-ref.mjs +0 -0
  597. /package/{esm2020 → esm2022}/core/utils/data-size/config.mjs +0 -0
  598. /package/{esm2020 → esm2022}/core/utils/data-size/index.mjs +0 -0
  599. /package/{esm2020 → esm2022}/core/utils/data-size/size.mjs +0 -0
  600. /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
  601. /package/{esm2020 → esm2022}/core/utils/public-api.mjs +0 -0
  602. /package/{esm2020 → esm2022}/core/utils/utils.mjs +0 -0
  603. /package/{esm2020 → esm2022}/core/validation/index.mjs +0 -0
  604. /package/{esm2020 → esm2022}/core/validation/validation.mjs +0 -0
  605. /package/{esm2020 → esm2022}/datepicker/datepicker-animations.mjs +0 -0
  606. /package/{esm2020 → esm2022}/datepicker/datepicker-errors.mjs +0 -0
  607. /package/{esm2020 → esm2022}/datepicker/index.mjs +0 -0
  608. /package/{esm2020 → esm2022}/datepicker/ptsecurity-mosaic-datepicker.mjs +0 -0
  609. /package/{esm2020 → esm2022}/datepicker/public-api.mjs +0 -0
  610. /package/{esm2020 → esm2022}/divider/index.mjs +0 -0
  611. /package/{esm2020 → esm2022}/divider/ptsecurity-mosaic-divider.mjs +0 -0
  612. /package/{esm2020 → esm2022}/divider/public-api.mjs +0 -0
  613. /package/{esm2020 → esm2022}/dl/index.mjs +0 -0
  614. /package/{esm2020 → esm2022}/dl/ptsecurity-mosaic-dl.mjs +0 -0
  615. /package/{esm2020 → esm2022}/dl/public-api.mjs +0 -0
  616. /package/{esm2020 → esm2022}/dropdown/dropdown-animations.mjs +0 -0
  617. /package/{esm2020 → esm2022}/dropdown/dropdown-errors.mjs +0 -0
  618. /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
  619. /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
  620. /package/{esm2020 → esm2022}/dropdown/ptsecurity-mosaic-dropdown.mjs +0 -0
  621. /package/{esm2020 → esm2022}/dropdown/public-api.mjs +0 -0
  622. /package/{esm2020 → esm2022}/ellipsis-center/index.mjs +0 -0
  623. /package/{esm2020 → esm2022}/ellipsis-center/ptsecurity-mosaic-ellipsis-center.mjs +0 -0
  624. /package/{esm2020 → esm2022}/ellipsis-center/public-api.mjs +0 -0
  625. /package/{esm2020 → esm2022}/file-upload/file-upload.mjs +0 -0
  626. /package/{esm2020 → esm2022}/file-upload/index.mjs +0 -0
  627. /package/{esm2020 → esm2022}/file-upload/ptsecurity-mosaic-file-upload.mjs +0 -0
  628. /package/{esm2020 → esm2022}/file-upload/public-api.mjs +0 -0
  629. /package/{esm2020 → esm2022}/form-field/form-field-control.mjs +0 -0
  630. /package/{esm2020 → esm2022}/form-field/form-field-errors.mjs +0 -0
  631. /package/{esm2020 → esm2022}/form-field/index.mjs +0 -0
  632. /package/{esm2020 → esm2022}/form-field/ptsecurity-mosaic-form-field.mjs +0 -0
  633. /package/{esm2020 → esm2022}/form-field/public-api.mjs +0 -0
  634. /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
  635. /package/{esm2020 → esm2022}/icon/ptsecurity-mosaic-icon.mjs +0 -0
  636. /package/{esm2020 → esm2022}/icon/public-api.mjs +0 -0
  637. /package/{esm2020 → esm2022}/index.mjs +0 -0
  638. /package/{esm2020 → esm2022}/input/index.mjs +0 -0
  639. /package/{esm2020 → esm2022}/input/input-errors.mjs +0 -0
  640. /package/{esm2020 → esm2022}/input/input-value-accessor.mjs +0 -0
  641. /package/{esm2020 → esm2022}/input/ptsecurity-mosaic-input.mjs +0 -0
  642. /package/{esm2020 → esm2022}/input/public-api.mjs +0 -0
  643. /package/{esm2020 → esm2022}/link/index.mjs +0 -0
  644. /package/{esm2020 → esm2022}/link/ptsecurity-mosaic-link.mjs +0 -0
  645. /package/{esm2020 → esm2022}/link/public-api.mjs +0 -0
  646. /package/{esm2020 → esm2022}/list/index.mjs +0 -0
  647. /package/{esm2020 → esm2022}/list/ptsecurity-mosaic-list.mjs +0 -0
  648. /package/{esm2020 → esm2022}/list/public-api.mjs +0 -0
  649. /package/{esm2020 → esm2022}/loader-overlay/index.mjs +0 -0
  650. /package/{esm2020 → esm2022}/loader-overlay/ptsecurity-mosaic-loader-overlay.mjs +0 -0
  651. /package/{esm2020 → esm2022}/loader-overlay/public-api.mjs +0 -0
  652. /package/{esm2020 → esm2022}/markdown/index.mjs +0 -0
  653. /package/{esm2020 → esm2022}/markdown/markdown.values.mjs +0 -0
  654. /package/{esm2020 → esm2022}/markdown/ptsecurity-mosaic-markdown.mjs +0 -0
  655. /package/{esm2020 → esm2022}/markdown/public-api.mjs +0 -0
  656. /package/{esm2020 → esm2022}/modal/index.mjs +0 -0
  657. /package/{esm2020 → esm2022}/modal/modal-ref.class.mjs +0 -0
  658. /package/{esm2020 → esm2022}/modal/modal-util.mjs +0 -0
  659. /package/{esm2020 → esm2022}/modal/modal.type.mjs +0 -0
  660. /package/{esm2020 → esm2022}/modal/ptsecurity-mosaic-modal.mjs +0 -0
  661. /package/{esm2020 → esm2022}/modal/public-api.mjs +0 -0
  662. /package/{esm2020 → esm2022}/navbar/index.mjs +0 -0
  663. /package/{esm2020 → esm2022}/navbar/ptsecurity-mosaic-navbar.mjs +0 -0
  664. /package/{esm2020 → esm2022}/navbar/public-api.mjs +0 -0
  665. /package/{esm2020 → esm2022}/navbar/vertical-navbar.animation.mjs +0 -0
  666. /package/{esm2020 → esm2022}/popover/index.mjs +0 -0
  667. /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
  668. /package/{esm2020 → esm2022}/popover/ptsecurity-mosaic-popover.mjs +0 -0
  669. /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
  670. /package/{esm2020 → esm2022}/progress-bar/index.mjs +0 -0
  671. /package/{esm2020 → esm2022}/progress-bar/ptsecurity-mosaic-progress-bar.mjs +0 -0
  672. /package/{esm2020 → esm2022}/progress-bar/public-api.mjs +0 -0
  673. /package/{esm2020 → esm2022}/progress-spinner/index.mjs +0 -0
  674. /package/{esm2020 → esm2022}/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs +0 -0
  675. /package/{esm2020 → esm2022}/progress-spinner/public-api.mjs +0 -0
  676. /package/{esm2020 → esm2022}/ptsecurity-mosaic.mjs +0 -0
  677. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  678. /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
  679. /package/{esm2020 → esm2022}/radio/ptsecurity-mosaic-radio.mjs +0 -0
  680. /package/{esm2020 → esm2022}/radio/public-api.mjs +0 -0
  681. /package/{esm2020 → esm2022}/select/index.mjs +0 -0
  682. /package/{esm2020 → esm2022}/select/ptsecurity-mosaic-select.mjs +0 -0
  683. /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
  684. /package/{esm2020 → esm2022}/sidebar/index.mjs +0 -0
  685. /package/{esm2020 → esm2022}/sidebar/ptsecurity-mosaic-sidebar.mjs +0 -0
  686. /package/{esm2020 → esm2022}/sidebar/public-api.mjs +0 -0
  687. /package/{esm2020 → esm2022}/sidebar/sidebar-animations.mjs +0 -0
  688. /package/{esm2020 → esm2022}/sidepanel/index.mjs +0 -0
  689. /package/{esm2020 → esm2022}/sidepanel/ptsecurity-mosaic-sidepanel.mjs +0 -0
  690. /package/{esm2020 → esm2022}/sidepanel/public-api.mjs +0 -0
  691. /package/{esm2020 → esm2022}/sidepanel/sidepanel-animations.mjs +0 -0
  692. /package/{esm2020 → esm2022}/sidepanel/sidepanel-config.mjs +0 -0
  693. /package/{esm2020 → esm2022}/sidepanel/sidepanel-ref.mjs +0 -0
  694. /package/{esm2020 → esm2022}/splitter/index.mjs +0 -0
  695. /package/{esm2020 → esm2022}/splitter/ptsecurity-mosaic-splitter.mjs +0 -0
  696. /package/{esm2020 → esm2022}/splitter/public-api.mjs +0 -0
  697. /package/{esm2020 → esm2022}/table/index.mjs +0 -0
  698. /package/{esm2020 → esm2022}/table/ptsecurity-mosaic-table.mjs +0 -0
  699. /package/{esm2020 → esm2022}/table/public-api.mjs +0 -0
  700. /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
  701. /package/{esm2020 → esm2022}/tabs/ptsecurity-mosaic-tabs.mjs +0 -0
  702. /package/{esm2020 → esm2022}/tabs/public-api.mjs +0 -0
  703. /package/{esm2020 → esm2022}/tabs/tab-nav-bar/index.mjs +0 -0
  704. /package/{esm2020 → esm2022}/tabs/tabs-animations.mjs +0 -0
  705. /package/{esm2020 → esm2022}/tags/index.mjs +0 -0
  706. /package/{esm2020 → esm2022}/tags/ptsecurity-mosaic-tags.mjs +0 -0
  707. /package/{esm2020 → esm2022}/tags/public-api.mjs +0 -0
  708. /package/{esm2020 → esm2022}/tags/tag-default-options.mjs +0 -0
  709. /package/{esm2020 → esm2022}/tags/tag-text-control.mjs +0 -0
  710. /package/{esm2020 → esm2022}/textarea/index.mjs +0 -0
  711. /package/{esm2020 → esm2022}/textarea/ptsecurity-mosaic-textarea.mjs +0 -0
  712. /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
  713. /package/{esm2020 → esm2022}/timepicker/index.mjs +0 -0
  714. /package/{esm2020 → esm2022}/timepicker/ptsecurity-mosaic-timepicker.mjs +0 -0
  715. /package/{esm2020 → esm2022}/timepicker/public-api.mjs +0 -0
  716. /package/{esm2020 → esm2022}/timepicker/timepicker.constants.mjs +0 -0
  717. /package/{esm2020 → esm2022}/timezone/index.mjs +0 -0
  718. /package/{esm2020 → esm2022}/timezone/ptsecurity-mosaic-timezone.mjs +0 -0
  719. /package/{esm2020 → esm2022}/timezone/public-api.mjs +0 -0
  720. /package/{esm2020 → esm2022}/timezone/timezone.models.mjs +0 -0
  721. /package/{esm2020 → esm2022}/timezone/timezone.utils.mjs +0 -0
  722. /package/{esm2020 → esm2022}/title/index.mjs +0 -0
  723. /package/{esm2020 → esm2022}/title/ptsecurity-mosaic-title.mjs +0 -0
  724. /package/{esm2020 → esm2022}/title/public-api.mjs +0 -0
  725. /package/{esm2020 → esm2022}/toast/index.mjs +0 -0
  726. /package/{esm2020 → esm2022}/toast/ptsecurity-mosaic-toast.mjs +0 -0
  727. /package/{esm2020 → esm2022}/toast/public-api.mjs +0 -0
  728. /package/{esm2020 → esm2022}/toast/toast-animations.mjs +0 -0
  729. /package/{esm2020 → esm2022}/toast/toast.type.mjs +0 -0
  730. /package/{esm2020 → esm2022}/toggle/index.mjs +0 -0
  731. /package/{esm2020 → esm2022}/toggle/ptsecurity-mosaic-toggle.mjs +0 -0
  732. /package/{esm2020 → esm2022}/toggle/public-api.mjs +0 -0
  733. /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
  734. /package/{esm2020 → esm2022}/tooltip/ptsecurity-mosaic-tooltip.mjs +0 -0
  735. /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
  736. /package/{esm2020 → esm2022}/tooltip/tooltip.animations.mjs +0 -0
  737. /package/{esm2020 → esm2022}/tree/control/base-tree-control.mjs +0 -0
  738. /package/{esm2020 → esm2022}/tree/control/flat-tree-control.mjs +0 -0
  739. /package/{esm2020 → esm2022}/tree/control/nested-tree-control.mjs +0 -0
  740. /package/{esm2020 → esm2022}/tree/control/tree-control.mjs +0 -0
  741. /package/{esm2020 → esm2022}/tree/data-source/nested-data-source.mjs +0 -0
  742. /package/{esm2020 → esm2022}/tree/index.mjs +0 -0
  743. /package/{esm2020 → esm2022}/tree/ptsecurity-mosaic-tree.mjs +0 -0
  744. /package/{esm2020 → esm2022}/tree/public-api.mjs +0 -0
  745. /package/{esm2020 → esm2022}/tree/tree-errors.mjs +0 -0
  746. /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
  747. /package/{esm2020 → esm2022}/tree-select/ptsecurity-mosaic-tree-select.mjs +0 -0
  748. /package/{esm2020 → esm2022}/tree-select/public-api.mjs +0 -0
  749. /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs +0 -0
  750. /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs.map +0 -0
@@ -1,2314 +0,0 @@
1
- import { trigger, state, style, transition, animate, group } from '@angular/animations';
2
- import * as i2$1 from '@angular/cdk/bidi';
3
- import { BidiModule } from '@angular/cdk/bidi';
4
- import * as i0 from '@angular/core';
5
- import { InjectionToken, isDevMode, NgModule, Optional, Inject, inject, LOCALE_ID, Injectable, Pipe, Directive, ContentChildren, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, EventEmitter, ViewChild, Output, ContentChild, TemplateRef, Version } from '@angular/core';
6
- import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
7
- import * as i1 from '@mosaic-design/date-adapter';
8
- import { DateAdapter as DateAdapter$1 } from '@mosaic-design/date-adapter';
9
- import { DateFormatter as DateFormatter$1 } from '@mosaic-design/date-formatter';
10
- import { BehaviorSubject, Subject } from 'rxjs';
11
- import * as i2 from '@angular/common';
12
- import { CommonModule, DOCUMENT } from '@angular/common';
13
- import { ENTER, SPACE, TAB, ESCAPE } from '@ptsecurity/cdk/keycodes';
14
- import { takeUntil, distinctUntilChanged, delay } from 'rxjs/operators';
15
- import * as i1$1 from '@angular/cdk/a11y';
16
- import { ComponentPortal } from '@angular/cdk/portal';
17
- import * as i1$2 from '@angular/cdk/overlay';
18
- import { Overlay } from '@angular/cdk/overlay';
19
-
20
- const fadeAnimation = trigger('fadeAnimation', [
21
- state('void', style({ opacity: 0 })),
22
- state('true', style({ opacity: 1 })),
23
- state('false', style({ opacity: 0 })),
24
- transition('* => true', animate('150ms cubic-bezier(0.0, 0.0, 0.2, 1)')),
25
- transition('* => void', animate('150ms cubic-bezier(0.4, 0.0, 1, 1)'))
26
- ]);
27
-
28
- var AnimationCurves;
29
- (function (AnimationCurves) {
30
- AnimationCurves["StandardCurve"] = "cubic-bezier(0.4,0.0,0.2,1)";
31
- AnimationCurves["DecelerationCurve"] = "cubic-bezier(0.0,0.0,0.2,1)";
32
- AnimationCurves["AccelerationCurve"] = "cubic-bezier(0.4,0.0,1,1)";
33
- AnimationCurves["SharpCurve"] = "cubic-bezier(0.4,0.0,0.6,1)";
34
- })(AnimationCurves || (AnimationCurves = {}));
35
-
36
- /**
37
- * The following are all the animations for the mc-select component, with each
38
- * const containing the metadata for one animation.
39
- *
40
- */
41
- const mcSelectAnimations = {
42
- /**
43
- * This animation transforms the select's overlay panel on and off the page.
44
- *
45
- * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it
46
- * up to 100% on the Y axis, fades in its border, and translates slightly up and to the
47
- * side to ensure the option text correctly overlaps the trigger text.
48
- *
49
- * When the panel is removed from the DOM, it simply fades out linearly.
50
- */
51
- transformPanel: trigger('transformPanel', [
52
- state('void', style({
53
- transform: 'scaleY(0)',
54
- minWidth: '100%',
55
- opacity: 0
56
- })),
57
- transition('void => *', group([
58
- animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
59
- ])),
60
- transition('* => void', [
61
- animate('250ms 100ms linear', style({ opacity: 0 }))
62
- ])
63
- ]),
64
- /**
65
- * This animation fades in the background color and text content of the
66
- * select's options. It is time delayed to occur 100ms after the overlay
67
- * panel has transformed in.
68
- */
69
- fadeInContent: trigger('fadeInContent', [
70
- state('showing', style({ opacity: 1 })),
71
- transition('void => showing', [
72
- style({ opacity: 0 }),
73
- animate('150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')
74
- ])
75
- ])
76
- };
77
- const transformPanel = mcSelectAnimations.transformPanel;
78
- const fadeInContent = mcSelectAnimations.fadeInContent;
79
-
80
- // Injection token that configures whether the Mosaic sanity checks are enabled.
81
- const MC_SANITY_CHECKS = new InjectionToken('mc-sanity-checks', {
82
- providedIn: 'root',
83
- factory: mcSanityChecksFactory
84
- });
85
- function mcSanityChecksFactory() {
86
- return true;
87
- }
88
- /**
89
- * Module that captures anything that should be loaded and/or run for *all* Mosaic
90
- * components. This includes Bidi, etc.
91
- *
92
- * This module should be imported to each top-level component module (e.g., McTabsModule).
93
- */
94
- class McCommonModule {
95
- constructor(_sanityChecksEnabled) {
96
- this._sanityChecksEnabled = _sanityChecksEnabled;
97
- // Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype).
98
- this.hasDoneGlobalChecks = false;
99
- // Reference to the global `document` object.
100
- // tslint:disable-next-line: orthodox-getter-and-setter
101
- this._document = typeof document === 'object' && document ? document : null;
102
- // Reference to the global 'window' object.
103
- // tslint:disable-next-line: orthodox-getter-and-setter
104
- this._window = typeof window === 'object' && window ? window : null;
105
- if (this.areChecksEnabled() && !this.hasDoneGlobalChecks) {
106
- this.checkDoctypeIsDefined();
107
- this.checkThemeIsPresent();
108
- this.hasDoneGlobalChecks = true;
109
- }
110
- }
111
- // Whether any sanity checks are enabled
112
- areChecksEnabled() {
113
- return this._sanityChecksEnabled && isDevMode() && !this.isTestEnv();
114
- }
115
- // Whether the code is running in tests.
116
- isTestEnv() {
117
- // tslint:disable-next-line
118
- return this._window && (this._window['__karma__'] || this._window['jasmine']);
119
- }
120
- checkDoctypeIsDefined() {
121
- if (this._document && !this._document.doctype) {
122
- console.warn('Current document does not have a doctype. This may cause ' +
123
- 'some Mosaic components not to behave as expected.');
124
- }
125
- }
126
- checkThemeIsPresent() {
127
- if (this._document && typeof getComputedStyle === 'function') {
128
- const testElement = this._document.createElement('div');
129
- testElement.classList.add('mc-theme-loaded-marker');
130
- this._document.body.appendChild(testElement);
131
- const computedStyle = getComputedStyle(testElement);
132
- // In some situations, the computed style of the test element can be null. For example in
133
- // Firefox, the computed style is null if an application is running inside of a hidden iframe.
134
- // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
135
- if (computedStyle && computedStyle.display !== 'none') {
136
- console.warn('Could not find Mosaic core theme. Most Mosaic ' +
137
- 'components may not work as expected. For more info refer ' +
138
- 'to the theming guide: link there');
139
- }
140
- this._document.body.removeChild(testElement);
141
- }
142
- }
143
- }
144
- /** @nocollapse */ McCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McCommonModule, deps: [{ token: MC_SANITY_CHECKS, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
145
- /** @nocollapse */ McCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McCommonModule, imports: [BidiModule], exports: [BidiModule] });
146
- /** @nocollapse */ McCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McCommonModule, imports: [BidiModule, BidiModule] });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McCommonModule, decorators: [{
148
- type: NgModule,
149
- args: [{
150
- imports: [BidiModule],
151
- exports: [BidiModule]
152
- }]
153
- }], ctorParameters: function () {
154
- return [{ type: undefined, decorators: [{
155
- type: Optional
156
- }, {
157
- type: Inject,
158
- args: [MC_SANITY_CHECKS]
159
- }] }];
160
- } });
161
-
162
- function mixinDisabled(base) {
163
- return class extends base {
164
- constructor(...args) {
165
- // tslint:disable-next-line
166
- super(...args);
167
- this._disabled = false;
168
- }
169
- get disabled() {
170
- return this._disabled;
171
- }
172
- set disabled(value) {
173
- this._disabled = coerceBooleanProperty(value);
174
- }
175
- };
176
- }
177
-
178
- var ThemePalette;
179
- (function (ThemePalette) {
180
- ThemePalette["Primary"] = "primary";
181
- ThemePalette["Secondary"] = "secondary";
182
- ThemePalette["Error"] = "error";
183
- ThemePalette["Info"] = "info";
184
- ThemePalette["Warning"] = "warning";
185
- ThemePalette["Success"] = "success";
186
- ThemePalette["Default"] = "secondary";
187
- ThemePalette["Empty"] = "";
188
- })(ThemePalette || (ThemePalette = {}));
189
- function mixinColor(base, defaultColor = ThemePalette.Default) {
190
- return class extends base {
191
- constructor(...args) {
192
- super(...args);
193
- this.color = defaultColor;
194
- }
195
- get color() { return this._color; }
196
- set color(value) {
197
- const colorPalette = value || defaultColor;
198
- if (colorPalette !== this._color) {
199
- if (this._color) {
200
- this.elementRef.nativeElement.classList.remove(`mc-${this._color}`);
201
- }
202
- if (colorPalette) {
203
- this.elementRef.nativeElement.classList.add(`mc-${colorPalette}`);
204
- }
205
- this._color = colorPalette;
206
- }
207
- }
208
- };
209
- }
210
-
211
- function mixinTabIndex(base, defaultTabIndex = 0) {
212
- return class extends base {
213
- constructor(...args) {
214
- super(...args);
215
- this.defaultTabIndex = defaultTabIndex;
216
- this._tabIndex = defaultTabIndex;
217
- }
218
- get tabIndex() {
219
- return this.disabled ? -1 : this._tabIndex;
220
- }
221
- set tabIndex(value) {
222
- // If the specified tabIndex value is null or undefined, fall back to the default value.
223
- this._tabIndex = value != null ? coerceNumberProperty(value) : this.defaultTabIndex;
224
- }
225
- };
226
- }
227
-
228
- function mixinErrorState(base) {
229
- return class extends base {
230
- constructor(...args) {
231
- super(...args);
232
- /** Whether the component is in an error state. */
233
- this.errorState = false;
234
- }
235
- updateErrorState() {
236
- const oldState = this.errorState;
237
- const parent = this.parentFormGroup || this.parentForm;
238
- const matcher = this.errorStateMatcher || this.defaultErrorStateMatcher;
239
- const control = this.ngControl ? this.ngControl.control : null;
240
- const newState = matcher.isErrorState(control, parent);
241
- if (newState !== oldState) {
242
- this.errorState = newState;
243
- this.stateChanges.next();
244
- }
245
- }
246
- };
247
- }
248
-
249
- const MC_DATE_FORMATS = new InjectionToken('mc-date-formats');
250
-
251
- /** InjectionToken for datepicker that can be used to override default locale code. */
252
- const MC_DATE_LOCALE = new InjectionToken('MC_DATE_LOCALE', {
253
- providedIn: 'root',
254
- factory: MC_DATE_LOCALE_FACTORY
255
- });
256
- /** @docs-private */
257
- // tslint:disable-next-line:naming-convention
258
- function MC_DATE_LOCALE_FACTORY() {
259
- return inject(LOCALE_ID);
260
- }
261
- class DateAdapter extends DateAdapter$1 {
262
- }
263
-
264
- /** Error state matcher that matches when a control is invalid and dirty. */
265
- class ShowOnDirtyErrorStateMatcher {
266
- isErrorState(control, form) {
267
- return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
268
- }
269
- }
270
- /** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
271
- /** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShowOnDirtyErrorStateMatcher });
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, decorators: [{
273
- type: Injectable
274
- }] });
275
- /** Provider that defines how form controls behave with regards to displaying error messages. */
276
- class ErrorStateMatcher {
277
- isErrorState(control, form) {
278
- return !!(control && control.invalid && (control.touched || (form && form.submitted)));
279
- }
280
- }
281
- /** @nocollapse */ ErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
282
- /** @nocollapse */ ErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' });
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ErrorStateMatcher, decorators: [{
284
- type: Injectable,
285
- args: [{ providedIn: 'root' }]
286
- }] });
287
-
288
- class DateFormatter extends DateFormatter$1 {
289
- constructor(adapter, locale) {
290
- super(adapter, locale);
291
- this.adapter = adapter;
292
- }
293
- }
294
- /** @nocollapse */ DateFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatter, deps: [{ token: i1.DateAdapter }, { token: MC_DATE_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable });
295
- /** @nocollapse */ DateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatter });
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatter, decorators: [{
297
- type: Injectable
298
- }], ctorParameters: function () {
299
- return [{ type: i1.DateAdapter }, { type: undefined, decorators: [{
300
- type: Inject,
301
- args: [MC_DATE_LOCALE]
302
- }] }];
303
- } });
304
-
305
- class AbsoluteDateFormatterPipe {
306
- constructor(adapter, formatter) {
307
- this.adapter = adapter;
308
- this.formatter = formatter;
309
- }
310
- transform(value, currYear) {
311
- const date = this.adapter.deserialize(value);
312
- return date ? this.formatter.absoluteLongDate(date, currYear) : '';
313
- }
314
- }
315
- /** @nocollapse */ AbsoluteDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
316
- /** @nocollapse */ AbsoluteDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" });
317
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
318
- type: Pipe,
319
- args: [{ name: 'absoluteLongDate' }]
320
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
321
- class AbsoluteDateTimeFormatterPipe {
322
- constructor(adapter, formatter) {
323
- this.adapter = adapter;
324
- this.formatter = formatter;
325
- }
326
- transform(value, options) {
327
- const date = this.adapter.deserialize(value);
328
- return date ? this.formatter.absoluteLongDateTime(date, options) : '';
329
- }
330
- }
331
- /** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
332
- /** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" });
333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
334
- type: Pipe,
335
- args: [{ name: 'absoluteLongDateTime' }]
336
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
337
- class AbsoluteDateShortFormatterPipe {
338
- constructor(adapter, formatter) {
339
- this.adapter = adapter;
340
- this.formatter = formatter;
341
- }
342
- transform(value, currYear) {
343
- const date = this.adapter.deserialize(value);
344
- return date ? this.formatter.absoluteShortDate(date, currYear) : '';
345
- }
346
- }
347
- /** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
348
- /** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" });
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
350
- type: Pipe,
351
- args: [{ name: 'absoluteShortDate' }]
352
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
353
- class AbsoluteShortDateTimeFormatterPipe {
354
- constructor(adapter, formatter) {
355
- this.adapter = adapter;
356
- this.formatter = formatter;
357
- }
358
- transform(value, options) {
359
- const date = this.adapter.deserialize(value);
360
- return date ? this.formatter.absoluteShortDateTime(date, options) : '';
361
- }
362
- }
363
- /** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
364
- /** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" });
365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
366
- type: Pipe,
367
- args: [{ name: 'absoluteShortDateTime' }]
368
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
369
- class RelativeDateFormatterPipe {
370
- constructor(adapter, formatter) {
371
- this.adapter = adapter;
372
- this.formatter = formatter;
373
- }
374
- transform(value) {
375
- const date = this.adapter.deserialize(value);
376
- return date ? this.formatter.relativeLongDate(date) : '';
377
- }
378
- }
379
- /** @nocollapse */ RelativeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeDateFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
380
- /** @nocollapse */ RelativeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" });
381
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
382
- type: Pipe,
383
- args: [{ name: 'relativeLongDate' }]
384
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
385
- class RelativeDateTimeFormatterPipe {
386
- constructor(adapter, formatter) {
387
- this.adapter = adapter;
388
- this.formatter = formatter;
389
- }
390
- transform(value, options) {
391
- const date = this.adapter.deserialize(value);
392
- return date ? this.formatter.relativeLongDateTime(date, options) : '';
393
- }
394
- }
395
- /** @nocollapse */ RelativeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
396
- /** @nocollapse */ RelativeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" });
397
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
398
- type: Pipe,
399
- args: [{ name: 'relativeLongDateTime' }]
400
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
401
- class RelativeShortDateFormatterPipe {
402
- constructor(adapter, formatter) {
403
- this.adapter = adapter;
404
- this.formatter = formatter;
405
- }
406
- transform(value) {
407
- const date = this.adapter.deserialize(value);
408
- return date ? this.formatter.relativeShortDate(date) : '';
409
- }
410
- }
411
- /** @nocollapse */ RelativeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
412
- /** @nocollapse */ RelativeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" });
413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
414
- type: Pipe,
415
- args: [{ name: 'relativeShortDate' }]
416
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
417
- class RelativeShortDateTimeFormatterPipe {
418
- constructor(adapter, formatter) {
419
- this.adapter = adapter;
420
- this.formatter = formatter;
421
- }
422
- transform(value, options) {
423
- const date = this.adapter.deserialize(value);
424
- return date ? this.formatter.relativeShortDateTime(date, options) : '';
425
- }
426
- }
427
- /** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
428
- /** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" });
429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
430
- type: Pipe,
431
- args: [{ name: 'relativeShortDateTime' }]
432
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
433
- class RangeDateFormatterPipe {
434
- constructor(adapter, formatter) {
435
- this.adapter = adapter;
436
- this.formatter = formatter;
437
- }
438
- transform([value1, value2]) {
439
- const date1 = this.adapter.deserialize(value1);
440
- const date2 = this.adapter.deserialize(value2);
441
- return this.formatter.rangeLongDate(date1, date2);
442
- }
443
- }
444
- /** @nocollapse */ RangeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeDateFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
445
- /** @nocollapse */ RangeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" });
446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
447
- type: Pipe,
448
- args: [{ name: 'rangeLongDate' }]
449
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
450
- class RangeShortDateFormatterPipe {
451
- constructor(adapter, formatter) {
452
- this.adapter = adapter;
453
- this.formatter = formatter;
454
- }
455
- transform([value1, value2]) {
456
- const date1 = this.adapter.deserialize(value1);
457
- const date2 = this.adapter.deserialize(value2);
458
- return this.formatter.rangeShortDate(date1, date2);
459
- }
460
- }
461
- /** @nocollapse */ RangeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeShortDateFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
462
- /** @nocollapse */ RangeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" });
463
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
464
- type: Pipe,
465
- args: [{ name: 'rangeShortDate' }]
466
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
467
- class RangeDateTimeFormatterPipe {
468
- constructor(adapter, formatter) {
469
- this.adapter = adapter;
470
- this.formatter = formatter;
471
- }
472
- transform([value1, value2], options) {
473
- const date1 = this.adapter.deserialize(value1);
474
- const date2 = this.adapter.deserialize(value2);
475
- return this.formatter.rangeLongDateTime(date1, date2, options);
476
- }
477
- }
478
- /** @nocollapse */ RangeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
479
- /** @nocollapse */ RangeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" });
480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
481
- type: Pipe,
482
- args: [{ name: 'rangeLongDateTime' }]
483
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
484
- class RangeMiddleDateTimeFormatterPipe {
485
- constructor(adapter, formatter) {
486
- this.adapter = adapter;
487
- this.formatter = formatter;
488
- }
489
- transform([value1, value2], options) {
490
- const date1 = this.adapter.deserialize(value1);
491
- const date2 = this.adapter.deserialize(value2);
492
- return this.formatter.rangeMiddleDateTime(date1, date2, options);
493
- }
494
- }
495
- /** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
496
- /** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" });
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
498
- type: Pipe,
499
- args: [{ name: 'rangeMiddleDateTime' }]
500
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
501
- class RangeShortDateTimeFormatterPipe {
502
- constructor(adapter, formatter) {
503
- this.adapter = adapter;
504
- this.formatter = formatter;
505
- }
506
- transform([value1, value2], options) {
507
- const date1 = this.adapter.deserialize(value1);
508
- const date2 = this.adapter.deserialize(value2);
509
- return this.formatter.rangeShortDateTime(date1, date2, options);
510
- }
511
- }
512
- /** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: [{ token: DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
513
- /** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" });
514
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
515
- type: Pipe,
516
- args: [{ name: 'rangeShortDateTime' }]
517
- }], ctorParameters: function () { return [{ type: DateAdapter }, { type: DateFormatter }]; } });
518
-
519
- const enUSLocaleData = {
520
- en: {
521
- select: { hiddenItemsText: 'one more' },
522
- datepicker: {
523
- placeholder: 'dd/mm/yyyy',
524
- dateInput: 'dd/MM/yyyy'
525
- }
526
- }
527
- };
528
-
529
- const esLALocaleData = {
530
- 'es-LA': {
531
- select: { hiddenItemsText: 'más' }
532
- }
533
- };
534
-
535
- const faIRLocaleData = {
536
- 'fa-IR': {
537
- select: { hiddenItemsText: 'أكثر' }
538
- }
539
- };
540
-
541
- const ptBRLocaleData = {
542
- 'pt-BR': {
543
- select: { hiddenItemsText: 'mais' }
544
- }
545
- };
546
-
547
- const ruRULocaleData = {
548
- ru: {
549
- select: { hiddenItemsText: 'еще' },
550
- datepicker: {
551
- placeholder: 'дд.мм.гггг',
552
- dateInput: 'dd.MM.yyyy'
553
- }
554
- }
555
- };
556
-
557
- const znCNLocaleData = {
558
- 'zh-CN': {
559
- select: { hiddenItemsText: '更多的' }
560
- }
561
- };
562
-
563
- const MC_LOCALE_ID$1 = new InjectionToken('McLocaleId');
564
- const MC_DEFAULT_LOCALE_ID = 'ru';
565
- function MC_DEFAULT_LOCALE_DATA_FACTORY() {
566
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ items: [
567
- { id: 'en', name: 'English' },
568
- { id: 'zh-CN', name: '简体中文' },
569
- { id: 'es-LA', name: 'Español' },
570
- { id: 'pt-BR', name: 'Português' },
571
- { id: 'ru', name: 'Русский' },
572
- { id: 'fa-IR', name: 'فارسی' }
573
- ] }, ruRULocaleData), enUSLocaleData), esLALocaleData), faIRLocaleData), ptBRLocaleData), znCNLocaleData);
574
- }
575
- const MC_LOCALE_DATA = new InjectionToken('MC_LOCALE_DATA', { providedIn: 'root', factory: MC_DEFAULT_LOCALE_DATA_FACTORY });
576
- const MC_LOCALE_SERVICE = new InjectionToken('MC_LOCALE_SERVICE');
577
- class McLocaleService {
578
- constructor(id, localeData) {
579
- this.locales = {};
580
- this.locales = localeData;
581
- this.id = id || MC_DEFAULT_LOCALE_ID;
582
- this.current = this.locales[this.id];
583
- this.changes = new BehaviorSubject(this.id);
584
- }
585
- setLocale(id) {
586
- this.id = id;
587
- this.current = this.locales[this.id];
588
- this.changes.next(this.id);
589
- }
590
- addLocale(id, localeData) {
591
- this.id = id;
592
- this.changes.next(this.id);
593
- this.locales[this.id] = localeData;
594
- }
595
- getParams(componentName) {
596
- return this.current[componentName];
597
- }
598
- }
599
- /** @nocollapse */ McLocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLocaleService, deps: [{ token: MC_LOCALE_ID$1, optional: true }, { token: MC_LOCALE_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
600
- /** @nocollapse */ McLocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLocaleService, providedIn: 'root' });
601
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLocaleService, decorators: [{
602
- type: Injectable,
603
- args: [{ providedIn: 'root' }]
604
- }], ctorParameters: function () {
605
- return [{ type: undefined, decorators: [{
606
- type: Optional
607
- }, {
608
- type: Inject,
609
- args: [MC_LOCALE_ID$1]
610
- }] }, { type: undefined, decorators: [{
611
- type: Optional
612
- }, {
613
- type: Inject,
614
- args: [MC_LOCALE_DATA]
615
- }] }];
616
- } });
617
-
618
- class McLocaleServiceModule {
619
- }
620
- /** @nocollapse */ McLocaleServiceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLocaleServiceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
621
- /** @nocollapse */ McLocaleServiceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McLocaleServiceModule });
622
- /** @nocollapse */ McLocaleServiceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLocaleServiceModule, providers: [
623
- { provide: MC_LOCALE_SERVICE, useClass: McLocaleService }
624
- ] });
625
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLocaleServiceModule, decorators: [{
626
- type: NgModule,
627
- args: [{
628
- providers: [
629
- { provide: MC_LOCALE_SERVICE, useClass: McLocaleService }
630
- ]
631
- }]
632
- }] });
633
-
634
- const MC_LOCALE_ID = new InjectionToken('McLocaleId');
635
-
636
- /* tslint:disable:naming-convention */
637
- const MC_NUMBER_FORMATTER_OPTIONS = new InjectionToken('McNumberFormatterOptions');
638
- const MC_NUMBER_FORMATTER_DEFAULT_OPTIONS = {
639
- useGrouping: true,
640
- minimumIntegerDigits: 1,
641
- minimumFractionDigits: 0,
642
- maximumFractionDigits: 3
643
- };
644
- function isEmpty(value) {
645
- return value == null || value === '' || value !== value;
646
- }
647
- function strToNumber(value) {
648
- if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
649
- return Number(value);
650
- }
651
- if (typeof value !== 'number') {
652
- throw new Error(`${value} is not a number`);
653
- }
654
- return value;
655
- }
656
- const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?(-(true|false))?)?$/;
657
- const minIntGroupPosition = 1;
658
- const minFractionGroupPosition = 3;
659
- const maxFractionGroupPosition = 5;
660
- const useGroupingPosition = 7;
661
- class ParsedDigitsInfo {
662
- }
663
- function parseDigitsInfo(digitsInfo) {
664
- const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);
665
- if (parts === null) {
666
- throw new Error(`${digitsInfo} is not a valid digit info`);
667
- }
668
- const minIntPart = parts[minIntGroupPosition];
669
- const minFractionPart = parts[minFractionGroupPosition];
670
- const maxFractionPart = parts[maxFractionGroupPosition];
671
- const useGroupingPart = parts[useGroupingPosition];
672
- const result = new ParsedDigitsInfo();
673
- if (minIntPart != null) {
674
- result.minimumIntegerDigits = parseInt(minIntPart);
675
- }
676
- if (minFractionPart != null) {
677
- result.minimumFractionDigits = parseInt(minFractionPart);
678
- }
679
- if (maxFractionPart != null) {
680
- result.maximumFractionDigits = parseInt(maxFractionPart);
681
- }
682
- else if (minFractionPart != null && result.minimumFractionDigits > result.maximumFractionDigits) {
683
- result.maximumFractionDigits = result.minimumFractionDigits;
684
- }
685
- if (useGroupingPart != null) {
686
- result.useGrouping = useGroupingPart === 'true';
687
- }
688
- return result;
689
- }
690
- class McDecimalPipe {
691
- constructor(id, localeService, options) {
692
- var _a;
693
- this.id = id;
694
- this.localeService = localeService;
695
- this.options = options;
696
- this.options = this.options || MC_NUMBER_FORMATTER_DEFAULT_OPTIONS;
697
- (_a = this.localeService) === null || _a === void 0 ? void 0 : _a.changes.subscribe((newId) => this.id = newId);
698
- }
699
- /**
700
- * @param value The number to be formatted.
701
- * @param digitsInfo Decimal representation options, specified by a string
702
- * in the following format:<br>
703
- * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
704
- * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
705
- * Default is `1`.
706
- * - `minFractionDigits`: The minimum number of digits after the decimal point.
707
- * Default is `0`.
708
- * - `maxFractionDigits`: The maximum number of digits after the decimal point.
709
- * Default is `3`.
710
- * @param locale A locale code for the locale format rules to use.
711
- * When not supplied, uses the value of `MC_LOCALE_ID`, which is `ru` by default.
712
- */
713
- transform(value, digitsInfo, locale) {
714
- if (isEmpty(value)) {
715
- return null;
716
- }
717
- const currentLocale = locale || this.id || MC_DEFAULT_LOCALE_ID;
718
- let parsedDigitsInfo;
719
- if (digitsInfo) {
720
- parsedDigitsInfo = parseDigitsInfo(digitsInfo);
721
- }
722
- const options = Object.assign(Object.assign({}, this.options), parsedDigitsInfo);
723
- try {
724
- const num = strToNumber(value);
725
- return Intl.NumberFormat.call(this, currentLocale, options).format(num);
726
- }
727
- catch (error) {
728
- throw Error(`InvalidPipeArgument: McDecimalPipe for pipe '${JSON.stringify(error.message)}'`);
729
- }
730
- }
731
- }
732
- /** @nocollapse */ McDecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDecimalPipe, deps: [{ token: MC_LOCALE_ID, optional: true }, { token: MC_LOCALE_SERVICE, optional: true }, { token: MC_NUMBER_FORMATTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
733
- /** @nocollapse */ McDecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McDecimalPipe, name: "mcNumber", pure: false });
734
- /** @nocollapse */ McDecimalPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDecimalPipe, providedIn: 'root' });
735
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDecimalPipe, decorators: [{
736
- type: Injectable,
737
- args: [{ providedIn: 'root' }]
738
- }, {
739
- type: Pipe,
740
- args: [{ name: 'mcNumber', pure: false }]
741
- }], ctorParameters: function () {
742
- return [{ type: undefined, decorators: [{
743
- type: Optional
744
- }, {
745
- type: Inject,
746
- args: [MC_LOCALE_ID]
747
- }] }, { type: McLocaleService, decorators: [{
748
- type: Optional
749
- }, {
750
- type: Inject,
751
- args: [MC_LOCALE_SERVICE]
752
- }] }, { type: ParsedDigitsInfo, decorators: [{
753
- type: Optional
754
- }, {
755
- type: Inject,
756
- args: [MC_NUMBER_FORMATTER_OPTIONS]
757
- }] }];
758
- } });
759
-
760
- class McFormattersModule {
761
- }
762
- /** @nocollapse */ McFormattersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
763
- /** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe,
764
- AbsoluteDateFormatterPipe,
765
- AbsoluteDateTimeFormatterPipe,
766
- AbsoluteDateShortFormatterPipe,
767
- AbsoluteShortDateTimeFormatterPipe,
768
- RelativeDateFormatterPipe,
769
- RelativeDateTimeFormatterPipe,
770
- RelativeShortDateFormatterPipe,
771
- RelativeShortDateTimeFormatterPipe,
772
- RangeDateFormatterPipe,
773
- RangeShortDateFormatterPipe,
774
- RangeDateTimeFormatterPipe,
775
- RangeShortDateTimeFormatterPipe,
776
- RangeMiddleDateTimeFormatterPipe], exports: [McDecimalPipe,
777
- AbsoluteDateFormatterPipe,
778
- AbsoluteDateTimeFormatterPipe,
779
- AbsoluteDateShortFormatterPipe,
780
- AbsoluteShortDateTimeFormatterPipe,
781
- RelativeDateFormatterPipe,
782
- RelativeDateTimeFormatterPipe,
783
- RelativeShortDateFormatterPipe,
784
- RelativeShortDateTimeFormatterPipe,
785
- RangeDateFormatterPipe,
786
- RangeShortDateFormatterPipe,
787
- RangeDateTimeFormatterPipe,
788
- RangeShortDateTimeFormatterPipe,
789
- RangeMiddleDateTimeFormatterPipe] });
790
- /** @nocollapse */ McFormattersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormattersModule, providers: [DateFormatter] });
791
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormattersModule, decorators: [{
792
- type: NgModule,
793
- args: [{
794
- declarations: [
795
- McDecimalPipe,
796
- AbsoluteDateFormatterPipe,
797
- AbsoluteDateTimeFormatterPipe,
798
- AbsoluteDateShortFormatterPipe,
799
- AbsoluteShortDateTimeFormatterPipe,
800
- RelativeDateFormatterPipe,
801
- RelativeDateTimeFormatterPipe,
802
- RelativeShortDateFormatterPipe,
803
- RelativeShortDateTimeFormatterPipe,
804
- RangeDateFormatterPipe,
805
- RangeShortDateFormatterPipe,
806
- RangeDateTimeFormatterPipe,
807
- RangeShortDateTimeFormatterPipe,
808
- RangeMiddleDateTimeFormatterPipe
809
- ],
810
- exports: [
811
- McDecimalPipe,
812
- AbsoluteDateFormatterPipe,
813
- AbsoluteDateTimeFormatterPipe,
814
- AbsoluteDateShortFormatterPipe,
815
- AbsoluteShortDateTimeFormatterPipe,
816
- RelativeDateFormatterPipe,
817
- RelativeDateTimeFormatterPipe,
818
- RelativeShortDateFormatterPipe,
819
- RelativeShortDateTimeFormatterPipe,
820
- RangeDateFormatterPipe,
821
- RangeShortDateFormatterPipe,
822
- RangeDateTimeFormatterPipe,
823
- RangeShortDateTimeFormatterPipe,
824
- RangeMiddleDateTimeFormatterPipe
825
- ],
826
- providers: [DateFormatter]
827
- }]
828
- }] });
829
-
830
- class McFormElement {
831
- constructor(element) {
832
- this.element = element;
833
- this.margin = false;
834
- this.isRow = false;
835
- this.isFieldSet = false;
836
- this.hasLegend = false;
837
- this.isHorizontal = false;
838
- }
839
- ngAfterContentInit() {
840
- const classList = this.element.nativeElement.classList;
841
- this.isRow = classList.contains('mc-form__row');
842
- this.isHorizontal = classList.contains('mc-horizontal');
843
- this.isFieldSet = classList.contains('mc-form__fieldset');
844
- if (this.isFieldSet && this.element.nativeElement.firstElementChild) {
845
- this.hasLegend = this.element.nativeElement.firstElementChild.classList.contains('mc-form__legend');
846
- }
847
- }
848
- }
849
- /** @nocollapse */ McFormElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
850
- /** @nocollapse */ McFormElement.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McFormElement, selector: ".mc-form__row, .mc-form__fieldset, .mc-form__legend", host: { properties: { "class.mc-form-row_margin": "margin" } }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcFormElement"], ngImport: i0 });
851
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormElement, decorators: [{
852
- type: Directive,
853
- args: [{
854
- selector: '.mc-form__row, .mc-form__fieldset, .mc-form__legend',
855
- exportAs: 'mcFormElement',
856
- host: {
857
- '[class.mc-form-row_margin]': 'margin'
858
- }
859
- }]
860
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { elements: [{
861
- type: ContentChildren,
862
- args: [McFormElement]
863
- }] } });
864
- class McForm {
865
- ngAfterContentInit() {
866
- this.handleElements(this.elements);
867
- }
868
- handleElements(elements) {
869
- elements.forEach((element, index) => {
870
- const nextElement = elements.get(index + 1);
871
- if (element.isFieldSet && !element.isHorizontal) {
872
- this.handleElements(element.elements);
873
- }
874
- element.margin = !!(nextElement && !nextElement.hasLegend);
875
- });
876
- }
877
- }
878
- /** @nocollapse */ McForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McForm, deps: [], target: i0.ɵɵFactoryTarget.Directive });
879
- /** @nocollapse */ McForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McForm, selector: ".mc-form-vertical, .mc-form-horizontal", host: { classAttribute: "mc-form" }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcForm"], ngImport: i0 });
880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McForm, decorators: [{
881
- type: Directive,
882
- args: [{
883
- selector: '.mc-form-vertical, .mc-form-horizontal',
884
- exportAs: 'mcForm',
885
- host: {
886
- class: 'mc-form'
887
- }
888
- }]
889
- }], propDecorators: { elements: [{
890
- type: ContentChildren,
891
- args: [McFormElement]
892
- }] } });
893
-
894
- class McFormsModule {
895
- }
896
- /** @nocollapse */ McFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
897
- /** @nocollapse */ McFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McFormsModule, declarations: [McForm,
898
- McFormElement], exports: [McForm,
899
- McFormElement] });
900
- /** @nocollapse */ McFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormsModule });
901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McFormsModule, decorators: [{
902
- type: NgModule,
903
- args: [{
904
- exports: [
905
- McForm,
906
- McFormElement
907
- ],
908
- declarations: [
909
- McForm,
910
- McFormElement
911
- ]
912
- }]
913
- }] });
914
-
915
- function escapeRegExp(value) {
916
- if (value) {
917
- return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
918
- }
919
- return value;
920
- }
921
- class McHighlightPipe {
922
- transform(value, args) {
923
- if (!args) {
924
- return value;
925
- }
926
- return value.replace(new RegExp(`(${escapeRegExp(args)})`, 'gi'), '<mark class="mc-highlight">$1</mark>');
927
- }
928
- }
929
- /** @nocollapse */ McHighlightPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
930
- /** @nocollapse */ McHighlightPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McHighlightPipe, name: "mcHighlight" });
931
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McHighlightPipe, decorators: [{
932
- type: Pipe,
933
- args: [{ name: 'mcHighlight' }]
934
- }] });
935
-
936
- class McHighlightModule {
937
- }
938
- /** @nocollapse */ McHighlightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
939
- /** @nocollapse */ McHighlightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McHighlightModule, declarations: [McHighlightPipe], imports: [CommonModule], exports: [McHighlightPipe] });
940
- /** @nocollapse */ McHighlightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McHighlightModule, imports: [CommonModule] });
941
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McHighlightModule, decorators: [{
942
- type: NgModule,
943
- args: [{
944
- imports: [CommonModule],
945
- exports: [McHighlightPipe],
946
- declarations: [McHighlightPipe]
947
- }]
948
- }] });
949
-
950
- /** InjectionToken that can be used to specify the global label options. */
951
- const MC_LABEL_GLOBAL_OPTIONS = new InjectionToken('mc-label-global-options');
952
-
953
- /**
954
- * Shared directive to count lines inside a text area, such as a list item.
955
- * Line elements can be extracted with a @ContentChildren(McLine) query, then
956
- * counted by checking the query list's length.
957
- */
958
- class McLine {
959
- }
960
- /** @nocollapse */ McLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLine, deps: [], target: i0.ɵɵFactoryTarget.Directive });
961
- /** @nocollapse */ McLine.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McLine, selector: "[mc-line], [mcLine]", host: { classAttribute: "mc-line" }, ngImport: i0 });
962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLine, decorators: [{
963
- type: Directive,
964
- args: [{
965
- selector: '[mc-line], [mcLine]',
966
- host: { class: 'mc-line' }
967
- }]
968
- }] });
969
- /**
970
- * Helper that takes a query list of lines and sets the correct class on the host.
971
- * @docs-private
972
- */
973
- class McLineSetter {
974
- constructor(_lines, _element) {
975
- this._lines = _lines;
976
- this._element = _element;
977
- this.setLineClass(this._lines.length);
978
- this._lines.changes.subscribe(() => {
979
- this.setLineClass(this._lines.length);
980
- });
981
- }
982
- setLineClass(count) {
983
- const minLineClassNumber = 2;
984
- const maxLineClassNumber = 3;
985
- this.resetClasses();
986
- if (count === minLineClassNumber || count === maxLineClassNumber) {
987
- this.setClass(`mc-${count}-line`, true);
988
- }
989
- else if (count > maxLineClassNumber) {
990
- this.setClass(`mc-multi-line`, true);
991
- }
992
- }
993
- resetClasses() {
994
- this.setClass('mc-2-line', false);
995
- this.setClass('mc-3-line', false);
996
- this.setClass('mc-multi-line', false);
997
- }
998
- setClass(className, isAdd) {
999
- if (isAdd) {
1000
- this._element.nativeElement.classList.add(className);
1001
- }
1002
- else {
1003
- this._element.nativeElement.classList.remove(className);
1004
- }
1005
- }
1006
- }
1007
- class McLineModule {
1008
- }
1009
- /** @nocollapse */ McLineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1010
- /** @nocollapse */ McLineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McLineModule, declarations: [McLine], exports: [McLine] });
1011
- /** @nocollapse */ McLineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLineModule });
1012
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McLineModule, decorators: [{
1013
- type: NgModule,
1014
- args: [{
1015
- imports: [],
1016
- exports: [McLine],
1017
- declarations: [McLine]
1018
- }]
1019
- }] });
1020
-
1021
- const MC_TITLE_TEXT_REF = new InjectionToken('McTitleTextRef');
1022
-
1023
- /** @docs-private */
1024
- class McOptgroupBase {
1025
- }
1026
- // tslint:disable-next-line: naming-convention
1027
- const McOptgroupMixinBase = mixinDisabled(McOptgroupBase);
1028
- let uniqueOptgroupIdCounter = 0;
1029
- /**
1030
- * Component that is used to group instances of `mc-option`.
1031
- */
1032
- class McOptgroup extends McOptgroupMixinBase {
1033
- constructor() {
1034
- super(...arguments);
1035
- /** Unique id for the underlying label. */
1036
- this.labelId = `mc-optgroup-label-${uniqueOptgroupIdCounter++}`;
1037
- }
1038
- }
1039
- /** @nocollapse */ McOptgroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptgroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
1040
- /** @nocollapse */ McOptgroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McOptgroup, selector: "mc-optgroup", inputs: { disabled: "disabled", label: "label" }, host: { properties: { "class.mc-disabled": "disabled" }, classAttribute: "mc-optgroup" }, exportAs: ["mcOptgroup"], usesInheritance: true, ngImport: i0, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, mc-timezone-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:var(--mc-optgroup-size-padding-left, 12px);-webkit-user-select:none;user-select:none;cursor:default}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1041
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptgroup, decorators: [{
1042
- type: Component,
1043
- args: [{ selector: 'mc-optgroup', exportAs: 'mcOptgroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], host: {
1044
- class: 'mc-optgroup',
1045
- '[class.mc-disabled]': 'disabled'
1046
- }, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, mc-timezone-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:var(--mc-optgroup-size-padding-left, 12px);-webkit-user-select:none;user-select:none;cursor:default}\n"] }]
1047
- }], propDecorators: { label: [{
1048
- type: Input
1049
- }] } });
1050
-
1051
- // Boilerplate for applying mixins to McPseudoCheckbox.
1052
- /** @docs-private */
1053
- class McPseudoCheckboxBase {
1054
- constructor(elementRef) {
1055
- this.elementRef = elementRef;
1056
- }
1057
- }
1058
- /** @docs-private */
1059
- const McPseudoCheckboxMixinBase = mixinColor(mixinDisabled(McPseudoCheckboxBase), ThemePalette.Primary);
1060
- /**
1061
- * Component that shows a simplified checkbox without including any kind of "real" checkbox.
1062
- * Meant to be used when the checkbox is purely decorative and a large number of them will be
1063
- * included, such as for the options in a multi-select. Uses no SVGs or complex animations.
1064
- * Note that theming is meant to be handled by the parent element, e.g.
1065
- * `mc-primary .mc-pseudo-checkbox`.
1066
- *
1067
- * Note that this component will be completely invisible to screen-reader users. This is *not*
1068
- * interchangeable with `<mc-checkbox>` and should *not* be used if the user would directly
1069
- * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
1070
- * of more complex components that appropriately handle selected / checked state.
1071
- * @docs-private
1072
- */
1073
- class McPseudoCheckbox extends McPseudoCheckboxMixinBase {
1074
- constructor(elementRef) {
1075
- super(elementRef);
1076
- this.state = 'unchecked';
1077
- this.disabled = false;
1078
- }
1079
- }
1080
- /** @nocollapse */ McPseudoCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPseudoCheckbox, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1081
- /** @nocollapse */ McPseudoCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: { color: "color", state: "state", disabled: "disabled" }, host: { properties: { "class.mc-indeterminate": "state === \"indeterminate\"", "class.mc-checked": "state === \"checked\"", "class.mc-disabled": "disabled" }, classAttribute: "mc-pseudo-checkbox" }, usesInheritance: true, ngImport: i0, template: "<i class=\"mc-checkbox-checkmark mc mc-check_16\"></i>\n<i class=\"mc-checkbox-mixedmark mc mc-minus_16\"></i>\n", styles: [".mc-pseudo-checkbox{position:relative;display:inline-block;box-sizing:border-box;width:var(--mc-checkbox-size-width, 16px);height:var(--mc-checkbox-size-width, 16px);border-radius:3px;border-width:var(--mc-checkbox-size-border-width, 1px);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.mc-pseudo-checkbox .mc-checkbox-checkmark,.mc-pseudo-checkbox .mc-checkbox-mixedmark{display:none;position:absolute;top:calc(-1 * var(--mc-checkbox-size-border-width, 1px));left:calc(-1 * var(--mc-checkbox-size-border-width, 1px))}.mc-pseudo-checkbox.mc-pseudo-checkbox-checked,.mc-pseudo-checkbox.mc-pseudo-checkbox-indeterminate{border-color:transparent}.mc-pseudo-checkbox.mc-checked .mc-checkbox-checkmark,.mc-pseudo-checkbox.mc-indeterminate .mc-checkbox-mixedmark{display:inline-block}.mc-pseudo-checkbox.mc-disabled{cursor:default}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1082
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPseudoCheckbox, decorators: [{
1083
- type: Component,
1084
- args: [{ selector: 'mc-pseudo-checkbox', host: {
1085
- class: 'mc-pseudo-checkbox',
1086
- '[class.mc-indeterminate]': 'state === "indeterminate"',
1087
- '[class.mc-checked]': 'state === "checked"',
1088
- '[class.mc-disabled]': 'disabled'
1089
- }, preserveWhitespaces: false, inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<i class=\"mc-checkbox-checkmark mc mc-check_16\"></i>\n<i class=\"mc-checkbox-mixedmark mc mc-minus_16\"></i>\n", styles: [".mc-pseudo-checkbox{position:relative;display:inline-block;box-sizing:border-box;width:var(--mc-checkbox-size-width, 16px);height:var(--mc-checkbox-size-width, 16px);border-radius:3px;border-width:var(--mc-checkbox-size-border-width, 1px);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.mc-pseudo-checkbox .mc-checkbox-checkmark,.mc-pseudo-checkbox .mc-checkbox-mixedmark{display:none;position:absolute;top:calc(-1 * var(--mc-checkbox-size-border-width, 1px));left:calc(-1 * var(--mc-checkbox-size-border-width, 1px))}.mc-pseudo-checkbox.mc-pseudo-checkbox-checked,.mc-pseudo-checkbox.mc-pseudo-checkbox-indeterminate{border-color:transparent}.mc-pseudo-checkbox.mc-checked .mc-checkbox-checkmark,.mc-pseudo-checkbox.mc-indeterminate .mc-checkbox-mixedmark{display:inline-block}.mc-pseudo-checkbox.mc-disabled{cursor:default}\n"] }]
1090
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { state: [{
1091
- type: Input
1092
- }], disabled: [{
1093
- type: Input
1094
- }] } });
1095
-
1096
- /**
1097
- * Option IDs need to be unique across components, so this counter exists outside of
1098
- * the component definition.
1099
- */
1100
- let uniqueIdCounter = 0;
1101
- /** Event object emitted by McOption when selected or deselected. */
1102
- class McOptionSelectionChange {
1103
- constructor(source, isUserInput = false) {
1104
- this.source = source;
1105
- this.isUserInput = isUserInput;
1106
- }
1107
- }
1108
- /**
1109
- * Injection token used to provide the parent component to options.
1110
- */
1111
- const MC_OPTION_PARENT_COMPONENT = new InjectionToken('MC_OPTION_PARENT_COMPONENT');
1112
- /**
1113
- * Single option inside of a `<mc-select>` element.
1114
- */
1115
- class McOption {
1116
- constructor(element, changeDetectorRef, parent, group) {
1117
- this.element = element;
1118
- this.changeDetectorRef = changeDetectorRef;
1119
- this.parent = parent;
1120
- this.group = group;
1121
- /** Event emitted when the option is selected or deselected. */
1122
- // tslint:disable-next-line:no-output-on-prefix
1123
- this.onSelectionChange = new EventEmitter();
1124
- /** Emits when the state of the option changes and any parents have to be notified. */
1125
- this.stateChanges = new Subject();
1126
- this._id = `mc-option-${uniqueIdCounter++}`;
1127
- this._selected = false;
1128
- this._disabled = false;
1129
- this._active = false;
1130
- this.mostRecentViewValue = '';
1131
- }
1132
- get showCheckbox() {
1133
- return this._showCheckbox === undefined ? this.multiple : this._showCheckbox;
1134
- }
1135
- set showCheckbox(value) {
1136
- this._showCheckbox = coerceBooleanProperty(value);
1137
- }
1138
- /**
1139
- * The displayed value of the option. It is necessary to show the selected option in the
1140
- * select's trigger.
1141
- */
1142
- get viewValue() {
1143
- // TODO: Add input property alternative for node envs.
1144
- return (this.getHostElement().textContent || '').trim();
1145
- }
1146
- /** Whether the wrapping component is in multiple selection mode. */
1147
- get multiple() {
1148
- return this.parent && this.parent.multiple;
1149
- }
1150
- get id() {
1151
- return this._id;
1152
- }
1153
- get selected() {
1154
- return this._selected;
1155
- }
1156
- get disabled() {
1157
- return (this.group && this.group.disabled) || this._disabled;
1158
- }
1159
- set disabled(value) {
1160
- this._disabled = coerceBooleanProperty(value);
1161
- }
1162
- /**
1163
- * Whether or not the option is currently active and ready to be selected.
1164
- * An active option displays styles as if it is focused, but the
1165
- * focus is actually retained somewhere else. This comes in handy
1166
- * for components like autocomplete where focus must remain on the input.
1167
- */
1168
- get active() {
1169
- return this._active;
1170
- }
1171
- ngAfterViewChecked() {
1172
- // Since parent components could be using the option's label to display the selected values
1173
- // (e.g. `mc-select`) and they don't have a way of knowing if the option's label has changed
1174
- // we have to check for changes in the DOM ourselves and dispatch an event. These checks are
1175
- // relatively cheap, however we still limit them only to selected options in order to avoid
1176
- // hitting the DOM too often.
1177
- if (this._selected) {
1178
- const viewValue = this.viewValue;
1179
- if (viewValue !== this.mostRecentViewValue) {
1180
- this.mostRecentViewValue = viewValue;
1181
- this.stateChanges.next();
1182
- }
1183
- }
1184
- }
1185
- ngOnDestroy() {
1186
- this.stateChanges.complete();
1187
- }
1188
- getHeight() {
1189
- // tslint:disable-next-line:naming-convention
1190
- const DOMRect = this.element.nativeElement.getClientRects()[0];
1191
- return DOMRect ? DOMRect.height : 0;
1192
- }
1193
- select() {
1194
- if (!this._selected) {
1195
- this._selected = true;
1196
- this.changeDetectorRef.markForCheck();
1197
- this.emitSelectionChangeEvent();
1198
- }
1199
- }
1200
- deselect() {
1201
- if (this._selected) {
1202
- this._selected = false;
1203
- this.changeDetectorRef.markForCheck();
1204
- this.emitSelectionChangeEvent();
1205
- }
1206
- }
1207
- focus() {
1208
- const element = this.getHostElement();
1209
- if (typeof element.focus === 'function') {
1210
- element.focus();
1211
- }
1212
- }
1213
- /**
1214
- * This method sets display styles on the option to make it appear
1215
- * active. This is used by the ActiveDescendantKeyManager so key
1216
- * events will display the proper options as active on arrow key events.
1217
- */
1218
- setActiveStyles() {
1219
- if (!this._active) {
1220
- this._active = true;
1221
- this.changeDetectorRef.markForCheck();
1222
- }
1223
- }
1224
- /**
1225
- * This method removes display styles on the option that made it appear
1226
- * active. This is used by the ActiveDescendantKeyManager so key
1227
- * events will display the proper options as active on arrow key events.
1228
- */
1229
- setInactiveStyles() {
1230
- if (this._active) {
1231
- this._active = false;
1232
- this.changeDetectorRef.markForCheck();
1233
- }
1234
- }
1235
- /** Gets the label to be used when determining whether the option should be focused. */
1236
- getLabel() {
1237
- return this.viewValue;
1238
- }
1239
- /** Ensures the option is selected when activated from the keyboard. */
1240
- handleKeydown(event) {
1241
- // tslint:disable-next-line
1242
- if (event.keyCode === ENTER || event.keyCode === SPACE) {
1243
- this.selectViaInteraction();
1244
- // Prevent the page from scrolling down and form submits.
1245
- event.preventDefault();
1246
- }
1247
- }
1248
- /**
1249
- * `Selects the option while indicating the selection came from the user. Used to
1250
- * determine if the select's view -> model callback should be invoked.`
1251
- */
1252
- selectViaInteraction() {
1253
- if (!this.disabled) {
1254
- this._selected = this.multiple ? !this._selected : true;
1255
- this.changeDetectorRef.markForCheck();
1256
- this.emitSelectionChangeEvent(true);
1257
- }
1258
- }
1259
- getTabIndex() {
1260
- return this.disabled ? '-1' : '0';
1261
- }
1262
- getHostElement() {
1263
- return this.element.nativeElement;
1264
- }
1265
- /** Emits the selection change event. */
1266
- emitSelectionChangeEvent(isUserInput = false) {
1267
- this.onSelectionChange.emit(new McOptionSelectionChange(this, isUserInput));
1268
- }
1269
- }
1270
- /** @nocollapse */ McOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MC_OPTION_PARENT_COMPONENT, optional: true }, { token: McOptgroup, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1271
- /** @nocollapse */ McOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McOption, selector: "mc-option", inputs: { value: "value", showCheckbox: "showCheckbox", disabled: "disabled" }, outputs: { onSelectionChange: "onSelectionChange" }, host: { listeners: { "click": "selectViaInteraction()", "keydown": "handleKeydown($event)" }, properties: { "attr.tabindex": "getTabIndex()", "class.mc-selected": "selected", "class.mc-option-multiple": "multiple", "class.mc-active": "active", "class.mc-disabled": "disabled", "id": "id" }, classAttribute: "mc-option" }, providers: [{
1272
- provide: MC_TITLE_TEXT_REF, useExisting: McOption
1273
- }], viewQueries: [{ propertyName: "textElement", first: true, predicate: ["mcTitleText"], descendants: true }], exportAs: ["mcOption"], ngImport: i0, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<span #mcTitleText class=\"mc-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mc-option-overlay\"></div>\n", styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:var(--mc-option-size-height, 32px);border:var(--mc-option-size-border-width, 2px) solid transparent;cursor:pointer;outline:none;padding-left:var(--mc-option-size-horizontal-padding, 10px);padding-right:var(--mc-option-size-horizontal-padding, 10px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:calc(-1 * var(--mc-option-size-border-width, 2px));left:calc(-1 * var(--mc-option-size-border-width, 2px));right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["color", "state", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOption, decorators: [{
1275
- type: Component,
1276
- args: [{ selector: 'mc-option', exportAs: 'mcOption', host: {
1277
- '[attr.tabindex]': 'getTabIndex()',
1278
- class: 'mc-option',
1279
- '[class.mc-selected]': 'selected',
1280
- '[class.mc-option-multiple]': 'multiple',
1281
- '[class.mc-active]': 'active',
1282
- '[class.mc-disabled]': 'disabled',
1283
- '[id]': 'id',
1284
- '(click)': 'selectViaInteraction()',
1285
- '(keydown)': 'handleKeydown($event)'
1286
- }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
1287
- provide: MC_TITLE_TEXT_REF, useExisting: McOption
1288
- }], template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<span #mcTitleText class=\"mc-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mc-option-overlay\"></div>\n", styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:var(--mc-option-size-height, 32px);border:var(--mc-option-size-border-width, 2px) solid transparent;cursor:pointer;outline:none;padding-left:var(--mc-option-size-horizontal-padding, 10px);padding-right:var(--mc-option-size-horizontal-padding, 10px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:calc(-1 * var(--mc-option-size-border-width, 2px));left:calc(-1 * var(--mc-option-size-border-width, 2px));right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"] }]
1289
- }], ctorParameters: function () {
1290
- return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1291
- type: Optional
1292
- }, {
1293
- type: Inject,
1294
- args: [MC_OPTION_PARENT_COMPONENT]
1295
- }] }, { type: McOptgroup, decorators: [{
1296
- type: Optional
1297
- }] }];
1298
- }, propDecorators: { textElement: [{
1299
- type: ViewChild,
1300
- args: ['mcTitleText', { static: false }]
1301
- }], value: [{
1302
- type: Input
1303
- }], showCheckbox: [{
1304
- type: Input
1305
- }], onSelectionChange: [{
1306
- type: Output
1307
- }], disabled: [{
1308
- type: Input
1309
- }] } });
1310
- /**
1311
- * Counts the amount of option group labels that precede the specified option.
1312
- * @param optionIndex Index of the option at which to start counting.
1313
- * @param options Flat list of all of the options.
1314
- * @param optionGroups Flat list of all of the option groups.
1315
- * @docs-private
1316
- */
1317
- function countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {
1318
- if (optionGroups.length) {
1319
- const optionsArray = options.toArray();
1320
- const groups = optionGroups.toArray();
1321
- let groupCounter = 0;
1322
- for (let i = 0; i < optionIndex + 1; i++) {
1323
- if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
1324
- groupCounter++;
1325
- }
1326
- }
1327
- return groupCounter;
1328
- }
1329
- return 0;
1330
- }
1331
- /**
1332
- * Determines the position to which to scroll a panel in order for an option to be into view.
1333
- * @param optionIndex Index of the option to be scrolled into the view.
1334
- * @param optionHeight Height of the options.
1335
- * @param currentScrollPosition Current scroll position of the panel.
1336
- * @param panelHeight Height of the panel.
1337
- * @docs-private
1338
- */
1339
- function getOptionScrollPosition(optionIndex, optionHeight, currentScrollPosition, panelHeight) {
1340
- const optionOffset = optionIndex * optionHeight;
1341
- if (optionOffset < currentScrollPosition) {
1342
- return optionOffset;
1343
- }
1344
- if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {
1345
- return Math.max(0, optionOffset - panelHeight + optionHeight);
1346
- }
1347
- return currentScrollPosition;
1348
- }
1349
-
1350
- const MC_OPTION_ACTION_PARENT = new InjectionToken('MC_OPTION_ACTION_PARENT');
1351
- /** @docs-private */
1352
- class McOptionActionBase {
1353
- }
1354
- /** @docs-private */
1355
- const McOptionActionMixinBase = mixinTabIndex(mixinDisabled(McOptionActionBase));
1356
- class McOptionActionComponent extends McOptionActionMixinBase {
1357
- constructor(elementRef, focusMonitor, option) {
1358
- super();
1359
- this.elementRef = elementRef;
1360
- this.focusMonitor = focusMonitor;
1361
- this.option = option;
1362
- this.hasFocus = false;
1363
- this.destroy = new Subject();
1364
- this.focusMonitor.monitor(this.elementRef.nativeElement);
1365
- }
1366
- get active() {
1367
- var _a;
1368
- return this.hasFocus || !!((_a = this.option.dropdownTrigger) === null || _a === void 0 ? void 0 : _a.opened);
1369
- }
1370
- ngAfterViewInit() {
1371
- if (!this.option.dropdownTrigger) {
1372
- return;
1373
- }
1374
- this.option.dropdownTrigger.restoreFocus = false;
1375
- this.option.dropdownTrigger.dropdownClosed
1376
- .pipe(takeUntil(this.destroy))
1377
- .subscribe(() => {
1378
- this.preventShowingTooltip();
1379
- const destroyReason = this.option.dropdownTrigger.lastDestroyReason === 'keydown' ?
1380
- 'keyboard' :
1381
- 'program';
1382
- this.focus(destroyReason);
1383
- });
1384
- }
1385
- ngOnDestroy() {
1386
- this.destroy.next();
1387
- this.destroy.complete();
1388
- this.focusMonitor.stopMonitoring(this.elementRef.nativeElement);
1389
- }
1390
- focus(origin, options) {
1391
- if (this.focusMonitor && origin) {
1392
- this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);
1393
- }
1394
- else {
1395
- this.elementRef.nativeElement.focus();
1396
- }
1397
- this.hasFocus = true;
1398
- }
1399
- onFocus($event) {
1400
- $event.stopPropagation();
1401
- this.hasFocus = true;
1402
- }
1403
- onBlur() {
1404
- this.hasFocus = false;
1405
- }
1406
- onClick($event) {
1407
- $event.stopPropagation();
1408
- }
1409
- onKeyDown($event) {
1410
- if ([SPACE, ENTER].includes($event.keyCode) && this.option.dropdownTrigger) {
1411
- this.option.dropdownTrigger.openedBy = 'keyboard';
1412
- this.option.dropdownTrigger.toggle();
1413
- }
1414
- else if ($event.shiftKey && $event.keyCode === TAB) {
1415
- this.hasFocus = false;
1416
- this.option.focus();
1417
- }
1418
- else if ($event.keyCode === TAB) {
1419
- return;
1420
- }
1421
- $event.preventDefault();
1422
- $event.stopPropagation();
1423
- }
1424
- preventShowingTooltip() {
1425
- if (!this.option.tooltipTrigger) {
1426
- return;
1427
- }
1428
- this.option.tooltipTrigger.disabled = true;
1429
- setTimeout(() => this.option.tooltipTrigger.disabled = false);
1430
- }
1431
- }
1432
- /** @nocollapse */ McOptionActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptionActionComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.FocusMonitor }, { token: MC_OPTION_ACTION_PARENT }], target: i0.ɵɵFactoryTarget.Component });
1433
- /** @nocollapse */ McOptionActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McOptionActionComponent, selector: "mc-option-action", inputs: { disabled: "disabled" }, host: { listeners: { "focus": "onFocus($event)", "blur": "onBlur()", "click": "onClick($event)", "keydown": "onKeyDown($event)" }, properties: { "class.mc-expanded": "false", "attr.disabled": "disabled || null", "attr.tabIndex": "-1" }, classAttribute: "mc-option-action" }, queries: [{ propertyName: "customIcon", first: true, predicate: ["customIcon"], descendants: true }], exportAs: ["mcOptionAction"], usesInheritance: true, ngImport: i0, template: `
1434
- <ng-container [ngSwitch]="!!customIcon">
1435
- <i class="mc mc-icon mc-ellipsis_16" *ngSwitchCase="false"></i>
1436
- <ng-content select="[mc-icon]" *ngSwitchCase="true"></ng-content>
1437
- </ng-container>
1438
- `, isInline: true, styles: [".mc-option-action{box-sizing:unset;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:-2px;width:28px;height:100%;cursor:pointer;outline:none;border:2px solid transparent;background:transparent}.mc-option-action[disabled]{cursor:default}\n"], dependencies: [{ kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptionActionComponent, decorators: [{
1440
- type: Component,
1441
- args: [{ selector: 'mc-option-action', exportAs: 'mcOptionAction', template: `
1442
- <ng-container [ngSwitch]="!!customIcon">
1443
- <i class="mc mc-icon mc-ellipsis_16" *ngSwitchCase="false"></i>
1444
- <ng-content select="[mc-icon]" *ngSwitchCase="true"></ng-content>
1445
- </ng-container>
1446
- `, host: {
1447
- class: 'mc-option-action',
1448
- '[class.mc-expanded]': 'false',
1449
- '[attr.disabled]': 'disabled || null',
1450
- '[attr.tabIndex]': '-1',
1451
- '(focus)': 'onFocus($event)',
1452
- '(blur)': 'onBlur()',
1453
- '(click)': 'onClick($event)',
1454
- '(keydown)': 'onKeyDown($event)'
1455
- }, inputs: ['disabled'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mc-option-action{box-sizing:unset;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:-2px;width:28px;height:100%;cursor:pointer;outline:none;border:2px solid transparent;background:transparent}.mc-option-action[disabled]{cursor:default}\n"] }]
1456
- }], ctorParameters: function () {
1457
- return [{ type: i0.ElementRef }, { type: i1$1.FocusMonitor }, { type: undefined, decorators: [{
1458
- type: Inject,
1459
- args: [MC_OPTION_ACTION_PARENT]
1460
- }] }];
1461
- }, propDecorators: { customIcon: [{
1462
- type: ContentChild,
1463
- args: ['customIcon']
1464
- }] } });
1465
-
1466
- var MultipleMode;
1467
- (function (MultipleMode) {
1468
- MultipleMode["CHECKBOX"] = "checkbox";
1469
- MultipleMode["KEYBOARD"] = "keyboard";
1470
- })(MultipleMode || (MultipleMode = {}));
1471
-
1472
- class McPseudoCheckboxModule {
1473
- }
1474
- /** @nocollapse */ McPseudoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1475
- /** @nocollapse */ McPseudoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McPseudoCheckboxModule, declarations: [McPseudoCheckbox], imports: [CommonModule], exports: [McPseudoCheckbox] });
1476
- /** @nocollapse */ McPseudoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPseudoCheckboxModule, imports: [CommonModule] });
1477
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPseudoCheckboxModule, decorators: [{
1478
- type: NgModule,
1479
- args: [{
1480
- imports: [CommonModule],
1481
- exports: [McPseudoCheckbox],
1482
- declarations: [McPseudoCheckbox]
1483
- }]
1484
- }] });
1485
-
1486
- class McOptionModule {
1487
- }
1488
- /** @nocollapse */ McOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1489
- /** @nocollapse */ McOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McOptionModule, declarations: [McOption, McOptgroup, McOptionActionComponent], imports: [CommonModule, McPseudoCheckboxModule], exports: [McOption, McOptgroup, McOptionActionComponent] });
1490
- /** @nocollapse */ McOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptionModule, imports: [CommonModule, McPseudoCheckboxModule] });
1491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOptionModule, decorators: [{
1492
- type: NgModule,
1493
- args: [{
1494
- imports: [CommonModule, McPseudoCheckboxModule],
1495
- declarations: [McOption, McOptgroup, McOptionActionComponent],
1496
- exports: [McOption, McOptgroup, McOptionActionComponent]
1497
- }]
1498
- }] });
1499
-
1500
- const POSITION_MAP = {
1501
- top: {
1502
- originX: 'center',
1503
- originY: 'top',
1504
- overlayX: 'center',
1505
- overlayY: 'bottom'
1506
- },
1507
- topCenter: {
1508
- originX: 'center',
1509
- originY: 'top',
1510
- overlayX: 'center',
1511
- overlayY: 'bottom'
1512
- },
1513
- topLeft: {
1514
- originX: 'start',
1515
- originY: 'top',
1516
- overlayX: 'start',
1517
- overlayY: 'bottom'
1518
- },
1519
- topRight: {
1520
- originX: 'end',
1521
- originY: 'top',
1522
- overlayX: 'end',
1523
- overlayY: 'bottom'
1524
- },
1525
- right: {
1526
- originX: 'end',
1527
- originY: 'center',
1528
- overlayX: 'start',
1529
- overlayY: 'center'
1530
- },
1531
- rightTop: {
1532
- originX: 'end',
1533
- originY: 'top',
1534
- overlayX: 'start',
1535
- overlayY: 'top'
1536
- },
1537
- rightBottom: {
1538
- originX: 'end',
1539
- originY: 'bottom',
1540
- overlayX: 'start',
1541
- overlayY: 'bottom'
1542
- },
1543
- bottom: {
1544
- originX: 'center',
1545
- originY: 'bottom',
1546
- overlayX: 'center',
1547
- overlayY: 'top'
1548
- },
1549
- bottomCenter: {
1550
- originX: 'center',
1551
- originY: 'bottom',
1552
- overlayX: 'center',
1553
- overlayY: 'top'
1554
- },
1555
- bottomLeft: {
1556
- originX: 'start',
1557
- originY: 'bottom',
1558
- overlayX: 'start',
1559
- overlayY: 'top'
1560
- },
1561
- bottomRight: {
1562
- originX: 'end',
1563
- originY: 'bottom',
1564
- overlayX: 'end',
1565
- overlayY: 'top'
1566
- },
1567
- left: {
1568
- originX: 'start',
1569
- originY: 'center',
1570
- overlayX: 'end',
1571
- overlayY: 'center'
1572
- },
1573
- leftTop: {
1574
- originX: 'start',
1575
- originY: 'top',
1576
- overlayX: 'end',
1577
- overlayY: 'top'
1578
- },
1579
- leftBottom: {
1580
- originX: 'start',
1581
- originY: 'bottom',
1582
- overlayX: 'end',
1583
- overlayY: 'bottom'
1584
- }
1585
- };
1586
- const EXTENDED_OVERLAY_POSITIONS = objectValues([
1587
- POSITION_MAP.top,
1588
- POSITION_MAP.topLeft,
1589
- POSITION_MAP.topRight,
1590
- POSITION_MAP.right,
1591
- POSITION_MAP.rightTop,
1592
- POSITION_MAP.rightBottom,
1593
- POSITION_MAP.bottom,
1594
- POSITION_MAP.bottomLeft,
1595
- POSITION_MAP.bottomRight,
1596
- POSITION_MAP.left,
1597
- POSITION_MAP.leftTop,
1598
- POSITION_MAP.leftBottom
1599
- ]);
1600
- const TOP_POSITION_PRIORITY = objectValues([
1601
- POSITION_MAP.top,
1602
- POSITION_MAP.bottom,
1603
- POSITION_MAP.right,
1604
- POSITION_MAP.rightBottom,
1605
- POSITION_MAP.leftBottom,
1606
- POSITION_MAP.bottomLeft,
1607
- POSITION_MAP.bottomRight
1608
- ]);
1609
- const BOTTOM_POSITION_PRIORITY = objectValues([
1610
- POSITION_MAP.bottom,
1611
- POSITION_MAP.top,
1612
- POSITION_MAP.topLeft,
1613
- POSITION_MAP.topRight,
1614
- POSITION_MAP.rightBottom,
1615
- POSITION_MAP.leftBottom
1616
- ]);
1617
- const RIGHT_POSITION_PRIORITY = objectValues([
1618
- POSITION_MAP.right,
1619
- POSITION_MAP.left,
1620
- POSITION_MAP.leftTop,
1621
- POSITION_MAP.leftBottom,
1622
- POSITION_MAP.top,
1623
- POSITION_MAP.bottom
1624
- ]);
1625
- const LEFT_POSITION_PRIORITY = objectValues([
1626
- POSITION_MAP.left,
1627
- POSITION_MAP.right,
1628
- POSITION_MAP.rightTop,
1629
- POSITION_MAP.rightBottom,
1630
- POSITION_MAP.top,
1631
- POSITION_MAP.bottom
1632
- ]);
1633
- const RIGHT_TOP_POSITION_PRIORITY = objectValues([
1634
- POSITION_MAP.rightTop,
1635
- POSITION_MAP.leftTop,
1636
- POSITION_MAP.left,
1637
- POSITION_MAP.leftBottom,
1638
- POSITION_MAP.topLeft,
1639
- POSITION_MAP.bottomLeft
1640
- ]);
1641
- const RIGHT_BOTTOM_POSITION_PRIORITY = objectValues([
1642
- POSITION_MAP.rightBottom,
1643
- POSITION_MAP.leftBottom,
1644
- POSITION_MAP.left,
1645
- POSITION_MAP.leftTop,
1646
- POSITION_MAP.topLeft,
1647
- POSITION_MAP.bottomLeft
1648
- ]);
1649
- const LEFT_TOP_POSITION_PRIORITY = objectValues([
1650
- POSITION_MAP.leftTop,
1651
- POSITION_MAP.rightTop,
1652
- POSITION_MAP.right,
1653
- POSITION_MAP.rightBottom,
1654
- POSITION_MAP.topRight,
1655
- POSITION_MAP.bottomRight
1656
- ]);
1657
- const LEFT_BOTTOM_POSITION_PRIORITY = objectValues([
1658
- POSITION_MAP.leftBottom,
1659
- POSITION_MAP.rightBottom,
1660
- POSITION_MAP.right,
1661
- POSITION_MAP.rightTop,
1662
- POSITION_MAP.topRight,
1663
- POSITION_MAP.bottomRight
1664
- ]);
1665
- const TOP_LEFT_POSITION_PRIORITY = objectValues([
1666
- POSITION_MAP.topLeft,
1667
- POSITION_MAP.topRight,
1668
- POSITION_MAP.bottomLeft,
1669
- POSITION_MAP.bottom,
1670
- POSITION_MAP.bottomRight,
1671
- POSITION_MAP.leftBottom,
1672
- POSITION_MAP.rightBottom
1673
- ]);
1674
- const TOP_RIGHT_POSITION_PRIORITY = objectValues([
1675
- POSITION_MAP.topRight,
1676
- POSITION_MAP.topLeft,
1677
- POSITION_MAP.bottomRight,
1678
- POSITION_MAP.bottom,
1679
- POSITION_MAP.bottomLeft,
1680
- POSITION_MAP.leftBottom,
1681
- POSITION_MAP.rightBottom
1682
- ]);
1683
- const BOTTOM_RIGHT_POSITION_PRIORITY = objectValues([
1684
- POSITION_MAP.bottomRight,
1685
- POSITION_MAP.bottomLeft,
1686
- POSITION_MAP.topRight,
1687
- POSITION_MAP.top,
1688
- POSITION_MAP.topLeft,
1689
- POSITION_MAP.leftTop,
1690
- POSITION_MAP.rightTop
1691
- ]);
1692
- const BOTTOM_LEFT_POSITION_PRIORITY = objectValues([
1693
- POSITION_MAP.bottomLeft,
1694
- POSITION_MAP.bottomRight,
1695
- POSITION_MAP.topLeft,
1696
- POSITION_MAP.top,
1697
- POSITION_MAP.topRight,
1698
- POSITION_MAP.rightTop,
1699
- POSITION_MAP.leftTop
1700
- ]);
1701
- const POSITION_PRIORITY_STRATEGY = {
1702
- top: TOP_POSITION_PRIORITY,
1703
- topLeft: TOP_LEFT_POSITION_PRIORITY,
1704
- topRight: TOP_RIGHT_POSITION_PRIORITY,
1705
- bottom: BOTTOM_POSITION_PRIORITY,
1706
- bottomLeft: BOTTOM_LEFT_POSITION_PRIORITY,
1707
- bottomRight: BOTTOM_RIGHT_POSITION_PRIORITY,
1708
- left: LEFT_POSITION_PRIORITY,
1709
- leftTop: LEFT_TOP_POSITION_PRIORITY,
1710
- leftBottom: LEFT_BOTTOM_POSITION_PRIORITY,
1711
- right: RIGHT_POSITION_PRIORITY,
1712
- rightTop: RIGHT_TOP_POSITION_PRIORITY,
1713
- rightBottom: RIGHT_BOTTOM_POSITION_PRIORITY
1714
- };
1715
- const POSITION_TO_CSS_MAP = {
1716
- top: 'top',
1717
- topLeft: 'top-left',
1718
- topRight: 'top-right',
1719
- right: 'right',
1720
- rightTop: 'right-top',
1721
- rightBottom: 'right-bottom',
1722
- left: 'left',
1723
- leftTop: 'left-top',
1724
- leftBottom: 'left-bottom',
1725
- bottom: 'bottom',
1726
- bottomLeft: 'bottom-left',
1727
- bottomRight: 'bottom-right'
1728
- };
1729
- function arrayMap(array, iteratee) {
1730
- let index = -1;
1731
- const length = array === null ? 0 : array.length;
1732
- const result = Array(length);
1733
- while (++index < length) {
1734
- result[index] = iteratee(array[index], index, array);
1735
- }
1736
- return result;
1737
- }
1738
- function baseValues(object, props) {
1739
- return arrayMap(props, (key) => object[key]);
1740
- }
1741
- function objectValues(object) {
1742
- return object === null ? [] : baseValues(object, Object.keys(object));
1743
- }
1744
-
1745
- var PopUpPlacements;
1746
- (function (PopUpPlacements) {
1747
- PopUpPlacements["Top"] = "top";
1748
- PopUpPlacements["TopLeft"] = "topLeft";
1749
- PopUpPlacements["TopRight"] = "topRight";
1750
- PopUpPlacements["Right"] = "right";
1751
- PopUpPlacements["RightTop"] = "rightTop";
1752
- PopUpPlacements["RightBottom"] = "rightBottom";
1753
- PopUpPlacements["Left"] = "left";
1754
- PopUpPlacements["LeftTop"] = "leftTop";
1755
- PopUpPlacements["LeftBottom"] = "leftBottom";
1756
- PopUpPlacements["Bottom"] = "bottom";
1757
- PopUpPlacements["BottomLeft"] = "bottomLeft";
1758
- PopUpPlacements["BottomRight"] = "bottomRight";
1759
- })(PopUpPlacements || (PopUpPlacements = {}));
1760
- var PopUpVisibility;
1761
- (function (PopUpVisibility) {
1762
- PopUpVisibility["Initial"] = "initial";
1763
- PopUpVisibility["Visible"] = "visible";
1764
- PopUpVisibility["Hidden"] = "hidden";
1765
- })(PopUpVisibility || (PopUpVisibility = {}));
1766
- var PopUpTriggers;
1767
- (function (PopUpTriggers) {
1768
- PopUpTriggers["Click"] = "click";
1769
- PopUpTriggers["Focus"] = "focus";
1770
- PopUpTriggers["Hover"] = "hover";
1771
- })(PopUpTriggers || (PopUpTriggers = {}));
1772
- var PopUpSizes;
1773
- (function (PopUpSizes) {
1774
- PopUpSizes["Small"] = "small";
1775
- PopUpSizes["Medium"] = "medium";
1776
- // Normal is deprecated and will be deleted in 16.x
1777
- PopUpSizes["Normal"] = "medium";
1778
- PopUpSizes["Large"] = "large";
1779
- })(PopUpSizes || (PopUpSizes = {}));
1780
-
1781
- // tslint:disable-next-line:naming-convention
1782
- class McPopUp {
1783
- constructor(changeDetectorRef) {
1784
- this.changeDetectorRef = changeDetectorRef;
1785
- this.classMap = {};
1786
- this.visibility = PopUpVisibility.Initial;
1787
- this.visibleChange = new EventEmitter();
1788
- /** Subject for notifying that the tooltip has been hidden from the view */
1789
- this.onHideSubject = new Subject();
1790
- this.closeOnInteraction = false;
1791
- }
1792
- ngOnDestroy() {
1793
- clearTimeout(this.showTimeoutId);
1794
- clearTimeout(this.hideTimeoutId);
1795
- this.onHideSubject.complete();
1796
- }
1797
- isTemplateRef(value) {
1798
- return value instanceof TemplateRef;
1799
- }
1800
- show(delay) {
1801
- if (this.hideTimeoutId) {
1802
- clearTimeout(this.hideTimeoutId);
1803
- }
1804
- this.closeOnInteraction = true;
1805
- this.showTimeoutId = setTimeout(() => {
1806
- this.showTimeoutId = undefined;
1807
- this.visibility = PopUpVisibility.Visible;
1808
- this.visibleChange.emit(true);
1809
- // Mark for check so if any parent component has set the
1810
- // ChangeDetectionStrategy to OnPush it will be checked anyways
1811
- this.markForCheck();
1812
- }, delay);
1813
- }
1814
- hide(delay) {
1815
- if (this.showTimeoutId) {
1816
- clearTimeout(this.showTimeoutId);
1817
- }
1818
- this.hideTimeoutId = setTimeout(() => {
1819
- this.hideTimeoutId = undefined;
1820
- this.visibility = PopUpVisibility.Hidden;
1821
- this.visibleChange.emit(false);
1822
- this.onHideSubject.next();
1823
- // Mark for check so if any parent component has set the
1824
- // ChangeDetectionStrategy to OnPush it will be checked anyways
1825
- this.markForCheck();
1826
- }, delay);
1827
- }
1828
- isVisible() {
1829
- return this.visibility === PopUpVisibility.Visible;
1830
- }
1831
- updateClassMap(placement, customClass, classMap) {
1832
- this.classMap = Object.assign({ [`${this.prefix}_placement-${placement}`]: true, [customClass]: !!customClass }, classMap);
1833
- }
1834
- /** Returns an observable that notifies when the tooltip has been hidden from view. */
1835
- afterHidden() {
1836
- return this.onHideSubject.asObservable();
1837
- }
1838
- markForCheck() {
1839
- this.changeDetectorRef.markForCheck();
1840
- }
1841
- detectChanges() {
1842
- this.changeDetectorRef.detectChanges();
1843
- }
1844
- animationStart() {
1845
- this.closeOnInteraction = false;
1846
- }
1847
- animationDone({ toState }) {
1848
- if (toState === PopUpVisibility.Hidden && !this.isVisible()) {
1849
- this.onHideSubject.next();
1850
- }
1851
- if (toState === PopUpVisibility.Visible || toState === PopUpVisibility.Hidden) {
1852
- this.closeOnInteraction = true;
1853
- }
1854
- }
1855
- handleBodyInteraction() {
1856
- if (this.closeOnInteraction) {
1857
- this.hide(0);
1858
- }
1859
- }
1860
- }
1861
- /** @nocollapse */ McPopUp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPopUp, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
1862
- /** @nocollapse */ McPopUp.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McPopUp, ngImport: i0 });
1863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPopUp, decorators: [{
1864
- type: Directive
1865
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
1866
-
1867
- // tslint:disable-next-line:naming-convention
1868
- class McPopUpTrigger {
1869
- constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
1870
- this.overlay = overlay;
1871
- this.elementRef = elementRef;
1872
- this.ngZone = ngZone;
1873
- this.scrollDispatcher = scrollDispatcher;
1874
- this.hostView = hostView;
1875
- this.scrollStrategy = scrollStrategy;
1876
- this.direction = direction;
1877
- this.isOpen = false;
1878
- this.enterDelay = 0;
1879
- this.leaveDelay = 0;
1880
- this.placement = PopUpPlacements.Top;
1881
- this.placementPriority = null;
1882
- this.visible = false;
1883
- this.listeners = new Map();
1884
- this.destroyed = new Subject();
1885
- this.detach = () => {
1886
- var _a;
1887
- if ((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
1888
- this.overlayRef.detach();
1889
- }
1890
- this.instance = null;
1891
- };
1892
- this.onPositionChange = ($event) => {
1893
- if (!this.instance) {
1894
- return;
1895
- }
1896
- let newPlacement = this.placement;
1897
- const { originX, originY, overlayX, overlayY } = $event.connectionPair;
1898
- Object.keys(this.availablePositions).some((key) => {
1899
- if (originX === this.availablePositions[key].originX && originY === this.availablePositions[key].originY &&
1900
- overlayX === this.availablePositions[key].overlayX && overlayY === this.availablePositions[key].overlayY) {
1901
- newPlacement = key;
1902
- return true;
1903
- }
1904
- return false;
1905
- });
1906
- this.placementChange.emit(newPlacement);
1907
- this.updateClassMap(newPlacement);
1908
- this.instance.detectChanges();
1909
- };
1910
- this.addEventListener = (listener, event) => {
1911
- this.elementRef.nativeElement.addEventListener(event, listener);
1912
- };
1913
- this.removeEventListener = (listener, event) => {
1914
- this.elementRef.nativeElement.removeEventListener(event, listener);
1915
- };
1916
- this.availablePositions = POSITION_MAP;
1917
- }
1918
- ngOnInit() {
1919
- this.initListeners();
1920
- }
1921
- ngOnDestroy() {
1922
- var _a;
1923
- (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
1924
- this.listeners.forEach(this.removeEventListener);
1925
- this.listeners.clear();
1926
- this.destroyed.next();
1927
- this.destroyed.complete();
1928
- }
1929
- updatePlacement(value) {
1930
- if (POSITION_TO_CSS_MAP[value]) {
1931
- this.placement = value;
1932
- this.updateClassMap();
1933
- }
1934
- else {
1935
- this.placement = PopUpPlacements.Top;
1936
- console.warn(`Unknown position: ${value}. Will used default position: ${this.placement}`);
1937
- }
1938
- if (this.visible) {
1939
- this.updatePosition();
1940
- }
1941
- }
1942
- updatePlacementPriority(value) {
1943
- if (value && value.length > 0) {
1944
- this.placementPriority = value;
1945
- }
1946
- else {
1947
- this.placementPriority = null;
1948
- }
1949
- }
1950
- updateVisible(externalValue) {
1951
- const value = coerceBooleanProperty(externalValue);
1952
- if (this.visible !== value) {
1953
- this.visible = value;
1954
- if (value) {
1955
- this.show();
1956
- }
1957
- else {
1958
- this.hide();
1959
- }
1960
- }
1961
- }
1962
- handleKeydown(event) {
1963
- if (this.isOpen && event.keyCode === ESCAPE) { // tslint:disable-line
1964
- this.hide();
1965
- }
1966
- }
1967
- handleTouchend() {
1968
- this.hide();
1969
- }
1970
- show(delay = this.enterDelay) {
1971
- if (this.disabled || this.instance) {
1972
- return;
1973
- }
1974
- this.overlayRef = this.createOverlay();
1975
- this.subscribeOnClosingActions();
1976
- this.detach();
1977
- this.portal = this.portal || new ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
1978
- this.instance = this.overlayRef.attach(this.portal).instance;
1979
- this.instance.afterHidden()
1980
- .pipe(takeUntil(this.destroyed))
1981
- .subscribe(this.detach);
1982
- this.updateClassMap();
1983
- this.updateData();
1984
- this.instance.visibleChange
1985
- .pipe(takeUntil(this.destroyed), distinctUntilChanged())
1986
- .subscribe((value) => {
1987
- this.visible = value;
1988
- this.visibleChange.emit(value);
1989
- this.isOpen = value;
1990
- });
1991
- this.updatePosition();
1992
- this.instance.show(delay);
1993
- }
1994
- hide(delay = this.leaveDelay) {
1995
- if (this.instance) {
1996
- this.instance.hide(delay);
1997
- }
1998
- }
1999
- /** Create the overlay config and position strategy */
2000
- createOverlay() {
2001
- if (this.overlayRef) {
2002
- return this.overlayRef;
2003
- }
2004
- // Create connected position strategy that listens for scroll events to reposition.
2005
- const strategy = this.overlay
2006
- .position()
2007
- .flexibleConnectedTo(this.elementRef)
2008
- .withTransformOriginOn(this.originSelector)
2009
- .withFlexibleDimensions(false)
2010
- .withPositions([...EXTENDED_OVERLAY_POSITIONS])
2011
- .withLockedPosition()
2012
- .withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.elementRef));
2013
- strategy.positionChanges
2014
- .pipe(takeUntil(this.destroyed))
2015
- .subscribe(this.onPositionChange);
2016
- this.overlayRef = this.overlay.create(Object.assign(Object.assign({}, this.overlayConfig), { direction: this.direction, positionStrategy: strategy, scrollStrategy: this.scrollStrategy() }));
2017
- this.subscribeOnClosingActions();
2018
- this.overlayRef.detachments()
2019
- .pipe(takeUntil(this.destroyed))
2020
- .subscribe(this.detach);
2021
- return this.overlayRef;
2022
- }
2023
- initListeners() {
2024
- this.clearListeners();
2025
- if (this.trigger.includes(PopUpTriggers.Click)) {
2026
- this.listeners
2027
- .set('click', () => this.show())
2028
- .forEach(this.addEventListener);
2029
- }
2030
- if (this.trigger.includes(PopUpTriggers.Hover)) {
2031
- this.listeners
2032
- .set('mouseenter', () => this.show())
2033
- .set('mouseleave', () => this.hide())
2034
- .forEach(this.addEventListener);
2035
- }
2036
- if (this.trigger.includes(PopUpTriggers.Focus)) {
2037
- this.listeners
2038
- .set('focus', () => this.show())
2039
- .set('blur', () => this.hide())
2040
- .forEach(this.addEventListener);
2041
- }
2042
- }
2043
- /** Updates the position of the current popover. */
2044
- updatePosition(reapplyPosition = false) {
2045
- this.overlayRef = this.createOverlay();
2046
- this.subscribeOnClosingActions();
2047
- const position = this.overlayRef.getConfig().positionStrategy
2048
- .withPositions(this.getPrioritizedPositions())
2049
- .withPush(true);
2050
- if (reapplyPosition) {
2051
- setTimeout(() => position.reapplyLastPosition());
2052
- }
2053
- }
2054
- getPriorityPlacementStrategy(value) {
2055
- const result = [];
2056
- const possiblePositions = Object.keys(this.availablePositions);
2057
- if (Array.isArray(value)) {
2058
- value.forEach((position) => {
2059
- if (possiblePositions.includes(position)) {
2060
- result.push(this.availablePositions[position]);
2061
- }
2062
- });
2063
- }
2064
- else if (possiblePositions.includes(value)) {
2065
- result.push(this.availablePositions[value]);
2066
- }
2067
- return result;
2068
- }
2069
- getPrioritizedPositions() {
2070
- if (this.placementPriority) {
2071
- return this.getPriorityPlacementStrategy(this.placementPriority);
2072
- }
2073
- return POSITION_PRIORITY_STRATEGY[this.placement];
2074
- }
2075
- clearListeners() {
2076
- this.listeners.forEach(this.removeEventListener);
2077
- this.listeners.clear();
2078
- }
2079
- subscribeOnClosingActions() {
2080
- var _a;
2081
- (_a = this.closingActionsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2082
- this.closingActionsSubscription = this.closingActions()
2083
- .pipe(takeUntil(this.destroyed))
2084
- .pipe(delay(0))
2085
- .subscribe((event) => {
2086
- if ((event === null || event === void 0 ? void 0 : event.type) === 'click' && event.mcPopoverPreventHide) {
2087
- return;
2088
- }
2089
- this.hide();
2090
- });
2091
- }
2092
- }
2093
- /** @nocollapse */ McPopUpTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPopUpTrigger, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
2094
- /** @nocollapse */ McPopUpTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McPopUpTrigger, ngImport: i0 });
2095
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPopUpTrigger, decorators: [{
2096
- type: Directive
2097
- }], ctorParameters: function () { return [{ type: i1$2.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: undefined }, { type: i2$1.Directionality }]; } });
2098
-
2099
- const selectEvents = 'selectEvents';
2100
-
2101
- /**
2102
- * Returns an exception to be thrown when attempting to change a select's `multiple` option
2103
- * after initialization.
2104
- * @docs-private
2105
- */
2106
- function getMcSelectDynamicMultipleError() {
2107
- return Error('Cannot change `multiple` mode of select after initialization.');
2108
- }
2109
- /**
2110
- * Returns an exception to be thrown when attempting to assign a non-array value to a select
2111
- * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
2112
- * resetting the value.
2113
- * @docs-private
2114
- */
2115
- function getMcSelectNonArrayValueError() {
2116
- return Error('Value must be an array in multiple-selection mode.');
2117
- }
2118
- /**
2119
- * Returns an exception to be thrown when assigning a non-function value to the comparator
2120
- * used to determine if a value corresponds to an option. Note that whether the function
2121
- * actually takes two values and returns a boolean is not checked.
2122
- */
2123
- function getMcSelectNonFunctionValueError() {
2124
- return Error('`compareWith` must be a function.');
2125
- }
2126
-
2127
- /** The max height of the select's overlay panel */
2128
- const SELECT_PANEL_MAX_HEIGHT = 224;
2129
- /** The panel's padding on the x-axis */
2130
- const SELECT_PANEL_PADDING_X = 1;
2131
- /** The panel's x axis padding if it is indented (e.g. there is an option group). */
2132
- /* tslint:disable-next-line:no-magic-numbers */
2133
- const SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_PADDING_X * 2;
2134
- /**
2135
- * The select panel will only "fit" inside the viewport if it is positioned at
2136
- * this value or more away from the viewport boundary.
2137
- */
2138
- const SELECT_PANEL_VIEWPORT_PADDING = 8;
2139
- /** Injection token that determines the scroll handling while a select is open. */
2140
- const MC_SELECT_SCROLL_STRATEGY = new InjectionToken('mc-select-scroll-strategy');
2141
- /** @docs-private */
2142
- function mcSelectScrollStrategyProviderFactory(overlay) {
2143
- return () => overlay.scrollStrategies.reposition();
2144
- }
2145
- /** @docs-private */
2146
- const MC_SELECT_SCROLL_STRATEGY_PROVIDER = {
2147
- provide: MC_SELECT_SCROLL_STRATEGY,
2148
- deps: [Overlay],
2149
- useFactory: mcSelectScrollStrategyProviderFactory
2150
- };
2151
-
2152
- class McMeasureScrollbarService {
2153
- constructor(document) {
2154
- this.document = document;
2155
- this.scrollbarMeasure = {
2156
- position: 'absolute',
2157
- top: '-9999px',
2158
- width: '50px',
2159
- height: '50px',
2160
- overflow: 'scroll'
2161
- };
2162
- this.initScrollBarWidth();
2163
- }
2164
- get scrollBarWidth() {
2165
- if (this._scrollBarWidth) {
2166
- return this._scrollBarWidth;
2167
- }
2168
- this.initScrollBarWidth();
2169
- return this._scrollBarWidth;
2170
- }
2171
- initScrollBarWidth() {
2172
- const scrollDiv = this.document.createElement('div');
2173
- // tslint:disable-next-line
2174
- for (const scrollProp in this.scrollbarMeasure) {
2175
- if (this.scrollbarMeasure.hasOwnProperty(scrollProp)) {
2176
- scrollDiv.style[scrollProp] = this.scrollbarMeasure[scrollProp];
2177
- }
2178
- }
2179
- this.document.body.appendChild(scrollDiv);
2180
- const width = scrollDiv.offsetWidth - scrollDiv.clientWidth;
2181
- this.document.body.removeChild(scrollDiv);
2182
- this._scrollBarWidth = width;
2183
- }
2184
- }
2185
- /** @nocollapse */ McMeasureScrollbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McMeasureScrollbarService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2186
- /** @nocollapse */ McMeasureScrollbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McMeasureScrollbarService, providedIn: 'root' });
2187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McMeasureScrollbarService, decorators: [{
2188
- type: Injectable,
2189
- args: [{
2190
- providedIn: 'root'
2191
- }]
2192
- }], ctorParameters: function () {
2193
- return [{ type: undefined, decorators: [{
2194
- type: Inject,
2195
- args: [DOCUMENT]
2196
- }] }];
2197
- } });
2198
-
2199
- function isBoolean(val) { return typeof val === 'boolean'; }
2200
- function toBoolean(value) {
2201
- return value != null && `${value}` !== 'false';
2202
- }
2203
-
2204
- var MeasurementSystem;
2205
- (function (MeasurementSystem) {
2206
- MeasurementSystem["SI"] = "SI";
2207
- MeasurementSystem["IEC"] = "IEC";
2208
- })(MeasurementSystem || (MeasurementSystem = {}));
2209
- const sizeUnitsConfig = {
2210
- defaultUnitSystem: MeasurementSystem.SI,
2211
- defaultPrecision: 2,
2212
- unitSystems: {
2213
- [MeasurementSystem.SI]: {
2214
- abbreviations: ['B', 'KB', 'MB', 'GB', 'TB'],
2215
- base: 10,
2216
- power: 3
2217
- },
2218
- [MeasurementSystem.IEC]: {
2219
- abbreviations: ['B', 'KiB', 'MiB', 'GiB', 'TiB'],
2220
- base: 2,
2221
- power: 10
2222
- }
2223
- }
2224
- };
2225
-
2226
- const formatDataSize = (value, systemCode = sizeUnitsConfig.defaultUnitSystem, precision = sizeUnitsConfig.defaultPrecision) => {
2227
- const system = sizeUnitsConfig.unitSystems[systemCode];
2228
- const { result, unit } = getHumanizedBytes(value, systemCode);
2229
- let volume;
2230
- if (system.abbreviations[0] === unit) {
2231
- volume = result.toString();
2232
- }
2233
- else {
2234
- volume = result.toFixed(precision).replace(/\./g, ',');
2235
- }
2236
- return {
2237
- value: volume,
2238
- unit
2239
- };
2240
- };
2241
- /**
2242
- * Переводит байты в Кб, Мб, Гб
2243
- *
2244
- * @param value количество байт
2245
- * @param systemCode система измерения
2246
- * @param threshold нижний порог подсчета
2247
- */
2248
- const getHumanizedBytes = (value, systemCode = sizeUnitsConfig.defaultUnitSystem, threshold) => {
2249
- const system = sizeUnitsConfig.unitSystems[systemCode];
2250
- if (!system) {
2251
- throw new Error(`Unit system "${systemCode}" not configured!`);
2252
- }
2253
- if (!Number.isFinite(value)) {
2254
- throw new Error('Argument "value" must be number!');
2255
- }
2256
- const caculatedThreshold = Number.isFinite(threshold)
2257
- ? threshold : Math.pow(system.base, system.power);
2258
- const orderOfMagnitude = Math.pow(system.base, system.power);
2259
- let result = value;
2260
- let step = 0;
2261
- const len = system.abbreviations.length - 1;
2262
- while (step < len) {
2263
- if (caculatedThreshold !== undefined && result < caculatedThreshold) {
2264
- break;
2265
- }
2266
- step++;
2267
- result = value / Math.pow(orderOfMagnitude, step);
2268
- }
2269
- return {
2270
- result,
2271
- unit: system.abbreviations[step]
2272
- };
2273
- };
2274
-
2275
- class McDataSizePipe {
2276
- transform(source, precision = 2, measurementSystem = MeasurementSystem.SI) {
2277
- const { value, unit } = formatDataSize(source, measurementSystem, precision);
2278
- return `${value} ${unit}`;
2279
- }
2280
- }
2281
- /** @nocollapse */ McDataSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDataSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2282
- /** @nocollapse */ McDataSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McDataSizePipe, name: "mcDataSize" });
2283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDataSizePipe, decorators: [{
2284
- type: Pipe,
2285
- args: [{
2286
- name: 'mcDataSize'
2287
- }]
2288
- }] });
2289
- class McDataSizeModule {
2290
- }
2291
- /** @nocollapse */ McDataSizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDataSizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2292
- /** @nocollapse */ McDataSizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McDataSizeModule, declarations: [McDataSizePipe], exports: [McDataSizePipe] });
2293
- /** @nocollapse */ McDataSizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDataSizeModule });
2294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McDataSizeModule, decorators: [{
2295
- type: NgModule,
2296
- args: [{
2297
- imports: [],
2298
- exports: [McDataSizePipe],
2299
- declarations: [McDataSizePipe]
2300
- }]
2301
- }] });
2302
-
2303
- const validationTooltipShowDelay = 10;
2304
- const validationTooltipHideDelay = 3000;
2305
- const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
2306
-
2307
- const VERSION = new Version('15.6.0+sha-7ad3c34');
2308
-
2309
- /**
2310
- * Generated bundle index. Do not edit.
2311
- */
2312
-
2313
- export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_DATE_FORMATS, MC_DATE_LOCALE, MC_DATE_LOCALE_FACTORY, MC_DEFAULT_LOCALE_DATA_FACTORY, MC_DEFAULT_LOCALE_ID, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_DATA, MC_LOCALE_ID, MC_LOCALE_SERVICE, MC_NUMBER_FORMATTER_DEFAULT_OPTIONS, MC_NUMBER_FORMATTER_OPTIONS, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_TITLE_TEXT_REF, MC_VALIDATION, McCommonModule, McDataSizeModule, McDataSizePipe, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McLocaleService, McLocaleServiceModule, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, MeasurementSystem, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, countGroupLabelsBeforeOption, escapeRegExp, fadeAnimation, formatDataSize, getHumanizedBytes, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, sizeUnitsConfig, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
2314
- //# sourceMappingURL=ptsecurity-mosaic-core.mjs.map