@angular/material-experimental 17.0.0-rc.3 → 17.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.
Files changed (38) hide show
  1. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  2. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
  3. package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  4. package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  5. package/esm2022/column-resize/column-resize-module.mjs +13 -13
  6. package/esm2022/column-resize/overlay-handle.mjs +4 -4
  7. package/esm2022/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
  8. package/esm2022/column-resize/resizable-directives/resizable.mjs +4 -4
  9. package/esm2022/column-resize/resize-strategy.mjs +4 -4
  10. package/esm2022/menubar/menubar-item.mjs +4 -4
  11. package/esm2022/menubar/menubar-module.mjs +5 -5
  12. package/esm2022/menubar/menubar.mjs +4 -4
  13. package/esm2022/popover-edit/lens-directives.mjs +10 -10
  14. package/esm2022/popover-edit/popover-edit-module.mjs +5 -5
  15. package/esm2022/popover-edit/table-directives.mjs +13 -13
  16. package/esm2022/selection/row-selection.mjs +4 -4
  17. package/esm2022/selection/select-all.mjs +4 -4
  18. package/esm2022/selection/selection-column.mjs +4 -4
  19. package/esm2022/selection/selection-module.mjs +5 -5
  20. package/esm2022/selection/selection-toggle.mjs +4 -4
  21. package/esm2022/selection/selection.mjs +4 -4
  22. package/esm2022/version.mjs +1 -1
  23. package/fesm2022/column-resize.mjs +36 -36
  24. package/fesm2022/column-resize.mjs.map +1 -1
  25. package/fesm2022/material-experimental.mjs +1 -1
  26. package/fesm2022/material-experimental.mjs.map +1 -1
  27. package/fesm2022/menubar.mjs +10 -10
  28. package/fesm2022/menubar.mjs.map +1 -1
  29. package/fesm2022/popover-edit.mjs +25 -25
  30. package/fesm2022/popover-edit.mjs.map +1 -1
  31. package/fesm2022/selection.mjs +19 -19
  32. package/fesm2022/selection.mjs.map +1 -1
  33. package/package.json +8 -8
  34. package/theming/_custom-tokens.scss +179 -11
  35. package/theming/_definition.scss +8 -8
  36. package/theming/_m3-density.scss +43 -14
  37. package/theming/_m3-palettes.scss +372 -176
  38. package/theming/_m3-tokens.scss +153 -83
@@ -1 +1 @@
1
- {"version":3,"file":"selection.mjs","sources":["../../../../../../src/material-experimental/selection/selection.ts","../../../../../../src/material-experimental/selection/select-all.ts","../../../../../../src/material-experimental/selection/selection-toggle.ts","../../../../../../src/material-experimental/selection/selection-column.ts","../../../../../../src/material-experimental/selection/row-selection.ts","../../../../../../src/material-experimental/selection/selection-module.ts","../../../../../../src/material-experimental/selection/selection_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 {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {CdkSelection, SelectionChange} from '@angular/cdk-experimental/selection';\nimport {Directive, Input, Output, EventEmitter} from '@angular/core';\n\n/**\n * Manages the selection states of the items and provides methods to check and update the selection\n * states.\n * It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,\n * `matRowSelection` and `matSelectionColumn` are applied.\n */\n@Directive({\n selector: '[matSelection]',\n exportAs: 'matSelection',\n providers: [{provide: CdkSelection, useExisting: MatSelection}],\n})\n// tslint:disable-next-line: coercion-types\nexport class MatSelection<T> extends CdkSelection<T> {\n /** Whether to support multiple selection */\n @Input('matSelectionMultiple')\n override get multiple(): boolean {\n return this._multiple;\n }\n override set multiple(multiple: boolean) {\n this._multiple = coerceBooleanProperty(multiple);\n }\n\n /** Emits when selection changes. */\n @Output('matSelectionChange') override readonly change = new EventEmitter<SelectionChange<T>>();\n}\n\n/**\n * Represents the change in the selection set.\n */\nexport {SelectionChange} from '@angular/cdk-experimental/selection';\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 {CdkSelectAll} from '@angular/cdk-experimental/selection';\nimport {Directive} from '@angular/core';\n\n/**\n * Makes the element a select-all toggle.\n *\n * Must be used within a parent `MatSelection` directive. It toggles the selection states\n * of all the selection toggles connected with the `MatSelection` directive.\n * If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the select-all state provided by the `MatSelection` directive. If\n * not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,\n * and `toggle()` to change the selection state.\n */\n@Directive({\n selector: '[matSelectAll]',\n exportAs: 'matSelectAll',\n providers: [{provide: CdkSelectAll, useExisting: MatSelectAll}],\n})\nexport class MatSelectAll<T> extends CdkSelectAll<T> {}\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 {CdkSelectionToggle} from '@angular/cdk-experimental/selection';\nimport {Directive, Input} from '@angular/core';\n\n/**\n * Makes the element a selection toggle.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value\n * is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the selection state provided by the `MatSelection` directive. If\n * not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection\n * state.\n */\n@Directive({\n selector: '[matSelectionToggle]',\n exportAs: 'matSelectionToggle',\n inputs: ['index: matSelectionToggleIndex'],\n providers: [{provide: CdkSelectionToggle, useExisting: MatSelectionToggle}],\n})\nexport class MatSelectionToggle<T> extends CdkSelectionToggle<T> {\n /** The value that is associated with the toggle */\n @Input('matSelectionToggleValue') override value: T = undefined!;\n}\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 {MatCellDef, MatColumnDef, MatHeaderCellDef, MatTable} from '@angular/material/table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Inject,\n} from '@angular/core';\n\nimport {MatSelection} from './selection';\n\n/**\n * Column that adds row selecting checkboxes and a select-all checkbox if `matSelectionMultiple` is\n * `true`.\n *\n * Must be used within a parent `MatSelection` directive.\n */\n@Component({\n selector: 'mat-selection-column',\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef class=\"mat-selection-column-header\">\n @if (selection.multiple) {\n <mat-checkbox\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n }\n </th>\n <td mat-cell *matCellDef=\"let row; let i = $index\" class=\"mat-selection-column-cell\">\n <mat-checkbox\n matSelectionToggle\n [matSelectionToggleValue]=\"row\"\n [matSelectionToggleIndex]=\"i\"></mat-checkbox>\n </td>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['selection-column.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n /** Column name that should be used to reference this column. */\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n\n this._syncColumnDefName();\n }\n private _name: string;\n\n @ViewChild(MatColumnDef, {static: true}) private readonly _columnDef: MatColumnDef;\n @ViewChild(MatCellDef, {static: true}) private readonly _cell: MatCellDef;\n @ViewChild(MatHeaderCellDef, {static: true})\n private readonly _headerCell: MatHeaderCellDef;\n\n constructor(\n @Optional() @Inject(MatTable) private _table: MatTable<T>,\n @Optional() @Inject(MatSelection) readonly selection: MatSelection<T>,\n ) {}\n\n ngOnInit() {\n if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MatSelectionColumn: missing MatSelection in the parent');\n }\n\n this._syncColumnDefName();\n\n if (this._table) {\n this._columnDef.cell = this._cell;\n this._columnDef.headerCell = this._headerCell;\n this._table.addColumnDef(this._columnDef);\n } else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw Error('MatSelectionColumn: missing parent table');\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this._columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this._columnDef) {\n this._columnDef.name = this._name;\n }\n }\n}\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 {CdkRowSelection} from '@angular/cdk-experimental/selection';\nimport {Input, Directive} from '@angular/core';\n\n/**\n * Applies `mat-selected` class and `aria-selected` to an element.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`\n * directive.\n */\n@Directive({\n selector: '[matRowSelection]',\n host: {\n '[class.mat-selected]': '_selection.isSelected(this.value, this.index)',\n '[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',\n },\n providers: [{provide: CdkRowSelection, useExisting: MatRowSelection}],\n inputs: ['index: matRowSelectionIndex'],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') override value: T;\n}\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\n// TODO(yifange): Move the table-specific code to a separate module from the other selection\n// behaviors once we move it out of experimental.\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatTableModule} from '@angular/material/table';\nimport {MatCheckboxModule} from '@angular/material/checkbox';\nimport {MatSelectAll} from './select-all';\nimport {MatSelection} from './selection';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectionColumn} from './selection-column';\nimport {MatRowSelection} from './row-selection';\n\n@NgModule({\n imports: [CommonModule, MatTableModule, MatCheckboxModule],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n declarations: [\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n})\nexport class MatSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3.MatSelectAll","i4.MatSelectionToggle"],"mappings":";;;;;;;;;;;AAYA;;;;;AAKG;AAMH;AACM,MAAO,YAAgB,SAAQ,YAAe,CAAA;AANpD,IAAA,WAAA,GAAA;;;AAiBkD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAsB,CAAC;AACjG,KAAA;;AAVC,IAAA,IACa,QAAQ,GAAA;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAa,QAAQ,CAAC,QAAiB,EAAA;AACrC,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;KAClD;mHARU,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;uGAAZ,YAAY,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,sBAAA,EAAA,UAAA,CAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,oBAAA,EAAA,EAAA,SAAA,EAHZ,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAC,CAAC,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;gGAGpD,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,cAAc;oBACxB,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,YA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AA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,aAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBAP3B,YAAY;YACZ,YAAY;YACZ,kBAAkB;YAClB,kBAAkB;AAClB,YAAA,eAAe,CAPP,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAC/C,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AASlF,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,aAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAVnB,OAAA,EAAA,CAAA,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;gGAU9C,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAC;oBAC1D,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC9F,oBAAA,YAAY,EAAE;wBACZ,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
1
+ {"version":3,"file":"selection.mjs","sources":["../../../../../../src/material-experimental/selection/selection.ts","../../../../../../src/material-experimental/selection/select-all.ts","../../../../../../src/material-experimental/selection/selection-toggle.ts","../../../../../../src/material-experimental/selection/selection-column.ts","../../../../../../src/material-experimental/selection/row-selection.ts","../../../../../../src/material-experimental/selection/selection-module.ts","../../../../../../src/material-experimental/selection/selection_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 {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {CdkSelection, SelectionChange} from '@angular/cdk-experimental/selection';\nimport {Directive, Input, Output, EventEmitter} from '@angular/core';\n\n/**\n * Manages the selection states of the items and provides methods to check and update the selection\n * states.\n * It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,\n * `matRowSelection` and `matSelectionColumn` are applied.\n */\n@Directive({\n selector: '[matSelection]',\n exportAs: 'matSelection',\n providers: [{provide: CdkSelection, useExisting: MatSelection}],\n})\n// tslint:disable-next-line: coercion-types\nexport class MatSelection<T> extends CdkSelection<T> {\n /** Whether to support multiple selection */\n @Input('matSelectionMultiple')\n override get multiple(): boolean {\n return this._multiple;\n }\n override set multiple(multiple: boolean) {\n this._multiple = coerceBooleanProperty(multiple);\n }\n\n /** Emits when selection changes. */\n @Output('matSelectionChange') override readonly change = new EventEmitter<SelectionChange<T>>();\n}\n\n/**\n * Represents the change in the selection set.\n */\nexport {SelectionChange} from '@angular/cdk-experimental/selection';\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 {CdkSelectAll} from '@angular/cdk-experimental/selection';\nimport {Directive} from '@angular/core';\n\n/**\n * Makes the element a select-all toggle.\n *\n * Must be used within a parent `MatSelection` directive. It toggles the selection states\n * of all the selection toggles connected with the `MatSelection` directive.\n * If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the select-all state provided by the `MatSelection` directive. If\n * not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,\n * and `toggle()` to change the selection state.\n */\n@Directive({\n selector: '[matSelectAll]',\n exportAs: 'matSelectAll',\n providers: [{provide: CdkSelectAll, useExisting: MatSelectAll}],\n})\nexport class MatSelectAll<T> extends CdkSelectAll<T> {}\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 {CdkSelectionToggle} from '@angular/cdk-experimental/selection';\nimport {Directive, Input} from '@angular/core';\n\n/**\n * Makes the element a selection toggle.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value\n * is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the selection state provided by the `MatSelection` directive. If\n * not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection\n * state.\n */\n@Directive({\n selector: '[matSelectionToggle]',\n exportAs: 'matSelectionToggle',\n inputs: ['index: matSelectionToggleIndex'],\n providers: [{provide: CdkSelectionToggle, useExisting: MatSelectionToggle}],\n})\nexport class MatSelectionToggle<T> extends CdkSelectionToggle<T> {\n /** The value that is associated with the toggle */\n @Input('matSelectionToggleValue') override value: T = undefined!;\n}\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 {MatCellDef, MatColumnDef, MatHeaderCellDef, MatTable} from '@angular/material/table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Inject,\n} from '@angular/core';\n\nimport {MatSelection} from './selection';\n\n/**\n * Column that adds row selecting checkboxes and a select-all checkbox if `matSelectionMultiple` is\n * `true`.\n *\n * Must be used within a parent `MatSelection` directive.\n */\n@Component({\n selector: 'mat-selection-column',\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef class=\"mat-selection-column-header\">\n @if (selection.multiple) {\n <mat-checkbox\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n }\n </th>\n <td mat-cell *matCellDef=\"let row; let i = $index\" class=\"mat-selection-column-cell\">\n <mat-checkbox\n matSelectionToggle\n [matSelectionToggleValue]=\"row\"\n [matSelectionToggleIndex]=\"i\"></mat-checkbox>\n </td>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['selection-column.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n /** Column name that should be used to reference this column. */\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n\n this._syncColumnDefName();\n }\n private _name: string;\n\n @ViewChild(MatColumnDef, {static: true}) private readonly _columnDef: MatColumnDef;\n @ViewChild(MatCellDef, {static: true}) private readonly _cell: MatCellDef;\n @ViewChild(MatHeaderCellDef, {static: true})\n private readonly _headerCell: MatHeaderCellDef;\n\n constructor(\n @Optional() @Inject(MatTable) private _table: MatTable<T>,\n @Optional() @Inject(MatSelection) readonly selection: MatSelection<T>,\n ) {}\n\n ngOnInit() {\n if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MatSelectionColumn: missing MatSelection in the parent');\n }\n\n this._syncColumnDefName();\n\n if (this._table) {\n this._columnDef.cell = this._cell;\n this._columnDef.headerCell = this._headerCell;\n this._table.addColumnDef(this._columnDef);\n } else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw Error('MatSelectionColumn: missing parent table');\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this._columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this._columnDef) {\n this._columnDef.name = this._name;\n }\n }\n}\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 {CdkRowSelection} from '@angular/cdk-experimental/selection';\nimport {Input, Directive} from '@angular/core';\n\n/**\n * Applies `mat-selected` class and `aria-selected` to an element.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`\n * directive.\n */\n@Directive({\n selector: '[matRowSelection]',\n host: {\n '[class.mat-selected]': '_selection.isSelected(this.value, this.index)',\n '[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',\n },\n providers: [{provide: CdkRowSelection, useExisting: MatRowSelection}],\n inputs: ['index: matRowSelectionIndex'],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') override value: T;\n}\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\n// TODO(yifange): Move the table-specific code to a separate module from the other selection\n// behaviors once we move it out of experimental.\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatTableModule} from '@angular/material/table';\nimport {MatCheckboxModule} from '@angular/material/checkbox';\nimport {MatSelectAll} from './select-all';\nimport {MatSelection} from './selection';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectionColumn} from './selection-column';\nimport {MatRowSelection} from './row-selection';\n\n@NgModule({\n imports: [CommonModule, MatTableModule, MatCheckboxModule],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n declarations: [\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n})\nexport class MatSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3.MatSelectAll","i4.MatSelectionToggle"],"mappings":";;;;;;;;;;;AAYA;;;;;AAKG;AAMH;AACM,MAAO,YAAgB,SAAQ,YAAe,CAAA;AANpD,IAAA,WAAA,GAAA;;;AAiBkD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAs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AAkB,EAAE,kBAAkB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AASlF,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAVnB,OAAA,EAAA,CAAA,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAU9C,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAC;oBAC1D,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC9F,oBAAA,YAAY,EAAE;wBACZ,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material-experimental",
3
- "version": "17.0.0-rc.3",
3
+ "version": "17.0.1",
4
4
  "description": "Experimental components for Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,13 +48,13 @@
48
48
  }
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/animations": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
52
- "@angular/cdk": "17.0.0-rc.3",
53
- "@angular/core": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
54
- "@angular/common": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
55
- "@angular/forms": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
56
- "@angular/platform-browser": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
57
- "@angular/material": "17.0.0-rc.3"
51
+ "@angular/animations": "^17.0.0 || ^18.0.0",
52
+ "@angular/cdk": "17.0.1",
53
+ "@angular/core": "^17.0.0 || ^18.0.0",
54
+ "@angular/common": "^17.0.0 || ^18.0.0",
55
+ "@angular/forms": "^17.0.0 || ^18.0.0",
56
+ "@angular/platform-browser": "^17.0.0 || ^18.0.0",
57
+ "@angular/material": "17.0.1"
58
58
  },
59
59
  "dependencies": {
60
60
  "tslib": "^2.3.0",
@@ -1,6 +1,11 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
3
 
4
+ /// Hardcode the given value, or null if hardcoded values are excluded.
5
+ @function _hardcode($value, $exclude-hardcoded) {
6
+ @return if($exclude-hardcoded, null, $value);
7
+ }
8
+
4
9
  /// Sets all of the standard typography tokens for the given token base name to the given typography
5
10
  /// level.
6
11
  /// @param {Map} $systems The MDC system tokens
@@ -22,11 +27,38 @@
22
27
  /// @return {Map} A set of custom tokens for the mat-card
23
28
  @function card($systems, $exclude-hardcoded) {
24
29
  @return mat.private-merge-all(
25
- _generate-typography-tokens($systems, title-text, title-large),
26
- _generate-typography-tokens($systems, subtitle-text, title-medium),
27
- (
28
- subtitle-text-color: map.get($systems, md-sys-color, on-surface)
29
- )
30
+ _generate-typography-tokens($systems, title-text, title-large),
31
+ _generate-typography-tokens($systems, subtitle-text, title-medium),
32
+ (
33
+ subtitle-text-color: map.get($systems, md-sys-color, on-surface)
34
+ )
35
+ );
36
+ }
37
+
38
+ /// Generates custom tokens for the mat-form-field.
39
+ /// @param {Map} $systems The MDC system tokens
40
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
41
+ /// @return {Map} A set of custom tokens for the mat-form-field
42
+ @function form-field($systems, $exclude-hardcoded) {
43
+ @return mat.private-merge-all(
44
+ _generate-typography-tokens($systems, container-text, body-large),
45
+ _generate-typography-tokens($systems, subscript-text, body-small),
46
+ (
47
+ disabled-input-text-placeholder-color: mat.private-safe-color-change(
48
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
49
+ state-layer-color: map.get($systems, md-sys-color, on-surface),
50
+ error-text-color: map.get($systems, md-sys-color, error),
51
+ select-option-text-color: map.get($systems, md-ref-palette, neutral10),
52
+ select-disabled-option-text-color: mat.private-safe-color-change(
53
+ map.get($systems, md-ref-palette, neutral10), $alpha: 0.38),
54
+ enabled-select-arrow-color: map.get($systems, md-sys-color, on-surface-variant),
55
+ disabled-select-arrow-color: mat.private-safe-color-change(
56
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
57
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
58
+ focus-state-layer-opacity: _hardcode(0, $exclude-hardcoded),
59
+ focus-select-arrow-color: map.get($systems, md-sys-color, primary),
60
+ outlined-label-text-populated-size: map.get($systems, md-sys-typeface, body-large-size),
61
+ )
30
62
  );
31
63
  }
32
64
 
@@ -36,21 +68,29 @@
36
68
  /// @return {Map} A set of custom tokens for the mat-toolbar
37
69
  @function toolbar($systems, $exclude-hardcoded) {
38
70
  @return mat.private-merge-all(
39
- _generate-typography-tokens($systems, title-text, title-large),
40
- (
41
- container-background-color: map.get($systems, md-sys-color, surface),
42
- container-text-color: map.get($systems, md-sys-color, on-surface),
43
- )
71
+ _generate-typography-tokens($systems, title-text, title-large),
72
+ (
73
+ container-background-color: map.get($systems, md-sys-color, surface),
74
+ container-text-color: map.get($systems, md-sys-color, on-surface),
75
+ )
44
76
  );
45
77
  }
46
78
 
79
+ /// Generates custom tokens for the mat-slide-toggle.
80
+ /// @param {Map} $systems The MDC system tokens
81
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
82
+ /// @return {Map} A set of custom tokens for the mat-slide-toggle
83
+ @function slide-toggle($systems, $exclude-hardcoded) {
84
+ @return _generate-typography-tokens($systems, label-text, label-large);
85
+ }
86
+
47
87
  /// Generates custom tokens for the mat-slider.
48
88
  /// @param {Map} $systems The MDC system tokens
49
89
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
50
90
  /// @return {Map} A set of custom tokens for the mat-slider
51
91
  @function slider($systems, $exclude-hardcoded) {
52
92
  @return (
53
- value-indicator-opacity: 1,
93
+ value-indicator-opacity: _hardcode(1, $exclude-hardcoded),
54
94
  );
55
95
  }
56
96
 
@@ -75,3 +115,131 @@
75
115
  disabled-label-color: map.get($systems, md-sys-color, on-surface),
76
116
  );
77
117
  }
118
+
119
+ /// Generates custom tokens for the mat-ripple.
120
+ /// @param {Map} $systems The MDC system tokens
121
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
122
+ /// @return {Map} A set of custom tokens for the mat-ripple
123
+ @function ripple($systems, $exclude-hardcoded) {
124
+ @return (
125
+ color: mat.private-safe-color-change(map.get($systems, md-sys-color, on-surface), $alpha: 0.1),
126
+ );
127
+ }
128
+
129
+ /// Generates custom tokens for the mat-sort.
130
+ /// @param {Map} $systems The MDC system tokens
131
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
132
+ /// @return {Map} A set of custom tokens for the mat-sort
133
+ @function sort($systems, $exclude-hardcoded) {
134
+ @return (
135
+ arrow-color: map.get($systems, md-sys-color, on-surface),
136
+ );
137
+ }
138
+
139
+ /// Generates custom tokens for the mat-stepper.
140
+ /// @param {Map} $systems The MDC system tokens
141
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
142
+ /// @return {Map} A set of custom tokens for the mat-stepper
143
+ @function stepper($systems, $exclude-hardcoded) {
144
+ @return mat.private-merge-all(
145
+ (
146
+ container-color: map.get($systems, md-sys-color, surface),
147
+ line-color: map.get($systems, md-sys-color, outline-variant),
148
+ header-hover-state-layer-color: mat.private-safe-color-change(
149
+ map.get($systems, md-sys-color, inverse-surface),
150
+ $alpha: map.get($systems, md-sys-state, hover-state-layer-opacity)
151
+ ),
152
+ header-focus-state-layer-color: mat.private-safe-color-change(
153
+ map.get($systems, md-sys-color, inverse-surface),
154
+ $alpha: map.get($systems, md-sys-state, focus-state-layer-opacity)
155
+ ),
156
+ header-label-text-color: map.get($systems, md-sys-color, on-surface-variant),
157
+ header-optional-label-text-color: map.get($systems, md-sys-color, on-surface-variant),
158
+ header-selected-state-label-text-color: map.get($systems, md-sys-color, on-surface),
159
+ header-icon-background-color: map.get($systems, md-sys-color, inverse-surface),
160
+ header-icon-foreground-color: map.get($systems, md-sys-color, inverse-on-surface),
161
+ header-error-state-label-text-color: map.get($systems, md-sys-color, error),
162
+ header-error-state-icon-foreground-color: map.get($systems, md-sys-color, error),
163
+ header-error-state-icon-background-color: _hardcode(transparent, $exclude-hardcoded),
164
+ container-text-font: map.get($systems, md-sys-typescale, body-medium-font),
165
+ header-label-text-font: map.get($systems, md-sys-typescale, title-small-font),
166
+ header-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
167
+ header-label-text-weight: map.get($systems, md-sys-typescale, title-small-weight),
168
+ header-error-state-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
169
+ header-selected-state-label-text-size: map.get($systems, md-sys-typescale, title-small-szie),
170
+ header-selected-state-label-text-weight: map.get(
171
+ $systems, md-sys-typescale, title-small-weight),
172
+ ),
173
+ );
174
+ }
175
+
176
+ /// Generates custom tokens for the mat-tab-header.
177
+ /// @param {Map} $systems The MDC system tokens
178
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
179
+ /// @return {Map} A set of custom tokens for the mat-tab-header
180
+ @function tab-header($systems, $exclude-hardcoded) {
181
+ @return mat.private-merge-all(
182
+ _generate-typography-tokens($systems, label-text, title-small),
183
+ (
184
+ disabled-ripple-color: blue, // TODO(mmalerba): Figure out correct value.
185
+ pagination-icon-color: map.get($systems, md-sys-color, on-surface),
186
+ inactive-label-text-color: map.get($systems, md-sys-color, on-surface),
187
+ active-label-text-color: map.get($systems, md-sys-color, on-surface),
188
+ active-ripple-color: map.get($systems, md-sys-color, on-surface),
189
+ inactive-ripple-color: map.get($systems, md-sys-color, on-surface),
190
+ inactive-focus-label-text-color: map.get($systems, md-sys-color, on-surface),
191
+ inactive-hover-label-text-color: map.get($systems, md-sys-color, on-surface),
192
+ active-focus-label-text-color: map.get($systems, md-sys-color, on-surface),
193
+ active-hover-label-text-color: map.get($systems, md-sys-color, on-surface),
194
+ active-focus-indicator-color: map.get($systems, md-sys-color, primary),
195
+ active-hover-indicator-color: map.get($systems, md-sys-color, primary),
196
+ ),
197
+ );
198
+ }
199
+
200
+ /// Generates custom tokens for the mdc-tab-indicator. (MDC has a tab-indicator component, but they
201
+ /// seem to have made up the tokens rather than using ones generated from the token database,
202
+ /// therefore we need a custom token function for it).
203
+ /// @param {Map} $systems The MDC system tokens
204
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
205
+ /// @return {Map} A set of custom tokens for the mdc-tab-indicator
206
+ @function tab-indicator($systems, $exclude-hardcoded) {
207
+ @return (
208
+ active-indicator-height: _hardcode(2px, $exclude-hardcoded),
209
+ active-indicator-shape: _hardcode(0, $exclude-hardcoded),
210
+ active-indicator-color: map.get($systems, md-sys-color, primary),
211
+ );
212
+ }
213
+
214
+ /// Generates custom tokens for the mat-table.
215
+ /// @param {Map} $systems The MDC system tokens
216
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
217
+ /// @return {Map} A set of custom tokens for the mat-table
218
+ @function table($systems, $exclude-hardcoded) {
219
+ @return mat.private-merge-all(
220
+ _generate-typography-tokens($systems, header-headline, title-small),
221
+ _generate-typography-tokens($systems, row-item-label-text, body-medium),
222
+ _generate-typography-tokens($systems, footer-supporting-text, body-medium),
223
+ (
224
+ row-item-outline-width: _hardcode(1px, $exclude-hardcoded),
225
+ background-color: map.get($systems, md-sys-color, surface),
226
+ header-headline-color: map.get($systems, md-sys-color, on-surface),
227
+ row-item-label-text-color: map.get($systems, md-sys-color, on-surface),
228
+ row-item-outline-color: map.get($systems, md-sys-color, outline-variant),
229
+ ),
230
+ );
231
+ }
232
+
233
+ /// Generates custom tokens for the mat-tree.
234
+ /// @param {Map} $systems The MDC system tokens
235
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
236
+ /// @return {Map} A set of custom tokens for the mat-tree
237
+ @function tree($systems, $exclude-hardcoded) {
238
+ @return (
239
+ container-background-color: map.get($systems, md-sys-color, surface),
240
+ node-text-color: map.get($systems, md-sys-color, on-surface),
241
+ node-text-font: map.get($systems, md-sys-typescale, body-large-font),
242
+ node-text-size: map.get($systems, md-sys-typescale, body-large-size),
243
+ node-text-weight: map.get($systems, md-sys-typescale, body-large-weight),
244
+ );
245
+ }
@@ -38,7 +38,7 @@ $theme-version: 1;
38
38
  }
39
39
 
40
40
  $type: map.get($config, theme-type) or light;
41
- $primary: map.get($config, primary) or m3-palettes.$indigo-palette;
41
+ $primary: map.get($config, primary) or m3-palettes.$purple-palette;
42
42
  $secondary: map.get($config, secondary) or $primary;
43
43
  $tertiary: map.get($config, tertiary) or $secondary;
44
44
 
@@ -47,15 +47,15 @@ $theme-version: 1;
47
47
  theme-version: $theme-version,
48
48
  theme-type: $type,
49
49
  palettes: (
50
- primary: map.remove($primary, neutral-variant),
51
- secondary: map.remove($secondary, neutral-variant),
52
- tertiary: map.remove($tertiary, neutral-variant),
53
- neutral: m3-palettes.$neutral-palette,
50
+ primary: map.remove($primary, neutral, neutral-variant),
51
+ secondary: map.remove($secondary, neutral, neutral-variant),
52
+ tertiary: map.remove($tertiary, neutral, neutral-variant),
53
+ neutral: map.get($primary, neutral),
54
54
  neutral-variant: map.get($primary, neutral-variant),
55
- error: m3-palettes.$red-palette
55
+ error: map.remove(m3-palettes.$red-palette, neutral, neutral-variant),
56
56
  ),
57
- color-tokens: m3-tokens.generate-color-tokens($type, $primary, $secondary, $tertiary,
58
- m3-palettes.$neutral-palette, m3-palettes.$red-palette)
57
+ color-tokens: m3-tokens.generate-color-tokens(
58
+ $type, $primary, $secondary, $tertiary, m3-palettes.$red-palette)
59
59
  )
60
60
  );
61
61
  }
@@ -16,28 +16,57 @@
16
16
  // TODO(mmalerba): Add density tokens for remaining components.
17
17
  $_density-tokens: (
18
18
  // MDC tokens
19
- (mdc, checkbox): (
19
+ (mdc, checkbox): (
20
20
  state-layer-size: (40px, 36px, 32px, 28px),
21
21
  ),
22
- (mdc, elevated-card): (),
23
- (mdc, outlined-card): (),
24
- (mdc, slider): (),
25
- (mdc, snackbar): (),
26
- (mdc, plain-tooltip): (),
27
- (mdc, circular-progress): (),
28
- (mdc, radio): (
22
+ (mdc, elevated-card): (),
23
+ (mdc, filled-text-field): (),
24
+ (mdc, outlined-card): (),
25
+ (mdc, outlined-text-field): (),
26
+ (mdc, slider): (),
27
+ (mdc, snackbar): (),
28
+ (mdc, plain-tooltip): (),
29
+ (mdc, circular-progress): (),
30
+ (mdc, radio): (
29
31
  state-layer-size: (40px, 36px, 32px, 28px),
30
32
  ),
31
- (mdc, linear-progress): (),
33
+ (mdc, linear-progress): (),
34
+ (mdc, list): (
35
+ list-item-one-line-container-height: (48px, 44px, 40px, 36px, 32px, 24px),
36
+ list-item-two-line-container-height: (64px, 60px, 56px, 52px, 48px, 48px),
37
+ list-item-three-line-container-height: (88px, 84px, 80px, 76px, 72px, 56px),
38
+ ),
39
+ (mdc, switch): (),
40
+ (mdc, tab): (
41
+ container-height: (48px, 44px, 40px, 36px, 32px)
42
+ ),
43
+ (mdc, tab-indicator): (),
44
+
32
45
  // Custom Angular Material tokens
33
- (mat, card): (),
34
- (mat, toolbar): (
46
+ (mat, card): (),
47
+ (mat, form-fild): (),
48
+ (mat, toolbar): (
35
49
  standard-height: (64px, 60px, 56px, 52px),
36
50
  mobile-height: (56px, 52px, 48px, 44px),
37
51
  ),
38
- (mat, slider): (),
39
- (mat, snack-bar): (),
40
- (mat, radio): (),
52
+ (mat, slider): (),
53
+ (mat, snack-bar): (),
54
+ (mat, radio): (),
55
+ (mat, ripple): (),
56
+ (mat, slide-toggle): (),
57
+ (mat, sort): (),
58
+ (mat, stepper): (
59
+ header-height: (72px, 68px, 64px, 60px, 42px),
60
+ ),
61
+ (mat, tab-header): (),
62
+ (mat, table): (
63
+ header-container-height: (56px, 52px, 48px, 44px, 40px),
64
+ footer-container-height: (52px, 48px, 44px, 40px, 36px),
65
+ row-item-container-height: (52px, 48px, 44px, 40px, 36px),
66
+ ),
67
+ (mat, tree): (
68
+ node-min-height: (48px, 44px, 40px, 36px, 28px),
69
+ ),
41
70
  );
42
71
 
43
72
  /// Gets the value for the given density scale from the given set of density values.