@ng-matero/extensions 14.6.3 → 15.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 (336) hide show
  1. package/README.md +0 -1
  2. package/_index.scss +3 -4
  3. package/_theming.scss +3 -4
  4. package/alert/_alert-theme.import.scss +1 -1
  5. package/alert/_alert-theme.scss +2 -2
  6. package/alert/{alert.module.d.ts → alert-module.d.ts} +2 -2
  7. package/alert/{alert.component.d.ts → alert.d.ts} +4 -4
  8. package/alert/{alert.component.scss → alert.scss} +0 -0
  9. package/alert/public-api.d.ts +2 -2
  10. package/button/button-loading.d.ts +25 -0
  11. package/button/button-loading.scss +5 -4
  12. package/button/{button.module.d.ts → button-module.d.ts} +2 -2
  13. package/button/public-api.d.ts +2 -2
  14. package/checkbox-group/{checkbox-group.module.d.ts → checkbox-group-module.d.ts} +2 -2
  15. package/checkbox-group/{checkbox-group.component.d.ts → checkbox-group.d.ts} +4 -4
  16. package/checkbox-group/checkbox-group.scss +0 -0
  17. package/checkbox-group/{checkbox-group.interface.d.ts → interfaces.d.ts} +0 -0
  18. package/checkbox-group/public-api.d.ts +3 -3
  19. package/colorpicker/_colorpicker-theme.import.scss +1 -1
  20. package/colorpicker/_colorpicker-theme.scss +2 -2
  21. package/colorpicker/colorpicker-input.d.ts +1 -1
  22. package/colorpicker/colorpicker-toggle.d.ts +2 -2
  23. package/colorpicker/colorpicker.d.ts +2 -2
  24. package/column-resize/column-resize-directives/column-resize-flex.d.ts +1 -1
  25. package/column-resize/column-resize-directives/column-resize.d.ts +1 -1
  26. package/column-resize/column-resize.d.ts +1 -1
  27. package/column-resize/overlay-handle.d.ts +1 -1
  28. package/column-resize/resizable.d.ts +1 -1
  29. package/core/color/_all-color.scss +28 -0
  30. package/core/density/_all-density.scss +24 -0
  31. package/core/style/_elevation.scss +20 -126
  32. package/core/style/_private.scss +9 -18
  33. package/core/style/_variables.scss +1 -1
  34. package/core/style/_vendor-prefixes.scss +8 -21
  35. package/core/theming/_all-theme.scss +38 -0
  36. package/core/theming/_palette.scss +1 -1
  37. package/core/theming/_theming.scss +55 -22
  38. package/core/typography/_typography.scss +195 -17
  39. package/datetimepicker/_datetimepicker-theme.import.scss +1 -1
  40. package/datetimepicker/_datetimepicker-theme.scss +3 -4
  41. package/datetimepicker/calendar-body.d.ts +1 -1
  42. package/datetimepicker/calendar.d.ts +1 -1
  43. package/datetimepicker/calendar.scss +3 -0
  44. package/datetimepicker/clock.d.ts +1 -1
  45. package/datetimepicker/datetimepicker-input.d.ts +1 -1
  46. package/datetimepicker/datetimepicker-toggle.d.ts +2 -2
  47. package/datetimepicker/datetimepicker.d.ts +2 -2
  48. package/datetimepicker/month-view.d.ts +1 -1
  49. package/datetimepicker/multi-year-view.d.ts +1 -1
  50. package/datetimepicker/time.d.ts +2 -2
  51. package/datetimepicker/time.scss +1 -1
  52. package/datetimepicker/year-view.d.ts +1 -1
  53. package/dialog/dialog-container.d.ts +12 -0
  54. package/dialog/dialog-container.scss +48 -0
  55. package/dialog/{dialog.module.d.ts → dialog-module.d.ts} +2 -2
  56. package/dialog/public-api.d.ts +2 -2
  57. package/drawer/_drawer-theme.import.scss +1 -1
  58. package/drawer/_drawer-theme.scss +2 -2
  59. package/drawer/drawer-container.d.ts +1 -1
  60. package/esm2020/alert/alert-module.mjs +18 -0
  61. package/esm2020/alert/alert.mjs +52 -0
  62. package/esm2020/alert/public-api.mjs +3 -3
  63. package/esm2020/button/button-loading.mjs +76 -0
  64. package/esm2020/button/button-module.mjs +20 -0
  65. package/esm2020/button/public-api.mjs +3 -3
  66. package/esm2020/checkbox-group/{checkbox-group.module.mjs → checkbox-group-module.mjs} +8 -8
  67. package/esm2020/checkbox-group/checkbox-group.mjs +234 -0
  68. package/esm2020/checkbox-group/interfaces.mjs +2 -0
  69. package/esm2020/checkbox-group/public-api.mjs +4 -4
  70. package/esm2020/colorpicker/colorpicker-input.mjs +3 -3
  71. package/esm2020/colorpicker/colorpicker-module.mjs +4 -4
  72. package/esm2020/colorpicker/colorpicker-toggle.mjs +6 -6
  73. package/esm2020/colorpicker/colorpicker.mjs +6 -6
  74. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  75. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
  76. package/esm2020/column-resize/column-resize-module.mjs +4 -4
  77. package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
  78. package/esm2020/column-resize/column-resize.mjs +3 -3
  79. package/esm2020/column-resize/column-size-store.mjs +3 -3
  80. package/esm2020/column-resize/event-dispatcher.mjs +3 -3
  81. package/esm2020/column-resize/overlay-handle.mjs +3 -3
  82. package/esm2020/column-resize/resizable.mjs +3 -3
  83. package/esm2020/column-resize/resize-strategy.mjs +9 -9
  84. package/esm2020/core/datetime/datetime.module.mjs +8 -8
  85. package/esm2020/core/datetime/native-datetime-adapter.mjs +3 -3
  86. package/esm2020/core/pipes/pipes.module.mjs +4 -4
  87. package/esm2020/core/pipes/to-observable.pipe.mjs +3 -3
  88. package/esm2020/datetimepicker/calendar-body.mjs +3 -3
  89. package/esm2020/datetimepicker/calendar.mjs +5 -5
  90. package/esm2020/datetimepicker/clock.mjs +4 -4
  91. package/esm2020/datetimepicker/datetimepicker-input.mjs +3 -3
  92. package/esm2020/datetimepicker/datetimepicker-intl.mjs +3 -3
  93. package/esm2020/datetimepicker/datetimepicker-module.mjs +4 -4
  94. package/esm2020/datetimepicker/datetimepicker-toggle.mjs +6 -6
  95. package/esm2020/datetimepicker/datetimepicker.mjs +6 -6
  96. package/esm2020/datetimepicker/month-view.mjs +3 -3
  97. package/esm2020/datetimepicker/multi-year-view.mjs +3 -3
  98. package/esm2020/datetimepicker/time.mjs +8 -8
  99. package/esm2020/datetimepicker/year-view.mjs +3 -3
  100. package/esm2020/dialog/dialog-container.mjs +35 -0
  101. package/esm2020/dialog/{dialog.module.mjs → dialog-module.mjs} +8 -8
  102. package/esm2020/dialog/dialog.mjs +7 -7
  103. package/esm2020/dialog/public-api.mjs +3 -3
  104. package/esm2020/drawer/drawer-container.mjs +3 -3
  105. package/esm2020/drawer/drawer-module.mjs +4 -4
  106. package/esm2020/drawer/drawer.mjs +4 -4
  107. package/esm2020/grid/cell.mjs +130 -0
  108. package/esm2020/grid/column-menu.mjs +112 -0
  109. package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  110. package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
  111. package/esm2020/grid/column-resize/column-resize-module.mjs +8 -8
  112. package/esm2020/grid/column-resize/overlay-handle.mjs +3 -3
  113. package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +3 -3
  114. package/esm2020/grid/column-resize/resize-strategy.mjs +3 -3
  115. package/esm2020/grid/expansion-toggle.mjs +64 -0
  116. package/esm2020/grid/grid-module.mjs +115 -0
  117. package/esm2020/grid/grid-utils.mjs +44 -0
  118. package/esm2020/grid/grid.mjs +619 -0
  119. package/esm2020/grid/interfaces.mjs +2 -0
  120. package/esm2020/grid/public-api.mjs +8 -8
  121. package/esm2020/loader/loader-module.mjs +20 -0
  122. package/esm2020/loader/loader.mjs +69 -0
  123. package/esm2020/loader/public-api.mjs +3 -3
  124. package/esm2020/popover/popover-content.mjs +6 -6
  125. package/esm2020/popover/popover-module.mjs +4 -4
  126. package/esm2020/popover/popover-target.mjs +3 -3
  127. package/esm2020/popover/popover-trigger.mjs +3 -3
  128. package/esm2020/popover/popover.mjs +3 -3
  129. package/esm2020/progress/progress-module.mjs +18 -0
  130. package/esm2020/progress/progress.mjs +55 -0
  131. package/esm2020/progress/public-api.mjs +3 -3
  132. package/esm2020/select/option.mjs +57 -0
  133. package/esm2020/select/public-api.mjs +5 -5
  134. package/esm2020/select/select-module.mjs +74 -0
  135. package/esm2020/select/select.mjs +550 -0
  136. package/esm2020/select/templates.mjs +124 -0
  137. package/esm2020/slider/slider-module.mjs +4 -4
  138. package/esm2020/slider/slider.mjs +4 -4
  139. package/esm2020/split/interfaces.mjs +2 -0
  140. package/esm2020/split/public-api.mjs +5 -5
  141. package/esm2020/split/split-module.mjs +19 -0
  142. package/esm2020/split/split-pane.mjs +149 -0
  143. package/esm2020/split/split.mjs +619 -0
  144. package/esm2020/split/utils.mjs +4 -4
  145. package/esm2020/tooltip/tooltip-module.mjs +4 -4
  146. package/esm2020/tooltip/tooltip.mjs +6 -6
  147. package/fesm2015/mtxAlert.mjs +12 -11
  148. package/fesm2015/mtxAlert.mjs.map +1 -1
  149. package/fesm2015/mtxButton.mjs +31 -31
  150. package/fesm2015/mtxButton.mjs.map +1 -1
  151. package/fesm2015/mtxCheckboxGroup.mjs +16 -15
  152. package/fesm2015/mtxCheckboxGroup.mjs.map +1 -1
  153. package/fesm2015/mtxColorpicker.mjs +20 -19
  154. package/fesm2015/mtxColorpicker.mjs.map +1 -1
  155. package/fesm2015/mtxColumnResize.mjs +41 -40
  156. package/fesm2015/mtxColumnResize.mjs.map +1 -1
  157. package/fesm2015/mtxCore.mjs +19 -18
  158. package/fesm2015/mtxDatetimepicker.mjs +50 -49
  159. package/fesm2015/mtxDatetimepicker.mjs.map +1 -1
  160. package/fesm2015/mtxDialog.mjs +20 -17
  161. package/fesm2015/mtxDialog.mjs.map +1 -1
  162. package/fesm2015/mtxDrawer.mjs +11 -10
  163. package/fesm2015/mtxDrawer.mjs.map +1 -1
  164. package/fesm2015/mtxGrid.mjs +90 -90
  165. package/fesm2015/mtxGrid.mjs.map +1 -1
  166. package/fesm2015/mtxLoader.mjs +13 -12
  167. package/fesm2015/mtxLoader.mjs.map +1 -1
  168. package/fesm2015/mtxPopover.mjs +20 -19
  169. package/fesm2015/mtxProgress.mjs +12 -11
  170. package/fesm2015/mtxProgress.mjs.map +1 -1
  171. package/fesm2015/mtxSelect.mjs +122 -121
  172. package/fesm2015/mtxSelect.mjs.map +1 -1
  173. package/fesm2015/mtxSlider.mjs +9 -8
  174. package/fesm2015/mtxSlider.mjs.map +1 -1
  175. package/fesm2015/mtxSplit.mjs +19 -18
  176. package/fesm2015/mtxSplit.mjs.map +1 -1
  177. package/fesm2015/mtxTooltip.mjs +11 -10
  178. package/fesm2015/ng-matero-extensions.mjs +1 -0
  179. package/fesm2020/mtxAlert.mjs +12 -11
  180. package/fesm2020/mtxAlert.mjs.map +1 -1
  181. package/fesm2020/mtxButton.mjs +31 -31
  182. package/fesm2020/mtxButton.mjs.map +1 -1
  183. package/fesm2020/mtxCheckboxGroup.mjs +16 -15
  184. package/fesm2020/mtxCheckboxGroup.mjs.map +1 -1
  185. package/fesm2020/mtxColorpicker.mjs +20 -19
  186. package/fesm2020/mtxColorpicker.mjs.map +1 -1
  187. package/fesm2020/mtxColumnResize.mjs +41 -40
  188. package/fesm2020/mtxColumnResize.mjs.map +1 -1
  189. package/fesm2020/mtxCore.mjs +19 -18
  190. package/fesm2020/mtxDatetimepicker.mjs +50 -49
  191. package/fesm2020/mtxDatetimepicker.mjs.map +1 -1
  192. package/fesm2020/mtxDialog.mjs +20 -17
  193. package/fesm2020/mtxDialog.mjs.map +1 -1
  194. package/fesm2020/mtxDrawer.mjs +11 -10
  195. package/fesm2020/mtxDrawer.mjs.map +1 -1
  196. package/fesm2020/mtxGrid.mjs +90 -90
  197. package/fesm2020/mtxGrid.mjs.map +1 -1
  198. package/fesm2020/mtxLoader.mjs +13 -12
  199. package/fesm2020/mtxLoader.mjs.map +1 -1
  200. package/fesm2020/mtxPopover.mjs +20 -19
  201. package/fesm2020/mtxProgress.mjs +12 -11
  202. package/fesm2020/mtxProgress.mjs.map +1 -1
  203. package/fesm2020/mtxSelect.mjs +122 -121
  204. package/fesm2020/mtxSelect.mjs.map +1 -1
  205. package/fesm2020/mtxSlider.mjs +9 -8
  206. package/fesm2020/mtxSlider.mjs.map +1 -1
  207. package/fesm2020/mtxSplit.mjs +19 -18
  208. package/fesm2020/mtxSplit.mjs.map +1 -1
  209. package/fesm2020/mtxTooltip.mjs +11 -10
  210. package/fesm2020/ng-matero-extensions.mjs +1 -0
  211. package/grid/_grid-theme.import.scss +1 -1
  212. package/grid/_grid-theme.scss +16 -16
  213. package/grid/{cell.component.d.ts → cell.d.ts} +8 -8
  214. package/grid/{cell.component.scss → cell.scss} +0 -0
  215. package/grid/{column-menu.component.d.ts → column-menu.d.ts} +4 -4
  216. package/grid/{column-menu.component.scss → column-menu.scss} +6 -10
  217. package/grid/column-resize/_column-resize.scss +9 -9
  218. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +1 -1
  219. package/grid/column-resize/column-resize-directives/column-resize.d.ts +1 -1
  220. package/grid/column-resize/overlay-handle.d.ts +1 -1
  221. package/grid/column-resize/resizable-directives/resizable.d.ts +1 -1
  222. package/grid/{expansion-toggle.directive.d.ts → expansion-toggle.d.ts} +4 -4
  223. package/grid/{grid.module.d.ts → grid-module.d.ts} +5 -5
  224. package/grid/{grid.service.d.ts → grid-utils.d.ts} +4 -4
  225. package/grid/{grid.component.d.ts → grid.d.ts} +18 -17
  226. package/grid/{grid.component.scss → grid.scss} +17 -29
  227. package/grid/{grid.interface.d.ts → interfaces.d.ts} +0 -6
  228. package/grid/public-api.d.ts +7 -7
  229. package/loader/_loader-theme.import.scss +1 -1
  230. package/loader/_loader-theme.scss +2 -2
  231. package/loader/{loader.module.d.ts → loader-module.d.ts} +2 -2
  232. package/loader/{loader.component.d.ts → loader.d.ts} +3 -3
  233. package/loader/{loader.component.scss → loader.scss} +2 -2
  234. package/loader/public-api.d.ts +2 -2
  235. package/package.json +8 -24
  236. package/popover/_popover-theme.import.scss +1 -1
  237. package/popover/_popover-theme.scss +2 -2
  238. package/popover/popover-content.d.ts +2 -2
  239. package/popover/popover-target.d.ts +1 -1
  240. package/popover/popover-trigger.d.ts +1 -1
  241. package/popover/popover.d.ts +1 -1
  242. package/progress/_progress-theme.import.scss +1 -1
  243. package/progress/_progress-theme.scss +2 -2
  244. package/progress/{progress.module.d.ts → progress-module.d.ts} +2 -2
  245. package/progress/{progress.component.d.ts → progress.d.ts} +3 -3
  246. package/progress/{progress.component.scss → progress.scss} +0 -0
  247. package/progress/public-api.d.ts +2 -2
  248. package/select/_select-density.scss +68 -0
  249. package/select/_select-theme.import.scss +2 -1
  250. package/select/_select-theme.scss +6 -2
  251. package/select/{option.component.d.ts → option.d.ts} +3 -3
  252. package/select/public-api.d.ts +4 -4
  253. package/select/select-module.d.ts +12 -0
  254. package/select/{select.component.d.ts → select.d.ts} +5 -5
  255. package/select/{select.component.scss → select.scss} +14 -22
  256. package/select/{templates.directive.d.ts → templates.d.ts} +33 -33
  257. package/slider/_slider-theme.import.scss +1 -1
  258. package/slider/_slider-theme.scss +3 -4
  259. package/slider/slider.d.ts +1 -1
  260. package/slider/slider.scss +3 -3
  261. package/split/_split-theme.import.scss +1 -1
  262. package/split/_split-theme.scss +2 -2
  263. package/split/{interface.d.ts → interfaces.d.ts} +2 -2
  264. package/split/public-api.d.ts +4 -4
  265. package/split/{split.module.d.ts → split-module.d.ts} +3 -3
  266. package/split/{split-pane.directive.d.ts → split-pane.d.ts} +5 -5
  267. package/split/{split.component.d.ts → split.d.ts} +11 -11
  268. package/split/{split.component.scss → split.scss} +0 -0
  269. package/split/utils.d.ts +4 -1
  270. package/tooltip/_tooltip-theme.import.scss +1 -1
  271. package/tooltip/_tooltip-theme.scss +3 -4
  272. package/tooltip/tooltip.d.ts +2 -2
  273. package/_all-color.scss +0 -47
  274. package/_all-theme.scss +0 -47
  275. package/button/button-loading.directive.d.ts +0 -26
  276. package/checkbox-group/checkbox-group.component.scss +0 -12
  277. package/core/density/private/_compatibility.scss +0 -74
  278. package/dialog/dialog.component.d.ts +0 -12
  279. package/dialog/dialog.component.scss +0 -27
  280. package/esm2020/alert/alert.component.mjs +0 -52
  281. package/esm2020/alert/alert.module.mjs +0 -18
  282. package/esm2020/button/button-loading.directive.mjs +0 -77
  283. package/esm2020/button/button.module.mjs +0 -20
  284. package/esm2020/checkbox-group/checkbox-group.component.mjs +0 -234
  285. package/esm2020/checkbox-group/checkbox-group.interface.mjs +0 -2
  286. package/esm2020/dialog/dialog.component.mjs +0 -33
  287. package/esm2020/form-group/form-group.component.mjs +0 -37
  288. package/esm2020/form-group/form-group.module.mjs +0 -18
  289. package/esm2020/form-group/mtxFormGroup.mjs +0 -5
  290. package/esm2020/form-group/public-api.mjs +0 -3
  291. package/esm2020/grid/cell.component.mjs +0 -130
  292. package/esm2020/grid/column-menu.component.mjs +0 -112
  293. package/esm2020/grid/expansion-toggle.directive.mjs +0 -64
  294. package/esm2020/grid/grid.component.mjs +0 -619
  295. package/esm2020/grid/grid.interface.mjs +0 -2
  296. package/esm2020/grid/grid.module.mjs +0 -115
  297. package/esm2020/grid/grid.service.mjs +0 -44
  298. package/esm2020/loader/loader.component.mjs +0 -69
  299. package/esm2020/loader/loader.module.mjs +0 -20
  300. package/esm2020/progress/progress.component.mjs +0 -55
  301. package/esm2020/progress/progress.module.mjs +0 -18
  302. package/esm2020/select/option.component.mjs +0 -57
  303. package/esm2020/select/select.component.mjs +0 -549
  304. package/esm2020/select/select.module.mjs +0 -74
  305. package/esm2020/select/templates.directive.mjs +0 -124
  306. package/esm2020/split/interface.mjs +0 -2
  307. package/esm2020/split/split-pane.directive.mjs +0 -149
  308. package/esm2020/split/split.component.mjs +0 -619
  309. package/esm2020/split/split.module.mjs +0 -19
  310. package/esm2020/text3d/mtxText3d.mjs +0 -5
  311. package/esm2020/text3d/public-api.mjs +0 -3
  312. package/esm2020/text3d/text3d.component.mjs +0 -45
  313. package/esm2020/text3d/text3d.module.mjs +0 -18
  314. package/fesm2015/mtxFormGroup.mjs +0 -59
  315. package/fesm2015/mtxFormGroup.mjs.map +0 -1
  316. package/fesm2015/mtxText3d.mjs +0 -67
  317. package/fesm2015/mtxText3d.mjs.map +0 -1
  318. package/fesm2020/mtxFormGroup.mjs +0 -59
  319. package/fesm2020/mtxFormGroup.mjs.map +0 -1
  320. package/fesm2020/mtxText3d.mjs +0 -67
  321. package/fesm2020/mtxText3d.mjs.map +0 -1
  322. package/form-group/_form-group-theme.import.scss +0 -2
  323. package/form-group/_form-group-theme.scss +0 -95
  324. package/form-group/form-group.component.d.ts +0 -15
  325. package/form-group/form-group.component.scss +0 -103
  326. package/form-group/form-group.module.d.ts +0 -8
  327. package/form-group/index.d.ts +0 -5
  328. package/form-group/public-api.d.ts +0 -2
  329. package/select/select.module.d.ts +0 -12
  330. package/text3d/_text3d-theme.import.scss +0 -2
  331. package/text3d/_text3d-theme.scss +0 -48
  332. package/text3d/index.d.ts +0 -5
  333. package/text3d/public-api.d.ts +0 -2
  334. package/text3d/text3d.component.d.ts +0 -14
  335. package/text3d/text3d.component.scss +0 -21
  336. package/text3d/text3d.module.d.ts +0 -8
package/README.md CHANGED
@@ -47,7 +47,6 @@ After import modules, you must define a theme. [More details about theming](http
47
47
  @use '@ng-matero/extensions' as mtx;
48
48
 
49
49
  @include mtx.all-component-themes($theme);
50
- @include mtx.all-experimental-component-themes($theme);
51
50
  ```
52
51
 
53
52
  The @use-based Sass API is only available in the version `12.0.0` or above.
package/_index.scss CHANGED
@@ -14,8 +14,7 @@
14
14
  @forward './slider/slider-theme' as slider-* show slider-theme;
15
15
  @forward './split/split-theme' as split-* show split-theme;
16
16
  @forward './tooltip/tooltip-theme' as tooltip-* show tooltip-theme;
17
- @forward './form-group/form-group-theme' as form-group-* show form-group-theme;
18
- @forward './text3d/text3d-theme' as text3d-* show text3d-theme;
19
17
 
20
- @forward './all-theme' show all-component-themes, all-experimental-component-themes;
21
- @forward './all-color' show all-component-colors, all-experimental-component-colors;
18
+ @forward './core/theming/all-theme' show all-component-themes;
19
+ @forward './core/color/all-color' show all-component-colors;
20
+ @forward './core/density/all-density' show all-component-densities;
package/_theming.scss CHANGED
@@ -14,8 +14,7 @@
14
14
  @forward './slider/slider-theme.import';
15
15
  @forward './split/split-theme.import';
16
16
  @forward './tooltip/tooltip-theme.import';
17
- @forward './form-group/form-group-theme.import';
18
- @forward './text3d/text3d-theme.import';
19
17
 
20
- @forward './all-theme' show material-extensions-theme, material-extensions-experimental-theme;
21
- @forward './all-color' show material-extensions-color, material-extensions-experimental-color;
18
+ @forward './core/theming/all-theme' show material-extensions-theme;
19
+ @forward './core/color/all-color' show material-extensions-color;
20
+ @forward './core/density/all-density' show material-extensions-density;
@@ -1,2 +1,2 @@
1
1
  @forward 'alert-theme' hide color, theme, typography;
2
- @forward 'alert-theme' as mtx-alert-* hide mtx-alert-density;
2
+ @forward 'alert-theme' as mtx-alert-*;
@@ -33,7 +33,7 @@
33
33
 
34
34
  @mixin typography($config-or-theme) {}
35
35
 
36
- @mixin _density($config-or-theme) {}
36
+ @mixin density($config-or-theme) {}
37
37
 
38
38
  @mixin theme($theme-or-color-config) {
39
39
  $theme: theming.private-legacy-get-theme($theme-or-color-config);
@@ -46,7 +46,7 @@
46
46
  @include color($color);
47
47
  }
48
48
  @if $density != null {
49
- @include _density($density);
49
+ @include density($density);
50
50
  }
51
51
  @if $typography != null {
52
52
  @include typography($typography);
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./alert.component";
2
+ import * as i1 from "./alert";
3
3
  import * as i2 from "@angular/common";
4
4
  export declare class MtxAlertModule {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlertModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtxAlertModule, [typeof i1.MtxAlertComponent], [typeof i2.CommonModule], [typeof i1.MtxAlertComponent]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxAlertModule, [typeof i1.MtxAlert], [typeof i2.CommonModule], [typeof i1.MtxAlert]>;
7
7
  static ɵinj: i0.ɵɵInjectorDeclaration<MtxAlertModule>;
8
8
  }
@@ -2,7 +2,7 @@ import { EventEmitter, ChangeDetectorRef } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare type MtxAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
5
- export declare class MtxAlertComponent {
5
+ export declare class MtxAlert {
6
6
  private _changeDetectorRef;
7
7
  get _hostClassList(): string;
8
8
  /** The alert's type. Can be `default`, `info`, `success`, `warning` or `danger`. */
@@ -14,10 +14,10 @@ export declare class MtxAlertComponent {
14
14
  /** The alert's elevation (0~24). */
15
15
  elevation: number;
16
16
  /** Event emitted when the alert closed. */
17
- closed: EventEmitter<MtxAlertComponent>;
17
+ closed: EventEmitter<MtxAlert>;
18
18
  constructor(_changeDetectorRef: ChangeDetectorRef);
19
19
  _onClosed(): void;
20
20
  static ngAcceptInputType_dismissible: BooleanInput;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlertComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxAlertComponent, "mtx-alert", ["mtxAlert"], { "type": "type"; "dismissible": "dismissible"; "elevation": "elevation"; }, { "closed": "closed"; }, never, ["*"], false>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlert, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxAlert, "mtx-alert", ["mtxAlert"], { "type": "type"; "dismissible": "dismissible"; "elevation": "elevation"; }, { "closed": "closed"; }, never, ["*"], false, never>;
23
23
  }
File without changes
@@ -1,2 +1,2 @@
1
- export * from './alert.module';
2
- export * from './alert.component';
1
+ export * from './alert-module';
2
+ export * from './alert';
@@ -0,0 +1,25 @@
1
+ import { ElementRef, OnChanges, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
3
+ import { ThemePalette } from '@angular/material/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MatButtonLoading implements OnChanges {
6
+ private _elementRef;
7
+ private _viewContainerRef;
8
+ private _renderer;
9
+ private spinner;
10
+ get loading(): boolean;
11
+ set loading(value: boolean);
12
+ private _loading;
13
+ get disabled(): boolean;
14
+ set disabled(value: boolean);
15
+ private _disabled;
16
+ color: ThemePalette;
17
+ constructor(_elementRef: ElementRef<HTMLButtonElement>, _viewContainerRef: ViewContainerRef, _renderer: Renderer2);
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ private createSpinner;
20
+ private destroySpinner;
21
+ static ngAcceptInputType_loading: BooleanInput;
22
+ static ngAcceptInputType_disabled: BooleanInput;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonLoading, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonLoading, "[mat-button][loading], [mat-raised-button][loading], [mat-stroked-button][loading], [mat-flat-button][loading], [mat-icon-button][loading], [mat-fab][loading], [mat-mini-fab][loading]", never, { "loading": "loading"; "disabled": "disabled"; "color": "color"; }, {}, never, never, false, never>;
25
+ }
@@ -1,11 +1,12 @@
1
1
  .mat-button-loading {
2
- .mat-button-wrapper {
2
+ .mdc-button__label,
3
+ .mat-icon {
3
4
  visibility: hidden;
4
5
  }
5
6
 
6
- .mat-progress-spinner {
7
+ .mat-mdc-progress-spinner {
7
8
  position: absolute;
8
- top: calc(50% - 10px);
9
- left: calc(50% - 10px);
9
+ top: calc(50% - 12px);
10
+ left: calc(50% - 12px);
10
11
  }
11
12
  }
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./button-loading.directive";
2
+ import * as i1 from "./button-loading";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/material/button";
5
5
  import * as i4 from "@angular/material/progress-spinner";
6
6
  export declare class MtxButtonModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxButtonModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtxButtonModule, [typeof i1.MatButtonLoadingDirective], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.MatProgressSpinnerModule], [typeof i1.MatButtonLoadingDirective]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxButtonModule, [typeof i1.MatButtonLoading], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.MatProgressSpinnerModule], [typeof i1.MatButtonLoading]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<MtxButtonModule>;
10
10
  }
@@ -1,2 +1,2 @@
1
- export * from './button.module';
2
- export * from './button-loading.directive';
1
+ export * from './button-module';
2
+ export * from './button-loading';
@@ -1,11 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox-group.component";
2
+ import * as i1 from "./checkbox-group";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
5
  import * as i4 from "@angular/material/checkbox";
6
6
  import * as i5 from "@ng-matero/extensions/core";
7
7
  export declare class MtxCheckboxGroupModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxCheckboxGroupModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtxCheckboxGroupModule, [typeof i1.MtxCheckboxGroupComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatCheckboxModule, typeof i5.MtxPipesModule], [typeof i1.MtxCheckboxGroupComponent, typeof i5.MtxPipesModule]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxCheckboxGroupModule, [typeof i1.MtxCheckboxGroup], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatCheckboxModule, typeof i5.MtxPipesModule], [typeof i1.MtxCheckboxGroup, typeof i5.MtxPipesModule]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<MtxCheckboxGroupModule>;
11
11
  }
@@ -2,15 +2,15 @@ import { EventEmitter, ChangeDetectorRef, AfterViewInit, QueryList, ElementRef,
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { BooleanInput } from '@angular/cdk/coercion';
4
4
  import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
5
- import { MtxCheckboxGroupOption } from './checkbox-group.interface';
6
5
  import { FocusMonitor } from '@angular/cdk/a11y';
6
+ import { MtxCheckboxGroupOption } from './interfaces';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class MtxCheckboxBase {
9
9
  label?: any;
10
10
  value?: any;
11
11
  constructor(label?: any, value?: any);
12
12
  }
13
- export declare class MtxCheckboxGroupComponent implements AfterViewInit, OnDestroy, ControlValueAccessor {
13
+ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, ControlValueAccessor {
14
14
  private _changeDetectorRef;
15
15
  private _focusMonitor;
16
16
  private _elementRef;
@@ -78,6 +78,6 @@ export declare class MtxCheckboxGroupComponent implements AfterViewInit, OnDestr
78
78
  _updateMasterCheckboxState(e: MatCheckboxChange, index: number): void;
79
79
  static ngAcceptInputType_showSelectAll: BooleanInput;
80
80
  static ngAcceptInputType_disabled: BooleanInput;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxCheckboxGroupComponent, never>;
82
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxCheckboxGroupComponent, "mtx-checkbox-group", ["mtxCheckboxGroup"], { "items": "items"; "bindLabel": "bindLabel"; "bindValue": "bindValue"; "showSelectAll": "showSelectAll"; "selectAllLabel": "selectAllLabel"; "compareWith": "compareWith"; "disabled": "disabled"; }, { "change": "change"; }, ["_checkboxes"], never, false>;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxCheckboxGroup, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxCheckboxGroup, "mtx-checkbox-group", ["mtxCheckboxGroup"], { "items": "items"; "bindLabel": "bindLabel"; "bindValue": "bindValue"; "showSelectAll": "showSelectAll"; "selectAllLabel": "selectAllLabel"; "compareWith": "compareWith"; "disabled": "disabled"; }, { "change": "change"; }, ["_checkboxes"], never, false, never>;
83
83
  }
File without changes
@@ -1,3 +1,3 @@
1
- export * from './checkbox-group.module';
2
- export * from './checkbox-group.component';
3
- export * from './checkbox-group.interface';
1
+ export * from './checkbox-group-module';
2
+ export * from './checkbox-group';
3
+ export * from './interfaces';
@@ -1,2 +1,2 @@
1
1
  @forward 'colorpicker-theme' hide color, theme, typography;
2
- @forward 'colorpicker-theme' as mtx-colorpicker-* hide mtx-colorpicker-density;
2
+ @forward 'colorpicker-theme' as mtx-colorpicker-*;
@@ -21,7 +21,7 @@
21
21
 
22
22
  @mixin typography($config-or-theme) {}
23
23
 
24
- @mixin _density($config-or-theme) {}
24
+ @mixin density($config-or-theme) {}
25
25
 
26
26
  @mixin theme($theme-or-color-config) {
27
27
  $theme: theming.private-legacy-get-theme($theme-or-color-config);
@@ -34,7 +34,7 @@
34
34
  @include color($color);
35
35
  }
36
36
  @if $density != null {
37
- @include _density($density);
37
+ @include density($density);
38
38
  }
39
39
  @if $typography != null {
40
40
  @include typography($typography);
@@ -88,5 +88,5 @@ export declare class MtxColorpickerInput implements ControlValueAccessor, AfterV
88
88
  static ngAcceptInputType_value: any;
89
89
  static ngAcceptInputType_disabled: BooleanInput;
90
90
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerInput, [null, { optional: true; }]>;
91
- static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerInput, "input[mtxColorpicker]", ["mtxColorpickerInput"], { "mtxColorpicker": "mtxColorpicker"; "disabled": "disabled"; "value": "value"; "format": "format"; }, { "colorChange": "colorChange"; "colorInput": "colorInput"; }, never, never, false>;
91
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerInput, "input[mtxColorpicker]", ["mtxColorpickerInput"], { "mtxColorpicker": "mtxColorpicker"; "disabled": "disabled"; "value": "value"; "format": "format"; }, { "colorChange": "colorChange"; "colorInput": "colorInput"; }, never, never, false, never>;
92
92
  }
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /** Can be used to override the icon of a `mtxColorpickerToggle`. */
7
7
  export declare class MtxColorpickerToggleIcon {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggleIcon, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerToggleIcon, "[mtxColorpickerToggleIcon]", never, {}, {}, never, never, false>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerToggleIcon, "[mtxColorpickerToggleIcon]", never, {}, {}, never, never, false, never>;
10
10
  }
11
11
  export declare class MtxColorpickerToggle implements AfterContentInit, OnChanges, OnDestroy {
12
12
  private _changeDetectorRef;
@@ -36,5 +36,5 @@ export declare class MtxColorpickerToggle implements AfterContentInit, OnChanges
36
36
  static ngAcceptInputType_disabled: BooleanInput;
37
37
  static ngAcceptInputType_disableRipple: BooleanInput;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggle, [null, { attribute: "tabindex"; }]>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerToggle, "mtx-colorpicker-toggle", ["mtxColorpickerToggle"], { "picker": "for"; "tabIndex": "tabIndex"; "ariaLabel": "aria-label"; "disabled": "disabled"; "disableRipple": "disableRipple"; }, {}, ["_customIcon"], ["[mtxColorpickerToggleIcon]"], false>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerToggle, "mtx-colorpicker-toggle", ["mtxColorpickerToggle"], { "picker": "for"; "tabIndex": "tabIndex"; "ariaLabel": "aria-label"; "disabled": "disabled"; "disableRipple": "disableRipple"; }, {}, ["_customIcon"], ["[mtxColorpickerToggleIcon]"], false, never>;
40
40
  }
@@ -37,7 +37,7 @@ export declare class MtxColorpickerContent extends _MtxColorpickerContentBase im
37
37
  ngOnDestroy(): void;
38
38
  getColorString(e: ColorEvent): string;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerContent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerContent, "mtx-colorpicker-content", ["mtxColorpickerContent"], { "color": "color"; }, {}, never, never, false>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerContent, "mtx-colorpicker-content", ["mtxColorpickerContent"], { "color": "color"; }, {}, never, never, false, never>;
41
41
  }
42
42
  export declare class MtxColorpicker implements OnChanges, OnDestroy {
43
43
  private _overlay;
@@ -128,6 +128,6 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
128
128
  private _getCloseStream;
129
129
  static ngAcceptInputType_disabled: BooleanInput;
130
130
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpicker, [null, null, null, null, { optional: true; }, { optional: true; }]>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpicker, "mtx-colorpicker", ["mtxColorpicker"], { "content": "content"; "disabled": "disabled"; "xPosition": "xPosition"; "yPosition": "yPosition"; "restoreFocus": "restoreFocus"; "opened": "opened"; "color": "color"; "format": "format"; }, { "openedStream": "opened"; "closedStream": "closed"; }, never, never, false>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpicker, "mtx-colorpicker", ["mtxColorpicker"], { "content": "content"; "disabled": "disabled"; "xPosition": "xPosition"; "yPosition": "yPosition"; "restoreFocus": "restoreFocus"; "opened": "opened"; "color": "color"; "format": "format"; }, { "openedStream": "opened"; "closedStream": "closed"; }, never, never, false, never>;
132
132
  }
133
133
  export {};
@@ -24,5 +24,5 @@ export declare class CdkColumnResizeFlex extends ColumnResize {
24
24
  protected readonly table: CdkTable<unknown>;
25
25
  constructor(columnResizeNotifier: ColumnResizeNotifier, elementRef: ElementRef<HTMLElement>, eventDispatcher: HeaderRowEventDispatcher, ngZone: NgZone, notifier: ColumnResizeNotifierSource, table: CdkTable<unknown>);
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResizeFlex, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResizeFlex, "cdk-table[columnResize]", never, {}, {}, never, never, false>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResizeFlex, "cdk-table[columnResize]", never, {}, {}, never, never, false, never>;
28
28
  }
@@ -24,5 +24,5 @@ export declare class CdkColumnResize extends ColumnResize {
24
24
  protected readonly table: CdkTable<unknown>;
25
25
  constructor(columnResizeNotifier: ColumnResizeNotifier, elementRef: ElementRef<HTMLElement>, eventDispatcher: HeaderRowEventDispatcher, ngZone: NgZone, notifier: ColumnResizeNotifierSource, table: CdkTable<unknown>);
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResize, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResize, "table[cdk-table][columnResize]", never, {}, {}, never, never, false>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResize, "table[cdk-table][columnResize]", never, {}, {}, never, never, false, never>;
28
28
  }
@@ -35,5 +35,5 @@ export declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
35
35
  private _listenForResizeActivity;
36
36
  private _listenForHoverActivity;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResize, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, {}, {}, never, never, false>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, {}, {}, never, never, false, never>;
39
39
  }
@@ -39,5 +39,5 @@ export declare abstract class ResizeOverlayHandle implements AfterViewInit, OnDe
39
39
  private _isLtr;
40
40
  private _notifyResizeEnded;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ResizeOverlayHandle, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, false>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, false, never>;
43
43
  }
@@ -58,5 +58,5 @@ export declare abstract class Resizable<HandleComponent extends ResizeOverlayHan
58
58
  private _applyMaxWidthPx;
59
59
  private _appendInlineHandle;
60
60
  static ɵfac: i0.ɵɵFactoryDeclaration<Resizable<any>, never>;
61
- static ɵdir: i0.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never, false>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never, false, never>;
62
62
  }
@@ -0,0 +1,28 @@
1
+ @use '../theming/theming';
2
+ @use '../theming/all-theme';
3
+
4
+ // Includes all of the color styles.
5
+ @mixin all-component-colors($config-or-theme) {
6
+ // In case a theme object has been passed instead of a configuration for
7
+ // the color system, extract the color config from the theme object.
8
+ $config: if(
9
+ theming.private-is-theme-object($config-or-theme),
10
+ theming.get-color-config($config-or-theme),
11
+ $config-or-theme
12
+ );
13
+
14
+ @if $config == null {
15
+ @error 'No color configuration specified.';
16
+ }
17
+
18
+ @include all-theme.all-component-themes((
19
+ color: $config,
20
+ typography: null,
21
+ density: null,
22
+ ));
23
+ }
24
+
25
+ // @deprecated Use `all-component-colors`.
26
+ @mixin material-extensions-color($config-or-theme) {
27
+ @include all-component-colors($config-or-theme);
28
+ }
@@ -0,0 +1,24 @@
1
+ @use '../theming/theming';
2
+ @use '../../select/select-theme';
3
+
4
+ // Includes all of the density styles.
5
+ @mixin all-component-densities($config-or-theme) {
6
+ // In case a theme object has been passed instead of a configuration for
7
+ // the color system, extract the color config from the theme object.
8
+ $config: if(
9
+ theming.private-is-theme-object($config-or-theme),
10
+ theming.get-color-config($config-or-theme),
11
+ $config-or-theme
12
+ );
13
+
14
+ @if $config == null {
15
+ @error 'No density configuration specified.';
16
+ }
17
+
18
+ @include select-theme.density($config);
19
+ }
20
+
21
+ // @deprecated Use `all-component-densities`.
22
+ @mixin material-extensions-density($config-or-theme) {
23
+ @include all-component-densities($config-or-theme);
24
+ }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
- @use 'sass:math';
3
2
  @use 'sass:meta';
4
3
  @use 'variables';
4
+ @use '@material/elevation/elevation-theme' as mdc-elevation;
5
5
 
6
6
  // A collection of mixins and CSS classes that can be used to apply elevation to a material
7
7
  // element.
@@ -22,113 +22,6 @@
22
22
  // For an explanation of the design behind how elevation is implemented, see the design doc at
23
23
  // https://goo.gl/Kq0k9Z.
24
24
 
25
- // Colors for umbra, penumbra, and ambient shadows. As described in the design doc, each elevation
26
- // level is created using a set of 3 shadow values, one for umbra (the shadow representing the
27
- // space completely obscured by an object relative to its light source), one for penumbra (the
28
- // space partially obscured by an object), and one for ambient (the space which contains the object
29
- // itself). For a further explanation of these terms and their meanings, see
30
- // https://en.wikipedia.org/wiki/Umbra,_penumbra_and_antumbra.
31
-
32
- // Maps for the different shadow sets and their values within each z-space. These values were
33
- // created by taking a few reference shadow sets created by Google's Designers and interpolating
34
- // all of the values between them.
35
-
36
- @function _get-umbra-map($color, $opacity) {
37
- $shadow-color: if(meta.type-of($color) == color, rgba($color, $opacity * .2), $color);
38
-
39
- @return (
40
- 0: '0px 0px 0px 0px #{$shadow-color}',
41
- 1: '0px 2px 1px -1px #{$shadow-color}',
42
- 2: '0px 3px 1px -2px #{$shadow-color}',
43
- 3: '0px 3px 3px -2px #{$shadow-color}',
44
- 4: '0px 2px 4px -1px #{$shadow-color}',
45
- 5: '0px 3px 5px -1px #{$shadow-color}',
46
- 6: '0px 3px 5px -1px #{$shadow-color}',
47
- 7: '0px 4px 5px -2px #{$shadow-color}',
48
- 8: '0px 5px 5px -3px #{$shadow-color}',
49
- 9: '0px 5px 6px -3px #{$shadow-color}',
50
- 10: '0px 6px 6px -3px #{$shadow-color}',
51
- 11: '0px 6px 7px -4px #{$shadow-color}',
52
- 12: '0px 7px 8px -4px #{$shadow-color}',
53
- 13: '0px 7px 8px -4px #{$shadow-color}',
54
- 14: '0px 7px 9px -4px #{$shadow-color}',
55
- 15: '0px 8px 9px -5px #{$shadow-color}',
56
- 16: '0px 8px 10px -5px #{$shadow-color}',
57
- 17: '0px 8px 11px -5px #{$shadow-color}',
58
- 18: '0px 9px 11px -5px #{$shadow-color}',
59
- 19: '0px 9px 12px -6px #{$shadow-color}',
60
- 20: '0px 10px 13px -6px #{$shadow-color}',
61
- 21: '0px 10px 13px -6px #{$shadow-color}',
62
- 22: '0px 10px 14px -6px #{$shadow-color}',
63
- 23: '0px 11px 14px -7px #{$shadow-color}',
64
- 24: '0px 11px 15px -7px #{$shadow-color}'
65
- );
66
- }
67
-
68
- @function _get-penumbra-map($color, $opacity) {
69
- $shadow-color: if(meta.type-of($color) == color, rgba($color, $opacity * .14), $color);
70
-
71
- @return (
72
- 0: '0px 0px 0px 0px #{$shadow-color}',
73
- 1: '0px 1px 1px 0px #{$shadow-color}',
74
- 2: '0px 2px 2px 0px #{$shadow-color}',
75
- 3: '0px 3px 4px 0px #{$shadow-color}',
76
- 4: '0px 4px 5px 0px #{$shadow-color}',
77
- 5: '0px 5px 8px 0px #{$shadow-color}',
78
- 6: '0px 6px 10px 0px #{$shadow-color}',
79
- 7: '0px 7px 10px 1px #{$shadow-color}',
80
- 8: '0px 8px 10px 1px #{$shadow-color}',
81
- 9: '0px 9px 12px 1px #{$shadow-color}',
82
- 10: '0px 10px 14px 1px #{$shadow-color}',
83
- 11: '0px 11px 15px 1px #{$shadow-color}',
84
- 12: '0px 12px 17px 2px #{$shadow-color}',
85
- 13: '0px 13px 19px 2px #{$shadow-color}',
86
- 14: '0px 14px 21px 2px #{$shadow-color}',
87
- 15: '0px 15px 22px 2px #{$shadow-color}',
88
- 16: '0px 16px 24px 2px #{$shadow-color}',
89
- 17: '0px 17px 26px 2px #{$shadow-color}',
90
- 18: '0px 18px 28px 2px #{$shadow-color}',
91
- 19: '0px 19px 29px 2px #{$shadow-color}',
92
- 20: '0px 20px 31px 3px #{$shadow-color}',
93
- 21: '0px 21px 33px 3px #{$shadow-color}',
94
- 22: '0px 22px 35px 3px #{$shadow-color}',
95
- 23: '0px 23px 36px 3px #{$shadow-color}',
96
- 24: '0px 24px 38px 3px #{$shadow-color}'
97
- );
98
- }
99
-
100
- @function _get-ambient-map($color, $opacity) {
101
- $shadow-color: if(meta.type-of($color) == color, rgba($color, $opacity * .12), $color);
102
-
103
- @return (
104
- 0: '0px 0px 0px 0px #{$shadow-color}',
105
- 1: '0px 1px 3px 0px #{$shadow-color}',
106
- 2: '0px 1px 5px 0px #{$shadow-color}',
107
- 3: '0px 1px 8px 0px #{$shadow-color}',
108
- 4: '0px 1px 10px 0px #{$shadow-color}',
109
- 5: '0px 1px 14px 0px #{$shadow-color}',
110
- 6: '0px 1px 18px 0px #{$shadow-color}',
111
- 7: '0px 2px 16px 1px #{$shadow-color}',
112
- 8: '0px 3px 14px 2px #{$shadow-color}',
113
- 9: '0px 3px 16px 2px #{$shadow-color}',
114
- 10: '0px 4px 18px 3px #{$shadow-color}',
115
- 11: '0px 4px 20px 3px #{$shadow-color}',
116
- 12: '0px 5px 22px 4px #{$shadow-color}',
117
- 13: '0px 5px 24px 4px #{$shadow-color}',
118
- 14: '0px 5px 26px 4px #{$shadow-color}',
119
- 15: '0px 6px 28px 5px #{$shadow-color}',
120
- 16: '0px 6px 30px 5px #{$shadow-color}',
121
- 17: '0px 6px 32px 5px #{$shadow-color}',
122
- 18: '0px 7px 34px 6px #{$shadow-color}',
123
- 19: '0px 7px 36px 6px #{$shadow-color}',
124
- 20: '0px 8px 38px 7px #{$shadow-color}',
125
- 21: '0px 8px 40px 7px #{$shadow-color}',
126
- 22: '0px 8px 42px 7px #{$shadow-color}',
127
- 23: '0px 9px 44px 8px #{$shadow-color}',
128
- 24: '0px 9px 46px 8px #{$shadow-color}'
129
- );
130
- }
131
-
132
25
  // The default duration value for elevation transitions.
133
26
  $transition-duration: 280ms !default;
134
27
 
@@ -138,36 +31,37 @@ $transition-timing-function: variables.$fast-out-slow-in-timing-function;
138
31
  // The default color for elevation shadows.
139
32
  $color: black !default;
140
33
 
141
- // The default opacity scaling value for elevation shadows.
142
- $opacity: 1 !default;
143
-
144
34
  // Prefix for elevation-related selectors.
145
35
  $prefix: 'mat-elevation-z';
146
36
 
147
37
  // Applies the correct css rules to an element to give it the elevation specified by $zValue.
148
38
  // The $zValue must be between 0 and 24.
149
- @mixin elevation($zValue, $color: $color, $opacity: $opacity) {
150
- @if meta.type-of($zValue) != number or not math.is-unitless($zValue) {
151
- @error '$zValue must be a unitless number';
39
+ @mixin elevation($zValue, $color: $color, $opacity: null) {
40
+ @if meta.type-of($color) == color and $opacity == null {
41
+ @include mdc-elevation.elevation($zValue, $color);
152
42
  }
153
- @if $zValue < 0 or $zValue > 24 {
154
- @error '$zValue must be between 0 and 24';
43
+ @else {
44
+ // Copied from @material/elevation/_elevation-theme.scss#_box-shadow
45
+ // TODO(mmalerba): Add support for graceful handling of CSS var color to MDC.
46
+ $shadow-color:
47
+ if(meta.type-of($color) == color and $opacity != null, rgba($color, $opacity), $color);
48
+ $umbra-z-value: map.get(mdc-elevation.$umbra-map, $zValue);
49
+ $penumbra-z-value: map.get(mdc-elevation.$penumbra-map, $zValue);
50
+ $ambient-z-value: map.get(mdc-elevation.$ambient-map, $zValue);
51
+ $box-shadow: (
52
+ #{'#{$umbra-z-value} #{$shadow-color}'},
53
+ #{'#{$penumbra-z-value} #{$shadow-color}'},
54
+ #{$ambient-z-value} $shadow-color
55
+ );
56
+ @include mdc-elevation.shadow($box-shadow);
155
57
  }
156
-
157
- box-shadow:
158
- #{map.get(_get-umbra-map($color, $opacity), $zValue)},
159
- #{map.get(_get-penumbra-map($color, $opacity), $zValue)},
160
- #{map.get(_get-ambient-map($color, $opacity), $zValue)};
161
58
  }
162
59
 
163
60
  // Applies the elevation to an element in a manner that allows
164
61
  // consumers to override it via the Material elevation classes.
165
- @mixin overridable-elevation(
166
- $zValue,
167
- $color: $color,
168
- $opacity: $opacity) {
62
+ @mixin overridable-elevation($zValue, $color: $color) {
169
63
  &:not([class*='#{$prefix}']) {
170
- @include elevation($zValue, $color, $opacity);
64
+ @include elevation($zValue, $color);
171
65
  }
172
66
  }
173
67
 
@@ -1,20 +1,20 @@
1
1
  @use 'sass:map';
2
2
  @use './elevation';
3
3
 
4
- @mixin private-theme-elevation($zValue, $config, $opacity: elevation.$opacity) {
4
+ @mixin private-theme-elevation($zValue, $config) {
5
5
  $foreground: map.get($config, foreground);
6
6
  $elevation-color: map.get($foreground, elevation);
7
7
  $elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color);
8
8
 
9
- @include elevation.elevation($zValue, $elevation-color-or-default, $opacity);
9
+ @include elevation.elevation($zValue, $elevation-color-or-default);
10
10
  }
11
11
 
12
- @mixin private-theme-overridable-elevation($zValue, $config, $opacity: elevation.$opacity) {
12
+ @mixin private-theme-overridable-elevation($zValue, $config) {
13
13
  $foreground: map.get($config, foreground);
14
14
  $elevation-color: map.get($foreground, elevation);
15
15
  $elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color);
16
16
 
17
- @include elevation.overridable-elevation($zValue, $elevation-color-or-default, $opacity);
17
+ @include elevation.overridable-elevation($zValue, $elevation-color-or-default);
18
18
  }
19
19
 
20
20
  // If the mat-animation-noop class is present on the components root element,
@@ -22,20 +22,11 @@
22
22
  // NOTE: Currently this mixin should only be used with components that do not
23
23
  // have any projected content.
24
24
  @mixin private-animation-noop() {
25
- // @at-root is used to steps outside of the hierarchy of the scss rules. This is
26
- // done to allow a class to be added to be added to base of the scss nesting
27
- // context.
28
- // For example:
29
- // .my-root {
30
- // .my-subclass {
31
- // @include mat-private-animation-noop();
32
- // }
33
- // }
34
- // results in:
35
- // ._mat-animation-noopable.my-root .my-subclass { ... }
36
- @at-root ._mat-animation-noopable#{&} {
37
- transition: none;
38
- animation: none;
25
+ &._mat-animation-noopable {
26
+ // Use !important here since we don't know what context this mixin will
27
+ // be included in and MDC can have some really specific selectors.
28
+ transition: none !important;
29
+ animation: none !important;
39
30
  @content;
40
31
  }
41
32
  }
@@ -4,7 +4,7 @@ $xsmall: 'max-width: 599px';
4
4
  $small: 'max-width: 959px';
5
5
 
6
6
  // TODO: Revisit all z-indices before beta
7
- // z-index master list
7
+ // z-index main list
8
8
 
9
9
  $z-index-fab: 20 !default;
10
10
  $z-index-drawer: 100 !default;