@angular/material 15.1.0-next.0 → 15.1.0-next.2
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/autocomplete/testing/index.d.ts +2 -0
- package/button/testing/index.d.ts +2 -0
- package/button-toggle/testing/index.d.ts +4 -0
- package/card/_card-theme.scss +10 -3
- package/checkbox/testing/index.d.ts +2 -0
- package/chips/_chips-theme.scss +11 -1
- package/chips/index.d.ts +2 -0
- package/chips/testing/index.d.ts +8 -0
- package/core/index.d.ts +3 -3
- package/core/mdc-helpers/_mdc-helpers.scss +35 -19
- package/esm2020/autocomplete/testing/autocomplete-harness-filters.mjs +1 -1
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +6 -2
- package/esm2020/button/icon-button.mjs +4 -4
- package/esm2020/button/testing/button-harness-filters.mjs +1 -1
- package/esm2020/button/testing/button-harness.mjs +5 -2
- package/esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs +1 -1
- package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +4 -2
- package/esm2020/button-toggle/testing/button-toggle-harness-filters.mjs +1 -1
- package/esm2020/button-toggle/testing/button-toggle-harness.mjs +5 -2
- package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
- package/esm2020/checkbox/testing/checkbox-harness.mjs +5 -2
- package/esm2020/chips/chip-action.mjs +3 -5
- package/esm2020/chips/chip-option.mjs +3 -3
- package/esm2020/chips/chip-row.mjs +3 -3
- package/esm2020/chips/chip.mjs +9 -1
- package/esm2020/chips/testing/chip-grid-harness.mjs +4 -2
- package/esm2020/chips/testing/chip-harness-filters.mjs +1 -1
- package/esm2020/chips/testing/chip-harness.mjs +6 -2
- package/esm2020/chips/testing/chip-input-harness.mjs +4 -1
- package/esm2020/chips/testing/chip-listbox-harness.mjs +4 -2
- package/esm2020/core/ripple/ripple-event-manager.mjs +69 -0
- package/esm2020/core/ripple/ripple-renderer.mjs +31 -23
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/form-field/directives/prefix.mjs +12 -7
- package/esm2020/form-field/directives/suffix.mjs +12 -7
- package/esm2020/form-field/form-field.mjs +3 -3
- package/esm2020/form-field/testing/form-field-harness-filters.mjs +1 -1
- package/esm2020/form-field/testing/form-field-harness.mjs +3 -2
- package/esm2020/legacy-autocomplete/testing/autocomplete-harness-filters.mjs +1 -1
- package/esm2020/legacy-autocomplete/testing/autocomplete-harness.mjs +6 -2
- package/esm2020/legacy-button/testing/button-harness.mjs +5 -2
- package/esm2020/legacy-checkbox/testing/checkbox-harness.mjs +5 -2
- package/esm2020/legacy-form-field/testing/form-field-harness.mjs +3 -2
- package/esm2020/list/list-option.mjs +2 -5
- package/esm2020/list/selection-list.mjs +2 -9
- package/esm2020/menu/menu-item.mjs +3 -3
- package/esm2020/progress-spinner/progress-spinner.mjs +4 -5
- package/esm2020/slider/slider-input.mjs +11 -10
- package/esm2020/slider/testing/slider-harness-filters.mjs +1 -1
- package/esm2020/slider/testing/slider-harness.mjs +6 -2
- package/esm2020/tabs/tab-group.mjs +6 -6
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +7 -7
- package/esm2020/toolbar/toolbar.mjs +2 -2
- package/fesm2015/autocomplete/testing.mjs +5 -1
- package/fesm2015/autocomplete/testing.mjs.map +1 -1
- package/fesm2015/button/testing.mjs +4 -1
- package/fesm2015/button/testing.mjs.map +1 -1
- package/fesm2015/button-toggle/testing.mjs +7 -2
- package/fesm2015/button-toggle/testing.mjs.map +1 -1
- package/fesm2015/button.mjs +4 -4
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/checkbox/testing.mjs +4 -1
- package/fesm2015/checkbox/testing.mjs.map +1 -1
- package/fesm2015/chips/testing.mjs +15 -4
- package/fesm2015/chips/testing.mjs.map +1 -1
- package/fesm2015/chips.mjs +14 -8
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +100 -24
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/form-field/testing.mjs +2 -1
- package/fesm2015/form-field/testing.mjs.map +1 -1
- package/fesm2015/form-field.mjs +22 -12
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/legacy-autocomplete/testing.mjs +6 -8
- package/fesm2015/legacy-autocomplete/testing.mjs.map +1 -1
- package/fesm2015/legacy-button/testing.mjs +4 -1
- package/fesm2015/legacy-button/testing.mjs.map +1 -1
- package/fesm2015/legacy-checkbox/testing.mjs +4 -1
- package/fesm2015/legacy-checkbox/testing.mjs.map +1 -1
- package/fesm2015/legacy-form-field/testing.mjs +2 -1
- package/fesm2015/legacy-form-field/testing.mjs.map +1 -1
- package/fesm2015/list.mjs +2 -12
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu.mjs +2 -2
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +3 -4
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/slider/testing.mjs +5 -1
- package/fesm2015/slider/testing.mjs.map +1 -1
- package/fesm2015/slider.mjs +10 -9
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/tabs.mjs +11 -11
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +2 -2
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2020/autocomplete/testing.mjs +5 -1
- package/fesm2020/autocomplete/testing.mjs.map +1 -1
- package/fesm2020/button/testing.mjs +4 -1
- package/fesm2020/button/testing.mjs.map +1 -1
- package/fesm2020/button-toggle/testing.mjs +7 -2
- package/fesm2020/button-toggle/testing.mjs.map +1 -1
- package/fesm2020/button.mjs +4 -4
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/checkbox/testing.mjs +4 -1
- package/fesm2020/checkbox/testing.mjs.map +1 -1
- package/fesm2020/chips/testing.mjs +14 -3
- package/fesm2020/chips/testing.mjs.map +1 -1
- package/fesm2020/chips.mjs +14 -8
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +99 -24
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/form-field/testing.mjs +2 -1
- package/fesm2020/form-field/testing.mjs.map +1 -1
- package/fesm2020/form-field.mjs +22 -12
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/legacy-autocomplete/testing.mjs +5 -1
- package/fesm2020/legacy-autocomplete/testing.mjs.map +1 -1
- package/fesm2020/legacy-button/testing.mjs +4 -1
- package/fesm2020/legacy-button/testing.mjs.map +1 -1
- package/fesm2020/legacy-checkbox/testing.mjs +4 -1
- package/fesm2020/legacy-checkbox/testing.mjs.map +1 -1
- package/fesm2020/legacy-form-field/testing.mjs +2 -1
- package/fesm2020/legacy-form-field/testing.mjs.map +1 -1
- package/fesm2020/list.mjs +2 -12
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu.mjs +2 -2
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +3 -4
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/slider/testing.mjs +5 -1
- package/fesm2020/slider/testing.mjs.map +1 -1
- package/fesm2020/slider.mjs +10 -9
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/tabs.mjs +11 -11
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +2 -2
- package/fesm2020/toolbar.mjs.map +1 -1
- package/form-field/_form-field-focus-overlay.scss +2 -0
- package/form-field/_mdc-text-field-theme-variable-refresh.scss +40 -15
- package/form-field/index.d.ts +4 -4
- package/form-field/testing/index.d.ts +2 -0
- package/legacy-autocomplete/testing/index.d.ts +2 -0
- package/list/_interactive-list-theme.scss +0 -17
- package/list/index.d.ts +0 -12
- package/menu/index.d.ts +1 -1
- package/package.json +2 -2
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +9 -2
- package/progress-spinner/index.d.ts +3 -4
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +16 -11
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
- package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +1 -1
- package/schematics/ng-update/index_bundled.js +1 -1
- package/schematics/ng-update/index_bundled.js.map +2 -2
- package/schematics/ng-update/ng_update_index_metadata.json +1 -1
- package/slider/index.d.ts +2 -2
- package/slider/testing/index.d.ts +2 -0
- package/snack-bar/_snack-bar-theme.scss +11 -7
- package/tabs/_tabs-common.scss +40 -0
- package/tabs/_tabs-theme.scss +4 -30
package/fesm2020/toolbar.mjs
CHANGED
|
@@ -61,14 +61,14 @@ class MatToolbar extends _MatToolbarBase {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
MatToolbar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: MatToolbar, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
-
MatToolbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: MatToolbar, selector: "mat-toolbar", inputs: { color: "color" }, host: { properties: { "class.mat-toolbar-multiple-rows": "_toolbarRows.length > 0", "class.mat-toolbar-single-row": "_toolbarRows.length === 0" }, classAttribute: "mat-toolbar" }, queries: [{ propertyName: "_toolbarRows", predicate: MatToolbarRow, descendants: true }], exportAs: ["matToolbar"], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n", styles: [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
64
|
+
MatToolbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: MatToolbar, selector: "mat-toolbar", inputs: { color: "color" }, host: { properties: { "class.mat-toolbar-multiple-rows": "_toolbarRows.length > 0", "class.mat-toolbar-single-row": "_toolbarRows.length === 0" }, classAttribute: "mat-toolbar" }, queries: [{ propertyName: "_toolbarRows", predicate: MatToolbarRow, descendants: true }], exportAs: ["matToolbar"], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n", styles: [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
65
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: MatToolbar, decorators: [{
|
|
66
66
|
type: Component,
|
|
67
67
|
args: [{ selector: 'mat-toolbar', exportAs: 'matToolbar', inputs: ['color'], host: {
|
|
68
68
|
'class': 'mat-toolbar',
|
|
69
69
|
'[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',
|
|
70
70
|
'[class.mat-toolbar-single-row]': '_toolbarRows.length === 0',
|
|
71
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n", styles: [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"] }]
|
|
71
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n", styles: [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"] }]
|
|
72
72
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: undefined, decorators: [{
|
|
73
73
|
type: Inject,
|
|
74
74
|
args: [DOCUMENT]
|
package/fesm2020/toolbar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.mjs","sources":["../../../../../../src/material/toolbar/toolbar.ts","../../../../../../src/material/toolbar/toolbar.html","../../../../../../src/material/toolbar/toolbar-module.ts","../../../../../../src/material/toolbar/public-api.ts","../../../../../../src/material/toolbar/index.ts","../../../../../../src/material/toolbar/toolbar_public_index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Platform} from '@angular/cdk/platform';\nimport {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n Inject,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport {CanColor, mixinColor} from '@angular/material/core';\n\n// Boilerplate for applying mixins to MatToolbar.\n/** @docs-private */\nconst _MatToolbarBase = mixinColor(\n class {\n constructor(public _elementRef: ElementRef) {}\n },\n);\n\n@Directive({\n selector: 'mat-toolbar-row',\n exportAs: 'matToolbarRow',\n host: {'class': 'mat-toolbar-row'},\n})\nexport class MatToolbarRow {}\n\n@Component({\n selector: 'mat-toolbar',\n exportAs: 'matToolbar',\n templateUrl: 'toolbar.html',\n styleUrls: ['toolbar.css'],\n inputs: ['color'],\n host: {\n 'class': 'mat-toolbar',\n '[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',\n '[class.mat-toolbar-single-row]': '_toolbarRows.length === 0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatToolbar extends _MatToolbarBase implements CanColor, AfterViewInit {\n private _document: Document;\n\n /** Reference to all toolbar row elements that have been projected. */\n @ContentChildren(MatToolbarRow, {descendants: true}) _toolbarRows: QueryList<MatToolbarRow>;\n\n constructor(\n elementRef: ElementRef,\n private _platform: Platform,\n @Inject(DOCUMENT) document?: any,\n ) {\n super(elementRef);\n\n // TODO: make the document a required param when doing breaking changes.\n this._document = document;\n }\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._checkToolbarMixedModes();\n this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());\n }\n }\n\n /**\n * Throws an exception when developers are attempting to combine the different toolbar row modes.\n */\n private _checkToolbarMixedModes() {\n if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // Check if there are any other DOM nodes that can display content but aren't inside of\n // a <mat-toolbar-row> element.\n const isCombinedUsage = Array.from<HTMLElement>(this._elementRef.nativeElement.childNodes)\n .filter(node => !(node.classList && node.classList.contains('mat-toolbar-row')))\n .filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8))\n .some(node => !!(node.textContent && node.textContent.trim()));\n\n if (isCombinedUsage) {\n throwToolbarMixedModesError();\n }\n }\n }\n}\n\n/**\n * Throws an exception when attempting to combine the different toolbar row modes.\n * @docs-private\n */\nexport function throwToolbarMixedModesError() {\n throw Error(\n 'MatToolbar: Attempting to combine different toolbar modes. ' +\n 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' +\n 'inside of a `<mat-toolbar>` for a single row.',\n );\n}\n","<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {MatCommonModule} from '@angular/material/core';\nimport {MatToolbar, MatToolbarRow} from './toolbar';\n\n@NgModule({\n imports: [MatCommonModule],\n exports: [MatToolbar, MatToolbarRow, MatCommonModule],\n declarations: [MatToolbar, MatToolbarRow],\n})\nexport class MatToolbarModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './toolbar-module';\nexport * from './toolbar';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;AAMG;AAiBH;AACA;AACA,MAAM,eAAe,GAAG,UAAU,CAChC,MAAA;AACE,IAAA,WAAA,CAAmB,WAAuB,EAAA;QAAvB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;KAAI;AAC/C,CAAA,CACF,CAAC;MAOW,aAAa,CAAA;;0GAAb,aAAa,EAAA,IA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src/material/toolbar/toolbar-module.ts","../../../../../../src/material/toolbar/public-api.ts","../../../../../../src/material/toolbar/index.ts","../../../../../../src/material/toolbar/toolbar_public_index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Platform} from '@angular/cdk/platform';\nimport {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n Inject,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport {CanColor, mixinColor} from '@angular/material/core';\n\n// Boilerplate for applying mixins to MatToolbar.\n/** @docs-private */\nconst _MatToolbarBase = mixinColor(\n class {\n constructor(public _elementRef: ElementRef) {}\n },\n);\n\n@Directive({\n selector: 'mat-toolbar-row',\n exportAs: 'matToolbarRow',\n host: {'class': 'mat-toolbar-row'},\n})\nexport class MatToolbarRow {}\n\n@Component({\n selector: 'mat-toolbar',\n exportAs: 'matToolbar',\n templateUrl: 'toolbar.html',\n styleUrls: ['toolbar.css'],\n inputs: ['color'],\n host: {\n 'class': 'mat-toolbar',\n '[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',\n '[class.mat-toolbar-single-row]': '_toolbarRows.length === 0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatToolbar extends _MatToolbarBase implements CanColor, AfterViewInit {\n private _document: Document;\n\n /** Reference to all toolbar row elements that have been projected. */\n @ContentChildren(MatToolbarRow, {descendants: true}) _toolbarRows: QueryList<MatToolbarRow>;\n\n constructor(\n elementRef: ElementRef,\n private _platform: Platform,\n @Inject(DOCUMENT) document?: any,\n ) {\n super(elementRef);\n\n // TODO: make the document a required param when doing breaking changes.\n this._document = document;\n }\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._checkToolbarMixedModes();\n this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());\n }\n }\n\n /**\n * Throws an exception when developers are attempting to combine the different toolbar row modes.\n */\n private _checkToolbarMixedModes() {\n if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // Check if there are any other DOM nodes that can display content but aren't inside of\n // a <mat-toolbar-row> element.\n const isCombinedUsage = Array.from<HTMLElement>(this._elementRef.nativeElement.childNodes)\n .filter(node => !(node.classList && node.classList.contains('mat-toolbar-row')))\n .filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8))\n .some(node => !!(node.textContent && node.textContent.trim()));\n\n if (isCombinedUsage) {\n throwToolbarMixedModesError();\n }\n }\n }\n}\n\n/**\n * Throws an exception when attempting to combine the different toolbar row modes.\n * @docs-private\n */\nexport function throwToolbarMixedModesError() {\n throw Error(\n 'MatToolbar: Attempting to combine different toolbar modes. ' +\n 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' +\n 'inside of a `<mat-toolbar>` for a single row.',\n );\n}\n","<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {MatCommonModule} from '@angular/material/core';\nimport {MatToolbar, MatToolbarRow} from './toolbar';\n\n@NgModule({\n imports: [MatCommonModule],\n exports: [MatToolbar, MatToolbarRow, MatCommonModule],\n declarations: [MatToolbar, MatToolbarRow],\n})\nexport class MatToolbarModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './toolbar-module';\nexport * from './toolbar';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not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A,OAAA,EAAA,CAF9B,eAAe,CAAA,EAAA,OAAA,EAAA,CACf,UAAU,EAAE,aAAa,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;8GAGzC,gBAAgB,EAAA,OAAA,EAAA,CAJjB,eAAe,EACY,eAAe,CAAA,EAAA,CAAA,CAAA;2FAGzC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;AAC1B,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,CAAC;AACrD,oBAAA,YAAY,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC;AAC1C,iBAAA,CAAA;;;AChBD;;;;;;AAMG;;ACNH;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '@material/textfield' as mdc-textfield;
|
|
2
2
|
@use '@material/theme/variables' as mdc-theme-variables;
|
|
3
3
|
@use 'sass:color';
|
|
4
|
+
@use 'sass:meta';
|
|
4
5
|
|
|
5
6
|
// Mixin that refreshes the MDC text-field theming variables. This mixin should be used when
|
|
6
7
|
// the base MDC theming variables have been explicitly updated, but the component specific
|
|
@@ -8,38 +9,48 @@
|
|
|
8
9
|
// restores the previous values for the variables to avoid unexpected global side effects.
|
|
9
10
|
@mixin private-text-field-refresh-theme-variables() {
|
|
10
11
|
$_disabled-border: mdc-textfield.$disabled-border;
|
|
11
|
-
mdc-textfield.$disabled-border:
|
|
12
|
+
mdc-textfield.$disabled-border:
|
|
13
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.06);
|
|
12
14
|
$_bottom-line-hover: mdc-textfield.$bottom-line-hover;
|
|
13
|
-
mdc-textfield.$bottom-line-hover:
|
|
15
|
+
mdc-textfield.$bottom-line-hover:
|
|
16
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.87);
|
|
14
17
|
$_bottom-line-idle: mdc-textfield.$bottom-line-idle;
|
|
15
|
-
mdc-textfield.$bottom-line-idle:
|
|
18
|
+
mdc-textfield.$bottom-line-idle:
|
|
19
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.42);
|
|
16
20
|
$_label: mdc-textfield.$label;
|
|
17
|
-
mdc-textfield.$label: rgba(mdc-theme-variables.prop-value(on-surface), 0.6);
|
|
21
|
+
mdc-textfield.$label: _variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.6);
|
|
18
22
|
$_ink-color: mdc-textfield.$ink-color;
|
|
19
|
-
mdc-textfield.$ink-color: rgba(mdc-theme-variables.prop-value(on-surface), 0.87);
|
|
23
|
+
mdc-textfield.$ink-color: _variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.87);
|
|
20
24
|
$_focused-label-color: mdc-textfield.$focused-label-color;
|
|
21
|
-
mdc-textfield.$focused-label-color:
|
|
25
|
+
mdc-textfield.$focused-label-color:
|
|
26
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(primary), 0.87);
|
|
22
27
|
$_placeholder-ink-color: mdc-textfield.$placeholder-ink-color;
|
|
23
|
-
mdc-textfield.$placeholder-ink-color:
|
|
28
|
+
mdc-textfield.$placeholder-ink-color:
|
|
29
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.6);
|
|
24
30
|
$_disabled-label-color: mdc-textfield.$disabled-label-color;
|
|
25
|
-
mdc-textfield.$disabled-label-color:
|
|
31
|
+
mdc-textfield.$disabled-label-color:
|
|
32
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.38);
|
|
26
33
|
$_disabled-ink-color: mdc-textfield.$disabled-ink-color;
|
|
27
|
-
mdc-textfield.$disabled-ink-color:
|
|
34
|
+
mdc-textfield.$disabled-ink-color:
|
|
35
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.38);
|
|
28
36
|
$_disabled-placeholder-ink-color: mdc-textfield.$disabled-placeholder-ink-color;
|
|
29
37
|
mdc-textfield.$disabled-placeholder-ink-color:
|
|
30
|
-
rgba(mdc-theme-variables.prop-value(on-surface), 0.38);
|
|
38
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.38);
|
|
31
39
|
$_background: mdc-textfield.$background;
|
|
32
|
-
mdc-textfield.$background:
|
|
40
|
+
mdc-textfield.$background: _variable-safe-mix(mdc-theme-variables.prop-value(on-surface),
|
|
33
41
|
mdc-theme-variables.prop-value(surface), 4%);
|
|
34
42
|
$_disabled-background: mdc-textfield.$disabled-background;
|
|
35
|
-
mdc-textfield.$disabled-background:
|
|
43
|
+
mdc-textfield.$disabled-background: _variable-safe-mix(mdc-theme-variables.prop-value(on-surface),
|
|
36
44
|
mdc-theme-variables.prop-value(surface), 2%);
|
|
37
45
|
$_outlined-idle-border: mdc-textfield.$outlined-idle-border;
|
|
38
|
-
mdc-textfield.$outlined-idle-border:
|
|
46
|
+
mdc-textfield.$outlined-idle-border:
|
|
47
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.38);
|
|
39
48
|
$_outlined-disabled-border: mdc-textfield.$outlined-disabled-border;
|
|
40
|
-
mdc-textfield.$outlined-disabled-border:
|
|
49
|
+
mdc-textfield.$outlined-disabled-border:
|
|
50
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.06);
|
|
41
51
|
$_outlined-hover-border: mdc-textfield.$outlined-hover-border;
|
|
42
|
-
mdc-textfield.$outlined-hover-border:
|
|
52
|
+
mdc-textfield.$outlined-hover-border:
|
|
53
|
+
_variable-safe-rgba(mdc-theme-variables.prop-value(on-surface), 0.87);
|
|
43
54
|
|
|
44
55
|
// The content will be generated with the refreshed MDC text-field theming variables.
|
|
45
56
|
@content;
|
|
@@ -61,3 +72,17 @@
|
|
|
61
72
|
mdc-textfield.$outlined-disabled-border: $_outlined-disabled-border;
|
|
62
73
|
mdc-textfield.$outlined-hover-border: $_outlined-hover-border;
|
|
63
74
|
}
|
|
75
|
+
|
|
76
|
+
@function _variable-safe-rgba($color, $opacity) {
|
|
77
|
+
@if (meta.type-of($color) == color) {
|
|
78
|
+
@return rgba($color, $opacity);
|
|
79
|
+
}
|
|
80
|
+
@return $color;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@function _variable-safe-mix($first-color, $second-color, $amount) {
|
|
84
|
+
@if (meta.type-of($first-color) == color and meta.type-of($second-color) == color) {
|
|
85
|
+
@return color.mix($first-color, $second-color, $amount);
|
|
86
|
+
}
|
|
87
|
+
@return $first-color;
|
|
88
|
+
}
|
package/form-field/index.d.ts
CHANGED
|
@@ -467,18 +467,18 @@ export declare class MatLabel {
|
|
|
467
467
|
|
|
468
468
|
/** Prefix to be placed in front of the form field. */
|
|
469
469
|
export declare class MatPrefix {
|
|
470
|
+
set _isTextSelector(value: '');
|
|
470
471
|
_isText: boolean;
|
|
471
|
-
constructor(elementRef: ElementRef);
|
|
472
472
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPrefix, never>;
|
|
473
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, {}, {}, never, never, false, never>;
|
|
473
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, { "_isTextSelector": "matTextPrefix"; }, {}, never, never, false, never>;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
/** Suffix to be placed at the end of the form field. */
|
|
477
477
|
export declare class MatSuffix {
|
|
478
|
+
set _isTextSelector(value: '');
|
|
478
479
|
_isText: boolean;
|
|
479
|
-
constructor(elementRef: ElementRef);
|
|
480
480
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffix, never>;
|
|
481
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, {}, {}, never, never, false, never>;
|
|
481
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, { "_isTextSelector": "matTextSuffix"; }, {}, never, never, false, never>;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
/** Behaviors for how the subscript height is set. */
|
|
@@ -29,6 +29,8 @@ export declare interface FormFieldHarnessFilters extends BaseHarnessFilters {
|
|
|
29
29
|
floatingLabelText?: string | RegExp;
|
|
30
30
|
/** Filters based on whether the form field has error messages. */
|
|
31
31
|
hasErrors?: boolean;
|
|
32
|
+
/** Filters based on whether the form field value is valid. */
|
|
33
|
+
isValid?: boolean;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
/** Harness for interacting with an MDC-based `mat-error` in tests. */
|
|
@@ -14,6 +14,8 @@ import { MatLegacyOptionHarness } from '@angular/material/legacy-core/testing';
|
|
|
14
14
|
export declare interface LegacyAutocompleteHarnessFilters extends BaseHarnessFilters {
|
|
15
15
|
/** Only find instances whose associated input element matches the given value. */
|
|
16
16
|
value?: string | RegExp;
|
|
17
|
+
/** Only find instances which match the given disabled state. */
|
|
18
|
+
disabled?: boolean;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@material/ripple' as mdc-ripple;
|
|
3
|
-
@use '../core/theming/theming';
|
|
4
3
|
|
|
5
4
|
// Mixin that provides colors for the various states of an interactive list-item. MDC
|
|
6
5
|
// has integrated styles for these states but relies on their complex ripples for it.
|
|
7
6
|
@mixin private-interactive-list-item-state-colors($config) {
|
|
8
7
|
$is-dark-theme: map.get($config, is-dark);
|
|
9
8
|
$active-base-color: if($is-dark-theme, white, black);
|
|
10
|
-
$selected-color: theming.get-color-from-palette(map.get($config, primary));
|
|
11
9
|
|
|
12
10
|
.mat-mdc-list-item-interactive {
|
|
13
11
|
&::before {
|
|
@@ -18,21 +16,6 @@
|
|
|
18
16
|
opacity: mdc-ripple.states-opacity($active-base-color, hover);
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
&.mdc-list-item--selected {
|
|
22
|
-
&::before {
|
|
23
|
-
background: $selected-color;
|
|
24
|
-
opacity: mdc-ripple.states-opacity($selected-color, selected);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:not(:focus):not(.mdc-list-item--disabled):hover::before {
|
|
28
|
-
// The hover and selected opacities need to be combined to match with what the MDC
|
|
29
|
-
// ripple state would render. More details here:
|
|
30
|
-
// https://github.com/material-components/material-components-web/blob/348665978ce73694ad4518626dd70cdf5b984113/packages/mdc-ripple/_ripple-theme.scss#L450.
|
|
31
|
-
opacity: mdc-ripple.states-opacity($selected-color, hover) +
|
|
32
|
-
mdc-ripple.states-opacity($selected-color, selected);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
19
|
&:focus::before {
|
|
37
20
|
opacity: mdc-ripple.states-opacity($active-base-color, focus);
|
|
38
21
|
}
|
package/list/index.d.ts
CHANGED
|
@@ -539,23 +539,11 @@ export declare class MatSelectionList extends MatListBase implements SelectionLi
|
|
|
539
539
|
export declare class MatSelectionListChange {
|
|
540
540
|
/** Reference to the selection list that emitted the event. */
|
|
541
541
|
source: MatSelectionList;
|
|
542
|
-
/**
|
|
543
|
-
* Reference to the option that has been changed.
|
|
544
|
-
* @deprecated Use `options` instead, because some events may change more than one option.
|
|
545
|
-
* @breaking-change 12.0.0
|
|
546
|
-
*/
|
|
547
|
-
option: MatListOption;
|
|
548
542
|
/** Reference to the options that have been changed. */
|
|
549
543
|
options: MatListOption[];
|
|
550
544
|
constructor(
|
|
551
545
|
/** Reference to the selection list that emitted the event. */
|
|
552
546
|
source: MatSelectionList,
|
|
553
|
-
/**
|
|
554
|
-
* Reference to the option that has been changed.
|
|
555
|
-
* @deprecated Use `options` instead, because some events may change more than one option.
|
|
556
|
-
* @breaking-change 12.0.0
|
|
557
|
-
*/
|
|
558
|
-
option: MatListOption,
|
|
559
547
|
/** Reference to the options that have been changed. */
|
|
560
548
|
options: MatListOption[]);
|
|
561
549
|
}
|
package/menu/index.d.ts
CHANGED
|
@@ -383,7 +383,7 @@ export declare class MatMenuItem extends _MatMenuItemBase implements FocusableOp
|
|
|
383
383
|
_setTriggersSubmenu(triggersSubmenu: boolean): void;
|
|
384
384
|
_hasFocus(): boolean;
|
|
385
385
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuItem, [null, null, null, { optional: true; }, null]>;
|
|
386
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatMenuItem, "[mat-menu-item]", ["matMenuItem"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "role": "role"; }, {}, never, ["mat-icon", "*"], false, never>;
|
|
386
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatMenuItem, "[mat-menu-item]", ["matMenuItem"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "role": "role"; }, {}, never, ["mat-icon, [matMenuItemIcon]", "*"], false, never>;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
/** @docs-private */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "15.1.0-next.
|
|
3
|
+
"version": "15.1.0-next.2",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -989,7 +989,7 @@
|
|
|
989
989
|
},
|
|
990
990
|
"peerDependencies": {
|
|
991
991
|
"@angular/animations": "^15.0.0 || ^16.0.0",
|
|
992
|
-
"@angular/cdk": "15.1.0-next.
|
|
992
|
+
"@angular/cdk": "15.1.0-next.2",
|
|
993
993
|
"@angular/core": "^15.0.0 || ^16.0.0",
|
|
994
994
|
"@angular/common": "^15.0.0 || ^16.0.0",
|
|
995
995
|
"@angular/forms": "^15.0.0 || ^16.0.0",
|