@ptsecurity/mosaic 12.2.1 → 13.1.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 (913) hide show
  1. package/_theming.scss +1000 -934
  2. package/_visual.scss +849 -694
  3. package/autocomplete/README.md +0 -0
  4. package/autocomplete/package.json +5 -5
  5. package/button/README.md +0 -0
  6. package/button/button.component.d.ts +17 -14
  7. package/button/button.module.d.ts +1 -1
  8. package/button/package.json +5 -5
  9. package/button-toggle/README.md +0 -0
  10. package/button-toggle/package.json +5 -5
  11. package/card/README.md +0 -0
  12. package/card/package.json +5 -5
  13. package/checkbox/README.md +1 -0
  14. package/checkbox/package.json +5 -5
  15. package/core/formatters/date/formatter.d.ts +41 -17
  16. package/core/formatters/date/templates/en-US.d.ts +8 -8
  17. package/core/formatters/date/templates/ru-RU.d.ts +8 -8
  18. package/core/package.json +5 -5
  19. package/core/public-api.d.ts +1 -0
  20. package/core/version.d.ts +2 -0
  21. package/datepicker/README.md +0 -0
  22. package/datepicker/package.json +5 -5
  23. package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
  24. package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
  25. package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +0 -0
  26. package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
  27. package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
  28. package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
  29. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +39 -0
  30. package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
  31. package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
  32. package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
  33. package/design-tokens/{tokens → legacy-2017/tokens}/components/form-field.json5 +0 -0
  34. package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
  35. package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
  36. package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
  37. package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
  38. package/design-tokens/legacy-2017/tokens/components/modal.json5 +79 -0
  39. package/design-tokens/legacy-2017/tokens/components/navbar.json5 +69 -0
  40. package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
  41. package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
  42. package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
  43. package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
  44. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
  45. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
  46. package/design-tokens/legacy-2017/tokens/components/radio.json5 +44 -0
  47. package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
  48. package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
  49. package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
  50. package/design-tokens/{tokens → legacy-2017/tokens}/components/tabs.json5 +0 -0
  51. package/design-tokens/legacy-2017/tokens/components/tags.json5 +132 -0
  52. package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
  53. package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
  54. package/design-tokens/legacy-2017/tokens/components/toggle.json5 +79 -0
  55. package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
  56. package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
  57. package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
  58. package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +0 -0
  59. package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
  60. package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +0 -0
  61. package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
  62. package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
  63. package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
  64. package/design-tokens/legacy-2017/tokens.d.ts +7659 -0
  65. package/design-tokens/package.json +5 -5
  66. package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
  67. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
  68. package/design-tokens/pt-2022/tokens/components/badge.json5 +184 -0
  69. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
  70. package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
  71. package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
  72. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
  73. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
  74. package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
  75. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
  76. package/design-tokens/pt-2022/tokens/components/form-field.json5 +52 -0
  77. package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
  78. package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
  79. package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
  80. package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
  81. package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
  82. package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
  83. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
  84. package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
  85. package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
  86. package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
  87. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
  88. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
  89. package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
  90. package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
  91. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
  92. package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
  93. package/design-tokens/pt-2022/tokens/components/tabs.json5 +25 -0
  94. package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
  95. package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
  96. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
  97. package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
  98. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
  99. package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
  100. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
  101. package/design-tokens/pt-2022/tokens/properties/colors.json5 +112 -0
  102. package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
  103. package/design-tokens/pt-2022/tokens/properties/globals.json5 +30 -0
  104. package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
  105. package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
  106. package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
  107. package/design-tokens/pt-2022/tokens.d.ts +8696 -0
  108. package/design-tokens/public-api.d.ts +3 -1
  109. package/design-tokens/style-dictionary/build.js +6 -0
  110. package/design-tokens/style-dictionary/configs/index.js +2 -1
  111. package/divider/README.md +0 -0
  112. package/divider/package.json +5 -5
  113. package/dropdown/dropdown-item.component.d.ts +1 -0
  114. package/dropdown/package.json +5 -5
  115. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +21 -0
  116. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +555 -0
  117. package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
  118. package/esm2020/autocomplete/autocomplete.module.mjs +34 -0
  119. package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
  120. package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
  121. package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
  122. package/esm2020/button/button.component.mjs +129 -0
  123. package/esm2020/button/button.module.mjs +38 -0
  124. package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  125. package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
  126. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  127. package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
  128. package/esm2020/button-toggle/button-toggle.module.mjs +19 -0
  129. package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
  130. package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
  131. package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
  132. package/esm2020/card/card.component.mjs +80 -0
  133. package/esm2020/card/card.module.mjs +30 -0
  134. package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
  135. package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
  136. package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
  137. package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
  138. package/esm2020/checkbox/checkbox-module.mjs +19 -0
  139. package/esm2020/checkbox/checkbox-required-validator.mjs +27 -0
  140. package/esm2020/checkbox/checkbox.mjs +315 -0
  141. package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  142. package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
  143. package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
  144. package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
  145. package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
  146. package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
  147. package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
  148. package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
  149. package/esm2020/core/common-behaviors/common-module.mjs +83 -0
  150. package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
  151. package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
  152. package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
  153. package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
  154. package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
  155. package/esm2020/core/error/error-options.mjs +26 -0
  156. package/esm2020/core/formatters/date/formatter.mjs +359 -0
  157. package/esm2020/core/formatters/date/templates/en-US.mjs +281 -0
  158. package/esm2020/core/formatters/date/templates/ru-RU.mjs +281 -0
  159. package/esm2020/core/formatters/index.mjs +20 -0
  160. package/esm2020/core/formatters/number/formatter.mjs +105 -0
  161. package/esm2020/core/forms/forms-module.mjs +24 -0
  162. package/esm2020/core/forms/forms.directive.mjs +66 -0
  163. package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
  164. package/esm2020/core/highlight/highlight.pipe.mjs +17 -0
  165. package/esm2020/core/highlight/index.mjs +19 -0
  166. package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  167. package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
  168. package/esm2020/core/line/line.mjs +70 -0
  169. package/esm2020/core/option/action.mjs +121 -0
  170. package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
  171. package/esm2020/core/option/optgroup.mjs +31 -0
  172. package/esm2020/core/option/option-module.mjs +21 -0
  173. package/esm2020/core/option/option.mjs +254 -0
  174. package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
  175. package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
  176. package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
  177. package/esm2020/core/pop-up/pop-up-trigger.mjs +244 -0
  178. package/esm2020/core/pop-up/pop-up.mjs +91 -0
  179. package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
  180. package/esm2020/core/public-api.mjs +18 -0
  181. package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
  182. package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
  183. package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
  184. package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
  185. package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
  186. package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
  187. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
  188. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +18 -0
  189. package/esm2020/core/services/measure-scrollbar.service.mjs +48 -0
  190. package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
  191. package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
  192. package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
  193. package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
  194. package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
  195. package/esm2020/core/version.mjs +3 -0
  196. package/esm2020/datepicker/calendar-body.component.mjs +106 -0
  197. package/esm2020/datepicker/calendar.component.mjs +362 -0
  198. package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
  199. package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
  200. package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
  201. package/esm2020/datepicker/datepicker-intl.mjs +40 -0
  202. package/esm2020/datepicker/datepicker-module.mjs +107 -0
  203. package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
  204. package/esm2020/datepicker/datepicker.component.mjs +408 -0
  205. package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
  206. package/esm2020/datepicker/month-view.component.mjs +257 -0
  207. package/esm2020/datepicker/multi-year-view.component.mjs +218 -0
  208. package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
  209. package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
  210. package/esm2020/datepicker/year-view.component.mjs +253 -0
  211. package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
  212. package/esm2020/design-tokens/legacy-2017/tokens.mjs +953 -0
  213. package/esm2020/design-tokens/pt-2022/tokens.mjs +1013 -0
  214. package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
  215. package/esm2020/design-tokens/public-api.mjs +4 -0
  216. package/esm2020/divider/divider.component.mjs +39 -0
  217. package/esm2020/divider/divider.module.mjs +18 -0
  218. package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
  219. package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
  220. package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
  221. package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
  222. package/esm2020/dropdown/dropdown-content.directive.mjs +64 -0
  223. package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
  224. package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
  225. package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
  226. package/esm2020/dropdown/dropdown.component.mjs +292 -0
  227. package/esm2020/dropdown/dropdown.module.mjs +50 -0
  228. package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
  229. package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
  230. package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
  231. package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
  232. package/esm2020/form-field/cleaner.mjs +23 -0
  233. package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
  234. package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
  235. package/esm2020/form-field/form-field.mjs +205 -0
  236. package/esm2020/form-field/form-field.module.mjs +52 -0
  237. package/esm2020/form-field/hint.mjs +23 -0
  238. package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
  239. package/esm2020/form-field/prefix.mjs +13 -0
  240. package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
  241. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  242. package/esm2020/form-field/stepper.mjs +55 -0
  243. package/esm2020/form-field/suffix.mjs +13 -0
  244. package/esm2020/icon/icon.component.mjs +44 -0
  245. package/esm2020/icon/icon.module.mjs +38 -0
  246. package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
  247. package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
  248. package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
  249. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  250. package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  251. package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
  252. package/esm2020/input/input-number-validators.mjs +92 -0
  253. package/esm2020/input/input-number.mjs +163 -0
  254. package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
  255. package/esm2020/input/input.mjs +333 -0
  256. package/esm2020/input/input.module.mjs +23 -0
  257. package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
  258. package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
  259. package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
  260. package/esm2020/link/link.component.mjs +107 -0
  261. package/esm2020/link/link.module.mjs +26 -0
  262. package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
  263. package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
  264. package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
  265. package/esm2020/list/list-selection.component.mjs +687 -0
  266. package/esm2020/list/list.component.mjs +44 -0
  267. package/esm2020/list/list.module.mjs +55 -0
  268. package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
  269. package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
  270. package/esm2020/modal/css-unit.pipe.mjs +17 -0
  271. package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
  272. package/esm2020/modal/modal-control.service.mjs +85 -0
  273. package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
  274. package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
  275. package/esm2020/modal/modal.component.mjs +501 -0
  276. package/esm2020/modal/modal.directive.mjs +52 -0
  277. package/esm2020/modal/modal.module.mjs +72 -0
  278. package/esm2020/modal/modal.service.mjs +124 -0
  279. package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
  280. package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
  281. package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
  282. package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
  283. package/esm2020/navbar/navbar-item.component.mjs +577 -0
  284. package/esm2020/navbar/navbar.component.mjs +237 -0
  285. package/esm2020/navbar/navbar.module.mjs +92 -0
  286. package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
  287. package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
  288. package/esm2020/navbar/vertical-navbar.animation.mjs +10 -0
  289. package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
  290. package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
  291. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  292. package/esm2020/popover/popover-confirm.component.mjs +108 -0
  293. package/esm2020/popover/popover.component.mjs +253 -0
  294. package/esm2020/popover/popover.module.mjs +24 -0
  295. package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
  296. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  297. package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
  298. package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
  299. package/esm2020/progress-bar/progress-bar.module.mjs +30 -0
  300. package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
  301. package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
  302. package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
  303. package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
  304. package/esm2020/progress-spinner/progress-spinner.module.mjs +30 -0
  305. package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
  306. package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
  307. package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
  308. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  309. package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
  310. package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
  311. package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
  312. package/esm2020/radio/radio.component.mjs +458 -0
  313. package/esm2020/radio/radio.module.mjs +20 -0
  314. package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
  315. package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
  316. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  317. package/esm2020/select/select.component.mjs +1110 -0
  318. package/esm2020/select/select.module.mjs +64 -0
  319. package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
  320. package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
  321. package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
  322. package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
  323. package/esm2020/sidebar/sidebar.component.mjs +146 -0
  324. package/esm2020/sidebar/sidebar.module.mjs +30 -0
  325. package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
  326. package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
  327. package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
  328. package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
  329. package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
  330. package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
  331. package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
  332. package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
  333. package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
  334. package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
  335. package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
  336. package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
  337. package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
  338. package/esm2020/splitter/splitter.component.mjs +480 -0
  339. package/esm2020/splitter/splitter.module.mjs +40 -0
  340. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  341. package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
  342. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  343. package/esm2020/table/table.component.mjs +16 -0
  344. package/esm2020/table/table.module.mjs +30 -0
  345. package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
  346. package/esm2020/tabs/paginated-tab-header.mjs +479 -0
  347. package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
  348. package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
  349. package/esm2020/tabs/tab-body.component.mjs +178 -0
  350. package/esm2020/tabs/tab-content.directive.mjs +15 -0
  351. package/esm2020/tabs/tab-group.component.mjs +350 -0
  352. package/esm2020/tabs/tab-header.component.mjs +67 -0
  353. package/esm2020/tabs/tab-label-wrapper.directive.mjs +78 -0
  354. package/esm2020/tabs/tab-label.directive.mjs +17 -0
  355. package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
  356. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
  357. package/esm2020/tabs/tab.component.mjs +133 -0
  358. package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
  359. package/esm2020/tabs/tabs.module.mjs +104 -0
  360. package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
  361. package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
  362. package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
  363. package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
  364. package/esm2020/tags/tag-input.mjs +229 -0
  365. package/esm2020/tags/tag-list.component.mjs +722 -0
  366. package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
  367. package/esm2020/tags/tag.component.mjs +377 -0
  368. package/esm2020/tags/tag.module.mjs +56 -0
  369. package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
  370. package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
  371. package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
  372. package/esm2020/textarea/textarea.component.mjs +268 -0
  373. package/esm2020/textarea/textarea.module.mjs +21 -0
  374. package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
  375. package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
  376. package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
  377. package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
  378. package/esm2020/timepicker/timepicker.directive.mjs +653 -0
  379. package/esm2020/timepicker/timepicker.module.mjs +34 -0
  380. package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
  381. package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
  382. package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
  383. package/esm2020/toggle/toggle.component.mjs +158 -0
  384. package/esm2020/toggle/toggle.module.mjs +20 -0
  385. package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  386. package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
  387. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  388. package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
  389. package/esm2020/tooltip/tooltip.component.mjs +291 -0
  390. package/esm2020/tooltip/tooltip.module.mjs +43 -0
  391. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
  392. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
  393. package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
  394. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  395. package/esm2020/tree/data-source/flat-data-source.mjs +162 -0
  396. package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
  397. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  398. package/esm2020/tree/node.mjs +31 -0
  399. package/esm2020/tree/outlet.mjs +15 -0
  400. package/esm2020/tree/padding.directive.mjs +110 -0
  401. package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
  402. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  403. package/esm2020/tree/toggle.mjs +80 -0
  404. package/esm2020/tree/tree-base.mjs +243 -0
  405. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  406. package/esm2020/tree/tree-option.component.mjs +234 -0
  407. package/esm2020/tree/tree-selection.component.mjs +533 -0
  408. package/esm2020/tree/tree.mjs +15 -0
  409. package/esm2020/tree/tree.module.mjs +53 -0
  410. package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
  411. package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
  412. package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
  413. package/esm2020/tree-select/tree-select.component.mjs +925 -0
  414. package/esm2020/tree-select/tree-select.module.mjs +47 -0
  415. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
  416. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  417. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
  418. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  419. package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
  420. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
  421. package/fesm2015/ptsecurity-mosaic-card.mjs +113 -0
  422. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
  423. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
  424. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  425. package/fesm2015/ptsecurity-mosaic-core.mjs +2706 -0
  426. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
  427. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
  428. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  429. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  430. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  431. package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
  432. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
  433. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
  434. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  435. package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
  436. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
  437. package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
  438. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
  439. package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
  440. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
  441. package/fesm2015/ptsecurity-mosaic-link.mjs +137 -0
  442. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
  443. package/fesm2015/ptsecurity-mosaic-list.mjs +791 -0
  444. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
  445. package/fesm2015/ptsecurity-mosaic-modal.mjs +864 -0
  446. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
  447. package/fesm2015/ptsecurity-mosaic-navbar.mjs +1025 -0
  448. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
  449. package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
  450. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
  451. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +76 -0
  452. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  453. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  454. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  455. package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
  456. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
  457. package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
  458. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
  459. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +202 -0
  460. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  461. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
  462. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  463. package/fesm2015/ptsecurity-mosaic-splitter.mjs +524 -0
  464. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
  465. package/fesm2015/ptsecurity-mosaic-table.mjs +50 -0
  466. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
  467. package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
  468. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
  469. package/fesm2015/ptsecurity-mosaic-tags.mjs +1377 -0
  470. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
  471. package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
  472. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
  473. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
  474. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  475. package/fesm2015/ptsecurity-mosaic-toggle.mjs +180 -0
  476. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
  477. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +362 -0
  478. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  479. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +972 -0
  480. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  481. package/fesm2015/ptsecurity-mosaic-tree.mjs +1718 -0
  482. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
  483. package/fesm2015/ptsecurity-mosaic.mjs +4 -0
  484. package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
  485. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +752 -0
  486. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  487. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +383 -0
  488. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  489. package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
  490. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
  491. package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
  492. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
  493. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +364 -0
  494. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  495. package/fesm2020/ptsecurity-mosaic-core.mjs +2735 -0
  496. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
  497. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +2687 -0
  498. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  499. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  500. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  501. package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
  502. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
  503. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1093 -0
  504. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  505. package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
  506. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
  507. package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
  508. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
  509. package/fesm2020/ptsecurity-mosaic-input.mjs +605 -0
  510. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
  511. package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
  512. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
  513. package/fesm2020/ptsecurity-mosaic-list.mjs +784 -0
  514. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
  515. package/fesm2020/ptsecurity-mosaic-modal.mjs +860 -0
  516. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
  517. package/fesm2020/ptsecurity-mosaic-navbar.mjs +1009 -0
  518. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
  519. package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
  520. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
  521. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
  522. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  523. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  524. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  525. package/fesm2020/ptsecurity-mosaic-radio.mjs +479 -0
  526. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
  527. package/fesm2020/ptsecurity-mosaic-select.mjs +1173 -0
  528. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
  529. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
  530. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  531. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +589 -0
  532. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  533. package/fesm2020/ptsecurity-mosaic-splitter.mjs +524 -0
  534. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
  535. package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
  536. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
  537. package/fesm2020/ptsecurity-mosaic-tabs.mjs +1496 -0
  538. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
  539. package/fesm2020/ptsecurity-mosaic-tags.mjs +1370 -0
  540. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
  541. package/fesm2020/ptsecurity-mosaic-textarea.mjs +291 -0
  542. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
  543. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +713 -0
  544. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  545. package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
  546. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
  547. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +354 -0
  548. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  549. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +970 -0
  550. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  551. package/fesm2020/ptsecurity-mosaic-tree.mjs +1705 -0
  552. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
  553. package/fesm2020/ptsecurity-mosaic.mjs +4 -0
  554. package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
  555. package/form-field/README.md +0 -0
  556. package/form-field/package.json +5 -5
  557. package/icon/README.md +0 -0
  558. package/icon/package.json +5 -5
  559. package/input/package.json +5 -5
  560. package/link/README.md +0 -0
  561. package/link/package.json +5 -5
  562. package/list/README.md +0 -0
  563. package/list/package.json +5 -5
  564. package/modal/README.md +34 -0
  565. package/modal/modal-control.service.d.ts +1 -0
  566. package/modal/package.json +5 -5
  567. package/navbar/README.md +41 -0
  568. package/navbar/navbar-item.component.d.ts +122 -34
  569. package/navbar/navbar.component.d.ts +37 -9
  570. package/navbar/navbar.module.d.ts +2 -1
  571. package/navbar/package.json +5 -5
  572. package/navbar/vertical-navbar.component.d.ts +15 -26
  573. package/package.json +299 -14
  574. package/popover/README.md +32 -0
  575. package/popover/package.json +5 -5
  576. package/popover/popover.component.d.ts +2 -0
  577. package/popover/popover.module.d.ts +2 -1
  578. package/prebuilt-themes/dark-theme.css +1 -1
  579. package/prebuilt-themes/default-theme.css +1 -1
  580. package/prebuilt-visual/default-visual.css +1 -1
  581. package/progress-bar/README.md +0 -0
  582. package/progress-bar/package.json +5 -5
  583. package/progress-spinner/README.md +0 -0
  584. package/progress-spinner/package.json +5 -5
  585. package/radio/package.json +5 -5
  586. package/schematics/README.md +35 -0
  587. package/schematics/ng-update/data/index.d.ts +1 -0
  588. package/schematics/ng-update/data/index.js +10 -9
  589. package/schematics/ng-update/data/index.js.map +1 -1
  590. package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
  591. package/schematics/ng-update/data/symbol-removal.js +5 -0
  592. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  593. package/schematics/ng-update/index.js +3 -3
  594. package/schematics/ng-update/index.js.map +1 -1
  595. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
  596. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  597. package/schematics/ng-update/upgrade-data.js +2 -1
  598. package/schematics/ng-update/upgrade-data.js.map +1 -1
  599. package/schematics/tsconfig.lib.json +2 -2
  600. package/select/README.md +0 -0
  601. package/select/package.json +5 -5
  602. package/sidebar/package.json +5 -5
  603. package/sidepanel/package.json +5 -5
  604. package/splitter/package.json +5 -5
  605. package/splitter/splitter.component.d.ts +46 -5
  606. package/splitter/splitter.module.d.ts +1 -1
  607. package/table/README.md +0 -0
  608. package/table/package.json +5 -5
  609. package/tabs/README.md +0 -0
  610. package/tabs/package.json +5 -5
  611. package/tags/README.md +0 -0
  612. package/tags/package.json +5 -5
  613. package/tags/tag.component.d.ts +20 -20
  614. package/textarea/README.md +0 -0
  615. package/textarea/package.json +5 -5
  616. package/timepicker/README.md +0 -0
  617. package/timepicker/package.json +5 -5
  618. package/toggle/package.json +5 -5
  619. package/tooltip/package.json +5 -5
  620. package/tree/data-source/flat-data-source.d.ts +2 -2
  621. package/tree/package.json +5 -5
  622. package/tree/toggle.d.ts +1 -1
  623. package/tree/tree-option.component.d.ts +5 -3
  624. package/tree/tree-selection.component.d.ts +1 -0
  625. package/tree-select/README.md +0 -0
  626. package/tree-select/package.json +5 -5
  627. package/tree-select/tree-select.component.d.ts +9 -1
  628. package/tree-select/tree-select.module.d.ts +2 -1
  629. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1160
  630. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
  631. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -755
  632. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
  633. package/bundles/ptsecurity-mosaic-button.umd.js +0 -533
  634. package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
  635. package/bundles/ptsecurity-mosaic-card.umd.js +0 -479
  636. package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
  637. package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -762
  638. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
  639. package/bundles/ptsecurity-mosaic-core.umd.js +0 -2843
  640. package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
  641. package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3355
  642. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
  643. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1872
  644. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
  645. package/bundles/ptsecurity-mosaic-divider.umd.js +0 -106
  646. package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
  647. package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1517
  648. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
  649. package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -788
  650. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
  651. package/bundles/ptsecurity-mosaic-icon.umd.js +0 -450
  652. package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
  653. package/bundles/ptsecurity-mosaic-input.umd.js +0 -1008
  654. package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
  655. package/bundles/ptsecurity-mosaic-link.umd.js +0 -515
  656. package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
  657. package/bundles/ptsecurity-mosaic-list.umd.js +0 -1256
  658. package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
  659. package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1305
  660. package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
  661. package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -930
  662. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
  663. package/bundles/ptsecurity-mosaic-popover.umd.js +0 -830
  664. package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
  665. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -440
  666. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
  667. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -448
  668. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
  669. package/bundles/ptsecurity-mosaic-radio.umd.js +0 -901
  670. package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
  671. package/bundles/ptsecurity-mosaic-select.umd.js +0 -1606
  672. package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
  673. package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -254
  674. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
  675. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -954
  676. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
  677. package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -436
  678. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
  679. package/bundles/ptsecurity-mosaic-table.umd.js +0 -81
  680. package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
  681. package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2013
  682. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
  683. package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1911
  684. package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
  685. package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -664
  686. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
  687. package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -820
  688. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
  689. package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -557
  690. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
  691. package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -777
  692. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
  693. package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1368
  694. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
  695. package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2301
  696. package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
  697. package/bundles/ptsecurity-mosaic.umd.js +0 -11
  698. package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
  699. package/design-tokens/tokens/components/checkbox.json5 +0 -39
  700. package/design-tokens/tokens/components/modal.json5 +0 -67
  701. package/design-tokens/tokens/components/navbar.json5 +0 -64
  702. package/design-tokens/tokens/components/radio.json5 +0 -45
  703. package/design-tokens/tokens/components/tags.json5 +0 -126
  704. package/design-tokens/tokens/components/toggle.json5 +0 -55
  705. package/design-tokens/tokens.d.ts +0 -7637
  706. package/esm2015/autocomplete/autocomplete-origin.directive.js +0 -21
  707. package/esm2015/autocomplete/autocomplete-trigger.directive.js +0 -555
  708. package/esm2015/autocomplete/autocomplete.component.js +0 -163
  709. package/esm2015/autocomplete/autocomplete.module.js +0 -34
  710. package/esm2015/button/button.component.js +0 -129
  711. package/esm2015/button/button.module.js +0 -42
  712. package/esm2015/button-toggle/button-toggle.component.js +0 -370
  713. package/esm2015/button-toggle/button-toggle.module.js +0 -19
  714. package/esm2015/card/card.component.js +0 -88
  715. package/esm2015/card/card.module.js +0 -30
  716. package/esm2015/checkbox/checkbox-module.js +0 -19
  717. package/esm2015/checkbox/checkbox-required-validator.js +0 -27
  718. package/esm2015/checkbox/checkbox.js +0 -325
  719. package/esm2015/core/common-behaviors/common-module.js +0 -83
  720. package/esm2015/core/error/error-options.js +0 -26
  721. package/esm2015/core/formatters/date/formatter.js +0 -288
  722. package/esm2015/core/formatters/date/templates/en-US.js +0 -280
  723. package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
  724. package/esm2015/core/formatters/index.js +0 -20
  725. package/esm2015/core/formatters/number/formatter.js +0 -99
  726. package/esm2015/core/forms/forms-module.js +0 -24
  727. package/esm2015/core/forms/forms.directive.js +0 -66
  728. package/esm2015/core/highlight/highlight.pipe.js +0 -17
  729. package/esm2015/core/highlight/index.js +0 -19
  730. package/esm2015/core/line/line.js +0 -70
  731. package/esm2015/core/option/action.js +0 -131
  732. package/esm2015/core/option/optgroup.js +0 -40
  733. package/esm2015/core/option/option-module.js +0 -21
  734. package/esm2015/core/option/option.js +0 -262
  735. package/esm2015/core/pop-up/pop-up-trigger.js +0 -241
  736. package/esm2015/core/pop-up/pop-up.js +0 -87
  737. package/esm2015/core/public-api.js +0 -17
  738. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
  739. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +0 -18
  740. package/esm2015/core/services/measure-scrollbar.service.js +0 -48
  741. package/esm2015/datepicker/calendar-body.component.js +0 -114
  742. package/esm2015/datepicker/calendar.component.js +0 -377
  743. package/esm2015/datepicker/datepicker-input.directive.js +0 -885
  744. package/esm2015/datepicker/datepicker-intl.js +0 -40
  745. package/esm2015/datepicker/datepicker-module.js +0 -107
  746. package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
  747. package/esm2015/datepicker/datepicker.component.js +0 -418
  748. package/esm2015/datepicker/month-view.component.js +0 -263
  749. package/esm2015/datepicker/multi-year-view.component.js +0 -224
  750. package/esm2015/datepicker/year-view.component.js +0 -259
  751. package/esm2015/design-tokens/public-api.js +0 -2
  752. package/esm2015/design-tokens/tokens.js +0 -931
  753. package/esm2015/divider/divider.component.js +0 -46
  754. package/esm2015/divider/divider.module.js +0 -18
  755. package/esm2015/dropdown/dropdown-content.directive.js +0 -66
  756. package/esm2015/dropdown/dropdown-item.component.js +0 -142
  757. package/esm2015/dropdown/dropdown-trigger.directive.js +0 -478
  758. package/esm2015/dropdown/dropdown.component.js +0 -302
  759. package/esm2015/dropdown/dropdown.module.js +0 -50
  760. package/esm2015/form-field/cleaner.js +0 -23
  761. package/esm2015/form-field/form-field.js +0 -224
  762. package/esm2015/form-field/form-field.module.js +0 -52
  763. package/esm2015/form-field/hint.js +0 -23
  764. package/esm2015/form-field/prefix.js +0 -13
  765. package/esm2015/form-field/stepper.js +0 -55
  766. package/esm2015/form-field/suffix.js +0 -13
  767. package/esm2015/icon/icon.component.js +0 -51
  768. package/esm2015/icon/icon.module.js +0 -38
  769. package/esm2015/input/input-number-validators.js +0 -92
  770. package/esm2015/input/input-number.js +0 -163
  771. package/esm2015/input/input.js +0 -333
  772. package/esm2015/input/input.module.js +0 -23
  773. package/esm2015/link/link.component.js +0 -108
  774. package/esm2015/link/link.module.js +0 -26
  775. package/esm2015/list/list-selection.component.js +0 -716
  776. package/esm2015/list/list.component.js +0 -58
  777. package/esm2015/list/list.module.js +0 -55
  778. package/esm2015/modal/css-unit.pipe.js +0 -17
  779. package/esm2015/modal/modal-control.service.js +0 -63
  780. package/esm2015/modal/modal.component.js +0 -508
  781. package/esm2015/modal/modal.directive.js +0 -52
  782. package/esm2015/modal/modal.module.js +0 -72
  783. package/esm2015/modal/modal.service.js +0 -117
  784. package/esm2015/navbar/navbar-item.component.js +0 -209
  785. package/esm2015/navbar/navbar.component.js +0 -118
  786. package/esm2015/navbar/navbar.module.js +0 -76
  787. package/esm2015/navbar/vertical-navbar.animation.js +0 -10
  788. package/esm2015/navbar/vertical-navbar.component.js +0 -140
  789. package/esm2015/popover/popover-confirm.component.js +0 -115
  790. package/esm2015/popover/popover.component.js +0 -256
  791. package/esm2015/popover/popover.module.js +0 -23
  792. package/esm2015/progress-bar/progress-bar.component.js +0 -50
  793. package/esm2015/progress-bar/progress-bar.module.js +0 -30
  794. package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
  795. package/esm2015/progress-spinner/progress-spinner.module.js +0 -30
  796. package/esm2015/radio/radio.component.js +0 -467
  797. package/esm2015/radio/radio.module.js +0 -20
  798. package/esm2015/select/select.component.js +0 -1122
  799. package/esm2015/select/select.module.js +0 -64
  800. package/esm2015/sidebar/sidebar.component.js +0 -155
  801. package/esm2015/sidebar/sidebar.module.js +0 -30
  802. package/esm2015/sidepanel/sidepanel-container.component.js +0 -114
  803. package/esm2015/sidepanel/sidepanel-directives.js +0 -159
  804. package/esm2015/sidepanel/sidepanel.module.js +0 -74
  805. package/esm2015/sidepanel/sidepanel.service.js +0 -164
  806. package/esm2015/splitter/splitter.component.js +0 -331
  807. package/esm2015/splitter/splitter.module.js +0 -38
  808. package/esm2015/table/table.component.js +0 -16
  809. package/esm2015/table/table.module.js +0 -30
  810. package/esm2015/tabs/paginated-tab-header.js +0 -482
  811. package/esm2015/tabs/tab-body.component.js +0 -186
  812. package/esm2015/tabs/tab-content.directive.js +0 -15
  813. package/esm2015/tabs/tab-group.component.js +0 -359
  814. package/esm2015/tabs/tab-header.component.js +0 -76
  815. package/esm2015/tabs/tab-label-wrapper.directive.js +0 -78
  816. package/esm2015/tabs/tab-label.directive.js +0 -17
  817. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
  818. package/esm2015/tabs/tab.component.js +0 -133
  819. package/esm2015/tabs/tabs.module.js +0 -104
  820. package/esm2015/tags/tag-input.js +0 -229
  821. package/esm2015/tags/tag-list.component.js +0 -732
  822. package/esm2015/tags/tag.component.js +0 -382
  823. package/esm2015/tags/tag.module.js +0 -56
  824. package/esm2015/textarea/textarea.component.js +0 -268
  825. package/esm2015/textarea/textarea.module.js +0 -21
  826. package/esm2015/timepicker/timepicker.directive.js +0 -652
  827. package/esm2015/timepicker/timepicker.module.js +0 -34
  828. package/esm2015/toggle/toggle.component.js +0 -169
  829. package/esm2015/toggle/toggle.module.js +0 -20
  830. package/esm2015/tooltip/tooltip.component.js +0 -299
  831. package/esm2015/tooltip/tooltip.module.js +0 -43
  832. package/esm2015/tree/data-source/flat-data-source.js +0 -162
  833. package/esm2015/tree/node.js +0 -31
  834. package/esm2015/tree/outlet.js +0 -15
  835. package/esm2015/tree/padding.directive.js +0 -111
  836. package/esm2015/tree/toggle.js +0 -89
  837. package/esm2015/tree/tree-base.js +0 -243
  838. package/esm2015/tree/tree-option.component.js +0 -238
  839. package/esm2015/tree/tree-selection.component.js +0 -541
  840. package/esm2015/tree/tree.js +0 -23
  841. package/esm2015/tree/tree.module.js +0 -53
  842. package/esm2015/tree-select/tree-select.component.js +0 -900
  843. package/esm2015/tree-select/tree-select.module.js +0 -43
  844. package/fesm2015/ptsecurity-mosaic-autocomplete.js +0 -761
  845. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
  846. package/fesm2015/ptsecurity-mosaic-button-toggle.js +0 -391
  847. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
  848. package/fesm2015/ptsecurity-mosaic-button.js +0 -174
  849. package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
  850. package/fesm2015/ptsecurity-mosaic-card.js +0 -121
  851. package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
  852. package/fesm2015/ptsecurity-mosaic-checkbox.js +0 -374
  853. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
  854. package/fesm2015/ptsecurity-mosaic-core.js +0 -2682
  855. package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
  856. package/fesm2015/ptsecurity-mosaic-datepicker.js +0 -2731
  857. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
  858. package/fesm2015/ptsecurity-mosaic-design-tokens.js +0 -937
  859. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
  860. package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
  861. package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
  862. package/fesm2015/ptsecurity-mosaic-dropdown.js +0 -1101
  863. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
  864. package/fesm2015/ptsecurity-mosaic-form-field.js +0 -396
  865. package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
  866. package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
  867. package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
  868. package/fesm2015/ptsecurity-mosaic-input.js +0 -605
  869. package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
  870. package/fesm2015/ptsecurity-mosaic-link.js +0 -137
  871. package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
  872. package/fesm2015/ptsecurity-mosaic-list.js +0 -827
  873. package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
  874. package/fesm2015/ptsecurity-mosaic-modal.js +0 -838
  875. package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
  876. package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
  877. package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
  878. package/fesm2015/ptsecurity-mosaic-popover.js +0 -399
  879. package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
  880. package/fesm2015/ptsecurity-mosaic-progress-bar.js +0 -84
  881. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
  882. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
  883. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
  884. package/fesm2015/ptsecurity-mosaic-radio.js +0 -488
  885. package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
  886. package/fesm2015/ptsecurity-mosaic-select.js +0 -1185
  887. package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
  888. package/fesm2015/ptsecurity-mosaic-sidebar.js +0 -211
  889. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
  890. package/fesm2015/ptsecurity-mosaic-sidepanel.js +0 -594
  891. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
  892. package/fesm2015/ptsecurity-mosaic-splitter.js +0 -373
  893. package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
  894. package/fesm2015/ptsecurity-mosaic-table.js +0 -50
  895. package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
  896. package/fesm2015/ptsecurity-mosaic-tabs.js +0 -1533
  897. package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
  898. package/fesm2015/ptsecurity-mosaic-tags.js +0 -1385
  899. package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
  900. package/fesm2015/ptsecurity-mosaic-textarea.js +0 -291
  901. package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
  902. package/fesm2015/ptsecurity-mosaic-timepicker.js +0 -712
  903. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
  904. package/fesm2015/ptsecurity-mosaic-toggle.js +0 -191
  905. package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
  906. package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -362
  907. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
  908. package/fesm2015/ptsecurity-mosaic-tree-select.js +0 -942
  909. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
  910. package/fesm2015/ptsecurity-mosaic-tree.js +0 -1735
  911. package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
  912. package/fesm2015/ptsecurity-mosaic.js +0 -4
  913. package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -1,1911 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/platform'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/cdk/keycodes'), require('@angular/cdk/coercion'), require('@angular/forms'), require('@angular/cdk/collections'), require('@ptsecurity/cdk/a11y'), require('@ptsecurity/mosaic/core'), require('@ptsecurity/mosaic/form-field'), require('rxjs'), require('rxjs/operators'), require('@ptsecurity/mosaic/icon'), require('@angular/cdk/bidi')) :
3
- typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/tags', ['exports', '@angular/cdk/platform', '@angular/common', '@angular/core', '@ptsecurity/cdk/keycodes', '@angular/cdk/coercion', '@angular/forms', '@angular/cdk/collections', '@ptsecurity/cdk/a11y', '@ptsecurity/mosaic/core', '@ptsecurity/mosaic/form-field', 'rxjs', 'rxjs/operators', '@ptsecurity/mosaic/icon', '@angular/cdk/bidi'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.tags = {}), global.ng.cdk.platform, global.ng.common, global.ng.core, global.mc.cdk.keycodes, global.ng.cdk.coercion, global.ng.forms, global.ng.cdk.collections, global.mc.cdk.a11y, global.ptsecurity.mosaic.core, global.ptsecurity.mosaic["form-field"], global.rxjs, global.rxjs.operators, global.ptsecurity.mosaic.icon, global.ng.cdk.bidi));
5
- })(this, (function (exports, platform, i4, i0, keycodes, coercion, i3, collections, a11y, i1, formField, rxjs, operators, icon, i2) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
-
31
- /** Injection token to be used to override the default options for the chips module. */
32
- var MC_TAGS_DEFAULT_OPTIONS = new i0.InjectionToken('mc-tags-default-options');
33
-
34
- /*! *****************************************************************************
35
- Copyright (c) Microsoft Corporation.
36
-
37
- Permission to use, copy, modify, and/or distribute this software for any
38
- purpose with or without fee is hereby granted.
39
-
40
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
- PERFORMANCE OF THIS SOFTWARE.
47
- ***************************************************************************** */
48
- /* global Reflect, Promise */
49
- var extendStatics = function (d, b) {
50
- extendStatics = Object.setPrototypeOf ||
51
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52
- function (d, b) { for (var p in b)
53
- if (Object.prototype.hasOwnProperty.call(b, p))
54
- d[p] = b[p]; };
55
- return extendStatics(d, b);
56
- };
57
- function __extends(d, b) {
58
- if (typeof b !== "function" && b !== null)
59
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60
- extendStatics(d, b);
61
- function __() { this.constructor = d; }
62
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
- }
64
- var __assign = function () {
65
- __assign = Object.assign || function __assign(t) {
66
- for (var s, i = 1, n = arguments.length; i < n; i++) {
67
- s = arguments[i];
68
- for (var p in s)
69
- if (Object.prototype.hasOwnProperty.call(s, p))
70
- t[p] = s[p];
71
- }
72
- return t;
73
- };
74
- return __assign.apply(this, arguments);
75
- };
76
- function __rest(s, e) {
77
- var t = {};
78
- for (var p in s)
79
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
- t[p] = s[p];
81
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
- t[p[i]] = s[p[i]];
85
- }
86
- return t;
87
- }
88
- function __decorate(decorators, target, key, desc) {
89
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
90
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
91
- r = Reflect.decorate(decorators, target, key, desc);
92
- else
93
- for (var i = decorators.length - 1; i >= 0; i--)
94
- if (d = decorators[i])
95
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
96
- return c > 3 && r && Object.defineProperty(target, key, r), r;
97
- }
98
- function __param(paramIndex, decorator) {
99
- return function (target, key) { decorator(target, key, paramIndex); };
100
- }
101
- function __metadata(metadataKey, metadataValue) {
102
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
103
- return Reflect.metadata(metadataKey, metadataValue);
104
- }
105
- function __awaiter(thisArg, _arguments, P, generator) {
106
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
107
- return new (P || (P = Promise))(function (resolve, reject) {
108
- function fulfilled(value) { try {
109
- step(generator.next(value));
110
- }
111
- catch (e) {
112
- reject(e);
113
- } }
114
- function rejected(value) { try {
115
- step(generator["throw"](value));
116
- }
117
- catch (e) {
118
- reject(e);
119
- } }
120
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
121
- step((generator = generator.apply(thisArg, _arguments || [])).next());
122
- });
123
- }
124
- function __generator(thisArg, body) {
125
- var _ = { label: 0, sent: function () { if (t[0] & 1)
126
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
128
- function verb(n) { return function (v) { return step([n, v]); }; }
129
- function step(op) {
130
- if (f)
131
- throw new TypeError("Generator is already executing.");
132
- while (_)
133
- try {
134
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
135
- return t;
136
- if (y = 0, t)
137
- op = [op[0] & 2, t.value];
138
- switch (op[0]) {
139
- case 0:
140
- case 1:
141
- t = op;
142
- break;
143
- case 4:
144
- _.label++;
145
- return { value: op[1], done: false };
146
- case 5:
147
- _.label++;
148
- y = op[1];
149
- op = [0];
150
- continue;
151
- case 7:
152
- op = _.ops.pop();
153
- _.trys.pop();
154
- continue;
155
- default:
156
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
157
- _ = 0;
158
- continue;
159
- }
160
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
161
- _.label = op[1];
162
- break;
163
- }
164
- if (op[0] === 6 && _.label < t[1]) {
165
- _.label = t[1];
166
- t = op;
167
- break;
168
- }
169
- if (t && _.label < t[2]) {
170
- _.label = t[2];
171
- _.ops.push(op);
172
- break;
173
- }
174
- if (t[2])
175
- _.ops.pop();
176
- _.trys.pop();
177
- continue;
178
- }
179
- op = body.call(thisArg, _);
180
- }
181
- catch (e) {
182
- op = [6, e];
183
- y = 0;
184
- }
185
- finally {
186
- f = t = 0;
187
- }
188
- if (op[0] & 5)
189
- throw op[1];
190
- return { value: op[0] ? op[1] : void 0, done: true };
191
- }
192
- }
193
- var __createBinding = Object.create ? (function (o, m, k, k2) {
194
- if (k2 === undefined)
195
- k2 = k;
196
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
197
- }) : (function (o, m, k, k2) {
198
- if (k2 === undefined)
199
- k2 = k;
200
- o[k2] = m[k];
201
- });
202
- function __exportStar(m, o) {
203
- for (var p in m)
204
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
205
- __createBinding(o, m, p);
206
- }
207
- function __values(o) {
208
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
209
- if (m)
210
- return m.call(o);
211
- if (o && typeof o.length === "number")
212
- return {
213
- next: function () {
214
- if (o && i >= o.length)
215
- o = void 0;
216
- return { value: o && o[i++], done: !o };
217
- }
218
- };
219
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
220
- }
221
- function __read(o, n) {
222
- var m = typeof Symbol === "function" && o[Symbol.iterator];
223
- if (!m)
224
- return o;
225
- var i = m.call(o), r, ar = [], e;
226
- try {
227
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
228
- ar.push(r.value);
229
- }
230
- catch (error) {
231
- e = { error: error };
232
- }
233
- finally {
234
- try {
235
- if (r && !r.done && (m = i["return"]))
236
- m.call(i);
237
- }
238
- finally {
239
- if (e)
240
- throw e.error;
241
- }
242
- }
243
- return ar;
244
- }
245
- /** @deprecated */
246
- function __spread() {
247
- for (var ar = [], i = 0; i < arguments.length; i++)
248
- ar = ar.concat(__read(arguments[i]));
249
- return ar;
250
- }
251
- /** @deprecated */
252
- function __spreadArrays() {
253
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
254
- s += arguments[i].length;
255
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
256
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
257
- r[k] = a[j];
258
- return r;
259
- }
260
- function __spreadArray(to, from, pack) {
261
- if (pack || arguments.length === 2)
262
- for (var i = 0, l = from.length, ar; i < l; i++) {
263
- if (ar || !(i in from)) {
264
- if (!ar)
265
- ar = Array.prototype.slice.call(from, 0, i);
266
- ar[i] = from[i];
267
- }
268
- }
269
- return to.concat(ar || Array.prototype.slice.call(from));
270
- }
271
- function __await(v) {
272
- return this instanceof __await ? (this.v = v, this) : new __await(v);
273
- }
274
- function __asyncGenerator(thisArg, _arguments, generator) {
275
- if (!Symbol.asyncIterator)
276
- throw new TypeError("Symbol.asyncIterator is not defined.");
277
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
278
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
279
- function verb(n) { if (g[n])
280
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
281
- function resume(n, v) { try {
282
- step(g[n](v));
283
- }
284
- catch (e) {
285
- settle(q[0][3], e);
286
- } }
287
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
288
- function fulfill(value) { resume("next", value); }
289
- function reject(value) { resume("throw", value); }
290
- function settle(f, v) { if (f(v), q.shift(), q.length)
291
- resume(q[0][0], q[0][1]); }
292
- }
293
- function __asyncDelegator(o) {
294
- var i, p;
295
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
296
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
297
- }
298
- function __asyncValues(o) {
299
- if (!Symbol.asyncIterator)
300
- throw new TypeError("Symbol.asyncIterator is not defined.");
301
- var m = o[Symbol.asyncIterator], i;
302
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
303
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
304
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
305
- }
306
- function __makeTemplateObject(cooked, raw) {
307
- if (Object.defineProperty) {
308
- Object.defineProperty(cooked, "raw", { value: raw });
309
- }
310
- else {
311
- cooked.raw = raw;
312
- }
313
- return cooked;
314
- }
315
- ;
316
- var __setModuleDefault = Object.create ? (function (o, v) {
317
- Object.defineProperty(o, "default", { enumerable: true, value: v });
318
- }) : function (o, v) {
319
- o["default"] = v;
320
- };
321
- function __importStar(mod) {
322
- if (mod && mod.__esModule)
323
- return mod;
324
- var result = {};
325
- if (mod != null)
326
- for (var k in mod)
327
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
328
- __createBinding(result, mod, k);
329
- __setModuleDefault(result, mod);
330
- return result;
331
- }
332
- function __importDefault(mod) {
333
- return (mod && mod.__esModule) ? mod : { default: mod };
334
- }
335
- function __classPrivateFieldGet(receiver, state, kind, f) {
336
- if (kind === "a" && !f)
337
- throw new TypeError("Private accessor was defined without a getter");
338
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
339
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
340
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
341
- }
342
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
343
- if (kind === "m")
344
- throw new TypeError("Private method is not writable");
345
- if (kind === "a" && !f)
346
- throw new TypeError("Private accessor was defined without a setter");
347
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
348
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
349
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
350
- }
351
-
352
- // Increasing integer for generating unique ids.
353
- var nextUniqueId$1 = 0;
354
- /**
355
- * Directive that adds tag-specific behaviors to an input element inside `<mc-form-field>`.
356
- * May be placed inside or outside of an `<mc-tag-list>`.
357
- */
358
- var McTagInput = /** @class */ (function () {
359
- function McTagInput(elementRef, renderer, defaultOptions, ngControl) {
360
- this.elementRef = elementRef;
361
- this.renderer = renderer;
362
- this.defaultOptions = defaultOptions;
363
- this.ngControl = ngControl;
364
- /** Whether the control is focused. */
365
- this.focused = false;
366
- /**
367
- * The list of key codes that will trigger a tagEnd event.
368
- *
369
- * Defaults to `[ENTER]`.
370
- */
371
- this.separatorKeyCodes = this.defaultOptions.separatorKeyCodes;
372
- /** Emitted when a tag is to be added. */
373
- this.tagEnd = new i0.EventEmitter();
374
- /** The input's placeholder text. */
375
- this.placeholder = '';
376
- /** Unique id for the input. */
377
- this.id = "mc-tag-list-input-" + nextUniqueId$1++;
378
- this._addOnBlur = true;
379
- this._disabled = false;
380
- this.countOfSymbolsForUpdateWidth = 3;
381
- // tslint:disable-next-line: no-unnecessary-type-assertion
382
- this.inputElement = this.elementRef.nativeElement;
383
- this.setDefaultInputWidth();
384
- }
385
- Object.defineProperty(McTagInput.prototype, "tagList", {
386
- /** Register input for tag list */
387
- set: function (value) {
388
- if (value) {
389
- this._tagList = value;
390
- this._tagList.registerInput(this);
391
- }
392
- },
393
- enumerable: false,
394
- configurable: true
395
- });
396
- Object.defineProperty(McTagInput.prototype, "addOnBlur", {
397
- /**
398
- * Whether or not the tagEnd event will be emitted when the input is blurred.
399
- */
400
- get: function () {
401
- return this._addOnBlur;
402
- },
403
- set: function (value) {
404
- this._addOnBlur = coercion.coerceBooleanProperty(value);
405
- },
406
- enumerable: false,
407
- configurable: true
408
- });
409
- Object.defineProperty(McTagInput.prototype, "disabled", {
410
- /** Whether the input is disabled. */
411
- get: function () {
412
- return this._disabled || (this._tagList && this._tagList.disabled);
413
- },
414
- set: function (value) {
415
- this._disabled = coercion.coerceBooleanProperty(value);
416
- },
417
- enumerable: false,
418
- configurable: true
419
- });
420
- Object.defineProperty(McTagInput.prototype, "empty", {
421
- /** Whether the input is empty. */
422
- get: function () {
423
- return !this.inputElement.value;
424
- },
425
- enumerable: false,
426
- configurable: true
427
- });
428
- McTagInput.prototype.ngOnChanges = function () {
429
- this._tagList.stateChanges.next();
430
- };
431
- McTagInput.prototype.onKeydown = function (event) {
432
- if (!this.inputElement.value) {
433
- this._tagList.keydown(event);
434
- }
435
- if (this.isSeparatorKey(event)) {
436
- this.emitTagEnd();
437
- event.preventDefault();
438
- }
439
- };
440
- /** Checks to see if the blur should emit the (tagEnd) event. */
441
- McTagInput.prototype.blur = function () {
442
- this.focused = false;
443
- // Blur the tag list if it is not focused
444
- if (!this._tagList.focused) {
445
- this.triggerValidation();
446
- this._tagList.blur();
447
- }
448
- // tslint:disable-next-line: no-unnecessary-type-assertion
449
- if (this.addOnBlur) {
450
- this.emitTagEnd();
451
- }
452
- this._tagList.stateChanges.next();
453
- };
454
- McTagInput.prototype.triggerValidation = function () {
455
- if (!this.hasControl()) {
456
- return;
457
- }
458
- this.ngControl.statusChanges.emit(this.ngControl.status);
459
- };
460
- /** Checks to see if the (tagEnd) event needs to be emitted. */
461
- McTagInput.prototype.emitTagEnd = function () {
462
- if (!this.hasControl() || (this.hasControl() && !this.ngControl.invalid)) {
463
- this.tagEnd.emit({ input: this.inputElement, value: this.inputElement.value });
464
- this.updateInputWidth();
465
- }
466
- };
467
- McTagInput.prototype.onInput = function () {
468
- this.updateInputWidth();
469
- // Let tag list know whenever the value changes.
470
- this._tagList.stateChanges.next();
471
- };
472
- McTagInput.prototype.onPaste = function ($event) {
473
- var e_1, _a;
474
- var _this = this;
475
- if (!$event.clipboardData) {
476
- return;
477
- }
478
- var data = $event.clipboardData.getData('text');
479
- if (data && data.length === 0) {
480
- return;
481
- }
482
- var items = [];
483
- try {
484
- for (var _b = __values(this.separatorKeyCodes), _c = _b.next(); !_c.done; _c = _b.next()) {
485
- var key = _c.value;
486
- var separator = this.separatorKeyToSymbol(key);
487
- if (data.search(separator) > -1) {
488
- items.push.apply(items, __spreadArray([], __read(data.split(separator))));
489
- break;
490
- }
491
- }
492
- }
493
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
494
- finally {
495
- try {
496
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
497
- }
498
- finally { if (e_1) throw e_1.error; }
499
- }
500
- if (items.length === 0) {
501
- items.push(data);
502
- }
503
- items.forEach(function (item) { return _this.tagEnd.emit({ input: _this.inputElement, value: item }); });
504
- this.updateInputWidth();
505
- $event.preventDefault();
506
- $event.stopPropagation();
507
- };
508
- McTagInput.prototype.updateInputWidth = function () {
509
- var length = this.inputElement.value.length;
510
- this.renderer.setStyle(this.inputElement, 'max-width', 0);
511
- this.oneSymbolWidth = this.inputElement.scrollWidth / length;
512
- this.renderer.setStyle(this.inputElement, 'max-width', '');
513
- if (length > this.countOfSymbolsForUpdateWidth) {
514
- this.renderer.setStyle(this.inputElement, 'width', length * this.oneSymbolWidth + "px");
515
- }
516
- else {
517
- this.setDefaultInputWidth();
518
- }
519
- };
520
- McTagInput.prototype.onFocus = function () {
521
- this.focused = true;
522
- this._tagList.stateChanges.next();
523
- };
524
- /** Focuses the input. */
525
- McTagInput.prototype.focus = function () {
526
- this.inputElement.focus();
527
- };
528
- McTagInput.prototype.separatorKeyToSymbol = function (k) {
529
- var _a;
530
- var sep = (_a = {},
531
- _a[keycodes.ENTER] = /\r?\n/,
532
- _a[keycodes.TAB] = /\t/,
533
- _a[keycodes.SPACE] = / /,
534
- _a[keycodes.COMMA] = /,/,
535
- _a)[k];
536
- if (sep) {
537
- return sep;
538
- }
539
- return k;
540
- };
541
- McTagInput.prototype.hasControl = function () {
542
- return !!this.ngControl;
543
- };
544
- McTagInput.prototype.setDefaultInputWidth = function () {
545
- this.renderer.setStyle(this.inputElement, 'width', '30px');
546
- };
547
- /** Checks whether a keycode is one of the configured separators. */
548
- McTagInput.prototype.isSeparatorKey = function (event) {
549
- if (keycodes.hasModifierKey(event)) {
550
- return false;
551
- }
552
- // tslint:disable-next-line: deprecation
553
- return this.separatorKeyCodes.indexOf(event.keyCode) > -1;
554
- };
555
- return McTagInput;
556
- }());
557
- /** @nocollapse */ McTagInput.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagInput, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: MC_TAGS_DEFAULT_OPTIONS }, { token: i3__namespace.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
558
- /** @nocollapse */ McTagInput.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTagInput, selector: "input[mcTagInputFor]", inputs: { separatorKeyCodes: ["mcTagInputSeparatorKeyCodes", "separatorKeyCodes"], placeholder: "placeholder", id: "id", tagList: ["mcTagInputFor", "tagList"], addOnBlur: ["mcTagInputAddOnBlur", "addOnBlur"], disabled: "disabled" }, outputs: { tagEnd: "mcTagInputTokenEnd" }, host: { listeners: { "keydown": "onKeydown($event)", "blur": "blur()", "focus": "onFocus()", "input": "onInput()", "paste": "onPaste($event)" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null" }, classAttribute: "mc-tag-input" }, exportAs: ["mcTagInput", "mcTagInputFor"], usesOnChanges: true, ngImport: i0__namespace });
559
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagInput, decorators: [{
560
- type: i0.Directive,
561
- args: [{
562
- selector: 'input[mcTagInputFor]',
563
- exportAs: 'mcTagInput, mcTagInputFor',
564
- host: {
565
- class: 'mc-tag-input',
566
- '[id]': 'id',
567
- '[attr.disabled]': 'disabled || null',
568
- '[attr.placeholder]': 'placeholder || null',
569
- '(keydown)': 'onKeydown($event)',
570
- '(blur)': 'blur()',
571
- '(focus)': 'onFocus()',
572
- '(input)': 'onInput()',
573
- '(paste)': 'onPaste($event)'
574
- }
575
- }]
576
- }], ctorParameters: function () {
577
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: undefined, decorators: [{
578
- type: i0.Inject,
579
- args: [MC_TAGS_DEFAULT_OPTIONS]
580
- }] }, { type: i3__namespace.NgControl, decorators: [{
581
- type: i0.Optional
582
- }, {
583
- type: i0.Self
584
- }] }];
585
- }, propDecorators: { separatorKeyCodes: [{
586
- type: i0.Input,
587
- args: ['mcTagInputSeparatorKeyCodes']
588
- }], tagEnd: [{
589
- type: i0.Output,
590
- args: ['mcTagInputTokenEnd']
591
- }], placeholder: [{
592
- type: i0.Input
593
- }], id: [{
594
- type: i0.Input
595
- }], tagList: [{
596
- type: i0.Input,
597
- args: ['mcTagInputFor']
598
- }], addOnBlur: [{
599
- type: i0.Input,
600
- args: ['mcTagInputAddOnBlur']
601
- }], disabled: [{
602
- type: i0.Input
603
- }] } });
604
-
605
- /** Event object emitted by McTag when selected or deselected. */
606
- var McTagSelectionChange = /** @class */ (function () {
607
- function McTagSelectionChange(source, selected, isUserInput) {
608
- if (isUserInput === void 0) { isUserInput = false; }
609
- this.source = source;
610
- this.selected = selected;
611
- this.isUserInput = isUserInput;
612
- }
613
- return McTagSelectionChange;
614
- }());
615
- var TAG_ATTRIBUTE_NAMES = ['mc-basic-tag'];
616
- /**
617
- * Dummy directive to add CSS class to tag avatar.
618
- * @docs-private
619
- */
620
- var McTagAvatar = /** @class */ (function () {
621
- function McTagAvatar() {
622
- }
623
- return McTagAvatar;
624
- }());
625
- /** @nocollapse */ McTagAvatar.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagAvatar, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
626
- /** @nocollapse */ McTagAvatar.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTagAvatar, selector: "mc-tag-avatar, [mcTagAvatar]", host: { classAttribute: "mc-tag-avatar" }, ngImport: i0__namespace });
627
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagAvatar, decorators: [{
628
- type: i0.Directive,
629
- args: [{
630
- selector: 'mc-tag-avatar, [mcTagAvatar]',
631
- host: { class: 'mc-tag-avatar' }
632
- }]
633
- }] });
634
- /**
635
- * Dummy directive to add CSS class to tag trailing icon.
636
- * @docs-private
637
- */
638
- var McTagTrailingIcon = /** @class */ (function () {
639
- function McTagTrailingIcon() {
640
- }
641
- return McTagTrailingIcon;
642
- }());
643
- /** @nocollapse */ McTagTrailingIcon.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagTrailingIcon, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
644
- /** @nocollapse */ McTagTrailingIcon.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTagTrailingIcon, selector: "mc-tag-trailing-icon, [mcTagTrailingIcon]", host: { classAttribute: "mc-tag-trailing-icon" }, ngImport: i0__namespace });
645
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagTrailingIcon, decorators: [{
646
- type: i0.Directive,
647
- args: [{
648
- selector: 'mc-tag-trailing-icon, [mcTagTrailingIcon]',
649
- host: { class: 'mc-tag-trailing-icon' }
650
- }]
651
- }] });
652
- var McTagBase = /** @class */ (function () {
653
- // tslint:disable-next-line:naming-convention
654
- function McTagBase(_elementRef) {
655
- this._elementRef = _elementRef;
656
- }
657
- return McTagBase;
658
- }());
659
- // tslint:disable-next-line:naming-convention
660
- var McTagMixinBase = i1.mixinColor(i1.mixinDisabled(McTagBase));
661
- var McTag = /** @class */ (function (_super) {
662
- __extends(McTag, _super);
663
- function McTag(elementRef, changeDetectorRef, _ngZone) {
664
- var _this = _super.call(this, elementRef) || this;
665
- _this.elementRef = elementRef;
666
- _this.changeDetectorRef = changeDetectorRef;
667
- _this._ngZone = _ngZone;
668
- /** Emits when the tag is focused. */
669
- _this.onFocus = new rxjs.Subject();
670
- /** Emits when the tag is blured. */
671
- _this.onBlur = new rxjs.Subject();
672
- /** Whether the tag has focus. */
673
- _this.hasFocus = false;
674
- /** Whether the tag list is selectable */
675
- _this.tagListSelectable = true;
676
- /** Emitted when the tag is selected or deselected. */
677
- _this.selectionChange = new i0.EventEmitter();
678
- /** Emitted when the tag is destroyed. */
679
- _this.destroyed = new i0.EventEmitter();
680
- /** Emitted when a tag is to be removed. */
681
- _this.removed = new i0.EventEmitter();
682
- _this._selected = false;
683
- _this._selectable = true;
684
- _this._removable = true;
685
- _this._disabled = false;
686
- _this.addHostClassName();
687
- _this.nativeElement = elementRef.nativeElement;
688
- return _this;
689
- }
690
- Object.defineProperty(McTag.prototype, "selected", {
691
- /** Whether the tag is selected. */
692
- get: function () {
693
- return this._selected;
694
- },
695
- set: function (value) {
696
- var coercedValue = coercion.coerceBooleanProperty(value);
697
- if (coercedValue !== this._selected) {
698
- this._selected = coercedValue;
699
- this.dispatchSelectionChange();
700
- }
701
- },
702
- enumerable: false,
703
- configurable: true
704
- });
705
- Object.defineProperty(McTag.prototype, "value", {
706
- /** The value of the tag. Defaults to the content inside `<mc-tag>` tags. */
707
- get: function () {
708
- return this._value !== undefined
709
- ? this._value
710
- : this.elementRef.nativeElement.textContent;
711
- },
712
- set: function (value) {
713
- this._value = value;
714
- },
715
- enumerable: false,
716
- configurable: true
717
- });
718
- Object.defineProperty(McTag.prototype, "selectable", {
719
- /**
720
- * Whether or not the tag is selectable. When a tag is not selectable,
721
- * changes to its selected state are always ignored. By default a tag is
722
- * selectable, and it becomes non-selectable if its parent tag list is
723
- * not selectable.
724
- */
725
- get: function () {
726
- return this._selectable && this.tagListSelectable;
727
- },
728
- set: function (value) {
729
- this._selectable = coercion.coerceBooleanProperty(value);
730
- },
731
- enumerable: false,
732
- configurable: true
733
- });
734
- Object.defineProperty(McTag.prototype, "removable", {
735
- /**
736
- * Determines whether or not the tag displays the remove styling and emits (removed) events.
737
- */
738
- get: function () {
739
- return this._removable;
740
- },
741
- set: function (value) {
742
- this._removable = coercion.coerceBooleanProperty(value);
743
- },
744
- enumerable: false,
745
- configurable: true
746
- });
747
- Object.defineProperty(McTag.prototype, "tabindex", {
748
- get: function () {
749
- if (!this.selectable) {
750
- return null;
751
- }
752
- return this.disabled ? null : -1;
753
- },
754
- enumerable: false,
755
- configurable: true
756
- });
757
- Object.defineProperty(McTag.prototype, "disabled", {
758
- get: function () {
759
- return this._disabled;
760
- },
761
- set: function (value) {
762
- if (value !== this.disabled) {
763
- this._disabled = value;
764
- }
765
- },
766
- enumerable: false,
767
- configurable: true
768
- });
769
- McTag.prototype.ngAfterContentInit = function () {
770
- this.addClassModificatorForIcons();
771
- };
772
- McTag.prototype.addClassModificatorForIcons = function () {
773
- var icons = this.contentChildren.map(function (item) { return item._elementRef.nativeElement; });
774
- if (icons.length === 1) {
775
- var iconElement = icons[0];
776
- if (!iconElement.previousElementSibling && !iconElement.nextElementSibling) {
777
- if (iconElement.nextSibling) {
778
- iconElement.classList.add('mc-icon_left');
779
- this.nativeElement.classList.add('mc-left-icon');
780
- }
781
- if (iconElement.previousSibling) {
782
- iconElement.classList.add('mc-icon_right');
783
- this.nativeElement.classList.add('mc-right-icon');
784
- }
785
- }
786
- }
787
- else if (icons.length > 1) {
788
- var firstIconElement = icons[0];
789
- var secondIconElement = icons[1];
790
- firstIconElement.classList.add('mc-icon_left');
791
- secondIconElement.classList.add('mc-icon_right');
792
- }
793
- };
794
- McTag.prototype.addHostClassName = function () {
795
- var e_1, _a;
796
- try {
797
- // Add class for the different tags
798
- for (var TAG_ATTRIBUTE_NAMES_1 = __values(TAG_ATTRIBUTE_NAMES), TAG_ATTRIBUTE_NAMES_1_1 = TAG_ATTRIBUTE_NAMES_1.next(); !TAG_ATTRIBUTE_NAMES_1_1.done; TAG_ATTRIBUTE_NAMES_1_1 = TAG_ATTRIBUTE_NAMES_1.next()) {
799
- var attr = TAG_ATTRIBUTE_NAMES_1_1.value;
800
- if (this.elementRef.nativeElement.hasAttribute(attr) ||
801
- this.elementRef.nativeElement.tagName.toLowerCase() === attr) {
802
- this.elementRef.nativeElement.classList.add(attr);
803
- return;
804
- }
805
- }
806
- }
807
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
808
- finally {
809
- try {
810
- if (TAG_ATTRIBUTE_NAMES_1_1 && !TAG_ATTRIBUTE_NAMES_1_1.done && (_a = TAG_ATTRIBUTE_NAMES_1.return)) _a.call(TAG_ATTRIBUTE_NAMES_1);
811
- }
812
- finally { if (e_1) throw e_1.error; }
813
- }
814
- this.elementRef.nativeElement.classList.add('mc-standard-tag');
815
- };
816
- McTag.prototype.ngOnDestroy = function () {
817
- this.destroyed.emit({ tag: this });
818
- };
819
- McTag.prototype.select = function () {
820
- if (!this._selected) {
821
- this._selected = true;
822
- this.dispatchSelectionChange();
823
- }
824
- };
825
- McTag.prototype.deselect = function () {
826
- if (this._selected) {
827
- this._selected = false;
828
- this.dispatchSelectionChange();
829
- }
830
- };
831
- McTag.prototype.selectViaInteraction = function () {
832
- if (!this._selected) {
833
- this._selected = true;
834
- this.dispatchSelectionChange(true);
835
- }
836
- };
837
- McTag.prototype.toggleSelected = function (isUserInput) {
838
- if (isUserInput === void 0) { isUserInput = false; }
839
- this._selected = !this.selected;
840
- this.dispatchSelectionChange(isUserInput);
841
- return this.selected;
842
- };
843
- /** Allows for programmatic focusing of the tag. */
844
- McTag.prototype.focus = function () {
845
- var _this = this;
846
- if (!this.selectable) {
847
- return;
848
- }
849
- if (!this.hasFocus) {
850
- this.elementRef.nativeElement.focus();
851
- this.onFocus.next({ tag: this });
852
- Promise.resolve().then(function () {
853
- _this.hasFocus = true;
854
- _this.changeDetectorRef.markForCheck();
855
- });
856
- }
857
- };
858
- /**
859
- * Allows for programmatic removal of the tag. Called by the McTagList when the DELETE or
860
- * BACKSPACE keys are pressed.
861
- *
862
- * Informs any listeners of the removal request. Does not remove the tag from the DOM.
863
- */
864
- McTag.prototype.remove = function () {
865
- if (this.removable) {
866
- this.removed.emit({ tag: this });
867
- }
868
- };
869
- McTag.prototype.handleClick = function (event) {
870
- if (this.disabled) {
871
- event.preventDefault();
872
- }
873
- else {
874
- event.stopPropagation();
875
- }
876
- };
877
- McTag.prototype.handleKeydown = function (event) {
878
- if (this.disabled) {
879
- return;
880
- }
881
- // tslint:disable-next-line: deprecation
882
- switch (event.keyCode) {
883
- case keycodes.DELETE:
884
- case keycodes.BACKSPACE:
885
- // If we are removable, remove the focused tag
886
- this.remove();
887
- // Always prevent so page navigation does not occur
888
- event.preventDefault();
889
- break;
890
- case keycodes.SPACE:
891
- // If we are selectable, toggle the focused tag
892
- if (this.selectable) {
893
- this.toggleSelected(true);
894
- }
895
- // Always prevent space from scrolling the page since the list has focus
896
- event.preventDefault();
897
- break;
898
- default:
899
- }
900
- };
901
- McTag.prototype.blur = function () {
902
- var _this = this;
903
- // When animations are enabled, Angular may end up removing the tag from the DOM a little
904
- // earlier than usual, causing it to be blurred and throwing off the logic in the tag list
905
- // that moves focus not the next item. To work around the issue, we defer marking the tag
906
- // as not focused until the next time the zone stabilizes.
907
- this._ngZone.onStable
908
- .asObservable()
909
- .pipe(operators.take(1))
910
- .subscribe(function () {
911
- _this._ngZone.run(function () {
912
- _this.hasFocus = false;
913
- _this.onBlur.next({ tag: _this });
914
- });
915
- });
916
- };
917
- McTag.prototype.dispatchSelectionChange = function (isUserInput) {
918
- if (isUserInput === void 0) { isUserInput = false; }
919
- this.selectionChange.emit({
920
- source: this,
921
- isUserInput: isUserInput,
922
- selected: this._selected
923
- });
924
- };
925
- return McTag;
926
- }(McTagMixinBase));
927
- /** @nocollapse */ McTag.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTag, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
928
- /** @nocollapse */ McTag.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTag, selector: "mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]", inputs: { color: "color", selected: "selected", value: "value", selectable: "selectable", removable: "removable", disabled: "disabled" }, outputs: { selectionChange: "selectionChange", destroyed: "destroyed", removed: "removed" }, host: { listeners: { "click": "handleClick($event)", "keydown": "handleKeydown($event)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.tabindex": "tabindex", "attr.disabled": "disabled || null", "class.mc-selected": "selected", "class.mc-focused": "hasFocus", "class.mc-tag-with-avatar": "avatar", "class.mc-tag-with-trailing-icon": "trailingIcon || removeIcon", "class.mc-disabled": "disabled" }, classAttribute: "mc-tag" }, queries: [{ propertyName: "avatar", first: true, predicate: McTagAvatar, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: McTagTrailingIcon, descendants: true }, { propertyName: "removeIcon", first: true, predicate: McTagRemove, descendants: true }, { propertyName: "contentChildren", predicate: icon.McIcon }], exportAs: ["mcTag"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-tag__wrapper\">\n <span class=\"mc-tag__text\"><ng-content></ng-content></span>\n <ng-content select=\"[mc-icon]\"></ng-content>\n <div class=\"mc-tag-overlay\"></div>\n</div>\n", styles: [".mc-tag{position:relative;display:inline-block;overflow:hidden;margin:2px;margin:var(--mc-tags-size-margin, 2px);height:24px;height:var(--mc-tags-size-height, 24px);border-width:1px;border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;border-radius:4px;border-radius:var(--mc-tags-size-border-radius, 4px);cursor:default;outline:none;box-sizing:border-box}.mc-tag.mc-left-icon{padding-left:3px;padding-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:3px;padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}.mc-tag__wrapper .mc-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;width:var(--mc-tags-size-height, 24px);height:24px;height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:3px;margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{margin-left:3px;margin-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;pointer-events:none;border-radius:inherit}.mc-tag__text{margin-left:calc(8px - 1px);margin-left:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
929
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTag, decorators: [{
930
- type: i0.Component,
931
- args: [{
932
- selector: 'mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]',
933
- exportAs: 'mcTag',
934
- templateUrl: 'tag.partial.html',
935
- styleUrls: ['./tag.scss'],
936
- inputs: ['color'],
937
- host: {
938
- class: 'mc-tag',
939
- '[attr.tabindex]': 'tabindex',
940
- '[attr.disabled]': 'disabled || null',
941
- '[class.mc-selected]': 'selected',
942
- '[class.mc-focused]': 'hasFocus',
943
- '[class.mc-tag-with-avatar]': 'avatar',
944
- '[class.mc-tag-with-trailing-icon]': 'trailingIcon || removeIcon',
945
- '[class.mc-disabled]': 'disabled',
946
- '(click)': 'handleClick($event)',
947
- '(keydown)': 'handleKeydown($event)',
948
- '(focus)': 'focus()',
949
- '(blur)': 'blur()'
950
- },
951
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
952
- encapsulation: i0.ViewEncapsulation.None
953
- }]
954
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { contentChildren: [{
955
- type: i0.ContentChildren,
956
- args: [icon.McIcon]
957
- }], avatar: [{
958
- type: i0.ContentChild,
959
- args: [McTagAvatar, { static: false }]
960
- }], trailingIcon: [{
961
- type: i0.ContentChild,
962
- args: [McTagTrailingIcon, { static: false }]
963
- }], removeIcon: [{
964
- type: i0.ContentChild,
965
- args: [i0.forwardRef(function () { return McTagRemove; }), { static: false }]
966
- }], selectionChange: [{
967
- type: i0.Output
968
- }], destroyed: [{
969
- type: i0.Output
970
- }], removed: [{
971
- type: i0.Output
972
- }], selected: [{
973
- type: i0.Input
974
- }], value: [{
975
- type: i0.Input
976
- }], selectable: [{
977
- type: i0.Input
978
- }], removable: [{
979
- type: i0.Input
980
- }], disabled: [{
981
- type: i0.Input
982
- }] } });
983
- /**
984
- *
985
- * Example:
986
- *
987
- * `<mc-tag>
988
- * <mc-icon mcTagRemove>cancel</mc-icon>
989
- * </mc-tag>`
990
- *
991
- * You *may* use a custom icon, but you may need to override the `mc-tag-remove` positioning
992
- * styles to properly center the icon within the tag.
993
- */
994
- var McTagRemove = /** @class */ (function () {
995
- function McTagRemove(parentTag) {
996
- this.parentTag = parentTag;
997
- }
998
- McTagRemove.prototype.focus = function ($event) {
999
- $event.stopPropagation();
1000
- };
1001
- /** Calls the parent tag's public `remove()` method if applicable. */
1002
- McTagRemove.prototype.handleClick = function (event) {
1003
- if (this.parentTag.removable) {
1004
- this.parentTag.hasFocus = true;
1005
- this.parentTag.remove();
1006
- }
1007
- // We need to stop event propagation because otherwise the event will bubble up to the
1008
- // form field and cause the `onContainerClick` method to be invoked. This method would then
1009
- // reset the focused tag that has been focused after tag removal. Usually the parent
1010
- // the parent click listener of the `McTag` would prevent propagation, but it can happen
1011
- // that the tag is being removed before the event bubbles up.
1012
- event.stopPropagation();
1013
- };
1014
- return McTagRemove;
1015
- }());
1016
- /** @nocollapse */ McTagRemove.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagRemove, deps: [{ token: McTag }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1017
- /** @nocollapse */ McTagRemove.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTagRemove, selector: "[mcTagRemove]", host: { listeners: { "click": "handleClick($event)", "focus": "focus($event)" }, properties: { "attr.tabindex": "-1" }, classAttribute: "mc-tag-remove mc-tag-trailing-icon" }, ngImport: i0__namespace });
1018
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagRemove, decorators: [{
1019
- type: i0.Directive,
1020
- args: [{
1021
- selector: '[mcTagRemove]',
1022
- host: {
1023
- class: 'mc-tag-remove mc-tag-trailing-icon',
1024
- '[attr.tabindex]': '-1',
1025
- '(click)': 'handleClick($event)',
1026
- '(focus)': 'focus($event)'
1027
- }
1028
- }]
1029
- }], ctorParameters: function () { return [{ type: McTag }]; } });
1030
-
1031
- var McTagListBase = /** @class */ (function () {
1032
- function McTagListBase(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
1033
- this.defaultErrorStateMatcher = defaultErrorStateMatcher;
1034
- this.parentForm = parentForm;
1035
- this.parentFormGroup = parentFormGroup;
1036
- this.ngControl = ngControl;
1037
- }
1038
- return McTagListBase;
1039
- }());
1040
- // tslint:disable-next-line:naming-convention
1041
- var McTagListMixinBase = i1.mixinErrorState(McTagListBase);
1042
- // Increasing integer for generating unique ids for tag-list components.
1043
- var nextUniqueId = 0;
1044
- /** Change event object that is emitted when the tag list value has changed. */
1045
- var McTagListChange = /** @class */ (function () {
1046
- function McTagListChange(source, value) {
1047
- this.source = source;
1048
- this.value = value;
1049
- }
1050
- return McTagListChange;
1051
- }());
1052
- var McTagList = /** @class */ (function (_super) {
1053
- __extends(McTagList, _super);
1054
- function McTagList(elementRef, changeDetectorRef, defaultErrorStateMatcher, rawValidators, mcValidation, dir, parentForm, parentFormGroup, ngControl, ngModel, formControlName) {
1055
- var _this = _super.call(this, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) || this;
1056
- _this.elementRef = elementRef;
1057
- _this.changeDetectorRef = changeDetectorRef;
1058
- _this.rawValidators = rawValidators;
1059
- _this.mcValidation = mcValidation;
1060
- _this.dir = dir;
1061
- _this.ngModel = ngModel;
1062
- _this.formControlName = formControlName;
1063
- _this.controlType = 'tag-list';
1064
- _this._tabIndex = 0;
1065
- /**
1066
- * Event that emits whenever the raw value of the tag-list changes. This is here primarily
1067
- * to facilitate the two-way binding for the `value` input.
1068
- * @docs-private
1069
- */
1070
- _this.valueChange = new i0.EventEmitter();
1071
- _this.uid = "mc-tag-list-" + nextUniqueId++;
1072
- /**
1073
- * User defined tab index.
1074
- * When it is not null, use user defined tab index. Otherwise use tabIndex
1075
- */
1076
- _this.userTabIndex = null;
1077
- _this.tagChanges = new i0.EventEmitter();
1078
- /** Orientation of the tag list. */
1079
- _this.orientation = 'horizontal';
1080
- /** Event emitted when the selected tag list value has been changed by the user. */
1081
- _this.change = new i0.EventEmitter();
1082
- _this._required = false;
1083
- _this._disabled = false;
1084
- _this._selectable = true;
1085
- _this._multiple = false;
1086
- /**
1087
- * When a tag is destroyed, we store the index of the destroyed tag until the tags
1088
- * query list notifies about the update. This is necessary because we cannot determine an
1089
- * appropriate tag that should receive focus until the array of tags updated completely.
1090
- */
1091
- _this.lastDestroyedTagIndex = null;
1092
- /** Subject that emits when the component has been destroyed. */
1093
- _this.destroyed = new rxjs.Subject();
1094
- // tslint:disable-next-line:no-empty
1095
- _this.onTouched = function () { };
1096
- // tslint:disable-next-line:no-empty
1097
- _this.onChange = function () { };
1098
- _this._compareWith = function (o1, o2) { return o1 === o2; };
1099
- if (_this.ngControl) {
1100
- _this.ngControl.valueAccessor = _this;
1101
- }
1102
- return _this;
1103
- }
1104
- Object.defineProperty(McTagList.prototype, "tagSelectionChanges", {
1105
- /** Combined stream of all of the child tags' selection change events. */
1106
- get: function () {
1107
- return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.selectionChange; }))));
1108
- },
1109
- enumerable: false,
1110
- configurable: true
1111
- });
1112
- Object.defineProperty(McTagList.prototype, "tagFocusChanges", {
1113
- /** Combined stream of all of the child tags' focus change events. */
1114
- get: function () {
1115
- return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.onFocus; }))));
1116
- },
1117
- enumerable: false,
1118
- configurable: true
1119
- });
1120
- Object.defineProperty(McTagList.prototype, "tagBlurChanges", {
1121
- /** Combined stream of all of the child tags' blur change events. */
1122
- get: function () {
1123
- return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.onBlur; }))));
1124
- },
1125
- enumerable: false,
1126
- configurable: true
1127
- });
1128
- Object.defineProperty(McTagList.prototype, "tagRemoveChanges", {
1129
- /** Combined stream of all of the child tags' remove change events. */
1130
- get: function () {
1131
- return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.destroyed; }))));
1132
- },
1133
- enumerable: false,
1134
- configurable: true
1135
- });
1136
- Object.defineProperty(McTagList.prototype, "selected", {
1137
- /** The array of selected tags inside tag list. */
1138
- get: function () {
1139
- return this.multiple ? this.selectionModel.selected : this.selectionModel.selected[0];
1140
- },
1141
- enumerable: false,
1142
- configurable: true
1143
- });
1144
- Object.defineProperty(McTagList.prototype, "canShowCleaner", {
1145
- get: function () {
1146
- return this.cleaner && this.tags.length > 0;
1147
- },
1148
- enumerable: false,
1149
- configurable: true
1150
- });
1151
- Object.defineProperty(McTagList.prototype, "multiple", {
1152
- /** Whether the user should be allowed to select multiple tags. */
1153
- get: function () {
1154
- return this._multiple;
1155
- },
1156
- set: function (value) {
1157
- this._multiple = coercion.coerceBooleanProperty(value);
1158
- },
1159
- enumerable: false,
1160
- configurable: true
1161
- });
1162
- Object.defineProperty(McTagList.prototype, "compareWith", {
1163
- /**
1164
- * A function to compare the option values with the selected values. The first argument
1165
- * is a value from an option. The second is a value from the selection. A boolean
1166
- * should be returned.
1167
- */
1168
- get: function () {
1169
- return this._compareWith;
1170
- },
1171
- set: function (fn) {
1172
- this._compareWith = fn;
1173
- if (this.selectionModel) {
1174
- // A different comparator means the selection could change.
1175
- this.initializeSelection();
1176
- }
1177
- },
1178
- enumerable: false,
1179
- configurable: true
1180
- });
1181
- Object.defineProperty(McTagList.prototype, "value", {
1182
- /**
1183
- * Implemented as part of McFormFieldControl.
1184
- * @docs-private
1185
- */
1186
- get: function () {
1187
- return this._value;
1188
- },
1189
- set: function (value) {
1190
- this.writeValue(value);
1191
- this._value = value;
1192
- },
1193
- enumerable: false,
1194
- configurable: true
1195
- });
1196
- Object.defineProperty(McTagList.prototype, "id", {
1197
- /**
1198
- * Implemented as part of McFormFieldControl.
1199
- * @docs-private
1200
- */
1201
- get: function () {
1202
- return this.tagInput ? this.tagInput.id : this.uid;
1203
- },
1204
- enumerable: false,
1205
- configurable: true
1206
- });
1207
- Object.defineProperty(McTagList.prototype, "required", {
1208
- /**
1209
- * Implemented as part of McFormFieldControl.
1210
- * @docs-private
1211
- */
1212
- get: function () {
1213
- return this._required;
1214
- },
1215
- set: function (value) {
1216
- this._required = coercion.coerceBooleanProperty(value);
1217
- this.stateChanges.next();
1218
- },
1219
- enumerable: false,
1220
- configurable: true
1221
- });
1222
- Object.defineProperty(McTagList.prototype, "placeholder", {
1223
- /**
1224
- * Implemented as part of McFormFieldControl.
1225
- * @docs-private
1226
- */
1227
- get: function () {
1228
- return this.tagInput ? this.tagInput.placeholder : this._placeholder;
1229
- },
1230
- set: function (value) {
1231
- this._placeholder = value;
1232
- this.stateChanges.next();
1233
- },
1234
- enumerable: false,
1235
- configurable: true
1236
- });
1237
- Object.defineProperty(McTagList.prototype, "focused", {
1238
- /** Whether any tags or the mcTagInput inside of this tag-list has focus. */
1239
- get: function () {
1240
- return (this.tagInput && this.tagInput.focused) || this.hasFocusedTag();
1241
- },
1242
- enumerable: false,
1243
- configurable: true
1244
- });
1245
- Object.defineProperty(McTagList.prototype, "empty", {
1246
- /**
1247
- * Implemented as part of McFormFieldControl.
1248
- * @docs-private
1249
- */
1250
- get: function () {
1251
- return (!this.tagInput || this.tagInput.empty) && this.tags.length === 0;
1252
- },
1253
- enumerable: false,
1254
- configurable: true
1255
- });
1256
- Object.defineProperty(McTagList.prototype, "shouldLabelFloat", {
1257
- /**
1258
- * Implemented as part of McFormFieldControl.
1259
- * @docs-private
1260
- */
1261
- get: function () {
1262
- return !this.empty || this.focused;
1263
- },
1264
- enumerable: false,
1265
- configurable: true
1266
- });
1267
- Object.defineProperty(McTagList.prototype, "disabled", {
1268
- /**
1269
- * Implemented as part of McFormFieldControl.
1270
- * @docs-private
1271
- */
1272
- get: function () {
1273
- return this.ngControl ? !!this.ngControl.disabled : this._disabled;
1274
- },
1275
- set: function (value) {
1276
- this._disabled = coercion.coerceBooleanProperty(value);
1277
- this.syncTagsDisabledState();
1278
- },
1279
- enumerable: false,
1280
- configurable: true
1281
- });
1282
- Object.defineProperty(McTagList.prototype, "selectable", {
1283
- /**
1284
- * Whether or not this tag list is selectable. When a tag list is not selectable,
1285
- * the selected states for all the tags inside the tag list are always ignored.
1286
- */
1287
- get: function () {
1288
- return this._selectable;
1289
- },
1290
- set: function (value) {
1291
- var _this = this;
1292
- this._selectable = coercion.coerceBooleanProperty(value);
1293
- if (this.tags) {
1294
- this.tags.forEach(function (tag) { return tag.tagListSelectable = _this._selectable; });
1295
- }
1296
- },
1297
- enumerable: false,
1298
- configurable: true
1299
- });
1300
- Object.defineProperty(McTagList.prototype, "tabIndex", {
1301
- get: function () {
1302
- return this._tabIndex;
1303
- },
1304
- set: function (value) {
1305
- this.userTabIndex = value;
1306
- this._tabIndex = value;
1307
- },
1308
- enumerable: false,
1309
- configurable: true
1310
- });
1311
- McTagList.prototype.ngAfterContentInit = function () {
1312
- var _this = this;
1313
- if (this.mcValidation.useValidation) {
1314
- i1.setMosaicValidation(this);
1315
- }
1316
- this.keyManager = new a11y.FocusKeyManager(this.tags)
1317
- .withVerticalOrientation()
1318
- .withHorizontalOrientation(this.dir ? this.dir.value : 'ltr');
1319
- if (this.dir) {
1320
- this.dir.change
1321
- .pipe(operators.takeUntil(this.destroyed))
1322
- .subscribe(function (dir) { return _this.keyManager.withHorizontalOrientation(dir); });
1323
- }
1324
- // Prevents the tag list from capturing focus and redirecting
1325
- // it back to the first tag when the user tabs out.
1326
- this.keyManager.tabOut
1327
- .pipe(operators.takeUntil(this.destroyed))
1328
- .subscribe(function () {
1329
- _this._tabIndex = -1;
1330
- setTimeout(function () {
1331
- _this._tabIndex = _this.userTabIndex || 0;
1332
- _this.changeDetectorRef.markForCheck();
1333
- });
1334
- });
1335
- // When the list changes, re-subscribe
1336
- this.tags.changes
1337
- .pipe(operators.startWith(null), operators.takeUntil(this.destroyed))
1338
- .subscribe(function () {
1339
- if (_this.disabled) {
1340
- // Since this happens after the content has been
1341
- // checked, we need to defer it to the next tick.
1342
- Promise.resolve().then(function () { _this.syncTagsDisabledState(); });
1343
- }
1344
- _this.resetTags();
1345
- // Reset tags selected/deselected status
1346
- _this.initializeSelection();
1347
- // Check to see if we need to update our tab index
1348
- _this.updateTabIndex();
1349
- // Check to see if we have a destroyed tag and need to refocus
1350
- _this.updateFocusForDestroyedTags();
1351
- // Defer setting the value in order to avoid the "Expression
1352
- // has changed after it was checked" errors from Angular.
1353
- Promise.resolve().then(function () {
1354
- _this.tagChanges.emit(_this.tags.toArray());
1355
- _this.stateChanges.next();
1356
- _this.propagateTagsChanges();
1357
- });
1358
- });
1359
- };
1360
- McTagList.prototype.ngOnInit = function () {
1361
- this.selectionModel = new collections.SelectionModel(this.multiple, undefined, false);
1362
- this.stateChanges.next();
1363
- };
1364
- McTagList.prototype.ngDoCheck = function () {
1365
- if (this.ngControl) {
1366
- // We need to re-evaluate this on every change detection cycle, because there are some
1367
- // error triggers that we can't subscribe to (e.g. parent form submissions). This means
1368
- // that whatever logic is in here has to be super lean or we risk destroying the performance.
1369
- this.updateErrorState();
1370
- }
1371
- };
1372
- McTagList.prototype.ngOnDestroy = function () {
1373
- this.destroyed.next();
1374
- this.destroyed.complete();
1375
- this.stateChanges.complete();
1376
- this.dropSubscriptions();
1377
- };
1378
- /** Associates an HTML input element with this tag list. */
1379
- McTagList.prototype.registerInput = function (inputElement) {
1380
- var _this = this;
1381
- var _a;
1382
- this.tagInput = inputElement;
1383
- // todo need rethink about it
1384
- if (this.ngControl && ((_a = inputElement.ngControl) === null || _a === void 0 ? void 0 : _a.statusChanges)) {
1385
- inputElement.ngControl.statusChanges
1386
- .subscribe(function () { return _this.ngControl.control.setErrors(inputElement.ngControl.errors); });
1387
- }
1388
- };
1389
- // Implemented as part of ControlValueAccessor.
1390
- McTagList.prototype.writeValue = function (value) {
1391
- if (this.tags) {
1392
- this.setSelectionByValue(value, false);
1393
- }
1394
- };
1395
- // Implemented as part of ControlValueAccessor.
1396
- McTagList.prototype.registerOnChange = function (fn) {
1397
- this.onChange = fn;
1398
- };
1399
- // Implemented as part of ControlValueAccessor.
1400
- McTagList.prototype.registerOnTouched = function (fn) {
1401
- this.onTouched = fn;
1402
- };
1403
- // Implemented as part of ControlValueAccessor.
1404
- McTagList.prototype.setDisabledState = function (isDisabled) {
1405
- this.disabled = isDisabled;
1406
- this.stateChanges.next();
1407
- };
1408
- /**
1409
- * Implemented as part of McFormFieldControl.
1410
- * @docs-private
1411
- */
1412
- McTagList.prototype.onContainerClick = function (event) {
1413
- if (!this.originatesFromTag(event)) {
1414
- this.focus();
1415
- }
1416
- };
1417
- /**
1418
- * Focuses the first non-disabled tag in this tag list, or the associated input when there
1419
- * are no eligible tags.
1420
- */
1421
- McTagList.prototype.focus = function () {
1422
- if (this.disabled) {
1423
- return;
1424
- }
1425
- // TODO: ARIA says this should focus the first `selected` tag if any are selected.
1426
- // Focus on first element if there's no tagInput inside tag-list
1427
- if (this.tagInput && this.tagInput.focused) {
1428
- // do nothing
1429
- }
1430
- else if (this.tags.length > 0) {
1431
- this.keyManager.setFirstItemActive();
1432
- this.stateChanges.next();
1433
- }
1434
- else {
1435
- this.focusInput();
1436
- this.stateChanges.next();
1437
- }
1438
- };
1439
- /** Attempt to focus an input if we have one. */
1440
- McTagList.prototype.focusInput = function () {
1441
- if (this.tagInput) {
1442
- this.tagInput.focus();
1443
- }
1444
- };
1445
- /**
1446
- * Pass events to the keyboard manager. Available here for tests.
1447
- */
1448
- McTagList.prototype.keydown = function (event) {
1449
- var target = event.target;
1450
- // If they are on an empty input and hit backspace, focus the last tag
1451
- // tslint:disable-next-line: deprecation
1452
- if (event.keyCode === keycodes.BACKSPACE && this.isInputEmpty(target)) {
1453
- this.keyManager.setLastItemActive();
1454
- event.preventDefault();
1455
- }
1456
- else if (target && target.classList.contains('mc-tag')) {
1457
- // tslint:disable-next-line: deprecation
1458
- if (event.keyCode === keycodes.HOME) {
1459
- this.keyManager.setFirstItemActive();
1460
- event.preventDefault();
1461
- // tslint:disable-next-line: deprecation
1462
- }
1463
- else if (event.keyCode === keycodes.END) {
1464
- this.keyManager.setLastItemActive();
1465
- event.preventDefault();
1466
- }
1467
- else {
1468
- this.keyManager.onKeydown(event);
1469
- }
1470
- this.stateChanges.next();
1471
- }
1472
- };
1473
- McTagList.prototype.setSelectionByValue = function (value, isUserInput) {
1474
- var _this = this;
1475
- if (isUserInput === void 0) { isUserInput = true; }
1476
- this.clearSelection();
1477
- this.tags.forEach(function (tag) { return tag.deselect(); });
1478
- if (Array.isArray(value)) {
1479
- value.forEach(function (currentValue) { return _this.selectValue(currentValue, isUserInput); });
1480
- this.sortValues();
1481
- }
1482
- else {
1483
- var correspondingTag = this.selectValue(value, isUserInput);
1484
- // Shift focus to the active item. Note that we shouldn't do this in multiple
1485
- // mode, because we don't know what tag the user interacted with last.
1486
- if (correspondingTag && isUserInput) {
1487
- this.keyManager.setActiveItem(correspondingTag);
1488
- }
1489
- }
1490
- };
1491
- /** When blurred, mark the field as touched when focus moved outside the tag list. */
1492
- McTagList.prototype.blur = function () {
1493
- var _this = this;
1494
- if (!this.hasFocusedTag()) {
1495
- this.keyManager.setActiveItem(-1);
1496
- }
1497
- if (!this.disabled) {
1498
- if (this.tagInput) {
1499
- // If there's a tag input, we should check whether the focus moved to tag input.
1500
- // If the focus is not moved to tag input, mark the field as touched. If the focus moved
1501
- // to tag input, do nothing.
1502
- // Timeout is needed to wait for the focus() event trigger on tag input.
1503
- setTimeout(function () {
1504
- if (!_this.focused) {
1505
- _this.markAsTouched();
1506
- }
1507
- });
1508
- }
1509
- else {
1510
- // If there's no tag input, then mark the field as touched.
1511
- this.markAsTouched();
1512
- }
1513
- }
1514
- };
1515
- /** Mark the field as touched */
1516
- McTagList.prototype.markAsTouched = function () {
1517
- this.onTouched();
1518
- this.changeDetectorRef.markForCheck();
1519
- this.stateChanges.next();
1520
- };
1521
- /**
1522
- * Check the tab index as you should not be allowed to focus an empty list.
1523
- */
1524
- McTagList.prototype.updateTabIndex = function () {
1525
- // If we have 0 tags, we should not allow keyboard focus
1526
- this._tabIndex = this.userTabIndex || (this.tags.length === 0 ? -1 : 0);
1527
- };
1528
- /**
1529
- * If the amount of tags changed, we need to update the
1530
- * key manager state and focus the next closest tag.
1531
- */
1532
- McTagList.prototype.updateFocusForDestroyedTags = function () {
1533
- if (this.lastDestroyedTagIndex != null) {
1534
- if (this.tags.length) {
1535
- var newTagIndex = Math.min(this.lastDestroyedTagIndex, this.tags.length - 1);
1536
- this.keyManager.setActiveItem(newTagIndex);
1537
- }
1538
- else {
1539
- this.focusInput();
1540
- }
1541
- }
1542
- this.lastDestroyedTagIndex = null;
1543
- };
1544
- /**
1545
- * Utility to ensure all indexes are valid.
1546
- *
1547
- * @param index The index to be checked.
1548
- * @returns True if the index is valid for our list of tags.
1549
- */
1550
- McTagList.prototype.isValidIndex = function (index) {
1551
- return index >= 0 && index < this.tags.length;
1552
- };
1553
- McTagList.prototype.isInputEmpty = function (element) {
1554
- if (element && element.nodeName.toLowerCase() === 'input') {
1555
- var input = element;
1556
- return !input.value;
1557
- }
1558
- return false;
1559
- };
1560
- /**
1561
- * Finds and selects the tag based on its value.
1562
- * @returns Tag that has the corresponding value.
1563
- */
1564
- McTagList.prototype.selectValue = function (value, isUserInput) {
1565
- var _this = this;
1566
- if (isUserInput === void 0) { isUserInput = true; }
1567
- var correspondingTag = this.tags.find(function (tag) {
1568
- return tag.value != null && _this._compareWith(tag.value, value);
1569
- });
1570
- if (correspondingTag) {
1571
- if (isUserInput) {
1572
- correspondingTag.selectViaInteraction();
1573
- }
1574
- else {
1575
- correspondingTag.select();
1576
- }
1577
- this.selectionModel.select(correspondingTag);
1578
- }
1579
- return correspondingTag;
1580
- };
1581
- McTagList.prototype.initializeSelection = function () {
1582
- var _this = this;
1583
- // Defer setting the value in order to avoid the "Expression
1584
- // has changed after it was checked" errors from Angular.
1585
- Promise.resolve().then(function () {
1586
- if (_this.ngControl || _this._value) {
1587
- _this.setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value, false);
1588
- _this.stateChanges.next();
1589
- }
1590
- });
1591
- };
1592
- /**
1593
- * Deselects every tag in the list.
1594
- * @param skip Tag that should not be deselected.
1595
- */
1596
- McTagList.prototype.clearSelection = function (skip) {
1597
- this.selectionModel.clear();
1598
- this.tags.forEach(function (tag) {
1599
- if (tag !== skip) {
1600
- tag.deselect();
1601
- }
1602
- });
1603
- this.stateChanges.next();
1604
- };
1605
- /**
1606
- * Sorts the model values, ensuring that they keep the same
1607
- * order that they have in the panel.
1608
- */
1609
- McTagList.prototype.sortValues = function () {
1610
- var _this = this;
1611
- if (this._multiple) {
1612
- this.selectionModel.clear();
1613
- this.tags.forEach(function (tag) {
1614
- if (tag.selected) {
1615
- _this.selectionModel.select(tag);
1616
- }
1617
- });
1618
- this.stateChanges.next();
1619
- }
1620
- };
1621
- /** Emits change event to set the model value. */
1622
- // todo need rethink this method and selection logic
1623
- McTagList.prototype.propagateChanges = function (fallbackValue) {
1624
- var valueToEmit = null;
1625
- if (Array.isArray(this.selected)) {
1626
- valueToEmit = this.selected.map(function (tag) { return tag.value; });
1627
- }
1628
- else {
1629
- valueToEmit = this.selected ? this.selected.value : fallbackValue;
1630
- }
1631
- this._value = valueToEmit;
1632
- this.change.emit(new McTagListChange(this, valueToEmit));
1633
- this.valueChange.emit(valueToEmit);
1634
- this.onChange(valueToEmit);
1635
- this.changeDetectorRef.markForCheck();
1636
- };
1637
- McTagList.prototype.propagateTagsChanges = function () {
1638
- var valueToEmit = this.tags.map(function (tag) { return tag.value; });
1639
- this._value = valueToEmit;
1640
- this.change.emit(new McTagListChange(this, valueToEmit));
1641
- this.valueChange.emit(valueToEmit);
1642
- this.onChange(valueToEmit);
1643
- this.changeDetectorRef.markForCheck();
1644
- };
1645
- McTagList.prototype.resetTags = function () {
1646
- this.dropSubscriptions();
1647
- this.listenToTagsFocus();
1648
- this.listenToTagsSelection();
1649
- this.listenToTagsRemoved();
1650
- };
1651
- McTagList.prototype.dropSubscriptions = function () {
1652
- if (this.tagFocusSubscription) {
1653
- this.tagFocusSubscription.unsubscribe();
1654
- this.tagFocusSubscription = null;
1655
- }
1656
- if (this.tagBlurSubscription) {
1657
- this.tagBlurSubscription.unsubscribe();
1658
- this.tagBlurSubscription = null;
1659
- }
1660
- if (this.tagSelectionSubscription) {
1661
- this.tagSelectionSubscription.unsubscribe();
1662
- this.tagSelectionSubscription = null;
1663
- }
1664
- if (this.tagRemoveSubscription) {
1665
- this.tagRemoveSubscription.unsubscribe();
1666
- this.tagRemoveSubscription = null;
1667
- }
1668
- };
1669
- /** Listens to user-generated selection events on each tag. */
1670
- McTagList.prototype.listenToTagsSelection = function () {
1671
- var _this = this;
1672
- this.tagSelectionSubscription = this.tagSelectionChanges.subscribe(function (event) {
1673
- if (event.source.selected) {
1674
- _this.selectionModel.select(event.source);
1675
- }
1676
- else {
1677
- _this.selectionModel.deselect(event.source);
1678
- }
1679
- // For single selection tag list, make sure the deselected value is unselected.
1680
- if (!_this.multiple) {
1681
- _this.tags.forEach(function (tag) {
1682
- if (!_this.selectionModel.isSelected(tag) && tag.selected) {
1683
- tag.deselect();
1684
- }
1685
- });
1686
- }
1687
- if (event.isUserInput) {
1688
- _this.propagateChanges();
1689
- }
1690
- });
1691
- };
1692
- /** Listens to user-generated selection events on each tag. */
1693
- McTagList.prototype.listenToTagsFocus = function () {
1694
- var _this = this;
1695
- this.tagFocusSubscription = this.tagFocusChanges
1696
- .subscribe(function (event) {
1697
- var tagIndex = _this.tags.toArray().indexOf(event.tag);
1698
- if (_this.isValidIndex(tagIndex)) {
1699
- _this.keyManager.updateActiveItem(tagIndex);
1700
- }
1701
- _this.stateChanges.next();
1702
- });
1703
- this.tagBlurSubscription = this.tagBlurChanges
1704
- .subscribe(function () {
1705
- _this.blur();
1706
- _this.stateChanges.next();
1707
- });
1708
- };
1709
- McTagList.prototype.listenToTagsRemoved = function () {
1710
- var _this = this;
1711
- this.tagRemoveSubscription = this.tagRemoveChanges
1712
- .subscribe(function (event) {
1713
- var tag = event.tag;
1714
- var tagIndex = _this.tags.toArray().indexOf(event.tag);
1715
- // In case the tag that will be removed is currently focused, we temporarily store
1716
- // the index in order to be able to determine an appropriate sibling tag that will
1717
- // receive focus.
1718
- if (_this.isValidIndex(tagIndex) && tag.hasFocus) {
1719
- _this.lastDestroyedTagIndex = tagIndex;
1720
- }
1721
- });
1722
- };
1723
- /** Checks whether an event comes from inside a tag element. */
1724
- McTagList.prototype.originatesFromTag = function (event) {
1725
- var currentElement = event.target;
1726
- while (currentElement && currentElement !== this.elementRef.nativeElement) {
1727
- if (currentElement.classList.contains('mc-tag')) {
1728
- return true;
1729
- }
1730
- currentElement = currentElement.parentElement;
1731
- }
1732
- return false;
1733
- };
1734
- /** Checks whether any of the tags is focused. */
1735
- McTagList.prototype.hasFocusedTag = function () {
1736
- return this.tags.some(function (tag) { return tag.hasFocus; });
1737
- };
1738
- /** Syncs the list's disabled state with the individual tags. */
1739
- McTagList.prototype.syncTagsDisabledState = function () {
1740
- var _this = this;
1741
- if (this.tags) {
1742
- this.tags.forEach(function (tag) {
1743
- tag.disabled = _this._disabled;
1744
- });
1745
- }
1746
- };
1747
- return McTagList;
1748
- }(McTagListMixinBase));
1749
- /** @nocollapse */ McTagList.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagList, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.ErrorStateMatcher }, { token: i3.NG_VALIDATORS, optional: true }, { token: i1.MC_VALIDATION, optional: true }, { token: i2__namespace.Directionality, optional: true }, { token: i3__namespace.NgForm, optional: true }, { token: i3__namespace.FormGroupDirective, optional: true }, { token: i3__namespace.NgControl, optional: true, self: true }, { token: i3__namespace.NgModel, optional: true, self: true }, { token: i3__namespace.FormControlName, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1750
- /** @nocollapse */ McTagList.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTagList, selector: "mc-tag-list", inputs: { multiple: "multiple", compareWith: "compareWith", value: "value", required: "required", placeholder: "placeholder", disabled: "disabled", selectable: "selectable", tabIndex: "tabIndex", errorStateMatcher: "errorStateMatcher", orientation: "orientation" }, outputs: { valueChange: "valueChange", change: "change" }, host: { listeners: { "focus": "focus()", "blur": "blur()", "keydown": "keydown($event)" }, properties: { "class.mc-disabled": "disabled", "class.mc-invalid": "errorState", "attr.tabindex": "disabled ? null : tabIndex", "id": "uid" }, classAttribute: "mc-tag-list" }, providers: [{ provide: formField.McFormFieldControl, useExisting: McTagList }], queries: [{ propertyName: "cleaner", first: true, predicate: ["mcTagListCleaner"], descendants: true, static: true }, { propertyName: "tags", predicate: McTag, descendants: true }], exportAs: ["mcTagList"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-tags-list__list-container\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"mc-tags-list__cleaner\"\n *ngIf=\"canShowCleaner\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n</div>\n", styles: [".mc-tag-list{display:flex;flex-direction:row;box-sizing:border-box}.mc-tag-input{border:none;outline:none;background:transparent}.mc-tags-list__list-container{display:flex;flex-wrap:wrap;flex:1 1 100%;box-sizing:border-box;min-width:0;min-height:30px;min-height:var(--mc-tag-list-size-min-height, 30px);padding:1px 6px;padding:var(--mc-tag-list-size-padding, 1px 6px)}.mc-tags-list__list-container .mc-tag-input{max-width:100%;flex:1 1 auto;height:22px;height:var(--mc-tag-input-size-height, 22px);margin:2px 4px;margin:var(--mc-tag-input-size-margin, 2px 4px)}.mc-tags-list__cleaner .mc-cleaner{height:30px}\n"], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1751
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagList, decorators: [{
1752
- type: i0.Component,
1753
- args: [{
1754
- selector: 'mc-tag-list',
1755
- exportAs: 'mcTagList',
1756
- templateUrl: 'tag-list.partial.html',
1757
- styleUrls: ['tag-list.scss'],
1758
- host: {
1759
- class: 'mc-tag-list',
1760
- '[class.mc-disabled]': 'disabled',
1761
- '[class.mc-invalid]': 'errorState',
1762
- '[attr.tabindex]': 'disabled ? null : tabIndex',
1763
- '[id]': 'uid',
1764
- '(focus)': 'focus()',
1765
- '(blur)': 'blur()',
1766
- '(keydown)': 'keydown($event)'
1767
- },
1768
- encapsulation: i0.ViewEncapsulation.None,
1769
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1770
- providers: [{ provide: formField.McFormFieldControl, useExisting: McTagList }]
1771
- }]
1772
- }], ctorParameters: function () {
1773
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.ErrorStateMatcher }, { type: undefined, decorators: [{
1774
- type: i0.Optional
1775
- }, {
1776
- type: i0.Inject,
1777
- args: [i3.NG_VALIDATORS]
1778
- }] }, { type: undefined, decorators: [{
1779
- type: i0.Optional
1780
- }, {
1781
- type: i0.Inject,
1782
- args: [i1.MC_VALIDATION]
1783
- }] }, { type: i2__namespace.Directionality, decorators: [{
1784
- type: i0.Optional
1785
- }] }, { type: i3__namespace.NgForm, decorators: [{
1786
- type: i0.Optional
1787
- }] }, { type: i3__namespace.FormGroupDirective, decorators: [{
1788
- type: i0.Optional
1789
- }] }, { type: i3__namespace.NgControl, decorators: [{
1790
- type: i0.Optional
1791
- }, {
1792
- type: i0.Self
1793
- }] }, { type: i3__namespace.NgModel, decorators: [{
1794
- type: i0.Optional
1795
- }, {
1796
- type: i0.Self
1797
- }] }, { type: i3__namespace.FormControlName, decorators: [{
1798
- type: i0.Optional
1799
- }, {
1800
- type: i0.Self
1801
- }] }];
1802
- }, propDecorators: { multiple: [{
1803
- type: i0.Input
1804
- }], compareWith: [{
1805
- type: i0.Input
1806
- }], value: [{
1807
- type: i0.Input
1808
- }], required: [{
1809
- type: i0.Input
1810
- }], placeholder: [{
1811
- type: i0.Input
1812
- }], disabled: [{
1813
- type: i0.Input
1814
- }], selectable: [{
1815
- type: i0.Input
1816
- }], tabIndex: [{
1817
- type: i0.Input
1818
- }], valueChange: [{
1819
- type: i0.Output
1820
- }], errorStateMatcher: [{
1821
- type: i0.Input
1822
- }], orientation: [{
1823
- type: i0.Input,
1824
- args: ['orientation']
1825
- }], change: [{
1826
- type: i0.Output
1827
- }], cleaner: [{
1828
- type: i0.ContentChild,
1829
- args: ['mcTagListCleaner', { static: true }]
1830
- }], tags: [{
1831
- type: i0.ContentChildren,
1832
- args: [McTag, {
1833
- // Need to use `descendants: true`,
1834
- // Ivy will no longer match indirect descendants if it's left as false.
1835
- descendants: true
1836
- }]
1837
- }] } });
1838
-
1839
- var McTagsModule = /** @class */ (function () {
1840
- function McTagsModule() {
1841
- }
1842
- return McTagsModule;
1843
- }());
1844
- /** @nocollapse */ McTagsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1845
- /** @nocollapse */ McTagsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagsModule, declarations: [McTagList,
1846
- McTag,
1847
- McTagInput,
1848
- McTagTrailingIcon,
1849
- McTagAvatar,
1850
- McTagRemove], imports: [i4.CommonModule, platform.PlatformModule], exports: [McTagList,
1851
- McTag,
1852
- McTagInput,
1853
- McTagTrailingIcon,
1854
- McTagAvatar,
1855
- McTagRemove] });
1856
- /** @nocollapse */ McTagsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagsModule, providers: [{
1857
- provide: MC_TAGS_DEFAULT_OPTIONS,
1858
- // tslint:disable-next-line: no-object-literal-type-assertion
1859
- useValue: { separatorKeyCodes: [keycodes.ENTER] }
1860
- }], imports: [[i4.CommonModule, platform.PlatformModule]] });
1861
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTagsModule, decorators: [{
1862
- type: i0.NgModule,
1863
- args: [{
1864
- imports: [i4.CommonModule, platform.PlatformModule],
1865
- exports: [
1866
- McTagList,
1867
- McTag,
1868
- McTagInput,
1869
- McTagTrailingIcon,
1870
- McTagAvatar,
1871
- McTagRemove
1872
- ],
1873
- declarations: [
1874
- McTagList,
1875
- McTag,
1876
- McTagInput,
1877
- McTagTrailingIcon,
1878
- McTagAvatar,
1879
- McTagRemove
1880
- ],
1881
- providers: [{
1882
- provide: MC_TAGS_DEFAULT_OPTIONS,
1883
- // tslint:disable-next-line: no-object-literal-type-assertion
1884
- useValue: { separatorKeyCodes: [keycodes.ENTER] }
1885
- }]
1886
- }]
1887
- }] });
1888
-
1889
- /**
1890
- * Generated bundle index. Do not edit.
1891
- */
1892
-
1893
- exports.MC_TAGS_DEFAULT_OPTIONS = MC_TAGS_DEFAULT_OPTIONS;
1894
- exports.McTag = McTag;
1895
- exports.McTagAvatar = McTagAvatar;
1896
- exports.McTagBase = McTagBase;
1897
- exports.McTagInput = McTagInput;
1898
- exports.McTagList = McTagList;
1899
- exports.McTagListBase = McTagListBase;
1900
- exports.McTagListChange = McTagListChange;
1901
- exports.McTagListMixinBase = McTagListMixinBase;
1902
- exports.McTagMixinBase = McTagMixinBase;
1903
- exports.McTagRemove = McTagRemove;
1904
- exports.McTagSelectionChange = McTagSelectionChange;
1905
- exports.McTagTrailingIcon = McTagTrailingIcon;
1906
- exports.McTagsModule = McTagsModule;
1907
-
1908
- Object.defineProperty(exports, '__esModule', { value: true });
1909
-
1910
- }));
1911
- //# sourceMappingURL=ptsecurity-mosaic-tags.umd.js.map