@ptsecurity/mosaic 12.2.2 → 13.0.0

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