@angular/cdk-experimental 20.1.0-next.0 → 20.1.0-next.2
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/accordion/index.d.ts +22 -22
- package/{accordion.d-B3UVyhWI.d.ts → accordion.d-MvKtoWUK.d.ts} +13 -13
- package/column-resize/index.d.ts +37 -37
- package/combobox/index.d.ts +8 -8
- package/deferred-content/index.d.ts +7 -7
- package/{expansion.d-DSLPa1yp.d.ts → expansion.d-BvIuKvYU.d.ts} +25 -28
- package/fesm2022/{accordion-CyyDY39y.mjs → accordion-CN4PcmAh.mjs} +2 -4
- package/fesm2022/accordion-CN4PcmAh.mjs.map +1 -0
- package/fesm2022/accordion.mjs +2 -2
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/deferred-content.mjs.map +1 -1
- package/fesm2022/{expansion-DykBzWrb.mjs → expansion-C9iQLHOG.mjs} +9 -15
- package/fesm2022/expansion-C9iQLHOG.mjs.map +1 -0
- package/fesm2022/list-focus-BXQdAA3i.mjs.map +1 -1
- package/fesm2022/{list-selection-BLV4Yy7T.mjs → list-selection-C41ApAbt.mjs} +7 -1
- package/fesm2022/list-selection-C41ApAbt.mjs.map +1 -0
- package/fesm2022/list-typeahead-DIIbNJrP.mjs +64 -0
- package/fesm2022/list-typeahead-DIIbNJrP.mjs.map +1 -0
- package/fesm2022/listbox.mjs +3 -2
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/{option-r2ojgVMH.mjs → option-D44ECQK6.mjs} +3 -62
- package/fesm2022/option-D44ECQK6.mjs.map +1 -0
- package/fesm2022/polyfill-CXksG4af.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/{radio-s5uO_tmJ.mjs → radio-button-BiqPDreS.mjs} +2 -2
- package/fesm2022/radio-button-BiqPDreS.mjs.map +1 -0
- package/fesm2022/{radio.mjs → radio-group.mjs} +4 -4
- package/fesm2022/radio-group.mjs.map +1 -0
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection.mjs.map +1 -1
- package/fesm2022/table-scroll-container.mjs.map +1 -1
- package/fesm2022/{tabs-BN3wsMdD.mjs → tabs-DLPSZvPZ.mjs} +35 -12
- package/fesm2022/tabs-DLPSZvPZ.mjs.map +1 -0
- package/fesm2022/tabs.mjs +85 -27
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/tree.mjs +691 -0
- package/fesm2022/tree.mjs.map +1 -0
- package/fesm2022/ui-patterns.mjs +7 -6
- package/fesm2022/ui-patterns.mjs.map +1 -1
- package/{list-navigation.d-Br99p_2O.d.ts → list-navigation.d-tcweHm4g.d.ts} +3 -3
- package/{list-selection.d-BQWRFJI-.d.ts → list-selection.d-BBLdeUeF.d.ts} +5 -5
- package/list-typeahead.d-DvIIfjfu.d.ts +48 -0
- package/listbox/index.d.ts +28 -27
- package/{listbox.d-C8oz9si7.d.ts → listbox.d-hkdivyCf.d.ts} +20 -62
- package/package.json +9 -5
- package/popover-edit/index.d.ts +30 -30
- package/{radio → radio-group}/index.d.ts +20 -20
- package/{radio-group.d-C3xIREax.d.ts → radio-group.d-CcY7mCC2.d.ts} +15 -15
- package/scrolling/index.d.ts +6 -6
- package/selection/index.d.ts +14 -14
- package/table-scroll-container/index.d.ts +6 -6
- package/tabs/index.d.ts +63 -46
- package/{tabs.d-D0UIRVMM.d.ts → tabs.d-DHT_RQQu.d.ts} +43 -34
- package/tree/index.d.ts +298 -0
- package/ui-patterns/index.d.ts +8 -7
- package/fesm2022/accordion-CyyDY39y.mjs.map +0 -1
- package/fesm2022/expansion-DykBzWrb.mjs.map +0 -1
- package/fesm2022/list-selection-BLV4Yy7T.mjs.map +0 -1
- package/fesm2022/option-r2ojgVMH.mjs.map +0 -1
- package/fesm2022/radio-s5uO_tmJ.mjs.map +0 -1
- package/fesm2022/radio.mjs.map +0 -1
- package/fesm2022/tabs-BN3wsMdD.mjs.map +0 -1
package/accordion/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
|
-
import * as
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { WritableSignal } from '@angular/core';
|
|
4
|
-
import { c as AccordionTriggerPattern, e as AccordionPanelPattern, a as AccordionGroupPattern } from '../accordion.d-
|
|
4
|
+
import { c as AccordionTriggerPattern, e as AccordionPanelPattern, a as AccordionGroupPattern } from '../accordion.d-MvKtoWUK.js';
|
|
5
5
|
import * as i1 from '@angular/cdk-experimental/deferred-content';
|
|
6
|
-
import '../list-navigation.d-
|
|
7
|
-
import '../expansion.d-
|
|
6
|
+
import '../list-navigation.d-tcweHm4g.js';
|
|
7
|
+
import '../expansion.d-BvIuKvYU.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Represents the content panel of an accordion item. It is controlled by an
|
|
@@ -16,14 +16,14 @@ declare class CdkAccordionPanel {
|
|
|
16
16
|
/** A global unique identifier for the panel. */
|
|
17
17
|
private readonly _id;
|
|
18
18
|
/** A local unique identifier for the panel, used to match with its trigger's value. */
|
|
19
|
-
value:
|
|
19
|
+
value: _angular_core.InputSignal<string>;
|
|
20
20
|
/** The parent accordion trigger pattern that controls this panel. This is set by CdkAccordionGroup. */
|
|
21
21
|
readonly accordionTrigger: WritableSignal<AccordionTriggerPattern | undefined>;
|
|
22
22
|
/** The UI pattern instance for this panel. */
|
|
23
23
|
readonly pattern: AccordionPanelPattern;
|
|
24
24
|
constructor();
|
|
25
|
-
static ɵfac:
|
|
26
|
-
static ɵdir:
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkAccordionPanel, never>;
|
|
26
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkAccordionPanel, "[cdkAccordionPanel]", ["cdkAccordionPanel"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.DeferredContentAware; inputs: { "preserveContent": "preserveContent"; }; outputs: {}; }]>;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Represents the trigger button for an accordion item. It controls the expansion
|
|
@@ -37,15 +37,15 @@ declare class CdkAccordionTrigger {
|
|
|
37
37
|
/** The parent CdkAccordionGroup. */
|
|
38
38
|
private readonly _accordionGroup;
|
|
39
39
|
/** A local unique identifier for the trigger, used to match with its panel's value. */
|
|
40
|
-
value:
|
|
40
|
+
value: _angular_core.InputSignal<string>;
|
|
41
41
|
/** Whether the trigger is disabled. */
|
|
42
|
-
disabled:
|
|
42
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
43
43
|
/** The accordion panel pattern controlled by this trigger. This is set by CdkAccordionGroup. */
|
|
44
44
|
readonly accordionPanel: WritableSignal<AccordionPanelPattern | undefined>;
|
|
45
45
|
/** The UI pattern instance for this trigger. */
|
|
46
46
|
readonly pattern: AccordionTriggerPattern;
|
|
47
|
-
static ɵfac:
|
|
48
|
-
static ɵdir:
|
|
47
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkAccordionTrigger, never>;
|
|
48
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkAccordionTrigger, "[cdkAccordionTrigger]", ["cdkAccordionTrigger"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Container for a group of accordion items. It manages the overall state and
|
|
@@ -53,34 +53,34 @@ declare class CdkAccordionTrigger {
|
|
|
53
53
|
*/
|
|
54
54
|
declare class CdkAccordionGroup {
|
|
55
55
|
/** The CdkAccordionTriggers nested inside this group. */
|
|
56
|
-
protected readonly _triggers:
|
|
56
|
+
protected readonly _triggers: _angular_core.Signal<readonly CdkAccordionTrigger[]>;
|
|
57
57
|
/** The CdkAccordionPanels nested inside this group. */
|
|
58
|
-
protected readonly _panels:
|
|
58
|
+
protected readonly _panels: _angular_core.Signal<readonly CdkAccordionPanel[]>;
|
|
59
59
|
/** The text direction (ltr or rtl). */
|
|
60
60
|
readonly textDirection: WritableSignal<_angular_cdk_bidi.Direction>;
|
|
61
61
|
/** Whether the entire accordion group is disabled. */
|
|
62
|
-
disabled:
|
|
62
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
63
|
/** Whether multiple accordion items can be expanded simultaneously. */
|
|
64
|
-
multiExpandable:
|
|
64
|
+
multiExpandable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
65
65
|
/** The values of the current selected/expanded accordions. */
|
|
66
|
-
value:
|
|
66
|
+
value: _angular_core.ModelSignal<string[]>;
|
|
67
67
|
/** Whether disabled items should be skipped during keyboard navigation. */
|
|
68
|
-
skipDisabled:
|
|
68
|
+
skipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
69
69
|
/** Whether keyboard navigation should wrap around from the last item to the first, and vice-versa. */
|
|
70
|
-
wrap:
|
|
70
|
+
wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
71
71
|
/** The UI pattern instance for this accordion group. */
|
|
72
72
|
readonly pattern: AccordionGroupPattern;
|
|
73
73
|
constructor();
|
|
74
|
-
static ɵfac:
|
|
75
|
-
static ɵdir:
|
|
74
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkAccordionGroup, never>;
|
|
75
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkAccordionGroup, "[cdkAccordionGroup]", ["cdkAccordionGroup"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiExpandable": { "alias": "multiExpandable"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "skipDisabled": { "alias": "skipDisabled"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["_triggers", "_panels"], never, true, never>;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* A structural directive that marks the `ng-template` to be used as the content
|
|
79
79
|
* for a `CdkAccordionPanel`. This content can be lazily loaded.
|
|
80
80
|
*/
|
|
81
81
|
declare class CdkAccordionContent {
|
|
82
|
-
static ɵfac:
|
|
83
|
-
static ɵdir:
|
|
82
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkAccordionContent, never>;
|
|
83
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkAccordionContent, "ng-template[cdkAccordionContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.DeferredContent; inputs: {}; outputs: {}; }]>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export { CdkAccordionContent, CdkAccordionGroup, CdkAccordionPanel, CdkAccordionTrigger };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { L as ListNavigationInputs, a as ListFocusInputs, b as ListNavigation, d as ListFocus, e as ListNavigationItem, f as ListFocusItem, S as SignalLike, K as KeyboardEventManager, P as PointerEventManager } from './list-navigation.d-
|
|
3
|
-
import { L as ListExpansionInputs, a as ListExpansion, E as ExpansionItem, b as ExpansionControl } from './expansion.d-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { L as ListNavigationInputs, a as ListFocusInputs, b as ListNavigation, d as ListFocus, e as ListNavigationItem, f as ListFocusItem, S as SignalLike, K as KeyboardEventManager, P as PointerEventManager } from './list-navigation.d-tcweHm4g.js';
|
|
3
|
+
import { L as ListExpansionInputs, a as ListExpansion, E as ExpansionItem, b as ExpansionControl } from './expansion.d-BvIuKvYU.js';
|
|
4
4
|
|
|
5
5
|
/** Inputs of the AccordionGroupPattern. */
|
|
6
|
-
type AccordionGroupInputs = Omit<ListNavigationInputs<AccordionTriggerPattern> & ListFocusInputs<AccordionTriggerPattern> & ListExpansionInputs
|
|
6
|
+
type AccordionGroupInputs = Omit<ListNavigationInputs<AccordionTriggerPattern> & ListFocusInputs<AccordionTriggerPattern> & Omit<ListExpansionInputs, 'items'>, 'focusMode'>;
|
|
7
7
|
interface AccordionGroupPattern extends AccordionGroupInputs {
|
|
8
8
|
}
|
|
9
9
|
/** A pattern controls the nested Accordions. */
|
|
@@ -14,7 +14,7 @@ declare class AccordionGroupPattern {
|
|
|
14
14
|
/** Controls focus for the group. */
|
|
15
15
|
focusManager: ListFocus<AccordionTriggerPattern>;
|
|
16
16
|
/** Controls expansion for the group. */
|
|
17
|
-
expansionManager: ListExpansion
|
|
17
|
+
expansionManager: ListExpansion;
|
|
18
18
|
constructor(inputs: AccordionGroupInputs);
|
|
19
19
|
}
|
|
20
20
|
/** Inputs for the AccordionTriggerPattern. */
|
|
@@ -40,22 +40,22 @@ declare class AccordionTriggerPattern {
|
|
|
40
40
|
/** Controls the expansion state for the trigger. */
|
|
41
41
|
expansionControl: ExpansionControl;
|
|
42
42
|
/** Whether the trigger is active. */
|
|
43
|
-
active:
|
|
43
|
+
active: _angular_core.Signal<boolean>;
|
|
44
44
|
/** Id of the accordion panel controlled by the trigger. */
|
|
45
|
-
controls:
|
|
45
|
+
controls: _angular_core.Signal<string | undefined>;
|
|
46
46
|
/** The tabindex of the trigger. */
|
|
47
|
-
tabindex:
|
|
47
|
+
tabindex: _angular_core.Signal<-1 | 0>;
|
|
48
48
|
/** Whether the trigger is disabled. Disabling an accordion group disables all the triggers. */
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: _angular_core.Signal<boolean>;
|
|
50
50
|
constructor(inputs: AccordionTriggerInputs);
|
|
51
51
|
/** The key used to navigate to the previous accordion trigger. */
|
|
52
|
-
prevKey:
|
|
52
|
+
prevKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
53
53
|
/** The key used to navigate to the next accordion trigger. */
|
|
54
|
-
nextKey:
|
|
54
|
+
nextKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
55
55
|
/** The keydown event manager for the accordion trigger. */
|
|
56
|
-
keydown:
|
|
56
|
+
keydown: _angular_core.Signal<KeyboardEventManager<KeyboardEvent>>;
|
|
57
57
|
/** The pointerdown event manager for the accordion trigger. */
|
|
58
|
-
pointerdown:
|
|
58
|
+
pointerdown: _angular_core.Signal<PointerEventManager<PointerEvent>>;
|
|
59
59
|
/** Handles keydown events on the trigger, delegating to the group if not disabled. */
|
|
60
60
|
onKeydown(event: KeyboardEvent): void;
|
|
61
61
|
/** Handles pointerdown events on the trigger, delegating to the group if not disabled. */
|
package/column-resize/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, NgZone, Provider, OnInit, Injector, ViewContainerRef, ChangeDetectorRef, Type } from '@angular/core';
|
|
3
3
|
import { Subject, Observable } from 'rxjs';
|
|
4
4
|
import { CdkTable, CdkColumnDef } from '@angular/cdk/table';
|
|
@@ -38,8 +38,8 @@ declare class ColumnResizeNotifierSource {
|
|
|
38
38
|
readonly resizeCompleted: Subject<ColumnSize>;
|
|
39
39
|
/** Triggers a resize action. */
|
|
40
40
|
readonly triggerResize: Subject<ColumnSizeAction>;
|
|
41
|
-
static ɵfac:
|
|
42
|
-
static ɵprov:
|
|
41
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResizeNotifierSource, never>;
|
|
42
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnResizeNotifierSource>;
|
|
43
43
|
}
|
|
44
44
|
/** Service for triggering column resizes imperatively or being notified of them. */
|
|
45
45
|
declare class ColumnResizeNotifier {
|
|
@@ -48,8 +48,8 @@ declare class ColumnResizeNotifier {
|
|
|
48
48
|
readonly resizeCompleted: Observable<ColumnSize>;
|
|
49
49
|
/** Instantly resizes the specified column. */
|
|
50
50
|
resize(columnId: string, size: number): void;
|
|
51
|
-
static ɵfac:
|
|
52
|
-
static ɵprov:
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResizeNotifier, never>;
|
|
52
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnResizeNotifier>;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/** Coordinates events between the column resize directives. */
|
|
@@ -82,8 +82,8 @@ declare class HeaderRowEventDispatcher {
|
|
|
82
82
|
*/
|
|
83
83
|
resizeOverlayVisibleForHeaderRow(row: Element): Observable<boolean>;
|
|
84
84
|
private _enterZone;
|
|
85
|
-
static ɵfac:
|
|
86
|
-
static ɵprov:
|
|
85
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderRowEventDispatcher, never>;
|
|
86
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<HeaderRowEventDispatcher>;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/** Configurable options for column resize. */
|
|
@@ -126,8 +126,8 @@ declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
|
|
|
126
126
|
private _listenForRowHoverEvents;
|
|
127
127
|
private _listenForResizeActivity;
|
|
128
128
|
private _listenForHoverActivity;
|
|
129
|
-
static ɵfac:
|
|
130
|
-
static ɵdir:
|
|
129
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResize, never>;
|
|
130
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColumnResize, never, never, { "liveResizeUpdates": { "alias": "liveResizeUpdates"; "required": false; }; }, {}, never, never, true, never>;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/**
|
|
@@ -141,8 +141,8 @@ declare class CdkColumnResize extends ColumnResize {
|
|
|
141
141
|
protected readonly ngZone: NgZone;
|
|
142
142
|
protected readonly notifier: ColumnResizeNotifierSource;
|
|
143
143
|
protected readonly table: CdkTable<unknown>;
|
|
144
|
-
static ɵfac:
|
|
145
|
-
static ɵdir:
|
|
144
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkColumnResize, never>;
|
|
145
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkColumnResize, "table[cdk-table][columnResize]", never, {}, {}, never, never, true, never>;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -156,8 +156,8 @@ declare class CdkColumnResizeFlex extends ColumnResize {
|
|
|
156
156
|
protected readonly ngZone: NgZone;
|
|
157
157
|
protected readonly notifier: ColumnResizeNotifierSource;
|
|
158
158
|
protected readonly table: CdkTable<unknown>;
|
|
159
|
-
static ɵfac:
|
|
160
|
-
static ɵdir:
|
|
159
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkColumnResizeFlex, never>;
|
|
160
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkColumnResizeFlex, "cdk-table[columnResize]", never, {}, {}, never, never, true, never>;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -171,8 +171,8 @@ declare class CdkDefaultEnabledColumnResize extends ColumnResize {
|
|
|
171
171
|
protected readonly ngZone: NgZone;
|
|
172
172
|
protected readonly notifier: ColumnResizeNotifierSource;
|
|
173
173
|
protected readonly table: CdkTable<unknown>;
|
|
174
|
-
static ɵfac:
|
|
175
|
-
static ɵdir:
|
|
174
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkDefaultEnabledColumnResize, never>;
|
|
175
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkDefaultEnabledColumnResize, "table[cdk-table]", never, {}, {}, never, never, true, never>;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
/**
|
|
@@ -186,8 +186,8 @@ declare class CdkDefaultEnabledColumnResizeFlex extends ColumnResize {
|
|
|
186
186
|
protected readonly ngZone: NgZone;
|
|
187
187
|
protected readonly notifier: ColumnResizeNotifierSource;
|
|
188
188
|
protected readonly table: CdkTable<unknown>;
|
|
189
|
-
static ɵfac:
|
|
190
|
-
static ɵdir:
|
|
189
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkDefaultEnabledColumnResizeFlex, never>;
|
|
190
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkDefaultEnabledColumnResizeFlex, "cdk-table", never, {}, {}, never, never, true, never>;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
/**
|
|
@@ -195,18 +195,18 @@ declare class CdkDefaultEnabledColumnResizeFlex extends ColumnResize {
|
|
|
195
195
|
* When using this module, columns are resizable by default.
|
|
196
196
|
*/
|
|
197
197
|
declare class CdkColumnResizeDefaultEnabledModule {
|
|
198
|
-
static ɵfac:
|
|
199
|
-
static ɵmod:
|
|
200
|
-
static ɵinj:
|
|
198
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkColumnResizeDefaultEnabledModule, never>;
|
|
199
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CdkColumnResizeDefaultEnabledModule, never, [typeof CdkDefaultEnabledColumnResize, typeof CdkDefaultEnabledColumnResizeFlex], [typeof CdkDefaultEnabledColumnResize, typeof CdkDefaultEnabledColumnResizeFlex]>;
|
|
200
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<CdkColumnResizeDefaultEnabledModule>;
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
* One of two NgModules for use with CdkColumnResize.
|
|
204
204
|
* When using this module, columns are not resizable by default.
|
|
205
205
|
*/
|
|
206
206
|
declare class CdkColumnResizeModule {
|
|
207
|
-
static ɵfac:
|
|
208
|
-
static ɵmod:
|
|
209
|
-
static ɵinj:
|
|
207
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkColumnResizeModule, never>;
|
|
208
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CdkColumnResizeModule, never, [typeof CdkColumnResize, typeof CdkColumnResizeFlex], [typeof CdkColumnResize, typeof CdkColumnResizeFlex]>;
|
|
209
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<CdkColumnResizeModule>;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/**
|
|
@@ -217,8 +217,8 @@ declare abstract class ColumnSizeStore {
|
|
|
217
217
|
abstract getSize(tableId: string, columnId: string): Observable<number | null> | null;
|
|
218
218
|
/** Persists the size of the specified column in the specified table. */
|
|
219
219
|
abstract setSize(tableId: string, columnId: string, sizePx: number): void;
|
|
220
|
-
static ɵfac:
|
|
221
|
-
static ɵprov:
|
|
220
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnSizeStore, never>;
|
|
221
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnSizeStore>;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
/** Tracks state of resize events in progress. */
|
|
@@ -261,8 +261,8 @@ declare class _CoalescedStyleScheduler {
|
|
|
261
261
|
*/
|
|
262
262
|
scheduleEnd(task: () => unknown): void;
|
|
263
263
|
private _createScheduleIfNeeded;
|
|
264
|
-
static ɵfac:
|
|
265
|
-
static ɵprov:
|
|
264
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
|
|
265
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
/**
|
|
@@ -295,8 +295,8 @@ declare abstract class ResizeOverlayHandle implements AfterViewInit, OnDestroy {
|
|
|
295
295
|
private _isLtr;
|
|
296
296
|
private _notifyResizeEnded;
|
|
297
297
|
private _observableFromEvent;
|
|
298
|
-
static ɵfac:
|
|
299
|
-
static ɵdir:
|
|
298
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizeOverlayHandle, never>;
|
|
299
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, true, never>;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
/**
|
|
@@ -324,8 +324,8 @@ declare abstract class ResizeStrategy implements OnDestroy {
|
|
|
324
324
|
registerColumn(column: HTMLElement): void;
|
|
325
325
|
ngOnDestroy(): void;
|
|
326
326
|
private _updateCachedSizes;
|
|
327
|
-
static ɵfac:
|
|
328
|
-
static ɵprov:
|
|
327
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizeStrategy, never>;
|
|
328
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ResizeStrategy>;
|
|
329
329
|
}
|
|
330
330
|
/**
|
|
331
331
|
* The optimally performing resize strategy for <table> elements with table-layout: fixed.
|
|
@@ -341,8 +341,8 @@ declare class TableLayoutFixedResizeStrategy extends ResizeStrategy {
|
|
|
341
341
|
applyColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number, previousSizeInPx?: number): void;
|
|
342
342
|
applyMinColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number): void;
|
|
343
343
|
applyMaxColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number): void;
|
|
344
|
-
static ɵfac:
|
|
345
|
-
static ɵprov:
|
|
344
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableLayoutFixedResizeStrategy, never>;
|
|
345
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableLayoutFixedResizeStrategy>;
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
348
348
|
* The optimally performing resize strategy for flex mat-tables.
|
|
@@ -373,8 +373,8 @@ declare class CdkFlexTableResizeStrategy extends ResizeStrategy implements OnDes
|
|
|
373
373
|
private _getStyleSheet;
|
|
374
374
|
private _getColumnPropertiesMap;
|
|
375
375
|
private _applySizeCss;
|
|
376
|
-
static ɵfac:
|
|
377
|
-
static ɵprov:
|
|
376
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkFlexTableResizeStrategy, never>;
|
|
377
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CdkFlexTableResizeStrategy>;
|
|
378
378
|
}
|
|
379
379
|
declare const TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER: Provider;
|
|
380
380
|
declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
|
|
@@ -429,8 +429,8 @@ declare abstract class Resizable<HandleComponent extends ResizeOverlayHandle> im
|
|
|
429
429
|
private _applyMinWidthPx;
|
|
430
430
|
private _applyMaxWidthPx;
|
|
431
431
|
private _appendInlineHandle;
|
|
432
|
-
static ɵfac:
|
|
433
|
-
static ɵdir:
|
|
432
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Resizable<any>, never>;
|
|
433
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never, true, never>;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
export { COLUMN_RESIZE_OPTIONS, CdkColumnResize, CdkColumnResizeDefaultEnabledModule, CdkColumnResizeFlex, CdkColumnResizeModule, CdkDefaultEnabledColumnResize, CdkDefaultEnabledColumnResizeFlex, CdkFlexTableResizeStrategy, ColumnResize, ColumnResizeNotifier, ColumnResizeNotifierSource, ColumnSizeStore, FLEX_RESIZE_STRATEGY_PROVIDER, HeaderRowEventDispatcher, Resizable, ResizeOverlayHandle, ResizeRef, ResizeStrategy, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, TableLayoutFixedResizeStrategy, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule };
|
package/combobox/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, OnDestroy, ViewContainerRef, TemplateRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/overlay';
|
|
4
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
@@ -63,8 +63,8 @@ declare class CdkCombobox<T = unknown> implements OnDestroy {
|
|
|
63
63
|
private _coerceOpenActionProperty;
|
|
64
64
|
/** Registers the content's id and the content type with the panel. */
|
|
65
65
|
_registerContent(contentId: string, contentType: AriaHasPopupValue): void;
|
|
66
|
-
static ɵfac:
|
|
67
|
-
static ɵdir:
|
|
66
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkCombobox<any>, never>;
|
|
67
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkCombobox<any>, "[cdkCombobox]", ["cdkCombobox"], { "_panelTemplateRef": { "alias": "cdkComboboxTriggerFor"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "openActions": { "alias": "openActions"; "required": false; }; "autoSetText": { "alias": "autoSetText"; "required": false; }; }, { "opened": "comboboxPanelOpened"; "closed": "comboboxPanelClosed"; "panelValueChanged": "panelValueChanged"; }, never, never, true, never>;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
declare class CdkComboboxPopup<T = unknown> implements OnInit {
|
|
@@ -80,14 +80,14 @@ declare class CdkComboboxPopup<T = unknown> implements OnInit {
|
|
|
80
80
|
ngOnInit(): void;
|
|
81
81
|
registerWithPanel(): void;
|
|
82
82
|
focusFirstElement(): void;
|
|
83
|
-
static ɵfac:
|
|
84
|
-
static ɵdir:
|
|
83
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkComboboxPopup<any>, never>;
|
|
84
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkComboboxPopup<any>, "[cdkComboboxPopup]", ["cdkComboboxPopup"], { "role": { "alias": "role"; "required": false; }; "firstFocus": { "alias": "firstFocus"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
declare class CdkComboboxModule {
|
|
88
|
-
static ɵfac:
|
|
89
|
-
static ɵmod:
|
|
90
|
-
static ɵinj:
|
|
88
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkComboboxModule, never>;
|
|
89
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CdkComboboxModule, never, [typeof i1.OverlayModule, typeof CdkCombobox, typeof CdkComboboxPopup], [typeof CdkCombobox, typeof CdkComboboxPopup]>;
|
|
90
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<CdkComboboxModule>;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export { CDK_COMBOBOX, CdkCombobox, CdkComboboxModule, CdkComboboxPopup };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A container directive controls the visibility of its content.
|
|
5
5
|
*/
|
|
6
6
|
declare class DeferredContentAware {
|
|
7
|
-
contentVisible:
|
|
8
|
-
readonly preserveContent:
|
|
9
|
-
static ɵfac:
|
|
10
|
-
static ɵdir:
|
|
7
|
+
contentVisible: _angular_core.WritableSignal<boolean>;
|
|
8
|
+
readonly preserveContent: _angular_core.InputSignal<boolean>;
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeferredContentAware, never>;
|
|
10
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DeferredContentAware, never, never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* DeferredContent loads/unloads the content based on the visibility.
|
|
@@ -30,8 +30,8 @@ declare class DeferredContent {
|
|
|
30
30
|
private readonly _viewContainerRef;
|
|
31
31
|
private _isRendered;
|
|
32
32
|
constructor();
|
|
33
|
-
static ɵfac:
|
|
34
|
-
static ɵdir:
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeferredContent, never>;
|
|
34
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DeferredContent, never, never, {}, {}, never, never, true, never>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export { DeferredContent, DeferredContentAware };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { S as SignalLike, W as WritableSignalLike } from './list-navigation.d-tcweHm4g.js';
|
|
3
3
|
|
|
4
4
|
/** Represents an item that can be expanded or collapsed. */
|
|
5
|
-
interface ExpansionItem
|
|
5
|
+
interface ExpansionItem {
|
|
6
6
|
/** Whether the item is expandable. */
|
|
7
7
|
expandable: SignalLike<boolean>;
|
|
8
8
|
/** Used to uniquely identify an expansion item. */
|
|
9
9
|
expansionId: SignalLike<string>;
|
|
10
|
+
/** Whether the expansion is disabled. */
|
|
11
|
+
disabled: SignalLike<boolean>;
|
|
10
12
|
}
|
|
11
13
|
interface ExpansionControl extends ExpansionItem {
|
|
12
14
|
}
|
|
@@ -16,14 +18,14 @@ interface ExpansionControl extends ExpansionItem {
|
|
|
16
18
|
*/
|
|
17
19
|
declare class ExpansionControl {
|
|
18
20
|
readonly inputs: ExpansionItem & {
|
|
19
|
-
expansionManager: ListExpansion
|
|
21
|
+
expansionManager: ListExpansion;
|
|
20
22
|
};
|
|
21
23
|
/** Whether this specific item is currently expanded. Derived from the Expansion manager. */
|
|
22
|
-
readonly isExpanded:
|
|
24
|
+
readonly isExpanded: _angular_core.Signal<boolean>;
|
|
23
25
|
/** Whether this item can be expanded. */
|
|
24
|
-
readonly isExpandable:
|
|
26
|
+
readonly isExpandable: _angular_core.Signal<boolean>;
|
|
25
27
|
constructor(inputs: ExpansionItem & {
|
|
26
|
-
expansionManager: ListExpansion
|
|
28
|
+
expansionManager: ListExpansion;
|
|
27
29
|
});
|
|
28
30
|
/** Requests the Expansopn manager to open this item. */
|
|
29
31
|
open(): void;
|
|
@@ -33,41 +35,36 @@ declare class ExpansionControl {
|
|
|
33
35
|
toggle(): void;
|
|
34
36
|
}
|
|
35
37
|
/** Represents the required inputs for an expansion behavior. */
|
|
36
|
-
interface ListExpansionInputs
|
|
38
|
+
interface ListExpansionInputs {
|
|
37
39
|
/** Whether multiple items can be expanded at once. */
|
|
38
40
|
multiExpandable: SignalLike<boolean>;
|
|
39
41
|
/** An array of ids of the currently expanded items. */
|
|
40
42
|
expandedIds: WritableSignalLike<string[]>;
|
|
43
|
+
/** An array of expansion items. */
|
|
44
|
+
items: SignalLike<ExpansionItem[]>;
|
|
45
|
+
/** Whether all expansions are disabled. */
|
|
46
|
+
disabled: SignalLike<boolean>;
|
|
41
47
|
}
|
|
42
48
|
/** Manages the expansion state of a list of items. */
|
|
43
|
-
declare class ListExpansion
|
|
44
|
-
readonly inputs: ListExpansionInputs
|
|
45
|
-
focusManager: ListFocus<T>;
|
|
46
|
-
};
|
|
49
|
+
declare class ListExpansion {
|
|
50
|
+
readonly inputs: ListExpansionInputs;
|
|
47
51
|
/** A signal holding an array of ids of the currently expanded items. */
|
|
48
52
|
expandedIds: WritableSignalLike<string[]>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
/** Closes the specified item, or the currently active item if none is specified. */
|
|
57
|
-
close(item?: T): void;
|
|
58
|
-
/**
|
|
59
|
-
* Toggles the expansion state of the specified item,
|
|
60
|
-
* or the currently active item if none is specified.
|
|
61
|
-
*/
|
|
62
|
-
toggle(item?: T): void;
|
|
53
|
+
constructor(inputs: ListExpansionInputs);
|
|
54
|
+
/** Opens the specified item. */
|
|
55
|
+
open(item: ExpansionItem): void;
|
|
56
|
+
/** Closes the specified item. */
|
|
57
|
+
close(item: ExpansionItem): void;
|
|
58
|
+
/** Toggles the expansion state of the specified item. */
|
|
59
|
+
toggle(item: ExpansionItem): void;
|
|
63
60
|
/** Opens all focusable items in the list. */
|
|
64
61
|
openAll(): void;
|
|
65
62
|
/** Closes all focusable items in the list. */
|
|
66
63
|
closeAll(): void;
|
|
67
64
|
/** Checks whether the specified item is expandable / collapsible. */
|
|
68
|
-
isExpandable(item:
|
|
65
|
+
isExpandable(item: ExpansionItem): boolean;
|
|
69
66
|
/** Checks whether the specified item is currently expanded. */
|
|
70
|
-
isExpanded(item:
|
|
67
|
+
isExpanded(item: ExpansionItem): boolean;
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
export { ListExpansion as a, ExpansionControl as b };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed } from '@angular/core';
|
|
2
2
|
import { L as ListFocus, a as ListNavigation, K as KeyboardEventManager, P as PointerEventManager } from './list-focus-BXQdAA3i.mjs';
|
|
3
|
-
import { L as ListExpansion, E as ExpansionControl } from './expansion-
|
|
3
|
+
import { L as ListExpansion, E as ExpansionControl } from './expansion-C9iQLHOG.mjs';
|
|
4
4
|
|
|
5
5
|
const focusMode = () => 'roving';
|
|
6
6
|
/** A pattern controls the nested Accordions. */
|
|
@@ -34,8 +34,6 @@ class AccordionGroupPattern {
|
|
|
34
34
|
});
|
|
35
35
|
this.expansionManager = new ListExpansion({
|
|
36
36
|
...inputs,
|
|
37
|
-
focusMode,
|
|
38
|
-
focusManager: this.focusManager,
|
|
39
37
|
});
|
|
40
38
|
}
|
|
41
39
|
}
|
|
@@ -149,4 +147,4 @@ class AccordionPanelPattern {
|
|
|
149
147
|
}
|
|
150
148
|
|
|
151
149
|
export { AccordionPanelPattern as A, AccordionTriggerPattern as a, AccordionGroupPattern as b };
|
|
152
|
-
//# sourceMappingURL=accordion-
|
|
150
|
+
//# sourceMappingURL=accordion-CN4PcmAh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-CN4PcmAh.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/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 {computed} from '@angular/core';\nimport {KeyboardEventManager} from '../behaviors/event-manager/keyboard-event-manager';\nimport {PointerEventManager} from '../behaviors/event-manager/pointer-event-manager';\nimport {\n ExpansionItem,\n ExpansionControl,\n ListExpansion,\n ListExpansionInputs,\n} from '../behaviors/expansion/expansion';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../behaviors/list-focus/list-focus';\nimport {\n ListNavigation,\n ListNavigationInputs,\n ListNavigationItem,\n} from '../behaviors/list-navigation/list-navigation';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\n\n/** Inputs of the AccordionGroupPattern. */\nexport type AccordionGroupInputs = Omit<\n ListNavigationInputs<AccordionTriggerPattern> &\n ListFocusInputs<AccordionTriggerPattern> &\n Omit<ListExpansionInputs, 'items'>,\n 'focusMode'\n>;\n\nconst focusMode = () => 'roving' as const;\n\nexport interface AccordionGroupPattern extends AccordionGroupInputs {}\n/** A pattern controls the nested Accordions. */\nexport class AccordionGroupPattern {\n /** Controls navigation for the group. */\n navigation: ListNavigation<AccordionTriggerPattern>;\n\n /** Controls focus for the group. */\n focusManager: ListFocus<AccordionTriggerPattern>;\n\n /** Controls expansion for the group. */\n expansionManager: ListExpansion;\n\n constructor(readonly inputs: AccordionGroupInputs) {\n this.wrap = inputs.wrap;\n this.orientation = inputs.orientation;\n this.textDirection = inputs.textDirection;\n this.activeIndex = inputs.activeIndex;\n this.disabled = inputs.disabled;\n this.multiExpandable = inputs.multiExpandable;\n this.items = inputs.items;\n this.expandedIds = inputs.expandedIds;\n this.skipDisabled = inputs.skipDisabled;\n this.focusManager = new ListFocus({\n ...inputs,\n focusMode,\n });\n this.navigation = new ListNavigation({\n ...inputs,\n focusMode,\n focusManager: this.focusManager,\n });\n this.expansionManager = new ListExpansion({\n ...inputs,\n });\n }\n}\n\n/** Inputs for the AccordionTriggerPattern. */\nexport type AccordionTriggerInputs = ListNavigationItem &\n ListFocusItem &\n Omit<ExpansionItem, 'expansionId' | 'expandable'> & {\n /** A local unique identifier for the trigger. */\n value: SignalLike<string>;\n\n /** The parent accordion group that controls this trigger. */\n accordionGroup: SignalLike<AccordionGroupPattern>;\n\n /** The accordion panel controlled by this trigger. */\n accordionPanel: SignalLike<AccordionPanelPattern | undefined>;\n };\n\nexport interface AccordionTriggerPattern extends AccordionTriggerInputs {}\n/** A pattern controls the expansion state of an accordion. */\nexport class AccordionTriggerPattern {\n /** Whether this tab has expandable content. */\n expandable: SignalLike<boolean>;\n\n /** The unique identifier used by the expansion behavior. */\n expansionId: SignalLike<string>;\n\n /** Whether an accordion is expanded. */\n expanded: SignalLike<boolean>;\n\n /** Controls the expansion state for the trigger. */\n expansionControl: ExpansionControl;\n\n /** Whether the trigger is active. */\n active = computed(() => this.inputs.accordionGroup().focusManager.activeItem() === this);\n\n /** Id of the accordion panel controlled by the trigger. */\n controls = computed(() => this.inputs.accordionPanel()?.id());\n\n /** The tabindex of the trigger. */\n tabindex = computed(() => (this.inputs.accordionGroup().focusManager.isFocusable(this) ? 0 : -1));\n\n /** Whether the trigger is disabled. Disabling an accordion group disables all the triggers. */\n disabled = computed(() => this.inputs.disabled() || this.inputs.accordionGroup().disabled());\n\n constructor(readonly inputs: AccordionTriggerInputs) {\n this.id = inputs.id;\n this.element = inputs.element;\n this.value = inputs.value;\n this.accordionGroup = inputs.accordionGroup;\n this.accordionPanel = inputs.accordionPanel;\n this.expansionControl = new ExpansionControl({\n ...inputs,\n expansionId: inputs.value,\n expandable: () => true,\n expansionManager: inputs.accordionGroup().expansionManager,\n });\n this.expandable = this.expansionControl.isExpandable;\n this.expansionId = this.expansionControl.expansionId;\n this.expanded = this.expansionControl.isExpanded;\n }\n\n /** The key used to navigate to the previous accordion trigger. */\n prevKey = computed(() => {\n if (this.inputs.accordionGroup().orientation() === 'vertical') {\n return 'ArrowUp';\n }\n return this.inputs.accordionGroup().textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n });\n\n /** The key used to navigate to the next accordion trigger. */\n nextKey = computed(() => {\n if (this.inputs.accordionGroup().orientation() === 'vertical') {\n return 'ArrowDown';\n }\n return this.inputs.accordionGroup().textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** The keydown event manager for the accordion trigger. */\n keydown = computed(() => {\n return new KeyboardEventManager()\n .on(this.prevKey, () => this.accordionGroup().navigation.prev())\n .on(this.nextKey, () => this.accordionGroup().navigation.next())\n .on('Home', () => this.accordionGroup().navigation.first())\n .on('End', () => this.accordionGroup().navigation.last())\n .on(' ', () => this.expansionControl.toggle())\n .on('Enter', () => this.expansionControl.toggle());\n });\n\n /** The pointerdown event manager for the accordion trigger. */\n pointerdown = computed(() => {\n return new PointerEventManager().on(e => {\n const item = this._getItem(e);\n\n if (item) {\n this.accordionGroup().navigation.goto(item);\n this.expansionControl.toggle();\n }\n });\n });\n\n /** Handles keydown events on the trigger, delegating to the group if not disabled. */\n onKeydown(event: KeyboardEvent): void {\n this.keydown().handle(event);\n }\n\n /** Handles pointerdown events on the trigger, delegating to the group if not disabled. */\n onPointerdown(event: PointerEvent): void {\n this.pointerdown().handle(event);\n }\n\n /** Handles focus events on the trigger. This ensures the tabbing changes the active index. */\n onFocus(event: FocusEvent): void {\n const item = this._getItem(event);\n\n if (item && this.inputs.accordionGroup().focusManager.isFocusable(item)) {\n this.accordionGroup().focusManager.focus(item);\n }\n }\n\n private _getItem(e: Event) {\n if (!(e.target instanceof HTMLElement)) {\n return;\n }\n\n const element = e.target.closest('[role=\"button\"]');\n return this.accordionGroup()\n .items()\n .find(i => i.element() === element);\n }\n}\n\n/** Represents the required inputs for the AccordionPanelPattern. */\nexport interface AccordionPanelInputs {\n /** A global unique identifier for the panel. */\n id: SignalLike<string>;\n\n /** A local unique identifier for the panel, matching its trigger's value. */\n value: SignalLike<string>;\n\n /** The parent accordion trigger that controls this panel. */\n accordionTrigger: SignalLike<AccordionTriggerPattern | undefined>;\n}\n\nexport interface AccordionPanelPattern extends AccordionPanelInputs {}\n/** Represents an accordion panel. */\nexport class AccordionPanelPattern {\n /** Whether the accordion panel is hidden. True if the associated trigger is not expanded. */\n hidden: SignalLike<boolean>;\n\n constructor(readonly inputs: AccordionPanelInputs) {\n this.id = inputs.id;\n this.value = inputs.value;\n this.accordionTrigger = inputs.accordionTrigger;\n this.hidden = computed(() => inputs.accordionTrigger()?.expanded() === false);\n }\n}\n"],"names":[],"mappings":";;;;AAiCA,MAAM,SAAS,GAAG,MAAM,QAAiB;AAGzC;MACa,qBAAqB,CAAA;AAUX,IAAA,MAAA;;AARrB,IAAA,UAAU;;AAGV,IAAA,YAAY;;AAGZ,IAAA,gBAAgB;AAEhB,IAAA,WAAA,CAAqB,MAA4B,EAAA;QAA5B,IAAM,CAAA,MAAA,GAAN,MAAM;AACzB,QAAA,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI;AACvB,QAAA,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW;AACrC,QAAA,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa;AACzC,QAAA,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW;AACrC,QAAA,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ;AAC/B,QAAA,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe;AAC7C,QAAA,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW;AACrC,QAAA,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY;AACvC,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,SAAS,CAAC;AAChC,YAAA,GAAG,MAAM;YACT,SAAS;AACV,SAAA,CAAC;AACF,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC;AACnC,YAAA,GAAG,MAAM;YACT,SAAS;YACT,YAAY,EAAE,IAAI,CAAC,YAAY;AAChC,SAAA,CAAC;AACF,QAAA,IAAI,CAAC,gBAAgB,GAAG,IAAI,aAAa,CAAC;AACxC,YAAA,GAAG,MAAM;AACV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AO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;QACnD,OAAO,IAAI,CAAC,cAAc;AACvB,aAAA,KAAK;AACL,aAAA,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC;;AAExC;AAeD;MACa,qBAAqB,CAAA;AAIX,IAAA,MAAA;;AAFrB,IAAA,MAAM;AAEN,IAAA,WAAA,CAAqB,MAA4B,EAAA;QAA5B,IAAM,CAAA,MAAA,GAAN,MAAM;AACzB,QAAA,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE;AACnB,QAAA,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK;AACzB,QAAA,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB;AAC/C,QAAA,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,KAAK,KAAK,CAAC;;AAEhF;;;;"}
|
package/fesm2022/accordion.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import { _IdGenerator } from '@angular/cdk/a11y';
|
|
|
4
4
|
import { Directionality } from '@angular/cdk/bidi';
|
|
5
5
|
import * as i1 from '@angular/cdk-experimental/deferred-content';
|
|
6
6
|
import { DeferredContentAware, DeferredContent } from '@angular/cdk-experimental/deferred-content';
|
|
7
|
-
import { A as AccordionPanelPattern, a as AccordionTriggerPattern, b as AccordionGroupPattern } from './accordion-
|
|
7
|
+
import { A as AccordionPanelPattern, a as AccordionTriggerPattern, b as AccordionGroupPattern } from './accordion-CN4PcmAh.mjs';
|
|
8
8
|
import './list-focus-BXQdAA3i.mjs';
|
|
9
|
-
import './expansion-
|
|
9
|
+
import './expansion-C9iQLHOG.mjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Represents the content panel of an accordion item. It is controlled by an
|