@ng-matero/extensions 12.5.2 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/README.md +2 -16
  2. package/_all-color.scss +1 -1
  3. package/_all-theme.scss +2 -0
  4. package/_index.scss +3 -1
  5. package/_theming.scss +3 -1
  6. package/alert/_alert-theme.scss +2 -2
  7. package/alert/alert.component.d.ts +3 -0
  8. package/alert/alert.module.d.ts +6 -0
  9. package/alert/mtxAlert.d.ts +1 -0
  10. package/alert/package.json +5 -6
  11. package/button/button-loading.directive.d.ts +3 -0
  12. package/button/button.module.d.ts +8 -0
  13. package/button/mtxButton.d.ts +1 -0
  14. package/button/package.json +5 -6
  15. package/checkbox-group/checkbox-group.component.d.ts +5 -4
  16. package/checkbox-group/checkbox-group.module.d.ts +9 -0
  17. package/checkbox-group/mtxCheckboxGroup.d.ts +1 -0
  18. package/checkbox-group/package.json +5 -6
  19. package/colorpicker/_colorpicker-theme.import.scss +2 -0
  20. package/colorpicker/_colorpicker-theme.scss +43 -0
  21. package/colorpicker/colorpicker-animations.d.ts +8 -0
  22. package/colorpicker/colorpicker-content.scss +4 -0
  23. package/colorpicker/colorpicker-input.d.ts +92 -0
  24. package/colorpicker/colorpicker-module.d.ts +15 -0
  25. package/colorpicker/colorpicker-toggle.d.ts +38 -0
  26. package/colorpicker/colorpicker-toggle.scss +23 -0
  27. package/colorpicker/colorpicker.d.ts +131 -0
  28. package/{extensions.d.ts → colorpicker/mtxColorpicker.d.ts} +1 -0
  29. package/colorpicker/package.json +10 -0
  30. package/colorpicker/public-api.d.ts +5 -0
  31. package/column-resize/column-resize-directives/column-resize-flex.d.ts +3 -0
  32. package/column-resize/column-resize-directives/column-resize.d.ts +3 -0
  33. package/column-resize/column-resize-module.d.ts +6 -7
  34. package/column-resize/column-resize-notifier.d.ts +5 -7
  35. package/column-resize/column-resize.d.ts +3 -0
  36. package/column-resize/column-size-store.d.ts +3 -7
  37. package/column-resize/event-dispatcher.d.ts +3 -0
  38. package/column-resize/mtxColumnResize.d.ts +1 -0
  39. package/column-resize/overlay-handle.d.ts +3 -0
  40. package/column-resize/package.json +5 -6
  41. package/column-resize/resizable.d.ts +3 -0
  42. package/column-resize/resize-strategy.d.ts +7 -0
  43. package/core/datetime/datetime.module.d.ts +8 -0
  44. package/core/datetime/native-datetime-adapter.d.ts +3 -0
  45. package/core/density/private/_compatibility.scss +74 -0
  46. package/core/mtxCore.d.ts +1 -0
  47. package/core/package.json +5 -6
  48. package/{pipes/public-api.d.ts → core/pipes/index.d.ts} +0 -0
  49. package/core/pipes/pipes.module.d.ts +8 -0
  50. package/{pipes → core/pipes}/to-observable.pipe.d.ts +3 -0
  51. package/core/public-api.d.ts +1 -0
  52. package/core/style/_elevation.scss +197 -0
  53. package/core/style/_private.scss +41 -0
  54. package/core/style/_variables.scss +44 -0
  55. package/core/style/_vendor-prefixes.scss +60 -0
  56. package/core/theming/_palette.scss +746 -0
  57. package/core/theming/_theming.scss +430 -0
  58. package/core/typography/_typography-utils.scss +101 -0
  59. package/core/typography/_typography.scss +273 -0
  60. package/datetimepicker/_datetimepicker-theme.scss +17 -5
  61. package/datetimepicker/calendar-body.d.ts +3 -0
  62. package/datetimepicker/calendar-body.scss +5 -4
  63. package/datetimepicker/calendar.d.ts +6 -11
  64. package/datetimepicker/clock.d.ts +13 -9
  65. package/datetimepicker/datetimepicker-animations.d.ts +7 -5
  66. package/datetimepicker/datetimepicker-input.d.ts +7 -2
  67. package/datetimepicker/datetimepicker-module.d.ts +20 -0
  68. package/datetimepicker/datetimepicker-toggle.d.ts +20 -2
  69. package/datetimepicker/datetimepicker-toggle.scss +23 -0
  70. package/datetimepicker/datetimepicker-types.d.ts +1 -0
  71. package/datetimepicker/datetimepicker.d.ts +73 -25
  72. package/datetimepicker/month-view.d.ts +7 -4
  73. package/datetimepicker/mtxDatetimepicker.d.ts +1 -2
  74. package/datetimepicker/multi-year-view.d.ts +7 -4
  75. package/datetimepicker/package.json +5 -6
  76. package/datetimepicker/public-api.d.ts +4 -1
  77. package/datetimepicker/year-view.d.ts +7 -4
  78. package/dialog/{dialog.config.d.ts → dialog-config.d.ts} +0 -0
  79. package/dialog/dialog.component.d.ts +4 -1
  80. package/dialog/dialog.d.ts +4 -1
  81. package/dialog/dialog.module.d.ts +10 -0
  82. package/dialog/mtxDialog.d.ts +1 -0
  83. package/dialog/package.json +5 -6
  84. package/dialog/public-api.d.ts +2 -2
  85. package/esm2020/alert/alert.component.mjs +52 -0
  86. package/esm2020/alert/alert.module.mjs +18 -0
  87. package/{esm2015/alert/mtxAlert.js → esm2020/alert/mtxAlert.mjs} +0 -0
  88. package/{esm2015/alert/public-api.js → esm2020/alert/public-api.mjs} +0 -0
  89. package/esm2020/button/button-loading.directive.mjs +79 -0
  90. package/esm2020/button/button.module.mjs +20 -0
  91. package/{esm2015/button/mtxButton.js → esm2020/button/mtxButton.mjs} +0 -0
  92. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  93. package/esm2020/checkbox-group/checkbox-group.component.mjs +234 -0
  94. package/{esm2015/checkbox-group/checkbox-group.interface.js → esm2020/checkbox-group/checkbox-group.interface.mjs} +0 -0
  95. package/esm2020/checkbox-group/checkbox-group.module.mjs +21 -0
  96. package/{esm2015/checkbox-group/mtxCheckboxGroup.js → esm2020/checkbox-group/mtxCheckboxGroup.mjs} +0 -0
  97. package/{esm2015/checkbox-group/public-api.js → esm2020/checkbox-group/public-api.mjs} +0 -0
  98. package/esm2020/colorpicker/colorpicker-animations.mjs +16 -0
  99. package/esm2020/colorpicker/colorpicker-input.mjs +228 -0
  100. package/esm2020/colorpicker/colorpicker-module.mjs +65 -0
  101. package/esm2020/colorpicker/colorpicker-toggle.mjs +90 -0
  102. package/esm2020/colorpicker/colorpicker.mjs +363 -0
  103. package/esm2020/colorpicker/mtxColorpicker.mjs +5 -0
  104. package/esm2020/colorpicker/public-api.mjs +6 -0
  105. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +45 -0
  106. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +45 -0
  107. package/{esm2015/column-resize/column-resize-directives/constants.js → esm2020/column-resize/column-resize-directives/constants.mjs} +0 -0
  108. package/esm2020/column-resize/column-resize-module.mjs +28 -0
  109. package/esm2020/column-resize/column-resize-notifier.mjs +47 -0
  110. package/esm2020/column-resize/column-resize.mjs +82 -0
  111. package/esm2020/column-resize/column-size-store.mjs +20 -0
  112. package/esm2020/column-resize/event-dispatcher.mjs +67 -0
  113. package/{esm2015/column-resize/mtxColumnResize.js → esm2020/column-resize/mtxColumnResize.mjs} +0 -0
  114. package/esm2020/column-resize/overlay-handle.mjs +146 -0
  115. package/{esm2015/column-resize/polyfill.js → esm2020/column-resize/polyfill.mjs} +0 -0
  116. package/{esm2015/column-resize/public-api.js → esm2020/column-resize/public-api.mjs} +0 -0
  117. package/esm2020/column-resize/resizable.mjs +199 -0
  118. package/{esm2015/column-resize/resize-ref.js → esm2020/column-resize/resize-ref.mjs} +0 -0
  119. package/esm2020/column-resize/resize-strategy.mjs +232 -0
  120. package/{esm2015/column-resize/selectors.js → esm2020/column-resize/selectors.mjs} +0 -0
  121. package/{esm2015/core/datetime/datetime-adapter.js → esm2020/core/datetime/datetime-adapter.mjs} +0 -0
  122. package/{esm2015/core/datetime/datetime-formats.js → esm2020/core/datetime/datetime-formats.mjs} +0 -0
  123. package/esm2020/core/datetime/datetime.module.mjs +42 -0
  124. package/{esm2015/core/datetime/index.js → esm2020/core/datetime/index.mjs} +0 -0
  125. package/esm2020/core/datetime/native-datetime-adapter.mjs +138 -0
  126. package/{esm2015/core/datetime/native-datetime-formats.js → esm2020/core/datetime/native-datetime-formats.mjs} +0 -0
  127. package/{esm2015/core/mtxCore.js → esm2020/core/mtxCore.mjs} +0 -0
  128. package/esm2020/core/pipes/index.mjs +3 -0
  129. package/esm2020/core/pipes/pipes.module.mjs +18 -0
  130. package/esm2020/core/pipes/to-observable.pipe.mjs +15 -0
  131. package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +2 -1
  132. package/esm2020/datetimepicker/calendar-body.mjs +78 -0
  133. package/esm2020/datetimepicker/calendar.mjs +618 -0
  134. package/esm2020/datetimepicker/clock.mjs +277 -0
  135. package/esm2020/datetimepicker/datetimepicker-animations.mjs +44 -0
  136. package/{esm2015/datetimepicker/datetimepicker-errors.js → esm2020/datetimepicker/datetimepicker-errors.mjs} +0 -0
  137. package/{esm2015/datetimepicker/datetimepicker-filtertype.js → esm2020/datetimepicker/datetimepicker-filtertype.mjs} +0 -0
  138. package/esm2020/datetimepicker/datetimepicker-input.mjs +344 -0
  139. package/esm2020/datetimepicker/datetimepicker-module.mjs +75 -0
  140. package/esm2020/datetimepicker/datetimepicker-toggle.mjs +94 -0
  141. package/esm2020/datetimepicker/datetimepicker-types.mjs +2 -0
  142. package/esm2020/datetimepicker/datetimepicker.mjs +492 -0
  143. package/esm2020/datetimepicker/month-view.mjs +148 -0
  144. package/esm2020/datetimepicker/mtxDatetimepicker.mjs +5 -0
  145. package/esm2020/datetimepicker/multi-year-view.mjs +214 -0
  146. package/esm2020/datetimepicker/public-api.mjs +14 -0
  147. package/esm2020/datetimepicker/year-view.mjs +138 -0
  148. package/{esm2015/dialog/dialog.config.js → esm2020/dialog/dialog-config.mjs} +1 -1
  149. package/esm2020/dialog/dialog.component.mjs +33 -0
  150. package/esm2020/dialog/dialog.mjs +74 -0
  151. package/esm2020/dialog/dialog.module.mjs +24 -0
  152. package/{esm2015/dialog/mtxDialog.js → esm2020/dialog/mtxDialog.mjs} +0 -0
  153. package/esm2020/dialog/public-api.mjs +5 -0
  154. package/esm2020/form-group/form-group.component.mjs +37 -0
  155. package/esm2020/form-group/form-group.module.mjs +18 -0
  156. package/{esm2015/form-group/mtxFormGroup.js → esm2020/form-group/mtxFormGroup.mjs} +0 -0
  157. package/{esm2015/form-group/public-api.js → esm2020/form-group/public-api.mjs} +0 -0
  158. package/esm2020/grid/cell.component.mjs +108 -0
  159. package/esm2020/grid/column-menu.component.mjs +95 -0
  160. package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +37 -0
  161. package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +37 -0
  162. package/{esm2015/grid/column-resize/column-resize-directives/common.js → esm2020/grid/column-resize/column-resize-directives/common.mjs} +0 -0
  163. package/esm2020/grid/column-resize/column-resize-module.mjs +42 -0
  164. package/esm2020/grid/column-resize/overlay-handle.mjs +60 -0
  165. package/{esm2015/grid/column-resize/resizable-directives/common.js → esm2020/grid/column-resize/resizable-directives/common.mjs} +0 -0
  166. package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +62 -0
  167. package/esm2020/grid/column-resize/resize-strategy.mjs +42 -0
  168. package/esm2020/grid/expansion-toggle.directive.mjs +64 -0
  169. package/esm2020/grid/grid.component.mjs +556 -0
  170. package/{esm2015/grid/grid.interface.js → esm2020/grid/grid.interface.mjs} +0 -0
  171. package/esm2020/grid/grid.module.mjs +117 -0
  172. package/esm2020/grid/grid.service.mjs +44 -0
  173. package/{esm2015/grid/mtxGrid.js → esm2020/grid/mtxGrid.mjs} +0 -0
  174. package/esm2020/grid/public-api.mjs +16 -0
  175. package/esm2020/loader/loader.component.mjs +63 -0
  176. package/esm2020/loader/loader.module.mjs +20 -0
  177. package/{esm2015/loader/mtxLoader.js → esm2020/loader/mtxLoader.mjs} +0 -0
  178. package/{esm2015/loader/public-api.js → esm2020/loader/public-api.mjs} +0 -0
  179. package/esm2020/ng-matero-extensions.mjs +5 -0
  180. package/{esm2015/popover/mtxPopover.js → esm2020/popover/mtxPopover.mjs} +0 -0
  181. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  182. package/{esm2015/popover/popover-errors.js → esm2020/popover/popover-errors.mjs} +0 -0
  183. package/{esm2015/popover/popover-interfaces.js → esm2020/popover/popover-interfaces.mjs} +0 -0
  184. package/esm2020/popover/popover-module.mjs +22 -0
  185. package/esm2020/popover/popover-target.mjs +17 -0
  186. package/esm2020/popover/popover-trigger.mjs +441 -0
  187. package/{esm2015/popover/popover-types.js → esm2020/popover/popover-types.mjs} +0 -0
  188. package/esm2020/popover/popover.mjs +334 -0
  189. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  190. package/{esm2015/progress/mtxProgress.js → esm2020/progress/mtxProgress.mjs} +0 -0
  191. package/esm2020/progress/progress.component.mjs +55 -0
  192. package/esm2020/progress/progress.module.mjs +18 -0
  193. package/{esm2015/progress/public-api.js → esm2020/progress/public-api.mjs} +0 -0
  194. package/esm2020/public-api.mjs +5 -0
  195. package/{esm2015/select/mtxSelect.js → esm2020/select/mtxSelect.mjs} +0 -0
  196. package/{esm2015/select/option.component.js → esm2020/select/option.component.mjs} +18 -26
  197. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  198. package/esm2020/select/select.component.mjs +458 -0
  199. package/esm2020/select/select.module.mjs +74 -0
  200. package/esm2020/select/templates.directive.mjs +124 -0
  201. package/{esm2015/slider/mtxSlider.js → esm2020/slider/mtxSlider.mjs} +0 -0
  202. package/{esm2015/slider/public-api.js → esm2020/slider/public-api.mjs} +0 -0
  203. package/esm2020/slider/slider-module.mjs +19 -0
  204. package/esm2020/slider/slider.mjs +1115 -0
  205. package/{esm2015/split/interface.js → esm2020/split/interface.mjs} +1 -1
  206. package/{esm2015/split/mtxSplit.js → esm2020/split/mtxSplit.mjs} +0 -0
  207. package/{esm2015/split/public-api.js → esm2020/split/public-api.mjs} +0 -0
  208. package/esm2020/split/split-pane.directive.mjs +149 -0
  209. package/esm2020/split/split.component.mjs +619 -0
  210. package/esm2020/split/split.module.mjs +19 -0
  211. package/esm2020/split/utils.mjs +222 -0
  212. package/{esm2015/text3d/mtxText3d.js → esm2020/text3d/mtxText3d.mjs} +0 -0
  213. package/{esm2015/text3d/public-api.js → esm2020/text3d/public-api.mjs} +0 -0
  214. package/esm2020/text3d/text3d.component.mjs +45 -0
  215. package/esm2020/text3d/text3d.module.mjs +18 -0
  216. package/{esm2015/tooltip/mtxTooltip.js → esm2020/tooltip/mtxTooltip.mjs} +0 -0
  217. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  218. package/{esm2015/tooltip/tooltip-animations.js → esm2020/tooltip/tooltip-animations.mjs} +0 -0
  219. package/esm2020/tooltip/tooltip-module.mjs +23 -0
  220. package/esm2020/tooltip/tooltip.mjs +674 -0
  221. package/fesm2015/mtxAlert.mjs +74 -0
  222. package/fesm2015/mtxAlert.mjs.map +1 -0
  223. package/fesm2015/mtxButton.mjs +102 -0
  224. package/fesm2015/mtxButton.mjs.map +1 -0
  225. package/fesm2015/mtxCheckboxGroup.mjs +257 -0
  226. package/fesm2015/mtxCheckboxGroup.mjs.map +1 -0
  227. package/fesm2015/mtxColorpicker.mjs +754 -0
  228. package/fesm2015/mtxColorpicker.mjs.map +1 -0
  229. package/fesm2015/{mtxColumnResize.js → mtxColumnResize.mjs} +108 -145
  230. package/fesm2015/mtxColumnResize.mjs.map +1 -0
  231. package/fesm2015/mtxCore.mjs +362 -0
  232. package/fesm2015/mtxCore.mjs.map +1 -0
  233. package/fesm2015/mtxDatetimepicker.mjs +2474 -0
  234. package/fesm2015/mtxDatetimepicker.mjs.map +1 -0
  235. package/fesm2015/mtxDialog.mjs +128 -0
  236. package/fesm2015/mtxDialog.mjs.map +1 -0
  237. package/fesm2015/mtxFormGroup.mjs +59 -0
  238. package/fesm2015/mtxFormGroup.mjs.map +1 -0
  239. package/fesm2015/mtxGrid.mjs +1271 -0
  240. package/fesm2015/mtxGrid.mjs.map +1 -0
  241. package/fesm2015/mtxLoader.mjs +87 -0
  242. package/fesm2015/mtxLoader.mjs.map +1 -0
  243. package/fesm2015/mtxPopover.mjs +865 -0
  244. package/fesm2015/mtxPopover.mjs.map +1 -0
  245. package/fesm2015/mtxProgress.mjs +77 -0
  246. package/fesm2015/mtxProgress.mjs.map +1 -0
  247. package/fesm2015/mtxSelect.mjs +712 -0
  248. package/fesm2015/mtxSelect.mjs.map +1 -0
  249. package/fesm2015/mtxSlider.mjs +1139 -0
  250. package/fesm2015/mtxSlider.mjs.map +1 -0
  251. package/fesm2015/{mtxSplit.js → mtxSplit.mjs} +87 -98
  252. package/fesm2015/mtxSplit.mjs.map +1 -0
  253. package/fesm2015/mtxText3d.mjs +67 -0
  254. package/fesm2015/mtxText3d.mjs.map +1 -0
  255. package/fesm2015/{mtxTooltip.js → mtxTooltip.mjs} +90 -88
  256. package/fesm2015/mtxTooltip.mjs.map +1 -0
  257. package/fesm2015/ng-matero-extensions.mjs +9 -0
  258. package/fesm2015/ng-matero-extensions.mjs.map +1 -0
  259. package/fesm2020/mtxAlert.mjs +74 -0
  260. package/fesm2020/mtxAlert.mjs.map +1 -0
  261. package/fesm2020/mtxButton.mjs +102 -0
  262. package/fesm2020/mtxButton.mjs.map +1 -0
  263. package/fesm2020/mtxCheckboxGroup.mjs +257 -0
  264. package/fesm2020/mtxCheckboxGroup.mjs.map +1 -0
  265. package/fesm2020/mtxColorpicker.mjs +750 -0
  266. package/fesm2020/mtxColorpicker.mjs.map +1 -0
  267. package/fesm2020/mtxColumnResize.mjs +953 -0
  268. package/fesm2020/mtxColumnResize.mjs.map +1 -0
  269. package/{fesm2015/mtxCore.js → fesm2020/mtxCore.mjs} +75 -42
  270. package/fesm2020/mtxCore.mjs.map +1 -0
  271. package/fesm2020/mtxDatetimepicker.mjs +2462 -0
  272. package/fesm2020/mtxDatetimepicker.mjs.map +1 -0
  273. package/fesm2020/mtxDialog.mjs +129 -0
  274. package/fesm2020/mtxDialog.mjs.map +1 -0
  275. package/fesm2020/mtxFormGroup.mjs +59 -0
  276. package/fesm2020/mtxFormGroup.mjs.map +1 -0
  277. package/fesm2020/mtxGrid.mjs +1259 -0
  278. package/fesm2020/mtxGrid.mjs.map +1 -0
  279. package/fesm2020/mtxLoader.mjs +87 -0
  280. package/fesm2020/mtxLoader.mjs.map +1 -0
  281. package/{fesm2015/mtxPopover.js → fesm2020/mtxPopover.mjs} +120 -111
  282. package/fesm2020/mtxPopover.mjs.map +1 -0
  283. package/fesm2020/mtxProgress.mjs +77 -0
  284. package/fesm2020/mtxProgress.mjs.map +1 -0
  285. package/fesm2020/mtxSelect.mjs +709 -0
  286. package/fesm2020/mtxSelect.mjs.map +1 -0
  287. package/{fesm2015/mtxSlider.js → fesm2020/mtxSlider.mjs} +97 -94
  288. package/fesm2020/mtxSlider.mjs.map +1 -0
  289. package/fesm2020/mtxSplit.mjs +1007 -0
  290. package/fesm2020/mtxSplit.mjs.map +1 -0
  291. package/fesm2020/mtxText3d.mjs +67 -0
  292. package/fesm2020/mtxText3d.mjs.map +1 -0
  293. package/fesm2020/mtxTooltip.mjs +718 -0
  294. package/fesm2020/mtxTooltip.mjs.map +1 -0
  295. package/fesm2020/ng-matero-extensions.mjs +9 -0
  296. package/fesm2020/ng-matero-extensions.mjs.map +1 -0
  297. package/form-group/_form-group-theme.scss +1 -1
  298. package/form-group/form-group.component.d.ts +5 -4
  299. package/form-group/form-group.module.d.ts +6 -0
  300. package/form-group/mtxFormGroup.d.ts +1 -0
  301. package/form-group/package.json +5 -6
  302. package/grid/_grid-theme.scss +1 -1
  303. package/grid/cell.component.d.ts +3 -0
  304. package/grid/column-menu.component.d.ts +3 -0
  305. package/grid/column-menu.component.scss +1 -1
  306. package/grid/column-resize/_column-resize.scss +3 -3
  307. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +3 -0
  308. package/grid/column-resize/column-resize-directives/column-resize.d.ts +3 -0
  309. package/grid/column-resize/column-resize-module.d.ts +12 -7
  310. package/grid/column-resize/overlay-handle.d.ts +3 -0
  311. package/grid/column-resize/resizable-directives/resizable.d.ts +3 -0
  312. package/grid/column-resize/resize-strategy.d.ts +3 -0
  313. package/grid/expansion-toggle.directive.d.ts +3 -0
  314. package/grid/grid.component.d.ts +20 -1
  315. package/grid/grid.module.d.ts +26 -0
  316. package/grid/grid.service.d.ts +3 -0
  317. package/grid/mtxGrid.d.ts +1 -0
  318. package/grid/package.json +5 -6
  319. package/grid/public-api.d.ts +0 -1
  320. package/loader/_loader-theme.scss +1 -1
  321. package/loader/loader.component.d.ts +7 -1
  322. package/loader/loader.module.d.ts +8 -0
  323. package/loader/mtxLoader.d.ts +1 -0
  324. package/loader/package.json +5 -6
  325. package/{color-picker/mtxColorPicker.d.ts → ng-matero-extensions.d.ts} +1 -0
  326. package/package.json +171 -15
  327. package/popover/_popover-theme.scss +1 -1
  328. package/popover/mtxPopover.d.ts +1 -0
  329. package/popover/package.json +5 -6
  330. package/popover/popover-module.d.ts +10 -0
  331. package/popover/popover-target.d.ts +3 -0
  332. package/popover/popover-trigger.d.ts +3 -0
  333. package/popover/popover.d.ts +6 -3
  334. package/progress/_progress-theme.scss +2 -2
  335. package/progress/mtxProgress.d.ts +1 -0
  336. package/progress/package.json +5 -6
  337. package/progress/progress.component.d.ts +3 -0
  338. package/progress/progress.module.d.ts +6 -0
  339. package/public-api.d.ts +2 -19
  340. package/select/_select-theme.scss +1 -1
  341. package/select/mtxSelect.d.ts +1 -0
  342. package/select/option.component.d.ts +3 -0
  343. package/select/package.json +5 -6
  344. package/select/select.component.d.ts +4 -1
  345. package/select/select.component.scss +1 -1
  346. package/select/select.module.d.ts +10 -0
  347. package/select/templates.directive.d.ts +23 -0
  348. package/slider/_slider-theme.scss +5 -5
  349. package/slider/mtxSlider.d.ts +1 -0
  350. package/slider/package.json +5 -6
  351. package/slider/slider-module.d.ts +7 -0
  352. package/slider/slider.d.ts +4 -1
  353. package/slider/slider.scss +8 -7
  354. package/split/_split-theme.scss +10 -3
  355. package/split/interface.d.ts +1 -2
  356. package/split/mtxSplit.d.ts +1 -0
  357. package/split/package.json +5 -6
  358. package/split/split-pane.directive.d.ts +3 -0
  359. package/split/split.component.d.ts +12 -1
  360. package/split/split.module.d.ts +7 -0
  361. package/text3d/_text3d-theme.scss +2 -2
  362. package/text3d/mtxText3d.d.ts +1 -0
  363. package/text3d/package.json +5 -6
  364. package/text3d/text3d.component.d.ts +3 -1
  365. package/text3d/text3d.module.d.ts +6 -0
  366. package/tooltip/_tooltip-theme.scss +3 -3
  367. package/tooltip/mtxTooltip.d.ts +1 -0
  368. package/tooltip/package.json +5 -6
  369. package/tooltip/tooltip-module.d.ts +10 -0
  370. package/tooltip/tooltip.d.ts +5 -0
  371. package/tooltip/tooltip.scss +1 -1
  372. package/alert/mtxAlert.metadata.json +0 -1
  373. package/bundles/extensions.umd.js +0 -198
  374. package/bundles/extensions.umd.js.map +0 -1
  375. package/bundles/mtxAlert.umd.js +0 -101
  376. package/bundles/mtxAlert.umd.js.map +0 -1
  377. package/bundles/mtxButton.umd.js +0 -119
  378. package/bundles/mtxButton.umd.js.map +0 -1
  379. package/bundles/mtxCheckboxGroup.umd.js +0 -285
  380. package/bundles/mtxCheckboxGroup.umd.js.map +0 -1
  381. package/bundles/mtxColorPicker.umd.js +0 -337
  382. package/bundles/mtxColorPicker.umd.js.map +0 -1
  383. package/bundles/mtxColumnResize.umd.js +0 -1339
  384. package/bundles/mtxColumnResize.umd.js.map +0 -1
  385. package/bundles/mtxCore.umd.js +0 -670
  386. package/bundles/mtxCore.umd.js.map +0 -1
  387. package/bundles/mtxDatetimepicker.umd.js +0 -2590
  388. package/bundles/mtxDatetimepicker.umd.js.map +0 -1
  389. package/bundles/mtxDialog.umd.js +0 -160
  390. package/bundles/mtxDialog.umd.js.map +0 -1
  391. package/bundles/mtxFormGroup.umd.js +0 -80
  392. package/bundles/mtxFormGroup.umd.js.map +0 -1
  393. package/bundles/mtxGrid.umd.js +0 -1583
  394. package/bundles/mtxGrid.umd.js.map +0 -1
  395. package/bundles/mtxLoader.umd.js +0 -104
  396. package/bundles/mtxLoader.umd.js.map +0 -1
  397. package/bundles/mtxPipes.umd.js +0 -44
  398. package/bundles/mtxPipes.umd.js.map +0 -1
  399. package/bundles/mtxPopover.umd.js +0 -1260
  400. package/bundles/mtxPopover.umd.js.map +0 -1
  401. package/bundles/mtxProgress.umd.js +0 -92
  402. package/bundles/mtxProgress.umd.js.map +0 -1
  403. package/bundles/mtxSelect.umd.js +0 -1097
  404. package/bundles/mtxSelect.umd.js.map +0 -1
  405. package/bundles/mtxSlider.umd.js +0 -1551
  406. package/bundles/mtxSlider.umd.js.map +0 -1
  407. package/bundles/mtxSplit.umd.js +0 -1430
  408. package/bundles/mtxSplit.umd.js.map +0 -1
  409. package/bundles/mtxText3d.umd.js +0 -92
  410. package/bundles/mtxText3d.umd.js.map +0 -1
  411. package/bundles/mtxTooltip.umd.js +0 -1078
  412. package/bundles/mtxTooltip.umd.js.map +0 -1
  413. package/button/mtxButton.metadata.json +0 -1
  414. package/checkbox-group/mtxCheckboxGroup.metadata.json +0 -1
  415. package/color-picker/color-picker.component.d.ts +0 -120
  416. package/color-picker/color-picker.module.d.ts +0 -2
  417. package/color-picker/mtxColorPicker.metadata.json +0 -1
  418. package/color-picker/package.json +0 -11
  419. package/color-picker/public-api.d.ts +0 -2
  420. package/column-resize/mtxColumnResize.metadata.json +0 -1
  421. package/core/mtxCore.metadata.json +0 -1
  422. package/datetimepicker/datetimepicker.module.d.ts +0 -2
  423. package/datetimepicker/mtxDatetimepicker.metadata.json +0 -1
  424. package/dialog/mtxDialog.metadata.json +0 -1
  425. package/esm2015/alert/alert.component.js +0 -63
  426. package/esm2015/alert/alert.module.js +0 -14
  427. package/esm2015/button/button-loading.directive.js +0 -89
  428. package/esm2015/button/button.module.js +0 -16
  429. package/esm2015/checkbox-group/checkbox-group.component.js +0 -236
  430. package/esm2015/checkbox-group/checkbox-group.module.js +0 -17
  431. package/esm2015/color-picker/color-picker.component.js +0 -268
  432. package/esm2015/color-picker/color-picker.module.js +0 -26
  433. package/esm2015/color-picker/mtxColorPicker.js +0 -5
  434. package/esm2015/color-picker/public-api.js +0 -3
  435. package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +0 -54
  436. package/esm2015/column-resize/column-resize-directives/column-resize.js +0 -54
  437. package/esm2015/column-resize/column-resize-module.js +0 -24
  438. package/esm2015/column-resize/column-resize-notifier.js +0 -54
  439. package/esm2015/column-resize/column-resize.js +0 -80
  440. package/esm2015/column-resize/column-size-store.js +0 -18
  441. package/esm2015/column-resize/event-dispatcher.js +0 -75
  442. package/esm2015/column-resize/overlay-handle.js +0 -144
  443. package/esm2015/column-resize/resizable.js +0 -197
  444. package/esm2015/column-resize/resize-strategy.js +0 -245
  445. package/esm2015/core/datetime/datetime.module.js +0 -32
  446. package/esm2015/core/datetime/native-datetime-adapter.js +0 -144
  447. package/esm2015/datetimepicker/calendar-body.js +0 -75
  448. package/esm2015/datetimepicker/calendar.js +0 -629
  449. package/esm2015/datetimepicker/clock.js +0 -283
  450. package/esm2015/datetimepicker/datetimepicker-animations.js +0 -30
  451. package/esm2015/datetimepicker/datetimepicker-input.js +0 -333
  452. package/esm2015/datetimepicker/datetimepicker-toggle.js +0 -81
  453. package/esm2015/datetimepicker/datetimepicker.js +0 -411
  454. package/esm2015/datetimepicker/datetimepicker.module.js +0 -49
  455. package/esm2015/datetimepicker/month-view.js +0 -149
  456. package/esm2015/datetimepicker/mtxDatetimepicker.js +0 -7
  457. package/esm2015/datetimepicker/multi-year-view.js +0 -214
  458. package/esm2015/datetimepicker/public-api.js +0 -11
  459. package/esm2015/datetimepicker/year-view.js +0 -140
  460. package/esm2015/dialog/dialog.component.js +0 -40
  461. package/esm2015/dialog/dialog.js +0 -81
  462. package/esm2015/dialog/dialog.module.js +0 -21
  463. package/esm2015/dialog/public-api.js +0 -5
  464. package/esm2015/extensions-experimental.module.js +0 -13
  465. package/esm2015/extensions.js +0 -5
  466. package/esm2015/extensions.module.js +0 -40
  467. package/esm2015/form-group/form-group.component.js +0 -47
  468. package/esm2015/form-group/form-group.module.js +0 -14
  469. package/esm2015/grid/cell-selection.directive.js +0 -62
  470. package/esm2015/grid/cell.component.js +0 -115
  471. package/esm2015/grid/column-menu.component.js +0 -72
  472. package/esm2015/grid/column-resize/column-resize-directives/column-resize-flex.js +0 -47
  473. package/esm2015/grid/column-resize/column-resize-directives/column-resize.js +0 -47
  474. package/esm2015/grid/column-resize/column-resize-module.js +0 -36
  475. package/esm2015/grid/column-resize/overlay-handle.js +0 -68
  476. package/esm2015/grid/column-resize/resizable-directives/resizable.js +0 -75
  477. package/esm2015/grid/column-resize/resize-strategy.js +0 -45
  478. package/esm2015/grid/expansion-toggle.directive.js +0 -62
  479. package/esm2015/grid/grid.component.js +0 -418
  480. package/esm2015/grid/grid.module.js +0 -69
  481. package/esm2015/grid/grid.service.js +0 -50
  482. package/esm2015/grid/public-api.js +0 -17
  483. package/esm2015/loader/loader.component.js +0 -66
  484. package/esm2015/loader/loader.module.js +0 -16
  485. package/esm2015/pipes/mtxPipes.js +0 -5
  486. package/esm2015/pipes/pipes.module.js +0 -14
  487. package/esm2015/pipes/public-api.js +0 -3
  488. package/esm2015/pipes/to-observable.pipe.js +0 -12
  489. package/esm2015/popover/popover-module.js +0 -18
  490. package/esm2015/popover/popover-target.js +0 -24
  491. package/esm2015/popover/popover-trigger.js +0 -434
  492. package/esm2015/popover/popover.js +0 -326
  493. package/esm2015/progress/progress.component.js +0 -54
  494. package/esm2015/progress/progress.module.js +0 -14
  495. package/esm2015/public-api.js +0 -23
  496. package/esm2015/select/select.component.js +0 -380
  497. package/esm2015/select/select.module.js +0 -46
  498. package/esm2015/select/templates.directive.js +0 -211
  499. package/esm2015/slider/slider-module.js +0 -15
  500. package/esm2015/slider/slider.js +0 -1115
  501. package/esm2015/split/split-pane.directive.js +0 -156
  502. package/esm2015/split/split.component.js +0 -620
  503. package/esm2015/split/split.module.js +0 -15
  504. package/esm2015/split/utils.js +0 -227
  505. package/esm2015/text3d/text3d.component.js +0 -53
  506. package/esm2015/text3d/text3d.module.js +0 -14
  507. package/esm2015/tooltip/tooltip-module.js +0 -20
  508. package/esm2015/tooltip/tooltip.js +0 -678
  509. package/extensions-experimental.module.d.ts +0 -2
  510. package/extensions.metadata.json +0 -1
  511. package/extensions.module.d.ts +0 -2
  512. package/fesm2015/extensions.js +0 -80
  513. package/fesm2015/extensions.js.map +0 -1
  514. package/fesm2015/mtxAlert.js +0 -82
  515. package/fesm2015/mtxAlert.js.map +0 -1
  516. package/fesm2015/mtxButton.js +0 -108
  517. package/fesm2015/mtxButton.js.map +0 -1
  518. package/fesm2015/mtxCheckboxGroup.js +0 -256
  519. package/fesm2015/mtxCheckboxGroup.js.map +0 -1
  520. package/fesm2015/mtxColorPicker.js +0 -295
  521. package/fesm2015/mtxColorPicker.js.map +0 -1
  522. package/fesm2015/mtxColumnResize.js.map +0 -1
  523. package/fesm2015/mtxCore.js.map +0 -1
  524. package/fesm2015/mtxDatetimepicker.js +0 -2355
  525. package/fesm2015/mtxDatetimepicker.js.map +0 -1
  526. package/fesm2015/mtxDialog.js +0 -141
  527. package/fesm2015/mtxDialog.js.map +0 -1
  528. package/fesm2015/mtxFormGroup.js +0 -66
  529. package/fesm2015/mtxFormGroup.js.map +0 -1
  530. package/fesm2015/mtxGrid.js +0 -1186
  531. package/fesm2015/mtxGrid.js.map +0 -1
  532. package/fesm2015/mtxLoader.js +0 -87
  533. package/fesm2015/mtxLoader.js.map +0 -1
  534. package/fesm2015/mtxPipes.js +0 -31
  535. package/fesm2015/mtxPipes.js.map +0 -1
  536. package/fesm2015/mtxPopover.js.map +0 -1
  537. package/fesm2015/mtxProgress.js +0 -73
  538. package/fesm2015/mtxProgress.js.map +0 -1
  539. package/fesm2015/mtxSelect.js +0 -700
  540. package/fesm2015/mtxSelect.js.map +0 -1
  541. package/fesm2015/mtxSlider.js.map +0 -1
  542. package/fesm2015/mtxSplit.js.map +0 -1
  543. package/fesm2015/mtxText3d.js +0 -72
  544. package/fesm2015/mtxText3d.js.map +0 -1
  545. package/fesm2015/mtxTooltip.js.map +0 -1
  546. package/form-group/mtxFormGroup.metadata.json +0 -1
  547. package/grid/cell-selection.directive.d.ts +0 -17
  548. package/grid/mtxGrid.metadata.json +0 -1
  549. package/loader/mtxLoader.metadata.json +0 -1
  550. package/pipes/mtxPipes.d.ts +0 -4
  551. package/pipes/mtxPipes.metadata.json +0 -1
  552. package/pipes/package.json +0 -11
  553. package/pipes/pipes.module.d.ts +0 -2
  554. package/popover/mtxPopover.metadata.json +0 -1
  555. package/progress/mtxProgress.metadata.json +0 -1
  556. package/select/mtxSelect.metadata.json +0 -1
  557. package/slider/mtxSlider.metadata.json +0 -1
  558. package/split/mtxSplit.metadata.json +0 -1
  559. package/text3d/mtxText3d.metadata.json +0 -1
  560. package/tooltip/mtxTooltip.metadata.json +0 -1
@@ -0,0 +1,273 @@
1
+ @use 'sass:map';
2
+ @use 'typography-utils';
3
+ @use '../theming/theming';
4
+
5
+ /// Defines a typography level from the Material Design spec.
6
+ /// @param {String} $font-size The font-size for this level.
7
+ /// @param {String | Number} $line-height The line-height for this level.
8
+ /// @param {String | Number} $font-weight The font-weight for this level.
9
+ /// @param {String} $font-family The font-family for this level.
10
+ /// @param {String} $letter-spacing The letter-spacing for this level.
11
+ /// @returns {Map} A map representing the definition of this typpographic level.
12
+ @function define-typography-level(
13
+ $font-size,
14
+ $line-height: $font-size,
15
+ $font-weight: 400,
16
+ $font-family: null,
17
+ $letter-spacing: normal) {
18
+
19
+ @return (
20
+ font-size: $font-size,
21
+ line-height: $line-height,
22
+ font-weight: $font-weight,
23
+ font-family: $font-family,
24
+ letter-spacing: $letter-spacing
25
+ );
26
+ }
27
+
28
+ /// Defines a collection of typography levels to configure typography for an application.
29
+ /// Any level not specified defaults to the values defined in the Material Design specification:
30
+ /// https://material.io/guidelines/style/typography.html.
31
+ ///
32
+ /// Note that the Material Design specification does not describe explicit letter-spacing values.
33
+ /// The values here come from reverse engineering the Material Design examples.
34
+ /// @param {String} $font-family Default font-family for levels that don't specify font-family.
35
+ /// @param {Map} $display-4 Configuration for the "display-4" typographic level.
36
+ /// @param {Map} $display-3 Configuration for the "display-3" typographic level.
37
+ /// @param {Map} $display-2 Configuration for the "display-2" typographic level.
38
+ /// @param {Map} $display-1 Configuration for the "display-1" typographic level.
39
+ /// @param {Map} $headline Configuration for the "headline" typographic level.
40
+ /// @param {Map} $title Configuration for the "title" typographic level.
41
+ /// @param {Map} $subheading-2 Configuration for the "subheading-2" typographic level.
42
+ /// @param {Map} $subheading-1 Configuration for the "subheading-1" typographic level.
43
+ /// @param {Map} $body-2 Configuration for the "body-2" typographic level.
44
+ /// @param {Map} $body-1 Configuration for the "body-1" typographic level.
45
+ /// @param {Map} $caption Configuration for the "caption" typographic level.
46
+ /// @param {Map} $button Configuration for the "button" typographic level.
47
+ /// @param {Map} $input Configuration for the "input" typographic level.
48
+ /// @returns {Map} A typography config for the application.
49
+ @function define-typography-config(
50
+ $font-family: 'Roboto, "Helvetica Neue", sans-serif',
51
+ $display-4: define-typography-level(112px, 112px, 300, $letter-spacing: -.05em),
52
+ $display-3: define-typography-level(56px, 56px, 400, $letter-spacing: -.02em),
53
+ $display-2: define-typography-level(45px, 48px, 400, $letter-spacing: -.005em),
54
+ $display-1: define-typography-level(34px, 40px, 400),
55
+ $headline: define-typography-level(24px, 32px, 400),
56
+ $title: define-typography-level(20px, 32px, 500),
57
+ $subheading-2: define-typography-level(16px, 28px, 400),
58
+ $subheading-1: define-typography-level(15px, 24px, 400),
59
+ $body-2: define-typography-level(14px, 24px, 500),
60
+ $body-1: define-typography-level(14px, 20px, 400),
61
+ $caption: define-typography-level(12px, 20px, 400),
62
+ $button: define-typography-level(14px, 14px, 500),
63
+
64
+ $input: define-typography-level(inherit, 1.125, 400)
65
+ ) {
66
+
67
+ // Declare an initial map with all of the levels.
68
+ $config: (
69
+ display-4: $display-4,
70
+ display-3: $display-3,
71
+ display-2: $display-2,
72
+ display-1: $display-1,
73
+ headline: $headline,
74
+ title: $title,
75
+ subheading-2: $subheading-2,
76
+ subheading-1: $subheading-1,
77
+ body-2: $body-2,
78
+ body-1: $body-1,
79
+ caption: $caption,
80
+ button: $button,
81
+ input: $input,
82
+ );
83
+
84
+ // Loop through the levels and set the `font-family` of the ones that don't have one to the base.
85
+ // Note that Sass can't modify maps in place, which means that we need to merge and re-assign.
86
+ @each $key, $level in $config {
87
+ @if map.get($level, font-family) == null {
88
+ $new-level: map.merge($level, (font-family: $font-family));
89
+ $config: map.merge($config, ($key: $new-level));
90
+ }
91
+ }
92
+
93
+ // Add the base font family to the config.
94
+ @return map.merge($config, (font-family: $font-family));
95
+ }
96
+
97
+ // Whether a config is for the Material Design 2018 typography system.
98
+ @function private-typography-is-2018-config($config) {
99
+ @return map.get($config, headline-1) != null;
100
+ }
101
+
102
+ // Whether a config is for the Material Design 2014 typography system.
103
+ @function private-typography-is-2014-config($config) {
104
+ @return map.get($config, headline) != null;
105
+ }
106
+
107
+ // Given a config for either the 2014 or 2018 Material Design typography system,
108
+ // produces a normalized typography config for the 2014 Material Design typography system.
109
+ // 2014 - https://material.io/archive/guidelines/style/typography.html#typography-styles
110
+ // 2018 - https://material.io/design/typography/the-type-system.html#type-scale
111
+ //
112
+ // Components using this function should be migrated to normalize to the 2018 style config instead.
113
+ // New components should not use this function.
114
+ @function private-typography-to-2014-config($config) {
115
+ @if $config == null {
116
+ @return null;
117
+ }
118
+ @if not private-typography-is-2014-config($config) {
119
+ $args: (
120
+ display-4: map.get($config, headline-1),
121
+ display-3: map.get($config, headline-2),
122
+ display-2: map.get($config, headline-3),
123
+ display-1: map.get($config, headline-4),
124
+ headline: map.get($config, headline-5),
125
+ title: map.get($config, headline-6),
126
+ subheading-2: map.get($config, subtitle-1),
127
+ subheading-1: map.get($config, subtitle-2),
128
+ body-2: map.get($config, body-1),
129
+ body-1: map.get($config, body-2),
130
+ button: map.get($config, button),
131
+ caption: map.get($config, caption),
132
+ );
133
+ $non-null-args: ();
134
+ @each $key, $value in $args {
135
+ @if $value != null {
136
+ $non-null-args: map.merge($non-null-args, ($key: $value));
137
+ }
138
+ }
139
+ @return define-typography-config($non-null-args...);
140
+ }
141
+ @return $config;
142
+ }
143
+
144
+ // Given a config for either the 2014 or 2018 Material Design typography system,
145
+ // produces a normalized typography config for the 2018 Material Design typography system.
146
+ // 2014 - https://material.io/archive/guidelines/style/typography.html#typography-styles
147
+ // 2018 - https://material.io/design/typography/the-type-system.html#type-scale
148
+ @function private-typography-to-2018-config($config) {
149
+ @if $config == null {
150
+ @return null;
151
+ }
152
+ @if not private-typography-is-2018-config($config) {
153
+ @return (
154
+ headline-1: map.get($config, display-4),
155
+ headline-2: map.get($config, display-3),
156
+ headline-3: map.get($config, display-2),
157
+ headline-4: map.get($config, display-1),
158
+ headline-5: map.get($config, headline),
159
+ headline-6: map.get($config, title),
160
+ subtitle-1: map.get($config, subheading-2),
161
+
162
+ subtitle-2: map.get($config, body-2),
163
+ body-1: map.get($config, subheading-1),
164
+
165
+ body-2: map.get($config, body-1),
166
+ button: map.get($config, button),
167
+ caption: map.get($config, caption),
168
+ overline: if(map.get($config, overline), map.get($config, overline), define-typography-level(12px, 32px, 500))
169
+ );
170
+ }
171
+ @return $config;
172
+ }
173
+
174
+ /// Emits baseline typographic styles based on a given config.
175
+ /// @param {Map} $config-or-theme A typography config for an entire theme.
176
+ /// @param {String} $selector Ancestor selector under which native elements, such as h1, will
177
+ /// be styled.
178
+ @mixin typography-hierarchy($config-or-theme, $selector: '.mat-typography') {
179
+ $config: private-typography-to-2014-config(theming.get-typography-config($config-or-theme));
180
+
181
+ .mat-h1, .mat-headline, #{$selector} h1 {
182
+ @include typography-utils.typography-level($config, headline);
183
+
184
+ margin: 0 0 16px;
185
+ }
186
+
187
+ .mat-h2, .mat-title, #{$selector} h2 {
188
+ @include typography-utils.typography-level($config, title);
189
+
190
+ margin: 0 0 16px;
191
+ }
192
+
193
+ .mat-h3, .mat-subheading-2, #{$selector} h3 {
194
+ @include typography-utils.typography-level($config, subheading-2);
195
+
196
+ margin: 0 0 16px;
197
+ }
198
+
199
+ .mat-h4, .mat-subheading-1, #{$selector} h4 {
200
+ @include typography-utils.typography-level($config, subheading-1);
201
+
202
+ margin: 0 0 16px;
203
+ }
204
+
205
+ // Note: the spec doesn't have anything that would correspond to h5 and h6, but we add these for
206
+ // consistency. The font sizes come from the Chrome user agent styles which have h5 at 0.83em
207
+ // and h6 at 0.67em.
208
+ .mat-h5, #{$selector} h5 {
209
+ @include typography-utils.font-shorthand(
210
+
211
+ calc(#{typography-utils.font-size($config, body-1)} * .83),
212
+ typography-utils.font-weight($config, body-1),
213
+ typography-utils.line-height($config, body-1),
214
+ typography-utils.font-family($config, body-1)
215
+ );
216
+
217
+ margin: 0 0 12px;
218
+ }
219
+
220
+ .mat-h6, #{$selector} h6 {
221
+ @include typography-utils.font-shorthand(
222
+
223
+ calc(#{typography-utils.font-size($config, body-1)} * .67),
224
+ typography-utils.font-weight($config, body-1),
225
+ typography-utils.line-height($config, body-1),
226
+ typography-utils.font-family($config, body-1)
227
+ );
228
+
229
+ margin: 0 0 12px;
230
+ }
231
+
232
+ .mat-body-strong,
233
+ .mat-body-2 {
234
+ @include typography-utils.typography-level($config, body-2);
235
+ }
236
+
237
+ .mat-body, .mat-body-1, #{$selector} {
238
+ @include typography-utils.typography-level($config, body-1);
239
+
240
+ p {
241
+ margin: 0 0 12px;
242
+ }
243
+ }
244
+
245
+ .mat-small,
246
+ .mat-caption {
247
+ @include typography-utils.typography-level($config, caption);
248
+ }
249
+
250
+ .mat-display-4, #{$selector} .mat-display-4 {
251
+ @include typography-utils.typography-level($config, display-4);
252
+
253
+ margin: 0 0 56px;
254
+ }
255
+
256
+ .mat-display-3, #{$selector} .mat-display-3 {
257
+ @include typography-utils.typography-level($config, display-3);
258
+
259
+ margin: 0 0 64px;
260
+ }
261
+
262
+ .mat-display-2, #{$selector} .mat-display-2 {
263
+ @include typography-utils.typography-level($config, display-2);
264
+
265
+ margin: 0 0 64px;
266
+ }
267
+
268
+ .mat-display-1, #{$selector} .mat-display-1 {
269
+ @include typography-utils.typography-level($config, display-1);
270
+
271
+ margin: 0 0 64px;
272
+ }
273
+ }
@@ -1,9 +1,9 @@
1
1
  @use 'sass:map';
2
- @use '~@angular/material/core/theming/theming';
3
- @use '~@angular/material/core/theming/palette';
4
- @use '~@angular/material/core/style/private';
5
- @use '~@angular/material/core/typography/typography';
6
- @use '~@angular/material/core/typography/typography-utils';
2
+ @use '../core/theming/theming';
3
+ @use '../core/theming/palette';
4
+ @use '../core/style/private';
5
+ @use '../core/typography/typography';
6
+ @use '../core/typography/typography-utils';
7
7
 
8
8
  $selected-today-box-shadow-width: 1px;
9
9
  $calendar-body-font-size: 13px !default;
@@ -120,6 +120,18 @@ $clock-font-size: 14px !default;
120
120
  color: $disabled-color;
121
121
  }
122
122
  }
123
+
124
+ .mtx-datetimepicker-toggle-active {
125
+ color: theming.get-color-from-palette(map.get($config, primary), text);
126
+
127
+ &.mat-accent {
128
+ color: theming.get-color-from-palette(map.get($config, accent), text);
129
+ }
130
+
131
+ &.mat-warn {
132
+ color: theming.get-color-from-palette(map.get($config, warn), text);
133
+ }
134
+ }
123
135
  }
124
136
 
125
137
  @mixin typography($config-or-theme) {
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  /**
3
4
  * An internal class that represents the data corresponding to a single calendar cell.
4
5
  * @docs-private
@@ -37,4 +38,6 @@ export declare class MtxCalendarBody {
37
38
  get _firstRowOffset(): number;
38
39
  _cellClicked(cell: MtxCalendarCell): void;
39
40
  _isActiveCell(rowIndex: number, colIndex: number): boolean;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendarBody, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": "label"; "rows": "rows"; "todayValue": "todayValue"; "selectedValue": "selectedValue"; "labelMinRequiredCells": "labelMinRequiredCells"; "numCols": "numCols"; "allowDisabledSelection": "allowDisabledSelection"; "activeCell": "activeCell"; }, { "selectedValueChange": "selectedValueChange"; }, never, never>;
40
43
  }
@@ -1,10 +1,11 @@
1
- @use '~@angular/material/core/style/private';
1
+ @use 'sass:math';
2
+ @use '../core/style/private';
2
3
 
3
4
  $calendar-body-label-padding-start: 5% !default;
4
- $calendar-body-label-side-padding: private.private-div(33%, 7) !default;
5
+ $calendar-body-label-side-padding: math.div(33%, 7) !default;
5
6
  $calendar-body-cell-min-size: 32px !default;
6
- $calendar-body-cell-size: private.private-div(100%, 7) !default;
7
- $calendar-body-cell-padding: private.private-div($calendar-body-cell-size, 2) !default;
7
+ $calendar-body-cell-size: math.div(100%, 7) !default;
8
+ $calendar-body-cell-padding: math.div($calendar-body-cell-size, 2) !default;
8
9
  $calendar-body-cell-content-margin: 5% !default;
9
10
  $calendar-body-cell-content-border-width: 1px !default;
10
11
  $calendar-body-cell-radius: 999px !default;
@@ -1,11 +1,11 @@
1
1
  import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
3
  import { MatDatepickerIntl } from '@angular/material/datepicker';
4
- import { DatetimeAdapter } from '@ng-matero/extensions/core';
5
- import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
4
+ import { DatetimeAdapter, MtxDatetimeFormats } from '@ng-matero/extensions/core';
6
5
  import { MtxClockView } from './clock';
7
- import { MtxDatetimepickerType } from './datetimepicker';
8
6
  import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
7
+ import { MtxDatetimepickerType } from './datetimepicker-types';
8
+ import * as i0 from "@angular/core";
9
9
  export declare type MtxCalendarView = 'clock' | 'month' | 'year' | 'multi-year';
10
10
  /**
11
11
  * A calendar that is used as part of the datetimepicker.
@@ -17,7 +17,6 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
17
17
  private _ngZone;
18
18
  private _adapter;
19
19
  private _dateFormats;
20
- _userSelection: EventEmitter<void>;
21
20
  get multiYearSelector(): boolean;
22
21
  set multiYearSelector(value: boolean);
23
22
  private _multiYearSelector;
@@ -30,19 +29,13 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
30
29
  timeInterval: number;
31
30
  /** A function used to filter which dates are selectable. */
32
31
  dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
33
- ariaLabel: string;
34
- ariaNextMonthLabel: string;
35
- ariaPrevMonthLabel: string;
36
- ariaNextYearLabel: string;
37
- ariaPrevYearLabel: string;
38
- ariaNextMultiYearLabel: string;
39
- ariaPrevMultiYearLabel: string;
40
32
  /** Prevent user to select same date time */
41
33
  preventSameDateTimeSelection: boolean;
42
34
  /** Emits when the currently selected date changes. */
43
35
  selectedChange: EventEmitter<D>;
44
36
  /** Emits when the view has been changed. */
45
37
  viewChanged: EventEmitter<MtxCalendarView>;
38
+ _userSelection: EventEmitter<void>;
46
39
  _AMPM: string;
47
40
  _clockView: MtxClockView;
48
41
  _calendarState: string;
@@ -142,4 +135,6 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
142
135
  private _2digit;
143
136
  static ngAcceptInputType_multiYearSelector: BooleanInput;
144
137
  static ngAcceptInputType_twelvehour: BooleanInput;
138
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendar<any>, [null, null, null, { optional: true; }, { optional: true; }, null]>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendar<any>, "mtx-calendar", ["mtxCalendar"], { "multiYearSelector": "multiYearSelector"; "twelvehour": "twelvehour"; "startView": "startView"; "timeInterval": "timeInterval"; "dateFilter": "dateFilter"; "preventSameDateTimeSelection": "preventSameDateTimeSelection"; "type": "type"; "startAt": "startAt"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; "_userSelection": "_userSelection"; }, never, never>;
145
140
  }
@@ -1,6 +1,8 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
1
2
  import { AfterContentInit, ElementRef, EventEmitter } from '@angular/core';
2
3
  import { DatetimeAdapter } from '@ng-matero/extensions/core';
3
4
  import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
5
+ import * as i0 from "@angular/core";
4
6
  export declare const CLOCK_RADIUS = 50;
5
7
  export declare const CLOCK_INNER_RADIUS = 27.5;
6
8
  export declare const CLOCK_OUTER_RADIUS = 41.25;
@@ -13,14 +15,16 @@ export declare type MtxClockView = 'hour' | 'minute';
13
15
  export declare class MtxClock<D> implements AfterContentInit {
14
16
  private _element;
15
17
  private _adapter;
16
- _userSelection: EventEmitter<void>;
17
18
  /** A function used to filter which dates are selectable. */
18
19
  dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
19
20
  interval: number;
20
21
  twelvehour: boolean;
21
22
  /** Emits when the currently selected date changes. */
22
23
  selectedChange: EventEmitter<D>;
24
+ /** Emits when any date is activated. */
23
25
  activeDateChange: EventEmitter<D>;
26
+ /** Emits when any date is selected. */
27
+ readonly _userSelection: EventEmitter<void>;
24
28
  /** Hours and Minutes representing the clock view. */
25
29
  _hours: any[];
26
30
  _minutes: any[];
@@ -32,32 +36,29 @@ export declare class MtxClock<D> implements AfterContentInit {
32
36
  private mouseMoveListener;
33
37
  private mouseUpListener;
34
38
  constructor(_element: ElementRef, _adapter: DatetimeAdapter<D>);
35
- private _activeDate;
36
39
  /**
37
40
  * The date to display in this clock view.
38
41
  */
39
42
  get activeDate(): D;
40
43
  set activeDate(value: D);
41
- private _selected;
44
+ private _activeDate;
42
45
  /** The currently selected date. */
43
46
  get selected(): D | null;
44
47
  set selected(value: D | null);
45
- private _minDate;
48
+ private _selected;
46
49
  /** The minimum selectable date. */
47
50
  get minDate(): D | null;
48
51
  set minDate(value: D | null);
49
- private _maxDate;
52
+ private _minDate;
50
53
  /** The maximum selectable date. */
51
54
  get maxDate(): D | null;
52
55
  set maxDate(value: D | null);
56
+ private _maxDate;
53
57
  /** Whether the clock should be started in hour or minute view. */
54
58
  set startView(value: MtxClockView);
55
59
  get _hand(): any;
56
60
  ngAfterContentInit(): void;
57
- /**
58
- * TODO: use `fromEvent` of rxjs.
59
- * Handles mousedown events on the clock body.
60
- */
61
+ /** Handles mousedown events on the clock body. */
61
62
  _handleMousedown(event: any): void;
62
63
  _handleMousemove(event: any): void;
63
64
  _handleMouseup(): void;
@@ -68,4 +69,7 @@ export declare class MtxClock<D> implements AfterContentInit {
68
69
  * @param event
69
70
  */
70
71
  private setTime;
72
+ static ngAcceptInputType_twelvehour: BooleanInput;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxClock<any>, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxClock<any>, "mtx-clock", ["mtxClock"], { "dateFilter": "dateFilter"; "interval": "interval"; "twelvehour": "twelvehour"; "activeDate": "activeDate"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; "startView": "startView"; }, { "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; "_userSelection": "_userSelection"; }, never, never>;
71
75
  }
@@ -1,8 +1,10 @@
1
1
  import { AnimationTriggerMetadata } from '@angular/animations';
2
2
  /**
3
- * This animation fades in the background color and text content of the
4
- * select's options. It is time delayed to occur 100ms after the overlay
5
- * panel has transformed in.
3
+ * Animations used by the Material datepicker.
4
+ * @docs-private
6
5
  */
7
- export declare const fadeInContent: AnimationTriggerMetadata;
8
- export declare const slideCalendar: AnimationTriggerMetadata;
6
+ export declare const mtxDatetimepickerAnimations: {
7
+ readonly transformPanel: AnimationTriggerMetadata;
8
+ readonly fadeInCalendar: AnimationTriggerMetadata;
9
+ readonly slideCalendar: AnimationTriggerMetadata;
10
+ };
@@ -1,11 +1,12 @@
1
1
  import { AfterContentInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
3
  import { BooleanInput } from '@angular/cdk/coercion';
4
+ import { ThemePalette } from '@angular/material/core';
4
5
  import { MatFormField } from '@angular/material/form-field';
5
- import { DatetimeAdapter } from '@ng-matero/extensions/core';
6
- import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
6
+ import { DatetimeAdapter, MtxDatetimeFormats } from '@ng-matero/extensions/core';
7
7
  import { MtxDatetimepicker } from './datetimepicker';
8
8
  import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
9
+ import * as i0 from "@angular/core";
9
10
  export declare const MAT_DATETIMEPICKER_VALUE_ACCESSOR: any;
10
11
  export declare const MAT_DATETIMEPICKER_VALIDATORS: any;
11
12
  /**
@@ -98,5 +99,9 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
98
99
  private _validator;
99
100
  /** Formats a value and sets it on the input element. */
100
101
  private _formatValue;
102
+ /** Returns the palette used by the input's form field, if any. */
103
+ getThemePalette(): ThemePalette;
101
104
  static ngAcceptInputType_disabled: BooleanInput;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerInput<any>, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
106
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerInput<any>, "input[mtxDatetimepicker]", ["mtxDatetimepickerInput"], { "mtxDatetimepicker": "mtxDatetimepicker"; "mtxDatetimepickerFilter": "mtxDatetimepickerFilter"; "value": "value"; "min": "min"; "max": "max"; "disabled": "disabled"; }, { "dateChange": "dateChange"; "dateInput": "dateInput"; }, never>;
102
107
  }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./calendar";
3
+ import * as i2 from "./calendar-body";
4
+ import * as i3 from "./clock";
5
+ import * as i4 from "./datetimepicker";
6
+ import * as i5 from "./datetimepicker-toggle";
7
+ import * as i6 from "./datetimepicker-input";
8
+ import * as i7 from "./month-view";
9
+ import * as i8 from "./year-view";
10
+ import * as i9 from "./multi-year-view";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@angular/material/button";
13
+ import * as i12 from "@angular/cdk/overlay";
14
+ import * as i13 from "@angular/cdk/a11y";
15
+ import * as i14 from "@angular/cdk/portal";
16
+ export declare class MtxDatetimepickerModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxDatetimepickerModule, [typeof i1.MtxCalendar, typeof i2.MtxCalendarBody, typeof i3.MtxClock, typeof i4.MtxDatetimepicker, typeof i5.MtxDatetimepickerToggle, typeof i5.MtxDatetimepickerToggleIcon, typeof i6.MtxDatetimepickerInput, typeof i4.MtxDatetimepickerContent, typeof i7.MtxMonthView, typeof i8.MtxYearView, typeof i9.MtxMultiYearView], [typeof i10.CommonModule, typeof i11.MatButtonModule, typeof i12.OverlayModule, typeof i13.A11yModule, typeof i14.PortalModule], [typeof i1.MtxCalendar, typeof i2.MtxCalendarBody, typeof i3.MtxClock, typeof i4.MtxDatetimepicker, typeof i5.MtxDatetimepickerToggle, typeof i5.MtxDatetimepickerToggleIcon, typeof i6.MtxDatetimepickerInput, typeof i4.MtxDatetimepickerContent, typeof i7.MtxMonthView, typeof i8.MtxYearView, typeof i9.MtxMultiYearView]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<MtxDatetimepickerModule>;
20
+ }
@@ -1,22 +1,40 @@
1
1
  import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
+ import { MatButton } from '@angular/material/button';
3
4
  import { MatDatepickerIntl } from '@angular/material/datepicker';
4
5
  import { MtxDatetimepicker } from './datetimepicker';
6
+ import * as i0 from "@angular/core";
7
+ /** Can be used to override the icon of a `mtxDatetimepickerToggle`. */
8
+ export declare class MtxDatetimepickerToggleIcon {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerToggleIcon, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerToggleIcon, "[mtxDatetimepickerToggleIcon]", never, {}, {}, never>;
11
+ }
5
12
  export declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
6
13
  _intl: MatDatepickerIntl;
7
14
  private _changeDetectorRef;
15
+ private _stateChanges;
8
16
  /** Datetimepicker instance that the button will toggle. */
9
17
  datetimepicker: MtxDatetimepicker<D>;
10
- private _stateChanges;
11
- constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef);
18
+ /** Tabindex for the toggle. */
19
+ tabIndex: number;
12
20
  /** Whether the toggle button is disabled. */
13
21
  get disabled(): boolean;
14
22
  set disabled(value: boolean);
15
23
  private _disabled;
24
+ /** Whether ripples on the toggle should be disabled. */
25
+ disableRipple: boolean;
26
+ /** Custom icon set by the consumer. */
27
+ _customIcon: MtxDatetimepickerToggleIcon;
28
+ /** Underlying button element. */
29
+ _button: MatButton;
30
+ constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef);
16
31
  ngOnChanges(changes: SimpleChanges): void;
17
32
  ngOnDestroy(): void;
18
33
  ngAfterContentInit(): void;
19
34
  _open(event: Event): void;
20
35
  private _watchStateChanges;
21
36
  static ngAcceptInputType_disabled: BooleanInput;
37
+ static ngAcceptInputType_disableRipple: BooleanInput;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerToggle<any>, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepickerToggle<any>, "mtx-datetimepicker-toggle", ["mtxDatetimepickerToggle"], { "datetimepicker": "for"; "tabIndex": "tabIndex"; "disabled": "disabled"; "disableRipple": "disableRipple"; }, {}, ["_customIcon"], ["[mtxDatetimepickerToggleIcon]"]>;
22
40
  }
@@ -0,0 +1,23 @@
1
+ .mat-form-field-appearance-legacy {
2
+ .mat-form-field-prefix,
3
+ .mat-form-field-suffix {
4
+ .mtx-datetimepicker-toggle-default-icon {
5
+ width: 1em;
6
+ }
7
+ }
8
+ }
9
+
10
+ .mat-form-field:not(.mat-form-field-appearance-legacy) {
11
+ .mat-form-field-prefix,
12
+ .mat-form-field-suffix {
13
+ .mtx-datetimepicker-toggle-default-icon {
14
+ display: block;
15
+ width: 1.5em;
16
+ height: 1.5em;
17
+ }
18
+
19
+ .mat-icon-button .mtx-datetimepicker-toggle-default-icon {
20
+ margin: auto;
21
+ }
22
+ }
23
+ }
@@ -0,0 +1 @@
1
+ export declare type MtxDatetimepickerType = 'date' | 'time' | 'month' | 'year' | 'datetime';