@angular/material 18.0.0-next.5 → 18.0.0-next.6
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 +67 -60
- package/autocomplete/_autocomplete-theme.scss +7 -0
- package/badge/_badge-theme.scss +9 -0
- package/bottom-sheet/_bottom-sheet-theme.scss +7 -0
- package/button/_button-theme.scss +25 -0
- package/button/_fab-theme.scss +13 -0
- package/button/_icon-button-theme.scss +8 -0
- package/button-toggle/_button-toggle-theme.scss +12 -0
- package/card/_card-theme.scss +9 -0
- package/checkbox/_checkbox-theme.scss +2 -4
- package/chips/_chips-theme.scss +10 -0
- package/core/_core-theme.scss +17 -0
- package/core/m2/_index.scss +52 -0
- package/core/m2/_theming.scss +295 -0
- package/core/{typography/_property-getters.scss → m2/_typography-utils.scss} +14 -0
- package/core/{typography/_definition.scss → m2/_typography.scss} +1 -1
- package/core/option/_optgroup-theme.scss +7 -0
- package/core/option/_option-theme.scss +9 -0
- package/core/ripple/_ripple-theme.scss +7 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +13 -0
- package/core/style/_sass-utils.scss +14 -1
- package/core/theming/_color-api-backwards-compatibility.scss +128 -0
- package/core/theming/_config-validation.scss +173 -0
- package/core/theming/_definition.scss +113 -0
- package/core/theming/_m2-inspection.scss +23 -22
- package/core/theming/_palettes.scss +947 -0
- package/core/theming/_theming-deprecated.scss +9 -9
- package/core/theming/_theming.scss +73 -339
- package/core/tokens/_custom-tokens.scss +1918 -0
- package/core/tokens/_density.scss +191 -0
- package/core/tokens/_format-tokens.scss +5 -0
- package/core/tokens/_m3-tokens.scss +1252 -0
- package/core/tokens/_token-utils.scss +32 -46
- package/core/tokens/m2/mat/_chip.scss +3 -3
- package/core/tokens/m2/mat/_form-field.scss +3 -3
- package/core/tokens/m2/mdc/_checkbox.scss +3 -2
- package/core/tokens/m2/mdc/_chip.scss +3 -3
- package/core/tokens/m2/mdc/_radio.scss +3 -2
- package/core/typography/_all-typography.scss +3 -2
- package/core/typography/_typography-utils.scss +0 -26
- package/core/typography/_typography.scss +0 -2
- package/core/typography/_versioning.scss +3 -3
- package/datepicker/_datepicker-theme.scss +9 -0
- package/datepicker/index.d.ts +5 -0
- package/dialog/_dialog-theme.scss +8 -0
- package/divider/_divider-theme.scss +7 -0
- package/esm2022/autocomplete/autocomplete-origin.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-trigger.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.mjs +3 -3
- package/esm2022/autocomplete/module.mjs +4 -4
- package/esm2022/badge/badge-module.mjs +4 -4
- package/esm2022/badge/badge.mjs +6 -6
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +4 -4
- package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -3
- package/esm2022/button/button-base.mjs +6 -6
- package/esm2022/button/button.mjs +6 -6
- package/esm2022/button/fab.mjs +12 -12
- package/esm2022/button/icon-button.mjs +6 -6
- package/esm2022/button/module.mjs +4 -4
- package/esm2022/button-toggle/button-toggle-module.mjs +4 -4
- package/esm2022/button-toggle/button-toggle.mjs +6 -6
- package/esm2022/card/card.mjs +42 -42
- package/esm2022/card/module.mjs +4 -4
- package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
- package/esm2022/checkbox/checkbox.mjs +3 -3
- package/esm2022/checkbox/module.mjs +8 -8
- package/esm2022/chips/chip-action.mjs +3 -3
- package/esm2022/chips/chip-edit-input.mjs +3 -3
- package/esm2022/chips/chip-grid.mjs +3 -3
- package/esm2022/chips/chip-icons.mjs +9 -9
- package/esm2022/chips/chip-input.mjs +3 -3
- package/esm2022/chips/chip-listbox.mjs +3 -3
- package/esm2022/chips/chip-option.mjs +3 -3
- package/esm2022/chips/chip-row.mjs +3 -3
- package/esm2022/chips/chip-set.mjs +3 -3
- package/esm2022/chips/chip.mjs +3 -3
- package/esm2022/chips/module.mjs +4 -4
- package/esm2022/core/common-behaviors/common-module.mjs +4 -4
- package/esm2022/core/datetime/index.mjs +8 -8
- package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2022/core/error/error-options.mjs +6 -6
- package/esm2022/core/internal-form-field/internal-form-field.mjs +3 -3
- package/esm2022/core/line/line.mjs +7 -7
- package/esm2022/core/option/index.mjs +4 -4
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +3 -3
- package/esm2022/core/private/ripple-loader.mjs +3 -3
- package/esm2022/core/ripple/index.mjs +4 -4
- package/esm2022/core/ripple/ripple.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +3 -3
- package/esm2022/datepicker/calendar.mjs +6 -6
- package/esm2022/datepicker/date-range-input-parts.mjs +9 -9
- package/esm2022/datepicker/date-range-input.mjs +9 -4
- package/esm2022/datepicker/date-range-picker.mjs +3 -3
- package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
- package/esm2022/datepicker/date-selection-model.mjs +9 -9
- package/esm2022/datepicker/datepicker-actions.mjs +9 -9
- package/esm2022/datepicker/datepicker-base.mjs +6 -6
- package/esm2022/datepicker/datepicker-input-base.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.mjs +3 -3
- package/esm2022/datepicker/datepicker-intl.mjs +3 -3
- package/esm2022/datepicker/datepicker-module.mjs +4 -4
- package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
- package/esm2022/datepicker/datepicker.mjs +3 -3
- package/esm2022/datepicker/month-view.mjs +3 -3
- package/esm2022/datepicker/multi-year-view.mjs +3 -3
- package/esm2022/datepicker/year-view.mjs +3 -3
- package/esm2022/dialog/dialog-container.mjs +3 -3
- package/esm2022/dialog/dialog-content-directives.mjs +15 -15
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/dialog/module.mjs +4 -4
- package/esm2022/divider/divider-module.mjs +4 -4
- package/esm2022/divider/divider.mjs +3 -3
- package/esm2022/expansion/accordion.mjs +3 -3
- package/esm2022/expansion/expansion-module.mjs +4 -4
- package/esm2022/expansion/expansion-panel-content.mjs +3 -3
- package/esm2022/expansion/expansion-panel-header.mjs +9 -9
- package/esm2022/expansion/expansion-panel.mjs +6 -6
- package/esm2022/form-field/directives/error.mjs +3 -3
- package/esm2022/form-field/directives/floating-label.mjs +3 -3
- package/esm2022/form-field/directives/hint.mjs +3 -3
- package/esm2022/form-field/directives/label.mjs +3 -3
- package/esm2022/form-field/directives/line-ripple.mjs +3 -3
- package/esm2022/form-field/directives/notched-outline.mjs +3 -3
- package/esm2022/form-field/directives/prefix.mjs +3 -3
- package/esm2022/form-field/directives/suffix.mjs +3 -3
- package/esm2022/form-field/form-field-control.mjs +4 -4
- package/esm2022/form-field/form-field.mjs +6 -6
- package/esm2022/form-field/module.mjs +4 -4
- package/esm2022/grid-list/grid-list-module.mjs +4 -4
- package/esm2022/grid-list/grid-list.mjs +3 -3
- package/esm2022/grid-list/grid-tile.mjs +15 -15
- package/esm2022/icon/icon-module.mjs +4 -4
- package/esm2022/icon/icon-registry.mjs +3 -3
- package/esm2022/icon/icon.mjs +3 -3
- package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
- package/esm2022/input/input.mjs +3 -3
- package/esm2022/input/module.mjs +4 -4
- package/esm2022/list/action-list.mjs +3 -3
- package/esm2022/list/list-base.mjs +6 -6
- package/esm2022/list/list-item-sections.mjs +18 -18
- package/esm2022/list/list-module.mjs +4 -4
- package/esm2022/list/list-option.mjs +3 -3
- package/esm2022/list/list.mjs +6 -6
- package/esm2022/list/nav-list.mjs +3 -3
- package/esm2022/list/selection-list.mjs +3 -3
- package/esm2022/list/subheader.mjs +3 -3
- package/esm2022/menu/menu-content.mjs +3 -3
- package/esm2022/menu/menu-item.mjs +3 -3
- package/esm2022/menu/menu-trigger.mjs +3 -3
- package/esm2022/menu/menu.mjs +3 -3
- package/esm2022/menu/module.mjs +4 -4
- package/esm2022/paginator/module.mjs +4 -4
- package/esm2022/paginator/paginator-intl.mjs +3 -3
- package/esm2022/paginator/paginator.mjs +3 -3
- package/esm2022/progress-bar/module.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.mjs +5 -5
- package/esm2022/progress-spinner/module.mjs +4 -4
- package/esm2022/progress-spinner/progress-spinner.mjs +3 -3
- package/esm2022/radio/module.mjs +4 -4
- package/esm2022/radio/radio.mjs +6 -6
- package/esm2022/select/module.mjs +4 -4
- package/esm2022/select/select.mjs +12 -7
- package/esm2022/sidenav/drawer.mjs +9 -9
- package/esm2022/sidenav/sidenav-module.mjs +4 -4
- package/esm2022/sidenav/sidenav.mjs +9 -9
- package/esm2022/slide-toggle/module.mjs +8 -8
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -3
- package/esm2022/slide-toggle/slide-toggle.mjs +3 -3
- package/esm2022/slider/module.mjs +4 -4
- package/esm2022/slider/slider-input.mjs +6 -6
- package/esm2022/slider/slider-thumb.mjs +3 -3
- package/esm2022/slider/slider.mjs +3 -3
- package/esm2022/snack-bar/module.mjs +4 -4
- package/esm2022/snack-bar/simple-snack-bar.mjs +3 -3
- package/esm2022/snack-bar/snack-bar-container.mjs +3 -3
- package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
- package/esm2022/snack-bar/snack-bar.mjs +3 -3
- package/esm2022/sort/sort-header-intl.mjs +3 -3
- package/esm2022/sort/sort-header.mjs +3 -3
- package/esm2022/sort/sort-module.mjs +4 -4
- package/esm2022/sort/sort.mjs +3 -3
- package/esm2022/stepper/step-content.mjs +3 -3
- package/esm2022/stepper/step-header.mjs +3 -3
- package/esm2022/stepper/step-label.mjs +3 -3
- package/esm2022/stepper/stepper-button.mjs +6 -6
- package/esm2022/stepper/stepper-icon.mjs +3 -3
- package/esm2022/stepper/stepper-intl.mjs +3 -3
- package/esm2022/stepper/stepper-module.mjs +4 -4
- package/esm2022/stepper/stepper.mjs +6 -6
- package/esm2022/table/cell.mjs +21 -21
- package/esm2022/table/module.mjs +4 -4
- package/esm2022/table/row.mjs +21 -21
- package/esm2022/table/table.mjs +6 -6
- package/esm2022/table/text-column.mjs +3 -3
- package/esm2022/tabs/ink-bar.mjs +3 -3
- package/esm2022/tabs/module.mjs +4 -4
- package/esm2022/tabs/paginated-tab-header.mjs +3 -3
- package/esm2022/tabs/tab-body.mjs +6 -6
- package/esm2022/tabs/tab-content.mjs +3 -3
- package/esm2022/tabs/tab-group.mjs +3 -3
- package/esm2022/tabs/tab-header.mjs +3 -3
- package/esm2022/tabs/tab-label-wrapper.mjs +3 -3
- package/esm2022/tabs/tab-label.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +9 -9
- package/esm2022/tabs/tab.mjs +3 -3
- package/esm2022/toolbar/toolbar-module.mjs +4 -4
- package/esm2022/toolbar/toolbar.mjs +6 -6
- package/esm2022/tooltip/module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +6 -6
- package/esm2022/tree/node.mjs +9 -9
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.mjs +3 -3
- package/esm2022/tree/toggle.mjs +3 -3
- package/esm2022/tree/tree-module.mjs +4 -4
- package/esm2022/tree/tree.mjs +3 -3
- package/expansion/_expansion-theme.scss +7 -0
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/button-toggle.mjs +10 -10
- package/fesm2022/button.mjs +34 -34
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/checkbox.mjs +14 -14
- package/fesm2022/chips.mjs +40 -40
- package/fesm2022/core.mjs +59 -59
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +87 -82
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -25
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/expansion.mjs +25 -25
- package/fesm2022/form-field.mjs +36 -36
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/list.mjs +49 -49
- package/fesm2022/menu.mjs +16 -16
- package/fesm2022/paginator.mjs +10 -10
- package/fesm2022/progress-bar.mjs +8 -8
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/radio.mjs +10 -10
- package/fesm2022/select.mjs +15 -10
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +22 -22
- package/fesm2022/slide-toggle.mjs +14 -14
- package/fesm2022/slider.mjs +16 -16
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/sort.mjs +13 -13
- package/fesm2022/stepper.mjs +31 -31
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/tabs.mjs +43 -43
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/tooltip.mjs +10 -10
- package/fesm2022/tree.mjs +25 -25
- package/form-field/_form-field-theme.scss +15 -0
- package/form-field/index.d.ts +6 -0
- package/grid-list/_grid-list-theme.scss +7 -0
- package/icon/_icon-theme.scss +9 -0
- package/input/_input-theme.scss +8 -0
- package/list/_list-theme.scss +8 -0
- package/menu/_menu-theme.scss +7 -0
- package/package.json +3 -2
- package/paginator/_paginator-theme.scss +7 -0
- package/progress-bar/_progress-bar-theme.scss +11 -0
- package/progress-spinner/_progress-spinner-theme.scss +11 -0
- package/radio/_radio-theme.scss +10 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js +5 -6
- package/schematics/ng-add/theming/create-custom-theme.mjs +5 -6
- package/schematics/ng-generate/m3-theme/index_bundled.js +2 -2
- package/schematics/ng-generate/m3-theme/index_bundled.js.map +1 -1
- package/schematics/ng-update/index_bundled.js +215 -1
- package/schematics/ng-update/index_bundled.js.map +4 -4
- package/select/_select-theme.scss +9 -0
- package/select/index.d.ts +5 -0
- package/sidenav/_sidenav-theme.scss +7 -0
- package/slide-toggle/_slide-toggle-theme.scss +11 -0
- package/slider/_slider-theme.scss +10 -0
- package/snack-bar/_snack-bar-theme.scss +10 -0
- package/sort/_sort-theme.scss +7 -0
- package/stepper/_stepper-theme.scss +9 -0
- package/table/_table-theme.scss +7 -0
- package/tabs/_tabs-theme.scss +20 -0
- package/toolbar/_toolbar-theme.scss +9 -0
- package/tooltip/_tooltip-theme.scss +8 -0
- package/tree/_tree-theme.scss +7 -0
- /package/core/{theming → m2}/_palette.scss +0 -0
package/fesm2022/tree.mjs
CHANGED
|
@@ -25,10 +25,10 @@ class MatTreeNode extends CdkTreeNode {
|
|
|
25
25
|
ngOnDestroy() {
|
|
26
26
|
super.ngOnDestroy();
|
|
27
27
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
29
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
29
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.5", type: MatTreeNode, isStandalone: true, selector: "mat-tree-node", inputs: { disabled: ["disabled", "disabled", booleanAttribute], tabIndex: ["tabIndex", "tabIndex", (value) => (value == null ? 0 : numberAttribute(value))] }, host: { classAttribute: "mat-tree-node" }, providers: [{ provide: CdkTreeNode, useExisting: MatTreeNode }], exportAs: ["matTreeNode"], usesInheritance: true, ngImport: i0 }); }
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNode, decorators: [{
|
|
32
32
|
type: Directive,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'mat-tree-node',
|
|
@@ -56,10 +56,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1",
|
|
|
56
56
|
* Captures the node's template and a when predicate that describes when this node should be used.
|
|
57
57
|
*/
|
|
58
58
|
class MatTreeNodeDef extends CdkTreeNodeDef {
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
60
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
59
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodeDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
60
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.5", type: MatTreeNodeDef, isStandalone: true, selector: "[matTreeNodeDef]", inputs: { when: ["matTreeNodeDefWhen", "when"], data: ["matTreeNode", "data"] }, providers: [{ provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef }], usesInheritance: true, ngImport: i0 }); }
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodeDef, decorators: [{
|
|
63
63
|
type: Directive,
|
|
64
64
|
args: [{
|
|
65
65
|
selector: '[matTreeNodeDef]',
|
|
@@ -101,14 +101,14 @@ class MatNestedTreeNode extends CdkNestedTreeNode {
|
|
|
101
101
|
ngOnDestroy() {
|
|
102
102
|
super.ngOnDestroy();
|
|
103
103
|
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
105
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.
|
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatNestedTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: i0.IterableDiffers }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
105
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.5", type: MatNestedTreeNode, isStandalone: true, selector: "mat-nested-tree-node", inputs: { node: ["matNestedTreeNode", "node"], disabled: ["disabled", "disabled", booleanAttribute], tabIndex: "tabIndex" }, host: { classAttribute: "mat-nested-tree-node" }, providers: [
|
|
106
106
|
{ provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode },
|
|
107
107
|
{ provide: CdkTreeNode, useExisting: MatNestedTreeNode },
|
|
108
108
|
{ provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode },
|
|
109
109
|
], exportAs: ["matNestedTreeNode"], usesInheritance: true, ngImport: i0 }); }
|
|
110
110
|
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatNestedTreeNode, decorators: [{
|
|
112
112
|
type: Directive,
|
|
113
113
|
args: [{
|
|
114
114
|
selector: 'mat-nested-tree-node',
|
|
@@ -154,10 +154,10 @@ class MatTreeNodePadding extends CdkTreeNodePadding {
|
|
|
154
154
|
set indent(indent) {
|
|
155
155
|
this._setIndentInput(indent);
|
|
156
156
|
}
|
|
157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
158
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodePadding, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
158
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.5", type: MatTreeNodePadding, isStandalone: true, selector: "[matTreeNodePadding]", inputs: { level: ["matTreeNodePadding", "level", numberAttribute], indent: ["matTreeNodePaddingIndent", "indent"] }, providers: [{ provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding }], usesInheritance: true, ngImport: i0 }); }
|
|
159
159
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodePadding, decorators: [{
|
|
161
161
|
type: Directive,
|
|
162
162
|
args: [{
|
|
163
163
|
selector: '[matTreeNodePadding]',
|
|
@@ -181,15 +181,15 @@ class MatTreeNodeOutlet {
|
|
|
181
181
|
this.viewContainer = viewContainer;
|
|
182
182
|
this._node = _node;
|
|
183
183
|
}
|
|
184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
185
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
184
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: CDK_TREE_NODE_OUTLET_NODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
185
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.5", type: MatTreeNodeOutlet, isStandalone: true, selector: "[matTreeNodeOutlet]", providers: [
|
|
186
186
|
{
|
|
187
187
|
provide: CdkTreeNodeOutlet,
|
|
188
188
|
useExisting: MatTreeNodeOutlet,
|
|
189
189
|
},
|
|
190
190
|
], ngImport: i0 }); }
|
|
191
191
|
}
|
|
192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodeOutlet, decorators: [{
|
|
193
193
|
type: Directive,
|
|
194
194
|
args: [{
|
|
195
195
|
selector: '[matTreeNodeOutlet]',
|
|
@@ -218,10 +218,10 @@ class MatTree extends CdkTree {
|
|
|
218
218
|
// We need an initializer here to avoid a TS error. The value will be set in `ngAfterViewInit`.
|
|
219
219
|
this._nodeOutlet = undefined;
|
|
220
220
|
}
|
|
221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
222
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
221
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTree, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
222
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.5", type: MatTree, isStandalone: true, selector: "mat-tree", host: { attributes: { "role": "tree" }, classAttribute: "mat-tree" }, providers: [{ provide: CdkTree, useExisting: MatTree }], viewQueries: [{ propertyName: "_nodeOutlet", first: true, predicate: MatTreeNodeOutlet, descendants: true, static: true }], exportAs: ["matTree"], usesInheritance: true, ngImport: i0, template: `<ng-container matTreeNodeOutlet></ng-container>`, isInline: true, styles: [".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"], dependencies: [{ kind: "directive", type: MatTreeNodeOutlet, selector: "[matTreeNodeOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
|
|
223
223
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTree, decorators: [{
|
|
225
225
|
type: Component,
|
|
226
226
|
args: [{ selector: 'mat-tree', exportAs: 'matTree', template: `<ng-container matTreeNodeOutlet></ng-container>`, host: {
|
|
227
227
|
'class': 'mat-tree',
|
|
@@ -236,10 +236,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1",
|
|
|
236
236
|
* Wrapper for the CdkTree's toggle with Material design styles.
|
|
237
237
|
*/
|
|
238
238
|
class MatTreeNodeToggle extends CdkTreeNodeToggle {
|
|
239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
240
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodeToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
240
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.5", type: MatTreeNodeToggle, isStandalone: true, selector: "[matTreeNodeToggle]", inputs: { recursive: ["matTreeNodeToggleRecursive", "recursive"] }, providers: [{ provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle }], usesInheritance: true, ngImport: i0 }); }
|
|
241
241
|
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeNodeToggle, decorators: [{
|
|
243
243
|
type: Directive,
|
|
244
244
|
args: [{
|
|
245
245
|
selector: '[matTreeNodeToggle]',
|
|
@@ -259,8 +259,8 @@ const MAT_TREE_DIRECTIVES = [
|
|
|
259
259
|
MatTreeNodeOutlet,
|
|
260
260
|
];
|
|
261
261
|
class MatTreeModule {
|
|
262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
263
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
263
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeModule, imports: [CdkTreeModule, MatCommonModule, MatNestedTreeNode,
|
|
264
264
|
MatTreeNodeDef,
|
|
265
265
|
MatTreeNodePadding,
|
|
266
266
|
MatTreeNodeToggle,
|
|
@@ -273,9 +273,9 @@ class MatTreeModule {
|
|
|
273
273
|
MatTree,
|
|
274
274
|
MatTreeNode,
|
|
275
275
|
MatTreeNodeOutlet] }); }
|
|
276
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
276
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeModule, imports: [CdkTreeModule, MatCommonModule, MatCommonModule] }); }
|
|
277
277
|
}
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: MatTreeModule, decorators: [{
|
|
279
279
|
type: NgModule,
|
|
280
280
|
args: [{
|
|
281
281
|
imports: [CdkTreeModule, MatCommonModule, ...MAT_TREE_DIRECTIVES],
|
|
@@ -103,6 +103,21 @@
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
107
|
+
/// @param {Map} $tokens The token values to emit.
|
|
108
|
+
@mixin overrides($tokens: ()) {
|
|
109
|
+
$filled-text-field-tokens: tokens-mdc-filled-text-field.get-token-slots();
|
|
110
|
+
$outlined-text-field-tokens: tokens-mdc-outlined-text-field.get-token-slots();
|
|
111
|
+
$form-field-tokens: tokens-mat-form-field.get-token-slots();
|
|
112
|
+
|
|
113
|
+
@include token-utils.batch-create-token-values(
|
|
114
|
+
$tokens,
|
|
115
|
+
(prefix: tokens-mdc-filled-text-field.$prefix, tokens: $filled-text-field-tokens),
|
|
116
|
+
(prefix: tokens-mdc-outlined-text-field.$prefix, tokens: $outlined-text-field-tokens),
|
|
117
|
+
(prefix: tokens-mat-form-field.$prefix, tokens: $form-field-tokens),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
106
121
|
/// Outputs all (base, color, typography, and density) theme styles for the mat-form-field.
|
|
107
122
|
/// @param {Map} $theme The theme to generate styles for.
|
|
108
123
|
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
package/form-field/index.d.ts
CHANGED
|
@@ -344,6 +344,12 @@ export declare abstract class MatFormFieldControl<T> {
|
|
|
344
344
|
* which are set by the form-field.
|
|
345
345
|
*/
|
|
346
346
|
readonly userAriaDescribedBy?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Whether to automatically assign the ID of the form field as the `for` attribute
|
|
349
|
+
* on the `<label>` inside the form field. Set this to true to prevent the form
|
|
350
|
+
* field from associating the label with non-native elements.
|
|
351
|
+
*/
|
|
352
|
+
readonly disableAutomaticLabeling?: boolean;
|
|
347
353
|
/** Sets the list of element IDs that currently describe this control. */
|
|
348
354
|
abstract setDescribedByIds(ids: string[]): void;
|
|
349
355
|
/** Handles a click on the control's container. */
|
|
@@ -41,6 +41,13 @@
|
|
|
41
41
|
@else {}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
@mixin overrides($tokens: ()) {
|
|
45
|
+
@include token-utils.batch-create-token-values(
|
|
46
|
+
$tokens,
|
|
47
|
+
(prefix: tokens-mat-grid-list.$prefix, tokens: tokens-mat-grid-list.get-token-slots()),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
@mixin theme($theme) {
|
|
45
52
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-grid-list') {
|
|
46
53
|
@if inspection.get-theme-version($theme) == 1 {
|
package/icon/_icon-theme.scss
CHANGED
|
@@ -70,6 +70,15 @@
|
|
|
70
70
|
@else {}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
74
|
+
/// @param {Map} $tokens The token values to emit.
|
|
75
|
+
@mixin overrides($tokens: ()) {
|
|
76
|
+
@include token-utils.batch-create-token-values(
|
|
77
|
+
$tokens,
|
|
78
|
+
(prefix: tokens-mat-icon.$prefix, tokens: tokens-mat-icon.get-token-slots()),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
73
82
|
/// Outputs all (base, color, typography, and density) theme styles for the mat-icon.
|
|
74
83
|
/// @param {Map} $theme The theme to generate styles for.
|
|
75
84
|
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
package/input/_input-theme.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '../core/theming/inspection';
|
|
3
3
|
@use '../core/theming/validation';
|
|
4
4
|
@use '../core/typography/typography';
|
|
5
|
+
@use '../core/tokens/token-utils';
|
|
5
6
|
|
|
6
7
|
@mixin base($theme) {
|
|
7
8
|
@if inspection.get-theme-version($theme) == 1 {
|
|
@@ -31,6 +32,13 @@
|
|
|
31
32
|
@else {}
|
|
32
33
|
}
|
|
33
34
|
|
|
35
|
+
@mixin overrides($tokens: ()) {
|
|
36
|
+
@include token-utils.batch-create-token-values(
|
|
37
|
+
$tokens,
|
|
38
|
+
(prefix: '', tokens: ()),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
@mixin theme($theme) {
|
|
35
43
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-input') {
|
|
36
44
|
@if inspection.get-theme-version($theme) == 1 {
|
package/list/_list-theme.scss
CHANGED
|
@@ -168,6 +168,14 @@
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
@mixin overrides($tokens: ()) {
|
|
172
|
+
@include token-utils.batch-create-token-values(
|
|
173
|
+
$tokens,
|
|
174
|
+
(prefix: tokens-mat-list.$prefix, tokens: tokens-mat-list.get-token-slots()),
|
|
175
|
+
(prefix: tokens-mdc-list.$prefix, tokens: tokens-mdc-list.get-token-slots()),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
171
179
|
@mixin theme($theme) {
|
|
172
180
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-list') {
|
|
173
181
|
@if inspection.get-theme-version($theme) == 1 {
|
package/menu/_menu-theme.scss
CHANGED
|
@@ -50,6 +50,13 @@
|
|
|
50
50
|
@else {}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
@mixin overrides($tokens: ()) {
|
|
54
|
+
@include token-utils.batch-create-token-values(
|
|
55
|
+
$tokens,
|
|
56
|
+
(prefix: tokens-mat-menu.$prefix, tokens: tokens-mat-menu.get-token-slots()),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
@mixin theme($theme) {
|
|
54
61
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-menu') {
|
|
55
62
|
@if inspection.get-theme-version($theme) == 1 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "18.0.0-next.
|
|
3
|
+
"version": "18.0.0-next.6",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
},
|
|
491
491
|
"peerDependencies": {
|
|
492
492
|
"@angular/animations": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
|
|
493
|
-
"@angular/cdk": "18.0.0-next.
|
|
493
|
+
"@angular/cdk": "18.0.0-next.6",
|
|
494
494
|
"@angular/core": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
|
|
495
495
|
"@angular/common": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
|
|
496
496
|
"@angular/forms": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
|
|
@@ -543,6 +543,7 @@
|
|
|
543
543
|
"@material/textfield": "15.0.0-canary.7f224ddd4.0",
|
|
544
544
|
"@material/theme": "15.0.0-canary.7f224ddd4.0",
|
|
545
545
|
"@material/tooltip": "15.0.0-canary.7f224ddd4.0",
|
|
546
|
+
"@material/tokens": "15.0.0-canary.7f224ddd4.0",
|
|
546
547
|
"@material/top-app-bar": "15.0.0-canary.7f224ddd4.0",
|
|
547
548
|
"@material/touch-target": "15.0.0-canary.7f224ddd4.0",
|
|
548
549
|
"@material/typography": "15.0.0-canary.7f224ddd4.0"
|
|
@@ -55,6 +55,13 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
@mixin overrides($tokens: ()) {
|
|
59
|
+
@include token-utils.batch-create-token-values(
|
|
60
|
+
$tokens,
|
|
61
|
+
(prefix: tokens-mat-paginator.$prefix, tokens: tokens-mat-paginator.get-token-slots()),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
58
65
|
@mixin theme($theme) {
|
|
59
66
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-paginator') {
|
|
60
67
|
@if inspection.get-theme-version($theme) == 1 {
|
|
@@ -59,6 +59,17 @@
|
|
|
59
59
|
/// @param {Map} $theme The theme to generate density styles for.
|
|
60
60
|
@mixin density($theme) {}
|
|
61
61
|
|
|
62
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
63
|
+
/// @param {Map} $tokens The token values to emit.
|
|
64
|
+
@mixin overrides($tokens: ()) {
|
|
65
|
+
$linear-progress-tokens: tokens-mdc-linear-progress.get-token-slots();
|
|
66
|
+
|
|
67
|
+
@include token-utils.batch-create-token-values(
|
|
68
|
+
$tokens,
|
|
69
|
+
(prefix: tokens-mdc-linear-progress.$prefix, tokens: $linear-progress-tokens),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
62
73
|
/// Outputs all (base, color, typography, and density) theme styles for the mat-progress-bar.
|
|
63
74
|
/// @param {Map} $theme The theme to generate styles for.
|
|
64
75
|
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
|
@@ -61,6 +61,17 @@
|
|
|
61
61
|
@mixin density($theme) {
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
65
|
+
/// @param {Map} $tokens The token values to emit.
|
|
66
|
+
@mixin overrides($tokens: ()) {
|
|
67
|
+
$circular-progress-tokens: tokens-mdc-circular-progress.get-token-slots();
|
|
68
|
+
|
|
69
|
+
@include token-utils.batch-create-token-values(
|
|
70
|
+
$tokens,
|
|
71
|
+
(prefix: tokens-mdc-circular-progress.$prefix, tokens: $circular-progress-tokens),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
64
75
|
/// Outputs all (base, color, typography, and density) theme styles for the mat-progress-spinner.
|
|
65
76
|
/// @param {Map} $theme The theme to generate styles for.
|
|
66
77
|
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
package/radio/_radio-theme.scss
CHANGED
|
@@ -96,6 +96,16 @@
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
100
|
+
/// @param {Map} $tokens The token values to emit.
|
|
101
|
+
@mixin overrides($tokens: ()) {
|
|
102
|
+
@include token-utils.batch-create-token-values(
|
|
103
|
+
$tokens,
|
|
104
|
+
(prefix: tokens-mdc-radio.$prefix, tokens: tokens-mdc-radio.get-token-slots()),
|
|
105
|
+
(prefix: tokens-mat-radio.$prefix, tokens: tokens-mat-radio.get-token-slots()),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
99
109
|
/// Outputs all (base, color, typography, and density) theme styles for the mat-radio.
|
|
100
110
|
/// @param {Map} $theme The theme to generate styles for.
|
|
101
111
|
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
|
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
|
|
|
18
18
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
19
19
|
* the default for Angular framework dependencies in CLI projects.
|
|
20
20
|
*/
|
|
21
|
-
const fallbackMaterialVersionRange = `~18.0.0-next.
|
|
21
|
+
const fallbackMaterialVersionRange = `~18.0.0-next.6`;
|
|
22
22
|
/**
|
|
23
23
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
24
24
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
|
|
|
18
18
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
19
19
|
* the default for Angular framework dependencies in CLI projects.
|
|
20
20
|
*/
|
|
21
|
-
const fallbackMaterialVersionRange = `~18.0.0-next.
|
|
21
|
+
const fallbackMaterialVersionRange = `~18.0.0-next.6`;
|
|
22
22
|
/**
|
|
23
23
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
24
24
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -14,7 +14,6 @@ function createCustomTheme(name = 'app') {
|
|
|
14
14
|
// Custom Theming for Angular Material
|
|
15
15
|
// For more information: https://material.angular.io/guide/theming
|
|
16
16
|
@use '@angular/material' as mat;
|
|
17
|
-
@use '@angular/material-experimental' as matx;
|
|
18
17
|
// Plus imports for other components in your app.
|
|
19
18
|
|
|
20
19
|
// Include the common styles for Angular Material. We include this here so that you only
|
|
@@ -23,11 +22,11 @@ function createCustomTheme(name = 'app') {
|
|
|
23
22
|
@include mat.core();
|
|
24
23
|
|
|
25
24
|
// Define the theme object.
|
|
26
|
-
$${name}-theme:
|
|
25
|
+
$${name}-theme: mat.define-theme((
|
|
27
26
|
color: (
|
|
28
27
|
theme-type: light,
|
|
29
|
-
primary:
|
|
30
|
-
tertiary:
|
|
28
|
+
primary: mat.$azure-palette,
|
|
29
|
+
tertiary: mat.$blue-palette,
|
|
31
30
|
),
|
|
32
31
|
density: (
|
|
33
32
|
scale: 0,
|
|
@@ -46,8 +45,8 @@ $${name}-theme: matx.define-theme((
|
|
|
46
45
|
// @include mat.typography-hierarchy($theme);
|
|
47
46
|
|
|
48
47
|
// Comment out the line below if you want to use the deprecated \`color\` inputs.
|
|
49
|
-
// @include
|
|
48
|
+
// @include mat.color-variants-backwards-compatibility($theme);
|
|
50
49
|
`;
|
|
51
50
|
}
|
|
52
51
|
exports.createCustomTheme = createCustomTheme;
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWN1c3RvbS10aGVtZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zY2hlbWF0aWNzL25nLWFkZC90aGVtaW5nL2NyZWF0ZS1jdXN0b20tdGhlbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsbUVBQW1FO0FBQ25FLFNBQWdCLGlCQUFpQixDQUFDLE9BQWUsS0FBSztJQUNwRCxPQUFPOzs7Ozs7Ozs7Ozs7R0FZTixJQUFJOzs7Ozs7Ozs7Ozs7Ozs7dUNBZWdDLElBQUk7Ozs7Ozs7OztDQVMxQyxDQUFDO0FBQ0YsQ0FBQztBQXRDRCw4Q0FzQ0MiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuLyoqIENyZWF0ZSBjdXN0b20gdGhlbWUgZm9yIHRoZSBnaXZlbiBhcHBsaWNhdGlvbiBjb25maWd1cmF0aW9uLiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZUN1c3RvbVRoZW1lKG5hbWU6IHN0cmluZyA9ICdhcHAnKSB7XG4gIHJld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GVhY2ggY29tcG9uZW50XG4vLyB0aGF0IHlvdSBhcmUgdXNpbmcuXG46cm9vdCB7XG4gIEBpbmNsdWRlIG1hdC5hbGwtY29tcG9uZW50LXRoZW1lcygkJHtuYW1lfS10aGVtZSk7XG59XG5cbi8vIENvbW1lbnQgb3V0IHRoZSBsaW5lIGJlbG93IGlmIHlvdSB3YW50IHRvIHVzZSB0aGUgcHJlLWRlZmluZWQgdHlwb2dyYXBoeSB1dGlsaXR5IGNsYXNzZXMuXG4vLyBGb3IgbW9yZSBpbmZvcm1hdGlvbjogaHR0cHM6Ly9tYXRlcmlhbC5hbmd1bGFyLmlvL2d1aWRlL3R5cG9ncmFwaHkjdXNpbmctdHlwb2dyYXBoeS1zdHlsZXMtaW4teW91ci1hcHBsaWNhdGlvbi5cbi8vIEBpbmNsdWRlIG1hdC50eXBvZ3JhcGh5LWhpZXJhcmNoeSgkdGhlbWUpO1xuXG4vLyBDb21tZW50IG91dCB0aGUgbGluZSBiZWxvdyBpZiB5b3Ugd2FudCB0byB1c2UgdGhlIGRlcHJlY2F0ZWQgXFxgY29sb3JcXGAgaW5wdXRzLlxuLy8gQGluY2x1ZGUgbWF0LmNvbG9yLXZhcmlhbnRzLWJhY2t3YXJkcy1jb21wYXRpYmlsaXR5KCR0aGVtZSk7XG5gO1xufVxuIl19
|
|
@@ -14,7 +14,6 @@ function createCustomTheme(name = 'app') {
|
|
|
14
14
|
// Custom Theming for Angular Material
|
|
15
15
|
// For more information: https://material.angular.io/guide/theming
|
|
16
16
|
@use '@angular/material' as mat;
|
|
17
|
-
@use '@angular/material-experimental' as matx;
|
|
18
17
|
// Plus imports for other components in your app.
|
|
19
18
|
|
|
20
19
|
// Include the common styles for Angular Material. We include this here so that you only
|
|
@@ -23,11 +22,11 @@ function createCustomTheme(name = 'app') {
|
|
|
23
22
|
@include mat.core();
|
|
24
23
|
|
|
25
24
|
// Define the theme object.
|
|
26
|
-
$${name}-theme:
|
|
25
|
+
$${name}-theme: mat.define-theme((
|
|
27
26
|
color: (
|
|
28
27
|
theme-type: light,
|
|
29
|
-
primary:
|
|
30
|
-
tertiary:
|
|
28
|
+
primary: mat.$azure-palette,
|
|
29
|
+
tertiary: mat.$blue-palette,
|
|
31
30
|
),
|
|
32
31
|
density: (
|
|
33
32
|
scale: 0,
|
|
@@ -46,8 +45,8 @@ $${name}-theme: matx.define-theme((
|
|
|
46
45
|
// @include mat.typography-hierarchy($theme);
|
|
47
46
|
|
|
48
47
|
// Comment out the line below if you want to use the deprecated \`color\` inputs.
|
|
49
|
-
// @include
|
|
48
|
+
// @include mat.color-variants-backwards-compatibility($theme);
|
|
50
49
|
`;
|
|
51
50
|
}
|
|
52
51
|
exports.createCustomTheme = createCustomTheme;
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWN1c3RvbS10aGVtZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zY2hlbWF0aWNzL25nLWFkZC90aGVtaW5nL2NyZWF0ZS1jdXN0b20tdGhlbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsbUVBQW1FO0FBQ25FLFNBQWdCLGlCQUFpQixDQUFDLE9BQWUsS0FBSztJQUNwRCxPQUFPOzs7Ozs7Ozs7Ozs7R0FZTixJQUFJOzs7Ozs7Ozs7Ozs7Ozs7dUNBZWdDLElBQUk7Ozs7Ozs7OztDQVMxQyxDQUFDO0FBQ0YsQ0FBQztBQXRDRCw4Q0FzQ0MiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBv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xuIl19
|
|
@@ -2564,7 +2564,7 @@ function generateSCSSTheme(colorPalettes, themeTypes, colorComment) {
|
|
|
2564
2564
|
"// Proceed with caution if making changes to this file.",
|
|
2565
2565
|
"",
|
|
2566
2566
|
"@use 'sass:map';",
|
|
2567
|
-
"@use '@angular/material
|
|
2567
|
+
"@use '@angular/material' as mat;",
|
|
2568
2568
|
"",
|
|
2569
2569
|
"// Note: " + colorComment,
|
|
2570
2570
|
"$_palettes: " + getColorPalettesSCSS(colorPalettes),
|
|
@@ -2581,7 +2581,7 @@ function generateSCSSTheme(colorPalettes, themeTypes, colorComment) {
|
|
|
2581
2581
|
];
|
|
2582
2582
|
for (const themeType of themeTypes) {
|
|
2583
2583
|
scss = scss.concat([
|
|
2584
|
-
"$" + themeType + "-theme:
|
|
2584
|
+
"$" + themeType + "-theme: mat.define-theme((",
|
|
2585
2585
|
" color: (",
|
|
2586
2586
|
" theme-type: " + themeType + ",",
|
|
2587
2587
|
" primary: $_primary,",
|