@ng-matero/extensions 12.3.0 → 12.5.1

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 (284) hide show
  1. package/README.md +1 -1
  2. package/_all-color.scss +47 -0
  3. package/_all-theme.scss +5 -3
  4. package/_index.scss +4 -2
  5. package/_theming.scss +4 -2
  6. package/alert/_alert-theme.import.scss +2 -2
  7. package/alert/_alert-theme.scss +38 -17
  8. package/alert/alert.component.d.ts +6 -6
  9. package/alert/alert.component.scss +2 -1
  10. package/alert/mtxAlert.metadata.json +1 -1
  11. package/bundles/extensions.umd.js +21 -10
  12. package/bundles/extensions.umd.js.map +1 -1
  13. package/bundles/mtxAlert.umd.js +32 -14
  14. package/bundles/mtxAlert.umd.js.map +1 -1
  15. package/bundles/mtxButton.umd.js +36 -5
  16. package/bundles/mtxButton.umd.js.map +1 -1
  17. package/bundles/mtxCheckboxGroup.umd.js +10 -1
  18. package/bundles/mtxCheckboxGroup.umd.js.map +1 -1
  19. package/bundles/mtxColorPicker.umd.js +10 -1
  20. package/bundles/mtxColorPicker.umd.js.map +1 -1
  21. package/bundles/mtxColumnResize.umd.js +55 -6
  22. package/bundles/mtxColumnResize.umd.js.map +1 -1
  23. package/bundles/mtxCore.umd.js +10 -1
  24. package/bundles/mtxCore.umd.js.map +1 -1
  25. package/bundles/mtxDatetimepicker.umd.js +139 -32
  26. package/bundles/mtxDatetimepicker.umd.js.map +1 -1
  27. package/bundles/mtxDialog.umd.js +17 -2
  28. package/bundles/mtxDialog.umd.js.map +1 -1
  29. package/bundles/mtxFormGroup.umd.js +10 -1
  30. package/bundles/mtxFormGroup.umd.js.map +1 -1
  31. package/bundles/mtxGrid.umd.js +92 -12
  32. package/bundles/mtxGrid.umd.js.map +1 -1
  33. package/bundles/mtxLoader.umd.js +37 -8
  34. package/bundles/mtxLoader.umd.js.map +1 -1
  35. package/bundles/mtxPipes.umd.js +2 -0
  36. package/bundles/mtxPipes.umd.js.map +1 -1
  37. package/bundles/mtxPopover.umd.js +27 -3
  38. package/bundles/mtxPopover.umd.js.map +1 -1
  39. package/bundles/mtxProgress.umd.js +31 -4
  40. package/bundles/mtxProgress.umd.js.map +1 -1
  41. package/bundles/mtxSelect.umd.js +107 -13
  42. package/bundles/mtxSelect.umd.js.map +1 -1
  43. package/bundles/mtxSlider.umd.js +1551 -0
  44. package/bundles/mtxSlider.umd.js.map +1 -0
  45. package/bundles/mtxSplit.umd.js +23 -6
  46. package/bundles/mtxSplit.umd.js.map +1 -1
  47. package/bundles/mtxText3d.umd.js +10 -1
  48. package/bundles/mtxText3d.umd.js.map +1 -1
  49. package/bundles/mtxTooltip.umd.js +18 -2
  50. package/bundles/mtxTooltip.umd.js.map +1 -1
  51. package/button/button-loading.directive.d.ts +9 -2
  52. package/button/mtxButton.metadata.json +1 -1
  53. package/datetimepicker/_datetimepicker-theme.import.scss +4 -2
  54. package/datetimepicker/_datetimepicker-theme.scss +101 -29
  55. package/datetimepicker/calendar-body.scss +0 -3
  56. package/datetimepicker/calendar.d.ts +10 -3
  57. package/datetimepicker/calendar.scss +5 -22
  58. package/datetimepicker/clock.scss +0 -2
  59. package/datetimepicker/datetimepicker-content.scss +2 -2
  60. package/datetimepicker/datetimepicker-input.d.ts +5 -3
  61. package/datetimepicker/datetimepicker-toggle.d.ts +2 -0
  62. package/datetimepicker/datetimepicker.d.ts +13 -3
  63. package/datetimepicker/mtxDatetimepicker.metadata.json +1 -1
  64. package/esm2015/alert/alert.component.js +25 -11
  65. package/esm2015/alert/alert.module.js +2 -1
  66. package/esm2015/button/button-loading.directive.js +31 -8
  67. package/esm2015/button/button.module.js +2 -1
  68. package/esm2015/checkbox-group/checkbox-group.component.js +10 -2
  69. package/esm2015/checkbox-group/checkbox-group.module.js +2 -1
  70. package/esm2015/color-picker/color-picker.component.js +10 -2
  71. package/esm2015/color-picker/color-picker.module.js +2 -1
  72. package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +9 -2
  73. package/esm2015/column-resize/column-resize-directives/column-resize.js +9 -2
  74. package/esm2015/column-resize/column-resize-module.js +2 -1
  75. package/esm2015/column-resize/column-resize-notifier.js +10 -2
  76. package/esm2015/column-resize/column-resize.js +2 -1
  77. package/esm2015/column-resize/column-size-store.js +2 -1
  78. package/esm2015/column-resize/event-dispatcher.js +9 -2
  79. package/esm2015/column-resize/overlay-handle.js +2 -1
  80. package/esm2015/column-resize/resizable.js +2 -1
  81. package/esm2015/column-resize/resize-strategy.js +18 -3
  82. package/esm2015/core/datetime/datetime.module.js +3 -1
  83. package/esm2015/core/datetime/native-datetime-adapter.js +9 -2
  84. package/esm2015/datetimepicker/calendar-body.js +5 -3
  85. package/esm2015/datetimepicker/calendar.js +31 -12
  86. package/esm2015/datetimepicker/clock.js +11 -3
  87. package/esm2015/datetimepicker/datetimepicker-input.js +12 -4
  88. package/esm2015/datetimepicker/datetimepicker-toggle.js +11 -3
  89. package/esm2015/datetimepicker/datetimepicker.js +30 -8
  90. package/esm2015/datetimepicker/datetimepicker.module.js +2 -1
  91. package/esm2015/datetimepicker/month-view.js +11 -3
  92. package/esm2015/datetimepicker/multi-year-view.js +11 -3
  93. package/esm2015/datetimepicker/year-view.js +11 -3
  94. package/esm2015/dialog/dialog.component.js +9 -2
  95. package/esm2015/dialog/dialog.js +9 -2
  96. package/esm2015/dialog/dialog.module.js +2 -1
  97. package/esm2015/extensions-experimental.module.js +2 -1
  98. package/esm2015/extensions.module.js +6 -3
  99. package/esm2015/form-group/form-group.component.js +10 -2
  100. package/esm2015/form-group/form-group.module.js +2 -1
  101. package/esm2015/grid/cell-selection.directive.js +62 -0
  102. package/esm2015/{data-grid → grid}/cell.component.js +10 -2
  103. package/esm2015/{data-grid → grid}/column-menu.component.js +3 -1
  104. package/esm2015/grid/column-resize/column-resize-directives/column-resize-flex.js +47 -0
  105. package/esm2015/grid/column-resize/column-resize-directives/column-resize.js +47 -0
  106. package/esm2015/grid/column-resize/column-resize-directives/common.js +34 -0
  107. package/esm2015/grid/column-resize/column-resize-module.js +36 -0
  108. package/esm2015/grid/column-resize/overlay-handle.js +68 -0
  109. package/esm2015/grid/column-resize/resizable-directives/common.js +29 -0
  110. package/esm2015/grid/column-resize/resizable-directives/resizable.js +75 -0
  111. package/esm2015/grid/column-resize/resize-strategy.js +45 -0
  112. package/esm2015/grid/expansion-toggle.directive.js +62 -0
  113. package/esm2015/{data-grid → grid}/grid.component.js +10 -2
  114. package/esm2015/grid/grid.interface.js +2 -0
  115. package/esm2015/grid/grid.module.js +69 -0
  116. package/esm2015/grid/grid.service.js +50 -0
  117. package/esm2015/grid/mtxGrid.js +5 -0
  118. package/esm2015/grid/public-api.js +17 -0
  119. package/esm2015/loader/loader.component.js +26 -5
  120. package/esm2015/loader/loader.module.js +2 -1
  121. package/esm2015/pipes/pipes.module.js +2 -1
  122. package/esm2015/pipes/to-observable.pipe.js +2 -1
  123. package/esm2015/popover/popover-module.js +2 -1
  124. package/esm2015/popover/popover-target.js +9 -2
  125. package/esm2015/popover/popover-trigger.js +10 -2
  126. package/esm2015/popover/popover.js +10 -2
  127. package/esm2015/progress/progress.component.js +20 -1
  128. package/esm2015/progress/progress.module.js +2 -1
  129. package/esm2015/public-api.js +4 -3
  130. package/esm2015/select/option.component.js +10 -2
  131. package/esm2015/select/select.component.js +10 -2
  132. package/esm2015/select/select.module.js +2 -1
  133. package/esm2015/select/templates.directive.js +89 -12
  134. package/esm2015/slider/mtxSlider.js +5 -0
  135. package/esm2015/slider/public-api.js +3 -0
  136. package/esm2015/slider/slider-module.js +15 -0
  137. package/esm2015/slider/slider.js +1115 -0
  138. package/esm2015/split/interface.js +2 -0
  139. package/esm2015/split/mtxSplit.js +5 -0
  140. package/esm2015/split/public-api.js +6 -0
  141. package/esm2015/split/split-pane.directive.js +156 -0
  142. package/esm2015/split/split.component.js +620 -0
  143. package/esm2015/split/split.module.js +15 -0
  144. package/esm2015/split/utils.js +227 -0
  145. package/esm2015/text3d/text3d.component.js +10 -2
  146. package/esm2015/text3d/text3d.module.js +2 -1
  147. package/esm2015/tooltip/tooltip-module.js +2 -1
  148. package/esm2015/tooltip/tooltip.js +18 -3
  149. package/extensions.metadata.json +1 -1
  150. package/fesm2015/extensions.js +9 -4
  151. package/fesm2015/extensions.js.map +1 -1
  152. package/fesm2015/mtxAlert.js +25 -10
  153. package/fesm2015/mtxAlert.js.map +1 -1
  154. package/fesm2015/mtxButton.js +31 -7
  155. package/fesm2015/mtxButton.js.map +1 -1
  156. package/fesm2015/mtxCheckboxGroup.js +10 -1
  157. package/fesm2015/mtxCheckboxGroup.js.map +1 -1
  158. package/fesm2015/mtxColorPicker.js +10 -1
  159. package/fesm2015/mtxColorPicker.js.map +1 -1
  160. package/fesm2015/mtxColumnResize.js +55 -6
  161. package/fesm2015/mtxColumnResize.js.map +1 -1
  162. package/fesm2015/mtxCore.js +10 -1
  163. package/fesm2015/mtxCore.js.map +1 -1
  164. package/fesm2015/mtxDatetimepicker.js +120 -29
  165. package/fesm2015/mtxDatetimepicker.js.map +1 -1
  166. package/fesm2015/mtxDialog.js +17 -2
  167. package/fesm2015/mtxDialog.js.map +1 -1
  168. package/fesm2015/mtxFormGroup.js +10 -1
  169. package/fesm2015/mtxFormGroup.js.map +1 -1
  170. package/fesm2015/mtxGrid.js +90 -10
  171. package/fesm2015/mtxGrid.js.map +1 -1
  172. package/fesm2015/mtxLoader.js +26 -4
  173. package/fesm2015/mtxLoader.js.map +1 -1
  174. package/fesm2015/mtxPipes.js +2 -0
  175. package/fesm2015/mtxPipes.js.map +1 -1
  176. package/fesm2015/mtxPopover.js +27 -3
  177. package/fesm2015/mtxPopover.js.map +1 -1
  178. package/fesm2015/mtxProgress.js +20 -0
  179. package/fesm2015/mtxProgress.js.map +1 -1
  180. package/fesm2015/mtxSelect.js +107 -13
  181. package/fesm2015/mtxSelect.js.map +1 -1
  182. package/fesm2015/mtxSlider.js +1134 -0
  183. package/fesm2015/mtxSlider.js.map +1 -0
  184. package/fesm2015/mtxSplit.js +21 -4
  185. package/fesm2015/mtxSplit.js.map +1 -1
  186. package/fesm2015/mtxText3d.js +10 -1
  187. package/fesm2015/mtxText3d.js.map +1 -1
  188. package/fesm2015/mtxTooltip.js +18 -2
  189. package/fesm2015/mtxTooltip.js.map +1 -1
  190. package/form-group/_form-group-theme.import.scss +2 -2
  191. package/form-group/_form-group-theme.scss +46 -22
  192. package/form-group/form-group.component.d.ts +2 -0
  193. package/grid/_grid-theme.import.scss +2 -0
  194. package/grid/_grid-theme.scss +114 -0
  195. package/{data-grid → grid}/cell-selection.directive.d.ts +0 -0
  196. package/{data-grid → grid}/cell.component.d.ts +0 -0
  197. package/{data-grid → grid}/cell.component.scss +0 -0
  198. package/{data-grid → grid}/column-menu.component.d.ts +0 -0
  199. package/{data-grid → grid}/column-menu.component.scss +0 -0
  200. package/{data-grid → grid}/column-resize/_column-resize.scss +19 -13
  201. package/{data-grid → grid}/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -0
  202. package/{data-grid → grid}/column-resize/column-resize-directives/column-resize.d.ts +0 -0
  203. package/{data-grid → grid}/column-resize/column-resize-directives/common.d.ts +0 -0
  204. package/{data-grid → grid}/column-resize/column-resize-module.d.ts +0 -0
  205. package/{data-grid → grid}/column-resize/overlay-handle.d.ts +0 -0
  206. package/{data-grid → grid}/column-resize/resizable-directives/common.d.ts +0 -0
  207. package/{data-grid → grid}/column-resize/resizable-directives/resizable.d.ts +0 -0
  208. package/{data-grid → grid}/column-resize/resize-strategy.d.ts +0 -0
  209. package/{data-grid → grid}/expansion-toggle.directive.d.ts +0 -0
  210. package/{data-grid → grid}/grid.component.d.ts +0 -0
  211. package/{data-grid → grid}/grid.component.scss +0 -0
  212. package/{data-grid → grid}/grid.interface.d.ts +0 -0
  213. package/{data-grid → grid}/grid.module.d.ts +0 -0
  214. package/{data-grid → grid}/grid.service.d.ts +0 -0
  215. package/{data-grid → grid}/mtxGrid.d.ts +0 -0
  216. package/{data-grid → grid}/mtxGrid.metadata.json +1 -1
  217. package/{data-grid → grid}/package.json +2 -2
  218. package/{data-grid → grid}/public-api.d.ts +0 -0
  219. package/loader/_loader-theme.import.scss +2 -2
  220. package/loader/_loader-theme.scss +30 -6
  221. package/loader/loader.component.d.ts +9 -2
  222. package/loader/mtxLoader.metadata.json +1 -1
  223. package/package.json +3 -3
  224. package/popover/_popover-theme.import.scss +2 -2
  225. package/popover/_popover-theme.scss +32 -8
  226. package/progress/_progress-theme.import.scss +2 -2
  227. package/progress/_progress-theme.scss +33 -8
  228. package/progress/mtxProgress.metadata.json +1 -1
  229. package/progress/progress.component.d.ts +9 -2
  230. package/public-api.d.ts +3 -2
  231. package/select/_select-theme.import.scss +2 -2
  232. package/select/_select-theme.scss +55 -31
  233. package/slider/_slider-theme.import.scss +2 -0
  234. package/slider/_slider-theme.scss +233 -0
  235. package/{split-pane/mtxSplit.d.ts → slider/mtxSlider.d.ts} +0 -0
  236. package/slider/mtxSlider.metadata.json +1 -0
  237. package/slider/package.json +11 -0
  238. package/slider/public-api.d.ts +2 -0
  239. package/slider/slider-module.d.ts +2 -0
  240. package/slider/slider.d.ts +274 -0
  241. package/slider/slider.scss +513 -0
  242. package/split/_split-theme.import.scss +2 -0
  243. package/split/_split-theme.scss +41 -0
  244. package/{split-pane → split}/interface.d.ts +0 -0
  245. package/split/mtxSplit.d.ts +4 -0
  246. package/split/mtxSplit.metadata.json +1 -0
  247. package/{split-pane → split}/package.json +2 -2
  248. package/{split-pane → split}/public-api.d.ts +0 -0
  249. package/{split-pane → split}/split-pane.directive.d.ts +0 -0
  250. package/{split-pane → split}/split.component.d.ts +0 -0
  251. package/{split-pane → split}/split.component.scss +3 -2
  252. package/{split-pane → split}/split.module.d.ts +0 -0
  253. package/{split-pane → split}/utils.d.ts +0 -0
  254. package/text3d/_text3d-theme.import.scss +2 -2
  255. package/text3d/_text3d-theme.scss +32 -7
  256. package/tooltip/_tooltip-theme.import.scss +2 -2
  257. package/tooltip/_tooltip-theme.scss +32 -15
  258. package/data-grid/_grid-theme.import.scss +0 -2
  259. package/data-grid/_grid-theme.scss +0 -90
  260. package/esm2015/data-grid/cell-selection.directive.js +0 -54
  261. package/esm2015/data-grid/column-resize/column-resize-directives/column-resize-flex.js +0 -40
  262. package/esm2015/data-grid/column-resize/column-resize-directives/column-resize.js +0 -40
  263. package/esm2015/data-grid/column-resize/column-resize-directives/common.js +0 -34
  264. package/esm2015/data-grid/column-resize/column-resize-module.js +0 -34
  265. package/esm2015/data-grid/column-resize/overlay-handle.js +0 -61
  266. package/esm2015/data-grid/column-resize/resizable-directives/common.js +0 -29
  267. package/esm2015/data-grid/column-resize/resizable-directives/resizable.js +0 -67
  268. package/esm2015/data-grid/column-resize/resize-strategy.js +0 -38
  269. package/esm2015/data-grid/expansion-toggle.directive.js +0 -54
  270. package/esm2015/data-grid/grid.interface.js +0 -2
  271. package/esm2015/data-grid/grid.module.js +0 -68
  272. package/esm2015/data-grid/grid.service.js +0 -43
  273. package/esm2015/data-grid/mtxGrid.js +0 -5
  274. package/esm2015/data-grid/public-api.js +0 -17
  275. package/esm2015/split-pane/interface.js +0 -2
  276. package/esm2015/split-pane/mtxSplit.js +0 -5
  277. package/esm2015/split-pane/public-api.js +0 -6
  278. package/esm2015/split-pane/split-pane.directive.js +0 -148
  279. package/esm2015/split-pane/split.component.js +0 -612
  280. package/esm2015/split-pane/split.module.js +0 -14
  281. package/esm2015/split-pane/utils.js +0 -227
  282. package/split-pane/_split-theme.import.scss +0 -2
  283. package/split-pane/_split-theme.scss +0 -17
  284. package/split-pane/mtxSplit.metadata.json +0 -1
@@ -1,60 +1,69 @@
1
1
  @use 'sass:map';
2
- @use '~@angular/material' as mat;
2
+ @use '~@angular/material/core/theming/theming';
3
+ @use '~@angular/material/core/theming/palette';
4
+ @use '~@angular/material/core/style/private';
5
+ @use '~@angular/material/core/typography/typography';
6
+ @use '~@angular/material/core/typography/typography-utils';
3
7
 
4
8
  $selected-today-box-shadow-width: 1px;
5
-
6
- @mixin theme($theme) {
7
- $is-dark-theme: map.get($theme, is-dark);
8
- $primary: map.get($theme, primary);
9
- $background: map.get($theme, background);
10
- $foreground: map.get($theme, foreground);
11
- $disabled-color: mat.get-color-from-palette($foreground, disabled-text);
9
+ $calendar-body-font-size: 13px !default;
10
+ $calendar-weekday-table-font-size: 11px !default;
11
+ $calendar-header-font-size: 30px !default;
12
+ $clock-font-size: 14px !default;
13
+
14
+ @mixin color($config-or-theme) {
15
+ $config: theming.get-color-config($config-or-theme);
16
+ $is-dark-theme: map.get($config, is-dark);
17
+ $primary: map.get($config, primary);
18
+ $background: map.get($config, background);
19
+ $foreground: map.get($config, foreground);
20
+ $disabled-color: theming.get-color-from-palette($foreground, disabled-text);
12
21
 
13
22
  .mtx-datetimepicker-content {
14
- background-color: mat.get-color-from-palette($background, card);
15
- color: mat.get-color-from-palette($foreground, text);
23
+ background-color: theming.get-color-from-palette($background, card);
24
+ color: theming.get-color-from-palette($foreground, text);
16
25
 
17
- @include mat.elevation(8);
26
+ @include private.private-theme-elevation(8, $config);
18
27
  }
19
28
 
20
29
  .mtx-calendar-header {
21
- background-color: mat.get-color-from-palette($primary);
30
+ background-color: theming.get-color-from-palette($primary);
22
31
  color: white;
23
32
  }
24
33
 
25
34
  .mtx-calendar-body-label {
26
- color: mat.get-color-from-palette($foreground, secondary-text);
35
+ color: theming.get-color-from-palette($foreground, secondary-text);
27
36
  }
28
37
 
29
38
  .mtx-calendar-table-header {
30
- color: mat.get-color-from-palette($foreground, hint-text);
39
+ color: theming.get-color-from-palette($foreground, hint-text);
31
40
  }
32
41
 
33
42
  .mtx-calendar-body-cell-content {
34
- color: mat.get-color-from-palette($foreground, text);
43
+ color: theming.get-color-from-palette($foreground, text);
35
44
 
36
45
  &.mtx-calendar-body-selected {
37
- background-color: mat.get-color-from-palette($primary);
46
+ background-color: theming.get-color-from-palette($primary);
38
47
  color: white;
39
48
 
40
49
  &.mtx-calendar-body-today {
41
50
  box-shadow:
42
51
  inset 0 0 0 $selected-today-box-shadow-width
43
- mat.get-color-from-palette($primary, default-contrast);
52
+ theming.get-color-from-palette($primary, default-contrast);
44
53
  }
45
54
  }
46
55
 
47
56
  &:not(.mtx-calendar-body-selected) {
48
57
  &.mtx-calendar-body-today {
49
- border-color: mat.get-color-from-palette($foreground, hint-text);
58
+ border-color: theming.get-color-from-palette($foreground, hint-text);
50
59
  }
51
60
  }
52
61
  }
53
62
 
54
- :not(.mtx-calendar-body-disabled):hover,
63
+ .mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover,
55
64
  .mtx-calendar-body-active {
56
- > .mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected) {
57
- background-color: mat.get-color-from-palette($primary, .3);
65
+ & > .mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected) {
66
+ background-color: theming.get-color-from-palette($primary, .3);
58
67
  }
59
68
  }
60
69
 
@@ -68,7 +77,7 @@ $selected-today-box-shadow-width: 1px;
68
77
  }
69
78
 
70
79
  > .mtx-calendar-body-selected {
71
- background-color: mat.get-color-from-palette($primary, .4);
80
+ background-color: theming.get-color-from-palette($primary, .4);
72
81
  }
73
82
  }
74
83
 
@@ -80,31 +89,31 @@ $selected-today-box-shadow-width: 1px;
80
89
  }
81
90
 
82
91
  .mtx-clock-wrapper {
83
- background-color: mat.get-color-from-palette($foreground, divider);
92
+ background-color: theming.get-color-from-palette($foreground, divider);
84
93
  }
85
94
 
86
95
  .mtx-clock-center {
87
- background-color: mat.get-color-from-palette($primary);
96
+ background-color: theming.get-color-from-palette($primary);
88
97
  }
89
98
 
90
99
  .mtx-clock-hand {
91
- background-color: mat.get-color-from-palette($primary);
100
+ background-color: theming.get-color-from-palette($primary);
92
101
 
93
102
  &::before {
94
- background-color: mat.get-color-from-palette($primary);
103
+ background-color: theming.get-color-from-palette($primary);
95
104
  }
96
105
  }
97
106
 
98
107
  .mtx-clock-cell {
99
- color: mat.get-color-from-palette($foreground, text);
108
+ color: theming.get-color-from-palette($foreground, text);
100
109
 
101
110
  &.mtx-clock-cell-selected {
102
- background-color: mat.get-color-from-palette($primary);
111
+ background-color: theming.get-color-from-palette($primary);
103
112
  color: white;
104
113
  }
105
114
 
106
115
  &:not(.mtx-clock-cell-selected):not(.mtx-clock-cell-disabled):hover {
107
- background-color: mat.get-color-from-palette($background, hover);
116
+ background-color: theming.get-color-from-palette($background, hover);
108
117
  }
109
118
 
110
119
  &.mtx-clock-cell-disabled {
@@ -112,3 +121,66 @@ $selected-today-box-shadow-width: 1px;
112
121
  }
113
122
  }
114
123
  }
124
+
125
+ @mixin typography($config-or-theme) {
126
+ $config: typography.private-typography-to-2014-config(
127
+ theming.get-typography-config($config-or-theme)
128
+ );
129
+
130
+ .mtx-calendar {
131
+ font-family: typography-utils.font-family($config);
132
+ }
133
+
134
+ .mtx-calendar-body {
135
+ font-size: $calendar-body-font-size;
136
+ }
137
+
138
+ .mtx-calendar-body-label,
139
+ .mtx-calendar-period-button {
140
+ font: {
141
+ size: typography-utils.font-size($config, button);
142
+ weight: typography-utils.font-weight($config, button);
143
+ }
144
+ }
145
+
146
+ .mtx-calendar-table-header th {
147
+ font: {
148
+ size: $calendar-weekday-table-font-size;
149
+ weight: typography-utils.font-weight($config, body-1);
150
+ }
151
+ }
152
+
153
+ .mtx-calendar-header-date-time {
154
+ font-size: $calendar-header-font-size;
155
+ }
156
+
157
+ .mtx-calendar-header-ampm-container {
158
+ font-size: .75em;
159
+ }
160
+
161
+ .mtx-clock {
162
+ font-size: $clock-font-size;
163
+ }
164
+ }
165
+
166
+ @mixin _density($config-or-theme) {}
167
+
168
+ @mixin theme($theme-or-color-config) {
169
+ $theme: theming.private-legacy-get-theme($theme-or-color-config);
170
+ @include theming.private-check-duplicate-theme-styles($theme, 'mtx-datetimepicker') {
171
+ $color: theming.get-color-config($theme);
172
+ $density: theming.get-density-config($theme);
173
+ $typography-default: typography.define-typography-config();
174
+ $typography: theming.get-typography-config($theme, $typography-default);
175
+
176
+ @if $color != null {
177
+ @include color($color);
178
+ }
179
+ @if $density != null {
180
+ @include _density($density);
181
+ }
182
+ @if $typography != null {
183
+ @include typography($typography);
184
+ }
185
+ }
186
+ }
@@ -1,7 +1,5 @@
1
1
  @use '~@angular/material/core/style/private';
2
2
 
3
- $calendar-body-font-size: 13px !default;
4
- $calendar-body-header-font-size: 14px !default;
5
3
  $calendar-body-label-padding-start: 5% !default;
6
4
  $calendar-body-label-side-padding: private.private-div(33%, 7) !default;
7
5
  $calendar-body-cell-min-size: 32px !default;
@@ -15,7 +13,6 @@ $calendar-body-min-size: 7 * $calendar-body-cell-min-size !default;
15
13
  $calendar-body-cell-content-size: 100% - $calendar-body-cell-content-margin * 2 !default;
16
14
 
17
15
  .mtx-calendar-body {
18
- font-size: $calendar-body-font-size;
19
16
  min-width: $calendar-body-min-size;
20
17
  }
21
18
 
@@ -1,4 +1,5 @@
1
1
  import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
2
3
  import { MatDatepickerIntl } from '@angular/material/datepicker';
3
4
  import { DatetimeAdapter } from '@ng-matero/extensions/core';
4
5
  import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
@@ -17,11 +18,15 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
17
18
  private _adapter;
18
19
  private _dateFormats;
19
20
  _userSelection: EventEmitter<void>;
20
- /** Active multi year view when click on year. */
21
- multiYearSelector: boolean;
21
+ get multiYearSelector(): boolean;
22
+ set multiYearSelector(value: boolean);
23
+ private _multiYearSelector;
24
+ /** if true change the clock to 12 hour format. */
25
+ get twelvehour(): boolean;
26
+ set twelvehour(value: boolean);
27
+ private _twelvehour;
22
28
  /** Whether the calendar should be started in month or year view. */
23
29
  startView: MtxCalendarView;
24
- twelvehour: boolean;
25
30
  timeInterval: number;
26
31
  /** A function used to filter which dates are selectable. */
27
32
  dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
@@ -135,4 +140,6 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
135
140
  private _nextMonthInSameCol;
136
141
  private calendarState;
137
142
  private _2digit;
143
+ static ngAcceptInputType_multiYearSelector: BooleanInput;
144
+ static ngAcceptInputType_twelvehour: BooleanInput;
138
145
  }
@@ -1,5 +1,4 @@
1
1
  $calendar-padding: 8px !default;
2
- $calendar-weekday-table-font-size: 11px !default;
3
2
 
4
3
  // We use the same padding as the month / year label, but subtract 16px since there is padding
5
4
  // between the edge of the button and the text. This ensures that the button text lines up with
@@ -15,6 +14,7 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
15
14
 
16
15
  .mtx-calendar {
17
16
  display: block;
17
+ outline: none;
18
18
 
19
19
  &[mode='landscape'] {
20
20
  display: flex;
@@ -23,7 +23,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
23
23
 
24
24
  .mtx-calendar-header {
25
25
  padding: $calendar-padding * 2;
26
- font-size: 14px;
27
26
  box-sizing: border-box;
28
27
  border-radius: 4px 4px 0 0;
29
28
 
@@ -41,22 +40,19 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
41
40
  .mtx-calendar-header-year,
42
41
  .mtx-calendar-header-date-time {
43
42
  width: 100%;
44
- font-weight: 400;
45
43
  white-space: nowrap;
46
44
  }
47
45
 
48
46
  .mtx-calendar-header-year {
49
47
  height: 32px;
50
48
  line-height: 32px;
51
- font-size: 16px;
52
49
 
53
- .mat-icon {
50
+ > * {
54
51
  vertical-align: middle;
55
52
  }
56
53
  }
57
54
 
58
55
  .mtx-calendar-header-date-time {
59
- font-size: 30px;
60
56
  line-height: 34px;
61
57
 
62
58
  [mode='landscape'] & {
@@ -65,10 +61,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
65
61
  }
66
62
  }
67
63
 
68
- .mtx-calendar-header-ampm-container {
69
- font-size: .77em;
70
- }
71
-
72
64
  .mtx-calendar-header-year,
73
65
  .mtx-calendar-header-date,
74
66
  .mtx-calendar-header-hours,
@@ -131,7 +123,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
131
123
  display: inline-block;
132
124
  height: 40px;
133
125
  line-height: 40px;
134
- font-size: 14px;
135
126
  outline: none;
136
127
  border: 0;
137
128
  background: transparent;
@@ -160,13 +151,9 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
160
151
  width: 100%;
161
152
  }
162
153
 
163
- .mtx-calendar-table-header {
164
- th {
165
- text-align: center;
166
- font-size: $calendar-weekday-table-font-size;
167
- font-weight: 400;
168
- padding: $calendar-padding 0;
169
- }
154
+ .mtx-calendar-table-header th {
155
+ text-align: center;
156
+ padding: $calendar-padding 0;
170
157
  }
171
158
 
172
159
  @media all and (orientation: landscape) {
@@ -192,9 +179,5 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
192
179
  display: block;
193
180
  padding: 0;
194
181
  }
195
-
196
- .mtx-calendar-content {
197
- padding-top: $calendar-padding;
198
- }
199
182
  }
200
183
  }
@@ -1,6 +1,5 @@
1
1
  $clock-min-size: 224px !default;
2
2
  $clock-margin: 8px !default;
3
- $clock-font-size: 14px !default;
4
3
  $clock-cell-size: 14.1666% !default;
5
4
 
6
5
  .mtx-clock {
@@ -8,7 +7,6 @@ $clock-cell-size: 14.1666% !default;
8
7
  display: block;
9
8
  min-width: $clock-min-size;
10
9
  margin: $clock-margin;
11
- font-size: $clock-font-size;
12
10
  box-sizing: border-box;
13
11
  user-select: none;
14
12
  }
@@ -37,7 +37,7 @@ $touch-max-height: 850px;
37
37
  justify-content: space-between;
38
38
  }
39
39
 
40
- .mtx-calendar {
40
+ .mtx-datetimepicker-content .mtx-calendar {
41
41
  width: $non-touch-calendar-portrait-width;
42
42
  height: $non-touch-calendar-portrait-height;
43
43
 
@@ -48,7 +48,7 @@ $touch-max-height: 850px;
48
48
  }
49
49
 
50
50
  @media all and (orientation: landscape) {
51
- .mtx-calendar[mode='auto'] {
51
+ .mtx-datetimepicker-content .mtx-calendar[mode='auto'] {
52
52
  width: $non-touch-calendar-landscape-width;
53
53
  height: $non-touch-calendar-landscape-height;
54
54
  }
@@ -1,5 +1,6 @@
1
1
  import { AfterContentInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
3
4
  import { MatFormField } from '@angular/material/form-field';
4
5
  import { DatetimeAdapter } from '@ng-matero/extensions/core';
5
6
  import { MtxDatetimeFormats } from '@ng-matero/extensions/core';
@@ -43,10 +44,10 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
43
44
  /** The datetimepicker that this input is associated with. */
44
45
  set mtxDatetimepicker(value: MtxDatetimepicker<D>);
45
46
  set mtxDatetimepickerFilter(filter: (date: D | null, type: MtxDatetimepickerFilterType) => boolean);
46
- private _value;
47
47
  /** The value of the input. */
48
48
  get value(): D | null;
49
49
  set value(value: D | null);
50
+ private _value;
50
51
  /** The minimum valid date. */
51
52
  get min(): D | null;
52
53
  set min(value: D | null);
@@ -56,8 +57,8 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
56
57
  set max(value: D | null);
57
58
  private _max;
58
59
  /** Whether the datetimepicker-input is disabled. */
59
- get disabled(): any;
60
- set disabled(value: any);
60
+ get disabled(): boolean;
61
+ set disabled(value: boolean);
61
62
  private _disabled;
62
63
  _onTouched: () => void;
63
64
  ngAfterContentInit(): void;
@@ -97,4 +98,5 @@ export declare class MtxDatetimepickerInput<D> implements AfterContentInit, Cont
97
98
  private _validator;
98
99
  /** Formats a value and sets it on the input element. */
99
100
  private _formatValue;
101
+ static ngAcceptInputType_disabled: BooleanInput;
100
102
  }
@@ -1,4 +1,5 @@
1
1
  import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
2
3
  import { MatDatepickerIntl } from '@angular/material/datepicker';
3
4
  import { MtxDatetimepicker } from './datetimepicker';
4
5
  export declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
@@ -17,4 +18,5 @@ export declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnC
17
18
  ngAfterContentInit(): void;
18
19
  _open(event: Event): void;
19
20
  private _watchStateChanges;
21
+ static ngAcceptInputType_disabled: BooleanInput;
20
22
  }
@@ -1,6 +1,7 @@
1
+ import { AfterContentInit, EventEmitter, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
1
2
  import { Directionality } from '@angular/cdk/bidi';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
2
4
  import { Overlay } from '@angular/cdk/overlay';
3
- import { AfterContentInit, EventEmitter, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
4
5
  import { Subject } from 'rxjs';
5
6
  import { DatetimeAdapter } from '@ng-matero/extensions/core';
6
7
  import { MtxCalendarView, MtxCalendar } from './calendar';
@@ -29,9 +30,13 @@ export declare class MtxDatetimepicker<D> implements OnDestroy {
29
30
  private _dateAdapter;
30
31
  private _dir;
31
32
  /** Active multi year view when click on year. */
32
- multiYearSelector: boolean;
33
+ get multiYearSelector(): boolean;
34
+ set multiYearSelector(value: boolean);
35
+ private _multiYearSelector;
33
36
  /** if true change the clock to 12 hour format. */
34
- twelvehour: boolean;
37
+ get twelvehour(): boolean;
38
+ set twelvehour(value: boolean);
39
+ private _twelvehour;
35
40
  /** The view that the calendar should start in. */
36
41
  startView: MtxCalendarView;
37
42
  mode: MtxDatetimepickerMode;
@@ -140,4 +145,9 @@ export declare class MtxDatetimepicker<D> implements OnDestroy {
140
145
  private _setConnectedPositions;
141
146
  /** Gets an observable that will emit when the overlay is supposed to be closed. */
142
147
  private _getCloseStream;
148
+ static ngAcceptInputType_multiYearSelector: BooleanInput;
149
+ static ngAcceptInputType_twelvehour: BooleanInput;
150
+ static ngAcceptInputType_touchUi: BooleanInput;
151
+ static ngAcceptInputType_disabled: BooleanInput;
152
+ static ngAcceptInputType_openOnFocus: BooleanInput;
143
153
  }