@angular/aria 0.0.0 → 21.0.0-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2025 Google LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,6 @@
1
+ Angular Material
2
+ =======
3
+
4
+ The sources for this package are in the main [Angular Material](https://github.com/angular/components) repo. Please file issues and pull requests against that repo.
5
+
6
+ License: MIT
@@ -0,0 +1,192 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, input, signal, afterRenderEffect, Directive, ElementRef, booleanAttribute, computed, contentChildren, model } from '@angular/core';
3
+ import { _IdGenerator } from '@angular/cdk/a11y';
4
+ import { Directionality } from '@angular/cdk/bidi';
5
+ import * as i1 from '@angular/aria/deferred-content';
6
+ import { DeferredContentAware, DeferredContent } from '@angular/aria/deferred-content';
7
+ import { AccordionPanelPattern, AccordionTriggerPattern, AccordionGroupPattern } from '@angular/aria/ui-patterns';
8
+
9
+ /**
10
+ * Represents the content panel of an accordion item. It is controlled by an
11
+ * associated `AccordionTrigger`.
12
+ */
13
+ class AccordionPanel {
14
+ /** The DeferredContentAware host directive. */
15
+ _deferredContentAware = inject(DeferredContentAware);
16
+ /** A global unique identifier for the panel. */
17
+ _id = inject(_IdGenerator).getId('accordion-trigger-');
18
+ /** A local unique identifier for the panel, used to match with its trigger's value. */
19
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
20
+ /** The parent accordion trigger pattern that controls this panel. This is set by AccordionGroup. */
21
+ accordionTrigger = signal(undefined, ...(ngDevMode ? [{ debugName: "accordionTrigger" }] : []));
22
+ /** The UI pattern instance for this panel. */
23
+ pattern = new AccordionPanelPattern({
24
+ id: () => this._id,
25
+ value: this.value,
26
+ accordionTrigger: () => this.accordionTrigger(),
27
+ });
28
+ constructor() {
29
+ // Connect the panel's hidden state to the DeferredContentAware's visibility.
30
+ afterRenderEffect(() => {
31
+ this._deferredContentAware.contentVisible.set(!this.pattern.hidden());
32
+ });
33
+ }
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionPanel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
35
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.2", type: AccordionPanel, isStandalone: true, selector: "[ngAccordionPanel]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "role": "region" }, properties: { "attr.id": "pattern.id()", "attr.aria-labelledby": "pattern.accordionTrigger()?.id()", "attr.inert": "pattern.hidden() ? true : null" }, classAttribute: "ng-accordion-panel" }, exportAs: ["ngAccordionPanel"], hostDirectives: [{ directive: i1.DeferredContentAware, inputs: ["preserveContent", "preserveContent"] }], ngImport: i0 });
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionPanel, decorators: [{
38
+ type: Directive,
39
+ args: [{
40
+ selector: '[ngAccordionPanel]',
41
+ exportAs: 'ngAccordionPanel',
42
+ hostDirectives: [
43
+ {
44
+ directive: DeferredContentAware,
45
+ inputs: ['preserveContent'],
46
+ },
47
+ ],
48
+ host: {
49
+ 'class': 'ng-accordion-panel',
50
+ 'role': 'region',
51
+ '[attr.id]': 'pattern.id()',
52
+ '[attr.aria-labelledby]': 'pattern.accordionTrigger()?.id()',
53
+ '[attr.inert]': 'pattern.hidden() ? true : null',
54
+ },
55
+ }]
56
+ }], ctorParameters: () => [] });
57
+ /**
58
+ * Represents the trigger button for an accordion item. It controls the expansion
59
+ * state of an associated `AccordionPanel`.
60
+ */
61
+ class AccordionTrigger {
62
+ /** A global unique identifier for the trigger. */
63
+ _id = inject(_IdGenerator).getId('ng-accordion-trigger-');
64
+ /** A reference to the trigger element. */
65
+ _elementRef = inject(ElementRef);
66
+ /** The parent AccordionGroup. */
67
+ _accordionGroup = inject(AccordionGroup);
68
+ /** A local unique identifier for the trigger, used to match with its panel's value. */
69
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
70
+ /** Whether the trigger is disabled. */
71
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
72
+ /**
73
+ * Whether this trigger is completely inaccessible.
74
+ *
75
+ * TODO(ok7sai): Consider move this to UI patterns.
76
+ */
77
+ hardDisabled = computed(() => this.pattern.disabled() && this.pattern.tabindex() < 0, ...(ngDevMode ? [{ debugName: "hardDisabled" }] : []));
78
+ /** The accordion panel pattern controlled by this trigger. This is set by AccordionGroup. */
79
+ accordionPanel = signal(undefined, ...(ngDevMode ? [{ debugName: "accordionPanel" }] : []));
80
+ /** The UI pattern instance for this trigger. */
81
+ pattern = new AccordionTriggerPattern({
82
+ id: () => this._id,
83
+ value: this.value,
84
+ disabled: this.disabled,
85
+ element: () => this._elementRef.nativeElement,
86
+ accordionGroup: computed(() => this._accordionGroup.pattern),
87
+ accordionPanel: this.accordionPanel,
88
+ });
89
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
90
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.2", type: AccordionTrigger, isStandalone: true, selector: "[ngAccordionTrigger]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "button" }, listeners: { "keydown": "pattern.onKeydown($event)", "pointerdown": "pattern.onPointerdown($event)", "focusin": "pattern.onFocus($event)" }, properties: { "attr.data-active": "pattern.active()", "id": "pattern.id()", "attr.aria-expanded": "pattern.expanded()", "attr.aria-controls": "pattern.controls()", "attr.aria-disabled": "pattern.disabled()", "attr.disabled": "hardDisabled() ? true : null", "attr.tabindex": "pattern.tabindex()" }, classAttribute: "ng-accordion-trigger" }, exportAs: ["ngAccordionTrigger"], ngImport: i0 });
91
+ }
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionTrigger, decorators: [{
93
+ type: Directive,
94
+ args: [{
95
+ selector: '[ngAccordionTrigger]',
96
+ exportAs: 'ngAccordionTrigger',
97
+ host: {
98
+ 'class': 'ng-accordion-trigger',
99
+ '[attr.data-active]': 'pattern.active()',
100
+ 'role': 'button',
101
+ '[id]': 'pattern.id()',
102
+ '[attr.aria-expanded]': 'pattern.expanded()',
103
+ '[attr.aria-controls]': 'pattern.controls()',
104
+ '[attr.aria-disabled]': 'pattern.disabled()',
105
+ '[attr.disabled]': 'hardDisabled() ? true : null',
106
+ '[attr.tabindex]': 'pattern.tabindex()',
107
+ '(keydown)': 'pattern.onKeydown($event)',
108
+ '(pointerdown)': 'pattern.onPointerdown($event)',
109
+ '(focusin)': 'pattern.onFocus($event)',
110
+ },
111
+ }]
112
+ }] });
113
+ /**
114
+ * Container for a group of accordion items. It manages the overall state and
115
+ * interactions of the accordion, such as keyboard navigation and expansion mode.
116
+ */
117
+ class AccordionGroup {
118
+ /** A reference to the group element. */
119
+ _elementRef = inject(ElementRef);
120
+ /** The AccordionTriggers nested inside this group. */
121
+ _triggers = contentChildren(AccordionTrigger, ...(ngDevMode ? [{ debugName: "_triggers", descendants: true }] : [{ descendants: true }]));
122
+ /** The AccordionPanels nested inside this group. */
123
+ _panels = contentChildren(AccordionPanel, ...(ngDevMode ? [{ debugName: "_panels", descendants: true }] : [{ descendants: true }]));
124
+ /** The text direction (ltr or rtl). */
125
+ textDirection = inject(Directionality).valueSignal;
126
+ /** Whether the entire accordion group is disabled. */
127
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
128
+ /** Whether multiple accordion items can be expanded simultaneously. */
129
+ multiExpandable = input(true, ...(ngDevMode ? [{ debugName: "multiExpandable", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
130
+ /** The values of the current selected/expanded accordions. */
131
+ value = model([], ...(ngDevMode ? [{ debugName: "value" }] : []));
132
+ /** Whether disabled items should be skipped during keyboard navigation. */
133
+ skipDisabled = input(true, ...(ngDevMode ? [{ debugName: "skipDisabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
134
+ /** Whether keyboard navigation should wrap around from the last item to the first, and vice-versa. */
135
+ wrap = input(false, ...(ngDevMode ? [{ debugName: "wrap", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
136
+ /** The UI pattern instance for this accordion group. */
137
+ pattern = new AccordionGroupPattern({
138
+ ...this,
139
+ // TODO(ok7sai): Consider making `activeItem` an internal state in the pattern and call
140
+ // `setDefaultState` in the CDK.
141
+ activeItem: signal(undefined),
142
+ items: computed(() => this._triggers().map(trigger => trigger.pattern)),
143
+ expandedIds: this.value,
144
+ // TODO(ok7sai): Investigate whether an accordion should support horizontal mode.
145
+ orientation: () => 'vertical',
146
+ element: () => this._elementRef.nativeElement,
147
+ });
148
+ constructor() {
149
+ // Effect to link triggers with their corresponding panels and update the group's items.
150
+ afterRenderEffect(() => {
151
+ const triggers = this._triggers();
152
+ const panels = this._panels();
153
+ for (const trigger of triggers) {
154
+ const panel = panels.find(p => p.value() === trigger.value());
155
+ trigger.accordionPanel.set(panel?.pattern);
156
+ if (panel) {
157
+ panel.accordionTrigger.set(trigger.pattern);
158
+ }
159
+ }
160
+ });
161
+ }
162
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
163
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.2.0-next.2", type: AccordionGroup, isStandalone: true, selector: "[ngAccordionGroup]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multiExpandable: { classPropertyName: "multiExpandable", publicName: "multiExpandable", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, skipDisabled: { classPropertyName: "skipDisabled", publicName: "skipDisabled", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "ng-accordion-group" }, queries: [{ propertyName: "_triggers", predicate: AccordionTrigger, descendants: true, isSignal: true }, { propertyName: "_panels", predicate: AccordionPanel, descendants: true, isSignal: true }], exportAs: ["ngAccordionGroup"], ngImport: i0 });
164
+ }
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionGroup, decorators: [{
166
+ type: Directive,
167
+ args: [{
168
+ selector: '[ngAccordionGroup]',
169
+ exportAs: 'ngAccordionGroup',
170
+ host: {
171
+ 'class': 'ng-accordion-group',
172
+ },
173
+ }]
174
+ }], ctorParameters: () => [] });
175
+ /**
176
+ * A structural directive that marks the `ng-template` to be used as the content
177
+ * for a `AccordionPanel`. This content can be lazily loaded.
178
+ */
179
+ class AccordionContent {
180
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
181
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: AccordionContent, isStandalone: true, selector: "ng-template[ngAccordionContent]", hostDirectives: [{ directive: i1.DeferredContent }], ngImport: i0 });
182
+ }
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AccordionContent, decorators: [{
184
+ type: Directive,
185
+ args: [{
186
+ selector: 'ng-template[ngAccordionContent]',
187
+ hostDirectives: [DeferredContent],
188
+ }]
189
+ }] });
190
+
191
+ export { AccordionContent, AccordionGroup, AccordionPanel, AccordionTrigger };
192
+ //# sourceMappingURL=accordion.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/aria/accordion/accordion.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n Directive,\n input,\n ElementRef,\n inject,\n contentChildren,\n afterRenderEffect,\n signal,\n model,\n booleanAttribute,\n computed,\n WritableSignal,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {DeferredContent, DeferredContentAware} from '@angular/aria/deferred-content';\nimport {\n AccordionGroupPattern,\n AccordionPanelPattern,\n AccordionTriggerPattern,\n} from '@angular/aria/ui-patterns';\n\n/**\n * Represents the content panel of an accordion item. It is controlled by an\n * associated `AccordionTrigger`.\n */\n@Directive({\n selector: '[ngAccordionPanel]',\n exportAs: 'ngAccordionPanel',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n 'class': 'ng-accordion-panel',\n 'role': 'region',\n '[attr.id]': 'pattern.id()',\n '[attr.aria-labelledby]': 'pattern.accordionTrigger()?.id()',\n '[attr.inert]': 'pattern.hidden() ? true : null',\n },\n})\nexport class AccordionPanel {\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** A global unique identifier for the panel. */\n private readonly _id = inject(_IdGenerator).getId('accordion-trigger-');\n\n /** A local unique identifier for the panel, used to match with its trigger's value. */\n value = input.required<string>();\n\n /** The parent accordion trigger pattern that controls this panel. This is set by AccordionGroup. */\n readonly accordionTrigger: WritableSignal<AccordionTriggerPattern | undefined> =\n signal(undefined);\n\n /** The UI pattern instance for this panel. */\n readonly pattern: AccordionPanelPattern = new AccordionPanelPattern({\n id: () => this._id,\n value: this.value,\n accordionTrigger: () => this.accordionTrigger(),\n });\n\n constructor() {\n // Connect the panel's hidden state to the DeferredContentAware's visibility.\n afterRenderEffect(() => {\n this._deferredContentAware.contentVisible.set(!this.pattern.hidden());\n });\n }\n}\n\n/**\n * Represents the trigger button for an accordion item. It controls the expansion\n * state of an associated `AccordionPanel`.\n */\n@Directive({\n selector: '[ngAccordionTrigger]',\n exportAs: 'ngAccordionTrigger',\n host: {\n 'class': 'ng-accordion-trigger',\n '[attr.data-active]': 'pattern.active()',\n 'role': 'button',\n '[id]': 'pattern.id()',\n '[attr.aria-expanded]': 'pattern.expanded()',\n '[attr.aria-controls]': 'pattern.controls()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n '[attr.disabled]': 'hardDisabled() ? true : null',\n '[attr.tabindex]': 'pattern.tabindex()',\n '(keydown)': 'pattern.onKeydown($event)',\n '(pointerdown)': 'pattern.onPointerdown($event)',\n '(focusin)': 'pattern.onFocus($event)',\n },\n})\nexport class AccordionTrigger {\n /** A global unique identifier for the trigger. */\n private readonly _id = inject(_IdGenerator).getId('ng-accordion-trigger-');\n\n /** A reference to the trigger element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** The parent AccordionGroup. */\n private readonly _accordionGroup = inject(AccordionGroup);\n\n /** A local unique identifier for the trigger, used to match with its panel's value. */\n value = input.required<string>();\n\n /** Whether the trigger is disabled. */\n disabled = input(false, {transform: booleanAttribute});\n\n /**\n * Whether this trigger is completely inaccessible.\n *\n * TODO(ok7sai): Consider move this to UI patterns.\n */\n readonly hardDisabled = computed(() => this.pattern.disabled() && this.pattern.tabindex() < 0);\n\n /** The accordion panel pattern controlled by this trigger. This is set by AccordionGroup. */\n readonly accordionPanel: WritableSignal<AccordionPanelPattern | undefined> = signal(undefined);\n\n /** The UI pattern instance for this trigger. */\n readonly pattern: AccordionTriggerPattern = new AccordionTriggerPattern({\n id: () => this._id,\n value: this.value,\n disabled: this.disabled,\n element: () => this._elementRef.nativeElement,\n accordionGroup: computed(() => this._accordionGroup.pattern),\n accordionPanel: this.accordionPanel,\n });\n}\n\n/**\n * Container for a group of accordion items. It manages the overall state and\n * interactions of the accordion, such as keyboard navigation and expansion mode.\n */\n@Directive({\n selector: '[ngAccordionGroup]',\n exportAs: 'ngAccordionGroup',\n host: {\n 'class': 'ng-accordion-group',\n },\n})\nexport class AccordionGroup {\n /** A reference to the group element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** The AccordionTriggers nested inside this group. */\n protected readonly _triggers = contentChildren(AccordionTrigger, {descendants: true});\n\n /** The AccordionPanels nested inside this group. */\n protected readonly _panels = contentChildren(AccordionPanel, {descendants: true});\n\n /** The text direction (ltr or rtl). */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** Whether the entire accordion group is disabled. */\n disabled = input(false, {transform: booleanAttribute});\n\n /** Whether multiple accordion items can be expanded simultaneously. */\n multiExpandable = input(true, {transform: booleanAttribute});\n\n /** The values of the current selected/expanded accordions. */\n value = model<string[]>([]);\n\n /** Whether disabled items should be skipped during keyboard navigation. */\n skipDisabled = input(true, {transform: booleanAttribute});\n\n /** Whether keyboard navigation should wrap around from the last item to the first, and vice-versa. */\n wrap = input(false, {transform: booleanAttribute});\n\n /** The UI pattern instance for this accordion group. */\n readonly pattern: AccordionGroupPattern = new AccordionGroupPattern({\n ...this,\n // TODO(ok7sai): Consider making `activeItem` an internal state in the pattern and call\n // `setDefaultState` in the CDK.\n activeItem: signal(undefined),\n items: computed(() => this._triggers().map(trigger => trigger.pattern)),\n expandedIds: this.value,\n // TODO(ok7sai): Investigate whether an accordion should support horizontal mode.\n orientation: () => 'vertical',\n element: () => this._elementRef.nativeElement,\n });\n\n constructor() {\n // Effect to link triggers with their corresponding panels and update the group's items.\n afterRenderEffect(() => {\n const triggers = this._triggers();\n const panels = this._panels();\n\n for (const trigger of triggers) {\n const panel = panels.find(p => p.value() === trigger.value());\n trigger.accordionPanel.set(panel?.pattern);\n if (panel) {\n panel.accordionTrigger.set(trigger.pattern);\n }\n }\n });\n }\n}\n\n/**\n * A structural directive that marks the `ng-template` to be used as the content\n * for a `AccordionPanel`. This content can be lazily loaded.\n */\n@Directive({\n selector: 'ng-template[ngAccordionContent]',\n hostDirectives: [DeferredContent],\n})\nexport class AccordionContent {}\n"],"names":[],"mappings":";;;;;;;;AA8BA;;;AAGG;MAkBU,cAAc,CAAA;;AAER,IAAA,qBAAqB,GAAG,MAAM,CAAC,oBAAoB,CAAC;;IAGpD,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;;AAGvE,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU;;AAGvB,IAAA,gBAAgB,GACvB,MAAM,CAAC,SAAS,4DAAC;;IAGV,OA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AA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGARhD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE,oBAAoB;AAC9B,qBAAA;AACF,iBAAA;;AA2DD;;;AAGG;MAKU,gBAAgB,CAAA;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iCAAiC;oBAC3C,cAAc,EAAE,CAAC,eAAe,CAAC;AAClC,iBAAA;;;;;"}
@@ -0,0 +1,7 @@
1
+ import { Version } from '@angular/core';
2
+
3
+ /** Current version of the CDK Experimental package. */
4
+ const VERSION = new Version('21.0.0-next.8');
5
+
6
+ export { VERSION };
7
+ //# sourceMappingURL=aria.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aria.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/aria/version.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 {Version} from '@angular/core';\n\n/** Current version of the CDK Experimental package. */\nexport const VERSION = new Version('21.0.0-next.8');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
@@ -0,0 +1,130 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, contentChild, input, signal, afterRenderEffect, Directive, model, untracked } from '@angular/core';
3
+ import * as i1 from '@angular/aria/deferred-content';
4
+ import { DeferredContentAware, DeferredContent } from '@angular/aria/deferred-content';
5
+ import { ComboboxPattern } from '@angular/aria/ui-patterns';
6
+
7
+ class Combobox {
8
+ /** The element that the combobox is attached to. */
9
+ _elementRef = inject(ElementRef);
10
+ /** The DeferredContentAware host directive. */
11
+ _deferredContentAware = inject(DeferredContentAware, { optional: true });
12
+ /** The combobox popup. */
13
+ popup = contentChild(ComboboxPopup, ...(ngDevMode ? [{ debugName: "popup" }] : []));
14
+ /** The filter mode for the combobox. */
15
+ filterMode = input('manual', ...(ngDevMode ? [{ debugName: "filterMode" }] : []));
16
+ /** Whether the combobox is focused. */
17
+ isFocused = signal(false, ...(ngDevMode ? [{ debugName: "isFocused" }] : []));
18
+ /** The value of the first matching item in the popup. */
19
+ firstMatch = input(undefined, ...(ngDevMode ? [{ debugName: "firstMatch" }] : []));
20
+ /** Whether the listbox has received focus yet. */
21
+ _hasBeenFocused = signal(false, ...(ngDevMode ? [{ debugName: "_hasBeenFocused" }] : []));
22
+ /** The combobox ui pattern. */
23
+ pattern = new ComboboxPattern({
24
+ ...this,
25
+ inputValue: signal(''),
26
+ inputEl: signal(undefined),
27
+ containerEl: () => this._elementRef.nativeElement,
28
+ popupControls: () => this.popup()?.controls(),
29
+ });
30
+ constructor() {
31
+ afterRenderEffect(() => {
32
+ if (!this._deferredContentAware?.contentVisible() && this.pattern.isFocused()) {
33
+ this._deferredContentAware?.contentVisible.set(true);
34
+ }
35
+ });
36
+ afterRenderEffect(() => {
37
+ if (!this._hasBeenFocused() && this.pattern.isFocused()) {
38
+ this._hasBeenFocused.set(true);
39
+ }
40
+ });
41
+ }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: Combobox, deps: [], target: i0.ɵɵFactoryTarget.Directive });
43
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.2.0-next.2", type: Combobox, isStandalone: true, selector: "[ngCombobox]", inputs: { filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, firstMatch: { classPropertyName: "firstMatch", publicName: "firstMatch", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "pattern.onInput($event)", "keydown": "pattern.onKeydown($event)", "pointerup": "pattern.onPointerup($event)", "focusin": "pattern.onFocusIn()", "focusout": "pattern.onFocusOut($event)" }, properties: { "attr.data-expanded": "pattern.expanded()" } }, queries: [{ propertyName: "popup", first: true, predicate: ComboboxPopup, descendants: true, isSignal: true }], exportAs: ["ngCombobox"], hostDirectives: [{ directive: i1.DeferredContentAware, inputs: ["preserveContent", "preserveContent"] }], ngImport: i0 });
44
+ }
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: Combobox, decorators: [{
46
+ type: Directive,
47
+ args: [{
48
+ selector: '[ngCombobox]',
49
+ exportAs: 'ngCombobox',
50
+ hostDirectives: [
51
+ {
52
+ directive: DeferredContentAware,
53
+ inputs: ['preserveContent'],
54
+ },
55
+ ],
56
+ host: {
57
+ '[attr.data-expanded]': 'pattern.expanded()',
58
+ '(input)': 'pattern.onInput($event)',
59
+ '(keydown)': 'pattern.onKeydown($event)',
60
+ '(pointerup)': 'pattern.onPointerup($event)',
61
+ '(focusin)': 'pattern.onFocusIn()',
62
+ '(focusout)': 'pattern.onFocusOut($event)',
63
+ },
64
+ }]
65
+ }], ctorParameters: () => [] });
66
+ class ComboboxInput {
67
+ /** The element that the combobox is attached to. */
68
+ _elementRef = inject(ElementRef);
69
+ /** The combobox that the input belongs to. */
70
+ combobox = inject(Combobox);
71
+ /** The value of the input. */
72
+ value = model('', ...(ngDevMode ? [{ debugName: "value" }] : []));
73
+ constructor() {
74
+ this.combobox.pattern.inputs.inputEl.set(this._elementRef.nativeElement);
75
+ this.combobox.pattern.inputs.inputValue = this.value;
76
+ /** Focuses & selects the first item in the combobox if the user changes the input value. */
77
+ afterRenderEffect(() => {
78
+ this.combobox.popup()?.controls()?.items();
79
+ untracked(() => this.combobox.pattern.onFilter());
80
+ });
81
+ }
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: ComboboxInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
83
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.2", type: ComboboxInput, isStandalone: true, selector: "input[ngComboboxInput]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "combobox" }, properties: { "value": "value()", "attr.aria-expanded": "combobox.pattern.expanded()", "attr.aria-activedescendant": "combobox.pattern.activedescendant()", "attr.aria-controls": "combobox.pattern.popupId()", "attr.aria-haspopup": "combobox.pattern.hasPopup()", "attr.aria-autocomplete": "combobox.pattern.autocomplete()" } }, exportAs: ["ngComboboxInput"], ngImport: i0 });
84
+ }
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: ComboboxInput, decorators: [{
86
+ type: Directive,
87
+ args: [{
88
+ selector: 'input[ngComboboxInput]',
89
+ exportAs: 'ngComboboxInput',
90
+ host: {
91
+ 'role': 'combobox',
92
+ '[value]': 'value()',
93
+ '[attr.aria-expanded]': 'combobox.pattern.expanded()',
94
+ '[attr.aria-activedescendant]': 'combobox.pattern.activedescendant()',
95
+ '[attr.aria-controls]': 'combobox.pattern.popupId()',
96
+ '[attr.aria-haspopup]': 'combobox.pattern.hasPopup()',
97
+ '[attr.aria-autocomplete]': 'combobox.pattern.autocomplete()',
98
+ },
99
+ }]
100
+ }], ctorParameters: () => [] });
101
+ class ComboboxPopupContainer {
102
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: ComboboxPopupContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
103
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: ComboboxPopupContainer, isStandalone: true, selector: "ng-template[ngComboboxPopupContainer]", exportAs: ["ngComboboxPopupContainer"], hostDirectives: [{ directive: i1.DeferredContent }], ngImport: i0 });
104
+ }
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: ComboboxPopupContainer, decorators: [{
106
+ type: Directive,
107
+ args: [{
108
+ selector: 'ng-template[ngComboboxPopupContainer]',
109
+ exportAs: 'ngComboboxPopupContainer',
110
+ hostDirectives: [DeferredContent],
111
+ }]
112
+ }] });
113
+ class ComboboxPopup {
114
+ /** The combobox that the popup belongs to. */
115
+ combobox = inject(Combobox, { optional: true });
116
+ /** The controls the popup exposes to the combobox. */
117
+ controls = signal(undefined, ...(ngDevMode ? [{ debugName: "controls" }] : []));
118
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: ComboboxPopup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
119
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: ComboboxPopup, isStandalone: true, selector: "[ngComboboxPopup]", exportAs: ["ngComboboxPopup"], ngImport: i0 });
120
+ }
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: ComboboxPopup, decorators: [{
122
+ type: Directive,
123
+ args: [{
124
+ selector: '[ngComboboxPopup]',
125
+ exportAs: 'ngComboboxPopup',
126
+ }]
127
+ }] });
128
+
129
+ export { Combobox, ComboboxInput, ComboboxPopup, ComboboxPopupContainer };
130
+ //# sourceMappingURL=combobox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/aria/combobox/combobox.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n afterRenderEffect,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n signal,\n untracked,\n WritableSignal,\n} from '@angular/core';\nimport {DeferredContent, DeferredContentAware} from '@angular/aria/deferred-content';\nimport {\n ComboboxPattern,\n ComboboxListboxControls,\n ComboboxTreeControls,\n} from '@angular/aria/ui-patterns';\n\n@Directive({\n selector: '[ngCombobox]',\n exportAs: 'ngCombobox',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n '[attr.data-expanded]': 'pattern.expanded()',\n '(input)': 'pattern.onInput($event)',\n '(keydown)': 'pattern.onKeydown($event)',\n '(pointerup)': 'pattern.onPointerup($event)',\n '(focusin)': 'pattern.onFocusIn()',\n '(focusout)': 'pattern.onFocusOut($event)',\n },\n})\nexport class Combobox<V> {\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject(ElementRef);\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware, {optional: true});\n\n /** The combobox popup. */\n readonly popup = contentChild<ComboboxPopup<V>>(ComboboxPopup);\n\n /** The filter mode for the combobox. */\n filterMode = input<'manual' | 'auto-select' | 'highlight'>('manual');\n\n /** Whether the combobox is focused. */\n readonly isFocused = signal(false);\n\n /** The value of the first matching item in the popup. */\n firstMatch = input<V | undefined>(undefined);\n\n /** Whether the listbox has received focus yet. */\n private _hasBeenFocused = signal(false);\n\n /** The combobox ui pattern. */\n readonly pattern = new ComboboxPattern<any, V>({\n ...this,\n inputValue: signal(''),\n inputEl: signal(undefined),\n containerEl: () => this._elementRef.nativeElement,\n popupControls: () => this.popup()?.controls(),\n });\n\n constructor() {\n afterRenderEffect(() => {\n if (!this._deferredContentAware?.contentVisible() && this.pattern.isFocused()) {\n this._deferredContentAware?.contentVisible.set(true);\n }\n });\n\n afterRenderEffect(() => {\n if (!this._hasBeenFocused() && this.pattern.isFocused()) {\n this._hasBeenFocused.set(true);\n }\n });\n }\n}\n\n@Directive({\n selector: 'input[ngComboboxInput]',\n exportAs: 'ngComboboxInput',\n host: {\n 'role': 'combobox',\n '[value]': 'value()',\n '[attr.aria-expanded]': 'combobox.pattern.expanded()',\n '[attr.aria-activedescendant]': 'combobox.pattern.activedescendant()',\n '[attr.aria-controls]': 'combobox.pattern.popupId()',\n '[attr.aria-haspopup]': 'combobox.pattern.hasPopup()',\n '[attr.aria-autocomplete]': 'combobox.pattern.autocomplete()',\n },\n})\nexport class ComboboxInput {\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n /** The combobox that the input belongs to. */\n readonly combobox = inject(Combobox);\n\n /** The value of the input. */\n value = model<string>('');\n\n constructor() {\n (this.combobox.pattern.inputs.inputEl as WritableSignal<HTMLInputElement>).set(\n this._elementRef.nativeElement,\n );\n this.combobox.pattern.inputs.inputValue = this.value;\n\n /** Focuses & selects the first item in the combobox if the user changes the input value. */\n afterRenderEffect(() => {\n this.combobox.popup()?.controls()?.items();\n untracked(() => this.combobox.pattern.onFilter());\n });\n }\n}\n\n@Directive({\n selector: 'ng-template[ngComboboxPopupContainer]',\n exportAs: 'ngComboboxPopupContainer',\n hostDirectives: [DeferredContent],\n})\nexport class ComboboxPopupContainer {}\n\n@Directive({\n selector: '[ngComboboxPopup]',\n exportAs: 'ngComboboxPopup',\n})\nexport class ComboboxPopup<V> {\n /** The combobox that the popup belongs to. */\n readonly combobox = inject<Combobox<V>>(Combobox, {optional: true});\n\n /** The controls the popup exposes to the combobox. */\n readonly controls = signal<\n ComboboxListboxControls<any, V> | ComboboxTreeControls<any, V> | undefined\n >(undefined);\n}\n"],"names":[],"mappings":";;;;;;MA6Ca,QAAQ,CAAA;;AAEF,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;;IAGhC,qBAAqB,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;AAG9E,IAAA,KAAK,GAAG,YAAY,CAAmB,aAAa,iDAAC;;AAG9D,IAAA,UAAU,GAAG,KAAK,CAAyC,QAAQ,sDAAC;;AAG3D,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,qDAAC;;AAGlC,IAAA,UAAU,GAAG,KAAK,CAAgB,SAAS,sDAAC;;AAGpC,IAAA,eAAe,GAAG,MAAM,CAAC,KAAK,2DAAC;;IAG9B,OAAO,GAAG,IAAI,eAAe,CAAS;AAC7C,QAAA,GAAG,IAAI;AACP,QAAA,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;AACtB,QAAA,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa;QACjD,aAAa,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE;AAC9C,KAAA,CAAC;AAEF,IAAA,WAAA,GAAA;QACE,iBAAiB,CAAC,MAAK;AACrB,YAAA,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,cAAc,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE;gBAC7E,IAAI,CAAC,qBAAqB,EAAE,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC;;AAExD,SAAC,CAAC;QAEF,iBAAiB,CAAC,MAAK;AACrB,YAAA,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAA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AAA,EAAA,CAAA;kGAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,QAAQ,EAAE,iBAAiB;AAC5B,iBAAA;;;;;"}
@@ -0,0 +1,59 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, model, Directive, inject, TemplateRef, ViewContainerRef, afterRenderEffect } from '@angular/core';
3
+
4
+ /**
5
+ * A container directive controls the visibility of its content.
6
+ */
7
+ class DeferredContentAware {
8
+ contentVisible = signal(false, ...(ngDevMode ? [{ debugName: "contentVisible" }] : []));
9
+ preserveContent = model(false, ...(ngDevMode ? [{ debugName: "preserveContent" }] : []));
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContentAware, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.2", type: DeferredContentAware, isStandalone: true, inputs: { preserveContent: { classPropertyName: "preserveContent", publicName: "preserveContent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { preserveContent: "preserveContentChange" }, ngImport: i0 });
12
+ }
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContentAware, decorators: [{
14
+ type: Directive
15
+ }] });
16
+ /**
17
+ * DeferredContent loads/unloads the content based on the visibility.
18
+ * The visibilty signal is sent from a parent directive implements
19
+ * DeferredContentAware.
20
+ *
21
+ * Use this directive as a host directive. For example:
22
+ *
23
+ * ```ts
24
+ * @Directive({
25
+ * selector: 'ng-template[AccordionContent]',
26
+ * hostDirectives: [DeferredContent],
27
+ * })
28
+ * class AccordionContent {}
29
+ * ```
30
+ */
31
+ class DeferredContent {
32
+ _deferredContentAware = inject(DeferredContentAware);
33
+ _templateRef = inject(TemplateRef);
34
+ _viewContainerRef = inject(ViewContainerRef);
35
+ _isRendered = false;
36
+ constructor() {
37
+ afterRenderEffect(() => {
38
+ if (this._deferredContentAware.contentVisible()) {
39
+ if (this._isRendered)
40
+ return;
41
+ this._viewContainerRef.clear();
42
+ this._viewContainerRef.createEmbeddedView(this._templateRef);
43
+ this._isRendered = true;
44
+ }
45
+ else if (!this._deferredContentAware.preserveContent()) {
46
+ this._viewContainerRef.clear();
47
+ this._isRendered = false;
48
+ }
49
+ });
50
+ }
51
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
52
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: DeferredContent, isStandalone: true, ngImport: i0 });
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContent, decorators: [{
55
+ type: Directive
56
+ }], ctorParameters: () => [] });
57
+
58
+ export { DeferredContent, DeferredContentAware };
59
+ //# sourceMappingURL=deferred-content.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deferred-content.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/aria/deferred-content/deferred-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 {\n afterRenderEffect,\n Directive,\n inject,\n TemplateRef,\n signal,\n ViewContainerRef,\n model,\n} from '@angular/core';\n\n/**\n * A container directive controls the visibility of its content.\n */\n@Directive()\nexport class DeferredContentAware {\n readonly contentVisible = signal(false);\n readonly preserveContent = model(false);\n}\n\n/**\n * DeferredContent loads/unloads the content based on the visibility.\n * The visibilty signal is sent from a parent directive implements\n * DeferredContentAware.\n *\n * Use this directive as a host directive. For example:\n *\n * ```ts\n * @Directive({\n * selector: 'ng-template[AccordionContent]',\n * hostDirectives: [DeferredContent],\n * })\n * class AccordionContent {}\n * ```\n */\n@Directive()\nexport class DeferredContent {\n private readonly _deferredContentAware = inject(DeferredContentAware);\n private readonly _templateRef = inject(TemplateRef);\n private readonly _viewContainerRef = inject(ViewContainerRef);\n private _isRendered = false;\n\n constructor() {\n afterRenderEffect(() => {\n if (this._deferredContentAware.contentVisible()) {\n if (this._isRendered) return;\n this._viewContainerRef.clear();\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n this._isRendered = true;\n } else if (!this._deferredContentAware.preserveContent()) {\n this._viewContainerRef.clear();\n this._isRendered = false;\n }\n });\n }\n}\n"],"names":[],"mappings":";;;AAkBA;;AAEG;MAEU,oBAAoB,CAAA;AACtB,IAAA,cAAc,GAAG,MAAM,CAAC,KAAK,0DAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAC,KAAK,2DAAC;8GAF5B,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,uBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;AAMD;;;;;;;;;;;;;;AAcG;MAEU,eAAe,CAAA;AACT,IAAA,qBAA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