@angular/aria 21.0.2 → 21.0.3

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 (56) hide show
  1. package/fesm2022/_combobox-chunk.mjs +425 -0
  2. package/fesm2022/_combobox-chunk.mjs.map +1 -0
  3. package/fesm2022/_combobox-listbox-chunk.mjs +522 -0
  4. package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -0
  5. package/fesm2022/_combobox-popup-chunk.mjs +46 -0
  6. package/fesm2022/_combobox-popup-chunk.mjs.map +1 -0
  7. package/fesm2022/_list-navigation-chunk.mjs +116 -0
  8. package/fesm2022/_list-navigation-chunk.mjs.map +1 -0
  9. package/fesm2022/_pointer-event-manager-chunk.mjs +134 -0
  10. package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -0
  11. package/fesm2022/_widget-chunk.mjs +4 -246
  12. package/fesm2022/_widget-chunk.mjs.map +1 -1
  13. package/fesm2022/accordion.mjs +17 -4
  14. package/fesm2022/accordion.mjs.map +1 -1
  15. package/fesm2022/aria.mjs +1 -1
  16. package/fesm2022/aria.mjs.map +1 -1
  17. package/fesm2022/combobox.mjs +96 -120
  18. package/fesm2022/combobox.mjs.map +1 -1
  19. package/fesm2022/grid.mjs +225 -201
  20. package/fesm2022/grid.mjs.map +1 -1
  21. package/fesm2022/listbox.mjs +173 -161
  22. package/fesm2022/listbox.mjs.map +1 -1
  23. package/fesm2022/menu.mjs +256 -238
  24. package/fesm2022/menu.mjs.map +1 -1
  25. package/fesm2022/private.mjs +7 -932
  26. package/fesm2022/private.mjs.map +1 -1
  27. package/fesm2022/tabs.mjs +182 -168
  28. package/fesm2022/tabs.mjs.map +1 -1
  29. package/fesm2022/toolbar.mjs +15 -3
  30. package/fesm2022/toolbar.mjs.map +1 -1
  31. package/fesm2022/tree.mjs +4 -2
  32. package/fesm2022/tree.mjs.map +1 -1
  33. package/package.json +2 -2
  34. package/types/_combobox-chunk.d.ts +98 -0
  35. package/types/_combobox-chunk.d2.ts +193 -0
  36. package/types/_grid-chunk.d.ts +3 -210
  37. package/types/_list-chunk.d.ts +212 -0
  38. package/types/_list-navigation-chunk.d.ts +212 -0
  39. package/types/_listbox-chunk.d.ts +106 -0
  40. package/types/accordion.d.ts +52 -49
  41. package/types/combobox.d.ts +25 -111
  42. package/types/grid.d.ts +37 -32
  43. package/types/listbox.d.ts +8 -5
  44. package/types/menu.d.ts +113 -113
  45. package/types/private.d.ts +10 -498
  46. package/types/tabs.d.ts +89 -84
  47. package/types/toolbar.d.ts +69 -66
  48. package/types/tree.d.ts +106 -103
  49. package/_adev_assets/aria-accordion.json +0 -743
  50. package/_adev_assets/aria-combobox.json +0 -603
  51. package/_adev_assets/aria-grid.json +0 -893
  52. package/_adev_assets/aria-listbox.json +0 -540
  53. package/_adev_assets/aria-menu.json +0 -1049
  54. package/_adev_assets/aria-tabs.json +0 -880
  55. package/_adev_assets/aria-toolbar.json +0 -545
  56. package/_adev_assets/aria-tree.json +0 -853
package/fesm2022/tabs.mjs CHANGED
@@ -1,81 +1,19 @@
1
- import { _IdGenerator } from '@angular/cdk/a11y';
2
- import { Directionality } from '@angular/cdk/bidi';
3
1
  import * as i0 from '@angular/core';
4
- import { inject, ElementRef, signal, computed, Directive, input, booleanAttribute, model, afterRenderEffect } from '@angular/core';
2
+ import { InjectionToken, inject, ElementRef, signal, computed, input, booleanAttribute, model, afterRenderEffect, Directive } from '@angular/core';
3
+ import { Directionality } from '@angular/cdk/bidi';
5
4
  import * as i1 from '@angular/aria/private';
6
- import { TabListPattern, TabPattern, DeferredContentAware, TabPanelPattern, DeferredContent } from '@angular/aria/private';
5
+ import { TabListPattern, DeferredContentAware, TabPanelPattern, TabPattern, DeferredContent } from '@angular/aria/private';
6
+ import { _IdGenerator } from '@angular/cdk/a11y';
7
7
 
8
+ const TABS = new InjectionToken('TABS');
8
9
  function sortDirectives(a, b) {
9
10
  return (a.element.compareDocumentPosition(b.element) & Node.DOCUMENT_POSITION_PRECEDING) > 0 ? 1 : -1;
10
11
  }
11
- class Tabs {
12
- _elementRef = inject(ElementRef);
13
- element = this._elementRef.nativeElement;
14
- _tablist = signal(undefined, ...(ngDevMode ? [{
15
- debugName: "_tablist"
16
- }] : []));
17
- _unorderedPanels = signal(new Set(), ...(ngDevMode ? [{
18
- debugName: "_unorderedPanels"
19
- }] : []));
20
- _tabPatterns = computed(() => this._tablist()?._tabPatterns(), ...(ngDevMode ? [{
21
- debugName: "_tabPatterns"
22
- }] : []));
23
- _unorderedTabpanelPatterns = computed(() => [...this._unorderedPanels()].map(tabpanel => tabpanel._pattern), ...(ngDevMode ? [{
24
- debugName: "_unorderedTabpanelPatterns"
25
- }] : []));
26
- _register(child) {
27
- if (child instanceof TabList) {
28
- this._tablist.set(child);
29
- }
30
- if (child instanceof TabPanel) {
31
- this._unorderedPanels().add(child);
32
- this._unorderedPanels.set(new Set(this._unorderedPanels()));
33
- }
34
- }
35
- _unregister(child) {
36
- if (child instanceof TabList) {
37
- this._tablist.set(undefined);
38
- }
39
- if (child instanceof TabPanel) {
40
- this._unorderedPanels().delete(child);
41
- this._unorderedPanels.set(new Set(this._unorderedPanels()));
42
- }
43
- }
44
- static ɵfac = i0.ɵɵngDeclareFactory({
45
- minVersion: "12.0.0",
46
- version: "21.0.0",
47
- ngImport: i0,
48
- type: Tabs,
49
- deps: [],
50
- target: i0.ɵɵFactoryTarget.Directive
51
- });
52
- static ɵdir = i0.ɵɵngDeclareDirective({
53
- minVersion: "14.0.0",
54
- version: "21.0.0",
55
- type: Tabs,
56
- isStandalone: true,
57
- selector: "[ngTabs]",
58
- exportAs: ["ngTabs"],
59
- ngImport: i0
60
- });
61
- }
62
- i0.ɵɵngDeclareClassMetadata({
63
- minVersion: "12.0.0",
64
- version: "21.0.0",
65
- ngImport: i0,
66
- type: Tabs,
67
- decorators: [{
68
- type: Directive,
69
- args: [{
70
- selector: '[ngTabs]',
71
- exportAs: 'ngTabs'
72
- }]
73
- }]
74
- });
12
+
75
13
  class TabList {
76
14
  _elementRef = inject(ElementRef);
77
15
  element = this._elementRef.nativeElement;
78
- _tabs = inject(Tabs);
16
+ _tabs = inject(TABS);
79
17
  _unorderedTabs = signal(new Set(), ...(ngDevMode ? [{
80
18
  debugName: "_unorderedTabs"
81
19
  }] : []));
@@ -334,65 +272,51 @@ i0.ɵɵngDeclareClassMetadata({
334
272
  }]
335
273
  }
336
274
  });
337
- class Tab {
275
+
276
+ class TabPanel {
338
277
  _elementRef = inject(ElementRef);
339
278
  element = this._elementRef.nativeElement;
340
- _tabs = inject(Tabs);
341
- _tabList = inject(TabList);
342
- id = input(inject(_IdGenerator).getId('ng-tab-', true), ...(ngDevMode ? [{
279
+ _deferredContentAware = inject(DeferredContentAware);
280
+ _tabs = inject(TABS);
281
+ id = input(inject(_IdGenerator).getId('ng-tabpanel-', true), ...(ngDevMode ? [{
343
282
  debugName: "id"
344
283
  }] : []));
345
- _tablistPattern = computed(() => this._tabList._pattern, ...(ngDevMode ? [{
346
- debugName: "_tablistPattern"
347
- }] : []));
348
- _tabpanelPattern = computed(() => this._tabs._unorderedTabpanelPatterns().find(tabpanel => tabpanel.value() === this.value()), ...(ngDevMode ? [{
349
- debugName: "_tabpanelPattern"
284
+ _tabPattern = computed(() => this._tabs._tabPatterns()?.find(tab => tab.value() === this.value()), ...(ngDevMode ? [{
285
+ debugName: "_tabPattern"
350
286
  }] : []));
351
- disabled = input(false, ...(ngDevMode ? [{
352
- debugName: "disabled",
353
- transform: booleanAttribute
354
- }] : [{
355
- transform: booleanAttribute
356
- }]));
357
287
  value = input.required(...(ngDevMode ? [{
358
288
  debugName: "value"
359
289
  }] : []));
360
- active = computed(() => this._pattern.active(), ...(ngDevMode ? [{
361
- debugName: "active"
362
- }] : []));
363
- selected = computed(() => this._pattern.selected(), ...(ngDevMode ? [{
364
- debugName: "selected"
290
+ visible = computed(() => !this._pattern.hidden(), ...(ngDevMode ? [{
291
+ debugName: "visible"
365
292
  }] : []));
366
- _pattern = new TabPattern({
293
+ _pattern = new TabPanelPattern({
367
294
  ...this,
368
- tablist: this._tablistPattern,
369
- tabpanel: this._tabpanelPattern,
370
- expanded: signal(false),
371
- element: () => this.element
295
+ tab: this._tabPattern
372
296
  });
373
- open() {
374
- this._pattern.open();
297
+ constructor() {
298
+ afterRenderEffect(() => this._deferredContentAware.contentVisible.set(this.visible()));
375
299
  }
376
300
  ngOnInit() {
377
- this._tabList._register(this);
301
+ this._tabs._register(this);
378
302
  }
379
303
  ngOnDestroy() {
380
- this._tabList._unregister(this);
304
+ this._tabs._unregister(this);
381
305
  }
382
306
  static ɵfac = i0.ɵɵngDeclareFactory({
383
307
  minVersion: "12.0.0",
384
308
  version: "21.0.0",
385
309
  ngImport: i0,
386
- type: Tab,
310
+ type: TabPanel,
387
311
  deps: [],
388
312
  target: i0.ɵɵFactoryTarget.Directive
389
313
  });
390
314
  static ɵdir = i0.ɵɵngDeclareDirective({
391
315
  minVersion: "17.1.0",
392
316
  version: "21.0.0",
393
- type: Tab,
317
+ type: TabPanel,
394
318
  isStandalone: true,
395
- selector: "[ngTab]",
319
+ selector: "[ngTabPanel]",
396
320
  inputs: {
397
321
  id: {
398
322
  classPropertyName: "id",
@@ -401,13 +325,6 @@ class Tab {
401
325
  isRequired: false,
402
326
  transformFunction: null
403
327
  },
404
- disabled: {
405
- classPropertyName: "disabled",
406
- publicName: "disabled",
407
- isSignal: true,
408
- isRequired: false,
409
- transformFunction: null
410
- },
411
328
  value: {
412
329
  classPropertyName: "value",
413
330
  publicName: "value",
@@ -418,18 +335,20 @@ class Tab {
418
335
  },
419
336
  host: {
420
337
  attributes: {
421
- "role": "tab"
338
+ "role": "tabpanel"
422
339
  },
423
340
  properties: {
424
- "attr.data-active": "active()",
425
341
  "attr.id": "_pattern.id()",
426
342
  "attr.tabindex": "_pattern.tabIndex()",
427
- "attr.aria-selected": "selected()",
428
- "attr.aria-disabled": "_pattern.disabled()",
429
- "attr.aria-controls": "_pattern.controls()"
343
+ "attr.inert": "!visible() ? true : null",
344
+ "attr.aria-labelledby": "_pattern.labelledBy()"
430
345
  }
431
346
  },
432
- exportAs: ["ngTab"],
347
+ exportAs: ["ngTabPanel"],
348
+ hostDirectives: [{
349
+ directive: i1.DeferredContentAware,
350
+ inputs: ["preserveContent", "preserveContent"]
351
+ }],
433
352
  ngImport: i0
434
353
  });
435
354
  }
@@ -437,23 +356,26 @@ i0.ɵɵngDeclareClassMetadata({
437
356
  minVersion: "12.0.0",
438
357
  version: "21.0.0",
439
358
  ngImport: i0,
440
- type: Tab,
359
+ type: TabPanel,
441
360
  decorators: [{
442
361
  type: Directive,
443
362
  args: [{
444
- selector: '[ngTab]',
445
- exportAs: 'ngTab',
363
+ selector: '[ngTabPanel]',
364
+ exportAs: 'ngTabPanel',
446
365
  host: {
447
- 'role': 'tab',
448
- '[attr.data-active]': 'active()',
366
+ 'role': 'tabpanel',
449
367
  '[attr.id]': '_pattern.id()',
450
368
  '[attr.tabindex]': '_pattern.tabIndex()',
451
- '[attr.aria-selected]': 'selected()',
452
- '[attr.aria-disabled]': '_pattern.disabled()',
453
- '[attr.aria-controls]': '_pattern.controls()'
454
- }
369
+ '[attr.inert]': '!visible() ? true : null',
370
+ '[attr.aria-labelledby]': '_pattern.labelledBy()'
371
+ },
372
+ hostDirectives: [{
373
+ directive: DeferredContentAware,
374
+ inputs: ['preserveContent']
375
+ }]
455
376
  }]
456
377
  }],
378
+ ctorParameters: () => [],
457
379
  propDecorators: {
458
380
  id: [{
459
381
  type: i0.Input,
@@ -463,14 +385,6 @@ i0.ɵɵngDeclareClassMetadata({
463
385
  required: false
464
386
  }]
465
387
  }],
466
- disabled: [{
467
- type: i0.Input,
468
- args: [{
469
- isSignal: true,
470
- alias: "disabled",
471
- required: false
472
- }]
473
- }],
474
388
  value: [{
475
389
  type: i0.Input,
476
390
  args: [{
@@ -481,50 +395,139 @@ i0.ɵɵngDeclareClassMetadata({
481
395
  }]
482
396
  }
483
397
  });
484
- class TabPanel {
398
+
399
+ class Tabs {
485
400
  _elementRef = inject(ElementRef);
486
401
  element = this._elementRef.nativeElement;
487
- _deferredContentAware = inject(DeferredContentAware);
488
- _Tabs = inject(Tabs);
489
- id = input(inject(_IdGenerator).getId('ng-tabpanel-', true), ...(ngDevMode ? [{
402
+ _tablist = signal(undefined, ...(ngDevMode ? [{
403
+ debugName: "_tablist"
404
+ }] : []));
405
+ _unorderedPanels = signal(new Set(), ...(ngDevMode ? [{
406
+ debugName: "_unorderedPanels"
407
+ }] : []));
408
+ _tabPatterns = computed(() => this._tablist()?._tabPatterns(), ...(ngDevMode ? [{
409
+ debugName: "_tabPatterns"
410
+ }] : []));
411
+ _unorderedTabpanelPatterns = computed(() => [...this._unorderedPanels()].map(tabpanel => tabpanel._pattern), ...(ngDevMode ? [{
412
+ debugName: "_unorderedTabpanelPatterns"
413
+ }] : []));
414
+ _register(child) {
415
+ if (child instanceof TabList) {
416
+ this._tablist.set(child);
417
+ }
418
+ if (child instanceof TabPanel) {
419
+ this._unorderedPanels().add(child);
420
+ this._unorderedPanels.set(new Set(this._unorderedPanels()));
421
+ }
422
+ }
423
+ _unregister(child) {
424
+ if (child instanceof TabList) {
425
+ this._tablist.set(undefined);
426
+ }
427
+ if (child instanceof TabPanel) {
428
+ this._unorderedPanels().delete(child);
429
+ this._unorderedPanels.set(new Set(this._unorderedPanels()));
430
+ }
431
+ }
432
+ static ɵfac = i0.ɵɵngDeclareFactory({
433
+ minVersion: "12.0.0",
434
+ version: "21.0.0",
435
+ ngImport: i0,
436
+ type: Tabs,
437
+ deps: [],
438
+ target: i0.ɵɵFactoryTarget.Directive
439
+ });
440
+ static ɵdir = i0.ɵɵngDeclareDirective({
441
+ minVersion: "14.0.0",
442
+ version: "21.0.0",
443
+ type: Tabs,
444
+ isStandalone: true,
445
+ selector: "[ngTabs]",
446
+ providers: [{
447
+ provide: TABS,
448
+ useExisting: Tabs
449
+ }],
450
+ exportAs: ["ngTabs"],
451
+ ngImport: i0
452
+ });
453
+ }
454
+ i0.ɵɵngDeclareClassMetadata({
455
+ minVersion: "12.0.0",
456
+ version: "21.0.0",
457
+ ngImport: i0,
458
+ type: Tabs,
459
+ decorators: [{
460
+ type: Directive,
461
+ args: [{
462
+ selector: '[ngTabs]',
463
+ exportAs: 'ngTabs',
464
+ providers: [{
465
+ provide: TABS,
466
+ useExisting: Tabs
467
+ }]
468
+ }]
469
+ }]
470
+ });
471
+
472
+ class Tab {
473
+ _elementRef = inject(ElementRef);
474
+ element = this._elementRef.nativeElement;
475
+ _tabs = inject(TABS);
476
+ _tabList = inject(TabList);
477
+ id = input(inject(_IdGenerator).getId('ng-tab-', true), ...(ngDevMode ? [{
490
478
  debugName: "id"
491
479
  }] : []));
492
- _tabPattern = computed(() => this._Tabs._tabPatterns()?.find(tab => tab.value() === this.value()), ...(ngDevMode ? [{
493
- debugName: "_tabPattern"
480
+ _tablistPattern = computed(() => this._tabList._pattern, ...(ngDevMode ? [{
481
+ debugName: "_tablistPattern"
494
482
  }] : []));
483
+ _tabpanelPattern = computed(() => this._tabs._unorderedTabpanelPatterns().find(tabpanel => tabpanel.value() === this.value()), ...(ngDevMode ? [{
484
+ debugName: "_tabpanelPattern"
485
+ }] : []));
486
+ disabled = input(false, ...(ngDevMode ? [{
487
+ debugName: "disabled",
488
+ transform: booleanAttribute
489
+ }] : [{
490
+ transform: booleanAttribute
491
+ }]));
495
492
  value = input.required(...(ngDevMode ? [{
496
493
  debugName: "value"
497
494
  }] : []));
498
- visible = computed(() => !this._pattern.hidden(), ...(ngDevMode ? [{
499
- debugName: "visible"
495
+ active = computed(() => this._pattern.active(), ...(ngDevMode ? [{
496
+ debugName: "active"
500
497
  }] : []));
501
- _pattern = new TabPanelPattern({
498
+ selected = computed(() => this._pattern.selected(), ...(ngDevMode ? [{
499
+ debugName: "selected"
500
+ }] : []));
501
+ _pattern = new TabPattern({
502
502
  ...this,
503
- tab: this._tabPattern
503
+ tablist: this._tablistPattern,
504
+ tabpanel: this._tabpanelPattern,
505
+ expanded: signal(false),
506
+ element: () => this.element
504
507
  });
505
- constructor() {
506
- afterRenderEffect(() => this._deferredContentAware.contentVisible.set(this.visible()));
508
+ open() {
509
+ this._pattern.open();
507
510
  }
508
511
  ngOnInit() {
509
- this._Tabs._register(this);
512
+ this._tabList._register(this);
510
513
  }
511
514
  ngOnDestroy() {
512
- this._Tabs._unregister(this);
515
+ this._tabList._unregister(this);
513
516
  }
514
517
  static ɵfac = i0.ɵɵngDeclareFactory({
515
518
  minVersion: "12.0.0",
516
519
  version: "21.0.0",
517
520
  ngImport: i0,
518
- type: TabPanel,
521
+ type: Tab,
519
522
  deps: [],
520
523
  target: i0.ɵɵFactoryTarget.Directive
521
524
  });
522
525
  static ɵdir = i0.ɵɵngDeclareDirective({
523
526
  minVersion: "17.1.0",
524
527
  version: "21.0.0",
525
- type: TabPanel,
528
+ type: Tab,
526
529
  isStandalone: true,
527
- selector: "[ngTabPanel]",
530
+ selector: "[ngTab]",
528
531
  inputs: {
529
532
  id: {
530
533
  classPropertyName: "id",
@@ -533,6 +536,13 @@ class TabPanel {
533
536
  isRequired: false,
534
537
  transformFunction: null
535
538
  },
539
+ disabled: {
540
+ classPropertyName: "disabled",
541
+ publicName: "disabled",
542
+ isSignal: true,
543
+ isRequired: false,
544
+ transformFunction: null
545
+ },
536
546
  value: {
537
547
  classPropertyName: "value",
538
548
  publicName: "value",
@@ -543,20 +553,18 @@ class TabPanel {
543
553
  },
544
554
  host: {
545
555
  attributes: {
546
- "role": "tabpanel"
556
+ "role": "tab"
547
557
  },
548
558
  properties: {
559
+ "attr.data-active": "active()",
549
560
  "attr.id": "_pattern.id()",
550
561
  "attr.tabindex": "_pattern.tabIndex()",
551
- "attr.inert": "!visible() ? true : null",
552
- "attr.aria-labelledby": "_pattern.labelledBy()"
562
+ "attr.aria-selected": "selected()",
563
+ "attr.aria-disabled": "_pattern.disabled()",
564
+ "attr.aria-controls": "_pattern.controls()"
553
565
  }
554
566
  },
555
- exportAs: ["ngTabPanel"],
556
- hostDirectives: [{
557
- directive: i1.DeferredContentAware,
558
- inputs: ["preserveContent", "preserveContent"]
559
- }],
567
+ exportAs: ["ngTab"],
560
568
  ngImport: i0
561
569
  });
562
570
  }
@@ -564,26 +572,23 @@ i0.ɵɵngDeclareClassMetadata({
564
572
  minVersion: "12.0.0",
565
573
  version: "21.0.0",
566
574
  ngImport: i0,
567
- type: TabPanel,
575
+ type: Tab,
568
576
  decorators: [{
569
577
  type: Directive,
570
578
  args: [{
571
- selector: '[ngTabPanel]',
572
- exportAs: 'ngTabPanel',
579
+ selector: '[ngTab]',
580
+ exportAs: 'ngTab',
573
581
  host: {
574
- 'role': 'tabpanel',
582
+ 'role': 'tab',
583
+ '[attr.data-active]': 'active()',
575
584
  '[attr.id]': '_pattern.id()',
576
585
  '[attr.tabindex]': '_pattern.tabIndex()',
577
- '[attr.inert]': '!visible() ? true : null',
578
- '[attr.aria-labelledby]': '_pattern.labelledBy()'
579
- },
580
- hostDirectives: [{
581
- directive: DeferredContentAware,
582
- inputs: ['preserveContent']
583
- }]
586
+ '[attr.aria-selected]': 'selected()',
587
+ '[attr.aria-disabled]': '_pattern.disabled()',
588
+ '[attr.aria-controls]': '_pattern.controls()'
589
+ }
584
590
  }]
585
591
  }],
586
- ctorParameters: () => [],
587
592
  propDecorators: {
588
593
  id: [{
589
594
  type: i0.Input,
@@ -593,6 +598,14 @@ i0.ɵɵngDeclareClassMetadata({
593
598
  required: false
594
599
  }]
595
600
  }],
601
+ disabled: [{
602
+ type: i0.Input,
603
+ args: [{
604
+ isSignal: true,
605
+ alias: "disabled",
606
+ required: false
607
+ }]
608
+ }],
596
609
  value: [{
597
610
  type: i0.Input,
598
611
  args: [{
@@ -603,6 +616,7 @@ i0.ɵɵngDeclareClassMetadata({
603
616
  }]
604
617
  }
605
618
  });
619
+
606
620
  class TabContent {
607
621
  static ɵfac = i0.ɵɵngDeclareFactory({
608
622
  minVersion: "12.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/src/aria/tabs/tabs.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 {_IdGenerator} from '@angular/cdk/a11y';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {\n booleanAttribute,\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n signal,\n afterRenderEffect,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {\n TabListPattern,\n TabPanelPattern,\n TabPattern,\n DeferredContent,\n DeferredContentAware,\n} from '@angular/aria/private';\n\ninterface HasElement {\n element: 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 Tabs container.\n *\n * The `ngTabs` directive represents a set of layered sections of content. It acts as the\n * overarching container for a tabbed interface, coordinating the behavior of `ngTabList`,\n * `ngTab`, and `ngTabPanel` directives.\n *\n * ```html\n * <div ngTabs>\n * <ul ngTabList [(selectedTab)]=\"selectedTabValue\">\n * <li ngTab value=\"tab1\">Tab 1</li>\n * <li ngTab value=\"tab2\">Tab 2</li>\n * <li ngTab value=\"tab3\">Tab 3</li>\n * </ul>\n *\n * <div ngTabPanel value=\"tab1\">\n * <ng-template ngTabContent>Content for Tab 1</ng-template>\n * </div>\n * <div ngTabPanel value=\"tab2\">\n * <ng-template ngTabContent>Content for Tab 2</ng-template>\n * </div>\n * <div ngTabPanel value=\"tab3\">\n * <ng-template ngTabContent>Content for Tab 3</ng-template>\n * </div>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTabs]',\n exportAs: 'ngTabs',\n})\nexport class Tabs {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The TabList nested inside of the container. */\n private readonly _tablist = signal<TabList | undefined>(undefined);\n\n /** The TabPanels nested inside of the container. */\n private readonly _unorderedPanels = signal(new Set<TabPanel>());\n\n /** The Tab UIPattern of the child Tabs. */\n readonly _tabPatterns = computed(() => this._tablist()?._tabPatterns());\n\n /** The TabPanel UIPattern of the child TabPanels. */\n readonly _unorderedTabpanelPatterns = computed(() =>\n [...this._unorderedPanels()].map(tabpanel => tabpanel._pattern),\n );\n\n _register(child: TabList | TabPanel) {\n if (child instanceof TabList) {\n this._tablist.set(child);\n }\n\n if (child instanceof TabPanel) {\n this._unorderedPanels().add(child);\n this._unorderedPanels.set(new Set(this._unorderedPanels()));\n }\n }\n\n _unregister(child: TabList | TabPanel) {\n if (child instanceof TabList) {\n this._tablist.set(undefined);\n }\n\n if (child instanceof TabPanel) {\n this._unorderedPanels().delete(child);\n this._unorderedPanels.set(new Set(this._unorderedPanels()));\n }\n }\n}\n\n/**\n * A TabList container.\n *\n * The `ngTabList` directive controls a list of `ngTab` elements. It manages keyboard\n * navigation, selection, and the overall orientation of the tabs. It should be placed\n * within an `ngTabs` container.\n *\n * ```html\n * <ul ngTabList [(selectedTab)]=\"mySelectedTab\" orientation=\"horizontal\" selectionMode=\"explicit\">\n * <li ngTab value=\"first\">First Tab</li>\n * <li ngTab value=\"second\">Second Tab</li>\n * </ul>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTabList]',\n exportAs: 'ngTabList',\n host: {\n 'role': 'tablist',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.aria-orientation]': '_pattern.orientation()',\n '[attr.aria-activedescendant]': '_pattern.activeDescendant()',\n '(keydown)': '_pattern.onKeydown($event)',\n '(pointerdown)': '_pattern.onPointerdown($event)',\n '(focusin)': '_onFocus()',\n },\n})\nexport class TabList implements OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Tabs. */\n private readonly _tabs = inject(Tabs);\n\n /** The Tabs nested inside of the TabList. */\n private readonly _unorderedTabs = signal(new Set<Tab>());\n\n /** Text direction. */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** The Tab UIPatterns of the child Tabs. */\n readonly _tabPatterns = computed(() =>\n [...this._unorderedTabs()].sort(sortDirectives).map(tab => tab._pattern),\n );\n\n /** Whether the tablist is vertically or horizontally oriented. */\n readonly orientation = input<'vertical' | 'horizontal'>('horizontal');\n\n /** Whether focus should wrap when navigating. */\n readonly wrap = input(true, {transform: booleanAttribute});\n\n /**\n * Whether to allow disabled items to receive focus. When `true`, disabled items are\n * focusable but not interactive. When `false`, disabled items are skipped during navigation.\n */\n readonly softDisabled = input(true, {transform: booleanAttribute});\n\n /**\n * The focus strategy used by the tablist.\n * - `roving`: Focus is moved to the active tab using `tabindex`.\n * - `activedescendant`: Focus remains on the tablist container, and `aria-activedescendant` is used to indicate the active tab.\n */\n readonly focusMode = input<'roving' | 'activedescendant'>('roving');\n\n /**\n * The selection strategy used by the tablist.\n * - `follow`: The focused tab is automatically selected.\n * - `explicit`: Tabs are selected explicitly by the user (e.g., via click or spacebar).\n */\n readonly selectionMode = input<'follow' | 'explicit'>('follow');\n\n /** The current selected tab. */\n readonly selectedTab = model<string | undefined>();\n\n /** Whether the tablist is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The TabList UIPattern. */\n readonly _pattern: TabListPattern = new TabListPattern({\n ...this,\n items: this._tabPatterns,\n activeItem: signal(undefined),\n element: () => this._elementRef.nativeElement,\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 afterRenderEffect(() => {\n const tab = this._pattern.selectedTab();\n if (tab) {\n this.selectedTab.set(tab.value());\n }\n });\n\n afterRenderEffect(() => {\n const value = this.selectedTab();\n if (value) {\n this._pattern.open(value);\n }\n });\n }\n\n _onFocus() {\n this._hasFocused.set(true);\n }\n\n ngOnInit() {\n this._tabs._register(this);\n }\n\n ngOnDestroy() {\n this._tabs._unregister(this);\n }\n\n _register(child: Tab) {\n this._unorderedTabs().add(child);\n this._unorderedTabs.set(new Set(this._unorderedTabs()));\n }\n\n _unregister(child: Tab) {\n this._unorderedTabs().delete(child);\n this._unorderedTabs.set(new Set(this._unorderedTabs()));\n }\n\n /** Opens the tab panel with the specified value. */\n open(value: string): boolean {\n return this._pattern.open(value);\n }\n}\n\n/**\n * A selectable tab in a TabList.\n *\n * The `ngTab` directive represents an individual tab control within an `ngTabList`. It\n * requires a `value` that uniquely identifies it and links it to a corresponding `ngTabPanel`.\n *\n * ```html\n * <li ngTab value=\"myTabId\" [disabled]=\"isTabDisabled\">\n * My Tab Label\n * </li>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTab]',\n exportAs: 'ngTab',\n host: {\n 'role': 'tab',\n '[attr.data-active]': 'active()',\n '[attr.id]': '_pattern.id()',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.aria-selected]': 'selected()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.aria-controls]': '_pattern.controls()',\n },\n})\nexport class Tab implements HasElement, OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Tabs. */\n private readonly _tabs = inject(Tabs);\n\n /** The parent TabList. */\n private readonly _tabList = inject(TabList);\n\n /** A unique identifier for the widget. */\n readonly id = input(inject(_IdGenerator).getId('ng-tab-', true));\n\n /** The parent TabList UIPattern. */\n private readonly _tablistPattern = computed(() => this._tabList._pattern);\n\n /** The TabPanel UIPattern associated with the tab */\n private readonly _tabpanelPattern = computed(() =>\n this._tabs._unorderedTabpanelPatterns().find(tabpanel => tabpanel.value() === this.value()),\n );\n\n /** Whether a tab is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The remote tabpanel unique identifier. */\n readonly value = input.required<string>();\n\n /** Whether the tab is active. */\n readonly active = computed(() => this._pattern.active());\n\n /** Whether the tab is selected. */\n readonly selected = computed(() => this._pattern.selected());\n\n /** The Tab UIPattern. */\n readonly _pattern: TabPattern = new TabPattern({\n ...this,\n tablist: this._tablistPattern,\n tabpanel: this._tabpanelPattern,\n expanded: signal(false),\n element: () => this.element,\n });\n\n /** Opens this tab panel. */\n open() {\n this._pattern.open();\n }\n\n ngOnInit() {\n this._tabList._register(this);\n }\n\n ngOnDestroy() {\n this._tabList._unregister(this);\n }\n}\n\n/**\n * A TabPanel container for the resources of layered content associated with a tab.\n *\n * The `ngTabPanel` directive holds the content for a specific tab. It is linked to an\n * `ngTab` by a matching `value`. If a tab panel is hidden, the `inert` attribute will be\n * applied to remove it from the accessibility tree. Proper styling is required for visual hiding.\n *\n * ```html\n * <div ngTabPanel value=\"myTabId\">\n * <ng-template ngTabContent>\n * <!-- Content for the tab panel -->\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTabPanel]',\n exportAs: 'ngTabPanel',\n host: {\n 'role': 'tabpanel',\n '[attr.id]': '_pattern.id()',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.inert]': '!visible() ? true : null',\n '[attr.aria-labelledby]': '_pattern.labelledBy()',\n },\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n})\nexport class TabPanel implements OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** The parent Tabs. */\n private readonly _Tabs = inject(Tabs);\n\n /** A global unique identifier for the tab. */\n readonly id = input(inject(_IdGenerator).getId('ng-tabpanel-', true));\n\n /** The Tab UIPattern associated with the tabpanel */\n private readonly _tabPattern = computed(() =>\n this._Tabs._tabPatterns()?.find(tab => tab.value() === this.value()),\n );\n\n /** A local unique identifier for the tabpanel. */\n readonly value = input.required<string>();\n\n /** Whether the tab panel is visible. */\n readonly visible = computed(() => !this._pattern.hidden());\n\n /** The TabPanel UIPattern. */\n readonly _pattern: TabPanelPattern = new TabPanelPattern({\n ...this,\n tab: this._tabPattern,\n });\n\n constructor() {\n afterRenderEffect(() => this._deferredContentAware.contentVisible.set(this.visible()));\n }\n\n ngOnInit() {\n this._Tabs._register(this);\n }\n\n ngOnDestroy() {\n this._Tabs._unregister(this);\n }\n}\n\n/**\n * A TabContent container for the lazy-loaded content.\n *\n * This structural directive should be applied to an `ng-template` within an `ngTabPanel`.\n * It enables lazy loading of the tab's content, meaning the content is only rendered\n * when the tab is activated for the first time.\n *\n * ```html\n * <div ngTabPanel value=\"myTabId\">\n * <ng-template ngTabContent>\n * <p>This content will be loaded when 'myTabId' is selected.</p>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'ng-template[ngTabContent]',\n exportAs: 'ngTabContent',\n hostDirectives: [DeferredContent],\n})\nexport class TabContent {}\n"],"names":["sortDirectives","a","b","element","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","Tabs","_elementRef","inject","ElementRef","nativeElement","_tablist","signal","undefined","_unorderedPanels","Set","_tabPatterns","computed","_unorderedTabpanelPatterns","map","tabpanel","_pattern","ngDevMode","debugName","_register","child","TabList","set","TabPanel","add","_unregister","delete","deps","target","i0","ɵɵFactoryTarget","Directive","isStandalone","selector","exportAs","ngImport","decorators","args","_tabs","_unorderedTabs","textDirection","Directionality","valueSignal","sort","tab","orientation","input","wrap","transform","booleanAttribute","softDisabled","focusMode","selectionMode","selectedTab","model","disabled","TabListPattern","items","activeItem","_hasFocused","constructor","afterRenderEffect","setDefaultState","value","open","_onFocus","ngOnInit","ngOnDestroy","inputs","classPropertyName","publicName","isSignal","isRequired","transformFunction","outputs","host","attributes","listeners","properties","Tab","_tabList","id","_IdGenerator","getId","_tablistPattern","_tabpanelPattern","find","required","active","selected","TabPattern","tablist","expanded","_deferredContentAware","DeferredContentAware","_Tabs","_tabPattern","visible","hidden","TabPanelPattern","contentVisible","hostDirectives","directive","i1","TabContent","DeferredContent"],"mappings":";;;;;;;AAsCA,SAASA,cAAcA,CAACC,CAAa,EAAEC,CAAa,EAAA;EAClD,OAAO,CAACD,CAAC,CAACE,OAAO,CAACC,uBAAuB,CAACF,CAAC,CAACC,OAAO,CAAC,GAAGE,IAAI,CAACC,2BAA2B,IAAI,CAAA,GACvF,CAAA,GACA,CAAC,CAAC;AACR;MAmCaC,IAAI,CAAA;AAEEC,EAAAA,WAAW,GAAGC,MAAM,CAACC,UAAU,CAAC;AAGxCP,EAAAA,OAAO,GAAG,IAAI,CAACK,WAAW,CAACG,aAA4B;EAG/CC,QAAQ,GAAGC,MAAM,CAAsBC,SAAS;;WAAC;EAGjDC,gBAAgB,GAAGF,MAAM,CAAC,IAAIG,GAAG,EAAY;;WAAC;AAGtDC,EAAAA,YAAY,GAAGC,QAAQ,CAAC,MAAM,IAAI,CAACN,QAAQ,EAAE,EAAEK,YAAY,EAAE;;WAAC;EAG9DE,0BAA0B,GAAGD,QAAQ,CAAC,MAC7C,CAAC,GAAG,IAAI,CAACH,gBAAgB,EAAE,CAAC,CAACK,GAAG,CAACC,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,CAAC,EAAA,IAAAC,SAAA,GAAA,CAAA;AAAAC,IAAAA,SAAA,EAAA;AAAA,GAAA,CAAA,GAAA,EAAA,CAAA,CAChE;EAEDC,SAASA,CAACC,KAAyB,EAAA;IACjC,IAAIA,KAAK,YAAYC,OAAO,EAAE;AAC5B,MAAA,IAAI,CAACf,QAAQ,CAACgB,GAAG,CAACF,KAAK,CAAC;AAC1B;IAEA,IAAI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EAAA,CAAA;UAjBpBL,SAAS;AAACM,IAAAA,IAAA,EAAA,CAAA;AACTJ,MAAAA,QAAQ,EAAE,cAAc;AACxBC,MAAAA,QAAQ,EAAE,YAAY;AACtByC,MAAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,UAAU;AAClB,QAAA,WAAW,EAAE,eAAe;AAC5B,QAAA,iBAAiB,EAAE,qBAAqB;AACxC,QAAA,cAAc,EAAE,0BAA0B;AAC1C,QAAA,wBAAwB,EAAE;OAC3B;AACD0B,MAAAA,cAAc,EAAE,CACd;AACEC,QAAAA,SAAS,EAAER,oBAAoB;QAC/B1B,MAAM,EAAE,CAAC,iBAAiB;OAC3B;KAEJ;;;;;;;;;;;;;;;;;;;;;;MAqEYoC,UAAU,CAAA;;;;;UAAVA,UAAU;AAAA7E,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;UAAVyE,UAAU;AAAAxE,IAAAA,YAAA,EAAA,IAAA;AAAAC,IAAAA,QAAA,EAAA,2BAAA;IAAAC,QAAA,EAAA,CAAA,cAAA,CAAA;AAAAmE,IAAAA,cAAA,EAAA,CAAA;MAAAC,SAAA,EAAAC,EAAA,CAAAE;AAAA,KAAA,CAAA;AAAAtE,IAAAA,QAAA,EAAAN;AAAA,GAAA,CAAA;;;;;;QAAV2E,UAAU;AAAApE,EAAAA,UAAA,EAAA,CAAA;UALtBL,SAAS;AAACM,IAAAA,IAAA,EAAA,CAAA;AACTJ,MAAAA,QAAQ,EAAE,2BAA2B;AACrCC,MAAAA,QAAQ,EAAE,cAAc;MACxBmE,cAAc,EAAE,CAACI,eAAe;KACjC;;;;;;"}
1
+ {"version":3,"file":"tabs.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/tabs/utils.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/tabs/tab-list.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/tabs/tab-panel.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/tabs/tabs.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/tabs/tab.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/tabs/tab-content.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 {InjectionToken} from '@angular/core';\nimport type {Tabs} from './tabs';\n\n/** Token used to expose the `Tabs` directive to child directives. */\nexport const TABS = new InjectionToken<Tabs>('TABS');\n\nexport interface HasElement {\n element: HTMLElement;\n}\n\n/**\n * Sort directives by their document order.\n */\nexport function sortDirectives(a: HasElement, b: HasElement) {\n return (a.element.compareDocumentPosition(b.element) & Node.DOCUMENT_POSITION_PRECEDING) > 0\n ? 1\n : -1;\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 {Directionality} from '@angular/cdk/bidi';\nimport {\n booleanAttribute,\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n signal,\n afterRenderEffect,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {TabListPattern} from '@angular/aria/private';\nimport {sortDirectives, TABS} from './utils';\nimport type {Tab} from './tab';\n\n/**\n * A TabList container.\n *\n * The `ngTabList` directive controls a list of `ngTab` elements. It manages keyboard\n * navigation, selection, and the overall orientation of the tabs. It should be placed\n * within an `ngTabs` container.\n *\n * ```html\n * <ul ngTabList [(selectedTab)]=\"mySelectedTab\" orientation=\"horizontal\" selectionMode=\"explicit\">\n * <li ngTab value=\"first\">First Tab</li>\n * <li ngTab value=\"second\">Second Tab</li>\n * </ul>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTabList]',\n exportAs: 'ngTabList',\n host: {\n 'role': 'tablist',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.aria-orientation]': '_pattern.orientation()',\n '[attr.aria-activedescendant]': '_pattern.activeDescendant()',\n '(keydown)': '_pattern.onKeydown($event)',\n '(pointerdown)': '_pattern.onPointerdown($event)',\n '(focusin)': '_onFocus()',\n },\n})\nexport class TabList implements OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Tabs. */\n private readonly _tabs = inject(TABS);\n\n /** The Tabs nested inside of the TabList. */\n private readonly _unorderedTabs = signal(new Set<Tab>());\n\n /** Text direction. */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** The Tab UIPatterns of the child Tabs. */\n readonly _tabPatterns = computed(() =>\n [...this._unorderedTabs()].sort(sortDirectives).map(tab => tab._pattern),\n );\n\n /** Whether the tablist is vertically or horizontally oriented. */\n readonly orientation = input<'vertical' | 'horizontal'>('horizontal');\n\n /** Whether focus should wrap when navigating. */\n readonly wrap = input(true, {transform: booleanAttribute});\n\n /**\n * Whether to allow disabled items to receive focus. When `true`, disabled items are\n * focusable but not interactive. When `false`, disabled items are skipped during navigation.\n */\n readonly softDisabled = input(true, {transform: booleanAttribute});\n\n /**\n * The focus strategy used by the tablist.\n * - `roving`: Focus is moved to the active tab using `tabindex`.\n * - `activedescendant`: Focus remains on the tablist container, and `aria-activedescendant` is used to indicate the active tab.\n */\n readonly focusMode = input<'roving' | 'activedescendant'>('roving');\n\n /**\n * The selection strategy used by the tablist.\n * - `follow`: The focused tab is automatically selected.\n * - `explicit`: Tabs are selected explicitly by the user (e.g., via click or spacebar).\n */\n readonly selectionMode = input<'follow' | 'explicit'>('follow');\n\n /** The current selected tab. */\n readonly selectedTab = model<string | undefined>();\n\n /** Whether the tablist is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The TabList UIPattern. */\n readonly _pattern: TabListPattern = new TabListPattern({\n ...this,\n items: this._tabPatterns,\n activeItem: signal(undefined),\n element: () => this._elementRef.nativeElement,\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 afterRenderEffect(() => {\n const tab = this._pattern.selectedTab();\n if (tab) {\n this.selectedTab.set(tab.value());\n }\n });\n\n afterRenderEffect(() => {\n const value = this.selectedTab();\n if (value) {\n this._pattern.open(value);\n }\n });\n }\n\n _onFocus() {\n this._hasFocused.set(true);\n }\n\n ngOnInit() {\n this._tabs._register(this);\n }\n\n ngOnDestroy() {\n this._tabs._unregister(this);\n }\n\n _register(child: Tab) {\n this._unorderedTabs().add(child);\n this._unorderedTabs.set(new Set(this._unorderedTabs()));\n }\n\n _unregister(child: Tab) {\n this._unorderedTabs().delete(child);\n this._unorderedTabs.set(new Set(this._unorderedTabs()));\n }\n\n /** Opens the tab panel with the specified value. */\n open(value: string): boolean {\n return this._pattern.open(value);\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 {_IdGenerator} from '@angular/cdk/a11y';\nimport {\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n afterRenderEffect,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {TabPanelPattern, DeferredContentAware} from '@angular/aria/private';\nimport {TABS} from './utils';\n\n/**\n * A TabPanel container for the resources of layered content associated with a tab.\n *\n * The `ngTabPanel` directive holds the content for a specific tab. It is linked to an\n * `ngTab` by a matching `value`. If a tab panel is hidden, the `inert` attribute will be\n * applied to remove it from the accessibility tree. Proper styling is required for visual hiding.\n *\n * ```html\n * <div ngTabPanel value=\"myTabId\">\n * <ng-template ngTabContent>\n * <!-- Content for the tab panel -->\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTabPanel]',\n exportAs: 'ngTabPanel',\n host: {\n 'role': 'tabpanel',\n '[attr.id]': '_pattern.id()',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.inert]': '!visible() ? true : null',\n '[attr.aria-labelledby]': '_pattern.labelledBy()',\n },\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n})\nexport class TabPanel implements OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** The parent Tabs. */\n private readonly _tabs = inject(TABS);\n\n /** A global unique identifier for the tab. */\n readonly id = input(inject(_IdGenerator).getId('ng-tabpanel-', true));\n\n /** The Tab UIPattern associated with the tabpanel */\n private readonly _tabPattern = computed(() =>\n this._tabs._tabPatterns()?.find(tab => tab.value() === this.value()),\n );\n\n /** A local unique identifier for the tabpanel. */\n readonly value = input.required<string>();\n\n /** Whether the tab panel is visible. */\n readonly visible = computed(() => !this._pattern.hidden());\n\n /** The TabPanel UIPattern. */\n readonly _pattern: TabPanelPattern = new TabPanelPattern({\n ...this,\n tab: this._tabPattern,\n });\n\n constructor() {\n afterRenderEffect(() => this._deferredContentAware.contentVisible.set(this.visible()));\n }\n\n ngOnInit() {\n this._tabs._register(this);\n }\n\n ngOnDestroy() {\n this._tabs._unregister(this);\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 {computed, Directive, ElementRef, inject, signal} from '@angular/core';\nimport {TabList} from './tab-list';\nimport {TabPanel} from './tab-panel';\nimport {TABS} from './utils';\n\n/**\n * A Tabs container.\n *\n * The `ngTabs` directive represents a set of layered sections of content. It acts as the\n * overarching container for a tabbed interface, coordinating the behavior of `ngTabList`,\n * `ngTab`, and `ngTabPanel` directives.\n *\n * ```html\n * <div ngTabs>\n * <ul ngTabList [(selectedTab)]=\"selectedTabValue\">\n * <li ngTab value=\"tab1\">Tab 1</li>\n * <li ngTab value=\"tab2\">Tab 2</li>\n * <li ngTab value=\"tab3\">Tab 3</li>\n * </ul>\n *\n * <div ngTabPanel value=\"tab1\">\n * <ng-template ngTabContent>Content for Tab 1</ng-template>\n * </div>\n * <div ngTabPanel value=\"tab2\">\n * <ng-template ngTabContent>Content for Tab 2</ng-template>\n * </div>\n * <div ngTabPanel value=\"tab3\">\n * <ng-template ngTabContent>Content for Tab 3</ng-template>\n * </div>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTabs]',\n exportAs: 'ngTabs',\n providers: [{provide: TABS, useExisting: Tabs}],\n})\nexport class Tabs {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The TabList nested inside of the container. */\n private readonly _tablist = signal<TabList | undefined>(undefined);\n\n /** The TabPanels nested inside of the container. */\n private readonly _unorderedPanels = signal(new Set<TabPanel>());\n\n /** The Tab UIPattern of the child Tabs. */\n readonly _tabPatterns = computed(() => this._tablist()?._tabPatterns());\n\n /** The TabPanel UIPattern of the child TabPanels. */\n readonly _unorderedTabpanelPatterns = computed(() =>\n [...this._unorderedPanels()].map(tabpanel => tabpanel._pattern),\n );\n\n _register(child: TabList | TabPanel) {\n if (child instanceof TabList) {\n this._tablist.set(child);\n }\n\n if (child instanceof TabPanel) {\n this._unorderedPanels().add(child);\n this._unorderedPanels.set(new Set(this._unorderedPanels()));\n }\n }\n\n _unregister(child: TabList | TabPanel) {\n if (child instanceof TabList) {\n this._tablist.set(undefined);\n }\n\n if (child instanceof TabPanel) {\n this._unorderedPanels().delete(child);\n this._unorderedPanels.set(new Set(this._unorderedPanels()));\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {\n booleanAttribute,\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n signal,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {TabPattern} from '@angular/aria/private';\nimport {TabList} from './tab-list';\nimport {HasElement, TABS} from './utils';\n\n/**\n * A selectable tab in a TabList.\n *\n * The `ngTab` directive represents an individual tab control within an `ngTabList`. It\n * requires a `value` that uniquely identifies it and links it to a corresponding `ngTabPanel`.\n *\n * ```html\n * <li ngTab value=\"myTabId\" [disabled]=\"isTabDisabled\">\n * My Tab Label\n * </li>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngTab]',\n exportAs: 'ngTab',\n host: {\n 'role': 'tab',\n '[attr.data-active]': 'active()',\n '[attr.id]': '_pattern.id()',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.aria-selected]': 'selected()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.aria-controls]': '_pattern.controls()',\n },\n})\nexport class Tab implements HasElement, OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Tabs. */\n private readonly _tabs = inject(TABS);\n\n /** The parent TabList. */\n private readonly _tabList = inject(TabList);\n\n /** A unique identifier for the widget. */\n readonly id = input(inject(_IdGenerator).getId('ng-tab-', true));\n\n /** The parent TabList UIPattern. */\n private readonly _tablistPattern = computed(() => this._tabList._pattern);\n\n /** The TabPanel UIPattern associated with the tab */\n private readonly _tabpanelPattern = computed(() =>\n this._tabs._unorderedTabpanelPatterns().find(tabpanel => tabpanel.value() === this.value()),\n );\n\n /** Whether a tab is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The remote tabpanel unique identifier. */\n readonly value = input.required<string>();\n\n /** Whether the tab is active. */\n readonly active = computed(() => this._pattern.active());\n\n /** Whether the tab is selected. */\n readonly selected = computed(() => this._pattern.selected());\n\n /** The Tab UIPattern. */\n readonly _pattern: TabPattern = new TabPattern({\n ...this,\n tablist: this._tablistPattern,\n tabpanel: this._tabpanelPattern,\n expanded: signal(false),\n element: () => this.element,\n });\n\n /** Opens this tab panel. */\n open() {\n this._pattern.open();\n }\n\n ngOnInit() {\n this._tabList._register(this);\n }\n\n ngOnDestroy() {\n this._tabList._unregister(this);\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 {Directive} from '@angular/core';\nimport {DeferredContent} from '@angular/aria/private';\n\n/**\n * A TabContent container for the lazy-loaded content.\n *\n * This structural directive should be applied to an `ng-template` within an `ngTabPanel`.\n * It enables lazy loading of the tab's content, meaning the content is only rendered\n * when the tab is activated for the first time.\n *\n * ```html\n * <div ngTabPanel value=\"myTabId\">\n * <ng-template ngTabContent>\n * <p>This content will be loaded when 'myTabId' is selected.</p>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'ng-template[ngTabContent]',\n exportAs: 'ngTabContent',\n hostDirectives: [DeferredContent],\n})\nexport class TabContent {}\n"],"names":["TABS","InjectionToken","sortDirectives","a","b","element","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","TabList","_elementRef","inject","ElementRef","nativeElement","_tabs","_unorderedTabs","signal","Set","textDirection","Directionality","valueSignal","_tabPatterns","computed","sort","map","tab","_pattern","orientation","input","wrap","transform","booleanAttribute","softDisabled","focusMode","selectionMode","selectedTab","model","ngDevMode","undefined","debugName","disabled","TabListPattern","items","activeItem","_hasFocused","constructor","afterRenderEffect","setDefaultState","set","value","open","_onFocus","ngOnInit","_register","ngOnDestroy","_unregister","child","add","delete","deps","target","i0","ɵɵFactoryTarget","Directive","isStandalone","selector","inputs","classPropertyName","publicName","isSignal","isRequired","transformFunction","outputs","host","attributes","listeners","properties","exportAs","ngImport","decorators","args","TabPanel","_deferredContentAware","DeferredContentAware","id","_IdGenerator","getId","_tabPattern","find","required","visible","hidden","TabPanelPattern","contentVisible","hostDirectives","directive","i1","Tabs","_tablist","_unorderedPanels","_unorderedTabpanelPatterns","tabpanel","providers","provide","useExisting","Tab","_tabList","_tablistPattern","_tabpanelPattern","active","selected","TabPattern","tablist","expanded","TabContent","DeferredContent"],"mappings":";;;;;;;AAYO,MAAMA,IAAI,GAAG,IAAIC,cAAc,CAAO,MAAM,CAAC;AASpC,SAAAC,cAAcA,CAACC,CAAa,EAAEC,CAAa,EAAA;EACzD,OAAO,CAACD,CAAC,CAACE,OAAO,CAACC,uBAAuB,CAACF,CAAC,CAACC,OAAO,CAAC,GAAGE,IAAI,CAACC,2BAA2B,IAAI,CAAA,GACvF,CAAA,GACA,CAAC,CAAC;AACR;;MC+BaC,OAAO,CAAA;AAEDC,EAAAA,WAAW,GAAGC,MAAM,CAACC,UAAU,CAAC;AAGxCP,EAAAA,OAAO,GAAG,IAAI,CAACK,WAAW,CAACG,aAA4B;AAG/CC,EAAAA,KAAK,GAAGH,MAAM,CAACX,IAAI,CAAC;EAGpBe,cAAc,GAAGC,MAAM,CAAC,IAAIC,GAAG,EAAO;;WAAC;AAG/CC,EAAAA,aAAa,GAAGP,MAAM,CAACQ,cAAc,CAAC,CAACC,WAAW;AAGlDC,EAAAA,YAAY,GAAGC,QAAQ,CAAC,MAC/B,CAAC,GAAG,IAAI,CAACP,cAAc,EAAE,CAAC,CAACQ,IAAI,CAACrB,cAAc,CAAC,CAACsB,GAAG,CAACC,GAAG,IAAIA,GAAG,CAACC,QAAQ,CAAC;;WACzE;EAGQC,WAAW,GAAGC,KAAK,CAA4B,YAAY;;WAAC;EAG5DC,IAAI,GAAGD,KAAK,CAAC,IAAI;;AAAG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