@ng-matero/extensions 18.2.4 → 18.3.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.
@@ -51,6 +51,13 @@
51
51
  }
52
52
  }
53
53
 
54
+ @mixin overrides($tokens: ()) {
55
+ @include token-utils.batch-create-token-values(
56
+ $tokens,
57
+ (prefix: tokens-mtx-grid.$prefix, tokens: tokens-mtx-grid.get-token-slots()),
58
+ );
59
+ }
60
+
54
61
  @mixin theme($theme) {
55
62
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-grid') {
56
63
  @if mat.get-theme-version($theme) == 1 {
package/grid/grid.scss CHANGED
@@ -110,7 +110,12 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
110
110
  }
111
111
 
112
112
  .mat-sort-header-icon {
113
- margin: 0 4px;
113
+ margin-left: 4px;
114
+
115
+ [dir='rtl'] & {
116
+ margin-left: 0;
117
+ margin-right: 4px;
118
+ }
114
119
  }
115
120
 
116
121
  .mat-header-cell-inner {
@@ -230,8 +235,8 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
230
235
  @include token-utils.use-tokens($_tokens...) {
231
236
  $compat-size: token-utils.get-token-variable(row-expand-button-size);
232
237
 
233
- width: var(--mdc-icon-button-state-layer-size, var($compat-size));
234
- height: var(--mdc-icon-button-state-layer-size, var($compat-size));
238
+ width: var(--mdc-icon-button-state-layer-size, $compat-size);
239
+ height: var(--mdc-icon-button-state-layer-size, $compat-size);
235
240
  }
236
241
  }
237
242
 
@@ -252,9 +257,3 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
252
257
  vertical-align: middle;
253
258
  }
254
259
  }
255
-
256
- .mtx-grid-icon {
257
- width: 20px;
258
- height: 20px;
259
- font-size: 20px;
260
- }
@@ -71,6 +71,8 @@ export interface MtxGridColumnButton<T = any> {
71
71
  type?: MtxGridButtonType;
72
72
  text?: string | Observable<string>;
73
73
  icon?: string;
74
+ fontIcon?: string;
75
+ svgIcon?: string;
74
76
  color?: ThemePalette;
75
77
  class?: string;
76
78
  disabled?: boolean | ((rowData: T) => boolean);
@@ -43,6 +43,13 @@
43
43
  @else {}
44
44
  }
45
45
 
46
+ @mixin overrides($tokens: ()) {
47
+ @include token-utils.batch-create-token-values(
48
+ $tokens,
49
+ (prefix: tokens-mtx-loader.$prefix, tokens: tokens-mtx-loader.get-token-slots()),
50
+ );
51
+ }
52
+
46
53
  @mixin theme($theme) {
47
54
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-loader') {
48
55
  @if mat.get-theme-version($theme) == 1 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-matero/extensions",
3
- "version": "18.2.4",
3
+ "version": "18.3.0",
4
4
  "description": "Angular Material Extensions",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -84,6 +84,12 @@
84
84
  "esm": "./esm2022/button/mtxButton.mjs",
85
85
  "default": "./fesm2022/mtxButton.mjs"
86
86
  },
87
+ "./colorpicker": {
88
+ "types": "./colorpicker/index.d.ts",
89
+ "esm2022": "./esm2022/colorpicker/mtxColorpicker.mjs",
90
+ "esm": "./esm2022/colorpicker/mtxColorpicker.mjs",
91
+ "default": "./fesm2022/mtxColorpicker.mjs"
92
+ },
87
93
  "./checkbox-group": {
88
94
  "types": "./checkbox-group/index.d.ts",
89
95
  "esm2022": "./esm2022/checkbox-group/mtxCheckboxGroup.mjs",
@@ -102,12 +108,6 @@
102
108
  "esm": "./esm2022/column-resize/mtxColumnResize.mjs",
103
109
  "default": "./fesm2022/mtxColumnResize.mjs"
104
110
  },
105
- "./colorpicker": {
106
- "types": "./colorpicker/index.d.ts",
107
- "esm2022": "./esm2022/colorpicker/mtxColorpicker.mjs",
108
- "esm": "./esm2022/colorpicker/mtxColorpicker.mjs",
109
- "default": "./fesm2022/mtxColorpicker.mjs"
110
- },
111
111
  "./datetimepicker": {
112
112
  "types": "./datetimepicker/index.d.ts",
113
113
  "esm2022": "./esm2022/datetimepicker/mtxDatetimepicker.mjs",
@@ -43,6 +43,13 @@
43
43
  @else {}
44
44
  }
45
45
 
46
+ @mixin overrides($tokens: ()) {
47
+ @include token-utils.batch-create-token-values(
48
+ $tokens,
49
+ (prefix: tokens-mtx-popover.$prefix, tokens: tokens-mtx-popover.get-token-slots()),
50
+ );
51
+ }
52
+
46
53
  @mixin theme($theme) {
47
54
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-popover') {
48
55
  @if mat.get-theme-version($theme) == 1 {
@@ -48,6 +48,13 @@
48
48
  @else {}
49
49
  }
50
50
 
51
+ @mixin overrides($tokens: ()) {
52
+ @include token-utils.batch-create-token-values(
53
+ $tokens,
54
+ (prefix: tokens-mtx-progress.$prefix, tokens: tokens-mtx-progress.get-token-slots()),
55
+ );
56
+ }
57
+
51
58
  @mixin theme($theme) {
52
59
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-progress') {
53
60
  @if mat.get-theme-version($theme) == 1 {
@@ -60,6 +60,13 @@
60
60
  }
61
61
  }
62
62
 
63
+ @mixin overrides($tokens: ()) {
64
+ @include token-utils.batch-create-token-values(
65
+ $tokens,
66
+ (prefix: tokens-mtx-select.$prefix, tokens: tokens-mtx-select.get-token-slots()),
67
+ );
68
+ }
69
+
63
70
  @mixin theme($theme, $options...) {
64
71
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-select') {
65
72
  @if mat.get-theme-version($theme) == 1 {
@@ -55,6 +55,13 @@
55
55
  @else {}
56
56
  }
57
57
 
58
+ @mixin overrides($tokens: ()) {
59
+ @include token-utils.batch-create-token-values(
60
+ $tokens,
61
+ (prefix: tokens-mtx-split.$prefix, tokens: tokens-mtx-split.get-token-slots()),
62
+ );
63
+ }
64
+
58
65
  @mixin theme($theme, $options...) {
59
66
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-split') {
60
67
  @if mat.get-theme-version($theme) == 1 {
@@ -62,6 +62,13 @@
62
62
  }
63
63
  }
64
64
 
65
+ @mixin overrides($tokens: ()) {
66
+ @include token-utils.batch-create-token-values(
67
+ $tokens,
68
+ (prefix: tokens-mdc-plain-tooltip.$prefix, tokens: tokens-mdc-plain-tooltip.get-token-slots()),
69
+ );
70
+ }
71
+
65
72
  @mixin theme($theme) {
66
73
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-tooltip') {
67
74
  @if mat.get-theme-version($theme) == 1 {