@ng-matero/extensions 19.4.1 → 20.0.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.
- package/_index.scss +1 -1
- package/alert/_alert-theme.scss +26 -31
- package/alert/_m2-alert.scss +59 -0
- package/alert/_m3-alert.scss +41 -0
- package/alert/alert.scss +27 -31
- package/alert/index.d.ts +30 -5
- package/button/index.d.ts +31 -5
- package/checkbox-group/index.d.ts +117 -5
- package/colorpicker/_colorpicker-theme.scss +31 -36
- package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
- package/colorpicker/_m3-colorpicker.scss +23 -0
- package/colorpicker/colorpicker-toggle.scss +4 -9
- package/colorpicker/index.d.ts +285 -3
- package/column-resize/index.d.ts +456 -3
- package/core/index.d.ts +147 -5
- package/core/theming/_color-api-backwards-compatibility.scss +8 -15
- package/core/theming/_definition.scss +81 -75
- package/core/theming/_palettes.scss +1036 -0
- package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
- package/core/tokens/_m2-utils.scss +108 -0
- package/core/tokens/_m3-system.scss +128 -106
- package/core/tokens/_m3-tokens.scss +36 -282
- package/core/tokens/_m3-utils.scss +48 -0
- package/core/tokens/_token-utils.scss +67 -239
- package/core/tokens/m3/_index.scss +7 -0
- package/core/tokens/m3/_md-sys-color.scss +156 -0
- package/core/tokens/m3/_md-sys-elevation.scss +15 -0
- package/core/tokens/m3/_md-sys-motion.scss +35 -0
- package/core/tokens/m3/_md-sys-shape.scss +21 -0
- package/core/tokens/m3/_md-sys-state.scss +13 -0
- package/core/tokens/m3/_md-sys-typescale.scss +128 -0
- package/core/tokens/m3/_theme.scss +47 -0
- package/datetimepicker/_datetimepicker-theme.scss +29 -39
- package/datetimepicker/_m2-datetimepicker.scss +149 -0
- package/datetimepicker/_m3-datetimepicker.scss +81 -0
- package/datetimepicker/calendar-body.scss +31 -56
- package/datetimepicker/calendar.scss +43 -79
- package/datetimepicker/clock.scss +28 -47
- package/datetimepicker/datetimepicker-content.scss +9 -15
- package/datetimepicker/datetimepicker-toggle.scss +4 -9
- package/datetimepicker/index.d.ts +1208 -3
- package/datetimepicker/time-view.scss +26 -32
- package/dialog/index.d.ts +54 -5
- package/drawer/_drawer-theme.scss +25 -30
- package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
- package/drawer/_m3-drawer.scss +24 -0
- package/drawer/drawer-container.scss +13 -24
- package/drawer/index.d.ts +221 -3
- package/fesm2022/mtxAlert.mjs +7 -7
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +11 -11
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +21 -21
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +232 -103
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +63 -67
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +10 -10
- package/fesm2022/mtxGrid.mjs +78 -77
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +24 -25
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +54 -54
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +10 -10
- package/fesm2022/mtxTooltip.mjs +13 -13
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +24 -34
- package/grid/_m2-grid.scss +66 -0
- package/grid/_m3-grid.scss +35 -0
- package/grid/column-menu.scss +6 -23
- package/grid/column-resize/_column-resize.scss +35 -30
- package/grid/grid.scss +41 -74
- package/grid/index.d.ts +799 -3
- package/index.d.ts +2 -5
- package/loader/_loader-theme.scss +26 -31
- package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
- package/loader/_m3-loader.scss +20 -0
- package/loader/index.d.ts +43 -5
- package/loader/loader.scss +4 -5
- package/package.json +28 -28
- package/photoviewer/index.d.ts +26 -5
- package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
- package/popover/_m3-popover.scss +26 -0
- package/popover/_popover-theme.scss +26 -31
- package/popover/index.d.ts +399 -3
- package/popover/popover.scss +23 -29
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress/_m2-progress.scss +53 -0
- package/progress/_m3-progress.scss +33 -0
- package/progress/_progress-theme.scss +22 -34
- package/progress/index.d.ts +35 -5
- package/progress/progress.scss +28 -43
- package/select/_m2-select.scss +79 -0
- package/select/_m3-select.scss +46 -0
- package/select/_select-theme.scss +27 -37
- package/select/index.d.ts +381 -3
- package/select/select.scss +189 -205
- package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
- package/split/_m3-split.scss +23 -0
- package/split/_split-theme.scss +31 -34
- package/split/index.d.ts +255 -3
- package/split/split.scss +8 -11
- package/tooltip/_m2-tooltip.scss +50 -0
- package/tooltip/_m3-tooltip.scss +28 -0
- package/tooltip/_tooltip-theme.scss +23 -47
- package/tooltip/index.d.ts +345 -3
- package/tooltip/tooltip.scss +11 -15
- package/alert/alert-module.d.ts +0 -8
- package/alert/alert.d.ts +0 -19
- package/alert/public-api.d.ts +0 -2
- package/button/button-loading.d.ts +0 -19
- package/button/button-module.d.ts +0 -10
- package/button/public-api.d.ts +0 -2
- package/checkbox-group/checkbox-group-module.d.ts +0 -11
- package/checkbox-group/checkbox-group.d.ts +0 -86
- package/checkbox-group/interfaces.d.ts +0 -17
- package/checkbox-group/public-api.d.ts +0 -3
- package/colorpicker/colorpicker-animations.d.ts +0 -9
- package/colorpicker/colorpicker-input.d.ts +0 -88
- package/colorpicker/colorpicker-module.d.ts +0 -15
- package/colorpicker/colorpicker-toggle.d.ts +0 -39
- package/colorpicker/colorpicker.d.ts +0 -140
- package/colorpicker/public-api.d.ts +0 -5
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
- package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
- package/column-resize/column-resize-directives/constants.d.ts +0 -10
- package/column-resize/column-resize-module.d.ts +0 -12
- package/column-resize/column-resize-notifier.d.ts +0 -48
- package/column-resize/column-resize.d.ts +0 -39
- package/column-resize/column-size-store.d.ts +0 -12
- package/column-resize/event-dispatcher.d.ts +0 -35
- package/column-resize/overlay-handle.d.ts +0 -43
- package/column-resize/polyfill.d.ts +0 -9
- package/column-resize/public-api.d.ts +0 -12
- package/column-resize/resizable.d.ts +0 -63
- package/column-resize/resize-ref.d.ts +0 -17
- package/column-resize/resize-strategy.d.ts +0 -84
- package/column-resize/selectors.d.ts +0 -10
- package/core/datetime/datetime-adapter.d.ts +0 -45
- package/core/datetime/datetime-formats.d.ts +0 -22
- package/core/datetime/datetime.module.d.ts +0 -15
- package/core/datetime/index.d.ts +0 -5
- package/core/datetime/native-datetime-adapter.d.ts +0 -40
- package/core/datetime/native-datetime-formats.d.ts +0 -2
- package/core/pipes/index.d.ts +0 -3
- package/core/pipes/is-template-ref.pipe.d.ts +0 -7
- package/core/pipes/pipes.module.d.ts +0 -9
- package/core/pipes/to-observable.pipe.d.ts +0 -8
- package/core/public-api.d.ts +0 -2
- package/core/theming/_inspection.scss +0 -38
- package/core/theming/_validation.scss +0 -5
- package/core/tokens/_density.scss +0 -49
- package/core/tokens/_format-tokens.scss +0 -5
- package/core/tokens/_token-definition.scss +0 -271
- package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
- package/core/tokens/m2/mtx/_alert.scss +0 -62
- package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
- package/core/tokens/m2/mtx/_grid.scss +0 -69
- package/core/tokens/m2/mtx/_progress.scss +0 -56
- package/core/tokens/m2/mtx/_select.scss +0 -82
- package/core/tokens/m3/definitions/_index.scss +0 -9
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
- package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
- package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
- package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
- package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
- package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
- package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
- package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
- package/core/tokens/m3/index.scss +0 -47
- package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
- package/core/tokens/m3/mtx/_alert.scss +0 -41
- package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
- package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
- package/core/tokens/m3/mtx/_drawer.scss +0 -22
- package/core/tokens/m3/mtx/_grid.scss +0 -32
- package/core/tokens/m3/mtx/_loader.scss +0 -22
- package/core/tokens/m3/mtx/_popover.scss +0 -25
- package/core/tokens/m3/mtx/_progress.scss +0 -32
- package/core/tokens/m3/mtx/_select.scss +0 -76
- package/core/tokens/m3/mtx/_split.scss +0 -30
- package/datetimepicker/calendar-body.d.ts +0 -66
- package/datetimepicker/calendar.d.ts +0 -157
- package/datetimepicker/clock.d.ts +0 -101
- package/datetimepicker/datetimepicker-actions.d.ts +0 -36
- package/datetimepicker/datetimepicker-animations.d.ts +0 -11
- package/datetimepicker/datetimepicker-errors.d.ts +0 -2
- package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
- package/datetimepicker/datetimepicker-input.d.ts +0 -105
- package/datetimepicker/datetimepicker-intl.d.ts +0 -53
- package/datetimepicker/datetimepicker-module.d.ts +0 -22
- package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
- package/datetimepicker/datetimepicker-types.d.ts +0 -6
- package/datetimepicker/datetimepicker.d.ts +0 -274
- package/datetimepicker/month-view.d.ts +0 -80
- package/datetimepicker/multi-year-view.d.ts +0 -86
- package/datetimepicker/public-api.d.ts +0 -16
- package/datetimepicker/time-view.d.ts +0 -147
- package/datetimepicker/year-view.d.ts +0 -68
- package/dialog/dialog-config.d.ts +0 -17
- package/dialog/dialog-container.d.ts +0 -11
- package/dialog/dialog-module.d.ts +0 -12
- package/dialog/dialog.d.ts +0 -15
- package/dialog/public-api.d.ts +0 -4
- package/drawer/drawer-animations.d.ts +0 -8
- package/drawer/drawer-config.d.ts +0 -63
- package/drawer/drawer-container.d.ts +0 -35
- package/drawer/drawer-module.d.ts +0 -10
- package/drawer/drawer-ref.d.ts +0 -53
- package/drawer/drawer.d.ts +0 -59
- package/drawer/public-api.d.ts +0 -6
- package/grid/cell.d.ts +0 -32
- package/grid/column-menu.d.ts +0 -39
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
- package/grid/column-resize/column-resize-module.d.ts +0 -17
- package/grid/column-resize/index.d.ts +0 -7
- package/grid/column-resize/overlay-handle.d.ts +0 -32
- package/grid/column-resize/resizable-directives/common.d.ts +0 -19
- package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
- package/grid/column-resize/resize-strategy.d.ts +0 -20
- package/grid/expansion-toggle.d.ts +0 -17
- package/grid/grid-module.d.ts +0 -31
- package/grid/grid-pipes.d.ts +0 -39
- package/grid/grid-utils.d.ts +0 -33
- package/grid/grid.d.ts +0 -268
- package/grid/interfaces.d.ts +0 -180
- package/grid/public-api.d.ts +0 -17
- package/grid/selectable-cell.d.ts +0 -16
- package/loader/loader-module.d.ts +0 -10
- package/loader/loader.d.ts +0 -30
- package/loader/public-api.d.ts +0 -2
- package/photoviewer/photoviewer-module.d.ts +0 -7
- package/photoviewer/photoviewer.d.ts +0 -17
- package/photoviewer/public-api.d.ts +0 -2
- package/popover/popover-animations.d.ts +0 -11
- package/popover/popover-content.d.ts +0 -43
- package/popover/popover-errors.d.ts +0 -14
- package/popover/popover-interfaces.d.ts +0 -50
- package/popover/popover-module.d.ts +0 -13
- package/popover/popover-target.d.ts +0 -7
- package/popover/popover-trigger.d.ts +0 -132
- package/popover/popover-types.d.ts +0 -10
- package/popover/popover.d.ts +0 -147
- package/popover/public-api.d.ts +0 -8
- package/progress/progress-module.d.ts +0 -8
- package/progress/progress.d.ts +0 -24
- package/progress/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -2
- package/select/option.d.ts +0 -21
- package/select/public-api.d.ts +0 -5
- package/select/select-intl.d.ts +0 -18
- package/select/select-module.d.ts +0 -12
- package/select/select.d.ts +0 -270
- package/select/templates.d.ts +0 -67
- package/split/interfaces.d.ts +0 -52
- package/split/public-api.d.ts +0 -5
- package/split/split-module.d.ts +0 -9
- package/split/split-pane.d.ts +0 -53
- package/split/split.d.ts +0 -133
- package/split/utils.d.ts +0 -13
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip-animations.d.ts +0 -9
- package/tooltip/tooltip-module.d.ts +0 -13
- package/tooltip/tooltip.d.ts +0 -321
package/select/select.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use '../core/tokens/token-utils';
|
|
3
|
-
@use '
|
|
3
|
+
@use './m3-select';
|
|
4
4
|
|
|
5
|
-
$
|
|
5
|
+
$fallbacks: m3-select.get-tokens();
|
|
6
6
|
|
|
7
7
|
@mixin rtl {
|
|
8
8
|
@at-root [dir='rtl'] #{&} {
|
|
@@ -11,269 +11,253 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ng-select {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ng-select-container {
|
|
32
|
-
align-items: center;
|
|
33
|
-
|
|
34
|
-
@include token-utils.create-token-slot(color, container-text-color);
|
|
14
|
+
$filled-padding-top: var(--mat-form-field-filled-with-label-container-padding-top, 24px);
|
|
15
|
+
$filled-padding-bottom: var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);
|
|
16
|
+
$vertical-padding: var(--mat-form-field-container-vertical-padding, 16px);
|
|
17
|
+
$text-line-height: var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));
|
|
18
|
+
|
|
19
|
+
padding: $filled-padding-top 16px $filled-padding-bottom;
|
|
20
|
+
margin: calc($filled-padding-top * -1) -16px calc($filled-padding-bottom * -1);
|
|
21
|
+
|
|
22
|
+
.mdc-text-field--outlined &,
|
|
23
|
+
.mdc-text-field--no-label & {
|
|
24
|
+
padding-top: $vertical-padding;
|
|
25
|
+
padding-bottom: $vertical-padding;
|
|
26
|
+
margin-top: calc($vertical-padding * -1);
|
|
27
|
+
margin-bottom: calc($vertical-padding * -1);
|
|
28
|
+
}
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
.ng-select-container {
|
|
31
|
+
align-items: center;
|
|
32
|
+
color: token-utils.slot(select-container-text-color, $fallbacks);
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
font: inherit;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
34
|
+
.ng-value-container {
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 4px;
|
|
46
37
|
|
|
47
|
-
.ng-
|
|
48
|
-
display: inline-flex;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
align-items: center;
|
|
51
|
-
width: 24px;
|
|
38
|
+
.ng-input > input {
|
|
52
39
|
height: $text-line-height;
|
|
40
|
+
color: inherit;
|
|
41
|
+
font: inherit;
|
|
53
42
|
}
|
|
54
43
|
}
|
|
55
44
|
|
|
56
|
-
.ng-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
.ng-clear-wrapper {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
width: 24px;
|
|
50
|
+
height: $text-line-height;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
59
53
|
|
|
60
|
-
|
|
54
|
+
.ng-placeholder {
|
|
55
|
+
transition: opacity 200ms;
|
|
56
|
+
opacity: 1;
|
|
57
|
+
color: token-utils.slot(select-placeholder-text-color, $fallbacks);
|
|
61
58
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
59
|
+
.mat-form-field-hide-placeholder & {
|
|
60
|
+
opacity: 0;
|
|
65
61
|
}
|
|
62
|
+
}
|
|
66
63
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
.ng-has-value .ng-placeholder {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
70
67
|
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
.ng-clear-wrapper {
|
|
69
|
+
color: token-utils.slot(select-clear-icon-color, $fallbacks);
|
|
73
70
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
71
|
+
&:hover .ng-clear {
|
|
72
|
+
color: token-utils.slot(select-clear-icon-hover-color, $fallbacks);
|
|
77
73
|
}
|
|
74
|
+
}
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
76
|
+
&.ng-select-disabled {
|
|
77
|
+
.ng-value {
|
|
78
|
+
color: token-utils.slot(select-disabled-text-color, $fallbacks);
|
|
83
79
|
}
|
|
80
|
+
}
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
82
|
+
&.ng-select-opened {
|
|
83
|
+
.ng-arrow-wrapper .ng-arrow {
|
|
84
|
+
top: -2px;
|
|
85
|
+
border-width: 0 5px 5px;
|
|
90
86
|
}
|
|
87
|
+
}
|
|
91
88
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
89
|
+
&.ng-select-single {
|
|
90
|
+
&.ng-select-filtered .ng-placeholder {
|
|
91
|
+
display: initial;
|
|
92
|
+
visibility: hidden;
|
|
97
93
|
}
|
|
94
|
+
}
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
&.ng-value-disabled {
|
|
115
|
-
opacity: .4;
|
|
116
|
-
}
|
|
96
|
+
&.ng-select-multiple {
|
|
97
|
+
.ng-select-container .ng-value-container .ng-value {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
height: $text-line-height;
|
|
101
|
+
padding: 0 calc(($text-line-height - 16px) / 2);
|
|
102
|
+
border-radius: 9999px;
|
|
103
|
+
font-size: 0.875em;
|
|
104
|
+
background-color: token-utils.slot(select-multiple-value-background-color, $fallbacks);
|
|
105
|
+
border: 1px solid token-utils.slot(select-multiple-value-outline-color, $fallbacks);
|
|
106
|
+
|
|
107
|
+
&.ng-value-disabled {
|
|
108
|
+
opacity: 0.4;
|
|
109
|
+
}
|
|
117
110
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
111
|
+
.ng-value-label {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
margin: 0 4px;
|
|
114
|
+
line-height: 16px;
|
|
115
|
+
}
|
|
123
116
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
117
|
+
.ng-value-icon {
|
|
118
|
+
width: 16px;
|
|
119
|
+
height: 16px;
|
|
120
|
+
line-height: 16px;
|
|
121
|
+
border-radius: 50%;
|
|
122
|
+
text-align: center;
|
|
130
123
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
124
|
+
&:hover {
|
|
125
|
+
background-color: token-utils.slot(select-multiple-value-icon-hover-background-color, $fallbacks);
|
|
134
126
|
}
|
|
135
127
|
}
|
|
136
|
-
|
|
137
|
-
&.ng-select-disabled .ng-select-container .ng-value-container .ng-value {
|
|
138
|
-
border-color: token-utils.get-token-variable(multiple-value-disabled-outline-color);
|
|
139
|
-
}
|
|
140
128
|
}
|
|
141
129
|
|
|
142
|
-
.ng-
|
|
143
|
-
|
|
130
|
+
&.ng-select-disabled .ng-select-container .ng-value-container .ng-value {
|
|
131
|
+
border-color: token-utils.slot(select-multiple-value-disabled-outline-color, $fallbacks);
|
|
144
132
|
}
|
|
133
|
+
}
|
|
145
134
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
135
|
+
.ng-arrow-wrapper {
|
|
136
|
+
width: 10px;
|
|
137
|
+
}
|
|
149
138
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
border-color: $enabled-arrow-color transparent transparent;
|
|
154
|
-
}
|
|
139
|
+
$enabled-arrow-color: token-utils.slot(select-enabled-arrow-color, $fallbacks);
|
|
140
|
+
$disabled-arrow-color: token-utils.slot(select-disabled-arrow-color, $fallbacks);
|
|
141
|
+
$invalid-arrow-color: token-utils.slot(select-invalid-arrow-color, $fallbacks);
|
|
155
142
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
143
|
+
.ng-arrow {
|
|
144
|
+
border-width: 5px 5px 2px;
|
|
145
|
+
border-style: solid;
|
|
146
|
+
border-color: $enabled-arrow-color transparent transparent;
|
|
147
|
+
}
|
|
159
148
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
149
|
+
&.ng-select-disabled .ng-arrow {
|
|
150
|
+
border-color: $disabled-arrow-color transparent transparent;
|
|
151
|
+
}
|
|
163
152
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
153
|
+
&.ng-select-invalid .ng-arrow {
|
|
154
|
+
border-color: $invalid-arrow-color transparent transparent;
|
|
155
|
+
}
|
|
167
156
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
&.ng-select-opened .ng-arrow {
|
|
158
|
+
border-color: transparent transparent $enabled-arrow-color;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.ng-select-opened.ng-select-invalid .ng-arrow {
|
|
162
|
+
border-color: transparent transparent $invalid-arrow-color;
|
|
171
163
|
}
|
|
172
164
|
}
|
|
173
165
|
|
|
174
166
|
.ng-dropdown-panel {
|
|
175
|
-
|
|
176
|
-
@include token-utils.create-token-slot(background-color, panel-background-color);
|
|
167
|
+
background-color: token-utils.slot(select-panel-background-color, $fallbacks);
|
|
177
168
|
|
|
178
|
-
|
|
179
|
-
|
|
169
|
+
&.ng-select-bottom {
|
|
170
|
+
top: 100%;
|
|
171
|
+
border-bottom-left-radius: token-utils.slot(select-container-shape, $fallbacks);
|
|
172
|
+
border-bottom-right-radius: token-utils.slot(select-container-shape, $fallbacks);
|
|
173
|
+
box-shadow: token-utils.slot(select-container-elevation-shadow, $fallbacks);
|
|
174
|
+
}
|
|
180
175
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
176
|
+
&.ng-select-top {
|
|
177
|
+
bottom: 100%;
|
|
178
|
+
border-top-left-radius: token-utils.slot(select-container-shape, $fallbacks);
|
|
179
|
+
border-top-right-radius: token-utils.slot(select-container-shape, $fallbacks);
|
|
180
|
+
box-shadow: token-utils.slot(select-container-elevation-shadow, $fallbacks);
|
|
181
|
+
}
|
|
185
182
|
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
.ng-dropdown-header,
|
|
184
|
+
.ng-dropdown-footer {
|
|
185
|
+
padding: 14px 16px;
|
|
186
|
+
}
|
|
188
187
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
.ng-dropdown-header {
|
|
189
|
+
border-bottom: 1px solid token-utils.slot(select-panel-divider-color, $fallbacks);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.ng-dropdown-footer {
|
|
193
|
+
border-top: 1px solid token-utils.slot(select-panel-divider-color, $fallbacks);
|
|
194
|
+
}
|
|
193
195
|
|
|
194
|
-
|
|
195
|
-
.ng-
|
|
196
|
+
.ng-dropdown-panel-items {
|
|
197
|
+
.ng-optgroup {
|
|
196
198
|
padding: 14px 16px;
|
|
197
|
-
|
|
199
|
+
font-weight: 500;
|
|
200
|
+
user-select: none;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
color: token-utils.slot(select-optgroup-label-text-color, $fallbacks);
|
|
198
203
|
|
|
199
|
-
|
|
204
|
+
&.ng-option-disabled {
|
|
205
|
+
cursor: default;
|
|
206
|
+
}
|
|
200
207
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
208
|
+
&.ng-option-marked {
|
|
209
|
+
background-color: token-utils.slot(select-option-hover-state-background-color, $fallbacks);
|
|
210
|
+
}
|
|
204
211
|
|
|
205
|
-
|
|
206
|
-
|
|
212
|
+
&.ng-option-selected {
|
|
213
|
+
background-color: token-utils.slot(select-option-selected-state-background-color, $fallbacks);
|
|
214
|
+
color: token-utils.slot(select-option-selected-state-text-color, $fallbacks);
|
|
215
|
+
}
|
|
207
216
|
}
|
|
208
217
|
|
|
209
|
-
.ng-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
&.ng-option-marked {
|
|
223
|
-
@include token-utils.create-token-slot(background-color, option-hover-state-background-color);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&.ng-option-selected {
|
|
227
|
-
@include token-utils.create-token-slot(background-color, option-selected-state-background-color);
|
|
228
|
-
@include token-utils.create-token-slot(color, option-selected-state-text-color);
|
|
229
|
-
}
|
|
218
|
+
.ng-option {
|
|
219
|
+
position: relative;
|
|
220
|
+
padding: 14px 16px;
|
|
221
|
+
text-overflow: ellipsis;
|
|
222
|
+
text-decoration: none;
|
|
223
|
+
text-align: left;
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
overflow: hidden;
|
|
226
|
+
color: token-utils.slot(select-option-label-text-color, $fallbacks);
|
|
227
|
+
|
|
228
|
+
&.ng-option-marked {
|
|
229
|
+
background-color: token-utils.slot(select-option-hover-state-background-color, $fallbacks);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
text-decoration: none;
|
|
237
|
-
text-align: left;
|
|
238
|
-
white-space: nowrap;
|
|
239
|
-
overflow: hidden;
|
|
240
|
-
|
|
241
|
-
@include token-utils.create-token-slot(color, option-label-text-color);
|
|
232
|
+
&.ng-option-selected {
|
|
233
|
+
background-color: token-utils.slot(select-option-selected-state-background-color, $fallbacks);
|
|
234
|
+
color: token-utils.slot(select-option-selected-state-text-color, $fallbacks);
|
|
235
|
+
}
|
|
242
236
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
237
|
+
&.ng-option-disabled {
|
|
238
|
+
color: token-utils.slot(select-option-disabled-state-text-color, $fallbacks);
|
|
239
|
+
}
|
|
246
240
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
241
|
+
@include rtl {
|
|
242
|
+
text-align: right;
|
|
243
|
+
}
|
|
251
244
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
245
|
+
&.ng-option-child {
|
|
246
|
+
padding-left: 32px;
|
|
255
247
|
|
|
256
248
|
@include rtl {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
&.ng-option-child {
|
|
261
|
-
padding-left: 32px;
|
|
262
|
-
|
|
263
|
-
@include rtl {
|
|
264
|
-
padding-right: 32px;
|
|
265
|
-
padding-left: 0;
|
|
266
|
-
}
|
|
249
|
+
padding-right: 32px;
|
|
250
|
+
padding-left: 0;
|
|
267
251
|
}
|
|
252
|
+
}
|
|
268
253
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
254
|
+
.ng-tag-label {
|
|
255
|
+
margin-right: 6px;
|
|
256
|
+
font-size: 80%;
|
|
272
257
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
258
|
+
@include rtl {
|
|
259
|
+
margin-left: 6px;
|
|
260
|
+
margin-right: 0;
|
|
277
261
|
}
|
|
278
262
|
}
|
|
279
263
|
}
|
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:meta';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
|
-
@use '
|
|
6
|
-
|
|
7
|
-
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
8
|
-
$prefix: (mtx, split);
|
|
5
|
+
@use '../core/tokens/m2-utils';
|
|
9
6
|
|
|
10
7
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
11
8
|
@return (
|
|
12
|
-
gutter-hover-state-background-color: mat.get-theme-color($theme, $palette-name, text),
|
|
9
|
+
split-gutter-hover-state-background-color: mat.get-theme-color($theme, $palette-name, text),
|
|
13
10
|
);
|
|
14
11
|
}
|
|
15
12
|
|
|
@@ -24,7 +21,7 @@ $prefix: (mtx, split);
|
|
|
24
21
|
$gutter-tokens: private-get-color-palette-color-tokens($theme, primary);
|
|
25
22
|
|
|
26
23
|
@return mat.private-merge-all($gutter-tokens, (
|
|
27
|
-
gutter-background-color: mat.get-theme-color($theme, foreground, divider),
|
|
24
|
+
split-gutter-background-color: mat.get-theme-color($theme, foreground, divider),
|
|
28
25
|
));
|
|
29
26
|
}
|
|
30
27
|
|
|
@@ -43,8 +40,8 @@ $prefix: (mtx, split);
|
|
|
43
40
|
@function get-token-slots() {
|
|
44
41
|
@return mat.private-deep-merge-all(
|
|
45
42
|
get-unthemable-tokens(),
|
|
46
|
-
get-color-tokens(
|
|
47
|
-
get-typography-tokens(
|
|
48
|
-
get-density-tokens(
|
|
43
|
+
get-color-tokens(m2-utils.$placeholder-color-config),
|
|
44
|
+
get-typography-tokens(m2-utils.$placeholder-typography-config),
|
|
45
|
+
get-density-tokens(m2-utils.$placeholder-density-config)
|
|
49
46
|
);
|
|
50
47
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/tokens/m3-utils';
|
|
3
|
+
@use '../core/tokens/m3';
|
|
4
|
+
|
|
5
|
+
/// Generates custom tokens for the mtx-split.
|
|
6
|
+
@function get-tokens($theme: m3.$sys-theme, $color-variant: null) {
|
|
7
|
+
$system: m3-utils.get-system($theme);
|
|
8
|
+
@if $color-variant {
|
|
9
|
+
$system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
$tokens: (
|
|
13
|
+
base: (),
|
|
14
|
+
color: (
|
|
15
|
+
split-gutter-background-color: map.get($system, outline-variant),
|
|
16
|
+
split-gutter-hover-state-background-color: map.get($system, primary),
|
|
17
|
+
),
|
|
18
|
+
typography: (),
|
|
19
|
+
density: (),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
@return $tokens;
|
|
23
|
+
}
|
package/split/_split-theme.scss
CHANGED
|
@@ -1,45 +1,38 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '../core/theming/inspection';
|
|
4
|
-
@use '../core/theming/validation';
|
|
5
3
|
@use '../core/tokens/token-utils';
|
|
6
|
-
@use '
|
|
4
|
+
@use './m2-split';
|
|
5
|
+
@use './m3-split';
|
|
7
6
|
|
|
8
7
|
@mixin base($theme) {
|
|
9
8
|
@if mat.get-theme-version($theme) == 1 {
|
|
10
|
-
@include
|
|
9
|
+
@include token-utils.create-token-values(map.get(m3-split.get-tokens($theme), base));
|
|
11
10
|
}
|
|
12
11
|
@else {
|
|
13
12
|
@include mat.private-current-selector-or-root() {
|
|
14
|
-
@include token-utils.create-token-values(
|
|
15
|
-
tokens-mtx-split.$prefix,
|
|
16
|
-
tokens-mtx-split.get-unthemable-tokens()
|
|
17
|
-
);
|
|
13
|
+
@include token-utils.create-token-values-mixed(m2-split.get-unthemable-tokens());
|
|
18
14
|
}
|
|
19
15
|
}
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
@mixin color($theme, $
|
|
18
|
+
@mixin color($theme, $color-variant: null) {
|
|
23
19
|
@if mat.get-theme-version($theme) == 1 {
|
|
24
|
-
@include
|
|
20
|
+
@include token-utils.create-token-values(map.get(m3-split.get-tokens($theme, $color-variant), color));
|
|
25
21
|
}
|
|
26
22
|
@else {
|
|
27
23
|
@include mat.private-current-selector-or-root() {
|
|
28
|
-
@include token-utils.create-token-values(
|
|
29
|
-
tokens-mtx-split.$prefix,
|
|
30
|
-
tokens-mtx-split.get-color-tokens($theme)
|
|
31
|
-
);
|
|
24
|
+
@include token-utils.create-token-values-mixed(m2-split.get-color-tokens($theme));
|
|
32
25
|
}
|
|
33
26
|
|
|
34
27
|
.mtx-split>.mtx-split-gutter {
|
|
35
28
|
&.mat-accent:hover {
|
|
36
|
-
$accent-tokens:
|
|
37
|
-
@include token-utils.create-token-values(
|
|
29
|
+
$accent-tokens: m2-split.private-get-color-palette-color-tokens($theme, accent);
|
|
30
|
+
@include token-utils.create-token-values-mixed($accent-tokens);
|
|
38
31
|
}
|
|
39
32
|
|
|
40
33
|
&.mat-warn:hover {
|
|
41
|
-
$warn-tokens:
|
|
42
|
-
@include token-utils.create-token-values(
|
|
34
|
+
$warn-tokens: m2-split.private-get-color-palette-color-tokens($theme, warn);
|
|
35
|
+
@include token-utils.create-token-values-mixed($warn-tokens);
|
|
43
36
|
}
|
|
44
37
|
}
|
|
45
38
|
}
|
|
@@ -47,36 +40,47 @@
|
|
|
47
40
|
|
|
48
41
|
@mixin typography($theme) {
|
|
49
42
|
@if mat.get-theme-version($theme) == 1 {
|
|
50
|
-
@include
|
|
43
|
+
@include token-utils.create-token-values(map.get(m3-split.get-tokens($theme), typography));
|
|
44
|
+
}
|
|
45
|
+
@else {
|
|
46
|
+
@include mat.private-current-selector-or-root() {
|
|
47
|
+
@include token-utils.create-token-values-mixed(m2-split.get-typography-tokens($theme));
|
|
48
|
+
}
|
|
51
49
|
}
|
|
52
|
-
@else {}
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
@mixin density($theme) {
|
|
56
53
|
@if mat.get-theme-version($theme) == 1 {
|
|
57
|
-
@include
|
|
54
|
+
@include token-utils.create-token-values(map.get(m3-split.get-tokens($theme), density));
|
|
55
|
+
}
|
|
56
|
+
@else {
|
|
57
|
+
@include mat.private-current-selector-or-root() {
|
|
58
|
+
@include token-utils.create-token-values-mixed(m2-split.get-density-tokens($theme));
|
|
59
|
+
}
|
|
58
60
|
}
|
|
59
|
-
@else {}
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
63
64
|
@function _define-overrides() {
|
|
64
65
|
@return (
|
|
65
66
|
(
|
|
66
|
-
namespace:
|
|
67
|
-
tokens:
|
|
67
|
+
namespace: split,
|
|
68
|
+
tokens: token-utils.get-overrides(m3-split.get-tokens(), split),
|
|
68
69
|
),
|
|
69
70
|
);
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
@mixin overrides($tokens: ()) {
|
|
73
|
-
@include token-utils.batch-create-token-values($tokens, _define-overrides()
|
|
74
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides());
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
@mixin theme($theme, $
|
|
77
|
+
@mixin theme($theme, $color-variant: null) {
|
|
77
78
|
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-split') {
|
|
78
79
|
@if mat.get-theme-version($theme) == 1 {
|
|
79
|
-
@include
|
|
80
|
+
@include base($theme);
|
|
81
|
+
@include color($theme, $color-variant);
|
|
82
|
+
@include density($theme);
|
|
83
|
+
@include typography($theme);
|
|
80
84
|
}
|
|
81
85
|
@else {
|
|
82
86
|
@include base($theme);
|
|
@@ -92,10 +96,3 @@
|
|
|
92
96
|
}
|
|
93
97
|
}
|
|
94
98
|
}
|
|
95
|
-
|
|
96
|
-
@mixin _theme-from-tokens($tokens, $options...) {
|
|
97
|
-
@include validation.selector-defined(
|
|
98
|
-
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
99
|
-
$mtx-split-tokens: token-utils.get-tokens-for($tokens, tokens-mtx-split.$prefix, $options...);
|
|
100
|
-
@include token-utils.create-token-values(tokens-mtx-split.$prefix, $mtx-split-tokens);
|
|
101
|
-
}
|