@ng-matero/extensions 20.1.1 → 20.2.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 (45) hide show
  1. package/_index.scss +0 -1
  2. package/alert/_alert-theme.scss +19 -28
  3. package/alert/_m2-alert.scss +34 -51
  4. package/colorpicker/_colorpicker-theme.scss +24 -31
  5. package/colorpicker/_m2-colorpicker.scss +12 -35
  6. package/column-resize/index.d.ts +0 -1
  7. package/core/index.d.ts +1 -2
  8. package/core/tokens/_m2-utils.scss +17 -100
  9. package/core/tokens/_token-utils.scss +7 -27
  10. package/datetimepicker/_datetimepicker-theme.scss +24 -48
  11. package/datetimepicker/_m2-datetimepicker.scss +81 -131
  12. package/datetimepicker/_m3-datetimepicker.scss +18 -15
  13. package/datetimepicker/index.d.ts +10 -28
  14. package/drawer/_drawer-theme.scss +17 -26
  15. package/drawer/_m2-drawer.scss +12 -34
  16. package/fesm2022/mtxButton.mjs +13 -2
  17. package/fesm2022/mtxButton.mjs.map +1 -1
  18. package/fesm2022/mtxColumnResize.mjs +1 -1
  19. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  20. package/fesm2022/mtxCore.mjs.map +1 -1
  21. package/fesm2022/mtxDatetimepicker.mjs +4 -4
  22. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  23. package/fesm2022/mtxTooltip.mjs.map +1 -1
  24. package/grid/_grid-theme.scss +17 -26
  25. package/grid/_m2-grid.scss +37 -56
  26. package/loader/_loader-theme.scss +17 -26
  27. package/loader/_m2-loader.scss +9 -32
  28. package/package.json +28 -28
  29. package/popover/_m2-popover.scss +15 -37
  30. package/popover/_popover-theme.scss +16 -24
  31. package/prebuilt-themes/deeppurple-amber.css +1 -1
  32. package/prebuilt-themes/indigo-pink.css +1 -1
  33. package/prebuilt-themes/pink-bluegrey.css +1 -1
  34. package/prebuilt-themes/purple-green.css +1 -1
  35. package/progress/_m2-progress.scss +29 -44
  36. package/progress/_progress-theme.scss +17 -26
  37. package/select/_m2-select.scss +40 -67
  38. package/select/_m3-select.scss +2 -1
  39. package/select/_select-theme.scss +22 -29
  40. package/split/_m2-split.scss +13 -34
  41. package/split/_split-theme.scss +21 -30
  42. package/tooltip/_m2-tooltip.scss +18 -43
  43. package/tooltip/_tooltip-theme.scss +16 -21
  44. package/tooltip/index.d.ts +2 -2
  45. package/core/tokens/_m2-tokens.scss +0 -71
@@ -175,7 +175,7 @@ declare class MtxTooltip implements OnDestroy, AfterViewInit {
175
175
  private readonly _destroyed;
176
176
  /** Whether ngOnDestroyed has been called. */
177
177
  private _isDestroyed;
178
- constructor(...args: unknown[]);
178
+ constructor();
179
179
  ngAfterViewInit(): void;
180
180
  /**
181
181
  * Dispose the tooltip when destroyed.
@@ -278,7 +278,7 @@ declare class TooltipComponent implements OnDestroy {
278
278
  private readonly _showAnimation;
279
279
  /** Name of the hide animation and the class that toggles it. */
280
280
  private readonly _hideAnimation;
281
- constructor(...args: unknown[]);
281
+ constructor();
282
282
  /**
283
283
  * Shows the tooltip with an animation originating from the provided origin
284
284
  * @param delay Amount of milliseconds to the delay showing the tooltip.
@@ -1,71 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:meta';
3
- @use '@angular/material' as mat;
4
- @use '../../alert/m2-alert';
5
- @use '../../colorpicker/m2-colorpicker';
6
- @use '../../datetimepicker/m2-datetimepicker';
7
- @use '../../drawer/m2-drawer';
8
- @use '../../grid/m2-grid';
9
- @use '../../loader/m2-loader';
10
- @use '../../popover/m2-popover';
11
- @use '../../progress/m2-progress';
12
- @use '../../select/m2-select';
13
- @use '../../split/m2-split';
14
- @use '../../tooltip/m2-tooltip';
15
-
16
- /// Gets the tokens for the given theme, m2 tokens module, and theming system.
17
- /// @param {Map} $theme The Angular Material theme object to generate token values from.
18
- /// @param {String} $module The Sass module containing the token getter functions.
19
- /// @param {String} $system The theming system to get tokens for. Valid values are: unthemable,
20
- /// color, typography, density.
21
- /// @return {Map} The token map by calling the token getter for the given system in the given module
22
- /// with the given Angular Material theme. Token names are not fully-qualified.
23
- @function _get-tokens-for-module-and-system($theme, $module, $system) {
24
- @if $system == unthemable {
25
- @return meta.call(
26
- meta.get-function(get-#{$system}-tokens, $module: $module));
27
- }
28
- @if not mat.theme-has($theme, $system) {
29
- @return ();
30
- }
31
- @return meta.call(
32
- meta.get-function(get-#{$system}-tokens, $module: $module), $theme);
33
- }
34
-
35
- /// Gets the fully qualified tokens map for the given theme and m2 tokens module.
36
- /// @param {Map} $theme The Angular Material theme object to generate token values from.
37
- /// @param {String} $module The Sass module containing the token getter functions.
38
- /// @return {Map} The token map by calling the token getters in the given module with the given
39
- /// Angular Material theme. Token names are fully-qualified.
40
- @function _get-tokens-for-module($theme, $module) {
41
- $tokens: mat.private-deep-merge-all(
42
- _get-tokens-for-module-and-system($theme, $module, unthemable),
43
- _get-tokens-for-module-and-system($theme, $module, color),
44
- _get-tokens-for-module-and-system($theme, $module, typography),
45
- _get-tokens-for-module-and-system($theme, $module, density));
46
- @return map.set((), map.get(meta.module-variables($module), prefix), $tokens);
47
- }
48
-
49
- /// Gets the full set of M2 tokens for the given theme object.
50
- /// @param {Map} $theme The Angular Material theme object to generate token values from.
51
- /// @return {Map} The token map for the given Angular Material theme. Returned format:
52
- /// (
53
- /// (fully, qualified, namespace): (
54
- /// token: value
55
- /// )
56
- /// )
57
- @function m2-tokens-from-theme($theme) {
58
- @return mat.private-deep-merge-all(
59
- _get-tokens-for-module($theme, m2-alert),
60
- _get-tokens-for-module($theme, m2-colorpicker),
61
- _get-tokens-for-module($theme, m2-datetimepicker),
62
- _get-tokens-for-module($theme, m2-drawer),
63
- _get-tokens-for-module($theme, m2-grid),
64
- _get-tokens-for-module($theme, m2-loader),
65
- _get-tokens-for-module($theme, m2-popover),
66
- _get-tokens-for-module($theme, m2-progress),
67
- _get-tokens-for-module($theme, m2-select),
68
- _get-tokens-for-module($theme, m2-split),
69
- _get-tokens-for-module($theme, m2-tooltip),
70
- );
71
- }