@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,1385 +0,0 @@
1
- import { PlatformModule } from '@angular/cdk/platform';
2
- import * as i4 from '@angular/common';
3
- import { CommonModule } from '@angular/common';
4
- import * as i0 from '@angular/core';
5
- import { InjectionToken, Directive, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, ContentChild, forwardRef, Output, Input, Optional, Inject, Self, NgModule } from '@angular/core';
6
- import { SPACE, BACKSPACE, DELETE, HOME, END, ENTER, TAB, COMMA, hasModifierKey } from '@ptsecurity/cdk/keycodes';
7
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
- import * as i3 from '@angular/forms';
9
- import { NG_VALIDATORS } from '@angular/forms';
10
- import * as i2 from '@angular/cdk/bidi';
11
- import { SelectionModel } from '@angular/cdk/collections';
12
- import { FocusKeyManager } from '@ptsecurity/cdk/a11y';
13
- import * as i1 from '@ptsecurity/mosaic/core';
14
- import { mixinColor, mixinDisabled, mixinErrorState, setMosaicValidation, MC_VALIDATION } from '@ptsecurity/mosaic/core';
15
- import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
16
- import { Subject, merge } from 'rxjs';
17
- import { take, takeUntil, startWith } from 'rxjs/operators';
18
- import { McIcon } from '@ptsecurity/mosaic/icon';
19
-
20
- /** Injection token to be used to override the default options for the chips module. */
21
- const MC_TAGS_DEFAULT_OPTIONS = new InjectionToken('mc-tags-default-options');
22
-
23
- /** Event object emitted by McTag when selected or deselected. */
24
- class McTagSelectionChange {
25
- constructor(source, selected, isUserInput = false) {
26
- this.source = source;
27
- this.selected = selected;
28
- this.isUserInput = isUserInput;
29
- }
30
- }
31
- const TAG_ATTRIBUTE_NAMES = ['mc-basic-tag'];
32
- /**
33
- * Dummy directive to add CSS class to tag avatar.
34
- * @docs-private
35
- */
36
- class McTagAvatar {
37
- }
38
- /** @nocollapse */ McTagAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
- /** @nocollapse */ McTagAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTagAvatar, selector: "mc-tag-avatar, [mcTagAvatar]", host: { classAttribute: "mc-tag-avatar" }, ngImport: i0 });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagAvatar, decorators: [{
41
- type: Directive,
42
- args: [{
43
- selector: 'mc-tag-avatar, [mcTagAvatar]',
44
- host: { class: 'mc-tag-avatar' }
45
- }]
46
- }] });
47
- /**
48
- * Dummy directive to add CSS class to tag trailing icon.
49
- * @docs-private
50
- */
51
- class McTagTrailingIcon {
52
- }
53
- /** @nocollapse */ McTagTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
54
- /** @nocollapse */ McTagTrailingIcon.ɵdir = i0.ɵɵ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 });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagTrailingIcon, decorators: [{
56
- type: Directive,
57
- args: [{
58
- selector: 'mc-tag-trailing-icon, [mcTagTrailingIcon]',
59
- host: { class: 'mc-tag-trailing-icon' }
60
- }]
61
- }] });
62
- class McTagBase {
63
- // tslint:disable-next-line:naming-convention
64
- constructor(_elementRef) {
65
- this._elementRef = _elementRef;
66
- }
67
- }
68
- // tslint:disable-next-line:naming-convention
69
- const McTagMixinBase = mixinColor(mixinDisabled(McTagBase));
70
- class McTag extends McTagMixinBase {
71
- constructor(elementRef, changeDetectorRef, _ngZone) {
72
- super(elementRef);
73
- this.elementRef = elementRef;
74
- this.changeDetectorRef = changeDetectorRef;
75
- this._ngZone = _ngZone;
76
- /** Emits when the tag is focused. */
77
- this.onFocus = new Subject();
78
- /** Emits when the tag is blured. */
79
- this.onBlur = new Subject();
80
- /** Whether the tag has focus. */
81
- this.hasFocus = false;
82
- /** Whether the tag list is selectable */
83
- this.tagListSelectable = true;
84
- /** Emitted when the tag is selected or deselected. */
85
- this.selectionChange = new EventEmitter();
86
- /** Emitted when the tag is destroyed. */
87
- this.destroyed = new EventEmitter();
88
- /** Emitted when a tag is to be removed. */
89
- this.removed = new EventEmitter();
90
- this._selected = false;
91
- this._selectable = true;
92
- this._removable = true;
93
- this._disabled = false;
94
- this.addHostClassName();
95
- this.nativeElement = elementRef.nativeElement;
96
- }
97
- /** Whether the tag is selected. */
98
- get selected() {
99
- return this._selected;
100
- }
101
- set selected(value) {
102
- const coercedValue = coerceBooleanProperty(value);
103
- if (coercedValue !== this._selected) {
104
- this._selected = coercedValue;
105
- this.dispatchSelectionChange();
106
- }
107
- }
108
- /** The value of the tag. Defaults to the content inside `<mc-tag>` tags. */
109
- get value() {
110
- return this._value !== undefined
111
- ? this._value
112
- : this.elementRef.nativeElement.textContent;
113
- }
114
- set value(value) {
115
- this._value = value;
116
- }
117
- /**
118
- * Whether or not the tag is selectable. When a tag is not selectable,
119
- * changes to its selected state are always ignored. By default a tag is
120
- * selectable, and it becomes non-selectable if its parent tag list is
121
- * not selectable.
122
- */
123
- get selectable() {
124
- return this._selectable && this.tagListSelectable;
125
- }
126
- set selectable(value) {
127
- this._selectable = coerceBooleanProperty(value);
128
- }
129
- /**
130
- * Determines whether or not the tag displays the remove styling and emits (removed) events.
131
- */
132
- get removable() {
133
- return this._removable;
134
- }
135
- set removable(value) {
136
- this._removable = coerceBooleanProperty(value);
137
- }
138
- get tabindex() {
139
- if (!this.selectable) {
140
- return null;
141
- }
142
- return this.disabled ? null : -1;
143
- }
144
- get disabled() {
145
- return this._disabled;
146
- }
147
- set disabled(value) {
148
- if (value !== this.disabled) {
149
- this._disabled = value;
150
- }
151
- }
152
- ngAfterContentInit() {
153
- this.addClassModificatorForIcons();
154
- }
155
- addClassModificatorForIcons() {
156
- const icons = this.contentChildren.map((item) => item._elementRef.nativeElement);
157
- if (icons.length === 1) {
158
- const iconElement = icons[0];
159
- if (!iconElement.previousElementSibling && !iconElement.nextElementSibling) {
160
- if (iconElement.nextSibling) {
161
- iconElement.classList.add('mc-icon_left');
162
- this.nativeElement.classList.add('mc-left-icon');
163
- }
164
- if (iconElement.previousSibling) {
165
- iconElement.classList.add('mc-icon_right');
166
- this.nativeElement.classList.add('mc-right-icon');
167
- }
168
- }
169
- }
170
- else if (icons.length > 1) {
171
- const firstIconElement = icons[0];
172
- const secondIconElement = icons[1];
173
- firstIconElement.classList.add('mc-icon_left');
174
- secondIconElement.classList.add('mc-icon_right');
175
- }
176
- }
177
- addHostClassName() {
178
- // Add class for the different tags
179
- for (const attr of TAG_ATTRIBUTE_NAMES) {
180
- if (this.elementRef.nativeElement.hasAttribute(attr) ||
181
- this.elementRef.nativeElement.tagName.toLowerCase() === attr) {
182
- this.elementRef.nativeElement.classList.add(attr);
183
- return;
184
- }
185
- }
186
- this.elementRef.nativeElement.classList.add('mc-standard-tag');
187
- }
188
- ngOnDestroy() {
189
- this.destroyed.emit({ tag: this });
190
- }
191
- select() {
192
- if (!this._selected) {
193
- this._selected = true;
194
- this.dispatchSelectionChange();
195
- }
196
- }
197
- deselect() {
198
- if (this._selected) {
199
- this._selected = false;
200
- this.dispatchSelectionChange();
201
- }
202
- }
203
- selectViaInteraction() {
204
- if (!this._selected) {
205
- this._selected = true;
206
- this.dispatchSelectionChange(true);
207
- }
208
- }
209
- toggleSelected(isUserInput = false) {
210
- this._selected = !this.selected;
211
- this.dispatchSelectionChange(isUserInput);
212
- return this.selected;
213
- }
214
- /** Allows for programmatic focusing of the tag. */
215
- focus() {
216
- if (!this.selectable) {
217
- return;
218
- }
219
- if (!this.hasFocus) {
220
- this.elementRef.nativeElement.focus();
221
- this.onFocus.next({ tag: this });
222
- Promise.resolve().then(() => {
223
- this.hasFocus = true;
224
- this.changeDetectorRef.markForCheck();
225
- });
226
- }
227
- }
228
- /**
229
- * Allows for programmatic removal of the tag. Called by the McTagList when the DELETE or
230
- * BACKSPACE keys are pressed.
231
- *
232
- * Informs any listeners of the removal request. Does not remove the tag from the DOM.
233
- */
234
- remove() {
235
- if (this.removable) {
236
- this.removed.emit({ tag: this });
237
- }
238
- }
239
- handleClick(event) {
240
- if (this.disabled) {
241
- event.preventDefault();
242
- }
243
- else {
244
- event.stopPropagation();
245
- }
246
- }
247
- handleKeydown(event) {
248
- if (this.disabled) {
249
- return;
250
- }
251
- // tslint:disable-next-line: deprecation
252
- switch (event.keyCode) {
253
- case DELETE:
254
- case BACKSPACE:
255
- // If we are removable, remove the focused tag
256
- this.remove();
257
- // Always prevent so page navigation does not occur
258
- event.preventDefault();
259
- break;
260
- case SPACE:
261
- // If we are selectable, toggle the focused tag
262
- if (this.selectable) {
263
- this.toggleSelected(true);
264
- }
265
- // Always prevent space from scrolling the page since the list has focus
266
- event.preventDefault();
267
- break;
268
- default:
269
- }
270
- }
271
- blur() {
272
- // When animations are enabled, Angular may end up removing the tag from the DOM a little
273
- // earlier than usual, causing it to be blurred and throwing off the logic in the tag list
274
- // that moves focus not the next item. To work around the issue, we defer marking the tag
275
- // as not focused until the next time the zone stabilizes.
276
- this._ngZone.onStable
277
- .asObservable()
278
- .pipe(take(1))
279
- .subscribe(() => {
280
- this._ngZone.run(() => {
281
- this.hasFocus = false;
282
- this.onBlur.next({ tag: this });
283
- });
284
- });
285
- }
286
- dispatchSelectionChange(isUserInput = false) {
287
- this.selectionChange.emit({
288
- source: this,
289
- isUserInput,
290
- selected: this._selected
291
- });
292
- }
293
- }
294
- /** @nocollapse */ McTag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTag, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
295
- /** @nocollapse */ McTag.ɵcmp = i0.ɵɵ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: McIcon }], exportAs: ["mcTag"], usesInheritance: true, ngImport: i0, 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.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTag, decorators: [{
297
- type: Component,
298
- args: [{
299
- selector: 'mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]',
300
- exportAs: 'mcTag',
301
- templateUrl: 'tag.partial.html',
302
- styleUrls: ['./tag.scss'],
303
- inputs: ['color'],
304
- host: {
305
- class: 'mc-tag',
306
- '[attr.tabindex]': 'tabindex',
307
- '[attr.disabled]': 'disabled || null',
308
- '[class.mc-selected]': 'selected',
309
- '[class.mc-focused]': 'hasFocus',
310
- '[class.mc-tag-with-avatar]': 'avatar',
311
- '[class.mc-tag-with-trailing-icon]': 'trailingIcon || removeIcon',
312
- '[class.mc-disabled]': 'disabled',
313
- '(click)': 'handleClick($event)',
314
- '(keydown)': 'handleKeydown($event)',
315
- '(focus)': 'focus()',
316
- '(blur)': 'blur()'
317
- },
318
- changeDetection: ChangeDetectionStrategy.OnPush,
319
- encapsulation: ViewEncapsulation.None
320
- }]
321
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { contentChildren: [{
322
- type: ContentChildren,
323
- args: [McIcon]
324
- }], avatar: [{
325
- type: ContentChild,
326
- args: [McTagAvatar, { static: false }]
327
- }], trailingIcon: [{
328
- type: ContentChild,
329
- args: [McTagTrailingIcon, { static: false }]
330
- }], removeIcon: [{
331
- type: ContentChild,
332
- args: [forwardRef(() => McTagRemove), { static: false }]
333
- }], selectionChange: [{
334
- type: Output
335
- }], destroyed: [{
336
- type: Output
337
- }], removed: [{
338
- type: Output
339
- }], selected: [{
340
- type: Input
341
- }], value: [{
342
- type: Input
343
- }], selectable: [{
344
- type: Input
345
- }], removable: [{
346
- type: Input
347
- }], disabled: [{
348
- type: Input
349
- }] } });
350
- /**
351
- *
352
- * Example:
353
- *
354
- * `<mc-tag>
355
- * <mc-icon mcTagRemove>cancel</mc-icon>
356
- * </mc-tag>`
357
- *
358
- * You *may* use a custom icon, but you may need to override the `mc-tag-remove` positioning
359
- * styles to properly center the icon within the tag.
360
- */
361
- class McTagRemove {
362
- constructor(parentTag) {
363
- this.parentTag = parentTag;
364
- }
365
- focus($event) {
366
- $event.stopPropagation();
367
- }
368
- /** Calls the parent tag's public `remove()` method if applicable. */
369
- handleClick(event) {
370
- if (this.parentTag.removable) {
371
- this.parentTag.hasFocus = true;
372
- this.parentTag.remove();
373
- }
374
- // We need to stop event propagation because otherwise the event will bubble up to the
375
- // form field and cause the `onContainerClick` method to be invoked. This method would then
376
- // reset the focused tag that has been focused after tag removal. Usually the parent
377
- // the parent click listener of the `McTag` would prevent propagation, but it can happen
378
- // that the tag is being removed before the event bubbles up.
379
- event.stopPropagation();
380
- }
381
- }
382
- /** @nocollapse */ McTagRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagRemove, deps: [{ token: McTag }], target: i0.ɵɵFactoryTarget.Directive });
383
- /** @nocollapse */ McTagRemove.ɵdir = i0.ɵɵ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 });
384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagRemove, decorators: [{
385
- type: Directive,
386
- args: [{
387
- selector: '[mcTagRemove]',
388
- host: {
389
- class: 'mc-tag-remove mc-tag-trailing-icon',
390
- '[attr.tabindex]': '-1',
391
- '(click)': 'handleClick($event)',
392
- '(focus)': 'focus($event)'
393
- }
394
- }]
395
- }], ctorParameters: function () { return [{ type: McTag }]; } });
396
-
397
- class McTagListBase {
398
- constructor(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
399
- this.defaultErrorStateMatcher = defaultErrorStateMatcher;
400
- this.parentForm = parentForm;
401
- this.parentFormGroup = parentFormGroup;
402
- this.ngControl = ngControl;
403
- }
404
- }
405
- // tslint:disable-next-line:naming-convention
406
- const McTagListMixinBase = mixinErrorState(McTagListBase);
407
- // Increasing integer for generating unique ids for tag-list components.
408
- let nextUniqueId$1 = 0;
409
- /** Change event object that is emitted when the tag list value has changed. */
410
- class McTagListChange {
411
- constructor(source, value) {
412
- this.source = source;
413
- this.value = value;
414
- }
415
- }
416
- class McTagList extends McTagListMixinBase {
417
- constructor(elementRef, changeDetectorRef, defaultErrorStateMatcher, rawValidators, mcValidation, dir, parentForm, parentFormGroup, ngControl, ngModel, formControlName) {
418
- super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
419
- this.elementRef = elementRef;
420
- this.changeDetectorRef = changeDetectorRef;
421
- this.rawValidators = rawValidators;
422
- this.mcValidation = mcValidation;
423
- this.dir = dir;
424
- this.ngModel = ngModel;
425
- this.formControlName = formControlName;
426
- this.controlType = 'tag-list';
427
- this._tabIndex = 0;
428
- /**
429
- * Event that emits whenever the raw value of the tag-list changes. This is here primarily
430
- * to facilitate the two-way binding for the `value` input.
431
- * @docs-private
432
- */
433
- this.valueChange = new EventEmitter();
434
- this.uid = `mc-tag-list-${nextUniqueId$1++}`;
435
- /**
436
- * User defined tab index.
437
- * When it is not null, use user defined tab index. Otherwise use tabIndex
438
- */
439
- this.userTabIndex = null;
440
- this.tagChanges = new EventEmitter();
441
- /** Orientation of the tag list. */
442
- this.orientation = 'horizontal';
443
- /** Event emitted when the selected tag list value has been changed by the user. */
444
- this.change = new EventEmitter();
445
- this._required = false;
446
- this._disabled = false;
447
- this._selectable = true;
448
- this._multiple = false;
449
- /**
450
- * When a tag is destroyed, we store the index of the destroyed tag until the tags
451
- * query list notifies about the update. This is necessary because we cannot determine an
452
- * appropriate tag that should receive focus until the array of tags updated completely.
453
- */
454
- this.lastDestroyedTagIndex = null;
455
- /** Subject that emits when the component has been destroyed. */
456
- this.destroyed = new Subject();
457
- // tslint:disable-next-line:no-empty
458
- this.onTouched = () => { };
459
- // tslint:disable-next-line:no-empty
460
- this.onChange = () => { };
461
- this._compareWith = (o1, o2) => o1 === o2;
462
- if (this.ngControl) {
463
- this.ngControl.valueAccessor = this;
464
- }
465
- }
466
- /** Combined stream of all of the child tags' selection change events. */
467
- get tagSelectionChanges() {
468
- return merge(...this.tags.map((tag) => tag.selectionChange));
469
- }
470
- /** Combined stream of all of the child tags' focus change events. */
471
- get tagFocusChanges() {
472
- return merge(...this.tags.map((tag) => tag.onFocus));
473
- }
474
- /** Combined stream of all of the child tags' blur change events. */
475
- get tagBlurChanges() {
476
- return merge(...this.tags.map((tag) => tag.onBlur));
477
- }
478
- /** Combined stream of all of the child tags' remove change events. */
479
- get tagRemoveChanges() {
480
- return merge(...this.tags.map((tag) => tag.destroyed));
481
- }
482
- /** The array of selected tags inside tag list. */
483
- get selected() {
484
- return this.multiple ? this.selectionModel.selected : this.selectionModel.selected[0];
485
- }
486
- get canShowCleaner() {
487
- return this.cleaner && this.tags.length > 0;
488
- }
489
- /** Whether the user should be allowed to select multiple tags. */
490
- get multiple() {
491
- return this._multiple;
492
- }
493
- set multiple(value) {
494
- this._multiple = coerceBooleanProperty(value);
495
- }
496
- /**
497
- * A function to compare the option values with the selected values. The first argument
498
- * is a value from an option. The second is a value from the selection. A boolean
499
- * should be returned.
500
- */
501
- get compareWith() {
502
- return this._compareWith;
503
- }
504
- set compareWith(fn) {
505
- this._compareWith = fn;
506
- if (this.selectionModel) {
507
- // A different comparator means the selection could change.
508
- this.initializeSelection();
509
- }
510
- }
511
- /**
512
- * Implemented as part of McFormFieldControl.
513
- * @docs-private
514
- */
515
- get value() {
516
- return this._value;
517
- }
518
- set value(value) {
519
- this.writeValue(value);
520
- this._value = value;
521
- }
522
- /**
523
- * Implemented as part of McFormFieldControl.
524
- * @docs-private
525
- */
526
- get id() {
527
- return this.tagInput ? this.tagInput.id : this.uid;
528
- }
529
- /**
530
- * Implemented as part of McFormFieldControl.
531
- * @docs-private
532
- */
533
- get required() {
534
- return this._required;
535
- }
536
- set required(value) {
537
- this._required = coerceBooleanProperty(value);
538
- this.stateChanges.next();
539
- }
540
- /**
541
- * Implemented as part of McFormFieldControl.
542
- * @docs-private
543
- */
544
- get placeholder() {
545
- return this.tagInput ? this.tagInput.placeholder : this._placeholder;
546
- }
547
- set placeholder(value) {
548
- this._placeholder = value;
549
- this.stateChanges.next();
550
- }
551
- /** Whether any tags or the mcTagInput inside of this tag-list has focus. */
552
- get focused() {
553
- return (this.tagInput && this.tagInput.focused) || this.hasFocusedTag();
554
- }
555
- /**
556
- * Implemented as part of McFormFieldControl.
557
- * @docs-private
558
- */
559
- get empty() {
560
- return (!this.tagInput || this.tagInput.empty) && this.tags.length === 0;
561
- }
562
- /**
563
- * Implemented as part of McFormFieldControl.
564
- * @docs-private
565
- */
566
- get shouldLabelFloat() {
567
- return !this.empty || this.focused;
568
- }
569
- /**
570
- * Implemented as part of McFormFieldControl.
571
- * @docs-private
572
- */
573
- get disabled() {
574
- return this.ngControl ? !!this.ngControl.disabled : this._disabled;
575
- }
576
- set disabled(value) {
577
- this._disabled = coerceBooleanProperty(value);
578
- this.syncTagsDisabledState();
579
- }
580
- /**
581
- * Whether or not this tag list is selectable. When a tag list is not selectable,
582
- * the selected states for all the tags inside the tag list are always ignored.
583
- */
584
- get selectable() {
585
- return this._selectable;
586
- }
587
- set selectable(value) {
588
- this._selectable = coerceBooleanProperty(value);
589
- if (this.tags) {
590
- this.tags.forEach((tag) => tag.tagListSelectable = this._selectable);
591
- }
592
- }
593
- get tabIndex() {
594
- return this._tabIndex;
595
- }
596
- set tabIndex(value) {
597
- this.userTabIndex = value;
598
- this._tabIndex = value;
599
- }
600
- ngAfterContentInit() {
601
- if (this.mcValidation.useValidation) {
602
- setMosaicValidation(this);
603
- }
604
- this.keyManager = new FocusKeyManager(this.tags)
605
- .withVerticalOrientation()
606
- .withHorizontalOrientation(this.dir ? this.dir.value : 'ltr');
607
- if (this.dir) {
608
- this.dir.change
609
- .pipe(takeUntil(this.destroyed))
610
- .subscribe((dir) => this.keyManager.withHorizontalOrientation(dir));
611
- }
612
- // Prevents the tag list from capturing focus and redirecting
613
- // it back to the first tag when the user tabs out.
614
- this.keyManager.tabOut
615
- .pipe(takeUntil(this.destroyed))
616
- .subscribe(() => {
617
- this._tabIndex = -1;
618
- setTimeout(() => {
619
- this._tabIndex = this.userTabIndex || 0;
620
- this.changeDetectorRef.markForCheck();
621
- });
622
- });
623
- // When the list changes, re-subscribe
624
- this.tags.changes
625
- .pipe(startWith(null), takeUntil(this.destroyed))
626
- .subscribe(() => {
627
- if (this.disabled) {
628
- // Since this happens after the content has been
629
- // checked, we need to defer it to the next tick.
630
- Promise.resolve().then(() => { this.syncTagsDisabledState(); });
631
- }
632
- this.resetTags();
633
- // Reset tags selected/deselected status
634
- this.initializeSelection();
635
- // Check to see if we need to update our tab index
636
- this.updateTabIndex();
637
- // Check to see if we have a destroyed tag and need to refocus
638
- this.updateFocusForDestroyedTags();
639
- // Defer setting the value in order to avoid the "Expression
640
- // has changed after it was checked" errors from Angular.
641
- Promise.resolve().then(() => {
642
- this.tagChanges.emit(this.tags.toArray());
643
- this.stateChanges.next();
644
- this.propagateTagsChanges();
645
- });
646
- });
647
- }
648
- ngOnInit() {
649
- this.selectionModel = new SelectionModel(this.multiple, undefined, false);
650
- this.stateChanges.next();
651
- }
652
- ngDoCheck() {
653
- if (this.ngControl) {
654
- // We need to re-evaluate this on every change detection cycle, because there are some
655
- // error triggers that we can't subscribe to (e.g. parent form submissions). This means
656
- // that whatever logic is in here has to be super lean or we risk destroying the performance.
657
- this.updateErrorState();
658
- }
659
- }
660
- ngOnDestroy() {
661
- this.destroyed.next();
662
- this.destroyed.complete();
663
- this.stateChanges.complete();
664
- this.dropSubscriptions();
665
- }
666
- /** Associates an HTML input element with this tag list. */
667
- registerInput(inputElement) {
668
- var _a;
669
- this.tagInput = inputElement;
670
- // todo need rethink about it
671
- if (this.ngControl && ((_a = inputElement.ngControl) === null || _a === void 0 ? void 0 : _a.statusChanges)) {
672
- inputElement.ngControl.statusChanges
673
- .subscribe(() => this.ngControl.control.setErrors(inputElement.ngControl.errors));
674
- }
675
- }
676
- // Implemented as part of ControlValueAccessor.
677
- writeValue(value) {
678
- if (this.tags) {
679
- this.setSelectionByValue(value, false);
680
- }
681
- }
682
- // Implemented as part of ControlValueAccessor.
683
- registerOnChange(fn) {
684
- this.onChange = fn;
685
- }
686
- // Implemented as part of ControlValueAccessor.
687
- registerOnTouched(fn) {
688
- this.onTouched = fn;
689
- }
690
- // Implemented as part of ControlValueAccessor.
691
- setDisabledState(isDisabled) {
692
- this.disabled = isDisabled;
693
- this.stateChanges.next();
694
- }
695
- /**
696
- * Implemented as part of McFormFieldControl.
697
- * @docs-private
698
- */
699
- onContainerClick(event) {
700
- if (!this.originatesFromTag(event)) {
701
- this.focus();
702
- }
703
- }
704
- /**
705
- * Focuses the first non-disabled tag in this tag list, or the associated input when there
706
- * are no eligible tags.
707
- */
708
- focus() {
709
- if (this.disabled) {
710
- return;
711
- }
712
- // TODO: ARIA says this should focus the first `selected` tag if any are selected.
713
- // Focus on first element if there's no tagInput inside tag-list
714
- if (this.tagInput && this.tagInput.focused) {
715
- // do nothing
716
- }
717
- else if (this.tags.length > 0) {
718
- this.keyManager.setFirstItemActive();
719
- this.stateChanges.next();
720
- }
721
- else {
722
- this.focusInput();
723
- this.stateChanges.next();
724
- }
725
- }
726
- /** Attempt to focus an input if we have one. */
727
- focusInput() {
728
- if (this.tagInput) {
729
- this.tagInput.focus();
730
- }
731
- }
732
- /**
733
- * Pass events to the keyboard manager. Available here for tests.
734
- */
735
- keydown(event) {
736
- const target = event.target;
737
- // If they are on an empty input and hit backspace, focus the last tag
738
- // tslint:disable-next-line: deprecation
739
- if (event.keyCode === BACKSPACE && this.isInputEmpty(target)) {
740
- this.keyManager.setLastItemActive();
741
- event.preventDefault();
742
- }
743
- else if (target && target.classList.contains('mc-tag')) {
744
- // tslint:disable-next-line: deprecation
745
- if (event.keyCode === HOME) {
746
- this.keyManager.setFirstItemActive();
747
- event.preventDefault();
748
- // tslint:disable-next-line: deprecation
749
- }
750
- else if (event.keyCode === END) {
751
- this.keyManager.setLastItemActive();
752
- event.preventDefault();
753
- }
754
- else {
755
- this.keyManager.onKeydown(event);
756
- }
757
- this.stateChanges.next();
758
- }
759
- }
760
- setSelectionByValue(value, isUserInput = true) {
761
- this.clearSelection();
762
- this.tags.forEach((tag) => tag.deselect());
763
- if (Array.isArray(value)) {
764
- value.forEach((currentValue) => this.selectValue(currentValue, isUserInput));
765
- this.sortValues();
766
- }
767
- else {
768
- const correspondingTag = this.selectValue(value, isUserInput);
769
- // Shift focus to the active item. Note that we shouldn't do this in multiple
770
- // mode, because we don't know what tag the user interacted with last.
771
- if (correspondingTag && isUserInput) {
772
- this.keyManager.setActiveItem(correspondingTag);
773
- }
774
- }
775
- }
776
- /** When blurred, mark the field as touched when focus moved outside the tag list. */
777
- blur() {
778
- if (!this.hasFocusedTag()) {
779
- this.keyManager.setActiveItem(-1);
780
- }
781
- if (!this.disabled) {
782
- if (this.tagInput) {
783
- // If there's a tag input, we should check whether the focus moved to tag input.
784
- // If the focus is not moved to tag input, mark the field as touched. If the focus moved
785
- // to tag input, do nothing.
786
- // Timeout is needed to wait for the focus() event trigger on tag input.
787
- setTimeout(() => {
788
- if (!this.focused) {
789
- this.markAsTouched();
790
- }
791
- });
792
- }
793
- else {
794
- // If there's no tag input, then mark the field as touched.
795
- this.markAsTouched();
796
- }
797
- }
798
- }
799
- /** Mark the field as touched */
800
- markAsTouched() {
801
- this.onTouched();
802
- this.changeDetectorRef.markForCheck();
803
- this.stateChanges.next();
804
- }
805
- /**
806
- * Check the tab index as you should not be allowed to focus an empty list.
807
- */
808
- updateTabIndex() {
809
- // If we have 0 tags, we should not allow keyboard focus
810
- this._tabIndex = this.userTabIndex || (this.tags.length === 0 ? -1 : 0);
811
- }
812
- /**
813
- * If the amount of tags changed, we need to update the
814
- * key manager state and focus the next closest tag.
815
- */
816
- updateFocusForDestroyedTags() {
817
- if (this.lastDestroyedTagIndex != null) {
818
- if (this.tags.length) {
819
- const newTagIndex = Math.min(this.lastDestroyedTagIndex, this.tags.length - 1);
820
- this.keyManager.setActiveItem(newTagIndex);
821
- }
822
- else {
823
- this.focusInput();
824
- }
825
- }
826
- this.lastDestroyedTagIndex = null;
827
- }
828
- /**
829
- * Utility to ensure all indexes are valid.
830
- *
831
- * @param index The index to be checked.
832
- * @returns True if the index is valid for our list of tags.
833
- */
834
- isValidIndex(index) {
835
- return index >= 0 && index < this.tags.length;
836
- }
837
- isInputEmpty(element) {
838
- if (element && element.nodeName.toLowerCase() === 'input') {
839
- const input = element;
840
- return !input.value;
841
- }
842
- return false;
843
- }
844
- /**
845
- * Finds and selects the tag based on its value.
846
- * @returns Tag that has the corresponding value.
847
- */
848
- selectValue(value, isUserInput = true) {
849
- const correspondingTag = this.tags.find((tag) => {
850
- return tag.value != null && this._compareWith(tag.value, value);
851
- });
852
- if (correspondingTag) {
853
- if (isUserInput) {
854
- correspondingTag.selectViaInteraction();
855
- }
856
- else {
857
- correspondingTag.select();
858
- }
859
- this.selectionModel.select(correspondingTag);
860
- }
861
- return correspondingTag;
862
- }
863
- initializeSelection() {
864
- // Defer setting the value in order to avoid the "Expression
865
- // has changed after it was checked" errors from Angular.
866
- Promise.resolve().then(() => {
867
- if (this.ngControl || this._value) {
868
- this.setSelectionByValue(this.ngControl ? this.ngControl.value : this._value, false);
869
- this.stateChanges.next();
870
- }
871
- });
872
- }
873
- /**
874
- * Deselects every tag in the list.
875
- * @param skip Tag that should not be deselected.
876
- */
877
- clearSelection(skip) {
878
- this.selectionModel.clear();
879
- this.tags.forEach((tag) => {
880
- if (tag !== skip) {
881
- tag.deselect();
882
- }
883
- });
884
- this.stateChanges.next();
885
- }
886
- /**
887
- * Sorts the model values, ensuring that they keep the same
888
- * order that they have in the panel.
889
- */
890
- sortValues() {
891
- if (this._multiple) {
892
- this.selectionModel.clear();
893
- this.tags.forEach((tag) => {
894
- if (tag.selected) {
895
- this.selectionModel.select(tag);
896
- }
897
- });
898
- this.stateChanges.next();
899
- }
900
- }
901
- /** Emits change event to set the model value. */
902
- // todo need rethink this method and selection logic
903
- propagateChanges(fallbackValue) {
904
- let valueToEmit = null;
905
- if (Array.isArray(this.selected)) {
906
- valueToEmit = this.selected.map((tag) => tag.value);
907
- }
908
- else {
909
- valueToEmit = this.selected ? this.selected.value : fallbackValue;
910
- }
911
- this._value = valueToEmit;
912
- this.change.emit(new McTagListChange(this, valueToEmit));
913
- this.valueChange.emit(valueToEmit);
914
- this.onChange(valueToEmit);
915
- this.changeDetectorRef.markForCheck();
916
- }
917
- propagateTagsChanges() {
918
- const valueToEmit = this.tags.map((tag) => tag.value);
919
- this._value = valueToEmit;
920
- this.change.emit(new McTagListChange(this, valueToEmit));
921
- this.valueChange.emit(valueToEmit);
922
- this.onChange(valueToEmit);
923
- this.changeDetectorRef.markForCheck();
924
- }
925
- resetTags() {
926
- this.dropSubscriptions();
927
- this.listenToTagsFocus();
928
- this.listenToTagsSelection();
929
- this.listenToTagsRemoved();
930
- }
931
- dropSubscriptions() {
932
- if (this.tagFocusSubscription) {
933
- this.tagFocusSubscription.unsubscribe();
934
- this.tagFocusSubscription = null;
935
- }
936
- if (this.tagBlurSubscription) {
937
- this.tagBlurSubscription.unsubscribe();
938
- this.tagBlurSubscription = null;
939
- }
940
- if (this.tagSelectionSubscription) {
941
- this.tagSelectionSubscription.unsubscribe();
942
- this.tagSelectionSubscription = null;
943
- }
944
- if (this.tagRemoveSubscription) {
945
- this.tagRemoveSubscription.unsubscribe();
946
- this.tagRemoveSubscription = null;
947
- }
948
- }
949
- /** Listens to user-generated selection events on each tag. */
950
- listenToTagsSelection() {
951
- this.tagSelectionSubscription = this.tagSelectionChanges.subscribe((event) => {
952
- if (event.source.selected) {
953
- this.selectionModel.select(event.source);
954
- }
955
- else {
956
- this.selectionModel.deselect(event.source);
957
- }
958
- // For single selection tag list, make sure the deselected value is unselected.
959
- if (!this.multiple) {
960
- this.tags.forEach((tag) => {
961
- if (!this.selectionModel.isSelected(tag) && tag.selected) {
962
- tag.deselect();
963
- }
964
- });
965
- }
966
- if (event.isUserInput) {
967
- this.propagateChanges();
968
- }
969
- });
970
- }
971
- /** Listens to user-generated selection events on each tag. */
972
- listenToTagsFocus() {
973
- this.tagFocusSubscription = this.tagFocusChanges
974
- .subscribe((event) => {
975
- const tagIndex = this.tags.toArray().indexOf(event.tag);
976
- if (this.isValidIndex(tagIndex)) {
977
- this.keyManager.updateActiveItem(tagIndex);
978
- }
979
- this.stateChanges.next();
980
- });
981
- this.tagBlurSubscription = this.tagBlurChanges
982
- .subscribe(() => {
983
- this.blur();
984
- this.stateChanges.next();
985
- });
986
- }
987
- listenToTagsRemoved() {
988
- this.tagRemoveSubscription = this.tagRemoveChanges
989
- .subscribe((event) => {
990
- const tag = event.tag;
991
- const tagIndex = this.tags.toArray().indexOf(event.tag);
992
- // In case the tag that will be removed is currently focused, we temporarily store
993
- // the index in order to be able to determine an appropriate sibling tag that will
994
- // receive focus.
995
- if (this.isValidIndex(tagIndex) && tag.hasFocus) {
996
- this.lastDestroyedTagIndex = tagIndex;
997
- }
998
- });
999
- }
1000
- /** Checks whether an event comes from inside a tag element. */
1001
- originatesFromTag(event) {
1002
- let currentElement = event.target;
1003
- while (currentElement && currentElement !== this.elementRef.nativeElement) {
1004
- if (currentElement.classList.contains('mc-tag')) {
1005
- return true;
1006
- }
1007
- currentElement = currentElement.parentElement;
1008
- }
1009
- return false;
1010
- }
1011
- /** Checks whether any of the tags is focused. */
1012
- hasFocusedTag() {
1013
- return this.tags.some((tag) => tag.hasFocus);
1014
- }
1015
- /** Syncs the list's disabled state with the individual tags. */
1016
- syncTagsDisabledState() {
1017
- if (this.tags) {
1018
- this.tags.forEach((tag) => {
1019
- tag.disabled = this._disabled;
1020
- });
1021
- }
1022
- }
1023
- }
1024
- /** @nocollapse */ McTagList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagList, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.ErrorStateMatcher }, { token: NG_VALIDATORS, optional: true }, { token: MC_VALIDATION, optional: true }, { token: i2.Directionality, optional: true }, { token: i3.NgForm, optional: true }, { token: i3.FormGroupDirective, optional: true }, { token: i3.NgControl, optional: true, self: true }, { token: i3.NgModel, optional: true, self: true }, { token: i3.FormControlName, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
1025
- /** @nocollapse */ McTagList.ɵcmp = i0.ɵɵ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: 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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1026
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagList, decorators: [{
1027
- type: Component,
1028
- args: [{
1029
- selector: 'mc-tag-list',
1030
- exportAs: 'mcTagList',
1031
- templateUrl: 'tag-list.partial.html',
1032
- styleUrls: ['tag-list.scss'],
1033
- host: {
1034
- class: 'mc-tag-list',
1035
- '[class.mc-disabled]': 'disabled',
1036
- '[class.mc-invalid]': 'errorState',
1037
- '[attr.tabindex]': 'disabled ? null : tabIndex',
1038
- '[id]': 'uid',
1039
- '(focus)': 'focus()',
1040
- '(blur)': 'blur()',
1041
- '(keydown)': 'keydown($event)'
1042
- },
1043
- encapsulation: ViewEncapsulation.None,
1044
- changeDetection: ChangeDetectionStrategy.OnPush,
1045
- providers: [{ provide: McFormFieldControl, useExisting: McTagList }]
1046
- }]
1047
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.ErrorStateMatcher }, { type: undefined, decorators: [{
1048
- type: Optional
1049
- }, {
1050
- type: Inject,
1051
- args: [NG_VALIDATORS]
1052
- }] }, { type: undefined, decorators: [{
1053
- type: Optional
1054
- }, {
1055
- type: Inject,
1056
- args: [MC_VALIDATION]
1057
- }] }, { type: i2.Directionality, decorators: [{
1058
- type: Optional
1059
- }] }, { type: i3.NgForm, decorators: [{
1060
- type: Optional
1061
- }] }, { type: i3.FormGroupDirective, decorators: [{
1062
- type: Optional
1063
- }] }, { type: i3.NgControl, decorators: [{
1064
- type: Optional
1065
- }, {
1066
- type: Self
1067
- }] }, { type: i3.NgModel, decorators: [{
1068
- type: Optional
1069
- }, {
1070
- type: Self
1071
- }] }, { type: i3.FormControlName, decorators: [{
1072
- type: Optional
1073
- }, {
1074
- type: Self
1075
- }] }]; }, propDecorators: { multiple: [{
1076
- type: Input
1077
- }], compareWith: [{
1078
- type: Input
1079
- }], value: [{
1080
- type: Input
1081
- }], required: [{
1082
- type: Input
1083
- }], placeholder: [{
1084
- type: Input
1085
- }], disabled: [{
1086
- type: Input
1087
- }], selectable: [{
1088
- type: Input
1089
- }], tabIndex: [{
1090
- type: Input
1091
- }], valueChange: [{
1092
- type: Output
1093
- }], errorStateMatcher: [{
1094
- type: Input
1095
- }], orientation: [{
1096
- type: Input,
1097
- args: ['orientation']
1098
- }], change: [{
1099
- type: Output
1100
- }], cleaner: [{
1101
- type: ContentChild,
1102
- args: ['mcTagListCleaner', { static: true }]
1103
- }], tags: [{
1104
- type: ContentChildren,
1105
- args: [McTag, {
1106
- // Need to use `descendants: true`,
1107
- // Ivy will no longer match indirect descendants if it's left as false.
1108
- descendants: true
1109
- }]
1110
- }] } });
1111
-
1112
- // Increasing integer for generating unique ids.
1113
- let nextUniqueId = 0;
1114
- /**
1115
- * Directive that adds tag-specific behaviors to an input element inside `<mc-form-field>`.
1116
- * May be placed inside or outside of an `<mc-tag-list>`.
1117
- */
1118
- class McTagInput {
1119
- constructor(elementRef, renderer, defaultOptions, ngControl) {
1120
- this.elementRef = elementRef;
1121
- this.renderer = renderer;
1122
- this.defaultOptions = defaultOptions;
1123
- this.ngControl = ngControl;
1124
- /** Whether the control is focused. */
1125
- this.focused = false;
1126
- /**
1127
- * The list of key codes that will trigger a tagEnd event.
1128
- *
1129
- * Defaults to `[ENTER]`.
1130
- */
1131
- this.separatorKeyCodes = this.defaultOptions.separatorKeyCodes;
1132
- /** Emitted when a tag is to be added. */
1133
- this.tagEnd = new EventEmitter();
1134
- /** The input's placeholder text. */
1135
- this.placeholder = '';
1136
- /** Unique id for the input. */
1137
- this.id = `mc-tag-list-input-${nextUniqueId++}`;
1138
- this._addOnBlur = true;
1139
- this._disabled = false;
1140
- this.countOfSymbolsForUpdateWidth = 3;
1141
- // tslint:disable-next-line: no-unnecessary-type-assertion
1142
- this.inputElement = this.elementRef.nativeElement;
1143
- this.setDefaultInputWidth();
1144
- }
1145
- /** Register input for tag list */
1146
- set tagList(value) {
1147
- if (value) {
1148
- this._tagList = value;
1149
- this._tagList.registerInput(this);
1150
- }
1151
- }
1152
- /**
1153
- * Whether or not the tagEnd event will be emitted when the input is blurred.
1154
- */
1155
- get addOnBlur() {
1156
- return this._addOnBlur;
1157
- }
1158
- set addOnBlur(value) {
1159
- this._addOnBlur = coerceBooleanProperty(value);
1160
- }
1161
- /** Whether the input is disabled. */
1162
- get disabled() {
1163
- return this._disabled || (this._tagList && this._tagList.disabled);
1164
- }
1165
- set disabled(value) {
1166
- this._disabled = coerceBooleanProperty(value);
1167
- }
1168
- /** Whether the input is empty. */
1169
- get empty() {
1170
- return !this.inputElement.value;
1171
- }
1172
- ngOnChanges() {
1173
- this._tagList.stateChanges.next();
1174
- }
1175
- onKeydown(event) {
1176
- if (!this.inputElement.value) {
1177
- this._tagList.keydown(event);
1178
- }
1179
- if (this.isSeparatorKey(event)) {
1180
- this.emitTagEnd();
1181
- event.preventDefault();
1182
- }
1183
- }
1184
- /** Checks to see if the blur should emit the (tagEnd) event. */
1185
- blur() {
1186
- this.focused = false;
1187
- // Blur the tag list if it is not focused
1188
- if (!this._tagList.focused) {
1189
- this.triggerValidation();
1190
- this._tagList.blur();
1191
- }
1192
- // tslint:disable-next-line: no-unnecessary-type-assertion
1193
- if (this.addOnBlur) {
1194
- this.emitTagEnd();
1195
- }
1196
- this._tagList.stateChanges.next();
1197
- }
1198
- triggerValidation() {
1199
- if (!this.hasControl()) {
1200
- return;
1201
- }
1202
- this.ngControl.statusChanges.emit(this.ngControl.status);
1203
- }
1204
- /** Checks to see if the (tagEnd) event needs to be emitted. */
1205
- emitTagEnd() {
1206
- if (!this.hasControl() || (this.hasControl() && !this.ngControl.invalid)) {
1207
- this.tagEnd.emit({ input: this.inputElement, value: this.inputElement.value });
1208
- this.updateInputWidth();
1209
- }
1210
- }
1211
- onInput() {
1212
- this.updateInputWidth();
1213
- // Let tag list know whenever the value changes.
1214
- this._tagList.stateChanges.next();
1215
- }
1216
- onPaste($event) {
1217
- if (!$event.clipboardData) {
1218
- return;
1219
- }
1220
- const data = $event.clipboardData.getData('text');
1221
- if (data && data.length === 0) {
1222
- return;
1223
- }
1224
- const items = [];
1225
- for (const key of this.separatorKeyCodes) {
1226
- const separator = this.separatorKeyToSymbol(key);
1227
- if (data.search(separator) > -1) {
1228
- items.push(...data.split(separator));
1229
- break;
1230
- }
1231
- }
1232
- if (items.length === 0) {
1233
- items.push(data);
1234
- }
1235
- items.forEach((item) => this.tagEnd.emit({ input: this.inputElement, value: item }));
1236
- this.updateInputWidth();
1237
- $event.preventDefault();
1238
- $event.stopPropagation();
1239
- }
1240
- updateInputWidth() {
1241
- const length = this.inputElement.value.length;
1242
- this.renderer.setStyle(this.inputElement, 'max-width', 0);
1243
- this.oneSymbolWidth = this.inputElement.scrollWidth / length;
1244
- this.renderer.setStyle(this.inputElement, 'max-width', '');
1245
- if (length > this.countOfSymbolsForUpdateWidth) {
1246
- this.renderer.setStyle(this.inputElement, 'width', `${length * this.oneSymbolWidth}px`);
1247
- }
1248
- else {
1249
- this.setDefaultInputWidth();
1250
- }
1251
- }
1252
- onFocus() {
1253
- this.focused = true;
1254
- this._tagList.stateChanges.next();
1255
- }
1256
- /** Focuses the input. */
1257
- focus() {
1258
- this.inputElement.focus();
1259
- }
1260
- separatorKeyToSymbol(k) {
1261
- const sep = {
1262
- [ENTER]: /\r?\n/,
1263
- [TAB]: /\t/,
1264
- [SPACE]: / /,
1265
- [COMMA]: /,/
1266
- }[k];
1267
- if (sep) {
1268
- return sep;
1269
- }
1270
- return k;
1271
- }
1272
- hasControl() {
1273
- return !!this.ngControl;
1274
- }
1275
- setDefaultInputWidth() {
1276
- this.renderer.setStyle(this.inputElement, 'width', '30px');
1277
- }
1278
- /** Checks whether a keycode is one of the configured separators. */
1279
- isSeparatorKey(event) {
1280
- if (hasModifierKey(event)) {
1281
- return false;
1282
- }
1283
- // tslint:disable-next-line: deprecation
1284
- return this.separatorKeyCodes.indexOf(event.keyCode) > -1;
1285
- }
1286
- }
1287
- /** @nocollapse */ McTagInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagInput, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: MC_TAGS_DEFAULT_OPTIONS }, { token: i3.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
1288
- /** @nocollapse */ McTagInput.ɵdir = i0.ɵɵ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 });
1289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagInput, decorators: [{
1290
- type: Directive,
1291
- args: [{
1292
- selector: 'input[mcTagInputFor]',
1293
- exportAs: 'mcTagInput, mcTagInputFor',
1294
- host: {
1295
- class: 'mc-tag-input',
1296
- '[id]': 'id',
1297
- '[attr.disabled]': 'disabled || null',
1298
- '[attr.placeholder]': 'placeholder || null',
1299
- '(keydown)': 'onKeydown($event)',
1300
- '(blur)': 'blur()',
1301
- '(focus)': 'onFocus()',
1302
- '(input)': 'onInput()',
1303
- '(paste)': 'onPaste($event)'
1304
- }
1305
- }]
1306
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
1307
- type: Inject,
1308
- args: [MC_TAGS_DEFAULT_OPTIONS]
1309
- }] }, { type: i3.NgControl, decorators: [{
1310
- type: Optional
1311
- }, {
1312
- type: Self
1313
- }] }]; }, propDecorators: { separatorKeyCodes: [{
1314
- type: Input,
1315
- args: ['mcTagInputSeparatorKeyCodes']
1316
- }], tagEnd: [{
1317
- type: Output,
1318
- args: ['mcTagInputTokenEnd']
1319
- }], placeholder: [{
1320
- type: Input
1321
- }], id: [{
1322
- type: Input
1323
- }], tagList: [{
1324
- type: Input,
1325
- args: ['mcTagInputFor']
1326
- }], addOnBlur: [{
1327
- type: Input,
1328
- args: ['mcTagInputAddOnBlur']
1329
- }], disabled: [{
1330
- type: Input
1331
- }] } });
1332
-
1333
- class McTagsModule {
1334
- }
1335
- /** @nocollapse */ McTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1336
- /** @nocollapse */ McTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagsModule, declarations: [McTagList,
1337
- McTag,
1338
- McTagInput,
1339
- McTagTrailingIcon,
1340
- McTagAvatar,
1341
- McTagRemove], imports: [CommonModule, PlatformModule], exports: [McTagList,
1342
- McTag,
1343
- McTagInput,
1344
- McTagTrailingIcon,
1345
- McTagAvatar,
1346
- McTagRemove] });
1347
- /** @nocollapse */ McTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagsModule, providers: [{
1348
- provide: MC_TAGS_DEFAULT_OPTIONS,
1349
- // tslint:disable-next-line: no-object-literal-type-assertion
1350
- useValue: { separatorKeyCodes: [ENTER] }
1351
- }], imports: [[CommonModule, PlatformModule]] });
1352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTagsModule, decorators: [{
1353
- type: NgModule,
1354
- args: [{
1355
- imports: [CommonModule, PlatformModule],
1356
- exports: [
1357
- McTagList,
1358
- McTag,
1359
- McTagInput,
1360
- McTagTrailingIcon,
1361
- McTagAvatar,
1362
- McTagRemove
1363
- ],
1364
- declarations: [
1365
- McTagList,
1366
- McTag,
1367
- McTagInput,
1368
- McTagTrailingIcon,
1369
- McTagAvatar,
1370
- McTagRemove
1371
- ],
1372
- providers: [{
1373
- provide: MC_TAGS_DEFAULT_OPTIONS,
1374
- // tslint:disable-next-line: no-object-literal-type-assertion
1375
- useValue: { separatorKeyCodes: [ENTER] }
1376
- }]
1377
- }]
1378
- }] });
1379
-
1380
- /**
1381
- * Generated bundle index. Do not edit.
1382
- */
1383
-
1384
- export { MC_TAGS_DEFAULT_OPTIONS, McTag, McTagAvatar, McTagBase, McTagInput, McTagList, McTagListBase, McTagListChange, McTagListMixinBase, McTagMixinBase, McTagRemove, McTagSelectionChange, McTagTrailingIcon, McTagsModule };
1385
- //# sourceMappingURL=ptsecurity-mosaic-tags.js.map