@angular/cdk-experimental 20.1.2 → 20.2.0-next.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.
Files changed (40) hide show
  1. package/fesm2022/accordion.mjs +25 -25
  2. package/fesm2022/accordion.mjs.map +1 -1
  3. package/fesm2022/cdk-experimental.mjs +1 -1
  4. package/fesm2022/cdk-experimental.mjs.map +1 -1
  5. package/fesm2022/column-resize.mjs +53 -53
  6. package/fesm2022/column-resize.mjs.map +1 -1
  7. package/fesm2022/combobox.mjs +10 -10
  8. package/fesm2022/combobox.mjs.map +1 -1
  9. package/fesm2022/deferred-content.mjs +8 -8
  10. package/fesm2022/deferred-content.mjs.map +1 -1
  11. package/fesm2022/listbox.mjs +26 -26
  12. package/fesm2022/listbox.mjs.map +1 -1
  13. package/fesm2022/popover-edit.mjs +43 -43
  14. package/fesm2022/popover-edit.mjs.map +1 -1
  15. package/fesm2022/radio-group.mjs +20 -20
  16. package/fesm2022/radio-group.mjs.map +1 -1
  17. package/fesm2022/scrolling.mjs +7 -7
  18. package/fesm2022/scrolling.mjs.map +1 -1
  19. package/fesm2022/selection.mjs +19 -19
  20. package/fesm2022/selection.mjs.map +1 -1
  21. package/fesm2022/table-scroll-container.mjs +7 -7
  22. package/fesm2022/table-scroll-container.mjs.map +1 -1
  23. package/fesm2022/{tabs-YS9XXb7X.mjs → tabs-DvjCdS14.mjs} +36 -1
  24. package/fesm2022/tabs-DvjCdS14.mjs.map +1 -0
  25. package/fesm2022/tabs.mjs +38 -37
  26. package/fesm2022/tabs.mjs.map +1 -1
  27. package/fesm2022/tree.mjs +58 -39
  28. package/fesm2022/tree.mjs.map +1 -1
  29. package/fesm2022/ui-patterns.mjs +1 -1
  30. package/{list-selection.d-BBLdeUeF.d.ts → list-selection.d-zyz_XRbe.d.ts} +2 -2
  31. package/listbox/index.d.ts +2 -2
  32. package/{listbox.d-hkdivyCf.d.ts → listbox.d-Ck8-1BdR.d.ts} +1 -1
  33. package/package.json +3 -3
  34. package/radio-group/index.d.ts +2 -2
  35. package/{radio-group.d-CcY7mCC2.d.ts → radio-group.d-B6Ntu9oI.d.ts} +1 -1
  36. package/tabs/index.d.ts +2 -2
  37. package/{tabs.d-C4vwhxZL.d.ts → tabs.d-BGC0Izc3.d.ts} +29 -3
  38. package/tree/index.d.ts +13 -3
  39. package/ui-patterns/index.d.ts +4 -4
  40. package/fesm2022/tabs-YS9XXb7X.mjs.map +0 -1
package/fesm2022/tree.mjs CHANGED
@@ -37,7 +37,19 @@ class TreeItemPattern {
37
37
  /** The tabindex of the item. */
38
38
  tabindex = computed(() => this.tree().focusManager.getItemTabindex(this));
39
39
  /** Whether the item is selected. */
40
- selected = computed(() => this.tree().value().includes(this.value()));
40
+ selected = computed(() => {
41
+ if (this.tree().nav()) {
42
+ return undefined;
43
+ }
44
+ return this.tree().value().includes(this.value());
45
+ });
46
+ /** The current type of this item. */
47
+ current = computed(() => {
48
+ if (!this.tree().nav()) {
49
+ return undefined;
50
+ }
51
+ return this.tree().value().includes(this.value()) ? this.tree().currentType() : undefined;
52
+ });
41
53
  constructor(inputs) {
42
54
  this.inputs = inputs;
43
55
  this.id = inputs.id;
@@ -217,6 +229,8 @@ class TreePattern {
217
229
  });
218
230
  constructor(inputs) {
219
231
  this.inputs = inputs;
232
+ this.nav = inputs.nav;
233
+ this.currentType = inputs.currentType;
220
234
  this.allItems = inputs.allItems;
221
235
  this.focusMode = inputs.focusMode;
222
236
  this.disabled = inputs.disabled;
@@ -225,7 +239,7 @@ class TreePattern {
225
239
  this.wrap = inputs.wrap;
226
240
  this.orientation = inputs.orientation;
227
241
  this.textDirection = inputs.textDirection;
228
- this.multi = inputs.multi;
242
+ this.multi = computed(() => (this.nav() ? false : this.inputs.multi()));
229
243
  this.value = inputs.value;
230
244
  this.selectionMode = inputs.selectionMode;
231
245
  this.typeaheadDelay = inputs.typeaheadDelay;
@@ -438,29 +452,33 @@ function sortDirectives(a, b) {
438
452
  */
439
453
  class CdkTree {
440
454
  /** All CdkTreeItem instances within this tree. */
441
- _unorderedItems = signal(new Set());
455
+ _unorderedItems = signal(new Set(), ...(ngDevMode ? [{ debugName: "_unorderedItems" }] : []));
442
456
  /** All CdkGroup instances within this tree. */
443
- unorderedGroups = signal(new Set());
457
+ unorderedGroups = signal(new Set(), ...(ngDevMode ? [{ debugName: "unorderedGroups" }] : []));
444
458
  /** Orientation of the tree. */
445
- orientation = input('vertical');
459
+ orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
446
460
  /** Whether multi-selection is allowed. */
447
- multi = input(false, { transform: booleanAttribute });
461
+ multi = input(false, ...(ngDevMode ? [{ debugName: "multi", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
448
462
  /** Whether the tree is disabled. */
449
- disabled = input(false, { transform: booleanAttribute });
463
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
450
464
  /** The selection strategy used by the tree. */
451
- selectionMode = input('explicit');
465
+ selectionMode = input('explicit', ...(ngDevMode ? [{ debugName: "selectionMode" }] : []));
452
466
  /** The focus strategy used by the tree. */
453
- focusMode = input('roving');
467
+ focusMode = input('roving', ...(ngDevMode ? [{ debugName: "focusMode" }] : []));
454
468
  /** Whether navigation wraps. */
455
- wrap = input(true, { transform: booleanAttribute });
469
+ wrap = input(true, ...(ngDevMode ? [{ debugName: "wrap", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
456
470
  /** Whether to skip disabled items during navigation. */
457
- skipDisabled = input(true, { transform: booleanAttribute });
471
+ skipDisabled = input(true, ...(ngDevMode ? [{ debugName: "skipDisabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
458
472
  /** Typeahead delay. */
459
- typeaheadDelay = input(0.5);
473
+ typeaheadDelay = input(0.5, ...(ngDevMode ? [{ debugName: "typeaheadDelay" }] : []));
460
474
  /** Selected item values. */
461
- value = model([]);
475
+ value = model([], ...(ngDevMode ? [{ debugName: "value" }] : []));
462
476
  /** Text direction. */
463
477
  textDirection = inject(Directionality).valueSignal;
478
+ /** Whether the tree is in navigation mode. */
479
+ nav = input(false, ...(ngDevMode ? [{ debugName: "nav" }] : []));
480
+ /** The aria-current type. */
481
+ currentType = input('page', ...(ngDevMode ? [{ debugName: "currentType" }] : []));
464
482
  /** The UI pattern for the tree. */
465
483
  pattern = new TreePattern({
466
484
  ...this,
@@ -468,7 +486,7 @@ class CdkTree {
468
486
  activeIndex: signal(0),
469
487
  });
470
488
  /** Whether the tree has received focus yet. */
471
- _hasFocused = signal(false);
489
+ _hasFocused = signal(false, ...(ngDevMode ? [{ debugName: "_hasFocused" }] : []));
472
490
  constructor() {
473
491
  afterRenderEffect(() => {
474
492
  if (!this._hasFocused()) {
@@ -499,10 +517,10 @@ class CdkTree {
499
517
  this._unorderedItems.set(new Set(this._unorderedItems()));
500
518
  }
501
519
  }
502
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTree, deps: [], target: i0.ɵɵFactoryTarget.Directive });
503
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: CdkTree, isStandalone: true, selector: "[cdkTree]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, focusMode: { classPropertyName: "focusMode", publicName: "focusMode", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, skipDisabled: { classPropertyName: "skipDisabled", publicName: "skipDisabled", isSignal: true, isRequired: false, transformFunction: null }, typeaheadDelay: { classPropertyName: "typeaheadDelay", publicName: "typeaheadDelay", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "tree" }, listeners: { "keydown": "pattern.onKeydown($event)", "pointerdown": "pattern.onPointerdown($event)", "focusin": "onFocus()" }, properties: { "attr.aria-orientation": "pattern.orientation()", "attr.aria-multiselectable": "pattern.multi()", "attr.aria-disabled": "pattern.disabled()", "attr.aria-activedescendant": "pattern.activedescendant()", "tabindex": "pattern.tabindex()" }, classAttribute: "cdk-tree" }, exportAs: ["cdkTree"], ngImport: i0 });
520
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTree, deps: [], target: i0.ɵɵFactoryTarget.Directive });
521
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.0", type: CdkTree, isStandalone: true, selector: "[cdkTree]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, focusMode: { classPropertyName: "focusMode", publicName: "focusMode", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, skipDisabled: { classPropertyName: "skipDisabled", publicName: "skipDisabled", isSignal: true, isRequired: false, transformFunction: null }, typeaheadDelay: { classPropertyName: "typeaheadDelay", publicName: "typeaheadDelay", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, nav: { classPropertyName: "nav", publicName: "nav", isSignal: true, isRequired: false, transformFunction: null }, currentType: { classPropertyName: "currentType", publicName: "currentType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "tree" }, listeners: { "keydown": "pattern.onKeydown($event)", "pointerdown": "pattern.onPointerdown($event)", "focusin": "onFocus()" }, properties: { "attr.aria-orientation": "pattern.orientation()", "attr.aria-multiselectable": "pattern.multi()", "attr.aria-disabled": "pattern.disabled()", "attr.aria-activedescendant": "pattern.activedescendant()", "tabindex": "pattern.tabindex()" }, classAttribute: "cdk-tree" }, exportAs: ["cdkTree"], ngImport: i0 });
504
522
  }
505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTree, decorators: [{
523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTree, decorators: [{
506
524
  type: Directive,
507
525
  args: [{
508
526
  selector: '[cdkTree]',
@@ -536,21 +554,21 @@ class CdkTreeItem {
536
554
  /** The parent CdkGroup, if any. */
537
555
  _parentGroup = inject((CdkTreeItemGroup), { optional: true });
538
556
  /** The top level TreePattern. */
539
- _treePattern = computed(() => this._tree.pattern);
557
+ _treePattern = computed(() => this._tree.pattern, ...(ngDevMode ? [{ debugName: "_treePattern" }] : []));
540
558
  /** The parent TreeItemPattern. */
541
- _parentPattern = computed(() => this._treeItem?.pattern ?? this._treePattern());
559
+ _parentPattern = computed(() => this._treeItem?.pattern ?? this._treePattern(), ...(ngDevMode ? [{ debugName: "_parentPattern" }] : []));
542
560
  /** The host native element. */
543
- element = computed(() => this._elementRef.nativeElement);
561
+ element = computed(() => this._elementRef.nativeElement, ...(ngDevMode ? [{ debugName: "element" }] : []));
544
562
  /** The value of the tree item. */
545
- value = input.required();
563
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
546
564
  /** Whether the tree item is disabled. */
547
- disabled = input(false, { transform: booleanAttribute });
565
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
548
566
  /** Optional label for typeahead. Defaults to the element's textContent. */
549
- label = input();
567
+ label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
550
568
  /** Search term for typeahead. */
551
- searchTerm = computed(() => this.label() ?? this.element().textContent);
569
+ searchTerm = computed(() => this.label() ?? this.element().textContent, ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
552
570
  /** Manual group assignment. */
553
- group = signal(undefined);
571
+ group = signal(undefined, ...(ngDevMode ? [{ debugName: "group" }] : []));
554
572
  /** The UI pattern for this item. */
555
573
  pattern = new TreeItemPattern({
556
574
  ...this,
@@ -582,10 +600,10 @@ class CdkTreeItem {
582
600
  this._tree.deregister(this);
583
601
  this._parentGroup?.deregister(this);
584
602
  }
585
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
586
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: CdkTreeItem, isStandalone: true, selector: "[cdkTreeItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "treeitem" }, properties: { "class.cdk-active": "pattern.active()", "id": "pattern.id()", "attr.aria-expanded": "pattern.expandable() ? pattern.expanded() : null", "attr.aria-selected": "pattern.selected()", "attr.aria-disabled": "pattern.disabled()", "attr.aria-level": "pattern.level()", "attr.aria-owns": "group()?.id", "attr.aria-setsize": "pattern.setsize()", "attr.aria-posinset": "pattern.posinset()", "attr.tabindex": "pattern.tabindex()", "attr.inert": "pattern.visible() ? null : true" }, classAttribute: "cdk-treeitem" }, exportAs: ["cdkTreeItem"], ngImport: i0 });
603
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
604
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.0", type: CdkTreeItem, isStandalone: true, selector: "[cdkTreeItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "treeitem" }, properties: { "class.cdk-active": "pattern.active()", "id": "pattern.id()", "attr.aria-expanded": "pattern.expandable() ? pattern.expanded() : null", "attr.aria-selected": "pattern.selected()", "attr.aria-current": "pattern.current()", "attr.aria-disabled": "pattern.disabled()", "attr.aria-level": "pattern.level()", "attr.aria-owns": "group()?.id", "attr.aria-setsize": "pattern.setsize()", "attr.aria-posinset": "pattern.posinset()", "attr.tabindex": "pattern.tabindex()", "attr.inert": "pattern.visible() ? null : true" }, classAttribute: "cdk-treeitem" }, exportAs: ["cdkTreeItem"], ngImport: i0 });
587
605
  }
588
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTreeItem, decorators: [{
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTreeItem, decorators: [{
589
607
  type: Directive,
590
608
  args: [{
591
609
  selector: '[cdkTreeItem]',
@@ -597,6 +615,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
597
615
  '[id]': 'pattern.id()',
598
616
  '[attr.aria-expanded]': 'pattern.expandable() ? pattern.expanded() : null',
599
617
  '[attr.aria-selected]': 'pattern.selected()',
618
+ '[attr.aria-current]': 'pattern.current()',
600
619
  '[attr.aria-disabled]': 'pattern.disabled()',
601
620
  '[attr.aria-level]': 'pattern.level()',
602
621
  '[attr.aria-owns]': 'group()?.id',
@@ -618,17 +637,17 @@ class CdkTreeItemGroup {
618
637
  /** The top level CdkTree. */
619
638
  _tree = inject((CdkTree));
620
639
  /** All groupable items that are descendants of the group. */
621
- _unorderedItems = signal(new Set());
640
+ _unorderedItems = signal(new Set(), ...(ngDevMode ? [{ debugName: "_unorderedItems" }] : []));
622
641
  /** The host native element. */
623
- element = computed(() => this._elementRef.nativeElement);
642
+ element = computed(() => this._elementRef.nativeElement, ...(ngDevMode ? [{ debugName: "element" }] : []));
624
643
  /** Unique ID for the group. */
625
644
  id = inject(_IdGenerator).getId('cdk-tree-group-');
626
645
  /** Whether the group is visible. */
627
- visible = signal(true);
646
+ visible = signal(true, ...(ngDevMode ? [{ debugName: "visible" }] : []));
628
647
  /** Child items within this group. */
629
- children = computed(() => [...this._unorderedItems()].sort(sortDirectives));
648
+ children = computed(() => [...this._unorderedItems()].sort(sortDirectives), ...(ngDevMode ? [{ debugName: "children" }] : []));
630
649
  /** Identifier for matching the group owner. */
631
- value = input.required();
650
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
632
651
  constructor() {
633
652
  // Connect the group's hidden state to the DeferredContentAware's visibility.
634
653
  afterRenderEffect(() => {
@@ -649,10 +668,10 @@ class CdkTreeItemGroup {
649
668
  this._unorderedItems().delete(child);
650
669
  this._unorderedItems.set(new Set(this._unorderedItems()));
651
670
  }
652
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTreeItemGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
653
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: CdkTreeItemGroup, isStandalone: true, selector: "[cdkTreeItemGroup]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "id": "id", "attr.inert": "visible() ? null : true" }, classAttribute: "cdk-treeitem-group" }, exportAs: ["cdkTreeItemGroup"], hostDirectives: [{ directive: i1.DeferredContentAware, inputs: ["preserveContent", "preserveContent"] }], ngImport: i0 });
671
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTreeItemGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
672
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.0", type: CdkTreeItemGroup, isStandalone: true, selector: "[cdkTreeItemGroup]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "id": "id", "attr.inert": "visible() ? null : true" }, classAttribute: "cdk-treeitem-group" }, exportAs: ["cdkTreeItemGroup"], hostDirectives: [{ directive: i1.DeferredContentAware, inputs: ["preserveContent", "preserveContent"] }], ngImport: i0 });
654
673
  }
655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTreeItemGroup, decorators: [{
674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTreeItemGroup, decorators: [{
656
675
  type: Directive,
657
676
  args: [{
658
677
  selector: '[cdkTreeItemGroup]',
@@ -676,10 +695,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
676
695
  * for a `CdkTreeItemGroup`. This content can be lazily loaded.
677
696
  */
678
697
  class CdkTreeItemGroupContent {
679
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTreeItemGroupContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
680
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0", type: CdkTreeItemGroupContent, isStandalone: true, selector: "ng-template[cdkTreeItemGroupContent]", hostDirectives: [{ directive: i1.DeferredContent }], ngImport: i0 });
698
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTreeItemGroupContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
699
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkTreeItemGroupContent, isStandalone: true, selector: "ng-template[cdkTreeItemGroupContent]", hostDirectives: [{ directive: i1.DeferredContent }], ngImport: i0 });
681
700
  }
682
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: CdkTreeItemGroupContent, decorators: [{
701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkTreeItemGroupContent, decorators: [{
683
702
  type: Directive,
684
703
  args: [{
685
704
  selector: 'ng-template[cdkTreeItemGroupContent]',
@@ -1 +1 @@
1
- {"version":3,"file":"tree.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/tree/tree.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/tree/tree.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 {computed, signal} from '@angular/core';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../behaviors/list-focus/list-focus';\nimport {\n ListNavigation,\n ListNavigationInputs,\n ListNavigationItem,\n} from '../behaviors/list-navigation/list-navigation';\nimport {\n ListSelection,\n ListSelectionInputs,\n ListSelectionItem,\n} from '../behaviors/list-selection/list-selection';\nimport {\n ListTypeahead,\n ListTypeaheadInputs,\n ListTypeaheadItem,\n} from '../behaviors/list-typeahead/list-typeahead';\nimport {ExpansionItem, ExpansionControl, ListExpansion} from '../behaviors/expansion/expansion';\nimport {KeyboardEventManager} from '../behaviors/event-manager/keyboard-event-manager';\nimport {PointerEventManager} from '../behaviors/event-manager/pointer-event-manager';\nimport {ModifierKey as Modifier} from '../behaviors/event-manager/event-manager';\n\n/** Represents the required inputs for a tree item. */\nexport interface TreeItemInputs<V>\n extends ListFocusItem,\n ListNavigationItem,\n ListSelectionItem<V>,\n ListTypeaheadItem {\n /** The parent item. */\n parent: SignalLike<TreeItemPattern<V> | TreePattern<V>>;\n\n /** Whether this item has children. Children can be lazily loaded. */\n hasChildren: SignalLike<boolean>;\n\n /** The children items. */\n children: SignalLike<TreeItemPattern<V>[]>;\n\n /** The tree pattern this item belongs to. */\n tree: SignalLike<TreePattern<V>>;\n}\n\nexport interface TreeItemPattern<V> extends TreeItemInputs<V> {}\n/**\n * Represents an item in a Tree.\n */\nexport class TreeItemPattern<V> implements ExpansionItem {\n /** The unique identifier used by the expansion behavior. */\n readonly expansionId: SignalLike<string>;\n\n /** Controls expansion for child items. */\n readonly expansionManager: ListExpansion;\n\n /** Controls expansion for this item. */\n readonly expansion: ExpansionControl;\n\n /** Whether the item is expandable. It's expandable if children item exist. */\n readonly expandable: SignalLike<boolean>;\n\n /** The level of the current item in a tree. */\n readonly level: SignalLike<number> = computed(() => this.parent().level() + 1);\n\n /** Whether this item is currently expanded. */\n readonly expanded = computed(() => this.expansion.isExpanded());\n\n /** Whether this item is visible. */\n readonly visible = computed(() => this.parent().expanded());\n\n /** The number of items under the same parent at the same level. */\n readonly setsize = computed(() => this.parent().children().length);\n\n /** The position of this item among its siblings (1-based). */\n readonly posinset = computed(() => this.parent().children().indexOf(this) + 1);\n\n /** Whether the item is active. */\n readonly active = computed(() => this.tree().focusManager.activeItem() === this);\n\n /** The tabindex of the item. */\n readonly tabindex = computed(() => this.tree().focusManager.getItemTabindex(this));\n\n /** Whether the item is selected. */\n readonly selected = computed(() => this.tree().value().includes(this.value()));\n\n constructor(readonly inputs: TreeItemInputs<V>) {\n this.id = inputs.id;\n this.value = inputs.value;\n this.element = inputs.element;\n this.disabled = inputs.disabled;\n this.searchTerm = inputs.searchTerm;\n this.expansionId = inputs.id;\n this.tree = inputs.tree;\n this.parent = inputs.parent;\n this.children = inputs.children;\n this.expandable = inputs.hasChildren;\n this.expansion = new ExpansionControl({\n ...inputs,\n expandable: this.expandable,\n expansionId: this.expansionId,\n expansionManager: this.parent().expansionManager,\n });\n this.expansionManager = new ListExpansion({\n ...inputs,\n multiExpandable: () => true,\n // TODO(ok7sai): allow pre-expanded tree items.\n expandedIds: signal([]),\n items: this.children,\n disabled: computed(() => this.tree()?.disabled() ?? false),\n });\n }\n}\n\n/** The selection operations that the tree can perform. */\ninterface SelectOptions {\n toggle?: boolean;\n selectOne?: boolean;\n selectRange?: boolean;\n anchor?: boolean;\n}\n\n/** Represents the required inputs for a tree. */\nexport interface TreeInputs<V>\n extends Omit<\n ListFocusInputs<TreeItemPattern<V>> &\n ListNavigationInputs<TreeItemPattern<V>> &\n ListSelectionInputs<TreeItemPattern<V>, V> &\n ListTypeaheadInputs<TreeItemPattern<V>>,\n 'items'\n > {\n /** All items in the tree, in document order (DFS-like, a flattened list). */\n allItems: SignalLike<TreeItemPattern<V>[]>;\n}\n\nexport interface TreePattern<V> extends TreeInputs<V> {}\n/** Controls the state and interactions of a tree view. */\nexport class TreePattern<V> {\n /** Controls focus for the all visible tree items. */\n readonly focusManager: ListFocus<TreeItemPattern<V>>;\n\n /** Controls navigation for all visible tree items. */\n readonly navigationManager: ListNavigation<TreeItemPattern<V>>;\n\n /** Controls selection for all visible tree items. */\n readonly selectionManager: ListSelection<TreeItemPattern<V>, V>;\n\n /** Controls typeahead for all visible tree items. */\n readonly typeaheadManager: ListTypeahead<TreeItemPattern<V>>;\n\n /** Controls expansion for direct children of the tree root (top-level items). */\n readonly expansionManager: ListExpansion;\n\n /** The root level is 0. */\n readonly level = () => 0;\n\n /** The root is always expanded. */\n readonly expanded = () => true;\n\n /** The tabindex of the tree. */\n readonly tabindex = computed(() => this.focusManager.getListTabindex());\n\n /** The id of the current active item. */\n readonly activedescendant = computed(() => this.focusManager.getActiveDescendant());\n\n /** Whether the tree is performing a range selection. */\n readonly inSelection = signal(false);\n\n /** The direct children of the root (top-level tree items). */\n readonly children = computed(() =>\n this.inputs.allItems().filter(item => item.level() === this.level() + 1),\n );\n\n /** All currently visible tree items. An item is visible if their parent is expanded. */\n readonly visibleItems = computed(() => this.inputs.allItems().filter(item => item.visible()));\n\n /** Whether the tree selection follows focus. */\n readonly followFocus = computed(() => this.inputs.selectionMode() === 'follow');\n\n /** The key for navigating to the previous item. */\n readonly prevKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowUp';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n });\n\n /** The key for navigating to the next item. */\n readonly nextKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowDown';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** The key for collapsing an item or moving to its parent. */\n readonly collapseKey = computed(() => {\n if (this.inputs.orientation() === 'horizontal') {\n return 'ArrowUp';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n });\n\n /** The key for expanding an item or moving to its first child. */\n readonly expandKey = computed(() => {\n if (this.inputs.orientation() === 'horizontal') {\n return 'ArrowDown';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** Represents the space key. Does nothing when the user is actively using typeahead. */\n readonly dynamicSpaceKey = computed(() => (this.typeaheadManager.isTyping() ? '' : ' '));\n\n /** Regular expression to match characters for typeahead. */\n readonly typeaheadRegexp = /^.$/;\n\n /** Uncommitted tree item for selecting a range of tree items. */\n readonly anchorItem = signal<TreeItemPattern<V> | undefined>(undefined);\n\n /**\n * Uncommitted tree item index for selecting a range of tree items.\n *\n * The index is computed in case the tree item position is changed caused by tree expansions.\n */\n readonly anchorIndex = computed(() =>\n this.anchorItem() ? this.visibleItems().indexOf(this.anchorItem()!) : -1,\n );\n\n /** The keydown event manager for the tree. */\n readonly keydown = computed(() => {\n const manager = new KeyboardEventManager();\n\n if (!this.followFocus()) {\n manager\n .on(this.prevKey, () => this.prev())\n .on(this.nextKey, () => this.next())\n .on('Home', () => this.first())\n .on('End', () => this.last())\n .on(this.typeaheadRegexp, e => this.search(e.key));\n }\n\n if (this.followFocus()) {\n manager\n .on(this.prevKey, () => this.prev({selectOne: true}))\n .on(this.nextKey, () => this.next({selectOne: true}))\n .on('Home', () => this.first({selectOne: true}))\n .on('End', () => this.last({selectOne: true}))\n .on(this.typeaheadRegexp, e => this.search(e.key, {selectOne: true}));\n }\n\n if (this.inputs.multi()) {\n manager\n .on(Modifier.Any, 'Shift', () => this.anchorItem.set(this.focusManager.activeItem()))\n .on(Modifier.Shift, this.prevKey, () => this.prev({selectRange: true}))\n .on(Modifier.Shift, this.nextKey, () => this.next({selectRange: true}))\n .on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'Home', () =>\n this.first({selectRange: true, anchor: false}),\n )\n .on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'End', () =>\n this.last({selectRange: true, anchor: false}),\n )\n .on(Modifier.Shift, 'Enter', () =>\n this._updateSelection({selectRange: true, anchor: false}),\n )\n .on(Modifier.Shift, this.dynamicSpaceKey, () =>\n this._updateSelection({selectRange: true, anchor: false}),\n );\n }\n\n if (!this.followFocus() && this.inputs.multi()) {\n manager\n .on(this.dynamicSpaceKey, () => this.selectionManager.toggle())\n .on('Enter', () => this.selectionManager.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'A', () => this.selectionManager.toggleAll());\n }\n\n if (!this.followFocus() && !this.inputs.multi()) {\n manager.on(this.dynamicSpaceKey, () => this.selectionManager.toggleOne());\n manager.on('Enter', () => this.selectionManager.toggleOne());\n }\n\n if (this.inputs.multi() && this.followFocus()) {\n manager\n .on([Modifier.Ctrl, Modifier.Meta], this.prevKey, () => this.prev())\n .on([Modifier.Ctrl, Modifier.Meta], this.nextKey, () => this.next())\n .on([Modifier.Ctrl, Modifier.Meta], ' ', () => this.selectionManager.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'Enter', () => this.selectionManager.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'Home', () => this.first())\n .on([Modifier.Ctrl, Modifier.Meta], 'End', () => this.last())\n .on([Modifier.Ctrl, Modifier.Meta], 'A', () => {\n this.selectionManager.toggleAll();\n this.selectionManager.select(); // Ensure the currect item remains selected.\n });\n }\n\n manager\n .on(this.expandKey, () => this.expand())\n .on(this.collapseKey, () => this.collapse())\n .on(Modifier.Shift, '*', () => this.expandSiblings());\n\n return manager;\n });\n\n /** The pointerdown event manager for the tree. */\n pointerdown = computed(() => {\n const manager = new PointerEventManager();\n\n if (this.multi()) {\n manager.on(Modifier.Shift, e => this.goto(e, {selectRange: true}));\n }\n\n if (!this.multi() && this.followFocus()) {\n return manager.on(e => this.goto(e, {selectOne: true}));\n }\n\n if (!this.multi() && !this.followFocus()) {\n return manager.on(e => this.goto(e, {toggle: true}));\n }\n\n if (this.multi() && this.followFocus()) {\n return manager\n .on(e => this.goto(e, {selectOne: true}))\n .on(Modifier.Ctrl, e => this.goto(e, {toggle: true}));\n }\n\n if (this.multi() && !this.followFocus()) {\n return manager.on(e => this.goto(e, {toggle: true}));\n }\n\n return manager;\n });\n\n constructor(readonly inputs: TreeInputs<V>) {\n this.allItems = inputs.allItems;\n this.focusMode = inputs.focusMode;\n this.disabled = inputs.disabled;\n this.activeIndex = inputs.activeIndex;\n this.skipDisabled = inputs.skipDisabled;\n this.wrap = inputs.wrap;\n this.orientation = inputs.orientation;\n this.textDirection = inputs.textDirection;\n this.multi = inputs.multi;\n this.value = inputs.value;\n this.selectionMode = inputs.selectionMode;\n this.typeaheadDelay = inputs.typeaheadDelay;\n this.focusManager = new ListFocus({\n ...inputs,\n items: this.visibleItems,\n });\n this.navigationManager = new ListNavigation({\n ...inputs,\n wrap: computed(() => this.inputs.wrap() && !this.inSelection()),\n items: this.visibleItems,\n focusManager: this.focusManager,\n });\n this.selectionManager = new ListSelection({\n ...inputs,\n items: this.visibleItems,\n focusManager: this.focusManager,\n });\n this.typeaheadManager = new ListTypeahead({\n ...inputs,\n items: this.visibleItems,\n focusManager: this.focusManager,\n });\n this.expansionManager = new ListExpansion({\n multiExpandable: () => true,\n // TODO(ok7sai): allow pre-expanded tree items.\n expandedIds: signal([]),\n items: this.children,\n disabled: this.disabled,\n });\n }\n\n /**\n * Sets the tree to it's default initial state.\n *\n * Sets the active index of the tree to the first focusable selected tree item if one exists.\n * Otherwise, sets focus to the first focusable tree item.\n */\n setDefaultState() {\n let firstItemIndex: number | undefined;\n\n for (const [index, item] of this.allItems().entries()) {\n if (!item.visible()) continue;\n if (!this.focusManager.isFocusable(item)) continue;\n\n if (firstItemIndex === undefined) {\n firstItemIndex = index;\n }\n\n if (item.selected()) {\n this.activeIndex.set(index);\n return;\n }\n }\n\n if (firstItemIndex !== undefined) {\n this.activeIndex.set(firstItemIndex);\n }\n }\n\n /** Handles keydown events on the tree. */\n onKeydown(event: KeyboardEvent) {\n if (!this.disabled()) {\n this.keydown().handle(event);\n }\n }\n\n /** Handles pointerdown events on the tree. */\n onPointerdown(event: PointerEvent) {\n if (!this.disabled()) {\n this.pointerdown().handle(event);\n }\n }\n\n /** Navigates to the first visible tree item in the tree. */\n first(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.first());\n }\n\n /** Navigates to the last visible tree item in the tree. */\n last(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.last());\n }\n\n /** Navigates to the next visible tree item in the tree. */\n next(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.next());\n }\n\n /** Navigates to the previous visible tree item in the tree. */\n prev(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.prev());\n }\n\n /** Navigates to the given tree item in the tree. */\n goto(event: PointerEvent, opts?: SelectOptions) {\n const item = this._getItem(event);\n this._navigate(opts, () => this.navigationManager.goto(item));\n this.toggleExpansion(item);\n }\n\n /** Handles typeahead search navigation for the tree. */\n search(char: string, opts?: SelectOptions) {\n this._navigate(opts, () => this.typeaheadManager.search(char));\n }\n\n /** Toggles to expand or collapse a tree item. */\n toggleExpansion(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n if (!item || !this.focusManager.isFocusable(item)) return;\n\n if (!item.expandable()) return;\n if (item.expanded()) {\n this.collapse();\n } else {\n item.expansion.open();\n }\n }\n\n /** Expands a tree item. */\n expand(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n if (!item || !this.focusManager.isFocusable(item)) return;\n\n if (item.expandable() && !item.expanded()) {\n item.expansion.open();\n } else if (item.expanded() && item.children().length > 0) {\n const firstChild = item.children()[0];\n if (this.focusManager.isFocusable(firstChild)) {\n this.navigationManager.goto(firstChild);\n }\n }\n }\n\n /** Expands all sibling tree items including itself. */\n expandSiblings(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n const siblings = item.parent()?.children();\n siblings?.forEach(item => this.expand(item));\n }\n\n /** Collapses a tree item. */\n collapse(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n if (!item || !this.focusManager.isFocusable(item)) return;\n\n if (item.expandable() && item.expanded()) {\n item.expansion.close();\n } else if (item.parent() && item.parent() !== this) {\n const parentItem = item.parent();\n if (parentItem instanceof TreeItemPattern && this.focusManager.isFocusable(parentItem)) {\n this.navigationManager.goto(parentItem);\n }\n }\n }\n\n /** Safely performs a navigation operation. */\n private _navigate(opts: SelectOptions = {}, operation: () => boolean) {\n if (opts?.selectRange) {\n this.inSelection.set(true);\n this.selectionManager.rangeStartIndex.set(this.anchorIndex());\n }\n\n const moved = operation();\n\n if (moved) {\n this._updateSelection(opts);\n }\n\n this.inSelection.set(false);\n }\n\n /** Handles updating selection for the tree. */\n private _updateSelection(opts: SelectOptions = {anchor: true}) {\n if (opts.toggle) {\n this.selectionManager.toggle();\n }\n if (opts.selectOne) {\n this.selectionManager.selectOne();\n }\n if (opts.selectRange) {\n this.selectionManager.selectRange();\n }\n if (!opts.anchor) {\n this.anchorItem.set(this.visibleItems()[this.selectionManager.rangeStartIndex()]);\n }\n }\n\n /** Retrieves the TreeItemPattern associated with a DOM event, if any. */\n private _getItem(event: Event): TreeItemPattern<V> | undefined {\n if (!(event.target instanceof HTMLElement)) {\n return;\n }\n const element = event.target.closest('[role=\"treeitem\"]');\n return this.inputs.allItems().find(i => i.element() === element);\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 {\n Directive,\n ElementRef,\n afterRenderEffect,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n signal,\n Signal,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {DeferredContent, DeferredContentAware} from '@angular/cdk-experimental/deferred-content';\nimport {TreeItemPattern, TreePattern} from '../ui-patterns/tree/tree';\n\ninterface HasElement {\n element: Signal<HTMLElement>;\n}\n\n/**\n * Sort directives by their document order.\n */\nfunction sortDirectives(a: HasElement, b: HasElement) {\n return (a.element().compareDocumentPosition(b.element()) & Node.DOCUMENT_POSITION_PRECEDING) > 0\n ? 1\n : -1;\n}\n\n/**\n * A Tree container.\n *\n * Transforms nested lists into an accessible, ARIA-compliant tree structure.\n *\n * ```html\n * <ul cdkTree [(value)]=\"selectedItems\" [multi]=\"true\">\n * <li cdkTreeItem [value]=\"'leaf1'\">Leaf Item 1</li>\n * <li cdkTreeItem [value]=\"'parent1'\">\n * Parent Item 1\n * <ul cdkTreeItemGroup [value]=\"'parent1'\">\n * <ng-template cdkTreeItemGroupContent>\n * <li cdkTreeItem [value]=\"'child1.1'\">Child Item 1.1</li>\n * <li cdkTreeItem [value]=\"'child1.2'\">Child Item 1.2</li>\n * </ng-template>\n * </ul>\n * </li>\n * <li cdkTreeItem [value]=\"'leaf2'\" [disabled]=\"true\">Disabled Leaf Item 2</li>\n * </ul>\n * ```\n */\n@Directive({\n selector: '[cdkTree]',\n exportAs: 'cdkTree',\n host: {\n 'class': 'cdk-tree',\n 'role': 'tree',\n '[attr.aria-orientation]': 'pattern.orientation()',\n '[attr.aria-multiselectable]': 'pattern.multi()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n '[attr.aria-activedescendant]': 'pattern.activedescendant()',\n '[tabindex]': 'pattern.tabindex()',\n '(keydown)': 'pattern.onKeydown($event)',\n '(pointerdown)': 'pattern.onPointerdown($event)',\n '(focusin)': 'onFocus()',\n },\n})\nexport class CdkTree<V> {\n /** All CdkTreeItem instances within this tree. */\n private readonly _unorderedItems = signal(new Set<CdkTreeItem<V>>());\n\n /** All CdkGroup instances within this tree. */\n readonly unorderedGroups = signal(new Set<CdkTreeItemGroup<V>>());\n\n /** Orientation of the tree. */\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n\n /** Whether multi-selection is allowed. */\n readonly multi = input(false, {transform: booleanAttribute});\n\n /** Whether the tree is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The selection strategy used by the tree. */\n readonly selectionMode = input<'explicit' | 'follow'>('explicit');\n\n /** The focus strategy used by the tree. */\n readonly focusMode = input<'roving' | 'activedescendant'>('roving');\n\n /** Whether navigation wraps. */\n readonly wrap = input(true, {transform: booleanAttribute});\n\n /** Whether to skip disabled items during navigation. */\n readonly skipDisabled = input(true, {transform: booleanAttribute});\n\n /** Typeahead delay. */\n readonly typeaheadDelay = input(0.5);\n\n /** Selected item values. */\n readonly value = model<V[]>([]);\n\n /** Text direction. */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** The UI pattern for the tree. */\n readonly pattern: TreePattern<V> = new TreePattern<V>({\n ...this,\n allItems: computed(() =>\n [...this._unorderedItems()].sort(sortDirectives).map(item => item.pattern),\n ),\n activeIndex: signal(0),\n });\n\n /** Whether the tree has received focus yet. */\n private _hasFocused = signal(false);\n\n constructor() {\n afterRenderEffect(() => {\n if (!this._hasFocused()) {\n this.pattern.setDefaultState();\n }\n });\n }\n\n onFocus() {\n this._hasFocused.set(true);\n }\n\n register(child: CdkTreeItemGroup<V> | CdkTreeItem<V>) {\n if (child instanceof CdkTreeItemGroup) {\n this.unorderedGroups().add(child);\n this.unorderedGroups.set(new Set(this.unorderedGroups()));\n }\n\n if (child instanceof CdkTreeItem) {\n this._unorderedItems().add(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n }\n\n deregister(child: CdkTreeItemGroup<V> | CdkTreeItem<V>) {\n if (child instanceof CdkTreeItemGroup) {\n this.unorderedGroups().delete(child);\n this.unorderedGroups.set(new Set(this.unorderedGroups()));\n }\n\n if (child instanceof CdkTreeItem) {\n this._unorderedItems().delete(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n }\n}\n\n/**\n * A selectable and expandable Tree Item in a Tree.\n */\n@Directive({\n selector: '[cdkTreeItem]',\n exportAs: 'cdkTreeItem',\n host: {\n 'class': 'cdk-treeitem',\n '[class.cdk-active]': 'pattern.active()',\n 'role': 'treeitem',\n '[id]': 'pattern.id()',\n '[attr.aria-expanded]': 'pattern.expandable() ? pattern.expanded() : null',\n '[attr.aria-selected]': 'pattern.selected()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n '[attr.aria-level]': 'pattern.level()',\n '[attr.aria-owns]': 'group()?.id',\n '[attr.aria-setsize]': 'pattern.setsize()',\n '[attr.aria-posinset]': 'pattern.posinset()',\n '[attr.tabindex]': 'pattern.tabindex()',\n '[attr.inert]': 'pattern.visible() ? null : true',\n },\n})\nexport class CdkTreeItem<V> implements OnInit, OnDestroy, HasElement {\n /** A reference to the tree item element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A unique identifier for the tree item. */\n private readonly _id = inject(_IdGenerator).getId('cdk-tree-item-');\n\n /** The top level CdkTree. */\n private readonly _tree = inject(CdkTree<V>);\n\n /** The parent CdkTreeItem. */\n private readonly _treeItem = inject(CdkTreeItem<V>, {optional: true, skipSelf: true});\n\n /** The parent CdkGroup, if any. */\n private readonly _parentGroup = inject(CdkTreeItemGroup<V>, {optional: true});\n\n /** The top level TreePattern. */\n private readonly _treePattern = computed(() => this._tree.pattern);\n\n /** The parent TreeItemPattern. */\n private readonly _parentPattern: Signal<TreeItemPattern<V> | TreePattern<V>> = computed(\n () => this._treeItem?.pattern ?? this._treePattern(),\n );\n\n /** The host native element. */\n readonly element = computed(() => this._elementRef.nativeElement);\n\n /** The value of the tree item. */\n readonly value = input.required<V>();\n\n /** Whether the tree item is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Optional label for typeahead. Defaults to the element's textContent. */\n readonly label = input<string>();\n\n /** Search term for typeahead. */\n readonly searchTerm = computed(() => this.label() ?? this.element().textContent);\n\n /** Manual group assignment. */\n readonly group = signal<CdkTreeItemGroup<V> | undefined>(undefined);\n\n /** The UI pattern for this item. */\n readonly pattern: TreeItemPattern<V> = new TreeItemPattern<V>({\n ...this,\n id: () => this._id,\n tree: this._treePattern,\n parent: this._parentPattern,\n children: computed(\n () =>\n this.group()\n ?.children()\n .map(item => (item as CdkTreeItem<V>).pattern) ?? [],\n ),\n hasChildren: computed(() => !!this.group()),\n });\n\n constructor() {\n afterRenderEffect(() => {\n const group = [...this._tree.unorderedGroups()].find(group => group.value() === this.value());\n if (group) {\n this.group.set(group);\n }\n });\n\n // Updates the visibility of the owned group.\n afterRenderEffect(() => {\n this.group()?.visible.set(this.pattern.expanded());\n });\n }\n\n ngOnInit() {\n this._tree.register(this);\n this._parentGroup?.register(this);\n }\n\n ngOnDestroy() {\n this._tree.deregister(this);\n this._parentGroup?.deregister(this);\n }\n}\n\n/**\n * Container that designates content as a group.\n */\n@Directive({\n selector: '[cdkTreeItemGroup]',\n exportAs: 'cdkTreeItemGroup',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n 'class': 'cdk-treeitem-group',\n 'role': 'group',\n '[id]': 'id',\n '[attr.inert]': 'visible() ? null : true',\n },\n})\nexport class CdkTreeItemGroup<V> implements OnInit, OnDestroy, HasElement {\n /** A reference to the group element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** The top level CdkTree. */\n private readonly _tree = inject(CdkTree<V>);\n\n /** All groupable items that are descendants of the group. */\n private readonly _unorderedItems = signal(new Set<CdkTreeItem<V>>());\n\n /** The host native element. */\n readonly element = computed(() => this._elementRef.nativeElement);\n\n /** Unique ID for the group. */\n readonly id = inject(_IdGenerator).getId('cdk-tree-group-');\n\n /** Whether the group is visible. */\n readonly visible = signal(true);\n\n /** Child items within this group. */\n readonly children = computed(() => [...this._unorderedItems()].sort(sortDirectives));\n\n /** Identifier for matching the group owner. */\n readonly value = input.required<V>();\n\n constructor() {\n // Connect the group's hidden state to the DeferredContentAware's visibility.\n afterRenderEffect(() => {\n this._deferredContentAware.contentVisible.set(this.visible());\n });\n }\n\n ngOnInit() {\n this._tree.register(this);\n }\n\n ngOnDestroy() {\n this._tree.deregister(this);\n }\n\n register(child: CdkTreeItem<V>) {\n this._unorderedItems().add(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n\n deregister(child: CdkTreeItem<V>) {\n this._unorderedItems().delete(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n}\n\n/**\n * A structural directive that marks the `ng-template` to be used as the content\n * for a `CdkTreeItemGroup`. This content can be lazily loaded.\n */\n@Directive({\n selector: 'ng-template[cdkTreeItemGroupContent]',\n hostDirectives: [DeferredContent],\n})\nexport class CdkTreeItemGroupContent {}\n"],"names":["Modifier"],"mappings":";;;;;;;;;;;AAmDA;;AAEG;MACU,eAAe,CAAA;AAqCL,IAAA,MAAA;;AAnCZ,IAAA,WAAW;;AAGX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EAAA,CAAA,iBAAA,EAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhB5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,oBAAoB;4BAC/B,MAAM,EAAE,CAAC,iBAAiB,CAAC;AAC5B,yBAAA;AACF,qBAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE,oBAAoB;AAC7B,wBAAA,MAAM,EAAE,OAAO;AACf,wBAAA,MAAM,EAAE,IAAI;AACZ,wBAAA,cAAc,EAAE,yBAAyB;AAC1C,qBAAA;AACF,iBAAA;;AAuDD;;;AAGG;MAKU,uBAAuB,CAAA;uGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sCAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sCAAsC;oBAChD,cAAc,EAAE,CAAC,eAAe,CAAC;AAClC,iBAAA;;;;;"}
1
+ {"version":3,"file":"tree.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/tree/tree.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/tree/tree.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 {computed, signal} from '@angular/core';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../behaviors/list-focus/list-focus';\nimport {\n ListNavigation,\n ListNavigationInputs,\n ListNavigationItem,\n} from '../behaviors/list-navigation/list-navigation';\nimport {\n ListSelection,\n ListSelectionInputs,\n ListSelectionItem,\n} from '../behaviors/list-selection/list-selection';\nimport {\n ListTypeahead,\n ListTypeaheadInputs,\n ListTypeaheadItem,\n} from '../behaviors/list-typeahead/list-typeahead';\nimport {ExpansionItem, ExpansionControl, ListExpansion} from '../behaviors/expansion/expansion';\nimport {KeyboardEventManager} from '../behaviors/event-manager/keyboard-event-manager';\nimport {PointerEventManager} from '../behaviors/event-manager/pointer-event-manager';\nimport {ModifierKey as Modifier} from '../behaviors/event-manager/event-manager';\n\n/** Represents the required inputs for a tree item. */\nexport interface TreeItemInputs<V>\n extends ListFocusItem,\n ListNavigationItem,\n ListSelectionItem<V>,\n ListTypeaheadItem {\n /** The parent item. */\n parent: SignalLike<TreeItemPattern<V> | TreePattern<V>>;\n\n /** Whether this item has children. Children can be lazily loaded. */\n hasChildren: SignalLike<boolean>;\n\n /** The children items. */\n children: SignalLike<TreeItemPattern<V>[]>;\n\n /** The tree pattern this item belongs to. */\n tree: SignalLike<TreePattern<V>>;\n}\n\nexport interface TreeItemPattern<V> extends TreeItemInputs<V> {}\n/**\n * Represents an item in a Tree.\n */\nexport class TreeItemPattern<V> implements ExpansionItem {\n /** The unique identifier used by the expansion behavior. */\n readonly expansionId: SignalLike<string>;\n\n /** Controls expansion for child items. */\n readonly expansionManager: ListExpansion;\n\n /** Controls expansion for this item. */\n readonly expansion: ExpansionControl;\n\n /** Whether the item is expandable. It's expandable if children item exist. */\n readonly expandable: SignalLike<boolean>;\n\n /** The level of the current item in a tree. */\n readonly level: SignalLike<number> = computed(() => this.parent().level() + 1);\n\n /** Whether this item is currently expanded. */\n readonly expanded = computed(() => this.expansion.isExpanded());\n\n /** Whether this item is visible. */\n readonly visible = computed(() => this.parent().expanded());\n\n /** The number of items under the same parent at the same level. */\n readonly setsize = computed(() => this.parent().children().length);\n\n /** The position of this item among its siblings (1-based). */\n readonly posinset = computed(() => this.parent().children().indexOf(this) + 1);\n\n /** Whether the item is active. */\n readonly active = computed(() => this.tree().focusManager.activeItem() === this);\n\n /** The tabindex of the item. */\n readonly tabindex = computed(() => this.tree().focusManager.getItemTabindex(this));\n\n /** Whether the item is selected. */\n readonly selected = computed(() => {\n if (this.tree().nav()) {\n return undefined;\n }\n return this.tree().value().includes(this.value());\n });\n\n /** The current type of this item. */\n readonly current = computed(() => {\n if (!this.tree().nav()) {\n return undefined;\n }\n return this.tree().value().includes(this.value()) ? this.tree().currentType() : undefined;\n });\n\n constructor(readonly inputs: TreeItemInputs<V>) {\n this.id = inputs.id;\n this.value = inputs.value;\n this.element = inputs.element;\n this.disabled = inputs.disabled;\n this.searchTerm = inputs.searchTerm;\n this.expansionId = inputs.id;\n this.tree = inputs.tree;\n this.parent = inputs.parent;\n this.children = inputs.children;\n this.expandable = inputs.hasChildren;\n this.expansion = new ExpansionControl({\n ...inputs,\n expandable: this.expandable,\n expansionId: this.expansionId,\n expansionManager: this.parent().expansionManager,\n });\n this.expansionManager = new ListExpansion({\n ...inputs,\n multiExpandable: () => true,\n // TODO(ok7sai): allow pre-expanded tree items.\n expandedIds: signal([]),\n items: this.children,\n disabled: computed(() => this.tree()?.disabled() ?? false),\n });\n }\n}\n\n/** The selection operations that the tree can perform. */\ninterface SelectOptions {\n toggle?: boolean;\n selectOne?: boolean;\n selectRange?: boolean;\n anchor?: boolean;\n}\n\n/** Represents the required inputs for a tree. */\nexport interface TreeInputs<V>\n extends Omit<\n ListFocusInputs<TreeItemPattern<V>> &\n ListNavigationInputs<TreeItemPattern<V>> &\n ListSelectionInputs<TreeItemPattern<V>, V> &\n ListTypeaheadInputs<TreeItemPattern<V>>,\n 'items'\n > {\n /** All items in the tree, in document order (DFS-like, a flattened list). */\n allItems: SignalLike<TreeItemPattern<V>[]>;\n\n /** Whether the tree is in navigation mode. */\n nav: SignalLike<boolean>;\n\n /** The aria-current type. */\n currentType: SignalLike<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>;\n}\n\nexport interface TreePattern<V> extends TreeInputs<V> {}\n/** Controls the state and interactions of a tree view. */\nexport class TreePattern<V> {\n /** Controls focus for the all visible tree items. */\n readonly focusManager: ListFocus<TreeItemPattern<V>>;\n\n /** Controls navigation for all visible tree items. */\n readonly navigationManager: ListNavigation<TreeItemPattern<V>>;\n\n /** Controls selection for all visible tree items. */\n readonly selectionManager: ListSelection<TreeItemPattern<V>, V>;\n\n /** Controls typeahead for all visible tree items. */\n readonly typeaheadManager: ListTypeahead<TreeItemPattern<V>>;\n\n /** Controls expansion for direct children of the tree root (top-level items). */\n readonly expansionManager: ListExpansion;\n\n /** The root level is 0. */\n readonly level = () => 0;\n\n /** The root is always expanded. */\n readonly expanded = () => true;\n\n /** The tabindex of the tree. */\n readonly tabindex = computed(() => this.focusManager.getListTabindex());\n\n /** The id of the current active item. */\n readonly activedescendant = computed(() => this.focusManager.getActiveDescendant());\n\n /** Whether the tree is performing a range selection. */\n readonly inSelection = signal(false);\n\n /** The direct children of the root (top-level tree items). */\n readonly children = computed(() =>\n this.inputs.allItems().filter(item => item.level() === this.level() + 1),\n );\n\n /** All currently visible tree items. An item is visible if their parent is expanded. */\n readonly visibleItems = computed(() => this.inputs.allItems().filter(item => item.visible()));\n\n /** Whether the tree selection follows focus. */\n readonly followFocus = computed(() => this.inputs.selectionMode() === 'follow');\n\n /** The key for navigating to the previous item. */\n readonly prevKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowUp';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n });\n\n /** The key for navigating to the next item. */\n readonly nextKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowDown';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** The key for collapsing an item or moving to its parent. */\n readonly collapseKey = computed(() => {\n if (this.inputs.orientation() === 'horizontal') {\n return 'ArrowUp';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n });\n\n /** The key for expanding an item or moving to its first child. */\n readonly expandKey = computed(() => {\n if (this.inputs.orientation() === 'horizontal') {\n return 'ArrowDown';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** Represents the space key. Does nothing when the user is actively using typeahead. */\n readonly dynamicSpaceKey = computed(() => (this.typeaheadManager.isTyping() ? '' : ' '));\n\n /** Regular expression to match characters for typeahead. */\n readonly typeaheadRegexp = /^.$/;\n\n /** Uncommitted tree item for selecting a range of tree items. */\n readonly anchorItem = signal<TreeItemPattern<V> | undefined>(undefined);\n\n /**\n * Uncommitted tree item index for selecting a range of tree items.\n *\n * The index is computed in case the tree item position is changed caused by tree expansions.\n */\n readonly anchorIndex = computed(() =>\n this.anchorItem() ? this.visibleItems().indexOf(this.anchorItem()!) : -1,\n );\n\n /** The keydown event manager for the tree. */\n readonly keydown = computed(() => {\n const manager = new KeyboardEventManager();\n\n if (!this.followFocus()) {\n manager\n .on(this.prevKey, () => this.prev())\n .on(this.nextKey, () => this.next())\n .on('Home', () => this.first())\n .on('End', () => this.last())\n .on(this.typeaheadRegexp, e => this.search(e.key));\n }\n\n if (this.followFocus()) {\n manager\n .on(this.prevKey, () => this.prev({selectOne: true}))\n .on(this.nextKey, () => this.next({selectOne: true}))\n .on('Home', () => this.first({selectOne: true}))\n .on('End', () => this.last({selectOne: true}))\n .on(this.typeaheadRegexp, e => this.search(e.key, {selectOne: true}));\n }\n\n if (this.inputs.multi()) {\n manager\n .on(Modifier.Any, 'Shift', () => this.anchorItem.set(this.focusManager.activeItem()))\n .on(Modifier.Shift, this.prevKey, () => this.prev({selectRange: true}))\n .on(Modifier.Shift, this.nextKey, () => this.next({selectRange: true}))\n .on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'Home', () =>\n this.first({selectRange: true, anchor: false}),\n )\n .on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'End', () =>\n this.last({selectRange: true, anchor: false}),\n )\n .on(Modifier.Shift, 'Enter', () =>\n this._updateSelection({selectRange: true, anchor: false}),\n )\n .on(Modifier.Shift, this.dynamicSpaceKey, () =>\n this._updateSelection({selectRange: true, anchor: false}),\n );\n }\n\n if (!this.followFocus() && this.inputs.multi()) {\n manager\n .on(this.dynamicSpaceKey, () => this.selectionManager.toggle())\n .on('Enter', () => this.selectionManager.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'A', () => this.selectionManager.toggleAll());\n }\n\n if (!this.followFocus() && !this.inputs.multi()) {\n manager.on(this.dynamicSpaceKey, () => this.selectionManager.toggleOne());\n manager.on('Enter', () => this.selectionManager.toggleOne());\n }\n\n if (this.inputs.multi() && this.followFocus()) {\n manager\n .on([Modifier.Ctrl, Modifier.Meta], this.prevKey, () => this.prev())\n .on([Modifier.Ctrl, Modifier.Meta], this.nextKey, () => this.next())\n .on([Modifier.Ctrl, Modifier.Meta], ' ', () => this.selectionManager.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'Enter', () => this.selectionManager.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'Home', () => this.first())\n .on([Modifier.Ctrl, Modifier.Meta], 'End', () => this.last())\n .on([Modifier.Ctrl, Modifier.Meta], 'A', () => {\n this.selectionManager.toggleAll();\n this.selectionManager.select(); // Ensure the currect item remains selected.\n });\n }\n\n manager\n .on(this.expandKey, () => this.expand())\n .on(this.collapseKey, () => this.collapse())\n .on(Modifier.Shift, '*', () => this.expandSiblings());\n\n return manager;\n });\n\n /** The pointerdown event manager for the tree. */\n pointerdown = computed(() => {\n const manager = new PointerEventManager();\n\n if (this.multi()) {\n manager.on(Modifier.Shift, e => this.goto(e, {selectRange: true}));\n }\n\n if (!this.multi() && this.followFocus()) {\n return manager.on(e => this.goto(e, {selectOne: true}));\n }\n\n if (!this.multi() && !this.followFocus()) {\n return manager.on(e => this.goto(e, {toggle: true}));\n }\n\n if (this.multi() && this.followFocus()) {\n return manager\n .on(e => this.goto(e, {selectOne: true}))\n .on(Modifier.Ctrl, e => this.goto(e, {toggle: true}));\n }\n\n if (this.multi() && !this.followFocus()) {\n return manager.on(e => this.goto(e, {toggle: true}));\n }\n\n return manager;\n });\n\n constructor(readonly inputs: TreeInputs<V>) {\n this.nav = inputs.nav;\n this.currentType = inputs.currentType;\n this.allItems = inputs.allItems;\n this.focusMode = inputs.focusMode;\n this.disabled = inputs.disabled;\n this.activeIndex = inputs.activeIndex;\n this.skipDisabled = inputs.skipDisabled;\n this.wrap = inputs.wrap;\n this.orientation = inputs.orientation;\n this.textDirection = inputs.textDirection;\n this.multi = computed(() => (this.nav() ? false : this.inputs.multi()));\n this.value = inputs.value;\n this.selectionMode = inputs.selectionMode;\n this.typeaheadDelay = inputs.typeaheadDelay;\n this.focusManager = new ListFocus({\n ...inputs,\n items: this.visibleItems,\n });\n this.navigationManager = new ListNavigation({\n ...inputs,\n wrap: computed(() => this.inputs.wrap() && !this.inSelection()),\n items: this.visibleItems,\n focusManager: this.focusManager,\n });\n this.selectionManager = new ListSelection({\n ...inputs,\n items: this.visibleItems,\n focusManager: this.focusManager,\n });\n this.typeaheadManager = new ListTypeahead({\n ...inputs,\n items: this.visibleItems,\n focusManager: this.focusManager,\n });\n this.expansionManager = new ListExpansion({\n multiExpandable: () => true,\n // TODO(ok7sai): allow pre-expanded tree items.\n expandedIds: signal([]),\n items: this.children,\n disabled: this.disabled,\n });\n }\n\n /**\n * Sets the tree to it's default initial state.\n *\n * Sets the active index of the tree to the first focusable selected tree item if one exists.\n * Otherwise, sets focus to the first focusable tree item.\n */\n setDefaultState() {\n let firstItemIndex: number | undefined;\n\n for (const [index, item] of this.allItems().entries()) {\n if (!item.visible()) continue;\n if (!this.focusManager.isFocusable(item)) continue;\n\n if (firstItemIndex === undefined) {\n firstItemIndex = index;\n }\n\n if (item.selected()) {\n this.activeIndex.set(index);\n return;\n }\n }\n\n if (firstItemIndex !== undefined) {\n this.activeIndex.set(firstItemIndex);\n }\n }\n\n /** Handles keydown events on the tree. */\n onKeydown(event: KeyboardEvent) {\n if (!this.disabled()) {\n this.keydown().handle(event);\n }\n }\n\n /** Handles pointerdown events on the tree. */\n onPointerdown(event: PointerEvent) {\n if (!this.disabled()) {\n this.pointerdown().handle(event);\n }\n }\n\n /** Navigates to the first visible tree item in the tree. */\n first(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.first());\n }\n\n /** Navigates to the last visible tree item in the tree. */\n last(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.last());\n }\n\n /** Navigates to the next visible tree item in the tree. */\n next(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.next());\n }\n\n /** Navigates to the previous visible tree item in the tree. */\n prev(opts?: SelectOptions) {\n this._navigate(opts, () => this.navigationManager.prev());\n }\n\n /** Navigates to the given tree item in the tree. */\n goto(event: PointerEvent, opts?: SelectOptions) {\n const item = this._getItem(event);\n this._navigate(opts, () => this.navigationManager.goto(item));\n this.toggleExpansion(item);\n }\n\n /** Handles typeahead search navigation for the tree. */\n search(char: string, opts?: SelectOptions) {\n this._navigate(opts, () => this.typeaheadManager.search(char));\n }\n\n /** Toggles to expand or collapse a tree item. */\n toggleExpansion(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n if (!item || !this.focusManager.isFocusable(item)) return;\n\n if (!item.expandable()) return;\n if (item.expanded()) {\n this.collapse();\n } else {\n item.expansion.open();\n }\n }\n\n /** Expands a tree item. */\n expand(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n if (!item || !this.focusManager.isFocusable(item)) return;\n\n if (item.expandable() && !item.expanded()) {\n item.expansion.open();\n } else if (item.expanded() && item.children().length > 0) {\n const firstChild = item.children()[0];\n if (this.focusManager.isFocusable(firstChild)) {\n this.navigationManager.goto(firstChild);\n }\n }\n }\n\n /** Expands all sibling tree items including itself. */\n expandSiblings(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n const siblings = item.parent()?.children();\n siblings?.forEach(item => this.expand(item));\n }\n\n /** Collapses a tree item. */\n collapse(item?: TreeItemPattern<V>) {\n item ??= this.focusManager.activeItem();\n if (!item || !this.focusManager.isFocusable(item)) return;\n\n if (item.expandable() && item.expanded()) {\n item.expansion.close();\n } else if (item.parent() && item.parent() !== this) {\n const parentItem = item.parent();\n if (parentItem instanceof TreeItemPattern && this.focusManager.isFocusable(parentItem)) {\n this.navigationManager.goto(parentItem);\n }\n }\n }\n\n /** Safely performs a navigation operation. */\n private _navigate(opts: SelectOptions = {}, operation: () => boolean) {\n if (opts?.selectRange) {\n this.inSelection.set(true);\n this.selectionManager.rangeStartIndex.set(this.anchorIndex());\n }\n\n const moved = operation();\n\n if (moved) {\n this._updateSelection(opts);\n }\n\n this.inSelection.set(false);\n }\n\n /** Handles updating selection for the tree. */\n private _updateSelection(opts: SelectOptions = {anchor: true}) {\n if (opts.toggle) {\n this.selectionManager.toggle();\n }\n if (opts.selectOne) {\n this.selectionManager.selectOne();\n }\n if (opts.selectRange) {\n this.selectionManager.selectRange();\n }\n if (!opts.anchor) {\n this.anchorItem.set(this.visibleItems()[this.selectionManager.rangeStartIndex()]);\n }\n }\n\n /** Retrieves the TreeItemPattern associated with a DOM event, if any. */\n private _getItem(event: Event): TreeItemPattern<V> | undefined {\n if (!(event.target instanceof HTMLElement)) {\n return;\n }\n const element = event.target.closest('[role=\"treeitem\"]');\n return this.inputs.allItems().find(i => i.element() === element);\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 {\n Directive,\n ElementRef,\n afterRenderEffect,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n signal,\n Signal,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {DeferredContent, DeferredContentAware} from '@angular/cdk-experimental/deferred-content';\nimport {TreeItemPattern, TreePattern} from '../ui-patterns/tree/tree';\n\ninterface HasElement {\n element: Signal<HTMLElement>;\n}\n\n/**\n * Sort directives by their document order.\n */\nfunction sortDirectives(a: HasElement, b: HasElement) {\n return (a.element().compareDocumentPosition(b.element()) & Node.DOCUMENT_POSITION_PRECEDING) > 0\n ? 1\n : -1;\n}\n\n/**\n * A Tree container.\n *\n * Transforms nested lists into an accessible, ARIA-compliant tree structure.\n *\n * ```html\n * <ul cdkTree [(value)]=\"selectedItems\" [multi]=\"true\">\n * <li cdkTreeItem [value]=\"'leaf1'\">Leaf Item 1</li>\n * <li cdkTreeItem [value]=\"'parent1'\">\n * Parent Item 1\n * <ul cdkTreeItemGroup [value]=\"'parent1'\">\n * <ng-template cdkTreeItemGroupContent>\n * <li cdkTreeItem [value]=\"'child1.1'\">Child Item 1.1</li>\n * <li cdkTreeItem [value]=\"'child1.2'\">Child Item 1.2</li>\n * </ng-template>\n * </ul>\n * </li>\n * <li cdkTreeItem [value]=\"'leaf2'\" [disabled]=\"true\">Disabled Leaf Item 2</li>\n * </ul>\n * ```\n */\n@Directive({\n selector: '[cdkTree]',\n exportAs: 'cdkTree',\n host: {\n 'class': 'cdk-tree',\n 'role': 'tree',\n '[attr.aria-orientation]': 'pattern.orientation()',\n '[attr.aria-multiselectable]': 'pattern.multi()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n '[attr.aria-activedescendant]': 'pattern.activedescendant()',\n '[tabindex]': 'pattern.tabindex()',\n '(keydown)': 'pattern.onKeydown($event)',\n '(pointerdown)': 'pattern.onPointerdown($event)',\n '(focusin)': 'onFocus()',\n },\n})\nexport class CdkTree<V> {\n /** All CdkTreeItem instances within this tree. */\n private readonly _unorderedItems = signal(new Set<CdkTreeItem<V>>());\n\n /** All CdkGroup instances within this tree. */\n readonly unorderedGroups = signal(new Set<CdkTreeItemGroup<V>>());\n\n /** Orientation of the tree. */\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n\n /** Whether multi-selection is allowed. */\n readonly multi = input(false, {transform: booleanAttribute});\n\n /** Whether the tree is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The selection strategy used by the tree. */\n readonly selectionMode = input<'explicit' | 'follow'>('explicit');\n\n /** The focus strategy used by the tree. */\n readonly focusMode = input<'roving' | 'activedescendant'>('roving');\n\n /** Whether navigation wraps. */\n readonly wrap = input(true, {transform: booleanAttribute});\n\n /** Whether to skip disabled items during navigation. */\n readonly skipDisabled = input(true, {transform: booleanAttribute});\n\n /** Typeahead delay. */\n readonly typeaheadDelay = input(0.5);\n\n /** Selected item values. */\n readonly value = model<V[]>([]);\n\n /** Text direction. */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** Whether the tree is in navigation mode. */\n readonly nav = input(false);\n\n /** The aria-current type. */\n readonly currentType = input<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>(\n 'page',\n );\n\n /** The UI pattern for the tree. */\n readonly pattern: TreePattern<V> = new TreePattern<V>({\n ...this,\n allItems: computed(() =>\n [...this._unorderedItems()].sort(sortDirectives).map(item => item.pattern),\n ),\n activeIndex: signal(0),\n });\n\n /** Whether the tree has received focus yet. */\n private _hasFocused = signal(false);\n\n constructor() {\n afterRenderEffect(() => {\n if (!this._hasFocused()) {\n this.pattern.setDefaultState();\n }\n });\n }\n\n onFocus() {\n this._hasFocused.set(true);\n }\n\n register(child: CdkTreeItemGroup<V> | CdkTreeItem<V>) {\n if (child instanceof CdkTreeItemGroup) {\n this.unorderedGroups().add(child);\n this.unorderedGroups.set(new Set(this.unorderedGroups()));\n }\n\n if (child instanceof CdkTreeItem) {\n this._unorderedItems().add(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n }\n\n deregister(child: CdkTreeItemGroup<V> | CdkTreeItem<V>) {\n if (child instanceof CdkTreeItemGroup) {\n this.unorderedGroups().delete(child);\n this.unorderedGroups.set(new Set(this.unorderedGroups()));\n }\n\n if (child instanceof CdkTreeItem) {\n this._unorderedItems().delete(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n }\n}\n\n/**\n * A selectable and expandable Tree Item in a Tree.\n */\n@Directive({\n selector: '[cdkTreeItem]',\n exportAs: 'cdkTreeItem',\n host: {\n 'class': 'cdk-treeitem',\n '[class.cdk-active]': 'pattern.active()',\n 'role': 'treeitem',\n '[id]': 'pattern.id()',\n '[attr.aria-expanded]': 'pattern.expandable() ? pattern.expanded() : null',\n '[attr.aria-selected]': 'pattern.selected()',\n '[attr.aria-current]': 'pattern.current()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n '[attr.aria-level]': 'pattern.level()',\n '[attr.aria-owns]': 'group()?.id',\n '[attr.aria-setsize]': 'pattern.setsize()',\n '[attr.aria-posinset]': 'pattern.posinset()',\n '[attr.tabindex]': 'pattern.tabindex()',\n '[attr.inert]': 'pattern.visible() ? null : true',\n },\n})\nexport class CdkTreeItem<V> implements OnInit, OnDestroy, HasElement {\n /** A reference to the tree item element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A unique identifier for the tree item. */\n private readonly _id = inject(_IdGenerator).getId('cdk-tree-item-');\n\n /** The top level CdkTree. */\n private readonly _tree = inject(CdkTree<V>);\n\n /** The parent CdkTreeItem. */\n private readonly _treeItem = inject(CdkTreeItem<V>, {optional: true, skipSelf: true});\n\n /** The parent CdkGroup, if any. */\n private readonly _parentGroup = inject(CdkTreeItemGroup<V>, {optional: true});\n\n /** The top level TreePattern. */\n private readonly _treePattern = computed(() => this._tree.pattern);\n\n /** The parent TreeItemPattern. */\n private readonly _parentPattern: Signal<TreeItemPattern<V> | TreePattern<V>> = computed(\n () => this._treeItem?.pattern ?? this._treePattern(),\n );\n\n /** The host native element. */\n readonly element = computed(() => this._elementRef.nativeElement);\n\n /** The value of the tree item. */\n readonly value = input.required<V>();\n\n /** Whether the tree item is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Optional label for typeahead. Defaults to the element's textContent. */\n readonly label = input<string>();\n\n /** Search term for typeahead. */\n readonly searchTerm = computed(() => this.label() ?? this.element().textContent);\n\n /** Manual group assignment. */\n readonly group = signal<CdkTreeItemGroup<V> | undefined>(undefined);\n\n /** The UI pattern for this item. */\n readonly pattern: TreeItemPattern<V> = new TreeItemPattern<V>({\n ...this,\n id: () => this._id,\n tree: this._treePattern,\n parent: this._parentPattern,\n children: computed(\n () =>\n this.group()\n ?.children()\n .map(item => (item as CdkTreeItem<V>).pattern) ?? [],\n ),\n hasChildren: computed(() => !!this.group()),\n });\n\n constructor() {\n afterRenderEffect(() => {\n const group = [...this._tree.unorderedGroups()].find(group => group.value() === this.value());\n if (group) {\n this.group.set(group);\n }\n });\n\n // Updates the visibility of the owned group.\n afterRenderEffect(() => {\n this.group()?.visible.set(this.pattern.expanded());\n });\n }\n\n ngOnInit() {\n this._tree.register(this);\n this._parentGroup?.register(this);\n }\n\n ngOnDestroy() {\n this._tree.deregister(this);\n this._parentGroup?.deregister(this);\n }\n}\n\n/**\n * Container that designates content as a group.\n */\n@Directive({\n selector: '[cdkTreeItemGroup]',\n exportAs: 'cdkTreeItemGroup',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n 'class': 'cdk-treeitem-group',\n 'role': 'group',\n '[id]': 'id',\n '[attr.inert]': 'visible() ? null : true',\n },\n})\nexport class CdkTreeItemGroup<V> implements OnInit, OnDestroy, HasElement {\n /** A reference to the group element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** The top level CdkTree. */\n private readonly _tree = inject(CdkTree<V>);\n\n /** All groupable items that are descendants of the group. */\n private readonly _unorderedItems = signal(new Set<CdkTreeItem<V>>());\n\n /** The host native element. */\n readonly element = computed(() => this._elementRef.nativeElement);\n\n /** Unique ID for the group. */\n readonly id = inject(_IdGenerator).getId('cdk-tree-group-');\n\n /** Whether the group is visible. */\n readonly visible = signal(true);\n\n /** Child items within this group. */\n readonly children = computed(() => [...this._unorderedItems()].sort(sortDirectives));\n\n /** Identifier for matching the group owner. */\n readonly value = input.required<V>();\n\n constructor() {\n // Connect the group's hidden state to the DeferredContentAware's visibility.\n afterRenderEffect(() => {\n this._deferredContentAware.contentVisible.set(this.visible());\n });\n }\n\n ngOnInit() {\n this._tree.register(this);\n }\n\n ngOnDestroy() {\n this._tree.deregister(this);\n }\n\n register(child: CdkTreeItem<V>) {\n this._unorderedItems().add(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n\n deregister(child: CdkTreeItem<V>) {\n this._unorderedItems().delete(child);\n this._unorderedItems.set(new Set(this._unorderedItems()));\n }\n}\n\n/**\n * A structural directive that marks the `ng-template` to be used as the content\n * for a `CdkTreeItemGroup`. This content can be lazily loaded.\n */\n@Directive({\n selector: 'ng-template[cdkTreeItemGroupContent]',\n hostDirectives: [DeferredContent],\n})\nexport class CdkTreeItemGroupContent {}\n"],"names":["Modifier"],"mappings":";;;;;;;;;;;AAmDA;;AAEG;MACU,eAAe,CAAA;AAkDL,IAAA,MAAA;;AAhDZ,IAAA,WAAW;;AAGX,IAAA,gBAAgB;;AAGhB,IAAA,SAAS;;AAGT,IAAA,UAAU;;AAGV,IAAA,KAAK,GAAuB,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;;AAGrE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;;AAGtD,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EA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AA;;;;;"}
@@ -1,6 +1,6 @@
1
1
  export { L as ListboxPattern, O as OptionPattern } from './option-D44ECQK6.mjs';
2
2
  export { a as RadioButtonPattern, R as RadioGroupPattern } from './radio-button-BiqPDreS.mjs';
3
- export { T as TabListPattern, b as TabPanelPattern, a as TabPattern } from './tabs-YS9XXb7X.mjs';
3
+ export { T as TabListPattern, b as TabPanelPattern, a as TabPattern } from './tabs-DvjCdS14.mjs';
4
4
  export { b as AccordionGroupPattern, A as AccordionPanelPattern, a as AccordionTriggerPattern } from './accordion-CN4PcmAh.mjs';
5
5
  import './list-focus-BXQdAA3i.mjs';
6
6
  import '@angular/core';
@@ -65,5 +65,5 @@ declare class ListSelection<T extends ListSelectionItem<V>, V> {
65
65
  private _getItemsFromIndex;
66
66
  }
67
67
 
68
- export { ListSelection as b };
69
- export type { ListSelectionItem as L, ListSelectionInputs as a };
68
+ export { ListSelection as L };
69
+ export type { ListSelectionItem as a, ListSelectionInputs as b };
@@ -1,8 +1,8 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import * as _angular_cdk_bidi from '@angular/cdk/bidi';
3
- import { b as OptionPattern, a as ListboxPattern } from '../listbox.d-hkdivyCf.js';
3
+ import { b as OptionPattern, a as ListboxPattern } from '../listbox.d-Ck8-1BdR.js';
4
4
  import '../list-navigation.d-tcweHm4g.js';
5
- import '../list-selection.d-BBLdeUeF.js';
5
+ import '../list-selection.d-zyz_XRbe.js';
6
6
  import '../list-typeahead.d-DvIIfjfu.js';
7
7
 
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { e as ListNavigationItem, f as ListFocusItem, S as SignalLike, d as ListFocus, b as ListNavigation, L as ListNavigationInputs, a as ListFocusInputs, K as KeyboardEventManager, P as PointerEventManager } from './list-navigation.d-tcweHm4g.js';
3
- import { L as ListSelectionItem, b as ListSelection, a as ListSelectionInputs } from './list-selection.d-BBLdeUeF.js';
3
+ import { a as ListSelectionItem, L as ListSelection, b as ListSelectionInputs } from './list-selection.d-zyz_XRbe.js';
4
4
  import { a as ListTypeaheadItem, b as ListTypeaheadInputs, L as ListTypeahead } from './list-typeahead.d-DvIIfjfu.js';
5
5
 
6
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk-experimental",
3
- "version": "20.1.2",
3
+ "version": "20.2.0-next.0",
4
4
  "description": "Experimental components for Angular CDK",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,8 +12,8 @@
12
12
  },
13
13
  "homepage": "https://github.com/angular/components#readme",
14
14
  "peerDependencies": {
15
- "@angular/cdk": "20.1.2",
16
- "@angular/core": "^20.0.0 || ^21.0.0"
15
+ "@angular/cdk": "20.2.0-next.0",
16
+ "@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@angular/cdk": "workspace:*"
@@ -1,9 +1,9 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { WritableSignal } from '@angular/core';
3
3
  import * as _angular_cdk_bidi from '@angular/cdk/bidi';
4
- import { c as RadioButtonPattern, a as RadioGroupPattern } from '../radio-group.d-CcY7mCC2.js';
4
+ import { c as RadioButtonPattern, a as RadioGroupPattern } from '../radio-group.d-B6Ntu9oI.js';
5
5
  import '../list-navigation.d-tcweHm4g.js';
6
- import '../list-selection.d-BBLdeUeF.js';
6
+ import '../list-selection.d-zyz_XRbe.js';
7
7
 
8
8
  /**
9
9
  * A radio button group container.
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { e as ListNavigationItem, f as ListFocusItem, S as SignalLike, d as ListFocus, b as ListNavigation, L as ListNavigationInputs, a as ListFocusInputs, K as KeyboardEventManager, P as PointerEventManager } from './list-navigation.d-tcweHm4g.js';
3
- import { L as ListSelectionItem, b as ListSelection, a as ListSelectionInputs } from './list-selection.d-BBLdeUeF.js';
3
+ import { a as ListSelectionItem, L as ListSelection, b as ListSelectionInputs } from './list-selection.d-zyz_XRbe.js';
4
4
 
5
5
  /**
6
6
  * Represents the properties exposed by a radio group that need to be accessed by a radio button.
package/tabs/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Signal, OnInit, OnDestroy } from '@angular/core';
3
3
  import * as _angular_cdk_bidi from '@angular/cdk/bidi';
4
- import { a as TabPattern, c as TabPanelPattern, e as TabListPattern } from '../tabs.d-C4vwhxZL.js';
4
+ import { a as TabPattern, c as TabPanelPattern, e as TabListPattern } from '../tabs.d-BGC0Izc3.js';
5
5
  import * as i1 from '@angular/cdk-experimental/deferred-content';
6
6
  import '../list-navigation.d-tcweHm4g.js';
7
- import '../list-selection.d-BBLdeUeF.js';
7
+ import '../list-selection.d-zyz_XRbe.js';
8
8
  import '../expansion.d-BvIuKvYU.js';
9
9
 
10
10
  interface HasElement {