@ng-matero/extensions 15.5.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) 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 +68 -68
  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/select/select.scss +0 -7
  142. package/slider/slider.d.ts +1 -1
  143. package/split/split-pane.d.ts +1 -1
  144. package/split/split.d.ts +1 -1
  145. package/tooltip/tooltip.d.ts +1 -1
  146. package/tooltip/tooltip.scss +1 -4
  147. package/esm2020/alert/alert-module.mjs +0 -18
  148. package/esm2020/alert/alert.mjs +0 -52
  149. package/esm2020/button/button-loading.mjs +0 -76
  150. package/esm2020/button/button-module.mjs +0 -20
  151. package/esm2020/checkbox-group/checkbox-group-module.mjs +0 -21
  152. package/esm2020/checkbox-group/checkbox-group.mjs +0 -233
  153. package/esm2020/colorpicker/colorpicker-input.mjs +0 -228
  154. package/esm2020/colorpicker/colorpicker-module.mjs +0 -63
  155. package/esm2020/colorpicker/colorpicker-toggle.mjs +0 -101
  156. package/esm2020/colorpicker/colorpicker.mjs +0 -365
  157. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +0 -45
  158. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +0 -45
  159. package/esm2020/column-resize/column-resize-module.mjs +0 -28
  160. package/esm2020/column-resize/column-resize-notifier.mjs +0 -47
  161. package/esm2020/column-resize/column-resize.mjs +0 -82
  162. package/esm2020/column-resize/column-size-store.mjs +0 -20
  163. package/esm2020/column-resize/event-dispatcher.mjs +0 -67
  164. package/esm2020/column-resize/overlay-handle.mjs +0 -146
  165. package/esm2020/column-resize/resizable.mjs +0 -199
  166. package/esm2020/column-resize/resize-strategy.mjs +0 -232
  167. package/esm2020/core/datetime/datetime.module.mjs +0 -42
  168. package/esm2020/core/datetime/native-datetime-adapter.mjs +0 -138
  169. package/esm2020/core/pipes/is-template-ref.pipe.mjs +0 -14
  170. package/esm2020/core/pipes/pipes.module.mjs +0 -19
  171. package/esm2020/core/pipes/to-observable.pipe.mjs +0 -15
  172. package/esm2020/datetimepicker/calendar-body.mjs +0 -78
  173. package/esm2020/datetimepicker/calendar.mjs +0 -671
  174. package/esm2020/datetimepicker/clock.mjs +0 -349
  175. package/esm2020/datetimepicker/datetimepicker-input.mjs +0 -349
  176. package/esm2020/datetimepicker/datetimepicker-intl.mjs +0 -63
  177. package/esm2020/datetimepicker/datetimepicker-module.mjs +0 -82
  178. package/esm2020/datetimepicker/datetimepicker-toggle.mjs +0 -104
  179. package/esm2020/datetimepicker/datetimepicker.mjs +0 -527
  180. package/esm2020/datetimepicker/month-view.mjs +0 -148
  181. package/esm2020/datetimepicker/multi-year-view.mjs +0 -214
  182. package/esm2020/datetimepicker/time.mjs +0 -456
  183. package/esm2020/datetimepicker/year-view.mjs +0 -138
  184. package/esm2020/dialog/dialog-container.mjs +0 -35
  185. package/esm2020/dialog/dialog-module.mjs +0 -24
  186. package/esm2020/dialog/dialog.mjs +0 -74
  187. package/esm2020/drawer/drawer-container.mjs +0 -252
  188. package/esm2020/drawer/drawer-module.mjs +0 -22
  189. package/esm2020/drawer/drawer.mjs +0 -166
  190. package/esm2020/grid/cell.mjs +0 -116
  191. package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -37
  192. package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +0 -37
  193. package/esm2020/grid/column-resize/column-resize-module.mjs +0 -42
  194. package/esm2020/grid/column-resize/overlay-handle.mjs +0 -60
  195. package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +0 -62
  196. package/esm2020/grid/column-resize/resize-strategy.mjs +0 -42
  197. package/esm2020/grid/expansion-toggle.mjs +0 -64
  198. package/esm2020/grid/grid-module.mjs +0 -136
  199. package/esm2020/grid/grid-pipes.mjs +0 -108
  200. package/esm2020/grid/grid-utils.mjs +0 -63
  201. package/esm2020/grid/grid.mjs +0 -628
  202. package/esm2020/loader/loader-module.mjs +0 -20
  203. package/esm2020/loader/loader.mjs +0 -69
  204. package/esm2020/popover/popover-content.mjs +0 -90
  205. package/esm2020/popover/popover-module.mjs +0 -24
  206. package/esm2020/popover/popover-target.mjs +0 -17
  207. package/esm2020/popover/popover-trigger.mjs +0 -471
  208. package/esm2020/popover/popover.mjs +0 -383
  209. package/esm2020/progress/progress-module.mjs +0 -18
  210. package/esm2020/progress/progress.mjs +0 -55
  211. package/esm2020/select/option.mjs +0 -57
  212. package/esm2020/select/select-module.mjs +0 -74
  213. package/esm2020/select/select.mjs +0 -560
  214. package/esm2020/select/templates.mjs +0 -124
  215. package/esm2020/slider/slider-module.mjs +0 -19
  216. package/esm2020/slider/slider.mjs +0 -1115
  217. package/esm2020/split/split-module.mjs +0 -19
  218. package/esm2020/split/split-pane.mjs +0 -149
  219. package/esm2020/split/split.mjs +0 -634
  220. package/esm2020/tooltip/tooltip-module.mjs +0 -24
  221. package/esm2020/tooltip/tooltip.mjs +0 -926
  222. package/fesm2015/mtxAlert.mjs +0 -74
  223. package/fesm2015/mtxAlert.mjs.map +0 -1
  224. package/fesm2015/mtxButton.mjs +0 -99
  225. package/fesm2015/mtxCheckboxGroup.mjs +0 -256
  226. package/fesm2015/mtxCheckboxGroup.mjs.map +0 -1
  227. package/fesm2015/mtxColorpicker.mjs +0 -767
  228. package/fesm2015/mtxColorpicker.mjs.map +0 -1
  229. package/fesm2015/mtxColumnResize.mjs +0 -959
  230. package/fesm2015/mtxCore.mjs +0 -374
  231. package/fesm2015/mtxCore.mjs.map +0 -1
  232. package/fesm2015/mtxDatetimepicker.mjs +0 -3164
  233. package/fesm2015/mtxDatetimepicker.mjs.map +0 -1
  234. package/fesm2015/mtxDialog.mjs +0 -130
  235. package/fesm2015/mtxDrawer.mjs +0 -578
  236. package/fesm2015/mtxDrawer.mjs.map +0 -1
  237. package/fesm2015/mtxGrid.mjs +0 -1514
  238. package/fesm2015/mtxGrid.mjs.map +0 -1
  239. package/fesm2015/mtxLoader.mjs +0 -93
  240. package/fesm2015/mtxLoader.mjs.map +0 -1
  241. package/fesm2015/mtxPopover.mjs +0 -1027
  242. package/fesm2015/mtxPopover.mjs.map +0 -1
  243. package/fesm2015/mtxProgress.mjs +0 -77
  244. package/fesm2015/mtxSelect.mjs +0 -814
  245. package/fesm2015/mtxSlider.mjs +0 -1139
  246. package/fesm2015/mtxSlider.mjs.map +0 -1
  247. package/fesm2015/mtxSplit.mjs +0 -1025
  248. package/fesm2015/mtxSplit.mjs.map +0 -1
  249. package/fesm2015/mtxTooltip.mjs +0 -982
  250. package/fesm2020/mtxButton.mjs.map +0 -1
  251. package/fesm2020/mtxColumnResize.mjs.map +0 -1
  252. package/fesm2020/mtxCore.mjs.map +0 -1
  253. package/fesm2020/mtxDatetimepicker.mjs.map +0 -1
  254. package/fesm2020/mtxDialog.mjs.map +0 -1
  255. package/fesm2020/mtxProgress.mjs.map +0 -1
  256. package/fesm2020/mtxSelect.mjs.map +0 -1
  257. package/fesm2020/mtxTooltip.mjs.map +0 -1
  258. package/fesm2020/ng-matero-extensions.mjs +0 -9
  259. package/fesm2020/ng-matero-extensions.mjs.map +0 -1
  260. /package/{esm2020 → esm2022}/alert/mtxAlert.mjs +0 -0
  261. /package/{esm2020 → esm2022}/alert/public-api.mjs +0 -0
  262. /package/{esm2020 → esm2022}/button/mtxButton.mjs +0 -0
  263. /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
  264. /package/{esm2020 → esm2022}/checkbox-group/interfaces.mjs +0 -0
  265. /package/{esm2020 → esm2022}/checkbox-group/mtxCheckboxGroup.mjs +0 -0
  266. /package/{esm2020 → esm2022}/checkbox-group/public-api.mjs +0 -0
  267. /package/{esm2020 → esm2022}/colorpicker/colorpicker-animations.mjs +0 -0
  268. /package/{esm2020 → esm2022}/colorpicker/mtxColorpicker.mjs +0 -0
  269. /package/{esm2020 → esm2022}/colorpicker/public-api.mjs +0 -0
  270. /package/{esm2020 → esm2022}/column-resize/column-resize-directives/constants.mjs +0 -0
  271. /package/{esm2020 → esm2022}/column-resize/mtxColumnResize.mjs +0 -0
  272. /package/{esm2020 → esm2022}/column-resize/polyfill.mjs +0 -0
  273. /package/{esm2020 → esm2022}/column-resize/public-api.mjs +0 -0
  274. /package/{esm2020 → esm2022}/column-resize/resize-ref.mjs +0 -0
  275. /package/{esm2020 → esm2022}/column-resize/selectors.mjs +0 -0
  276. /package/{esm2020 → esm2022}/core/datetime/datetime-formats.mjs +0 -0
  277. /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
  278. /package/{esm2020 → esm2022}/core/datetime/native-datetime-formats.mjs +0 -0
  279. /package/{esm2020 → esm2022}/core/mtxCore.mjs +0 -0
  280. /package/{esm2020 → esm2022}/core/pipes/index.mjs +0 -0
  281. /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
  282. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-animations.mjs +0 -0
  283. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-errors.mjs +0 -0
  284. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-filtertype.mjs +0 -0
  285. /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-types.mjs +0 -0
  286. /package/{esm2020 → esm2022}/datetimepicker/mtxDatetimepicker.mjs +0 -0
  287. /package/{esm2020 → esm2022}/datetimepicker/public-api.mjs +0 -0
  288. /package/{esm2020 → esm2022}/dialog/dialog-config.mjs +0 -0
  289. /package/{esm2020 → esm2022}/dialog/mtxDialog.mjs +0 -0
  290. /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
  291. /package/{esm2020 → esm2022}/drawer/drawer-animation.mjs +0 -0
  292. /package/{esm2020 → esm2022}/drawer/drawer-config.mjs +0 -0
  293. /package/{esm2020 → esm2022}/drawer/drawer-ref.mjs +0 -0
  294. /package/{esm2020 → esm2022}/drawer/mtxDrawer.mjs +0 -0
  295. /package/{esm2020 → esm2022}/drawer/public-api.mjs +0 -0
  296. /package/{esm2020 → esm2022}/grid/column-resize/column-resize-directives/common.mjs +0 -0
  297. /package/{esm2020 → esm2022}/grid/column-resize/resizable-directives/common.mjs +0 -0
  298. /package/{esm2020 → esm2022}/grid/interfaces.mjs +0 -0
  299. /package/{esm2020 → esm2022}/grid/mtxGrid.mjs +0 -0
  300. /package/{esm2020 → esm2022}/grid/public-api.mjs +0 -0
  301. /package/{esm2020 → esm2022}/loader/mtxLoader.mjs +0 -0
  302. /package/{esm2020 → esm2022}/loader/public-api.mjs +0 -0
  303. /package/{esm2020 → esm2022}/ng-matero-extensions.mjs +0 -0
  304. /package/{esm2020 → esm2022}/popover/mtxPopover.mjs +0 -0
  305. /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
  306. /package/{esm2020 → esm2022}/popover/popover-errors.mjs +0 -0
  307. /package/{esm2020 → esm2022}/popover/popover-interfaces.mjs +0 -0
  308. /package/{esm2020 → esm2022}/popover/popover-types.mjs +0 -0
  309. /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
  310. /package/{esm2020 → esm2022}/progress/mtxProgress.mjs +0 -0
  311. /package/{esm2020 → esm2022}/progress/public-api.mjs +0 -0
  312. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  313. /package/{esm2020 → esm2022}/select/mtxSelect.mjs +0 -0
  314. /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
  315. /package/{esm2020 → esm2022}/slider/mtxSlider.mjs +0 -0
  316. /package/{esm2020 → esm2022}/slider/public-api.mjs +0 -0
  317. /package/{esm2020 → esm2022}/split/interfaces.mjs +0 -0
  318. /package/{esm2020 → esm2022}/split/mtxSplit.mjs +0 -0
  319. /package/{esm2020 → esm2022}/split/public-api.mjs +0 -0
  320. /package/{esm2020 → esm2022}/split/utils.mjs +0 -0
  321. /package/{esm2020 → esm2022}/tooltip/mtxTooltip.mjs +0 -0
  322. /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
  323. /package/{esm2020 → esm2022}/tooltip/tooltip-animations.mjs +0 -0
  324. /package/{fesm2015 → fesm2022}/ng-matero-extensions.mjs +0 -0
  325. /package/{fesm2015 → fesm2022}/ng-matero-extensions.mjs.map +0 -0
@@ -1,578 +0,0 @@
1
- import * as i1$1 from '@angular/cdk/overlay';
2
- import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
3
- import * as i4 from '@angular/cdk/portal';
4
- import { BasePortalOutlet, CdkPortalOutlet, TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
5
- import * as i0 from '@angular/core';
6
- import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, ViewChild, InjectionToken, TemplateRef, Injector, InjectFlags, Injectable, SkipSelf, NgModule } from '@angular/core';
7
- import { MatCommonModule } from '@angular/material/core';
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { Subject, merge, of } from 'rxjs';
10
- import { coerceCssPixelValue, coerceArray } from '@angular/cdk/coercion';
11
- import * as i2 from '@angular/cdk/layout';
12
- import { Breakpoints } from '@angular/cdk/layout';
13
- import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
14
- import { DOCUMENT } from '@angular/common';
15
- import { trigger, state, style, transition, animate } from '@angular/animations';
16
- import * as i1 from '@angular/cdk/a11y';
17
- import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
18
- import { filter, take } from 'rxjs/operators';
19
-
20
- /**
21
- * Configuration used when opening a drawer.
22
- */
23
- class MtxDrawerConfig {
24
- constructor() {
25
- /** Data being injected into the child component. */
26
- this.data = null;
27
- /** Whether the drawer has a backdrop. */
28
- this.hasBackdrop = true;
29
- /** Whether the user can use escape or clicking outside to close the drawer. */
30
- this.disableClose = false;
31
- /** Aria label to assign to the drawer element. */
32
- this.ariaLabel = null;
33
- /**
34
- * Whether the drawer should close when the user goes backwards/forwards in history.
35
- * Note that this usually doesn't include clicking on links (unless the user is using
36
- * the `HashLocationStrategy`).
37
- */
38
- this.closeOnNavigation = true;
39
- /**
40
- * Where the drawer should focus on open.
41
- * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
42
- * AutoFocusTarget instead.
43
- */
44
- this.autoFocus = 'first-tabbable';
45
- /**
46
- * Whether the drawer should restore focus to the
47
- * previously-focused element, after it's closed.
48
- */
49
- this.restoreFocus = true;
50
- /** Position of the drawer */
51
- this.position = 'right';
52
- }
53
- }
54
-
55
- /** Animations used by the drawer. */
56
- const mtxDrawerAnimations = {
57
- /** Animation that shows and hides a drawer. */
58
- drawerState: trigger('state', [
59
- state('void, hidden', style({
60
- 'box-shadow': 'none',
61
- 'visibility': 'hidden',
62
- })),
63
- state('visible', style({
64
- transform: 'none',
65
- visibility: 'visible',
66
- })),
67
- transition('visible => void, visible => hidden', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),
68
- transition('void => visible', animate('150ms cubic-bezier(0, 0, 0.2, 1)')),
69
- ]),
70
- };
71
-
72
- /**
73
- * Internal component that wraps user-provided drawer content.
74
- * @docs-private
75
- */
76
- class MtxDrawerContainer extends BasePortalOutlet {
77
- get _drawerPosition() {
78
- return `mtx-drawer-${this.drawerConfig.position}`;
79
- }
80
- get _drawerWidth() {
81
- return this.drawerConfig.position === 'left' || this.drawerConfig.position === 'right'
82
- ? coerceCssPixelValue(this.drawerConfig.width)
83
- : '100vw';
84
- }
85
- get _drawerHeight() {
86
- return this.drawerConfig.position === 'top' || this.drawerConfig.position === 'bottom'
87
- ? coerceCssPixelValue(this.drawerConfig.height)
88
- : '100vh';
89
- }
90
- _getDrawerSize() {
91
- return {
92
- width: this._drawerWidth,
93
- height: this._drawerHeight,
94
- minWidth: coerceCssPixelValue(this.drawerConfig.minWidth),
95
- minHeight: coerceCssPixelValue(this.drawerConfig.minHeight),
96
- maxWidth: coerceCssPixelValue(this.drawerConfig.maxWidth),
97
- maxHeight: coerceCssPixelValue(this.drawerConfig.maxHeight),
98
- };
99
- }
100
- constructor(_elementRef, _changeDetectorRef, _focusTrapFactory, _interactivityChecker, _ngZone, breakpointObserver, document,
101
- /** The drawer configuration. */
102
- drawerConfig) {
103
- super();
104
- this._elementRef = _elementRef;
105
- this._changeDetectorRef = _changeDetectorRef;
106
- this._focusTrapFactory = _focusTrapFactory;
107
- this._interactivityChecker = _interactivityChecker;
108
- this._ngZone = _ngZone;
109
- this.drawerConfig = drawerConfig;
110
- /** The state of the drawer animations. */
111
- this._animationState = 'void';
112
- /** Emits whenever the state of the animation changes. */
113
- this._animationStateChanged = new EventEmitter();
114
- /** Element that was focused before the drawer was opened. */
115
- this._elementFocusedBeforeOpened = null;
116
- /**
117
- * Attaches a DOM portal to the drawer container.
118
- * @deprecated To be turned into a method.
119
- * @breaking-change 10.0.0
120
- */
121
- this.attachDomPortal = (portal) => {
122
- this._validatePortalAttached();
123
- this._setPanelClass();
124
- this._savePreviouslyFocusedElement();
125
- return this._portalOutlet.attachDomPortal(portal);
126
- };
127
- this._document = document;
128
- this._breakpointSubscription = breakpointObserver
129
- .observe([Breakpoints.Medium, Breakpoints.Large, Breakpoints.XLarge])
130
- .subscribe(() => { });
131
- }
132
- /** Attach a component portal as content to this drawer container. */
133
- attachComponentPortal(portal) {
134
- this._validatePortalAttached();
135
- this._setPanelClass();
136
- this._savePreviouslyFocusedElement();
137
- return this._portalOutlet.attachComponentPortal(portal);
138
- }
139
- /** Attach a template portal as content to this drawer container. */
140
- attachTemplatePortal(portal) {
141
- this._validatePortalAttached();
142
- this._setPanelClass();
143
- this._savePreviouslyFocusedElement();
144
- return this._portalOutlet.attachTemplatePortal(portal);
145
- }
146
- /** Begin animation of drawer entrance into view. */
147
- enter() {
148
- if (!this._destroyed) {
149
- this._animationState = 'visible';
150
- this._changeDetectorRef.detectChanges();
151
- }
152
- }
153
- /** Begin animation of the drawer exiting from view. */
154
- exit() {
155
- if (!this._destroyed) {
156
- this._animationState = 'hidden';
157
- this._changeDetectorRef.markForCheck();
158
- }
159
- }
160
- ngOnDestroy() {
161
- this._breakpointSubscription.unsubscribe();
162
- this._destroyed = true;
163
- }
164
- _onAnimationDone(event) {
165
- if (event.toState === 'hidden') {
166
- this._restoreFocus();
167
- }
168
- else if (event.toState === 'visible') {
169
- this._trapFocus();
170
- }
171
- this._animationStateChanged.emit(event);
172
- }
173
- _onAnimationStart(event) {
174
- this._animationStateChanged.emit(event);
175
- }
176
- _toggleClass(cssClass, add) {
177
- this._elementRef.nativeElement.classList.toggle(cssClass, add);
178
- }
179
- _validatePortalAttached() {
180
- if (this._portalOutlet.hasAttached()) {
181
- throw Error('Attempting to attach drawer content after content is already attached');
182
- }
183
- }
184
- _setPanelClass() {
185
- const element = this._elementRef.nativeElement;
186
- element.classList.add(...coerceArray(this.drawerConfig.panelClass || []));
187
- }
188
- /**
189
- * Focuses the provided element. If the element is not focusable, it will add a tabIndex
190
- * attribute to forcefully focus it. The attribute is removed after focus is moved.
191
- * @param element The element to focus.
192
- */
193
- _forceFocus(element, options) {
194
- if (!this._interactivityChecker.isFocusable(element)) {
195
- element.tabIndex = -1;
196
- // The tabindex attribute should be removed to avoid navigating to that element again
197
- this._ngZone.runOutsideAngular(() => {
198
- element.addEventListener('blur', () => element.removeAttribute('tabindex'));
199
- element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));
200
- });
201
- }
202
- element.focus(options);
203
- }
204
- /**
205
- * Focuses the first element that matches the given selector within the focus trap.
206
- * @param selector The CSS selector for the element to set focus to.
207
- */
208
- _focusByCssSelector(selector, options) {
209
- const elementToFocus = this._elementRef.nativeElement.querySelector(selector);
210
- if (elementToFocus) {
211
- this._forceFocus(elementToFocus, options);
212
- }
213
- }
214
- /**
215
- * Moves the focus inside the focus trap. When autoFocus is not set to 'bottom-sheet',
216
- * if focus cannot be moved then focus will go to the drawer container.
217
- */
218
- _trapFocus() {
219
- const element = this._elementRef.nativeElement;
220
- if (!this._focusTrap) {
221
- this._focusTrap = this._focusTrapFactory.create(element);
222
- }
223
- // If were to attempt to focus immediately, then the content of the drawer would not
224
- // yet be ready in instances where change detection has to run first. To deal with this,
225
- // we simply wait for the microtask queue to be empty when setting focus when autoFocus
226
- // isn't set to drawer. If the element inside the drawer can't be focused,
227
- // then the container is focused so the user can't tab into other elements behind it.
228
- switch (this.drawerConfig.autoFocus) {
229
- case false:
230
- case 'dialog':
231
- // eslint-disable-next-line no-case-declarations
232
- const activeElement = _getFocusedElementPierceShadowDom();
233
- // Ensure that focus is on the drawer container. It's possible that a different
234
- // component tried to move focus while the open animation was running. See:
235
- // https://github.com/angular/components/issues/16215. Note that we only want to do this
236
- // if the focus isn't inside the drawer already, because it's possible that the
237
- // consumer specified `autoFocus` in order to move focus themselves.
238
- if (activeElement !== element && !element.contains(activeElement)) {
239
- element.focus();
240
- }
241
- break;
242
- case true:
243
- case 'first-tabbable':
244
- this._focusTrap.focusInitialElementWhenReady();
245
- break;
246
- case 'first-heading':
247
- this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');
248
- break;
249
- default:
250
- this._focusByCssSelector(this.drawerConfig.autoFocus);
251
- break;
252
- }
253
- }
254
- /** Restores focus to the element that was focused before the drawer was opened. */
255
- _restoreFocus() {
256
- const toFocus = this._elementFocusedBeforeOpened;
257
- // We need the extra check, because IE can set the `activeElement` to null in some cases.
258
- if (this.drawerConfig.restoreFocus && toFocus && typeof toFocus.focus === 'function') {
259
- const activeElement = _getFocusedElementPierceShadowDom();
260
- const element = this._elementRef.nativeElement;
261
- // Make sure that focus is still inside the drawer or is on the body (usually because a
262
- // non-focusable element like the backdrop was clicked) before moving it. It's possible that
263
- // the consumer moved it themselves before the animation was done, in which case we shouldn't
264
- // do anything.
265
- if (!activeElement ||
266
- activeElement === this._document.body ||
267
- activeElement === element ||
268
- element.contains(activeElement)) {
269
- toFocus.focus();
270
- }
271
- }
272
- if (this._focusTrap) {
273
- this._focusTrap.destroy();
274
- }
275
- }
276
- /** Saves a reference to the element that was focused before the drawer was opened. */
277
- _savePreviouslyFocusedElement() {
278
- this._elementFocusedBeforeOpened = _getFocusedElementPierceShadowDom();
279
- // The `focus` method isn't available during server-side rendering.
280
- if (this._elementRef.nativeElement.focus) {
281
- this._ngZone.runOutsideAngular(() => {
282
- Promise.resolve().then(() => this._elementRef.nativeElement.focus());
283
- });
284
- }
285
- }
286
- }
287
- /** @nocollapse */ MtxDrawerContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawerContainer, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusTrapFactory }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i2.BreakpointObserver }, { token: DOCUMENT, optional: true }, { token: MtxDrawerConfig }], target: i0.ɵɵFactoryTarget.Component });
288
- /** @nocollapse */ MtxDrawerContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxDrawerContainer, selector: "mtx-drawer-container", host: { attributes: { "tabindex": "-1", "role": "dialog", "aria-modal": "true" }, listeners: { "@state.start": "_onAnimationStart($event)", "@state.done": "_onAnimationDone($event)" }, properties: { "class": "_drawerPosition", "attr.aria-label": "drawerConfig?.ariaLabel", "@state": "_animationState" }, classAttribute: "mtx-drawer-container" }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"mtx-drawer-content-wrapper\" [style]=\"_getDrawerSize()\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n", styles: [".mtx-drawer-container{display:block;outline:0}.cdk-high-contrast-active .mtx-drawer-container{outline:1px solid}.mtx-drawer-content-wrapper{box-sizing:border-box;padding:8px 16px;overflow:auto}.mtx-drawer-right{transform:translate(100%)}.mtx-drawer-left{transform:translate(-100%)}.mtx-drawer-bottom{transform:translateY(100%)}.mtx-drawer-top{transform:translateY(-100%)}\n"], dependencies: [{ kind: "directive", type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [mtxDrawerAnimations.drawerState], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawerContainer, decorators: [{
290
- type: Component,
291
- args: [{ selector: 'mtx-drawer-container', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, animations: [mtxDrawerAnimations.drawerState], host: {
292
- 'class': 'mtx-drawer-container',
293
- '[class]': '_drawerPosition',
294
- 'tabindex': '-1',
295
- 'role': 'dialog',
296
- 'aria-modal': 'true',
297
- '[attr.aria-label]': 'drawerConfig?.ariaLabel',
298
- '[@state]': '_animationState',
299
- '(@state.start)': '_onAnimationStart($event)',
300
- '(@state.done)': '_onAnimationDone($event)',
301
- }, template: "<div class=\"mtx-drawer-content-wrapper\" [style]=\"_getDrawerSize()\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n", styles: [".mtx-drawer-container{display:block;outline:0}.cdk-high-contrast-active .mtx-drawer-container{outline:1px solid}.mtx-drawer-content-wrapper{box-sizing:border-box;padding:8px 16px;overflow:auto}.mtx-drawer-right{transform:translate(100%)}.mtx-drawer-left{transform:translate(-100%)}.mtx-drawer-bottom{transform:translateY(100%)}.mtx-drawer-top{transform:translateY(-100%)}\n"] }]
302
- }], ctorParameters: function () {
303
- return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusTrapFactory }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i2.BreakpointObserver }, { type: undefined, decorators: [{
304
- type: Optional
305
- }, {
306
- type: Inject,
307
- args: [DOCUMENT]
308
- }] }, { type: MtxDrawerConfig }];
309
- }, propDecorators: { _portalOutlet: [{
310
- type: ViewChild,
311
- args: [CdkPortalOutlet, { static: true }]
312
- }] } });
313
-
314
- /**
315
- * Reference to a drawer dispatched from the drawer service.
316
- */
317
- class MtxDrawerRef {
318
- constructor(containerInstance, _overlayRef) {
319
- this._overlayRef = _overlayRef;
320
- /** Subject for notifying the user that the drawer has been dismissed. */
321
- this._afterDismissed = new Subject();
322
- /** Subject for notifying the user that the drawer has opened and appeared. */
323
- this._afterOpened = new Subject();
324
- this.containerInstance = containerInstance;
325
- this.disableClose = containerInstance.drawerConfig.disableClose;
326
- // Emit when opening animation completes
327
- containerInstance._animationStateChanged
328
- .pipe(filter(event => event.phaseName === 'done' && event.toState === 'visible'), take(1))
329
- .subscribe(() => {
330
- this._afterOpened.next();
331
- this._afterOpened.complete();
332
- });
333
- // Dispose overlay when closing animation is complete
334
- containerInstance._animationStateChanged
335
- .pipe(filter(event => event.phaseName === 'done' && event.toState === 'hidden'), take(1))
336
- .subscribe(() => {
337
- clearTimeout(this._closeFallbackTimeout);
338
- _overlayRef.dispose();
339
- });
340
- _overlayRef
341
- .detachments()
342
- .pipe(take(1))
343
- .subscribe(() => {
344
- this._afterDismissed.next(this._result);
345
- this._afterDismissed.complete();
346
- });
347
- merge(_overlayRef.backdropClick(), _overlayRef.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE))).subscribe(event => {
348
- if (!this.disableClose &&
349
- (event.type !== 'keydown' || !hasModifierKey(event))) {
350
- event.preventDefault();
351
- this.dismiss();
352
- }
353
- });
354
- }
355
- /**
356
- * Dismisses the drawer.
357
- * @param result Data to be passed back to the drawer opener.
358
- */
359
- dismiss(result) {
360
- if (!this._afterDismissed.closed) {
361
- // Transition the backdrop in parallel to the drawer.
362
- this.containerInstance._animationStateChanged
363
- .pipe(filter(event => event.phaseName === 'start'), take(1))
364
- .subscribe(event => {
365
- // The logic that disposes of the overlay depends on the exit animation completing, however
366
- // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
367
- // timeout which will clean everything up if the animation hasn't fired within the specified
368
- // amount of time plus 100ms. We don't need to run this outside the NgZone, because for the
369
- // vast majority of cases the timeout will have been cleared before it has fired.
370
- this._closeFallbackTimeout = setTimeout(() => {
371
- this._overlayRef.dispose();
372
- }, event.totalTime + 100);
373
- this._overlayRef.detachBackdrop();
374
- });
375
- this._result = result;
376
- this.containerInstance.exit();
377
- }
378
- }
379
- /** Gets an observable that is notified when the drawer is finished closing. */
380
- afterDismissed() {
381
- return this._afterDismissed;
382
- }
383
- /** Gets an observable that is notified when the drawer has opened and appeared. */
384
- afterOpened() {
385
- return this._afterOpened;
386
- }
387
- /**
388
- * Gets an observable that emits when the overlay's backdrop has been clicked.
389
- */
390
- backdropClick() {
391
- return this._overlayRef.backdropClick();
392
- }
393
- /**
394
- * Gets an observable that emits when keydown events are targeted on the overlay.
395
- */
396
- keydownEvents() {
397
- return this._overlayRef.keydownEvents();
398
- }
399
- }
400
-
401
- /** Injection token that can be used to access the data that was passed in to a drawer. */
402
- const MTX_DRAWER_DATA = new InjectionToken('MtxDrawerData');
403
- /** Injection token that can be used to specify default drawer options. */
404
- const MTX_DRAWER_DEFAULT_OPTIONS = new InjectionToken('mtx-drawer-default-options');
405
- /**
406
- * Service to trigger Material Design bottom sheets.
407
- */
408
- class MtxDrawer {
409
- /** Reference to the currently opened drawer. */
410
- get _openedDrawerRef() {
411
- const parent = this._parentDrawer;
412
- return parent ? parent._openedDrawerRef : this._drawerRefAtThisLevel;
413
- }
414
- set _openedDrawerRef(value) {
415
- if (this._parentDrawer) {
416
- this._parentDrawer._openedDrawerRef = value;
417
- }
418
- else {
419
- this._drawerRefAtThisLevel = value;
420
- }
421
- }
422
- constructor(_overlay, _injector, _parentDrawer, _defaultOptions) {
423
- this._overlay = _overlay;
424
- this._injector = _injector;
425
- this._parentDrawer = _parentDrawer;
426
- this._defaultOptions = _defaultOptions;
427
- this._drawerRefAtThisLevel = null;
428
- }
429
- open(componentOrTemplateRef, config) {
430
- const _config = _applyConfigDefaults(this._defaultOptions || new MtxDrawerConfig(), config);
431
- const overlayRef = this._createOverlay(_config);
432
- const container = this._attachContainer(overlayRef, _config);
433
- const ref = new MtxDrawerRef(container, overlayRef);
434
- if (componentOrTemplateRef instanceof TemplateRef) {
435
- container.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
436
- $implicit: _config.data,
437
- drawerRef: ref,
438
- }));
439
- }
440
- else {
441
- const portal = new ComponentPortal(componentOrTemplateRef, undefined, this._createInjector(_config, ref));
442
- const contentRef = container.attachComponentPortal(portal);
443
- ref.instance = contentRef.instance;
444
- }
445
- // When the drawer is dismissed, clear the reference to it.
446
- ref.afterDismissed().subscribe(() => {
447
- // Clear the drawer ref if it hasn't already been replaced by a newer one.
448
- if (this._openedDrawerRef == ref) {
449
- this._openedDrawerRef = null;
450
- }
451
- });
452
- if (this._openedDrawerRef) {
453
- // If a drawer is already in view, dismiss it and enter the
454
- // new drawer after exit animation is complete.
455
- this._openedDrawerRef.afterDismissed().subscribe(() => ref.containerInstance.enter());
456
- this._openedDrawerRef.dismiss();
457
- }
458
- else {
459
- // If no drawer is in view, enter the new drawer.
460
- ref.containerInstance.enter();
461
- }
462
- this._openedDrawerRef = ref;
463
- return ref;
464
- }
465
- /**
466
- * Dismisses the currently-visible drawer.
467
- * @param result Data to pass to the drawer instance.
468
- */
469
- dismiss(result) {
470
- if (this._openedDrawerRef) {
471
- this._openedDrawerRef.dismiss(result);
472
- }
473
- }
474
- ngOnDestroy() {
475
- if (this._drawerRefAtThisLevel) {
476
- this._drawerRefAtThisLevel.dismiss();
477
- }
478
- }
479
- /**
480
- * Attaches the drawer container component to the overlay.
481
- */
482
- _attachContainer(overlayRef, config) {
483
- const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
484
- const injector = Injector.create({
485
- parent: userInjector || this._injector,
486
- providers: [{ provide: MtxDrawerConfig, useValue: config }],
487
- });
488
- const containerPortal = new ComponentPortal(MtxDrawerContainer, config.viewContainerRef, injector);
489
- const containerRef = overlayRef.attach(containerPortal);
490
- return containerRef.instance;
491
- }
492
- /**
493
- * Creates a new overlay and places it in the correct location.
494
- * @param config The user-specified drawer config.
495
- */
496
- _createOverlay(config) {
497
- const overlayConfig = new OverlayConfig({
498
- direction: config.direction,
499
- hasBackdrop: config.hasBackdrop,
500
- disposeOnNavigation: config.closeOnNavigation,
501
- maxWidth: '100%',
502
- scrollStrategy: config.scrollStrategy || this._overlay.scrollStrategies.block(),
503
- positionStrategy: this._overlay.position().global()[config.position]('0'),
504
- });
505
- if (config.backdropClass) {
506
- overlayConfig.backdropClass = config.backdropClass;
507
- }
508
- return this._overlay.create(overlayConfig);
509
- }
510
- /**
511
- * Creates an injector to be used inside of a drawer component.
512
- * @param config Config that was used to create the drawer.
513
- * @param drawerRef Reference to the drawer.
514
- */
515
- _createInjector(config, drawerRef) {
516
- const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
517
- const providers = [
518
- { provide: MtxDrawerRef, useValue: drawerRef },
519
- { provide: MTX_DRAWER_DATA, useValue: config.data },
520
- ];
521
- if (config.direction &&
522
- (!userInjector ||
523
- !userInjector.get(Directionality, null, InjectFlags.Optional))) {
524
- providers.push({
525
- provide: Directionality,
526
- useValue: { value: config.direction, change: of() },
527
- });
528
- }
529
- return Injector.create({ parent: userInjector || this._injector, providers });
530
- }
531
- }
532
- /** @nocollapse */ MtxDrawer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawer, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: MtxDrawer, optional: true, skipSelf: true }, { token: MTX_DRAWER_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
533
- /** @nocollapse */ MtxDrawer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawer });
534
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawer, decorators: [{
535
- type: Injectable
536
- }], ctorParameters: function () {
537
- return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: MtxDrawer, decorators: [{
538
- type: Optional
539
- }, {
540
- type: SkipSelf
541
- }] }, { type: MtxDrawerConfig, decorators: [{
542
- type: Optional
543
- }, {
544
- type: Inject,
545
- args: [MTX_DRAWER_DEFAULT_OPTIONS]
546
- }] }];
547
- } });
548
- /**
549
- * Applies default options to the drawer config.
550
- * @param defaults Object containing the default values to which to fall back.
551
- * @param config The configuration to which the defaults will be applied.
552
- * @returns The new configuration object with defaults applied.
553
- */
554
- function _applyConfigDefaults(defaults, config) {
555
- return Object.assign(Object.assign({}, defaults), config);
556
- }
557
-
558
- class MtxDrawerModule {
559
- }
560
- /** @nocollapse */ MtxDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
561
- /** @nocollapse */ MtxDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawerModule, declarations: [MtxDrawerContainer], imports: [OverlayModule, PortalModule, MatCommonModule], exports: [MtxDrawerContainer, MatCommonModule] });
562
- /** @nocollapse */ MtxDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawerModule, providers: [MtxDrawer], imports: [OverlayModule, PortalModule, MatCommonModule, MatCommonModule] });
563
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxDrawerModule, decorators: [{
564
- type: NgModule,
565
- args: [{
566
- imports: [OverlayModule, PortalModule, MatCommonModule],
567
- exports: [MtxDrawerContainer, MatCommonModule],
568
- declarations: [MtxDrawerContainer],
569
- providers: [MtxDrawer],
570
- }]
571
- }] });
572
-
573
- /**
574
- * Generated bundle index. Do not edit.
575
- */
576
-
577
- export { MTX_DRAWER_DATA, MTX_DRAWER_DEFAULT_OPTIONS, MtxDrawer, MtxDrawerConfig, MtxDrawerContainer, MtxDrawerModule, MtxDrawerRef, mtxDrawerAnimations };
578
- //# sourceMappingURL=mtxDrawer.mjs.map