@ng-matero/extensions 16.3.1 → 17.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 (204) hide show
  1. package/_index.scss +2 -1
  2. package/alert/_alert-theme.scss +54 -24
  3. package/alert/alert.d.ts +3 -6
  4. package/alert/alert.scss +3 -3
  5. package/button/_button-theme.scss +6 -4
  6. package/button/button-loading.d.ts +5 -10
  7. package/button/button-module.d.ts +5 -5
  8. package/checkbox-group/checkbox-group.d.ts +4 -9
  9. package/colorpicker/_colorpicker-theme.scss +62 -34
  10. package/colorpicker/colorpicker-input.d.ts +1 -3
  11. package/colorpicker/colorpicker-toggle.d.ts +2 -3
  12. package/colorpicker/colorpicker.d.ts +5 -6
  13. package/core/color/_all-color.scss +7 -18
  14. package/core/density/_all-density.scss +28 -14
  15. package/core/mdc-helpers/_mdc-helpers.scss +27 -238
  16. package/core/style/_sass-utils.scss +13 -1
  17. package/core/style/_validation.scss +43 -0
  18. package/core/theming/_all-theme.scss +32 -17
  19. package/core/theming/_inspection.scss +303 -0
  20. package/core/theming/_m2-inspection.scss +266 -0
  21. package/core/tokens/_token-utils.scss +4 -5
  22. package/core/tokens/m2/mdc/_plain-tooltip.scss +21 -29
  23. package/core/tokens/m2/mtx/_alert.scss +14 -15
  24. package/core/tokens/m2/mtx/_colorpicker.scss +8 -11
  25. package/core/tokens/m2/mtx/_datetimepicker.scss +38 -47
  26. package/core/tokens/m2/mtx/_drawer.scss +9 -10
  27. package/core/tokens/m2/mtx/_grid.scss +34 -22
  28. package/core/tokens/m2/mtx/_loader.scss +6 -6
  29. package/core/tokens/m2/mtx/_popover.scss +10 -11
  30. package/core/tokens/m2/mtx/_progress.scss +18 -17
  31. package/core/tokens/m2/mtx/_select.scss +65 -25
  32. package/core/tokens/m2/mtx/_split.scss +8 -11
  33. package/core/typography/_all-typography.scss +40 -0
  34. package/core/typography/_typography.scss +1 -579
  35. package/datetimepicker/_datetimepicker-theme.scss +75 -48
  36. package/datetimepicker/calendar.d.ts +7 -14
  37. package/datetimepicker/calendar.scss +16 -4
  38. package/datetimepicker/clock.d.ts +1 -2
  39. package/datetimepicker/datetimepicker-content.scss +3 -3
  40. package/datetimepicker/datetimepicker-input.d.ts +1 -2
  41. package/datetimepicker/datetimepicker-toggle.d.ts +2 -3
  42. package/datetimepicker/datetimepicker.d.ts +15 -26
  43. package/datetimepicker/month-view.d.ts +1 -1
  44. package/datetimepicker/multi-year-view.d.ts +1 -1
  45. package/datetimepicker/time.d.ts +3 -5
  46. package/datetimepicker/time.scss +2 -2
  47. package/datetimepicker/year-view.d.ts +1 -1
  48. package/drawer/_drawer-theme.scss +55 -22
  49. package/drawer/drawer-container.scss +25 -4
  50. package/esm2022/alert/alert-module.mjs +4 -4
  51. package/esm2022/alert/alert.mjs +11 -18
  52. package/esm2022/button/button-loading.mjs +13 -23
  53. package/esm2022/button/button-module.mjs +6 -7
  54. package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
  55. package/esm2022/checkbox-group/checkbox-group.mjs +18 -29
  56. package/esm2022/colorpicker/colorpicker-input.mjs +13 -14
  57. package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
  58. package/esm2022/colorpicker/colorpicker-toggle.mjs +18 -18
  59. package/esm2022/colorpicker/colorpicker.mjs +31 -36
  60. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  61. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
  62. package/esm2022/column-resize/column-resize-module.mjs +4 -4
  63. package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
  64. package/esm2022/column-resize/column-resize.mjs +3 -3
  65. package/esm2022/column-resize/column-size-store.mjs +3 -3
  66. package/esm2022/column-resize/event-dispatcher.mjs +4 -4
  67. package/esm2022/column-resize/overlay-handle.mjs +3 -3
  68. package/esm2022/column-resize/resizable.mjs +3 -3
  69. package/esm2022/column-resize/resize-strategy.mjs +13 -13
  70. package/esm2022/core/datetime/datetime.module.mjs +8 -8
  71. package/esm2022/core/datetime/native-datetime-adapter.mjs +5 -5
  72. package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
  73. package/esm2022/core/pipes/pipes.module.mjs +4 -4
  74. package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
  75. package/esm2022/datetimepicker/calendar-body.mjs +5 -6
  76. package/esm2022/datetimepicker/calendar.mjs +30 -47
  77. package/esm2022/datetimepicker/clock.mjs +10 -9
  78. package/esm2022/datetimepicker/datetimepicker-input.mjs +14 -15
  79. package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
  80. package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
  81. package/esm2022/datetimepicker/datetimepicker-toggle.mjs +18 -18
  82. package/esm2022/datetimepicker/datetimepicker.mjs +57 -80
  83. package/esm2022/datetimepicker/month-view.mjs +8 -9
  84. package/esm2022/datetimepicker/multi-year-view.mjs +8 -8
  85. package/esm2022/datetimepicker/time.mjs +18 -24
  86. package/esm2022/datetimepicker/year-view.mjs +8 -8
  87. package/esm2022/dialog/dialog-container.mjs +7 -7
  88. package/esm2022/dialog/dialog-module.mjs +4 -4
  89. package/esm2022/dialog/dialog.mjs +4 -4
  90. package/esm2022/drawer/drawer-container.mjs +7 -7
  91. package/esm2022/drawer/drawer-module.mjs +4 -4
  92. package/esm2022/drawer/drawer.mjs +5 -5
  93. package/esm2022/grid/cell.mjs +6 -6
  94. package/esm2022/grid/column-menu.mjs +5 -5
  95. package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  96. package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +4 -4
  97. package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
  98. package/esm2022/grid/column-resize/overlay-handle.mjs +6 -6
  99. package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +6 -6
  100. package/esm2022/grid/column-resize/resize-strategy.mjs +5 -5
  101. package/esm2022/grid/expansion-toggle.mjs +5 -5
  102. package/esm2022/grid/grid-module.mjs +4 -4
  103. package/esm2022/grid/grid-pipes.mjs +22 -22
  104. package/esm2022/grid/grid-utils.mjs +4 -4
  105. package/esm2022/grid/grid.mjs +76 -44
  106. package/esm2022/loader/loader-module.mjs +4 -4
  107. package/esm2022/loader/loader.mjs +17 -29
  108. package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
  109. package/esm2022/photoviewer/photoviewer.mjs +7 -7
  110. package/esm2022/popover/popover-content.mjs +8 -8
  111. package/esm2022/popover/popover-module.mjs +4 -4
  112. package/esm2022/popover/popover-target.mjs +4 -4
  113. package/esm2022/popover/popover-trigger.mjs +6 -6
  114. package/esm2022/popover/popover.mjs +52 -137
  115. package/esm2022/progress/progress-module.mjs +4 -4
  116. package/esm2022/progress/progress.mjs +14 -25
  117. package/esm2022/select/option.mjs +11 -17
  118. package/esm2022/select/select-module.mjs +4 -4
  119. package/esm2022/select/select.mjs +13 -13
  120. package/esm2022/select/templates.mjs +44 -44
  121. package/esm2022/split/split-module.mjs +4 -4
  122. package/esm2022/split/split-pane.mjs +5 -5
  123. package/esm2022/split/split.mjs +7 -7
  124. package/esm2022/tooltip/tooltip-module.mjs +4 -4
  125. package/esm2022/tooltip/tooltip.mjs +22 -22
  126. package/fesm2022/mtxAlert.mjs +14 -21
  127. package/fesm2022/mtxAlert.mjs.map +1 -1
  128. package/fesm2022/mtxButton.mjs +17 -28
  129. package/fesm2022/mtxButton.mjs.map +1 -1
  130. package/fesm2022/mtxCheckboxGroup.mjs +21 -32
  131. package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
  132. package/fesm2022/mtxColorpicker.mjs +61 -64
  133. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  134. package/fesm2022/mtxColumnResize.mjs +48 -48
  135. package/fesm2022/mtxCore.mjs +23 -23
  136. package/fesm2022/mtxDatetimepicker.mjs +150 -190
  137. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  138. package/fesm2022/mtxDialog.mjs +14 -14
  139. package/fesm2022/mtxDialog.mjs.map +1 -1
  140. package/fesm2022/mtxDrawer.mjs +17 -17
  141. package/fesm2022/mtxDrawer.mjs.map +1 -1
  142. package/fesm2022/mtxGrid.mjs +150 -118
  143. package/fesm2022/mtxGrid.mjs.map +1 -1
  144. package/fesm2022/mtxLoader.mjs +20 -32
  145. package/fesm2022/mtxLoader.mjs.map +1 -1
  146. package/fesm2022/mtxPhotoviewer.mjs +10 -10
  147. package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
  148. package/fesm2022/mtxPopover.mjs +73 -158
  149. package/fesm2022/mtxPopover.mjs.map +1 -1
  150. package/fesm2022/mtxProgress.mjs +17 -28
  151. package/fesm2022/mtxProgress.mjs.map +1 -1
  152. package/fesm2022/mtxSelect.mjs +68 -73
  153. package/fesm2022/mtxSelect.mjs.map +1 -1
  154. package/fesm2022/mtxSplit.mjs +14 -14
  155. package/fesm2022/mtxSplit.mjs.map +1 -1
  156. package/fesm2022/mtxTooltip.mjs +26 -26
  157. package/fesm2022/mtxTooltip.mjs.map +1 -1
  158. package/grid/_grid-theme.scss +60 -24
  159. package/grid/column-menu.scss +32 -3
  160. package/grid/grid.d.ts +33 -1
  161. package/grid/grid.scss +36 -108
  162. package/loader/_loader-theme.scss +55 -22
  163. package/loader/loader.d.ts +4 -9
  164. package/loader/loader.scss +1 -1
  165. package/package.json +13 -19
  166. package/photoviewer/photoviewer.d.ts +1 -0
  167. package/popover/_popover-theme.scss +55 -22
  168. package/popover/popover.d.ts +23 -54
  169. package/popover/popover.scss +2 -2
  170. package/prebuilt-themes/deeppurple-amber.css +1 -1
  171. package/prebuilt-themes/indigo-pink.css +1 -1
  172. package/prebuilt-themes/pink-bluegrey.css +1 -1
  173. package/prebuilt-themes/purple-green.css +1 -1
  174. package/progress/_progress-theme.scss +60 -22
  175. package/progress/progress.d.ts +4 -9
  176. package/progress/progress.scss +3 -3
  177. package/select/_select-theme.scss +66 -34
  178. package/select/option.d.ts +2 -5
  179. package/select/select.d.ts +1 -3
  180. package/select/select.scss +104 -127
  181. package/split/_split-theme.scss +62 -32
  182. package/split/split.scss +2 -4
  183. package/tooltip/_tooltip-theme.scss +66 -34
  184. package/_theming.scss +0 -16
  185. package/alert/_alert-theme.import.scss +0 -2
  186. package/button/_button-theme.import.scss +0 -2
  187. package/colorpicker/_colorpicker-theme.import.scss +0 -2
  188. package/core/style/_elevation.scss +0 -91
  189. package/core/style/_private.scss +0 -32
  190. package/core/style/_variables.scss +0 -44
  191. package/core/style/_vendor-prefixes.scss +0 -46
  192. package/core/theming/_palette.scss +0 -746
  193. package/core/theming/_theming.scss +0 -463
  194. package/core/typography/_typography-utils.scss +0 -101
  195. package/datetimepicker/_datetimepicker-theme.import.scss +0 -4
  196. package/drawer/_drawer-theme.import.scss +0 -2
  197. package/grid/_grid-theme.import.scss +0 -2
  198. package/loader/_loader-theme.import.scss +0 -2
  199. package/popover/_popover-theme.import.scss +0 -2
  200. package/progress/_progress-theme.import.scss +0 -2
  201. package/select/_select-density.scss +0 -68
  202. package/select/_select-theme.import.scss +0 -3
  203. package/split/_split-theme.import.scss +0 -2
  204. package/tooltip/_tooltip-theme.import.scss +0 -1
@@ -1,91 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:meta';
3
- @use 'variables';
4
- @use '@material/elevation/elevation-theme' as mdc-elevation;
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
- // The default duration value for elevation transitions.
26
- $transition-duration: 280ms !default;
27
-
28
- // The default easing value for elevation transitions.
29
- $transition-timing-function: variables.$fast-out-slow-in-timing-function;
30
-
31
- // The default color for elevation shadows.
32
- $color: black !default;
33
-
34
- // Prefix for elevation-related selectors.
35
- $prefix: 'mat-elevation-z';
36
-
37
- // Applies the correct css rules to an element to give it the elevation specified by $zValue.
38
- // The $zValue must be between 0 and 24.
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);
42
- }
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);
57
- }
58
- }
59
-
60
- // Applies the elevation to an element in a manner that allows
61
- // consumers to override it via the Material elevation classes.
62
- @mixin overridable-elevation($zValue, $color: $color) {
63
- &:not([class*='#{$prefix}']) {
64
- @include elevation($zValue, $color);
65
- }
66
- }
67
-
68
- // Returns a string that can be used as the value for a transition property for elevation.
69
- // Calling this function directly is useful in situations where a component needs to transition
70
- // more than one property.
71
- //
72
- // .foo {
73
- // transition: mat-elevation-transition-property-value(), opacity 100ms ease;
74
- // }
75
- @function private-transition-property-value(
76
- $duration: $transition-duration,
77
- $easing: $transition-timing-function) {
78
- @return box-shadow #{$duration} #{$easing};
79
- }
80
-
81
- // Applies the correct css rules needed to have an element transition between elevations.
82
- // This mixin should be applied to elements whose elevation values will change depending on their
83
- // context (e.g. when active or disabled).
84
- //
85
- // NOTE(traviskaufman): Both this mixin and the above function use default parameters so they can
86
- // be used in the same way by clients.
87
- @mixin elevation-transition(
88
- $duration: $transition-duration,
89
- $easing: $transition-timing-function) {
90
- transition: private-transition-property-value($duration, $easing);
91
- }
@@ -1,32 +0,0 @@
1
- @use 'sass:map';
2
- @use './elevation';
3
-
4
- @mixin private-theme-elevation($zValue, $config) {
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);
10
- }
11
-
12
- @mixin private-theme-overridable-elevation($zValue, $config) {
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);
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
- &._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;
30
- @content;
31
- }
32
- }
@@ -1,44 +0,0 @@
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 main 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;
@@ -1,46 +0,0 @@
1
- /* stylelint-disable property-no-vendor-prefix */
2
- /* stylelint-disable selector-no-vendor-prefix */
3
- @mixin user-select($value) {
4
- -webkit-user-select: $value;
5
- user-select: $value;
6
- }
7
-
8
- @mixin input-placeholder {
9
- &::placeholder {
10
- @content;
11
- }
12
-
13
- &::-moz-placeholder {
14
- @content;
15
- }
16
-
17
- &::-webkit-input-placeholder {
18
- @content;
19
- }
20
-
21
- // Note: this isn't necessary anymore since we don't support
22
- // IE, but it caused some presubmit failures in #23416.
23
- &:-ms-input-placeholder {
24
- @content;
25
- }
26
- }
27
-
28
- @mixin backface-visibility($value) {
29
- -webkit-backface-visibility: $value;
30
- backface-visibility: $value;
31
- }
32
-
33
- @mixin color-adjust($value) {
34
- -webkit-print-color-adjust: $value;
35
- print-color-adjust: $value;
36
- }
37
-
38
- @mixin private-background-clip($value) {
39
- -webkit-background-clip: $value;
40
- background-clip: $value;
41
- }
42
-
43
- @mixin clip-path($value) {
44
- -webkit-clip-path: $value;
45
- clip-path: $value;
46
- }