@ng-matero/extensions 12.7.0 → 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 (537) hide show
  1. package/README.md +2 -16
  2. package/_all-color.scss +1 -1
  3. package/_index.scss +1 -1
  4. package/_theming.scss +1 -1
  5. package/alert/_alert-theme.scss +2 -2
  6. package/alert/alert.component.d.ts +3 -0
  7. package/alert/alert.module.d.ts +6 -0
  8. package/alert/mtxAlert.d.ts +1 -0
  9. package/alert/package.json +5 -6
  10. package/button/button-loading.directive.d.ts +3 -0
  11. package/button/button.module.d.ts +8 -0
  12. package/button/mtxButton.d.ts +1 -0
  13. package/button/package.json +5 -6
  14. package/checkbox-group/checkbox-group.component.d.ts +3 -0
  15. package/checkbox-group/checkbox-group.module.d.ts +9 -0
  16. package/checkbox-group/mtxCheckboxGroup.d.ts +1 -0
  17. package/checkbox-group/package.json +5 -6
  18. package/colorpicker/_colorpicker-theme.scss +2 -2
  19. package/colorpicker/colorpicker-input.d.ts +3 -0
  20. package/colorpicker/colorpicker-module.d.ts +13 -0
  21. package/colorpicker/colorpicker-toggle.d.ts +5 -0
  22. package/colorpicker/colorpicker.d.ts +6 -1
  23. package/colorpicker/mtxColorpicker.d.ts +1 -0
  24. package/colorpicker/package.json +5 -6
  25. package/column-resize/column-resize-directives/column-resize-flex.d.ts +3 -0
  26. package/column-resize/column-resize-directives/column-resize.d.ts +3 -0
  27. package/column-resize/column-resize-module.d.ts +6 -7
  28. package/column-resize/column-resize-notifier.d.ts +5 -7
  29. package/column-resize/column-resize.d.ts +3 -0
  30. package/column-resize/column-size-store.d.ts +3 -7
  31. package/column-resize/event-dispatcher.d.ts +3 -0
  32. package/column-resize/mtxColumnResize.d.ts +1 -0
  33. package/column-resize/overlay-handle.d.ts +3 -0
  34. package/column-resize/package.json +5 -6
  35. package/column-resize/resizable.d.ts +3 -0
  36. package/column-resize/resize-strategy.d.ts +7 -0
  37. package/core/datetime/datetime.module.d.ts +8 -0
  38. package/core/datetime/native-datetime-adapter.d.ts +3 -0
  39. package/core/density/private/_compatibility.scss +74 -0
  40. package/core/mtxCore.d.ts +1 -0
  41. package/core/package.json +5 -6
  42. package/{pipes/public-api.d.ts → core/pipes/index.d.ts} +0 -0
  43. package/core/pipes/pipes.module.d.ts +8 -0
  44. package/{pipes → core/pipes}/to-observable.pipe.d.ts +3 -0
  45. package/core/public-api.d.ts +1 -0
  46. package/core/style/_elevation.scss +197 -0
  47. package/core/style/_private.scss +41 -0
  48. package/core/style/_variables.scss +44 -0
  49. package/core/style/_vendor-prefixes.scss +60 -0
  50. package/core/theming/_palette.scss +746 -0
  51. package/core/theming/_theming.scss +430 -0
  52. package/core/typography/_typography-utils.scss +101 -0
  53. package/core/typography/_typography.scss +273 -0
  54. package/datetimepicker/_datetimepicker-theme.scss +5 -5
  55. package/datetimepicker/calendar-body.d.ts +3 -0
  56. package/datetimepicker/calendar-body.scss +5 -4
  57. package/datetimepicker/calendar.d.ts +4 -1
  58. package/datetimepicker/clock.d.ts +3 -0
  59. package/datetimepicker/datetimepicker-input.d.ts +3 -0
  60. package/datetimepicker/datetimepicker-module.d.ts +18 -0
  61. package/datetimepicker/datetimepicker-toggle.d.ts +5 -0
  62. package/datetimepicker/datetimepicker-types.d.ts +1 -0
  63. package/datetimepicker/datetimepicker.d.ts +7 -2
  64. package/datetimepicker/month-view.d.ts +4 -1
  65. package/datetimepicker/mtxDatetimepicker.d.ts +1 -0
  66. package/datetimepicker/multi-year-view.d.ts +4 -1
  67. package/datetimepicker/package.json +5 -6
  68. package/datetimepicker/public-api.d.ts +1 -0
  69. package/datetimepicker/year-view.d.ts +4 -1
  70. package/dialog/dialog.component.d.ts +3 -0
  71. package/dialog/dialog.d.ts +3 -0
  72. package/dialog/dialog.module.d.ts +10 -0
  73. package/dialog/mtxDialog.d.ts +1 -0
  74. package/dialog/package.json +5 -6
  75. package/esm2020/alert/alert.component.mjs +52 -0
  76. package/esm2020/alert/alert.module.mjs +18 -0
  77. package/{esm2015/alert/mtxAlert.js → esm2020/alert/mtxAlert.mjs} +0 -0
  78. package/{esm2015/alert/public-api.js → esm2020/alert/public-api.mjs} +0 -0
  79. package/esm2020/button/button-loading.directive.mjs +79 -0
  80. package/esm2020/button/button.module.mjs +20 -0
  81. package/{esm2015/button/mtxButton.js → esm2020/button/mtxButton.mjs} +0 -0
  82. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  83. package/esm2020/checkbox-group/checkbox-group.component.mjs +234 -0
  84. package/{esm2015/checkbox-group/checkbox-group.interface.js → esm2020/checkbox-group/checkbox-group.interface.mjs} +0 -0
  85. package/esm2020/checkbox-group/checkbox-group.module.mjs +21 -0
  86. package/{esm2015/checkbox-group/mtxCheckboxGroup.js → esm2020/checkbox-group/mtxCheckboxGroup.mjs} +0 -0
  87. package/{esm2015/checkbox-group/public-api.js → esm2020/checkbox-group/public-api.mjs} +0 -0
  88. package/{esm2015/colorpicker/colorpicker-animations.js → esm2020/colorpicker/colorpicker-animations.mjs} +0 -0
  89. package/esm2020/colorpicker/colorpicker-input.mjs +228 -0
  90. package/esm2020/colorpicker/colorpicker-module.mjs +65 -0
  91. package/esm2020/colorpicker/colorpicker-toggle.mjs +90 -0
  92. package/esm2020/colorpicker/colorpicker.mjs +363 -0
  93. package/{esm2015/colorpicker/mtxColorpicker.js → esm2020/colorpicker/mtxColorpicker.mjs} +0 -0
  94. package/{esm2015/colorpicker/public-api.js → esm2020/colorpicker/public-api.mjs} +0 -0
  95. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +45 -0
  96. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +45 -0
  97. package/{esm2015/column-resize/column-resize-directives/constants.js → esm2020/column-resize/column-resize-directives/constants.mjs} +0 -0
  98. package/esm2020/column-resize/column-resize-module.mjs +28 -0
  99. package/esm2020/column-resize/column-resize-notifier.mjs +47 -0
  100. package/esm2020/column-resize/column-resize.mjs +82 -0
  101. package/esm2020/column-resize/column-size-store.mjs +20 -0
  102. package/esm2020/column-resize/event-dispatcher.mjs +67 -0
  103. package/{esm2015/column-resize/mtxColumnResize.js → esm2020/column-resize/mtxColumnResize.mjs} +0 -0
  104. package/esm2020/column-resize/overlay-handle.mjs +146 -0
  105. package/{esm2015/column-resize/polyfill.js → esm2020/column-resize/polyfill.mjs} +0 -0
  106. package/{esm2015/column-resize/public-api.js → esm2020/column-resize/public-api.mjs} +0 -0
  107. package/esm2020/column-resize/resizable.mjs +199 -0
  108. package/{esm2015/column-resize/resize-ref.js → esm2020/column-resize/resize-ref.mjs} +0 -0
  109. package/esm2020/column-resize/resize-strategy.mjs +232 -0
  110. package/{esm2015/column-resize/selectors.js → esm2020/column-resize/selectors.mjs} +0 -0
  111. package/{esm2015/core/datetime/datetime-adapter.js → esm2020/core/datetime/datetime-adapter.mjs} +0 -0
  112. package/{esm2015/core/datetime/datetime-formats.js → esm2020/core/datetime/datetime-formats.mjs} +0 -0
  113. package/esm2020/core/datetime/datetime.module.mjs +42 -0
  114. package/{esm2015/core/datetime/index.js → esm2020/core/datetime/index.mjs} +0 -0
  115. package/esm2020/core/datetime/native-datetime-adapter.mjs +138 -0
  116. package/{esm2015/core/datetime/native-datetime-formats.js → esm2020/core/datetime/native-datetime-formats.mjs} +0 -0
  117. package/{esm2015/core/mtxCore.js → esm2020/core/mtxCore.mjs} +0 -0
  118. package/esm2020/core/pipes/index.mjs +3 -0
  119. package/esm2020/core/pipes/pipes.module.mjs +18 -0
  120. package/esm2020/core/pipes/to-observable.pipe.mjs +15 -0
  121. package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +2 -1
  122. package/esm2020/datetimepicker/calendar-body.mjs +78 -0
  123. package/esm2020/datetimepicker/calendar.mjs +618 -0
  124. package/esm2020/datetimepicker/clock.mjs +277 -0
  125. package/{esm2015/datetimepicker/datetimepicker-animations.js → esm2020/datetimepicker/datetimepicker-animations.mjs} +0 -0
  126. package/{esm2015/datetimepicker/datetimepicker-errors.js → esm2020/datetimepicker/datetimepicker-errors.mjs} +0 -0
  127. package/{esm2015/datetimepicker/datetimepicker-filtertype.js → esm2020/datetimepicker/datetimepicker-filtertype.mjs} +0 -0
  128. package/esm2020/datetimepicker/datetimepicker-input.mjs +344 -0
  129. package/esm2020/datetimepicker/datetimepicker-module.mjs +75 -0
  130. package/esm2020/datetimepicker/datetimepicker-toggle.mjs +94 -0
  131. package/esm2020/datetimepicker/datetimepicker-types.mjs +2 -0
  132. package/esm2020/datetimepicker/datetimepicker.mjs +492 -0
  133. package/esm2020/datetimepicker/month-view.mjs +148 -0
  134. package/{esm2015/datetimepicker/mtxDatetimepicker.js → esm2020/datetimepicker/mtxDatetimepicker.mjs} +0 -0
  135. package/esm2020/datetimepicker/multi-year-view.mjs +214 -0
  136. package/{esm2015/datetimepicker/public-api.js → esm2020/datetimepicker/public-api.mjs} +2 -1
  137. package/esm2020/datetimepicker/year-view.mjs +138 -0
  138. package/{esm2015/dialog/dialog-config.js → esm2020/dialog/dialog-config.mjs} +0 -0
  139. package/esm2020/dialog/dialog.component.mjs +33 -0
  140. package/esm2020/dialog/dialog.mjs +74 -0
  141. package/esm2020/dialog/dialog.module.mjs +24 -0
  142. package/{esm2015/dialog/mtxDialog.js → esm2020/dialog/mtxDialog.mjs} +0 -0
  143. package/{esm2015/dialog/public-api.js → esm2020/dialog/public-api.mjs} +0 -0
  144. package/esm2020/form-group/form-group.component.mjs +37 -0
  145. package/esm2020/form-group/form-group.module.mjs +18 -0
  146. package/{esm2015/form-group/mtxFormGroup.js → esm2020/form-group/mtxFormGroup.mjs} +0 -0
  147. package/{esm2015/form-group/public-api.js → esm2020/form-group/public-api.mjs} +0 -0
  148. package/esm2020/grid/cell.component.mjs +108 -0
  149. package/esm2020/grid/column-menu.component.mjs +95 -0
  150. package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +37 -0
  151. package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +37 -0
  152. package/{esm2015/grid/column-resize/column-resize-directives/common.js → esm2020/grid/column-resize/column-resize-directives/common.mjs} +0 -0
  153. package/esm2020/grid/column-resize/column-resize-module.mjs +42 -0
  154. package/esm2020/grid/column-resize/overlay-handle.mjs +60 -0
  155. package/{esm2015/grid/column-resize/resizable-directives/common.js → esm2020/grid/column-resize/resizable-directives/common.mjs} +0 -0
  156. package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +62 -0
  157. package/esm2020/grid/column-resize/resize-strategy.mjs +42 -0
  158. package/esm2020/grid/expansion-toggle.directive.mjs +64 -0
  159. package/esm2020/grid/grid.component.mjs +556 -0
  160. package/{esm2015/grid/grid.interface.js → esm2020/grid/grid.interface.mjs} +0 -0
  161. package/esm2020/grid/grid.module.mjs +117 -0
  162. package/esm2020/grid/grid.service.mjs +44 -0
  163. package/{esm2015/grid/mtxGrid.js → esm2020/grid/mtxGrid.mjs} +0 -0
  164. package/esm2020/grid/public-api.mjs +16 -0
  165. package/esm2020/loader/loader.component.mjs +63 -0
  166. package/esm2020/loader/loader.module.mjs +20 -0
  167. package/{esm2015/loader/mtxLoader.js → esm2020/loader/mtxLoader.mjs} +0 -0
  168. package/{esm2015/loader/public-api.js → esm2020/loader/public-api.mjs} +0 -0
  169. package/esm2020/ng-matero-extensions.mjs +5 -0
  170. package/{esm2015/popover/mtxPopover.js → esm2020/popover/mtxPopover.mjs} +0 -0
  171. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  172. package/{esm2015/popover/popover-errors.js → esm2020/popover/popover-errors.mjs} +0 -0
  173. package/{esm2015/popover/popover-interfaces.js → esm2020/popover/popover-interfaces.mjs} +0 -0
  174. package/esm2020/popover/popover-module.mjs +22 -0
  175. package/esm2020/popover/popover-target.mjs +17 -0
  176. package/esm2020/popover/popover-trigger.mjs +441 -0
  177. package/{esm2015/popover/popover-types.js → esm2020/popover/popover-types.mjs} +0 -0
  178. package/esm2020/popover/popover.mjs +334 -0
  179. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  180. package/{esm2015/progress/mtxProgress.js → esm2020/progress/mtxProgress.mjs} +0 -0
  181. package/esm2020/progress/progress.component.mjs +55 -0
  182. package/esm2020/progress/progress.module.mjs +18 -0
  183. package/{esm2015/progress/public-api.js → esm2020/progress/public-api.mjs} +0 -0
  184. package/esm2020/public-api.mjs +5 -0
  185. package/{esm2015/select/mtxSelect.js → esm2020/select/mtxSelect.mjs} +0 -0
  186. package/{esm2015/select/option.component.js → esm2020/select/option.component.mjs} +18 -26
  187. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  188. package/esm2020/select/select.component.mjs +458 -0
  189. package/esm2020/select/select.module.mjs +74 -0
  190. package/esm2020/select/templates.directive.mjs +124 -0
  191. package/{esm2015/slider/mtxSlider.js → esm2020/slider/mtxSlider.mjs} +0 -0
  192. package/{esm2015/slider/public-api.js → esm2020/slider/public-api.mjs} +0 -0
  193. package/esm2020/slider/slider-module.mjs +19 -0
  194. package/esm2020/slider/slider.mjs +1115 -0
  195. package/{esm2015/split/interface.js → esm2020/split/interface.mjs} +0 -0
  196. package/{esm2015/split/mtxSplit.js → esm2020/split/mtxSplit.mjs} +0 -0
  197. package/{esm2015/split/public-api.js → esm2020/split/public-api.mjs} +0 -0
  198. package/esm2020/split/split-pane.directive.mjs +149 -0
  199. package/esm2020/split/split.component.mjs +619 -0
  200. package/esm2020/split/split.module.mjs +19 -0
  201. package/{esm2015/split/utils.js → esm2020/split/utils.mjs} +0 -0
  202. package/{esm2015/text3d/mtxText3d.js → esm2020/text3d/mtxText3d.mjs} +0 -0
  203. package/{esm2015/text3d/public-api.js → esm2020/text3d/public-api.mjs} +0 -0
  204. package/esm2020/text3d/text3d.component.mjs +45 -0
  205. package/esm2020/text3d/text3d.module.mjs +18 -0
  206. package/{esm2015/tooltip/mtxTooltip.js → esm2020/tooltip/mtxTooltip.mjs} +0 -0
  207. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  208. package/{esm2015/tooltip/tooltip-animations.js → esm2020/tooltip/tooltip-animations.mjs} +0 -0
  209. package/esm2020/tooltip/tooltip-module.mjs +23 -0
  210. package/esm2020/tooltip/tooltip.mjs +674 -0
  211. package/fesm2015/mtxAlert.mjs +74 -0
  212. package/fesm2015/mtxAlert.mjs.map +1 -0
  213. package/fesm2015/mtxButton.mjs +102 -0
  214. package/fesm2015/mtxButton.mjs.map +1 -0
  215. package/fesm2015/mtxCheckboxGroup.mjs +257 -0
  216. package/fesm2015/mtxCheckboxGroup.mjs.map +1 -0
  217. package/fesm2015/mtxColorpicker.mjs +754 -0
  218. package/fesm2015/mtxColorpicker.mjs.map +1 -0
  219. package/fesm2015/{mtxColumnResize.js → mtxColumnResize.mjs} +108 -145
  220. package/fesm2015/mtxColumnResize.mjs.map +1 -0
  221. package/fesm2015/mtxCore.mjs +362 -0
  222. package/fesm2015/mtxCore.mjs.map +1 -0
  223. package/fesm2015/mtxDatetimepicker.mjs +2474 -0
  224. package/fesm2015/mtxDatetimepicker.mjs.map +1 -0
  225. package/fesm2015/mtxDialog.mjs +128 -0
  226. package/fesm2015/mtxDialog.mjs.map +1 -0
  227. package/fesm2015/mtxFormGroup.mjs +59 -0
  228. package/fesm2015/mtxFormGroup.mjs.map +1 -0
  229. package/fesm2015/mtxGrid.mjs +1271 -0
  230. package/fesm2015/mtxGrid.mjs.map +1 -0
  231. package/fesm2015/mtxLoader.mjs +87 -0
  232. package/fesm2015/mtxLoader.mjs.map +1 -0
  233. package/fesm2015/mtxPopover.mjs +865 -0
  234. package/fesm2015/mtxPopover.mjs.map +1 -0
  235. package/fesm2015/mtxProgress.mjs +77 -0
  236. package/fesm2015/mtxProgress.mjs.map +1 -0
  237. package/fesm2015/mtxSelect.mjs +712 -0
  238. package/fesm2015/mtxSelect.mjs.map +1 -0
  239. package/fesm2015/mtxSlider.mjs +1139 -0
  240. package/fesm2015/mtxSlider.mjs.map +1 -0
  241. package/fesm2015/{mtxSplit.js → mtxSplit.mjs} +75 -85
  242. package/fesm2015/mtxSplit.mjs.map +1 -0
  243. package/fesm2015/mtxText3d.mjs +67 -0
  244. package/fesm2015/mtxText3d.mjs.map +1 -0
  245. package/fesm2015/{mtxTooltip.js → mtxTooltip.mjs} +83 -86
  246. package/fesm2015/mtxTooltip.mjs.map +1 -0
  247. package/fesm2015/ng-matero-extensions.mjs +9 -0
  248. package/fesm2015/ng-matero-extensions.mjs.map +1 -0
  249. package/fesm2020/mtxAlert.mjs +74 -0
  250. package/fesm2020/mtxAlert.mjs.map +1 -0
  251. package/fesm2020/mtxButton.mjs +102 -0
  252. package/fesm2020/mtxButton.mjs.map +1 -0
  253. package/fesm2020/mtxCheckboxGroup.mjs +257 -0
  254. package/fesm2020/mtxCheckboxGroup.mjs.map +1 -0
  255. package/{fesm2015/mtxColorpicker.js → fesm2020/mtxColorpicker.mjs} +420 -413
  256. package/fesm2020/mtxColorpicker.mjs.map +1 -0
  257. package/fesm2020/mtxColumnResize.mjs +953 -0
  258. package/fesm2020/mtxColumnResize.mjs.map +1 -0
  259. package/{fesm2015/mtxCore.js → fesm2020/mtxCore.mjs} +75 -42
  260. package/fesm2020/mtxCore.mjs.map +1 -0
  261. package/{fesm2015/mtxDatetimepicker.js → fesm2020/mtxDatetimepicker.mjs} +1300 -1306
  262. package/fesm2020/mtxDatetimepicker.mjs.map +1 -0
  263. package/fesm2020/mtxDialog.mjs +129 -0
  264. package/fesm2020/mtxDialog.mjs.map +1 -0
  265. package/fesm2020/mtxFormGroup.mjs +59 -0
  266. package/fesm2020/mtxFormGroup.mjs.map +1 -0
  267. package/fesm2020/mtxGrid.mjs +1259 -0
  268. package/fesm2020/mtxGrid.mjs.map +1 -0
  269. package/fesm2020/mtxLoader.mjs +87 -0
  270. package/fesm2020/mtxLoader.mjs.map +1 -0
  271. package/{fesm2015/mtxPopover.js → fesm2020/mtxPopover.mjs} +120 -111
  272. package/fesm2020/mtxPopover.mjs.map +1 -0
  273. package/fesm2020/mtxProgress.mjs +77 -0
  274. package/fesm2020/mtxProgress.mjs.map +1 -0
  275. package/fesm2020/mtxSelect.mjs +709 -0
  276. package/fesm2020/mtxSelect.mjs.map +1 -0
  277. package/{fesm2015/mtxSlider.js → fesm2020/mtxSlider.mjs} +97 -94
  278. package/fesm2020/mtxSlider.mjs.map +1 -0
  279. package/fesm2020/mtxSplit.mjs +1007 -0
  280. package/fesm2020/mtxSplit.mjs.map +1 -0
  281. package/fesm2020/mtxText3d.mjs +67 -0
  282. package/fesm2020/mtxText3d.mjs.map +1 -0
  283. package/fesm2020/mtxTooltip.mjs +718 -0
  284. package/fesm2020/mtxTooltip.mjs.map +1 -0
  285. package/fesm2020/ng-matero-extensions.mjs +9 -0
  286. package/fesm2020/ng-matero-extensions.mjs.map +1 -0
  287. package/form-group/_form-group-theme.scss +1 -1
  288. package/form-group/form-group.component.d.ts +3 -0
  289. package/form-group/form-group.module.d.ts +6 -0
  290. package/form-group/mtxFormGroup.d.ts +1 -0
  291. package/form-group/package.json +5 -6
  292. package/grid/_grid-theme.scss +1 -1
  293. package/grid/cell.component.d.ts +3 -0
  294. package/grid/column-menu.component.d.ts +3 -0
  295. package/grid/column-menu.component.scss +1 -1
  296. package/grid/column-resize/_column-resize.scss +3 -3
  297. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +3 -0
  298. package/grid/column-resize/column-resize-directives/column-resize.d.ts +3 -0
  299. package/grid/column-resize/column-resize-module.d.ts +12 -7
  300. package/grid/column-resize/overlay-handle.d.ts +3 -0
  301. package/grid/column-resize/resizable-directives/resizable.d.ts +3 -0
  302. package/grid/column-resize/resize-strategy.d.ts +3 -0
  303. package/grid/expansion-toggle.directive.d.ts +3 -0
  304. package/grid/grid.component.d.ts +20 -1
  305. package/grid/grid.module.d.ts +26 -0
  306. package/grid/grid.service.d.ts +3 -0
  307. package/grid/mtxGrid.d.ts +1 -0
  308. package/grid/package.json +5 -6
  309. package/grid/public-api.d.ts +0 -1
  310. package/loader/_loader-theme.scss +1 -1
  311. package/loader/loader.component.d.ts +3 -0
  312. package/loader/loader.module.d.ts +8 -0
  313. package/loader/mtxLoader.d.ts +1 -0
  314. package/loader/package.json +5 -6
  315. package/{extensions.d.ts → ng-matero-extensions.d.ts} +1 -0
  316. package/package.json +171 -15
  317. package/popover/_popover-theme.scss +1 -1
  318. package/popover/mtxPopover.d.ts +1 -0
  319. package/popover/package.json +5 -6
  320. package/popover/popover-module.d.ts +10 -0
  321. package/popover/popover-target.d.ts +3 -0
  322. package/popover/popover-trigger.d.ts +3 -0
  323. package/popover/popover.d.ts +3 -0
  324. package/progress/_progress-theme.scss +2 -2
  325. package/progress/mtxProgress.d.ts +1 -0
  326. package/progress/package.json +5 -6
  327. package/progress/progress.component.d.ts +3 -0
  328. package/progress/progress.module.d.ts +6 -0
  329. package/public-api.d.ts +2 -19
  330. package/select/_select-theme.scss +1 -1
  331. package/select/mtxSelect.d.ts +1 -0
  332. package/select/option.component.d.ts +3 -0
  333. package/select/package.json +5 -6
  334. package/select/select.component.d.ts +3 -0
  335. package/select/select.component.scss +1 -1
  336. package/select/select.module.d.ts +10 -0
  337. package/select/templates.directive.d.ts +23 -0
  338. package/slider/_slider-theme.scss +4 -4
  339. package/slider/mtxSlider.d.ts +1 -0
  340. package/slider/package.json +5 -6
  341. package/slider/slider-module.d.ts +7 -0
  342. package/slider/slider.d.ts +4 -1
  343. package/slider/slider.scss +7 -7
  344. package/split/_split-theme.scss +1 -1
  345. package/split/mtxSplit.d.ts +1 -0
  346. package/split/package.json +5 -6
  347. package/split/split-pane.directive.d.ts +3 -0
  348. package/split/split.component.d.ts +4 -1
  349. package/split/split.module.d.ts +7 -0
  350. package/text3d/_text3d-theme.scss +2 -2
  351. package/text3d/mtxText3d.d.ts +1 -0
  352. package/text3d/package.json +5 -6
  353. package/text3d/text3d.component.d.ts +3 -0
  354. package/text3d/text3d.module.d.ts +6 -0
  355. package/tooltip/_tooltip-theme.scss +3 -3
  356. package/tooltip/mtxTooltip.d.ts +1 -0
  357. package/tooltip/package.json +5 -6
  358. package/tooltip/tooltip-module.d.ts +10 -0
  359. package/tooltip/tooltip.d.ts +5 -0
  360. package/tooltip/tooltip.scss +1 -1
  361. package/alert/mtxAlert.metadata.json +0 -1
  362. package/bundles/extensions.umd.js +0 -164
  363. package/bundles/extensions.umd.js.map +0 -1
  364. package/bundles/mtxAlert.umd.js +0 -101
  365. package/bundles/mtxAlert.umd.js.map +0 -1
  366. package/bundles/mtxButton.umd.js +0 -119
  367. package/bundles/mtxButton.umd.js.map +0 -1
  368. package/bundles/mtxCheckboxGroup.umd.js +0 -284
  369. package/bundles/mtxCheckboxGroup.umd.js.map +0 -1
  370. package/bundles/mtxColorpicker.umd.js +0 -1123
  371. package/bundles/mtxColorpicker.umd.js.map +0 -1
  372. package/bundles/mtxColumnResize.umd.js +0 -1339
  373. package/bundles/mtxColumnResize.umd.js.map +0 -1
  374. package/bundles/mtxCore.umd.js +0 -670
  375. package/bundles/mtxCore.umd.js.map +0 -1
  376. package/bundles/mtxDatetimepicker.umd.js +0 -3045
  377. package/bundles/mtxDatetimepicker.umd.js.map +0 -1
  378. package/bundles/mtxDialog.umd.js +0 -158
  379. package/bundles/mtxDialog.umd.js.map +0 -1
  380. package/bundles/mtxFormGroup.umd.js +0 -73
  381. package/bundles/mtxFormGroup.umd.js.map +0 -1
  382. package/bundles/mtxGrid.umd.js +0 -1581
  383. package/bundles/mtxGrid.umd.js.map +0 -1
  384. package/bundles/mtxLoader.umd.js +0 -107
  385. package/bundles/mtxLoader.umd.js.map +0 -1
  386. package/bundles/mtxPipes.umd.js +0 -44
  387. package/bundles/mtxPipes.umd.js.map +0 -1
  388. package/bundles/mtxPopover.umd.js +0 -1260
  389. package/bundles/mtxPopover.umd.js.map +0 -1
  390. package/bundles/mtxProgress.umd.js +0 -92
  391. package/bundles/mtxProgress.umd.js.map +0 -1
  392. package/bundles/mtxSelect.umd.js +0 -1097
  393. package/bundles/mtxSelect.umd.js.map +0 -1
  394. package/bundles/mtxSlider.umd.js +0 -1551
  395. package/bundles/mtxSlider.umd.js.map +0 -1
  396. package/bundles/mtxSplit.umd.js +0 -1431
  397. package/bundles/mtxSplit.umd.js.map +0 -1
  398. package/bundles/mtxText3d.umd.js +0 -84
  399. package/bundles/mtxText3d.umd.js.map +0 -1
  400. package/bundles/mtxTooltip.umd.js +0 -1083
  401. package/bundles/mtxTooltip.umd.js.map +0 -1
  402. package/button/mtxButton.metadata.json +0 -1
  403. package/checkbox-group/mtxCheckboxGroup.metadata.json +0 -1
  404. package/colorpicker/mtxColorpicker.metadata.json +0 -1
  405. package/column-resize/mtxColumnResize.metadata.json +0 -1
  406. package/core/mtxCore.metadata.json +0 -1
  407. package/datetimepicker/mtxDatetimepicker.metadata.json +0 -1
  408. package/dialog/mtxDialog.metadata.json +0 -1
  409. package/esm2015/alert/alert.component.js +0 -63
  410. package/esm2015/alert/alert.module.js +0 -14
  411. package/esm2015/button/button-loading.directive.js +0 -89
  412. package/esm2015/button/button.module.js +0 -16
  413. package/esm2015/checkbox-group/checkbox-group.component.js +0 -235
  414. package/esm2015/checkbox-group/checkbox-group.module.js +0 -17
  415. package/esm2015/colorpicker/colorpicker-input.js +0 -228
  416. package/esm2015/colorpicker/colorpicker-module.js +0 -41
  417. package/esm2015/colorpicker/colorpicker-toggle.js +0 -97
  418. package/esm2015/colorpicker/colorpicker.js +0 -372
  419. package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +0 -54
  420. package/esm2015/column-resize/column-resize-directives/column-resize.js +0 -54
  421. package/esm2015/column-resize/column-resize-module.js +0 -24
  422. package/esm2015/column-resize/column-resize-notifier.js +0 -54
  423. package/esm2015/column-resize/column-resize.js +0 -80
  424. package/esm2015/column-resize/column-size-store.js +0 -18
  425. package/esm2015/column-resize/event-dispatcher.js +0 -75
  426. package/esm2015/column-resize/overlay-handle.js +0 -144
  427. package/esm2015/column-resize/resizable.js +0 -197
  428. package/esm2015/column-resize/resize-strategy.js +0 -245
  429. package/esm2015/core/datetime/datetime.module.js +0 -32
  430. package/esm2015/core/datetime/native-datetime-adapter.js +0 -144
  431. package/esm2015/datetimepicker/calendar-body.js +0 -76
  432. package/esm2015/datetimepicker/calendar.js +0 -614
  433. package/esm2015/datetimepicker/clock.js +0 -283
  434. package/esm2015/datetimepicker/datetimepicker-input.js +0 -336
  435. package/esm2015/datetimepicker/datetimepicker-module.js +0 -52
  436. package/esm2015/datetimepicker/datetimepicker-toggle.js +0 -103
  437. package/esm2015/datetimepicker/datetimepicker.js +0 -490
  438. package/esm2015/datetimepicker/month-view.js +0 -150
  439. package/esm2015/datetimepicker/multi-year-view.js +0 -215
  440. package/esm2015/datetimepicker/year-view.js +0 -141
  441. package/esm2015/dialog/dialog.component.js +0 -40
  442. package/esm2015/dialog/dialog.js +0 -81
  443. package/esm2015/dialog/dialog.module.js +0 -21
  444. package/esm2015/extensions-experimental.module.js +0 -13
  445. package/esm2015/extensions.js +0 -5
  446. package/esm2015/extensions.module.js +0 -40
  447. package/esm2015/form-group/form-group.component.js +0 -40
  448. package/esm2015/form-group/form-group.module.js +0 -14
  449. package/esm2015/grid/cell-selection.directive.js +0 -62
  450. package/esm2015/grid/cell.component.js +0 -115
  451. package/esm2015/grid/column-menu.component.js +0 -72
  452. package/esm2015/grid/column-resize/column-resize-directives/column-resize-flex.js +0 -47
  453. package/esm2015/grid/column-resize/column-resize-directives/column-resize.js +0 -47
  454. package/esm2015/grid/column-resize/column-resize-module.js +0 -36
  455. package/esm2015/grid/column-resize/overlay-handle.js +0 -68
  456. package/esm2015/grid/column-resize/resizable-directives/resizable.js +0 -75
  457. package/esm2015/grid/column-resize/resize-strategy.js +0 -45
  458. package/esm2015/grid/expansion-toggle.directive.js +0 -62
  459. package/esm2015/grid/grid.component.js +0 -418
  460. package/esm2015/grid/grid.module.js +0 -69
  461. package/esm2015/grid/grid.service.js +0 -50
  462. package/esm2015/grid/public-api.js +0 -17
  463. package/esm2015/loader/loader.component.js +0 -69
  464. package/esm2015/loader/loader.module.js +0 -16
  465. package/esm2015/pipes/mtxPipes.js +0 -5
  466. package/esm2015/pipes/pipes.module.js +0 -14
  467. package/esm2015/pipes/public-api.js +0 -3
  468. package/esm2015/pipes/to-observable.pipe.js +0 -12
  469. package/esm2015/popover/popover-module.js +0 -18
  470. package/esm2015/popover/popover-target.js +0 -24
  471. package/esm2015/popover/popover-trigger.js +0 -434
  472. package/esm2015/popover/popover.js +0 -326
  473. package/esm2015/progress/progress.component.js +0 -54
  474. package/esm2015/progress/progress.module.js +0 -14
  475. package/esm2015/public-api.js +0 -23
  476. package/esm2015/select/select.component.js +0 -380
  477. package/esm2015/select/select.module.js +0 -46
  478. package/esm2015/select/templates.directive.js +0 -211
  479. package/esm2015/slider/slider-module.js +0 -15
  480. package/esm2015/slider/slider.js +0 -1115
  481. package/esm2015/split/split-pane.directive.js +0 -156
  482. package/esm2015/split/split.component.js +0 -624
  483. package/esm2015/split/split.module.js +0 -15
  484. package/esm2015/text3d/text3d.component.js +0 -45
  485. package/esm2015/text3d/text3d.module.js +0 -14
  486. package/esm2015/tooltip/tooltip-module.js +0 -20
  487. package/esm2015/tooltip/tooltip.js +0 -683
  488. package/extensions-experimental.module.d.ts +0 -2
  489. package/extensions.metadata.json +0 -1
  490. package/extensions.module.d.ts +0 -2
  491. package/fesm2015/extensions.js +0 -80
  492. package/fesm2015/extensions.js.map +0 -1
  493. package/fesm2015/mtxAlert.js +0 -82
  494. package/fesm2015/mtxAlert.js.map +0 -1
  495. package/fesm2015/mtxButton.js +0 -108
  496. package/fesm2015/mtxButton.js.map +0 -1
  497. package/fesm2015/mtxCheckboxGroup.js +0 -255
  498. package/fesm2015/mtxCheckboxGroup.js.map +0 -1
  499. package/fesm2015/mtxColorpicker.js.map +0 -1
  500. package/fesm2015/mtxColumnResize.js.map +0 -1
  501. package/fesm2015/mtxCore.js.map +0 -1
  502. package/fesm2015/mtxDatetimepicker.js.map +0 -1
  503. package/fesm2015/mtxDialog.js +0 -141
  504. package/fesm2015/mtxDialog.js.map +0 -1
  505. package/fesm2015/mtxFormGroup.js +0 -59
  506. package/fesm2015/mtxFormGroup.js.map +0 -1
  507. package/fesm2015/mtxGrid.js +0 -1186
  508. package/fesm2015/mtxGrid.js.map +0 -1
  509. package/fesm2015/mtxLoader.js +0 -90
  510. package/fesm2015/mtxLoader.js.map +0 -1
  511. package/fesm2015/mtxPipes.js +0 -31
  512. package/fesm2015/mtxPipes.js.map +0 -1
  513. package/fesm2015/mtxPopover.js.map +0 -1
  514. package/fesm2015/mtxProgress.js +0 -73
  515. package/fesm2015/mtxProgress.js.map +0 -1
  516. package/fesm2015/mtxSelect.js +0 -700
  517. package/fesm2015/mtxSelect.js.map +0 -1
  518. package/fesm2015/mtxSlider.js.map +0 -1
  519. package/fesm2015/mtxSplit.js.map +0 -1
  520. package/fesm2015/mtxText3d.js +0 -64
  521. package/fesm2015/mtxText3d.js.map +0 -1
  522. package/fesm2015/mtxTooltip.js.map +0 -1
  523. package/form-group/mtxFormGroup.metadata.json +0 -1
  524. package/grid/cell-selection.directive.d.ts +0 -17
  525. package/grid/mtxGrid.metadata.json +0 -1
  526. package/loader/mtxLoader.metadata.json +0 -1
  527. package/pipes/mtxPipes.d.ts +0 -4
  528. package/pipes/mtxPipes.metadata.json +0 -1
  529. package/pipes/package.json +0 -11
  530. package/pipes/pipes.module.d.ts +0 -2
  531. package/popover/mtxPopover.metadata.json +0 -1
  532. package/progress/mtxProgress.metadata.json +0 -1
  533. package/select/mtxSelect.metadata.json +0 -1
  534. package/slider/mtxSlider.metadata.json +0 -1
  535. package/split/mtxSplit.metadata.json +0 -1
  536. package/text3d/mtxText3d.metadata.json +0 -1
  537. package/tooltip/mtxTooltip.metadata.json +0 -1
@@ -0,0 +1,74 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+ // Note that this file is called `private`, because the APIs in it aren't public yet.
5
+ // Once they're made available, the code should be moved out into an `index.scss`.
6
+
7
+ // Taken from mat-density with small modifications to not rely on the new Sass module
8
+ // system, and to support arbitrary properties in a density configuration.
9
+ // https://github.com/material-components/material-components-web/blob/master/packages/mdc-density
10
+
11
+ $_density-interval: 4px !default;
12
+ $_minimum-scale: minimum !default;
13
+ $_maximum-scale: maximum !default;
14
+ $_supported-scales: (default, $_minimum-scale, $_maximum-scale) !default;
15
+ $_default-scale: 0 !default;
16
+
17
+ // Whether density should be generated at root. This will be temporarily set to `true`
18
+ // whenever density styles for legacy themes are generated.
19
+ $private-density-generate-at-root: false;
20
+ // Whether density styles should be generated. This will be temporarily set to `false` if
21
+ // duplicate density styles for a legacy theme would be generated. For legacy themes,
22
+ // we always generate the default density **only once** at root.
23
+ $private-density-generate-styles: true;
24
+
25
+ // Mixin that can be used to wrap density styles of given components. The mixin will
26
+ // move the density styles to root if the `$mat-private-density-generate-at-root` global variable
27
+ // is set. If `$mat-private-density-generate-styles` is set to `false`, generation of density
28
+ // styles wrapped in this mixin is skipped. This mixin exists to improve backwards compatibility
29
+ // of the new theming API where density styles are included as part of themes. Previously,
30
+ // density styles of components were part of their base styles. With the new API, they are
31
+ // part of the theming system. The `<..>-theme` mixins generate density by default unless
32
+ // the density configuration is explicitly specified as per new API. This means, that projects
33
+ // using `<..>-theme` mixins for separate themes (like `.dark-theme`) will cause duplicate
34
+ // density styles. This is breaking as it increases specificity of density styles. This mixin
35
+ // provides an API to control generation of density styles so that we can ensure they are only
36
+ // created *once* and at root.
37
+ @mixin private-density-legacy-compatibility() {
38
+ @if $private-density-generate-styles and $private-density-generate-at-root {
39
+ @at-root {
40
+ @content;
41
+ }
42
+ }
43
+ @else if $private-density-generate-styles {
44
+ @content;
45
+ }
46
+ }
47
+
48
+ @function private-density-prop-value($density-config, $density-scale, $property-name) {
49
+ @if (meta.type-of($density-scale) == 'string' and
50
+ list.index($list: $_supported-scales, $value: $density-scale) == null) {
51
+ @error 'mat-density: Supported density scales #{$_supported-scales}, ' +
52
+ 'but received #{$density-scale}.';
53
+ }
54
+
55
+ $value: null;
56
+ $property-scale-map: map.get($density-config, $property-name);
57
+
58
+ @if map.has-key($property-scale-map, $density-scale) {
59
+ $value: map.get($property-scale-map, $density-scale);
60
+ }
61
+ @else {
62
+ $value: map.get($property-scale-map, default) + $density-scale * $_density-interval;
63
+ }
64
+
65
+ $min-value: map.get($property-scale-map, $_minimum-scale);
66
+ $max-value: map.get($property-scale-map, $_maximum-scale);
67
+
68
+ @if ($value < $min-value or $value > $max-value) {
69
+ @error 'mat-density: #{$property-name} must be between #{$min-value} and ' +
70
+ '#{$max-value} (inclusive), but received #{$value}.';
71
+ }
72
+
73
+ @return $value;
74
+ }
package/core/mtxCore.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@ng-matero/extensions/core" />
4
5
  export * from './public-api';
package/core/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
- "main": "../bundles/mtxCore.umd.js",
3
- "module": "../fesm2015/mtxCore.js",
4
- "es2015": "../fesm2015/mtxCore.js",
5
- "esm2015": "../esm2015/core/mtxCore.js",
6
- "fesm2015": "../fesm2015/mtxCore.js",
2
+ "module": "../fesm2015/mtxCore.mjs",
3
+ "es2020": "../fesm2020/mtxCore.mjs",
4
+ "esm2020": "../esm2020/core/mtxCore.mjs",
5
+ "fesm2020": "../fesm2020/mtxCore.mjs",
6
+ "fesm2015": "../fesm2015/mtxCore.mjs",
7
7
  "typings": "mtxCore.d.ts",
8
- "metadata": "mtxCore.metadata.json",
9
8
  "sideEffects": false,
10
9
  "name": "@ng-matero/extensions/core"
11
10
  }
File without changes
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./to-observable.pipe";
3
+ import * as i2 from "@angular/common";
4
+ export declare class MtxPipesModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxPipesModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxPipesModule, [typeof i1.MtxToObservablePipe], [typeof i2.CommonModule], [typeof i1.MtxToObservablePipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<MtxPipesModule>;
8
+ }
@@ -1,5 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class MtxToObservablePipe implements PipeTransform {
4
5
  transform(value: Observable<any> | unknown): Observable<any>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxToObservablePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxToObservablePipe, "toObservable">;
5
8
  }
@@ -1 +1,2 @@
1
1
  export * from './datetime';
2
+ export * from './pipes';
@@ -0,0 +1,197 @@
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:meta';
4
+ @use 'variables';
5
+
6
+ // A collection of mixins and CSS classes that can be used to apply elevation to a material
7
+ // element.
8
+ // See: https://material.io/design/environment/elevation.html
9
+ // Examples:
10
+ //
11
+ //
12
+ // .mat-foo {
13
+ // @include $mat-elevation(2);
14
+ //
15
+ // &:active {
16
+ // @include $mat-elevation(8);
17
+ // }
18
+ // }
19
+ //
20
+ // <div id="external-card" class="mat-elevation-z2"><p>Some content</p></div>
21
+ //
22
+ // For an explanation of the design behind how elevation is implemented, see the design doc at
23
+ // https://goo.gl/Kq0k9Z.
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
+ // The default duration value for elevation transitions.
133
+ $transition-duration: 280ms !default;
134
+
135
+ // The default easing value for elevation transitions.
136
+ $transition-timing-function: variables.$fast-out-slow-in-timing-function;
137
+
138
+ // The default color for elevation shadows.
139
+ $color: black !default;
140
+
141
+ // The default opacity scaling value for elevation shadows.
142
+ $opacity: 1 !default;
143
+
144
+ // Prefix for elevation-related selectors.
145
+ $prefix: 'mat-elevation-z';
146
+
147
+ // Applies the correct css rules to an element to give it the elevation specified by $zValue.
148
+ // 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';
152
+ }
153
+ @if $zValue < 0 or $zValue > 24 {
154
+ @error '$zValue must be between 0 and 24';
155
+ }
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
+ }
162
+
163
+ // Applies the elevation to an element in a manner that allows
164
+ // consumers to override it via the Material elevation classes.
165
+ @mixin overridable-elevation(
166
+ $zValue,
167
+ $color: $color,
168
+ $opacity: $opacity) {
169
+ &:not([class*='#{$prefix}']) {
170
+ @include elevation($zValue, $color, $opacity);
171
+ }
172
+ }
173
+
174
+ // Returns a string that can be used as the value for a transition property for elevation.
175
+ // Calling this function directly is useful in situations where a component needs to transition
176
+ // more than one property.
177
+ //
178
+ // .foo {
179
+ // transition: mat-elevation-transition-property-value(), opacity 100ms ease;
180
+ // }
181
+ @function private-transition-property-value(
182
+ $duration: $transition-duration,
183
+ $easing: $transition-timing-function) {
184
+ @return box-shadow #{$duration} #{$easing};
185
+ }
186
+
187
+ // Applies the correct css rules needed to have an element transition between elevations.
188
+ // This mixin should be applied to elements whose elevation values will change depending on their
189
+ // context (e.g. when active or disabled).
190
+ //
191
+ // NOTE(traviskaufman): Both this mixin and the above function use default parameters so they can
192
+ // be used in the same way by clients.
193
+ @mixin elevation-transition(
194
+ $duration: $transition-duration,
195
+ $easing: $transition-timing-function) {
196
+ transition: private-transition-property-value($duration, $easing);
197
+ }
@@ -0,0 +1,41 @@
1
+ @use 'sass:map';
2
+ @use './elevation';
3
+
4
+ @mixin private-theme-elevation($zValue, $config, $opacity: elevation.$opacity) {
5
+ $foreground: map.get($config, foreground);
6
+ $elevation-color: map.get($foreground, elevation);
7
+ $elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color);
8
+
9
+ @include elevation.elevation($zValue, $elevation-color-or-default, $opacity);
10
+ }
11
+
12
+ @mixin private-theme-overridable-elevation($zValue, $config, $opacity: elevation.$opacity) {
13
+ $foreground: map.get($config, foreground);
14
+ $elevation-color: map.get($foreground, elevation);
15
+ $elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color);
16
+
17
+ @include elevation.overridable-elevation($zValue, $elevation-color-or-default, $opacity);
18
+ }
19
+
20
+ // If the mat-animation-noop class is present on the components root element,
21
+ // prevent non css animations from running.
22
+ // NOTE: Currently this mixin should only be used with components that do not
23
+ // have any projected content.
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;
39
+ @content;
40
+ }
41
+ }
@@ -0,0 +1,44 @@
1
+ // Media queries
2
+ // TODO(josephperrott): Change $mat-xsmall and $mat-small usages to rely on BreakpointObserver,
3
+ $xsmall: 'max-width: 599px';
4
+ $small: 'max-width: 959px';
5
+
6
+ // TODO: Revisit all z-indices before beta
7
+ // z-index master list
8
+
9
+ $z-index-fab: 20 !default;
10
+ $z-index-drawer: 100 !default;
11
+
12
+ // Global constants
13
+ $pi: 3.14159265;
14
+
15
+ // Padding between input toggles and their labels
16
+ $toggle-padding: 8px !default;
17
+ // Width and height of input toggles
18
+ $toggle-size: 20px !default;
19
+
20
+ // Easing Curves
21
+ // TODO(jelbourn): all of these need to be revisited
22
+
23
+ // The default animation curves used by material design.
24
+ $linear-out-slow-in-timing-function: cubic-bezier(0, 0, .2, .1) !default;
25
+ $fast-out-slow-in-timing-function: cubic-bezier(.4, 0, .2, 1) !default;
26
+ $fast-out-linear-in-timing-function: cubic-bezier(.4, 0, 1, 1) !default;
27
+
28
+ $ease-in-out-curve-function: cubic-bezier(.35, 0, .25, 1) !default;
29
+
30
+ $swift-ease-out-duration: 400ms !default;
31
+ $swift-ease-out-timing-function: cubic-bezier(.25, .8, .25, 1) !default;
32
+ $swift-ease-out: all $swift-ease-out-duration $swift-ease-out-timing-function !default;
33
+
34
+ $swift-ease-in-duration: 300ms !default;
35
+ $swift-ease-in-timing-function: cubic-bezier(.55, 0, .55, .2) !default;
36
+ $swift-ease-in: all $swift-ease-in-duration $swift-ease-in-timing-function !default;
37
+
38
+ $swift-ease-in-out-duration: 500ms !default;
39
+ $swift-ease-in-out-timing-function: $ease-in-out-curve-function !default;
40
+ $swift-ease-in-out: all $swift-ease-in-out-duration $swift-ease-in-out-timing-function !default;
41
+
42
+ $swift-linear-duration: 80ms !default;
43
+ $swift-linear-timing-function: linear !default;
44
+ $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default;
@@ -0,0 +1,60 @@
1
+ /* stylelint-disable value-no-vendor-prefix */
2
+ /* stylelint-disable selector-no-vendor-prefix */
3
+ /* stylelint-disable property-no-vendor-prefix */
4
+ // stylelint-disable material/no-prefixes
5
+ @mixin user-select($value) {
6
+ -webkit-user-select: $value;
7
+ -moz-user-select: $value;
8
+ user-select: $value;
9
+ }
10
+
11
+ @mixin input-placeholder {
12
+ &::placeholder {
13
+ @content;
14
+ }
15
+
16
+ &::-moz-placeholder {
17
+ @content;
18
+ }
19
+
20
+ &::-webkit-input-placeholder {
21
+ @content;
22
+ }
23
+
24
+ // Note: this isn't necessary anymore since we don't support
25
+ // IE, but it caused some presubmit failures in #23416.
26
+ &:-ms-input-placeholder {
27
+ @content;
28
+ }
29
+ }
30
+
31
+ @mixin cursor-grab {
32
+ cursor: -webkit-grab;
33
+ cursor: grab;
34
+ }
35
+
36
+ @mixin cursor-grabbing {
37
+ cursor: -webkit-grabbing;
38
+ cursor: grabbing;
39
+ }
40
+
41
+ @mixin backface-visibility($value) {
42
+ -webkit-backface-visibility: $value;
43
+ backface-visibility: $value;
44
+ }
45
+
46
+ @mixin position-sticky($important: false) {
47
+ position: -webkit-sticky #{if($important, '!important', '')};
48
+ position: sticky #{if($important, '!important', '')};
49
+ }
50
+
51
+ @mixin private-color-adjust($value) {
52
+ -webkit-print-color-adjust: $value;
53
+ color-adjust: $value;
54
+ }
55
+
56
+ @mixin private-background-clip($value) {
57
+ -webkit-background-clip: $value;
58
+ background-clip: $value;
59
+ }
60
+ // stylelint-enable