@angular/material 19.1.0-next.3 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/autocomplete/index.d.ts +1 -1
- package/badge/index.d.ts +2 -2
- package/button/index.d.ts +4 -6
- package/checkbox/index.d.ts +4 -4
- package/chips/index.d.ts +3 -3
- package/core/index.d.ts +0 -1
- package/datepicker/index.d.ts +16 -40
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +12 -12
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +10 -10
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +36 -38
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +18 -18
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +42 -42
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +75 -73
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +820 -821
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -25
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +25 -25
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -36
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +12 -12
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +54 -53
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +35 -28
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +21 -24
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +9 -9
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +9 -9
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +14 -14
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +12 -12
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +133 -110
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +16 -16
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +23 -25
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +14 -14
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +37 -37
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +57 -57
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +54 -56
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +16 -14
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +12 -12
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +104 -71
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +4 -4
- package/icon/index.d.ts +4 -4
- package/list/index.d.ts +6 -5
- package/menu/index.d.ts +5 -1
- package/package.json +7 -7
- package/paginator/index.d.ts +5 -5
- package/progress-bar/index.d.ts +4 -4
- package/progress-spinner/index.d.ts +4 -4
- package/radio/index.d.ts +6 -6
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/select/index.d.ts +1 -1
- package/sidenav/index.d.ts +11 -10
- package/slide-toggle/index.d.ts +4 -4
- package/slider/index.d.ts +2 -2
- package/stepper/index.d.ts +6 -6
- package/tabs/index.d.ts +9 -9
- package/toolbar/index.d.ts +2 -2
- package/tooltip/index.d.ts +10 -4
package/fesm2022/tree.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.mjs","sources":["../../../../../../src/material/tree/node.ts","../../../../../../src/material/tree/padding.ts","../../../../../../src/material/tree/outlet.ts","../../../../../../src/material/tree/tree.ts","../../../../../../src/material/tree/toggle.ts","../../../../../../src/material/tree/tree-module.ts","../../../../../../src/material/tree/data-source/flat-data-source.ts","../../../../../../src/material/tree/data-source/nested-data-source.ts","../../../../../../src/material/tree/tree_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.dev/license\n */\n\nimport {\n CDK_TREE_NODE_OUTLET_NODE,\n CdkNestedTreeNode,\n CdkTreeNode,\n CdkTreeNodeDef,\n} from '@angular/cdk/tree';\nimport {\n AfterContentInit,\n Directive,\n Input,\n OnDestroy,\n OnInit,\n booleanAttribute,\n numberAttribute,\n inject,\n HostAttributeToken,\n} from '@angular/core';\nimport {NoopTreeKeyManager, TreeKeyManagerItem, TreeKeyManagerStrategy} from '@angular/cdk/a11y';\n\n/**\n * Determinte if argument TreeKeyManager is the NoopTreeKeyManager. This function is safe to use with SSR.\n */\nfunction isNoopTreeKeyManager<T extends TreeKeyManagerItem>(\n keyManager: TreeKeyManagerStrategy<T>,\n): keyManager is NoopTreeKeyManager<T> {\n return !!(keyManager as any)._isNoopTreeKeyManager;\n}\n\n/**\n * Wrapper for the CdkTree node with Material design styles.\n */\n@Directive({\n selector: 'mat-tree-node',\n exportAs: 'matTreeNode',\n outputs: ['activation', 'expandedChange'],\n providers: [{provide: CdkTreeNode, useExisting: MatTreeNode}],\n host: {\n 'class': 'mat-tree-node',\n '[attr.aria-expanded]': '_getAriaExpanded()',\n '[attr.aria-level]': 'level + 1',\n '[attr.aria-posinset]': '_getPositionInSet()',\n '[attr.aria-setsize]': '_getSetSize()',\n '(click)': '_focusItem()',\n '[tabindex]': '_getTabindexAttribute()',\n },\n})\nexport class MatTreeNode<T, K = T> extends CdkTreeNode<T, K> implements OnInit, OnDestroy {\n /**\n * The tabindex of the tree node.\n *\n * @deprecated By default MatTreeNode manages focus using TreeKeyManager instead of tabIndex.\n * Recommend to avoid setting tabIndex directly to prevent TreeKeyManager form getting into\n * an unexpected state. Tabindex to be removed in a future version.\n * @breaking-change 21.0.0 Remove this attribute.\n */\n @Input({\n transform: (value: unknown) => (value == null ? 0 : numberAttribute(value)),\n alias: 'tabIndex',\n })\n get tabIndexInputBinding(): number {\n return this._tabIndexInputBinding;\n }\n set tabIndexInputBinding(value: number) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndexInputBinding = value;\n }\n private _tabIndexInputBinding: number;\n\n /**\n * The default tabindex of the tree node.\n *\n * @deprecated By default MatTreeNode manages focus using TreeKeyManager instead of tabIndex.\n * Recommend to avoid setting tabIndex directly to prevent TreeKeyManager form getting into\n * an unexpected state. Tabindex to be removed in a future version.\n * @breaking-change 21.0.0 Remove this attribute.\n */\n defaultTabIndex = 0;\n\n protected _getTabindexAttribute() {\n if (isNoopTreeKeyManager(this._tree._keyManager)) {\n return this.tabIndexInputBinding;\n }\n return this._tabindex;\n }\n\n /**\n * Whether the component is disabled.\n *\n * @deprecated This is an alias for `isDisabled`.\n * @breaking-change 21.0.0 Remove this input\n */\n @Input({transform: booleanAttribute})\n get disabled(): boolean {\n return this.isDisabled;\n }\n set disabled(value: boolean) {\n this.isDisabled = value;\n }\n\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n\n const tabIndex = inject(new HostAttributeToken('tabindex'), {optional: true});\n this.tabIndexInputBinding = Number(tabIndex) || this.defaultTabIndex;\n }\n\n // This is a workaround for https://github.com/angular/angular/issues/23091\n // In aot mode, the lifecycle hooks from parent class are not called.\n override ngOnInit() {\n super.ngOnInit();\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n }\n}\n\n/**\n * Wrapper for the CdkTree node definition with Material design styles.\n * Captures the node's template and a when predicate that describes when this node should be used.\n */\n@Directive({\n selector: '[matTreeNodeDef]',\n inputs: [{name: 'when', alias: 'matTreeNodeDefWhen'}],\n providers: [{provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef}],\n})\nexport class MatTreeNodeDef<T> extends CdkTreeNodeDef<T> {\n @Input('matTreeNode') data: T;\n}\n\n/**\n * Wrapper for the CdkTree nested node with Material design styles.\n */\n@Directive({\n selector: 'mat-nested-tree-node',\n exportAs: 'matNestedTreeNode',\n outputs: ['activation', 'expandedChange'],\n providers: [\n {provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode},\n {provide: CdkTreeNode, useExisting: MatNestedTreeNode},\n {provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode},\n ],\n host: {\n 'class': 'mat-nested-tree-node',\n },\n})\nexport class MatNestedTreeNode<T, K = T>\n extends CdkNestedTreeNode<T, K>\n implements AfterContentInit, OnDestroy, OnInit\n{\n @Input('matNestedTreeNode') node: T;\n\n /**\n * Whether the node is disabled.\n *\n * @deprecated This is an alias for `isDisabled`.\n * @breaking-change 21.0.0 Remove this input\n */\n @Input({transform: booleanAttribute})\n get disabled(): boolean {\n return this.isDisabled;\n }\n set disabled(value: boolean) {\n this.isDisabled = value;\n }\n\n /** Tabindex of the node. */\n @Input({\n transform: (value: unknown) => (value == null ? 0 : numberAttribute(value)),\n })\n get tabIndex(): number {\n return this.isDisabled ? -1 : this._tabIndex;\n }\n set tabIndex(value: number) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndex = value;\n }\n private _tabIndex: number;\n\n // This is a workaround for https://github.com/angular/angular/issues/19145\n // In aot mode, the lifecycle hooks from parent class are not called.\n // TODO(tinayuangao): Remove when the angular issue #19145 is fixed\n override ngOnInit() {\n super.ngOnInit();\n }\n\n override ngAfterContentInit() {\n super.ngAfterContentInit();\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\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.dev/license\n */\nimport {CdkTreeNodePadding} from '@angular/cdk/tree';\nimport {Directive, Input, numberAttribute} from '@angular/core';\n\n/**\n * Wrapper for the CdkTree padding with Material design styles.\n */\n@Directive({\n selector: '[matTreeNodePadding]',\n providers: [{provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding}],\n})\nexport class MatTreeNodePadding<T, K = T> extends CdkTreeNodePadding<T, K> {\n /** The level of depth of the tree node. The padding will be `level * indent` pixels. */\n @Input({alias: 'matTreeNodePadding', transform: numberAttribute})\n override get level(): number {\n return this._level;\n }\n override set level(value: number) {\n this._setLevelInput(value);\n }\n\n /** The indent for each level. Default number 40px from material design menu sub-menu spec. */\n @Input('matTreeNodePaddingIndent')\n override get indent(): number | string {\n return this._indent;\n }\n override set indent(indent: number | string) {\n this._setIndentInput(indent);\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.dev/license\n */\nimport {CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeOutlet} from '@angular/cdk/tree';\nimport {Directive, ViewContainerRef, inject} from '@angular/core';\n\n/**\n * Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place children dataNodes\n * inside the outlet.\n */\n@Directive({\n selector: '[matTreeNodeOutlet]',\n providers: [\n {\n provide: CdkTreeNodeOutlet,\n useExisting: MatTreeNodeOutlet,\n },\n ],\n})\nexport class MatTreeNodeOutlet implements CdkTreeNodeOutlet {\n viewContainer = inject(ViewContainerRef);\n _node = inject(CDK_TREE_NODE_OUTLET_NODE, {optional: true});\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.dev/license\n */\n\nimport {CdkTree} from '@angular/cdk/tree';\nimport {ChangeDetectionStrategy, Component, ViewChild, ViewEncapsulation} from '@angular/core';\nimport {MatTreeNodeOutlet} from './outlet';\n\n/**\n * Wrapper for the CdkTable with Material design styles.\n */\n@Component({\n selector: 'mat-tree',\n exportAs: 'matTree',\n template: `<ng-container matTreeNodeOutlet></ng-container>`,\n host: {\n 'class': 'mat-tree',\n },\n styleUrl: 'tree.css',\n encapsulation: ViewEncapsulation.None,\n // See note on CdkTree for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [{provide: CdkTree, useExisting: MatTree}],\n imports: [MatTreeNodeOutlet],\n})\nexport class MatTree<T, K = T> extends CdkTree<T, K> {\n // Outlets within the tree's template where the dataNodes will be inserted.\n // We need an initializer here to avoid a TS error. The value will be set in `ngAfterViewInit`.\n @ViewChild(MatTreeNodeOutlet, {static: true}) override _nodeOutlet: MatTreeNodeOutlet =\n 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.dev/license\n */\n\nimport {CdkTreeNodeToggle} from '@angular/cdk/tree';\nimport {Directive} from '@angular/core';\n\n/**\n * Wrapper for the CdkTree's toggle with Material design styles.\n */\n@Directive({\n selector: '[matTreeNodeToggle]',\n providers: [{provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle}],\n inputs: [{name: 'recursive', alias: 'matTreeNodeToggleRecursive'}],\n})\nexport class MatTreeNodeToggle<T, K = T> extends CdkTreeNodeToggle<T, K> {}\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.dev/license\n */\n\nimport {NgModule} from '@angular/core';\n\nimport {CdkTreeModule} from '@angular/cdk/tree';\nimport {MatCommonModule} from '@angular/material/core';\nimport {MatNestedTreeNode, MatTreeNodeDef, MatTreeNode} from './node';\nimport {MatTree} from './tree';\nimport {MatTreeNodeToggle} from './toggle';\nimport {MatTreeNodeOutlet} from './outlet';\nimport {MatTreeNodePadding} from './padding';\n\nconst MAT_TREE_DIRECTIVES = [\n MatNestedTreeNode,\n MatTreeNodeDef,\n MatTreeNodePadding,\n MatTreeNodeToggle,\n MatTree,\n MatTreeNode,\n MatTreeNodeOutlet,\n];\n\n@NgModule({\n imports: [CdkTreeModule, MatCommonModule, ...MAT_TREE_DIRECTIVES],\n exports: [MatCommonModule, MAT_TREE_DIRECTIVES],\n})\nexport class MatTreeModule {}\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.dev/license\n */\n\nimport {CollectionViewer, DataSource} from '@angular/cdk/collections';\nimport {FlatTreeControl, TreeControl} from '@angular/cdk/tree';\nimport {BehaviorSubject, merge, Observable} from 'rxjs';\nimport {map, take} from 'rxjs/operators';\n\n/**\n * Tree flattener to convert a normal type of node to node with children & level information.\n * Transform nested nodes of type `T` to flattened nodes of type `F`.\n *\n * For example, the input data of type `T` is nested, and contains its children data:\n * SomeNode: {\n * key: 'Fruits',\n * children: [\n * NodeOne: {\n * key: 'Apple',\n * },\n * NodeTwo: {\n * key: 'Pear',\n * }\n * ]\n * }\n * After flattener flatten the tree, the structure will become\n * SomeNode: {\n * key: 'Fruits',\n * expandable: true,\n * level: 1\n * },\n * NodeOne: {\n * key: 'Apple',\n * expandable: false,\n * level: 2\n * },\n * NodeTwo: {\n * key: 'Pear',\n * expandable: false,\n * level: 2\n * }\n * and the output flattened type is `F` with additional information.\n *\n * @deprecated Use MatTree#childrenAccessor and MatTreeNode#isExpandable\n * instead. To be removed in a future version.\n * @breaking-change 21.0.0\n */\nexport class MatTreeFlattener<T, F, K = F> {\n constructor(\n public transformFunction: (node: T, level: number) => F,\n public getLevel: (node: F) => number,\n public isExpandable: (node: F) => boolean,\n public getChildren: (node: T) => Observable<T[]> | T[] | undefined | null,\n ) {}\n\n _flattenNode(node: T, level: number, resultNodes: F[], parentMap: boolean[]): F[] {\n const flatNode = this.transformFunction(node, level);\n resultNodes.push(flatNode);\n\n if (this.isExpandable(flatNode)) {\n const childrenNodes = this.getChildren(node);\n if (childrenNodes) {\n if (Array.isArray(childrenNodes)) {\n this._flattenChildren(childrenNodes, level, resultNodes, parentMap);\n } else {\n childrenNodes.pipe(take(1)).subscribe(children => {\n this._flattenChildren(children, level, resultNodes, parentMap);\n });\n }\n }\n }\n return resultNodes;\n }\n\n _flattenChildren(children: T[], level: number, resultNodes: F[], parentMap: boolean[]): void {\n children.forEach((child, index) => {\n let childParentMap: boolean[] = parentMap.slice();\n childParentMap.push(index != children.length - 1);\n this._flattenNode(child, level + 1, resultNodes, childParentMap);\n });\n }\n\n /**\n * Flatten a list of node type T to flattened version of node F.\n * Please note that type T may be nested, and the length of `structuredData` may be different\n * from that of returned list `F[]`.\n */\n flattenNodes(structuredData: T[]): F[] {\n let resultNodes: F[] = [];\n structuredData.forEach(node => this._flattenNode(node, 0, resultNodes, []));\n return resultNodes;\n }\n\n /**\n * Expand flattened node with current expansion status.\n * The returned list may have different length.\n */\n expandFlattenedNodes(nodes: F[], treeControl: TreeControl<F, K>): F[] {\n let results: F[] = [];\n let currentExpand: boolean[] = [];\n currentExpand[0] = true;\n\n nodes.forEach(node => {\n let expand = true;\n for (let i = 0; i <= this.getLevel(node); i++) {\n expand = expand && currentExpand[i];\n }\n if (expand) {\n results.push(node);\n }\n if (this.isExpandable(node)) {\n currentExpand[this.getLevel(node) + 1] = treeControl.isExpanded(node);\n }\n });\n return results;\n }\n}\n\n/**\n * Data source for flat tree.\n * The data source need to handle expansion/collapsion of the tree node and change the data feed\n * to `MatTree`.\n * The nested tree nodes of type `T` are flattened through `MatTreeFlattener`, and converted\n * to type `F` for `MatTree` to consume.\n *\n * @deprecated Use one of levelAccessor or childrenAccessor instead. To be removed in a future\n * version.\n * @breaking-change 21.0.0\n */\nexport class MatTreeFlatDataSource<T, F, K = F> extends DataSource<F> {\n private readonly _flattenedData = new BehaviorSubject<F[]>([]);\n private readonly _expandedData = new BehaviorSubject<F[]>([]);\n\n get data() {\n return this._data.value;\n }\n set data(value: T[]) {\n this._data.next(value);\n this._flattenedData.next(this._treeFlattener.flattenNodes(this.data));\n this._treeControl.dataNodes = this._flattenedData.value;\n }\n private readonly _data = new BehaviorSubject<T[]>([]);\n\n constructor(\n private _treeControl: FlatTreeControl<F, K>,\n private _treeFlattener: MatTreeFlattener<T, F, K>,\n initialData?: T[],\n ) {\n super();\n\n if (initialData) {\n // Assign the data through the constructor to ensure that all of the logic is executed.\n this.data = initialData;\n }\n }\n\n connect(collectionViewer: CollectionViewer): Observable<F[]> {\n return merge(\n collectionViewer.viewChange,\n this._treeControl.expansionModel.changed,\n this._flattenedData,\n ).pipe(\n map(() => {\n this._expandedData.next(\n this._treeFlattener.expandFlattenedNodes(this._flattenedData.value, this._treeControl),\n );\n return this._expandedData.value;\n }),\n );\n }\n\n disconnect() {\n // no op\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.dev/license\n */\n\nimport {CollectionViewer, DataSource} from '@angular/cdk/collections';\nimport {BehaviorSubject, merge, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * Data source for nested tree.\n *\n * The data source for nested tree doesn't have to consider node flattener, or the way to expand\n * or collapse. The expansion/collapsion will be handled by TreeControl and each non-leaf node.\n */\nexport class MatTreeNestedDataSource<T> extends DataSource<T> {\n /**\n * Data for the nested tree\n */\n get data() {\n return this._data.value;\n }\n set data(value: T[]) {\n this._data.next(value);\n }\n private readonly _data = new BehaviorSubject<T[]>([]);\n\n connect(collectionViewer: CollectionViewer): Observable<T[]> {\n return merge(...([collectionViewer.viewChange, this._data] as Observable<unknown>[])).pipe(\n map(() => this.data),\n );\n }\n\n disconnect() {\n // no op\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA2BA;;AAEG;AACH,SAAS,oBAAoB,CAC3B,UAAqC,EAAA;AAErC,IAAA,OAAO,CAAC,CAAE,UAAkB,CAAC,qBAAqB,CAAC;AACrD,CAAC;AAED;;AAEG;AAgBG,MAAO,WAAsB,SAAQ,WAAiB,CAAA;AAC1D;;;;;;;AAOG;AACH,IAAA,IAII,oBAAoB,GAAA;QACtB,OAAO,IAAI,CAAC,qBAAqB,CAAC;KACnC;IACD,IAAI,oBAAoB,CAAC,KAAa,EAAA;;AAEpC,QAAA,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;KACpC;AACO,IAAA,qBAAqB,CAAS;AAEtC;;;;;;;AAOG;IACH,eAAe,GAAG,CAAC,CAAC;IAEV,qBAAqB,GAAA;QAC7B,IAAI,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;YAChD,OAAO,IAAI,CAAC,oBAAoB,CAAC;SAClC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;AAED;;;;;AAKG;AACH,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IACD,IAAI,QAAQ,CAAC,KAAc,EAAA;AACzB,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;KACzB;AAID,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AAER,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,EAAE,EAAC,QAAQ,EAAE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,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CACvF,CAAC;AACF,YAAA,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;SACjC,CAAC,CACH,CAAC;KACH;IAED,UAAU,GAAA;;KAET;AACF;;ACtKD;;;;;AAKG;AACG,MAAO,uBAA2B,SAAQ,UAAa,CAAA;AAC3D;;AAEG;AACH,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;KACzB;IACD,IAAI,IAAI,CAAC,KAAU,EAAA;AACjB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACxB;AACgB,IAAA,KAAK,GAAG,IAAI,eAAe,CAAM,EAAE,CAAC,CAAC;AAEtD,IAAA,OAAO,CAAC,gBAAkC,EAAA;QACxC,OAAO,KAAK,CAAC,GAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAA2B,CAAC,CAAC,IAAI,CACxF,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CACrB,CAAC;KACH;IAED,UAAU,GAAA;;KAET;AACF;;ACvCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"tree.mjs","sources":["../../../../../../src/material/tree/node.ts","../../../../../../src/material/tree/padding.ts","../../../../../../src/material/tree/outlet.ts","../../../../../../src/material/tree/tree.ts","../../../../../../src/material/tree/toggle.ts","../../../../../../src/material/tree/tree-module.ts","../../../../../../src/material/tree/data-source/flat-data-source.ts","../../../../../../src/material/tree/data-source/nested-data-source.ts","../../../../../../src/material/tree/tree_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.dev/license\n */\n\nimport {\n CDK_TREE_NODE_OUTLET_NODE,\n CdkNestedTreeNode,\n CdkTreeNode,\n CdkTreeNodeDef,\n} from '@angular/cdk/tree';\nimport {\n AfterContentInit,\n Directive,\n Input,\n OnDestroy,\n OnInit,\n booleanAttribute,\n numberAttribute,\n inject,\n HostAttributeToken,\n} from '@angular/core';\nimport {NoopTreeKeyManager, TreeKeyManagerItem, TreeKeyManagerStrategy} from '@angular/cdk/a11y';\n\n/**\n * Determinte if argument TreeKeyManager is the NoopTreeKeyManager. This function is safe to use with SSR.\n */\nfunction isNoopTreeKeyManager<T extends TreeKeyManagerItem>(\n keyManager: TreeKeyManagerStrategy<T>,\n): keyManager is NoopTreeKeyManager<T> {\n return !!(keyManager as any)._isNoopTreeKeyManager;\n}\n\n/**\n * Wrapper for the CdkTree node with Material design styles.\n */\n@Directive({\n selector: 'mat-tree-node',\n exportAs: 'matTreeNode',\n outputs: ['activation', 'expandedChange'],\n providers: [{provide: CdkTreeNode, useExisting: MatTreeNode}],\n host: {\n 'class': 'mat-tree-node',\n '[attr.aria-expanded]': '_getAriaExpanded()',\n '[attr.aria-level]': 'level + 1',\n '[attr.aria-posinset]': '_getPositionInSet()',\n '[attr.aria-setsize]': '_getSetSize()',\n '(click)': '_focusItem()',\n '[tabindex]': '_getTabindexAttribute()',\n },\n})\nexport class MatTreeNode<T, K = T> extends CdkTreeNode<T, K> implements OnInit, OnDestroy {\n /**\n * The tabindex of the tree node.\n *\n * @deprecated By default MatTreeNode manages focus using TreeKeyManager instead of tabIndex.\n * Recommend to avoid setting tabIndex directly to prevent TreeKeyManager form getting into\n * an unexpected state. Tabindex to be removed in a future version.\n * @breaking-change 21.0.0 Remove this attribute.\n */\n @Input({\n transform: (value: unknown) => (value == null ? 0 : numberAttribute(value)),\n alias: 'tabIndex',\n })\n get tabIndexInputBinding(): number {\n return this._tabIndexInputBinding;\n }\n set tabIndexInputBinding(value: number) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndexInputBinding = value;\n }\n private _tabIndexInputBinding: number;\n\n /**\n * The default tabindex of the tree node.\n *\n * @deprecated By default MatTreeNode manages focus using TreeKeyManager instead of tabIndex.\n * Recommend to avoid setting tabIndex directly to prevent TreeKeyManager form getting into\n * an unexpected state. Tabindex to be removed in a future version.\n * @breaking-change 21.0.0 Remove this attribute.\n */\n defaultTabIndex = 0;\n\n protected _getTabindexAttribute() {\n if (isNoopTreeKeyManager(this._tree._keyManager)) {\n return this.tabIndexInputBinding;\n }\n return this._tabindex;\n }\n\n /**\n * Whether the component is disabled.\n *\n * @deprecated This is an alias for `isDisabled`.\n * @breaking-change 21.0.0 Remove this input\n */\n @Input({transform: booleanAttribute})\n get disabled(): boolean {\n return this.isDisabled;\n }\n set disabled(value: boolean) {\n this.isDisabled = value;\n }\n\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n\n const tabIndex = inject(new HostAttributeToken('tabindex'), {optional: true});\n this.tabIndexInputBinding = Number(tabIndex) || this.defaultTabIndex;\n }\n\n // This is a workaround for https://github.com/angular/angular/issues/23091\n // In aot mode, the lifecycle hooks from parent class are not called.\n override ngOnInit() {\n super.ngOnInit();\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n }\n}\n\n/**\n * Wrapper for the CdkTree node definition with Material design styles.\n * Captures the node's template and a when predicate that describes when this node should be used.\n */\n@Directive({\n selector: '[matTreeNodeDef]',\n inputs: [{name: 'when', alias: 'matTreeNodeDefWhen'}],\n providers: [{provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef}],\n})\nexport class MatTreeNodeDef<T> extends CdkTreeNodeDef<T> {\n @Input('matTreeNode') data: T;\n}\n\n/**\n * Wrapper for the CdkTree nested node with Material design styles.\n */\n@Directive({\n selector: 'mat-nested-tree-node',\n exportAs: 'matNestedTreeNode',\n outputs: ['activation', 'expandedChange'],\n providers: [\n {provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode},\n {provide: CdkTreeNode, useExisting: MatNestedTreeNode},\n {provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode},\n ],\n host: {\n 'class': 'mat-nested-tree-node',\n },\n})\nexport class MatNestedTreeNode<T, K = T>\n extends CdkNestedTreeNode<T, K>\n implements AfterContentInit, OnDestroy, OnInit\n{\n @Input('matNestedTreeNode') node: T;\n\n /**\n * Whether the node is disabled.\n *\n * @deprecated This is an alias for `isDisabled`.\n * @breaking-change 21.0.0 Remove this input\n */\n @Input({transform: booleanAttribute})\n get disabled(): boolean {\n return this.isDisabled;\n }\n set disabled(value: boolean) {\n this.isDisabled = value;\n }\n\n /** Tabindex of the node. */\n @Input({\n transform: (value: unknown) => (value == null ? 0 : numberAttribute(value)),\n })\n get tabIndex(): number {\n return this.isDisabled ? -1 : this._tabIndex;\n }\n set tabIndex(value: number) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndex = value;\n }\n private _tabIndex: number;\n\n // This is a workaround for https://github.com/angular/angular/issues/19145\n // In aot mode, the lifecycle hooks from parent class are not called.\n // TODO(tinayuangao): Remove when the angular issue #19145 is fixed\n override ngOnInit() {\n super.ngOnInit();\n }\n\n override ngAfterContentInit() {\n super.ngAfterContentInit();\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\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.dev/license\n */\nimport {CdkTreeNodePadding} from '@angular/cdk/tree';\nimport {Directive, Input, numberAttribute} from '@angular/core';\n\n/**\n * Wrapper for the CdkTree padding with Material design styles.\n */\n@Directive({\n selector: '[matTreeNodePadding]',\n providers: [{provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding}],\n})\nexport class MatTreeNodePadding<T, K = T> extends CdkTreeNodePadding<T, K> {\n /** The level of depth of the tree node. The padding will be `level * indent` pixels. */\n @Input({alias: 'matTreeNodePadding', transform: numberAttribute})\n override get level(): number {\n return this._level;\n }\n override set level(value: number) {\n this._setLevelInput(value);\n }\n\n /** The indent for each level. Default number 40px from material design menu sub-menu spec. */\n @Input('matTreeNodePaddingIndent')\n override get indent(): number | string {\n return this._indent;\n }\n override set indent(indent: number | string) {\n this._setIndentInput(indent);\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.dev/license\n */\nimport {CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeOutlet} from '@angular/cdk/tree';\nimport {Directive, ViewContainerRef, inject} from '@angular/core';\n\n/**\n * Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place children dataNodes\n * inside the outlet.\n */\n@Directive({\n selector: '[matTreeNodeOutlet]',\n providers: [\n {\n provide: CdkTreeNodeOutlet,\n useExisting: MatTreeNodeOutlet,\n },\n ],\n})\nexport class MatTreeNodeOutlet implements CdkTreeNodeOutlet {\n viewContainer = inject(ViewContainerRef);\n _node = inject(CDK_TREE_NODE_OUTLET_NODE, {optional: true});\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.dev/license\n */\n\nimport {CdkTree} from '@angular/cdk/tree';\nimport {ChangeDetectionStrategy, Component, ViewChild, ViewEncapsulation} from '@angular/core';\nimport {MatTreeNodeOutlet} from './outlet';\n\n/**\n * Wrapper for the CdkTable with Material design styles.\n */\n@Component({\n selector: 'mat-tree',\n exportAs: 'matTree',\n template: `<ng-container matTreeNodeOutlet></ng-container>`,\n host: {\n 'class': 'mat-tree',\n },\n styleUrl: 'tree.css',\n encapsulation: ViewEncapsulation.None,\n // See note on CdkTree for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [{provide: CdkTree, useExisting: MatTree}],\n imports: [MatTreeNodeOutlet],\n})\nexport class MatTree<T, K = T> extends CdkTree<T, K> {\n // Outlets within the tree's template where the dataNodes will be inserted.\n // We need an initializer here to avoid a TS error. The value will be set in `ngAfterViewInit`.\n @ViewChild(MatTreeNodeOutlet, {static: true}) override _nodeOutlet: MatTreeNodeOutlet =\n 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.dev/license\n */\n\nimport {CdkTreeNodeToggle} from '@angular/cdk/tree';\nimport {Directive} from '@angular/core';\n\n/**\n * Wrapper for the CdkTree's toggle with Material design styles.\n */\n@Directive({\n selector: '[matTreeNodeToggle]',\n providers: [{provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle}],\n inputs: [{name: 'recursive', alias: 'matTreeNodeToggleRecursive'}],\n})\nexport class MatTreeNodeToggle<T, K = T> extends CdkTreeNodeToggle<T, K> {}\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.dev/license\n */\n\nimport {NgModule} from '@angular/core';\n\nimport {CdkTreeModule} from '@angular/cdk/tree';\nimport {MatCommonModule} from '@angular/material/core';\nimport {MatNestedTreeNode, MatTreeNodeDef, MatTreeNode} from './node';\nimport {MatTree} from './tree';\nimport {MatTreeNodeToggle} from './toggle';\nimport {MatTreeNodeOutlet} from './outlet';\nimport {MatTreeNodePadding} from './padding';\n\nconst MAT_TREE_DIRECTIVES = [\n MatNestedTreeNode,\n MatTreeNodeDef,\n MatTreeNodePadding,\n MatTreeNodeToggle,\n MatTree,\n MatTreeNode,\n MatTreeNodeOutlet,\n];\n\n@NgModule({\n imports: [CdkTreeModule, MatCommonModule, ...MAT_TREE_DIRECTIVES],\n exports: [MatCommonModule, MAT_TREE_DIRECTIVES],\n})\nexport class MatTreeModule {}\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.dev/license\n */\n\nimport {CollectionViewer, DataSource} from '@angular/cdk/collections';\nimport {FlatTreeControl, TreeControl} from '@angular/cdk/tree';\nimport {BehaviorSubject, merge, Observable} from 'rxjs';\nimport {map, take} from 'rxjs/operators';\n\n/**\n * Tree flattener to convert a normal type of node to node with children & level information.\n * Transform nested nodes of type `T` to flattened nodes of type `F`.\n *\n * For example, the input data of type `T` is nested, and contains its children data:\n * SomeNode: {\n * key: 'Fruits',\n * children: [\n * NodeOne: {\n * key: 'Apple',\n * },\n * NodeTwo: {\n * key: 'Pear',\n * }\n * ]\n * }\n * After flattener flatten the tree, the structure will become\n * SomeNode: {\n * key: 'Fruits',\n * expandable: true,\n * level: 1\n * },\n * NodeOne: {\n * key: 'Apple',\n * expandable: false,\n * level: 2\n * },\n * NodeTwo: {\n * key: 'Pear',\n * expandable: false,\n * level: 2\n * }\n * and the output flattened type is `F` with additional information.\n *\n * @deprecated Use MatTree#childrenAccessor and MatTreeNode#isExpandable\n * instead. To be removed in a future version.\n * @breaking-change 21.0.0\n */\nexport class MatTreeFlattener<T, F, K = F> {\n constructor(\n public transformFunction: (node: T, level: number) => F,\n public getLevel: (node: F) => number,\n public isExpandable: (node: F) => boolean,\n public getChildren: (node: T) => Observable<T[]> | T[] | undefined | null,\n ) {}\n\n _flattenNode(node: T, level: number, resultNodes: F[], parentMap: boolean[]): F[] {\n const flatNode = this.transformFunction(node, level);\n resultNodes.push(flatNode);\n\n if (this.isExpandable(flatNode)) {\n const childrenNodes = this.getChildren(node);\n if (childrenNodes) {\n if (Array.isArray(childrenNodes)) {\n this._flattenChildren(childrenNodes, level, resultNodes, parentMap);\n } else {\n childrenNodes.pipe(take(1)).subscribe(children => {\n this._flattenChildren(children, level, resultNodes, parentMap);\n });\n }\n }\n }\n return resultNodes;\n }\n\n _flattenChildren(children: T[], level: number, resultNodes: F[], parentMap: boolean[]): void {\n children.forEach((child, index) => {\n let childParentMap: boolean[] = parentMap.slice();\n childParentMap.push(index != children.length - 1);\n this._flattenNode(child, level + 1, resultNodes, childParentMap);\n });\n }\n\n /**\n * Flatten a list of node type T to flattened version of node F.\n * Please note that type T may be nested, and the length of `structuredData` may be different\n * from that of returned list `F[]`.\n */\n flattenNodes(structuredData: T[]): F[] {\n let resultNodes: F[] = [];\n structuredData.forEach(node => this._flattenNode(node, 0, resultNodes, []));\n return resultNodes;\n }\n\n /**\n * Expand flattened node with current expansion status.\n * The returned list may have different length.\n */\n expandFlattenedNodes(nodes: F[], treeControl: TreeControl<F, K>): F[] {\n let results: F[] = [];\n let currentExpand: boolean[] = [];\n currentExpand[0] = true;\n\n nodes.forEach(node => {\n let expand = true;\n for (let i = 0; i <= this.getLevel(node); i++) {\n expand = expand && currentExpand[i];\n }\n if (expand) {\n results.push(node);\n }\n if (this.isExpandable(node)) {\n currentExpand[this.getLevel(node) + 1] = treeControl.isExpanded(node);\n }\n });\n return results;\n }\n}\n\n/**\n * Data source for flat tree.\n * The data source need to handle expansion/collapsion of the tree node and change the data feed\n * to `MatTree`.\n * The nested tree nodes of type `T` are flattened through `MatTreeFlattener`, and converted\n * to type `F` for `MatTree` to consume.\n *\n * @deprecated Use one of levelAccessor or childrenAccessor instead. To be removed in a future\n * version.\n * @breaking-change 21.0.0\n */\nexport class MatTreeFlatDataSource<T, F, K = F> extends DataSource<F> {\n private readonly _flattenedData = new BehaviorSubject<F[]>([]);\n private readonly _expandedData = new BehaviorSubject<F[]>([]);\n\n get data() {\n return this._data.value;\n }\n set data(value: T[]) {\n this._data.next(value);\n this._flattenedData.next(this._treeFlattener.flattenNodes(this.data));\n this._treeControl.dataNodes = this._flattenedData.value;\n }\n private readonly _data = new BehaviorSubject<T[]>([]);\n\n constructor(\n private _treeControl: FlatTreeControl<F, K>,\n private _treeFlattener: MatTreeFlattener<T, F, K>,\n initialData?: T[],\n ) {\n super();\n\n if (initialData) {\n // Assign the data through the constructor to ensure that all of the logic is executed.\n this.data = initialData;\n }\n }\n\n connect(collectionViewer: CollectionViewer): Observable<F[]> {\n return merge(\n collectionViewer.viewChange,\n this._treeControl.expansionModel.changed,\n this._flattenedData,\n ).pipe(\n map(() => {\n this._expandedData.next(\n this._treeFlattener.expandFlattenedNodes(this._flattenedData.value, this._treeControl),\n );\n return this._expandedData.value;\n }),\n );\n }\n\n disconnect() {\n // no op\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.dev/license\n */\n\nimport {CollectionViewer, DataSource} from '@angular/cdk/collections';\nimport {BehaviorSubject, merge, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * Data source for nested tree.\n *\n * The data source for nested tree doesn't have to consider node flattener, or the way to expand\n * or collapse. The expansion/collapsion will be handled by TreeControl and each non-leaf node.\n */\nexport class MatTreeNestedDataSource<T> extends DataSource<T> {\n /**\n * Data for the nested tree\n */\n get data() {\n return this._data.value;\n }\n set data(value: T[]) {\n this._data.next(value);\n }\n private readonly _data = new BehaviorSubject<T[]>([]);\n\n connect(collectionViewer: CollectionViewer): Observable<T[]> {\n return merge(...([collectionViewer.viewChange, this._data] as Observable<unknown>[])).pipe(\n map(() => this.data),\n );\n }\n\n disconnect() {\n // no op\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA2BA;;AAEG;AACH,SAAS,oBAAoB,CAC3B,UAAqC,EAAA;AAErC,IAAA,OAAO,CAAC,CAAE,UAAkB,CAAC,qBAAqB,CAAC;AACrD,CAAC;AAED;;AAEG;AAgBG,MAAO,WAAsB,SAAQ,WAAiB,CAAA;AAC1D;;;;;;;AAOG;AACH,IAAA,IAII,oBAAoB,GAAA;QACtB,OAAO,IAAI,CAAC,qBAAqB,CAAC;KACnC;IACD,IAAI,oBAAoB,CAAC,KAAa,EAAA;;AAEpC,QAAA,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;KACpC;AACO,IAAA,qBAAqB,CAAS;AAEtC;;;;;;;AAOG;IACH,eAAe,GAAG,CAAC,CAAC;IAEV,qBAAqB,GAAA;QAC7B,IAAI,oBAAoB,CAAC,IAAI,CA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ACvCD;;AAEG;;;;"}
|
package/form-field/index.d.ts
CHANGED
|
@@ -150,10 +150,10 @@ export declare class MatFormField implements FloatingLabelParent, AfterContentIn
|
|
|
150
150
|
private _hideRequiredMarker;
|
|
151
151
|
/**
|
|
152
152
|
* Theme color of the form field. This API is supported in M2 themes only, it
|
|
153
|
-
* has no effect in M3 themes.
|
|
153
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/form-field/styling.
|
|
154
154
|
*
|
|
155
155
|
* For information on applying color variants in M3, see
|
|
156
|
-
* https://material.angular.io/guide/theming#
|
|
156
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
157
157
|
*/
|
|
158
158
|
color: ThemePalette;
|
|
159
159
|
/** Whether the label should always float or float as the user types. */
|
|
@@ -376,10 +376,10 @@ export declare interface MatFormFieldDefaultOptions {
|
|
|
376
376
|
appearance?: MatFormFieldAppearance;
|
|
377
377
|
/**
|
|
378
378
|
* Default theme color of the form field. This API is supported in M2 themes only, it has no
|
|
379
|
-
* effect in M3 themes.
|
|
379
|
+
* effect in M3 themes. For color customization in M3, see https://material.angular.io/components/form-field/styling.
|
|
380
380
|
*
|
|
381
381
|
* For information on applying color variants in M3, see
|
|
382
|
-
* https://material.angular.io/guide/theming#
|
|
382
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
383
383
|
*/
|
|
384
384
|
color?: ThemePalette;
|
|
385
385
|
/** Whether the required marker should be hidden by default. */
|
package/icon/index.d.ts
CHANGED
|
@@ -130,10 +130,10 @@ export declare class MatIcon implements OnInit, AfterViewChecked, OnDestroy {
|
|
|
130
130
|
private _defaultColor;
|
|
131
131
|
/**
|
|
132
132
|
* Theme color of the icon. This API is supported in M2 themes only, it
|
|
133
|
-
* has no effect in M3 themes.
|
|
133
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/icon/styling.
|
|
134
134
|
*
|
|
135
135
|
* For information on applying color variants in M3, see
|
|
136
|
-
* https://material.angular.io/guide/theming#
|
|
136
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
137
137
|
*/
|
|
138
138
|
get color(): string | null | undefined;
|
|
139
139
|
set color(value: string | null | undefined);
|
|
@@ -215,10 +215,10 @@ export declare class MatIcon implements OnInit, AfterViewChecked, OnDestroy {
|
|
|
215
215
|
export declare interface MatIconDefaultOptions {
|
|
216
216
|
/**
|
|
217
217
|
* Theme color of the icon. This API is supported in M2 themes only, it
|
|
218
|
-
* has no effect in M3 themes.
|
|
218
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/icon/styling.
|
|
219
219
|
*
|
|
220
220
|
* For information on applying color variants in M3, see
|
|
221
|
-
* https://material.angular.io/guide/theming#
|
|
221
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
222
222
|
*/
|
|
223
223
|
color?: ThemePalette;
|
|
224
224
|
/** Font set that the icon is a part of. */
|
package/list/index.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ declare abstract class MatListBase {
|
|
|
133
133
|
|
|
134
134
|
/** Object that can be used to configure the default options for the list module. */
|
|
135
135
|
export declare interface MatListConfig {
|
|
136
|
-
/**
|
|
136
|
+
/** Whether icon indicators should be hidden for single-selection. */
|
|
137
137
|
hideSingleSelectionIndicator?: boolean;
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -356,10 +356,11 @@ export declare class MatListOption extends MatListItemBase implements ListOption
|
|
|
356
356
|
set checkboxPosition(value: MatListOptionTogglePosition);
|
|
357
357
|
/**
|
|
358
358
|
* Theme color of the list option. This sets the color of the checkbox/radio.
|
|
359
|
-
* This API is supported in M2 themes only, it has no effect in M3 themes.
|
|
359
|
+
* This API is supported in M2 themes only, it has no effect in M3 themes. For color customization
|
|
360
|
+
* in M3, see https://material.angular.io/components/list/styling.
|
|
360
361
|
*
|
|
361
362
|
* For information on applying color variants in M3, see
|
|
362
|
-
* https://material.angular.io/guide/theming#
|
|
363
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
363
364
|
*/
|
|
364
365
|
get color(): ThemePalette;
|
|
365
366
|
set color(newValue: ThemePalette);
|
|
@@ -458,10 +459,10 @@ export declare class MatSelectionList extends MatListBase implements SelectionLi
|
|
|
458
459
|
/**
|
|
459
460
|
* Theme color of the selection list. This sets the checkbox color for all
|
|
460
461
|
* list options. This API is supported in M2 themes only, it has no effect in
|
|
461
|
-
* M3 themes.
|
|
462
|
+
* M3 themes. For color customization in M3, see https://material.angular.io/components/list/styling.
|
|
462
463
|
*
|
|
463
464
|
* For information on applying color variants in M3, see
|
|
464
|
-
* https://material.angular.io/guide/theming#
|
|
465
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
465
466
|
*/
|
|
466
467
|
color: ThemePalette;
|
|
467
468
|
/**
|
package/menu/index.d.ts
CHANGED
|
@@ -395,7 +395,6 @@ export declare class MatMenuTrigger implements AfterContentInit, OnDestroy {
|
|
|
395
395
|
private _ngZone;
|
|
396
396
|
private _scrollStrategy;
|
|
397
397
|
private _changeDetectorRef;
|
|
398
|
-
private _cleanupTouchstart;
|
|
399
398
|
private _portal;
|
|
400
399
|
private _overlayRef;
|
|
401
400
|
private _menuOpen;
|
|
@@ -413,6 +412,11 @@ export declare class MatMenuTrigger implements AfterContentInit, OnDestroy {
|
|
|
413
412
|
* Used to offset sub-menus to compensate for the padding.
|
|
414
413
|
*/
|
|
415
414
|
private _parentInnerPadding;
|
|
415
|
+
/**
|
|
416
|
+
* Handles touch start events on the trigger.
|
|
417
|
+
* Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
|
|
418
|
+
*/
|
|
419
|
+
private _handleTouchStart;
|
|
416
420
|
_openedBy: Exclude<FocusOrigin, 'program' | null> | undefined;
|
|
417
421
|
/**
|
|
418
422
|
* @deprecated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "19.1.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -353,12 +353,12 @@
|
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
"peerDependencies": {
|
|
356
|
-
"@angular/animations": "^19.0.0
|
|
357
|
-
"@angular/cdk": "19.1.0
|
|
358
|
-
"@angular/core": "^19.0.0
|
|
359
|
-
"@angular/common": "^19.0.0
|
|
360
|
-
"@angular/forms": "^19.0.0
|
|
361
|
-
"@angular/platform-browser": "^19.0.0
|
|
356
|
+
"@angular/animations": "^19.0.0 || ^20.0.0",
|
|
357
|
+
"@angular/cdk": "19.1.0",
|
|
358
|
+
"@angular/core": "^19.0.0 || ^20.0.0",
|
|
359
|
+
"@angular/common": "^19.0.0 || ^20.0.0",
|
|
360
|
+
"@angular/forms": "^19.0.0 || ^20.0.0",
|
|
361
|
+
"@angular/platform-browser": "^19.0.0 || ^20.0.0",
|
|
362
362
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
363
363
|
},
|
|
364
364
|
"dependencies": {
|
package/paginator/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
1
|
import { EventEmitter } from '@angular/core';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
3
|
import * as i1 from '@angular/material/button';
|
|
@@ -53,10 +52,10 @@ export declare class MatPaginator implements OnInit, OnDestroy {
|
|
|
53
52
|
private _initializedStream;
|
|
54
53
|
/**
|
|
55
54
|
* Theme color of the underlying form controls. This API is supported in M2
|
|
56
|
-
* themes only,it has no effect in M3 themes.
|
|
55
|
+
* themes only,it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/paginator/styling.
|
|
57
56
|
*
|
|
58
57
|
* For information on applying color variants in M3, see
|
|
59
|
-
* https://material.angular.io/guide/theming#
|
|
58
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
60
59
|
*/
|
|
61
60
|
color: ThemePalette;
|
|
62
61
|
/** The zero-based page index of the displayed list of items. Defaulted to 0. */
|
|
@@ -89,7 +88,8 @@ export declare class MatPaginator implements OnInit, OnDestroy {
|
|
|
89
88
|
_displayedPageSizeOptions: number[];
|
|
90
89
|
/** Emits when the paginator is initialized. */
|
|
91
90
|
initialized: Observable<void>;
|
|
92
|
-
|
|
91
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
92
|
+
constructor(...args: unknown[]);
|
|
93
93
|
ngOnInit(): void;
|
|
94
94
|
ngOnDestroy(): void;
|
|
95
95
|
/** Advances to the next page if it exists. */
|
|
@@ -134,7 +134,7 @@ export declare class MatPaginator implements OnInit, OnDestroy {
|
|
|
134
134
|
* @param isDisabled Whether the button is disabled.
|
|
135
135
|
*/
|
|
136
136
|
protected _buttonClicked(targetIndex: number, isDisabled: boolean): void;
|
|
137
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginator,
|
|
137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginator, never>;
|
|
138
138
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatPaginator, "mat-paginator", ["matPaginator"], { "color": { "alias": "color"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "selectConfig": { "alias": "selectConfig"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "page": "page"; }, never, never, true, never>;
|
|
139
139
|
static ngAcceptInputType_pageIndex: unknown;
|
|
140
140
|
static ngAcceptInputType_length: unknown;
|
package/progress-bar/index.d.ts
CHANGED
|
@@ -45,10 +45,10 @@ export declare class MatProgressBar implements AfterViewInit, OnDestroy {
|
|
|
45
45
|
_isNoopAnimation: boolean;
|
|
46
46
|
/**
|
|
47
47
|
* Theme color of the progress bar. This API is supported in M2 themes only, it
|
|
48
|
-
* has no effect in M3 themes.
|
|
48
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-bar/styling.
|
|
49
49
|
*
|
|
50
50
|
* For information on applying color variants in M3, see
|
|
51
|
-
* https://material.angular.io/guide/theming#
|
|
51
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
52
52
|
*/
|
|
53
53
|
get color(): string | null | undefined;
|
|
54
54
|
set color(value: string | null | undefined);
|
|
@@ -98,10 +98,10 @@ export declare class MatProgressBar implements AfterViewInit, OnDestroy {
|
|
|
98
98
|
export declare interface MatProgressBarDefaultOptions {
|
|
99
99
|
/**
|
|
100
100
|
* Default theme color of the progress bar. This API is supported in M2 themes only,
|
|
101
|
-
* it has no effect in M3 themes.
|
|
101
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-bar/styling.
|
|
102
102
|
*
|
|
103
103
|
* For information on applying color variants in M3, see
|
|
104
|
-
* https://material.angular.io/guide/theming#
|
|
104
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
105
105
|
*/
|
|
106
106
|
color?: ThemePalette;
|
|
107
107
|
/** Default mode of the progress bar. */
|
|
@@ -27,10 +27,10 @@ export declare class MatProgressSpinner {
|
|
|
27
27
|
_noopAnimations: boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
30
|
-
* has no effect in M3 themes.
|
|
30
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
31
31
|
*
|
|
32
32
|
* For information on applying color variants in M3, see
|
|
33
|
-
* https://material.angular.io/guide/theming#
|
|
33
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
34
34
|
*/
|
|
35
35
|
get color(): string | null | undefined;
|
|
36
36
|
set color(value: string | null | undefined);
|
|
@@ -80,10 +80,10 @@ export declare class MatProgressSpinner {
|
|
|
80
80
|
export declare interface MatProgressSpinnerDefaultOptions {
|
|
81
81
|
/**
|
|
82
82
|
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
83
|
-
* has no effect in M3 themes.
|
|
83
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
84
84
|
*
|
|
85
85
|
* For information on applying color variants in M3, see
|
|
86
|
-
* https://material.angular.io/guide/theming#
|
|
86
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
87
87
|
*/
|
|
88
88
|
color?: ThemePalette;
|
|
89
89
|
/** Diameter of the spinner. */
|
package/radio/index.d.ts
CHANGED
|
@@ -86,10 +86,10 @@ export declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, O
|
|
|
86
86
|
set required(value: boolean);
|
|
87
87
|
/**
|
|
88
88
|
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
89
|
-
* has no effect in M3 themes.
|
|
89
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
90
90
|
*
|
|
91
91
|
* For information on applying color variants in M3, see
|
|
92
|
-
* https://material.angular.io/guide/theming#
|
|
92
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
93
93
|
*/
|
|
94
94
|
get color(): ThemePalette;
|
|
95
95
|
set color(newValue: ThemePalette);
|
|
@@ -179,10 +179,10 @@ export declare class MatRadioChange {
|
|
|
179
179
|
export declare interface MatRadioDefaultOptions {
|
|
180
180
|
/**
|
|
181
181
|
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
182
|
-
* has no effect in M3 themes.
|
|
182
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
183
183
|
*
|
|
184
184
|
* For information on applying color variants in M3, see
|
|
185
|
-
* https://material.angular.io/guide/theming#
|
|
185
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
186
186
|
*/
|
|
187
187
|
color: ThemePalette;
|
|
188
188
|
/** Whether disabled radio buttons should be interactive. */
|
|
@@ -227,10 +227,10 @@ export declare class MatRadioGroup implements AfterContentInit, OnDestroy, Contr
|
|
|
227
227
|
_radios: QueryList<MatRadioButton>;
|
|
228
228
|
/**
|
|
229
229
|
* Theme color of the radio buttons in the group. This API is supported in M2
|
|
230
|
-
* themes only, it has no effect in M3 themes.
|
|
230
|
+
* themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
231
231
|
*
|
|
232
232
|
* For information on applying color variants in M3, see
|
|
233
|
-
* https://material.angular.io/guide/theming#
|
|
233
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
234
234
|
*/
|
|
235
235
|
color: ThemePalette;
|
|
236
236
|
/** Name of the radio button group. All radio buttons inside this group will use this name. */
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~19.1.0
|
|
22
|
+
const fallbackMaterialVersionRange = `~19.1.0`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -34,7 +34,7 @@ function default_1(options) {
|
|
|
34
34
|
// have the same version tag if possible.
|
|
35
35
|
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
36
36
|
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
37
|
-
const angularDependencyVersion = ngCoreVersionTag || `^19.0.0
|
|
37
|
+
const angularDependencyVersion = ngCoreVersionTag || `^19.0.0 || ^20.0.0`;
|
|
38
38
|
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
39
39
|
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
40
40
|
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~19.1.0
|
|
22
|
+
const fallbackMaterialVersionRange = `~19.1.0`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -34,7 +34,7 @@ function default_1(options) {
|
|
|
34
34
|
// have the same version tag if possible.
|
|
35
35
|
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
36
36
|
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
37
|
-
const angularDependencyVersion = ngCoreVersionTag || `^19.0.0
|
|
37
|
+
const angularDependencyVersion = ngCoreVersionTag || `^19.0.0 || ^20.0.0`;
|
|
38
38
|
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
39
39
|
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
40
40
|
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|
package/select/index.d.ts
CHANGED
|
@@ -483,7 +483,7 @@ export declare interface MatSelectConfig {
|
|
|
483
483
|
typeaheadDebounceInterval?: number;
|
|
484
484
|
/** Class or list of classes to be applied to the menu's overlay panel. */
|
|
485
485
|
overlayPanelClass?: string | string[];
|
|
486
|
-
/**
|
|
486
|
+
/** Whether icon indicators should be hidden for single-selection. */
|
|
487
487
|
hideSingleSelectionIndicator?: boolean;
|
|
488
488
|
/**
|
|
489
489
|
* Width of the panel. If set to `auto`, the panel will match the trigger width.
|
package/sidenav/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { AfterContentChecked } from '@angular/core';
|
|
2
1
|
import { AfterContentInit } from '@angular/core';
|
|
3
2
|
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
|
|
5
3
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
6
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
7
5
|
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
@@ -60,7 +58,7 @@ export declare function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
|
|
|
60
58
|
/**
|
|
61
59
|
* This component corresponds to a drawer that can be opened on the drawer container.
|
|
62
60
|
*/
|
|
63
|
-
export declare class MatDrawer implements AfterViewInit,
|
|
61
|
+
export declare class MatDrawer implements AfterViewInit, OnDestroy {
|
|
64
62
|
private _elementRef;
|
|
65
63
|
private _focusTrapFactory;
|
|
66
64
|
private _focusMonitor;
|
|
@@ -72,8 +70,7 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
|
|
|
72
70
|
_container?: MatDrawerContainer | null | undefined;
|
|
73
71
|
private _focusTrap;
|
|
74
72
|
private _elementFocusedBeforeDrawerWasOpened;
|
|
75
|
-
|
|
76
|
-
private _enableAnimations;
|
|
73
|
+
private _eventCleanups;
|
|
77
74
|
/** Whether the view of the component has been attached. */
|
|
78
75
|
private _isAttached;
|
|
79
76
|
/** Anchor node used to restore the drawer to its initial position. */
|
|
@@ -110,11 +107,9 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
|
|
|
110
107
|
/** How the sidenav was opened (keypress, mouse click etc.) */
|
|
111
108
|
private _openedVia;
|
|
112
109
|
/** Emits whenever the drawer has started animating. */
|
|
113
|
-
readonly _animationStarted: Subject<
|
|
110
|
+
readonly _animationStarted: Subject<unknown>;
|
|
114
111
|
/** Emits whenever the drawer is done animating. */
|
|
115
|
-
readonly _animationEnd: Subject<
|
|
116
|
-
/** Current state of the sidenav animation. */
|
|
117
|
-
_animationState: 'open-instant' | 'open' | 'void';
|
|
112
|
+
readonly _animationEnd: Subject<unknown>;
|
|
118
113
|
/** Event emitted when the drawer open state is changed. */
|
|
119
114
|
readonly openedChange: EventEmitter<boolean>;
|
|
120
115
|
/** Event emitted when the drawer has been opened. */
|
|
@@ -163,7 +158,6 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
|
|
|
163
158
|
/** Whether focus is currently within the drawer. */
|
|
164
159
|
private _isFocusWithinDrawer;
|
|
165
160
|
ngAfterViewInit(): void;
|
|
166
|
-
ngAfterContentChecked(): void;
|
|
167
161
|
ngOnDestroy(): void;
|
|
168
162
|
/**
|
|
169
163
|
* Open the drawer.
|
|
@@ -189,6 +183,8 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
|
|
|
189
183
|
* @param focusOrigin Origin to use when restoring focus.
|
|
190
184
|
*/
|
|
191
185
|
private _setOpen;
|
|
186
|
+
/** Toggles whether the drawer is currently animating. */
|
|
187
|
+
private _setIsAnimating;
|
|
192
188
|
_getWidth(): number;
|
|
193
189
|
/** Updates the enabled state of the focus trap. */
|
|
194
190
|
private _updateFocusTrapState;
|
|
@@ -199,6 +195,8 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
|
|
|
199
195
|
* started off as `end` and was changed to `start`.
|
|
200
196
|
*/
|
|
201
197
|
private _updatePositionInParent;
|
|
198
|
+
/** Event handler for animation events. */
|
|
199
|
+
private _handleTransitionEvent;
|
|
202
200
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawer, never>;
|
|
203
201
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawer, "mat-drawer", ["matDrawer"], { "position": { "alias": "position"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "openedStart": "openedStart"; "_closedStream": "closed"; "closedStart": "closedStart"; "onPositionChanged": "positionChanged"; }, never, ["*"], true, never>;
|
|
204
202
|
}
|
|
@@ -206,6 +204,8 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
|
|
|
206
204
|
/**
|
|
207
205
|
* Animations used by the Material drawers.
|
|
208
206
|
* @docs-private
|
|
207
|
+
* @deprecated No longer used, will be removed.
|
|
208
|
+
* @breaking-change 21.0.0
|
|
209
209
|
*/
|
|
210
210
|
export declare const matDrawerAnimations: {
|
|
211
211
|
readonly transformDrawer: AnimationTriggerMetadata;
|
|
@@ -223,6 +223,7 @@ export declare class MatDrawerContainer implements AfterContentInit, DoCheck, On
|
|
|
223
223
|
private _ngZone;
|
|
224
224
|
private _changeDetectorRef;
|
|
225
225
|
private _animationMode;
|
|
226
|
+
_transitionsEnabled: boolean;
|
|
226
227
|
/** All drawers in the container. Includes drawers from inside nested containers. */
|
|
227
228
|
_allDrawers: QueryList<MatDrawer>;
|
|
228
229
|
/** Drawers that belong to this container. */
|
package/slide-toggle/index.d.ts
CHANGED
|
@@ -91,10 +91,10 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
|
|
|
91
91
|
required: boolean;
|
|
92
92
|
/**
|
|
93
93
|
* Theme color of the slide toggle. This API is supported in M2 themes only,
|
|
94
|
-
* it has no effect in M3 themes.
|
|
94
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
|
|
95
95
|
*
|
|
96
96
|
* For information on applying color variants in M3, see
|
|
97
|
-
* https://material.angular.io/guide/theming#
|
|
97
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
98
98
|
*/
|
|
99
99
|
color: string | undefined;
|
|
100
100
|
/** Whether the slide toggle is disabled. */
|
|
@@ -175,10 +175,10 @@ export declare interface MatSlideToggleDefaultOptions {
|
|
|
175
175
|
disableToggleValue?: boolean;
|
|
176
176
|
/**
|
|
177
177
|
* Default theme color of the slide toggle. This API is supported in M2 themes only,
|
|
178
|
-
* it has no effect in M3 themes.
|
|
178
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
|
|
179
179
|
*
|
|
180
180
|
* For information on applying color variants in M3, see
|
|
181
|
-
* https://material.angular.io/guide/theming#
|
|
181
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
182
182
|
*/
|
|
183
183
|
color?: ThemePalette;
|
|
184
184
|
/** Whether to hide the icon inside the slide toggle. */
|
package/slider/index.d.ts
CHANGED
|
@@ -82,10 +82,10 @@ export declare class MatSlider implements AfterViewInit, OnDestroy, _MatSlider {
|
|
|
82
82
|
private _min;
|
|
83
83
|
/**
|
|
84
84
|
* Theme color of the slider. This API is supported in M2 themes only, it
|
|
85
|
-
* has no effect in M3 themes.
|
|
85
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slider/styling.
|
|
86
86
|
*
|
|
87
87
|
* For information on applying color variants in M3, see
|
|
88
|
-
* https://material.angular.io/guide/theming#
|
|
88
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
89
89
|
*/
|
|
90
90
|
color: ThemePalette;
|
|
91
91
|
/** Whether ripples are disabled in the slider. */
|