@ng-matero/extensions 15.5.1 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/alert/alert.d.ts +1 -1
  2. package/button/button-loading.d.ts +1 -1
  3. package/checkbox-group/checkbox-group.d.ts +1 -1
  4. package/colorpicker/colorpicker-input.d.ts +1 -1
  5. package/colorpicker/colorpicker-toggle.d.ts +1 -1
  6. package/colorpicker/colorpicker.d.ts +2 -2
  7. package/datetimepicker/calendar-body.d.ts +1 -1
  8. package/datetimepicker/calendar.d.ts +1 -1
  9. package/datetimepicker/clock.d.ts +1 -1
  10. package/datetimepicker/clock.scss +1 -4
  11. package/datetimepicker/datetimepicker-input.d.ts +1 -1
  12. package/datetimepicker/datetimepicker-toggle.d.ts +1 -1
  13. package/datetimepicker/datetimepicker.d.ts +2 -2
  14. package/datetimepicker/month-view.d.ts +1 -1
  15. package/datetimepicker/multi-year-view.d.ts +1 -1
  16. package/datetimepicker/time.d.ts +2 -2
  17. package/datetimepicker/year-view.d.ts +1 -1
  18. package/esm2022/alert/alert-module.mjs +19 -0
  19. package/esm2022/alert/alert.mjs +53 -0
  20. package/esm2022/button/button-loading.mjs +77 -0
  21. package/esm2022/button/button-module.mjs +21 -0
  22. package/esm2022/checkbox-group/checkbox-group-module.mjs +22 -0
  23. package/esm2022/checkbox-group/checkbox-group.mjs +234 -0
  24. package/esm2022/colorpicker/colorpicker-input.mjs +229 -0
  25. package/esm2022/colorpicker/colorpicker-module.mjs +64 -0
  26. package/esm2022/colorpicker/colorpicker-toggle.mjs +103 -0
  27. package/esm2022/colorpicker/colorpicker.mjs +367 -0
  28. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +46 -0
  29. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +46 -0
  30. package/esm2022/column-resize/column-resize-module.mjs +29 -0
  31. package/esm2022/column-resize/column-resize-notifier.mjs +49 -0
  32. package/esm2022/column-resize/column-resize.mjs +83 -0
  33. package/esm2022/column-resize/column-size-store.mjs +21 -0
  34. package/esm2022/column-resize/event-dispatcher.mjs +68 -0
  35. package/esm2022/column-resize/overlay-handle.mjs +147 -0
  36. package/esm2022/column-resize/resizable.mjs +200 -0
  37. package/esm2022/column-resize/resize-strategy.mjs +235 -0
  38. package/{esm2020 → esm2022}/core/datetime/datetime-adapter.mjs +1 -1
  39. package/esm2022/core/datetime/datetime.module.mjs +44 -0
  40. package/esm2022/core/datetime/native-datetime-adapter.mjs +139 -0
  41. package/esm2022/core/pipes/is-template-ref.pipe.mjs +15 -0
  42. package/esm2022/core/pipes/pipes.module.mjs +20 -0
  43. package/esm2022/core/pipes/to-observable.pipe.mjs +16 -0
  44. package/esm2022/datetimepicker/calendar-body.mjs +79 -0
  45. package/esm2022/datetimepicker/calendar.mjs +672 -0
  46. package/esm2022/datetimepicker/clock.mjs +354 -0
  47. package/esm2022/datetimepicker/datetimepicker-input.mjs +350 -0
  48. package/esm2022/datetimepicker/datetimepicker-intl.mjs +64 -0
  49. package/esm2022/datetimepicker/datetimepicker-module.mjs +83 -0
  50. package/esm2022/datetimepicker/datetimepicker-toggle.mjs +106 -0
  51. package/esm2022/datetimepicker/datetimepicker.mjs +529 -0
  52. package/esm2022/datetimepicker/month-view.mjs +149 -0
  53. package/esm2022/datetimepicker/multi-year-view.mjs +215 -0
  54. package/esm2022/datetimepicker/time.mjs +458 -0
  55. package/esm2022/datetimepicker/year-view.mjs +139 -0
  56. package/esm2022/dialog/dialog-container.mjs +36 -0
  57. package/esm2022/dialog/dialog-module.mjs +25 -0
  58. package/esm2022/dialog/dialog.mjs +75 -0
  59. package/esm2022/drawer/drawer-container.mjs +253 -0
  60. package/esm2022/drawer/drawer-module.mjs +23 -0
  61. package/esm2022/drawer/drawer.mjs +167 -0
  62. package/esm2022/grid/cell.mjs +117 -0
  63. package/{esm2020 → esm2022}/grid/column-menu.mjs +6 -5
  64. package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +38 -0
  65. package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +38 -0
  66. package/esm2022/grid/column-resize/column-resize-module.mjs +44 -0
  67. package/esm2022/grid/column-resize/overlay-handle.mjs +61 -0
  68. package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +63 -0
  69. package/esm2022/grid/column-resize/resize-strategy.mjs +43 -0
  70. package/esm2022/grid/expansion-toggle.mjs +65 -0
  71. package/esm2022/grid/grid-module.mjs +137 -0
  72. package/esm2022/grid/grid-pipes.mjs +113 -0
  73. package/esm2022/grid/grid-utils.mjs +64 -0
  74. package/esm2022/grid/grid.mjs +630 -0
  75. package/esm2022/loader/loader-module.mjs +21 -0
  76. package/esm2022/loader/loader.mjs +70 -0
  77. package/esm2022/popover/popover-content.mjs +92 -0
  78. package/esm2022/popover/popover-module.mjs +25 -0
  79. package/esm2022/popover/popover-target.mjs +18 -0
  80. package/esm2022/popover/popover-trigger.mjs +472 -0
  81. package/esm2022/popover/popover.mjs +384 -0
  82. package/esm2022/progress/progress-module.mjs +19 -0
  83. package/esm2022/progress/progress.mjs +56 -0
  84. package/esm2022/select/option.mjs +58 -0
  85. package/esm2022/select/select-module.mjs +75 -0
  86. package/esm2022/select/select.mjs +561 -0
  87. package/esm2022/select/templates.mjs +135 -0
  88. package/esm2022/slider/slider-module.mjs +20 -0
  89. package/esm2022/slider/slider.mjs +1116 -0
  90. package/esm2022/split/split-module.mjs +20 -0
  91. package/esm2022/split/split-pane.mjs +150 -0
  92. package/esm2022/split/split.mjs +635 -0
  93. package/esm2022/tooltip/tooltip-module.mjs +25 -0
  94. package/esm2022/tooltip/tooltip.mjs +930 -0
  95. package/{fesm2020 → fesm2022}/mtxAlert.mjs +7 -7
  96. package/{fesm2020 → fesm2022}/mtxAlert.mjs.map +1 -1
  97. package/{fesm2020 → fesm2022}/mtxButton.mjs +7 -7
  98. package/{fesm2015 → fesm2022}/mtxButton.mjs.map +1 -1
  99. package/{fesm2020 → fesm2022}/mtxCheckboxGroup.mjs +13 -13
  100. package/{fesm2020 → fesm2022}/mtxCheckboxGroup.mjs.map +1 -1
  101. package/{fesm2020 → fesm2022}/mtxColorpicker.mjs +41 -41
  102. package/{fesm2020 → fesm2022}/mtxColorpicker.mjs.map +1 -1
  103. package/{fesm2020 → fesm2022}/mtxColumnResize.mjs +46 -46
  104. package/{fesm2015 → fesm2022}/mtxColumnResize.mjs.map +1 -1
  105. package/{fesm2020 → fesm2022}/mtxCore.mjs +26 -26
  106. package/fesm2022/mtxCore.mjs.map +1 -0
  107. package/{fesm2020 → fesm2022}/mtxDatetimepicker.mjs +84 -80
  108. package/fesm2022/mtxDatetimepicker.mjs.map +1 -0
  109. package/{fesm2020 → fesm2022}/mtxDialog.mjs +10 -10
  110. package/{fesm2015 → fesm2022}/mtxDialog.mjs.map +1 -1
  111. package/{fesm2020 → fesm2022}/mtxDrawer.mjs +10 -10
  112. package/{fesm2020 → fesm2022}/mtxDrawer.mjs.map +1 -1
  113. package/{fesm2020 → fesm2022}/mtxGrid.mjs +120 -120
  114. package/{fesm2020 → fesm2022}/mtxGrid.mjs.map +1 -1
  115. package/{fesm2020 → fesm2022}/mtxLoader.mjs +7 -7
  116. package/{fesm2020 → fesm2022}/mtxLoader.mjs.map +1 -1
  117. package/{fesm2020 → fesm2022}/mtxPopover.mjs +19 -19
  118. package/{fesm2020 → fesm2022}/mtxPopover.mjs.map +1 -1
  119. package/{fesm2020 → fesm2022}/mtxProgress.mjs +7 -7
  120. package/{fesm2015 → fesm2022}/mtxProgress.mjs.map +1 -1
  121. package/{fesm2020 → fesm2022}/mtxSelect.mjs +67 -67
  122. package/{fesm2015 → fesm2022}/mtxSelect.mjs.map +1 -1
  123. package/{fesm2020 → fesm2022}/mtxSlider.mjs +7 -7
  124. package/{fesm2020 → fesm2022}/mtxSlider.mjs.map +1 -1
  125. package/{fesm2020 → fesm2022}/mtxSplit.mjs +10 -10
  126. package/{fesm2020 → fesm2022}/mtxSplit.mjs.map +1 -1
  127. package/{fesm2020 → fesm2022}/mtxTooltip.mjs +16 -16
  128. package/{fesm2015 → fesm2022}/mtxTooltip.mjs.map +1 -1
  129. package/grid/cell.d.ts +1 -1
  130. package/grid/column-menu.d.ts +1 -1
  131. package/grid/column-resize/resizable-directives/resizable.d.ts +1 -1
  132. package/grid/expansion-toggle.d.ts +1 -1
  133. package/grid/grid.d.ts +2 -2
  134. package/loader/loader.d.ts +1 -1
  135. package/package.json +69 -109
  136. package/popover/popover-trigger.d.ts +1 -1
  137. package/popover/popover.d.ts +1 -1
  138. package/progress/progress.d.ts +1 -1
  139. package/select/option.d.ts +1 -1
  140. package/select/select.d.ts +1 -1
  141. package/slider/slider.d.ts +1 -1
  142. package/split/split-pane.d.ts +1 -1
  143. package/split/split.d.ts +1 -1
  144. package/tooltip/tooltip.d.ts +1 -1
  145. package/tooltip/tooltip.scss +1 -4
  146. package/esm2020/alert/alert-module.mjs +0 -18
  147. package/esm2020/alert/alert.mjs +0 -52
  148. package/esm2020/button/button-loading.mjs +0 -76
  149. package/esm2020/button/button-module.mjs +0 -20
  150. package/esm2020/checkbox-group/checkbox-group-module.mjs +0 -21
  151. package/esm2020/checkbox-group/checkbox-group.mjs +0 -233
  152. package/esm2020/colorpicker/colorpicker-input.mjs +0 -228
  153. package/esm2020/colorpicker/colorpicker-module.mjs +0 -63
  154. package/esm2020/colorpicker/colorpicker-toggle.mjs +0 -101
  155. package/esm2020/colorpicker/colorpicker.mjs +0 -365
  156. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +0 -45
  157. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +0 -45
  158. package/esm2020/column-resize/column-resize-module.mjs +0 -28
  159. package/esm2020/column-resize/column-resize-notifier.mjs +0 -47
  160. package/esm2020/column-resize/column-resize.mjs +0 -82
  161. package/esm2020/column-resize/column-size-store.mjs +0 -20
  162. package/esm2020/column-resize/event-dispatcher.mjs +0 -67
  163. package/esm2020/column-resize/overlay-handle.mjs +0 -146
  164. package/esm2020/column-resize/resizable.mjs +0 -199
  165. package/esm2020/column-resize/resize-strategy.mjs +0 -232
  166. package/esm2020/core/datetime/datetime.module.mjs +0 -42
  167. package/esm2020/core/datetime/native-datetime-adapter.mjs +0 -138
  168. package/esm2020/core/pipes/is-template-ref.pipe.mjs +0 -14
  169. package/esm2020/core/pipes/pipes.module.mjs +0 -19
  170. package/esm2020/core/pipes/to-observable.pipe.mjs +0 -15
  171. package/esm2020/datetimepicker/calendar-body.mjs +0 -78
  172. package/esm2020/datetimepicker/calendar.mjs +0 -671
  173. package/esm2020/datetimepicker/clock.mjs +0 -349
  174. package/esm2020/datetimepicker/datetimepicker-input.mjs +0 -349
  175. package/esm2020/datetimepicker/datetimepicker-intl.mjs +0 -63
  176. package/esm2020/datetimepicker/datetimepicker-module.mjs +0 -82
  177. package/esm2020/datetimepicker/datetimepicker-toggle.mjs +0 -104
  178. package/esm2020/datetimepicker/datetimepicker.mjs +0 -527
  179. package/esm2020/datetimepicker/month-view.mjs +0 -148
  180. package/esm2020/datetimepicker/multi-year-view.mjs +0 -214
  181. package/esm2020/datetimepicker/time.mjs +0 -456
  182. package/esm2020/datetimepicker/year-view.mjs +0 -138
  183. package/esm2020/dialog/dialog-container.mjs +0 -35
  184. package/esm2020/dialog/dialog-module.mjs +0 -24
  185. package/esm2020/dialog/dialog.mjs +0 -74
  186. package/esm2020/drawer/drawer-container.mjs +0 -252
  187. package/esm2020/drawer/drawer-module.mjs +0 -22
  188. package/esm2020/drawer/drawer.mjs +0 -166
  189. package/esm2020/grid/cell.mjs +0 -116
  190. package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -37
  191. package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +0 -37
  192. package/esm2020/grid/column-resize/column-resize-module.mjs +0 -42
  193. package/esm2020/grid/column-resize/overlay-handle.mjs +0 -60
  194. package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +0 -62
  195. package/esm2020/grid/column-resize/resize-strategy.mjs +0 -42
  196. package/esm2020/grid/expansion-toggle.mjs +0 -64
  197. package/esm2020/grid/grid-module.mjs +0 -136
  198. package/esm2020/grid/grid-pipes.mjs +0 -108
  199. package/esm2020/grid/grid-utils.mjs +0 -63
  200. package/esm2020/grid/grid.mjs +0 -628
  201. package/esm2020/loader/loader-module.mjs +0 -20
  202. package/esm2020/loader/loader.mjs +0 -69
  203. package/esm2020/popover/popover-content.mjs +0 -90
  204. package/esm2020/popover/popover-module.mjs +0 -24
  205. package/esm2020/popover/popover-target.mjs +0 -17
  206. package/esm2020/popover/popover-trigger.mjs +0 -471
  207. package/esm2020/popover/popover.mjs +0 -383
  208. package/esm2020/progress/progress-module.mjs +0 -18
  209. package/esm2020/progress/progress.mjs +0 -55
  210. package/esm2020/select/option.mjs +0 -57
  211. package/esm2020/select/select-module.mjs +0 -74
  212. package/esm2020/select/select.mjs +0 -560
  213. package/esm2020/select/templates.mjs +0 -124
  214. package/esm2020/slider/slider-module.mjs +0 -19
  215. package/esm2020/slider/slider.mjs +0 -1115
  216. package/esm2020/split/split-module.mjs +0 -19
  217. package/esm2020/split/split-pane.mjs +0 -149
  218. package/esm2020/split/split.mjs +0 -634
  219. package/esm2020/tooltip/tooltip-module.mjs +0 -24
  220. package/esm2020/tooltip/tooltip.mjs +0 -926
  221. package/fesm2015/mtxAlert.mjs +0 -74
  222. package/fesm2015/mtxAlert.mjs.map +0 -1
  223. package/fesm2015/mtxButton.mjs +0 -99
  224. package/fesm2015/mtxCheckboxGroup.mjs +0 -256
  225. package/fesm2015/mtxCheckboxGroup.mjs.map +0 -1
  226. package/fesm2015/mtxColorpicker.mjs +0 -767
  227. package/fesm2015/mtxColorpicker.mjs.map +0 -1
  228. package/fesm2015/mtxColumnResize.mjs +0 -959
  229. package/fesm2015/mtxCore.mjs +0 -374
  230. package/fesm2015/mtxCore.mjs.map +0 -1
  231. package/fesm2015/mtxDatetimepicker.mjs +0 -3164
  232. package/fesm2015/mtxDatetimepicker.mjs.map +0 -1
  233. package/fesm2015/mtxDialog.mjs +0 -130
  234. package/fesm2015/mtxDrawer.mjs +0 -578
  235. package/fesm2015/mtxDrawer.mjs.map +0 -1
  236. package/fesm2015/mtxGrid.mjs +0 -1514
  237. package/fesm2015/mtxGrid.mjs.map +0 -1
  238. package/fesm2015/mtxLoader.mjs +0 -93
  239. package/fesm2015/mtxLoader.mjs.map +0 -1
  240. package/fesm2015/mtxPopover.mjs +0 -1027
  241. package/fesm2015/mtxPopover.mjs.map +0 -1
  242. package/fesm2015/mtxProgress.mjs +0 -77
  243. package/fesm2015/mtxSelect.mjs +0 -814
  244. package/fesm2015/mtxSlider.mjs +0 -1139
  245. package/fesm2015/mtxSlider.mjs.map +0 -1
  246. package/fesm2015/mtxSplit.mjs +0 -1025
  247. package/fesm2015/mtxSplit.mjs.map +0 -1
  248. package/fesm2015/mtxTooltip.mjs +0 -982
  249. package/fesm2020/mtxButton.mjs.map +0 -1
  250. package/fesm2020/mtxColumnResize.mjs.map +0 -1
  251. package/fesm2020/mtxCore.mjs.map +0 -1
  252. package/fesm2020/mtxDatetimepicker.mjs.map +0 -1
  253. package/fesm2020/mtxDialog.mjs.map +0 -1
  254. package/fesm2020/mtxProgress.mjs.map +0 -1
  255. package/fesm2020/mtxSelect.mjs.map +0 -1
  256. package/fesm2020/mtxTooltip.mjs.map +0 -1
  257. package/fesm2020/ng-matero-extensions.mjs +0 -9
  258. package/fesm2020/ng-matero-extensions.mjs.map +0 -1
  259. /package/{esm2020 → esm2022}/alert/mtxAlert.mjs +0 -0
  260. /package/{esm2020 → esm2022}/alert/public-api.mjs +0 -0
  261. /package/{esm2020 → esm2022}/button/mtxButton.mjs +0 -0
  262. /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
  263. /package/{esm2020 → esm2022}/checkbox-group/interfaces.mjs +0 -0
  264. /package/{esm2020 → esm2022}/checkbox-group/mtxCheckboxGroup.mjs +0 -0
  265. /package/{esm2020 → esm2022}/checkbox-group/public-api.mjs +0 -0
  266. /package/{esm2020 → esm2022}/colorpicker/colorpicker-animations.mjs +0 -0
  267. /package/{esm2020 → esm2022}/colorpicker/mtxColorpicker.mjs +0 -0
  268. /package/{esm2020 → esm2022}/colorpicker/public-api.mjs +0 -0
  269. /package/{esm2020 → esm2022}/column-resize/column-resize-directives/constants.mjs +0 -0
  270. /package/{esm2020 → esm2022}/column-resize/mtxColumnResize.mjs +0 -0
  271. /package/{esm2020 → esm2022}/column-resize/polyfill.mjs +0 -0
  272. /package/{esm2020 → esm2022}/column-resize/public-api.mjs +0 -0
  273. /package/{esm2020 → esm2022}/column-resize/resize-ref.mjs +0 -0
  274. /package/{esm2020 → esm2022}/column-resize/selectors.mjs +0 -0
  275. /package/{esm2020 → esm2022}/core/datetime/datetime-formats.mjs +0 -0
  276. /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
  277. /package/{esm2020 → esm2022}/core/datetime/native-datetime-formats.mjs +0 -0
  278. /package/{esm2020 → esm2022}/core/mtxCore.mjs +0 -0
  279. /package/{esm2020 → esm2022}/core/pipes/index.mjs +0 -0
  280. /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
  281. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-animations.mjs +0 -0
  282. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-errors.mjs +0 -0
  283. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-filtertype.mjs +0 -0
  284. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-types.mjs +0 -0
  285. /package/{esm2020 → esm2022}/datetimepicker/mtxDatetimepicker.mjs +0 -0
  286. /package/{esm2020 → esm2022}/datetimepicker/public-api.mjs +0 -0
  287. /package/{esm2020 → esm2022}/dialog/dialog-config.mjs +0 -0
  288. /package/{esm2020 → esm2022}/dialog/mtxDialog.mjs +0 -0
  289. /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
  290. /package/{esm2020 → esm2022}/drawer/drawer-animation.mjs +0 -0
  291. /package/{esm2020 → esm2022}/drawer/drawer-config.mjs +0 -0
  292. /package/{esm2020 → esm2022}/drawer/drawer-ref.mjs +0 -0
  293. /package/{esm2020 → esm2022}/drawer/mtxDrawer.mjs +0 -0
  294. /package/{esm2020 → esm2022}/drawer/public-api.mjs +0 -0
  295. /package/{esm2020 → esm2022}/grid/column-resize/column-resize-directives/common.mjs +0 -0
  296. /package/{esm2020 → esm2022}/grid/column-resize/resizable-directives/common.mjs +0 -0
  297. /package/{esm2020 → esm2022}/grid/interfaces.mjs +0 -0
  298. /package/{esm2020 → esm2022}/grid/mtxGrid.mjs +0 -0
  299. /package/{esm2020 → esm2022}/grid/public-api.mjs +0 -0
  300. /package/{esm2020 → esm2022}/loader/mtxLoader.mjs +0 -0
  301. /package/{esm2020 → esm2022}/loader/public-api.mjs +0 -0
  302. /package/{esm2020 → esm2022}/ng-matero-extensions.mjs +0 -0
  303. /package/{esm2020 → esm2022}/popover/mtxPopover.mjs +0 -0
  304. /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
  305. /package/{esm2020 → esm2022}/popover/popover-errors.mjs +0 -0
  306. /package/{esm2020 → esm2022}/popover/popover-interfaces.mjs +0 -0
  307. /package/{esm2020 → esm2022}/popover/popover-types.mjs +0 -0
  308. /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
  309. /package/{esm2020 → esm2022}/progress/mtxProgress.mjs +0 -0
  310. /package/{esm2020 → esm2022}/progress/public-api.mjs +0 -0
  311. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  312. /package/{esm2020 → esm2022}/select/mtxSelect.mjs +0 -0
  313. /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
  314. /package/{esm2020 → esm2022}/slider/mtxSlider.mjs +0 -0
  315. /package/{esm2020 → esm2022}/slider/public-api.mjs +0 -0
  316. /package/{esm2020 → esm2022}/split/interfaces.mjs +0 -0
  317. /package/{esm2020 → esm2022}/split/mtxSplit.mjs +0 -0
  318. /package/{esm2020 → esm2022}/split/public-api.mjs +0 -0
  319. /package/{esm2020 → esm2022}/split/utils.mjs +0 -0
  320. /package/{esm2020 → esm2022}/tooltip/mtxTooltip.mjs +0 -0
  321. /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
  322. /package/{esm2020 → esm2022}/tooltip/tooltip-animations.mjs +0 -0
  323. /package/{fesm2015 → fesm2022}/ng-matero-extensions.mjs +0 -0
  324. /package/{fesm2015 → fesm2022}/ng-matero-extensions.mjs.map +0 -0
@@ -1,767 +0,0 @@
1
- import * as i1$1 from '@angular/common';
2
- import { DOCUMENT, CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { forwardRef, EventEmitter, Directive, Optional, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, ContentChild, ViewChild, InjectionToken, Inject, NgModule } from '@angular/core';
5
- import * as i3 from '@angular/cdk/overlay';
6
- import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
7
- import { A11yModule } from '@angular/cdk/a11y';
8
- import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
9
- import * as i2 from '@angular/material/button';
10
- import { MatButtonModule } from '@angular/material/button';
11
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
12
- import { DOWN_ARROW, ESCAPE, hasModifierKey, UP_ARROW } from '@angular/cdk/keycodes';
13
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators } from '@angular/forms';
14
- import { MAT_INPUT_VALUE_ACCESSOR } from '@angular/material/input';
15
- import { Subscription, of, merge, Subject } from 'rxjs';
16
- import * as i1 from '@angular/material/form-field';
17
- import { mixinColor } from '@angular/material/core';
18
- import { take, filter } from 'rxjs/operators';
19
- import { trigger, transition, animate, keyframes, style } from '@angular/animations';
20
- import { TinyColor } from '@ctrl/tinycolor';
21
- import * as i2$1 from 'ngx-color/chrome';
22
- import { ColorChromeModule } from 'ngx-color/chrome';
23
- import * as i4 from '@angular/cdk/bidi';
24
-
25
- class MtxColorPickerInputEvent {
26
- constructor(
27
- /** Reference to the colorpicker input component that emitted the event. */
28
- target,
29
- /** Reference to the native input element associated with the colorpicker input. */
30
- targetElement) {
31
- this.target = target;
32
- this.targetElement = targetElement;
33
- this.value = this.target.value;
34
- }
35
- }
36
- const MTX_COLORPICKER_VALUE_ACCESSOR = {
37
- provide: NG_VALUE_ACCESSOR,
38
- useExisting: forwardRef(() => MtxColorpickerInput),
39
- multi: true,
40
- };
41
- const MTX_COLORPICKER_VALIDATORS = {
42
- provide: NG_VALIDATORS,
43
- useExisting: forwardRef(() => MtxColorpickerInput),
44
- multi: true,
45
- };
46
- class MtxColorpickerInput {
47
- set mtxColorpicker(value) {
48
- if (!value) {
49
- return;
50
- }
51
- this._picker = value;
52
- this._picker.registerInput(this);
53
- this._pickerSubscription.unsubscribe();
54
- this._pickerSubscription = this._picker._selectedChanged.subscribe((selected) => {
55
- this.value = selected;
56
- this._cvaOnChange(selected);
57
- this._onTouched();
58
- this.colorInput.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
59
- this.colorChange.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
60
- });
61
- }
62
- /** Whether the colorpicker-input is disabled. */
63
- get disabled() {
64
- return !!this._disabled;
65
- }
66
- set disabled(value) {
67
- const newValue = coerceBooleanProperty(value);
68
- const element = this._elementRef.nativeElement;
69
- if (this._disabled !== newValue) {
70
- this._disabled = newValue;
71
- this._disabledChange.emit(newValue);
72
- }
73
- // We need to null check the `blur` method, because it's undefined during SSR.
74
- // In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
75
- // This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
76
- // element has been inserted.
77
- if (newValue && this._isInitialized && element.blur) {
78
- // Normally, native input elements automatically blur if they turn disabled. This behavior
79
- // is problematic, because it would mean that it triggers another change detection cycle,
80
- // which then causes a changed after checked error if the input element was focused before.
81
- element.blur();
82
- }
83
- }
84
- /** The value of the input. */
85
- get value() {
86
- return this._value;
87
- }
88
- set value(value) {
89
- const oldValue = this.value;
90
- this._value = value;
91
- this._formatValue(value);
92
- this._valueChange.emit(value);
93
- }
94
- constructor(_elementRef, _formField) {
95
- this._elementRef = _elementRef;
96
- this._formField = _formField;
97
- /** The input and output color format. */
98
- this.format = 'hex';
99
- /** Emits when a `change` event is fired on this `<input>`. */
100
- this.colorChange = new EventEmitter();
101
- /** Emits when an `input` event is fired on this `<input>`. */
102
- this.colorInput = new EventEmitter();
103
- /** Emits when the disabled state has changed */
104
- this._disabledChange = new EventEmitter();
105
- /** Emits when the value changes (either due to user input or programmatic change). */
106
- this._valueChange = new EventEmitter();
107
- this._onTouched = () => { };
108
- this._validatorOnChange = () => { };
109
- this._cvaOnChange = () => { };
110
- this._pickerSubscription = Subscription.EMPTY;
111
- /** The combined form control validator for this input. */
112
- this._validator = Validators.compose([]);
113
- /** Whether the last value set on the input was valid. */
114
- this._lastValueValid = false;
115
- }
116
- ngAfterViewInit() {
117
- this._isInitialized = true;
118
- }
119
- ngOnDestroy() {
120
- this._pickerSubscription.unsubscribe();
121
- this._valueChange.complete();
122
- this._disabledChange.complete();
123
- }
124
- registerOnValidatorChange(fn) {
125
- this._validatorOnChange = fn;
126
- }
127
- /** @docs-private */
128
- validate(c) {
129
- return this._validator ? this._validator(c) : null;
130
- }
131
- /**
132
- * @deprecated
133
- * @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead
134
- */
135
- getPopupConnectionElementRef() {
136
- return this.getConnectedOverlayOrigin();
137
- }
138
- /**
139
- * Gets the element that the colorpicker popup should be connected to.
140
- * @return The element to connect the popup to.
141
- */
142
- getConnectedOverlayOrigin() {
143
- return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
144
- }
145
- /** Gets the ID of an element that should be used a description for the overlay. */
146
- getOverlayLabelId() {
147
- if (this._formField) {
148
- return this._formField.getLabelId();
149
- }
150
- return this._elementRef.nativeElement.getAttribute('aria-labelledby');
151
- }
152
- // Implemented as part of ControlValueAccessor.
153
- writeValue(value) {
154
- this.value = value;
155
- }
156
- // Implemented as part of ControlValueAccessor.
157
- registerOnChange(fn) {
158
- this._cvaOnChange = fn;
159
- }
160
- // Implemented as part of ControlValueAccessor.
161
- registerOnTouched(fn) {
162
- this._onTouched = fn;
163
- }
164
- // Implemented as part of ControlValueAccessor.
165
- setDisabledState(isDisabled) {
166
- this.disabled = isDisabled;
167
- }
168
- _onKeydown(event) {
169
- const isAltDownArrow = event.altKey && event.keyCode === DOWN_ARROW;
170
- if (this._picker && isAltDownArrow && !this._elementRef.nativeElement.readOnly) {
171
- this._picker.open();
172
- event.preventDefault();
173
- }
174
- }
175
- /** Handles blur events on the input. */
176
- _onBlur() {
177
- // Reformat the input only if we have a valid value.
178
- if (this.value) {
179
- this._formatValue(this.value);
180
- }
181
- this._onTouched();
182
- }
183
- _onInput(value) {
184
- const nextValue = value;
185
- this._value = nextValue;
186
- this._cvaOnChange(nextValue);
187
- this._valueChange.emit(nextValue);
188
- this.colorInput.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
189
- }
190
- _onChange() {
191
- this.colorChange.emit(new MtxColorPickerInputEvent(this, this._elementRef.nativeElement));
192
- }
193
- /** Returns the palette used by the input's form field, if any. */
194
- getThemePalette() {
195
- return this._formField ? this._formField.color : undefined;
196
- }
197
- /** TODO: Formats a value and sets it on the input element. */
198
- _formatValue(value) {
199
- this._elementRef.nativeElement.value = value ? value : '';
200
- }
201
- }
202
- /** @nocollapse */ MtxColorpickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerInput, deps: [{ token: i0.ElementRef }, { token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
203
- /** @nocollapse */ MtxColorpickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MtxColorpickerInput, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: "disabled", value: "value", format: "format" }, outputs: { colorChange: "colorChange", colorInput: "colorInput" }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_picker ? \"dialog\" : null", "attr.aria-owns": "(_picker?.opened && _picker.id) || null", "disabled": "disabled" }, classAttribute: "mtx-colorpicker-input" }, providers: [
204
- MTX_COLORPICKER_VALUE_ACCESSOR,
205
- MTX_COLORPICKER_VALIDATORS,
206
- { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
207
- ], exportAs: ["mtxColorpickerInput"], ngImport: i0 });
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerInput, decorators: [{
209
- type: Directive,
210
- args: [{
211
- selector: 'input[mtxColorpicker]',
212
- providers: [
213
- MTX_COLORPICKER_VALUE_ACCESSOR,
214
- MTX_COLORPICKER_VALIDATORS,
215
- { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
216
- ],
217
- host: {
218
- 'class': 'mtx-colorpicker-input',
219
- '[attr.aria-haspopup]': '_picker ? "dialog" : null',
220
- '[attr.aria-owns]': '(_picker?.opened && _picker.id) || null',
221
- '[disabled]': 'disabled',
222
- '(input)': '_onInput($event.target.value)',
223
- '(change)': '_onChange()',
224
- '(blur)': '_onBlur()',
225
- '(keydown)': '_onKeydown($event)',
226
- },
227
- exportAs: 'mtxColorpickerInput',
228
- }]
229
- }], ctorParameters: function () {
230
- return [{ type: i0.ElementRef }, { type: i1.MatFormField, decorators: [{
231
- type: Optional
232
- }] }];
233
- }, propDecorators: { mtxColorpicker: [{
234
- type: Input
235
- }], disabled: [{
236
- type: Input
237
- }], value: [{
238
- type: Input
239
- }], format: [{
240
- type: Input
241
- }], colorChange: [{
242
- type: Output
243
- }], colorInput: [{
244
- type: Output
245
- }] } });
246
-
247
- /** Can be used to override the icon of a `mtxColorpickerToggle`. */
248
- class MtxColorpickerToggleIcon {
249
- }
250
- /** @nocollapse */ MtxColorpickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
251
- /** @nocollapse */ MtxColorpickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MtxColorpickerToggleIcon, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 });
252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
253
- type: Directive,
254
- args: [{
255
- selector: '[mtxColorpickerToggleIcon]',
256
- }]
257
- }] });
258
- class MtxColorpickerToggle {
259
- /** Whether the toggle button is disabled. */
260
- get disabled() {
261
- if (this._disabled == null && this.picker) {
262
- return this.picker.disabled;
263
- }
264
- return !!this._disabled;
265
- }
266
- set disabled(value) {
267
- this._disabled = coerceBooleanProperty(value);
268
- }
269
- constructor(_changeDetectorRef, defaultTabIndex) {
270
- this._changeDetectorRef = _changeDetectorRef;
271
- this._stateChanges = Subscription.EMPTY;
272
- const parsedTabIndex = Number(defaultTabIndex);
273
- this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
274
- }
275
- ngOnChanges(changes) {
276
- if (changes.picker) {
277
- this._watchStateChanges();
278
- }
279
- }
280
- ngOnDestroy() {
281
- this._stateChanges.unsubscribe();
282
- }
283
- ngAfterContentInit() {
284
- this._watchStateChanges();
285
- }
286
- _open(event) {
287
- if (this.picker && !this.disabled) {
288
- this.picker.open();
289
- event.stopPropagation();
290
- }
291
- }
292
- _watchStateChanges() {
293
- const pickerDisabled = this.picker ? this.picker._disabledChange : of();
294
- const inputDisabled = this.picker && this.picker.pickerInput
295
- ? this.picker.pickerInput._disabledChange
296
- : of();
297
- const pickerToggled = this.picker
298
- ? merge(this.picker.openedStream, this.picker.closedStream)
299
- : of();
300
- this._stateChanges.unsubscribe();
301
- this._stateChanges = merge(pickerDisabled, inputDisabled, pickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
302
- }
303
- }
304
- /** @nocollapse */ MtxColorpickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
305
- /** @nocollapse */ MtxColorpickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxColorpickerToggle, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
307
- type: Component,
308
- args: [{ selector: 'mtx-colorpicker-toggle', host: {
309
- 'class': 'mtx-colorpicker-toggle',
310
- '[attr.tabindex]': 'null',
311
- '[class.mtx-colorpicker-toggle-active]': 'picker && picker.opened',
312
- '[class.mat-accent]': 'picker && picker.color === "accent"',
313
- '[class.mat-warn]': 'picker && picker.color === "warn"',
314
- // Bind the `click` on the host, rather than the inner `button`, so that we can call
315
- // `stopPropagation` on it without affecting the user's `click` handlers. We need to stop
316
- // it so that the input doesn't get focused automatically by the form field (See #21836).
317
- '(click)': '_open($event)',
318
- }, exportAs: 'mtxColorpickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"] }]
319
- }], ctorParameters: function () {
320
- return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
321
- type: Attribute,
322
- args: ['tabindex']
323
- }] }];
324
- }, propDecorators: { picker: [{
325
- type: Input,
326
- args: ['for']
327
- }], tabIndex: [{
328
- type: Input
329
- }], ariaLabel: [{
330
- type: Input,
331
- args: ['aria-label']
332
- }], disabled: [{
333
- type: Input
334
- }], disableRipple: [{
335
- type: Input
336
- }], _customIcon: [{
337
- type: ContentChild,
338
- args: [MtxColorpickerToggleIcon]
339
- }], _button: [{
340
- type: ViewChild,
341
- args: ['button']
342
- }] } });
343
-
344
- /**
345
- * Animations used by the colorpicker.
346
- * @docs-private
347
- */
348
- const mtxColorpickerAnimations = {
349
- /** Transforms the height of the colorpicker's panel. */
350
- transformPanel: trigger('transformPanel', [
351
- transition('void => enter-dropdown', animate('120ms cubic-bezier(0, 0, 0.2, 1)', keyframes([
352
- style({ opacity: 0, transform: 'scale(1, 0.8)' }),
353
- style({ opacity: 1, transform: 'scale(1, 1)' }),
354
- ]))),
355
- transition('* => void', animate('100ms linear', style({ opacity: 0 }))),
356
- ]),
357
- };
358
-
359
- /** Used to generate a unique ID for each colorpicker instance. */
360
- let colorpickerUid = 0;
361
- /** Injection token that determines the scroll handling while the panel is open. */
362
- const MTX_COLORPICKER_SCROLL_STRATEGY = new InjectionToken('mtx-colorpicker-scroll-strategy');
363
- function MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY(overlay) {
364
- return () => overlay.scrollStrategies.reposition();
365
- }
366
- const MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
367
- provide: MTX_COLORPICKER_SCROLL_STRATEGY,
368
- deps: [Overlay],
369
- useFactory: MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY,
370
- };
371
- // Boilerplate for applying mixins to MtxColorpickerContent.
372
- /** @docs-private */
373
- const _MtxColorpickerContentBase = mixinColor(class {
374
- constructor(_elementRef) {
375
- this._elementRef = _elementRef;
376
- }
377
- });
378
- class MtxColorpickerContent extends _MtxColorpickerContentBase {
379
- constructor(elementRef, _changeDetectorRef) {
380
- super(elementRef);
381
- this._changeDetectorRef = _changeDetectorRef;
382
- /** Current state of the animation. */
383
- this._animationState = 'enter-dropdown';
384
- /** Emits when an animation has finished. */
385
- this._animationDone = new Subject();
386
- }
387
- _startExitAnimation() {
388
- this._animationState = 'void';
389
- this._changeDetectorRef.markForCheck();
390
- }
391
- ngOnDestroy() {
392
- this._animationDone.complete();
393
- }
394
- getColorString(e) {
395
- return {
396
- hex: e.color.rgb.a === 1 ? e.color.hex : new TinyColor(e.color.rgb).toHex8String(),
397
- rgb: new TinyColor(e.color.rgb).toRgbString(),
398
- hsl: new TinyColor(e.color.hsl).toHslString(),
399
- hsv: new TinyColor(e.color.hsv).toHsvString(),
400
- }[this.picker.format];
401
- }
402
- }
403
- /** @nocollapse */ MtxColorpickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerContent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
404
- /** @nocollapse */ MtxColorpickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxColorpickerContent, selector: "mtx-colorpicker-content", inputs: { color: "color" }, host: { listeners: { "@transformPanel.done": "_animationDone.next()" }, properties: { "@transformPanel": "_animationState" }, classAttribute: "mtx-colorpicker-content" }, exportAs: ["mtxColorpickerContent"], usesInheritance: true, ngImport: i0, template: "<ng-template [ngIf]=\"picker.content\" [ngIfElse]=\"default\"\n [ngTemplateOutlet]=\"picker.content\">\n</ng-template>\n<ng-template #default>\n <color-chrome [color]=\"picker.selected\"\n (onChangeComplete)=\"picker.select(getColorString($event))\">\n </color-chrome>\n</ng-template>\n", styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$1.ChromeComponent, selector: "color-chrome", inputs: ["disableAlpha"] }], animations: [mtxColorpickerAnimations.transformPanel], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
405
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerContent, decorators: [{
406
- type: Component,
407
- args: [{ selector: 'mtx-colorpicker-content', host: {
408
- 'class': 'mtx-colorpicker-content',
409
- '[@transformPanel]': '_animationState',
410
- '(@transformPanel.done)': '_animationDone.next()',
411
- }, animations: [mtxColorpickerAnimations.transformPanel], exportAs: 'mtxColorpickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: "<ng-template [ngIf]=\"picker.content\" [ngIfElse]=\"default\"\n [ngTemplateOutlet]=\"picker.content\">\n</ng-template>\n<ng-template #default>\n <color-chrome [color]=\"picker.selected\"\n (onChangeComplete)=\"picker.select(getColorString($event))\">\n </color-chrome>\n</ng-template>\n", styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"] }]
412
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
413
- class MtxColorpicker {
414
- get disabled() {
415
- return this._disabled === undefined && this.pickerInput
416
- ? this.pickerInput.disabled
417
- : !!this._disabled;
418
- }
419
- set disabled(value) {
420
- const newValue = coerceBooleanProperty(value);
421
- if (newValue !== this._disabled) {
422
- this._disabled = newValue;
423
- this._disabledChange.next(newValue);
424
- }
425
- }
426
- /**
427
- * Whether to restore focus to the previously-focused element when the panel is closed.
428
- * Note that automatic focus restoration is an accessibility feature and it is recommended that
429
- * you provide your own equivalent, if you decide to turn it off.
430
- */
431
- get restoreFocus() {
432
- return this._restoreFocus;
433
- }
434
- set restoreFocus(value) {
435
- this._restoreFocus = coerceBooleanProperty(value);
436
- }
437
- /** Whether the panel is open. */
438
- get opened() {
439
- return this._opened;
440
- }
441
- set opened(value) {
442
- coerceBooleanProperty(value) ? this.open() : this.close();
443
- }
444
- /** Color palette to use on the colorpicker's panel. */
445
- get color() {
446
- return this._color || (this.pickerInput ? this.pickerInput.getThemePalette() : undefined);
447
- }
448
- set color(value) {
449
- this._color = value;
450
- }
451
- /** The input and output color format. */
452
- get format() {
453
- return this._format || this.pickerInput.format;
454
- }
455
- set format(value) {
456
- this._format = value;
457
- }
458
- /** The currently selected color. */
459
- get selected() {
460
- return this._validSelected;
461
- }
462
- set selected(value) {
463
- this._validSelected = value;
464
- }
465
- constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dir, _document) {
466
- this._overlay = _overlay;
467
- this._ngZone = _ngZone;
468
- this._viewContainerRef = _viewContainerRef;
469
- this._dir = _dir;
470
- this._document = _document;
471
- this._inputStateChanges = Subscription.EMPTY;
472
- /** Emits when the colorpicker has been opened. */
473
- this.openedStream = new EventEmitter();
474
- /** Emits when the colorpicker has been closed. */
475
- this.closedStream = new EventEmitter();
476
- /** Preferred position of the colorpicker in the X axis. */
477
- this.xPosition = 'start';
478
- /** Preferred position of the colorpicker in the Y axis. */
479
- this.yPosition = 'below';
480
- this._restoreFocus = true;
481
- this._opened = false;
482
- /** The id for the colorpicker panel. */
483
- this.id = `mtx-colorpicker-${colorpickerUid++}`;
484
- this._validSelected = '';
485
- /** The element that was focused before the colorpicker was opened. */
486
- this._focusedElementBeforeOpen = null;
487
- /** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
488
- this._backdropHarnessClass = `${this.id}-backdrop`;
489
- /** Emits when the datepicker is disabled. */
490
- this._disabledChange = new Subject();
491
- /** Emits new selected color when selected color changes. */
492
- this._selectedChanged = new Subject();
493
- this._scrollStrategy = scrollStrategy;
494
- }
495
- ngOnChanges() { }
496
- ngOnDestroy() {
497
- this._destroyOverlay();
498
- this.close();
499
- this._inputStateChanges.unsubscribe();
500
- this._disabledChange.complete();
501
- }
502
- /** Selects the given color. */
503
- select(nextVal) {
504
- const oldValue = this.selected;
505
- this.selected = nextVal;
506
- // TODO: `nextVal` should compare with `oldValue`
507
- this._selectedChanged.next(nextVal);
508
- }
509
- /**
510
- * Register an input with this colorpicker.
511
- * @param input The colorpicker input to register with this colorpicker.
512
- */
513
- registerInput(input) {
514
- if (this.pickerInput) {
515
- throw Error('A Colorpicker can only be associated with a single input.');
516
- }
517
- this.pickerInput = input;
518
- this._inputStateChanges = input._valueChange.subscribe((value) => (this.selected = value));
519
- }
520
- /** Open the panel. */
521
- open() {
522
- if (this._opened || this.disabled) {
523
- return;
524
- }
525
- if (!this.pickerInput) {
526
- throw Error('Attempted to open an Colorpicker with no associated input.');
527
- }
528
- if (this._document) {
529
- this._focusedElementBeforeOpen = this._document.activeElement;
530
- }
531
- this._openOverlay();
532
- this._opened = true;
533
- this.openedStream.emit();
534
- }
535
- /** Close the panel. */
536
- close() {
537
- if (!this._opened) {
538
- return;
539
- }
540
- if (this._componentRef) {
541
- const instance = this._componentRef.instance;
542
- instance._startExitAnimation();
543
- instance._animationDone.pipe(take(1)).subscribe(() => this._destroyOverlay());
544
- }
545
- const completeClose = () => {
546
- // The `_opened` could've been reset already if
547
- // we got two events in quick succession.
548
- if (this._opened) {
549
- this._opened = false;
550
- this.closedStream.emit();
551
- this._focusedElementBeforeOpen = null;
552
- }
553
- };
554
- if (this._restoreFocus &&
555
- this._focusedElementBeforeOpen &&
556
- typeof this._focusedElementBeforeOpen.focus === 'function') {
557
- // Because IE moves focus asynchronously, we can't count on it being restored before we've
558
- // marked the colorpicker as closed. If the event fires out of sequence and the element that
559
- // we're refocusing opens the colorpicker on focus, the user could be stuck with not being
560
- // able to close the panel at all. We work around it by making the logic, that marks
561
- // the colorpicker as closed, async as well.
562
- this._focusedElementBeforeOpen.focus();
563
- setTimeout(completeClose);
564
- }
565
- else {
566
- completeClose();
567
- }
568
- }
569
- /** Forwards relevant values from the colorpicker to the colorpicker content inside the overlay. */
570
- _forwardContentValues(instance) {
571
- instance.picker = this;
572
- instance.color = this.color;
573
- }
574
- /** Open the colopicker as a popup. */
575
- _openOverlay() {
576
- this._destroyOverlay();
577
- const labelId = this.pickerInput.getOverlayLabelId();
578
- const portal = new ComponentPortal(MtxColorpickerContent, this._viewContainerRef);
579
- const overlayRef = (this._overlayRef = this._overlay.create(new OverlayConfig({
580
- positionStrategy: this._getDropdownStrategy(),
581
- hasBackdrop: true,
582
- backdropClass: ['mat-overlay-transparent-backdrop', this._backdropHarnessClass],
583
- direction: this._dir,
584
- scrollStrategy: this._scrollStrategy(),
585
- panelClass: `mtx-colorpicker-popup`,
586
- })));
587
- const overlayElement = overlayRef.overlayElement;
588
- overlayElement.setAttribute('role', 'dialog');
589
- if (labelId) {
590
- overlayElement.setAttribute('aria-labelledby', labelId);
591
- }
592
- this._getCloseStream(overlayRef).subscribe(event => {
593
- if (event) {
594
- event.preventDefault();
595
- }
596
- this.close();
597
- });
598
- this._componentRef = overlayRef.attach(portal);
599
- this._forwardContentValues(this._componentRef.instance);
600
- // Update the position once the panel has rendered. Only relevant in dropdown mode.
601
- this._ngZone.onStable.pipe(take(1)).subscribe(() => overlayRef.updatePosition());
602
- }
603
- /** Destroys the current overlay. */
604
- _destroyOverlay() {
605
- if (this._overlayRef) {
606
- this._overlayRef.dispose();
607
- this._overlayRef = this._componentRef = null;
608
- }
609
- }
610
- /** Gets a position strategy that will open the panel as a dropdown. */
611
- _getDropdownStrategy() {
612
- const strategy = this._overlay
613
- .position()
614
- .flexibleConnectedTo(this.pickerInput.getConnectedOverlayOrigin())
615
- .withTransformOriginOn('.mtx-colorpicker-content')
616
- .withFlexibleDimensions(false)
617
- .withViewportMargin(8)
618
- .withLockedPosition();
619
- return this._setConnectedPositions(strategy);
620
- }
621
- /** Sets the positions of the colorpicker in dropdown mode based on the current configuration. */
622
- _setConnectedPositions(strategy) {
623
- const primaryX = this.xPosition === 'end' ? 'end' : 'start';
624
- const secondaryX = primaryX === 'start' ? 'end' : 'start';
625
- const primaryY = this.yPosition === 'above' ? 'bottom' : 'top';
626
- const secondaryY = primaryY === 'top' ? 'bottom' : 'top';
627
- return strategy.withPositions([
628
- {
629
- originX: primaryX,
630
- originY: secondaryY,
631
- overlayX: primaryX,
632
- overlayY: primaryY,
633
- },
634
- {
635
- originX: primaryX,
636
- originY: primaryY,
637
- overlayX: primaryX,
638
- overlayY: secondaryY,
639
- },
640
- {
641
- originX: secondaryX,
642
- originY: secondaryY,
643
- overlayX: secondaryX,
644
- overlayY: primaryY,
645
- },
646
- {
647
- originX: secondaryX,
648
- originY: primaryY,
649
- overlayX: secondaryX,
650
- overlayY: secondaryY,
651
- },
652
- ]);
653
- }
654
- /** Gets an observable that will emit when the overlay is supposed to be closed. */
655
- _getCloseStream(overlayRef) {
656
- return merge(overlayRef.backdropClick(), overlayRef.detachments(), overlayRef.keydownEvents().pipe(filter(event => {
657
- // Closing on alt + up is only valid when there's an input associated with the colorpicker.
658
- return ((event.keyCode === ESCAPE && !hasModifierKey(event)) ||
659
- (this.pickerInput && hasModifierKey(event, 'altKey') && event.keyCode === UP_ARROW));
660
- })));
661
- }
662
- }
663
- /** @nocollapse */ MtxColorpicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpicker, deps: [{ token: i3.Overlay }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: MTX_COLORPICKER_SCROLL_STRATEGY }, { token: i4.Directionality, optional: true }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
664
- /** @nocollapse */ MtxColorpicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxColorpicker, selector: "mtx-colorpicker", inputs: { content: "content", disabled: "disabled", xPosition: "xPosition", yPosition: "yPosition", restoreFocus: "restoreFocus", opened: "opened", color: "color", format: "format" }, outputs: { openedStream: "opened", closedStream: "closed" }, exportAs: ["mtxColorpicker"], usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpicker, decorators: [{
666
- type: Component,
667
- args: [{
668
- selector: 'mtx-colorpicker',
669
- template: '',
670
- exportAs: 'mtxColorpicker',
671
- changeDetection: ChangeDetectionStrategy.OnPush,
672
- encapsulation: ViewEncapsulation.None,
673
- }]
674
- }], ctorParameters: function () {
675
- return [{ type: i3.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
676
- type: Inject,
677
- args: [MTX_COLORPICKER_SCROLL_STRATEGY]
678
- }] }, { type: i4.Directionality, decorators: [{
679
- type: Optional
680
- }] }, { type: undefined, decorators: [{
681
- type: Optional
682
- }, {
683
- type: Inject,
684
- args: [DOCUMENT]
685
- }] }];
686
- }, propDecorators: { content: [{
687
- type: Input
688
- }], openedStream: [{
689
- type: Output,
690
- args: ['opened']
691
- }], closedStream: [{
692
- type: Output,
693
- args: ['closed']
694
- }], disabled: [{
695
- type: Input
696
- }], xPosition: [{
697
- type: Input
698
- }], yPosition: [{
699
- type: Input
700
- }], restoreFocus: [{
701
- type: Input
702
- }], opened: [{
703
- type: Input
704
- }], color: [{
705
- type: Input
706
- }], format: [{
707
- type: Input
708
- }] } });
709
-
710
- class MtxColorpickerModule {
711
- }
712
- /** @nocollapse */ MtxColorpickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
713
- /** @nocollapse */ MtxColorpickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerModule, declarations: [MtxColorpicker,
714
- MtxColorpickerContent,
715
- MtxColorpickerInput,
716
- MtxColorpickerToggle,
717
- MtxColorpickerToggleIcon], imports: [CommonModule,
718
- OverlayModule,
719
- A11yModule,
720
- PortalModule,
721
- MatButtonModule,
722
- ColorChromeModule], exports: [MtxColorpicker,
723
- MtxColorpickerContent,
724
- MtxColorpickerInput,
725
- MtxColorpickerToggle,
726
- MtxColorpickerToggleIcon] });
727
- /** @nocollapse */ MtxColorpickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [CommonModule,
728
- OverlayModule,
729
- A11yModule,
730
- PortalModule,
731
- MatButtonModule,
732
- ColorChromeModule] });
733
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxColorpickerModule, decorators: [{
734
- type: NgModule,
735
- args: [{
736
- imports: [
737
- CommonModule,
738
- OverlayModule,
739
- A11yModule,
740
- PortalModule,
741
- MatButtonModule,
742
- ColorChromeModule,
743
- ],
744
- exports: [
745
- MtxColorpicker,
746
- MtxColorpickerContent,
747
- MtxColorpickerInput,
748
- MtxColorpickerToggle,
749
- MtxColorpickerToggleIcon,
750
- ],
751
- declarations: [
752
- MtxColorpicker,
753
- MtxColorpickerContent,
754
- MtxColorpickerInput,
755
- MtxColorpickerToggle,
756
- MtxColorpickerToggleIcon,
757
- ],
758
- providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER],
759
- }]
760
- }] });
761
-
762
- /**
763
- * Generated bundle index. Do not edit.
764
- */
765
-
766
- export { MTX_COLORPICKER_SCROLL_STRATEGY, MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY, MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MTX_COLORPICKER_VALIDATORS, MTX_COLORPICKER_VALUE_ACCESSOR, MtxColorpicker, MtxColorpickerContent, MtxColorpickerInput, MtxColorpickerModule, MtxColorpickerToggle, MtxColorpickerToggleIcon, mtxColorpickerAnimations };
767
- //# sourceMappingURL=mtxColorpicker.mjs.map