@angular/cdk 14.2.0-next.2 → 14.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dialog/index.d.ts +2 -0
- package/esm2020/dialog/dialog.mjs +9 -6
- package/esm2020/listbox/index.mjs +9 -0
- package/esm2020/listbox/listbox-module.mjs +24 -0
- package/esm2020/listbox/listbox.mjs +875 -0
- package/esm2020/listbox/listbox_public_index.mjs +5 -0
- package/esm2020/listbox/public-api.mjs +10 -0
- package/esm2020/overlay/overlay-directives.mjs +1 -1
- package/esm2020/version.mjs +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/dialog.mjs +10 -6
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/listbox.mjs +930 -0
- package/fesm2015/listbox.mjs.map +1 -0
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/dialog.mjs +8 -5
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/listbox.mjs +919 -0
- package/fesm2020/listbox.mjs.map +1 -0
- package/fesm2020/overlay.mjs.map +1 -1
- package/listbox/index.d.ts +375 -0
- package/overlay/index.d.ts +1 -1
- package/package.json +9 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
3
|
+
import { AfterContentInit } from '@angular/core';
|
|
4
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { Highlightable } from '@angular/cdk/a11y';
|
|
8
|
+
import * as i0 from '@angular/core';
|
|
9
|
+
import { ListKeyManagerOption } from '@angular/cdk/a11y';
|
|
10
|
+
import { OnDestroy } from '@angular/core';
|
|
11
|
+
import { QueryList } from '@angular/core';
|
|
12
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
13
|
+
import { Subject } from 'rxjs';
|
|
14
|
+
import { ValidationErrors } from '@angular/forms';
|
|
15
|
+
import { Validator } from '@angular/forms';
|
|
16
|
+
|
|
17
|
+
export declare class CdkListbox<T = unknown> implements AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
|
|
18
|
+
/** The id of the option's host element. */
|
|
19
|
+
get id(): string;
|
|
20
|
+
set id(value: string);
|
|
21
|
+
private _id;
|
|
22
|
+
private _generatedId;
|
|
23
|
+
/** The tabindex to use when the listbox is enabled. */
|
|
24
|
+
get enabledTabIndex(): number | null;
|
|
25
|
+
set enabledTabIndex(value: number | null);
|
|
26
|
+
private _enabledTabIndex?;
|
|
27
|
+
/** The value selected in the listbox, represented as an array of option values. */
|
|
28
|
+
get value(): readonly T[];
|
|
29
|
+
set value(value: readonly T[]);
|
|
30
|
+
/**
|
|
31
|
+
* Whether the listbox allows multiple options to be selected. If the value switches from `true`
|
|
32
|
+
* to `false`, and more than one option is selected, all options are deselected.
|
|
33
|
+
*/
|
|
34
|
+
get multiple(): boolean;
|
|
35
|
+
set multiple(value: BooleanInput);
|
|
36
|
+
/** Whether the listbox is disabled. */
|
|
37
|
+
get disabled(): boolean;
|
|
38
|
+
set disabled(value: BooleanInput);
|
|
39
|
+
private _disabled;
|
|
40
|
+
/** Whether the listbox will use active descendant or will move focus onto the options. */
|
|
41
|
+
get useActiveDescendant(): boolean;
|
|
42
|
+
set useActiveDescendant(shouldUseActiveDescendant: BooleanInput);
|
|
43
|
+
private _useActiveDescendant;
|
|
44
|
+
/** The orientation of the listbox. Only affects keyboard interaction, not visual layout. */
|
|
45
|
+
get orientation(): 'horizontal' | 'vertical';
|
|
46
|
+
set orientation(value: 'horizontal' | 'vertical');
|
|
47
|
+
private _orientation;
|
|
48
|
+
/** The function used to compare option values. */
|
|
49
|
+
get compareWith(): undefined | ((o1: T, o2: T) => boolean);
|
|
50
|
+
set compareWith(fn: undefined | ((o1: T, o2: T) => boolean));
|
|
51
|
+
/**
|
|
52
|
+
* Whether the keyboard navigation should wrap when the user presses arrow down on the last item
|
|
53
|
+
* or arrow up on the first item.
|
|
54
|
+
*/
|
|
55
|
+
get navigationWrapDisabled(): BooleanInput;
|
|
56
|
+
set navigationWrapDisabled(wrap: BooleanInput);
|
|
57
|
+
private _navigationWrapDisabled;
|
|
58
|
+
/** Whether keyboard navigation should skip over disabled items. */
|
|
59
|
+
get navigateDisabledOptions(): BooleanInput;
|
|
60
|
+
set navigateDisabledOptions(skip: BooleanInput);
|
|
61
|
+
private _navigateDisabledOptions;
|
|
62
|
+
/** Emits when the selected value(s) in the listbox change. */
|
|
63
|
+
readonly valueChange: Subject<ListboxValueChangeEvent<T>>;
|
|
64
|
+
/** The child options in this listbox. */
|
|
65
|
+
protected options: QueryList<CdkOption<T>>;
|
|
66
|
+
/** The selection model used by the listbox. */
|
|
67
|
+
protected selectionModel: ListboxSelectionModel<T>;
|
|
68
|
+
/** The key manager that manages keyboard navigation for this listbox. */
|
|
69
|
+
protected listKeyManager: ActiveDescendantKeyManager<CdkOption<T>>;
|
|
70
|
+
/** Emits when the listbox is destroyed. */
|
|
71
|
+
protected readonly destroyed: Subject<void>;
|
|
72
|
+
/** The host element of the listbox. */
|
|
73
|
+
protected readonly element: HTMLElement;
|
|
74
|
+
/** The change detector for this listbox. */
|
|
75
|
+
protected readonly changeDetectorRef: ChangeDetectorRef;
|
|
76
|
+
/** Whether the currently selected value in the selection model is invalid. */
|
|
77
|
+
private _invalid;
|
|
78
|
+
/** The last user-triggered option. */
|
|
79
|
+
private _lastTriggered;
|
|
80
|
+
/** Callback called when the listbox has been touched */
|
|
81
|
+
private _onTouched;
|
|
82
|
+
/** Callback called when the listbox value changes */
|
|
83
|
+
private _onChange;
|
|
84
|
+
/** Callback called when the form validator changes. */
|
|
85
|
+
private _onValidatorChange;
|
|
86
|
+
/** Emits when an option has been clicked. */
|
|
87
|
+
private _optionClicked;
|
|
88
|
+
/** The directionality of the page. */
|
|
89
|
+
private readonly _dir;
|
|
90
|
+
/** A predicate that skips disabled options. */
|
|
91
|
+
private readonly _skipDisabledPredicate;
|
|
92
|
+
/** A predicate that does not skip any options. */
|
|
93
|
+
private readonly _skipNonePredicate;
|
|
94
|
+
/**
|
|
95
|
+
* Validator that produces an error if multiple values are selected in a single selection
|
|
96
|
+
* listbox.
|
|
97
|
+
* @param control The control to validate
|
|
98
|
+
* @return A validation error or null
|
|
99
|
+
*/
|
|
100
|
+
private _validateUnexpectedMultipleValues;
|
|
101
|
+
/**
|
|
102
|
+
* Validator that produces an error if any selected values are not valid options for this listbox.
|
|
103
|
+
* @param control The control to validate
|
|
104
|
+
* @return A validation error or null
|
|
105
|
+
*/
|
|
106
|
+
private _validateUnexpectedOptionValues;
|
|
107
|
+
/** The combined set of validators for this listbox. */
|
|
108
|
+
private _validators;
|
|
109
|
+
constructor();
|
|
110
|
+
ngAfterContentInit(): void;
|
|
111
|
+
ngOnDestroy(): void;
|
|
112
|
+
/**
|
|
113
|
+
* Toggle the selected state of the given option.
|
|
114
|
+
* @param option The option to toggle
|
|
115
|
+
*/
|
|
116
|
+
toggle(option: CdkOption<T>): void;
|
|
117
|
+
/**
|
|
118
|
+
* Toggle the selected state of the given value.
|
|
119
|
+
* @param value The value to toggle
|
|
120
|
+
*/
|
|
121
|
+
toggleValue(value: T): void;
|
|
122
|
+
/**
|
|
123
|
+
* Select the given option.
|
|
124
|
+
* @param option The option to select
|
|
125
|
+
*/
|
|
126
|
+
select(option: CdkOption<T>): void;
|
|
127
|
+
/**
|
|
128
|
+
* Select the given value.
|
|
129
|
+
* @param value The value to select
|
|
130
|
+
*/
|
|
131
|
+
selectValue(value: T): void;
|
|
132
|
+
/**
|
|
133
|
+
* Deselect the given option.
|
|
134
|
+
* @param option The option to deselect
|
|
135
|
+
*/
|
|
136
|
+
deselect(option: CdkOption<T>): void;
|
|
137
|
+
/**
|
|
138
|
+
* Deselect the given value.
|
|
139
|
+
* @param value The value to deselect
|
|
140
|
+
*/
|
|
141
|
+
deselectValue(value: T): void;
|
|
142
|
+
/**
|
|
143
|
+
* Set the selected state of all options.
|
|
144
|
+
* @param isSelected The new selected state to set
|
|
145
|
+
*/
|
|
146
|
+
setAllSelected(isSelected: boolean): void;
|
|
147
|
+
/**
|
|
148
|
+
* Get whether the given option is selected.
|
|
149
|
+
* @param option The option to get the selected state of
|
|
150
|
+
*/
|
|
151
|
+
isSelected(option: CdkOption<T>): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Get whether the given value is selected.
|
|
154
|
+
* @param value The value to get the selected state of
|
|
155
|
+
*/
|
|
156
|
+
isValueSelected(value: T): boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Registers a callback to be invoked when the listbox's value changes from user input.
|
|
159
|
+
* @param fn The callback to register
|
|
160
|
+
* @docs-private
|
|
161
|
+
*/
|
|
162
|
+
registerOnChange(fn: (value: readonly T[]) => void): void;
|
|
163
|
+
/**
|
|
164
|
+
* Registers a callback to be invoked when the listbox is blurred by the user.
|
|
165
|
+
* @param fn The callback to register
|
|
166
|
+
* @docs-private
|
|
167
|
+
*/
|
|
168
|
+
registerOnTouched(fn: () => {}): void;
|
|
169
|
+
/**
|
|
170
|
+
* Sets the listbox's value.
|
|
171
|
+
* @param value The new value of the listbox
|
|
172
|
+
* @docs-private
|
|
173
|
+
*/
|
|
174
|
+
writeValue(value: readonly T[]): void;
|
|
175
|
+
/**
|
|
176
|
+
* Sets the disabled state of the listbox.
|
|
177
|
+
* @param isDisabled The new disabled state
|
|
178
|
+
* @docs-private
|
|
179
|
+
*/
|
|
180
|
+
setDisabledState(isDisabled: boolean): void;
|
|
181
|
+
/**
|
|
182
|
+
* Validate the given control
|
|
183
|
+
* @docs-private
|
|
184
|
+
*/
|
|
185
|
+
validate(control: AbstractControl<any, any>): ValidationErrors | null;
|
|
186
|
+
/**
|
|
187
|
+
* Registers a callback to be called when the form validator changes.
|
|
188
|
+
* @param fn The callback to call
|
|
189
|
+
* @docs-private
|
|
190
|
+
*/
|
|
191
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
192
|
+
/** Focus the listbox's host element. */
|
|
193
|
+
focus(): void;
|
|
194
|
+
/**
|
|
195
|
+
* Triggers the given option in response to user interaction.
|
|
196
|
+
* - In single selection mode: selects the option and deselects any other selected option.
|
|
197
|
+
* - In multi selection mode: toggles the selected state of the option.
|
|
198
|
+
* @param option The option to trigger
|
|
199
|
+
*/
|
|
200
|
+
protected triggerOption(option: CdkOption<T> | null): void;
|
|
201
|
+
/**
|
|
202
|
+
* Trigger the given range of options in response to user interaction.
|
|
203
|
+
* Should only be called in multi-selection mode.
|
|
204
|
+
* @param trigger The option that was triggered
|
|
205
|
+
* @param from The start index of the options to toggle
|
|
206
|
+
* @param to The end index of the options to toggle
|
|
207
|
+
* @param on Whether to toggle the option range on
|
|
208
|
+
*/
|
|
209
|
+
protected triggerRange(trigger: CdkOption<T> | null, from: number, to: number, on: boolean): void;
|
|
210
|
+
/**
|
|
211
|
+
* Sets the given option as active.
|
|
212
|
+
* @param option The option to make active
|
|
213
|
+
*/
|
|
214
|
+
_setActiveOption(option: CdkOption<T>): void;
|
|
215
|
+
/** Called when the listbox receives focus. */
|
|
216
|
+
protected _handleFocus(): void;
|
|
217
|
+
/** Called when the user presses keydown on the listbox. */
|
|
218
|
+
protected _handleKeydown(event: KeyboardEvent): void;
|
|
219
|
+
/**
|
|
220
|
+
* Called when the focus leaves an element in the listbox.
|
|
221
|
+
* @param event The focusout event
|
|
222
|
+
*/
|
|
223
|
+
protected _handleFocusOut(event: FocusEvent): void;
|
|
224
|
+
/** Get the id of the active option if active descendant is being used. */
|
|
225
|
+
protected _getAriaActiveDescendant(): string | null | undefined;
|
|
226
|
+
/** Get the tabindex for the listbox. */
|
|
227
|
+
protected _getTabIndex(): number | null;
|
|
228
|
+
/** Initialize the key manager. */
|
|
229
|
+
private _initKeyManager;
|
|
230
|
+
/** Focus the active option. */
|
|
231
|
+
private _focusActiveOption;
|
|
232
|
+
/**
|
|
233
|
+
* Set the selected values.
|
|
234
|
+
* @param value The list of new selected values.
|
|
235
|
+
*/
|
|
236
|
+
private _setSelection;
|
|
237
|
+
/** Update the internal value of the listbox based on the selection model. */
|
|
238
|
+
private _updateInternalValue;
|
|
239
|
+
/**
|
|
240
|
+
* Gets the index of the given value in the given list of options.
|
|
241
|
+
* @param cache The cache of indices found so far
|
|
242
|
+
* @param value The value to find
|
|
243
|
+
* @return The index of the value in the options list
|
|
244
|
+
*/
|
|
245
|
+
private _getIndexForValue;
|
|
246
|
+
/**
|
|
247
|
+
* Handle the user clicking an option.
|
|
248
|
+
* @param option The option that was clicked.
|
|
249
|
+
*/
|
|
250
|
+
private _handleOptionClicked;
|
|
251
|
+
/** Verifies that no two options represent the same value under the compareWith function. */
|
|
252
|
+
private _verifyNoOptionValueCollisions;
|
|
253
|
+
/**
|
|
254
|
+
* Coerces a value into an array representing a listbox selection.
|
|
255
|
+
* @param value The value to coerce
|
|
256
|
+
* @return An array
|
|
257
|
+
*/
|
|
258
|
+
private _coerceValue;
|
|
259
|
+
/**
|
|
260
|
+
* Get the sublist of values that do not represent valid option values in this listbox.
|
|
261
|
+
* @param values The list of values
|
|
262
|
+
* @return The sublist of values that are not valid option values
|
|
263
|
+
*/
|
|
264
|
+
private _getInvalidOptionValues;
|
|
265
|
+
/** Get the index of the last triggered option. */
|
|
266
|
+
private _getLastTriggeredIndex;
|
|
267
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkListbox<any>, never>;
|
|
268
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "id": "id"; "enabledTabIndex": "tabindex"; "value": "cdkListboxValue"; "multiple": "cdkListboxMultiple"; "disabled": "cdkListboxDisabled"; "useActiveDescendant": "cdkListboxUseActiveDescendant"; "orientation": "cdkListboxOrientation"; "compareWith": "cdkListboxCompareWith"; "navigationWrapDisabled": "cdkListboxNavigationWrapDisabled"; "navigateDisabledOptions": "cdkListboxNavigatesDisabledOptions"; }, { "valueChange": "cdkListboxValueChange"; }, ["options"], never, false>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare class CdkListboxModule {
|
|
272
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkListboxModule, never>;
|
|
273
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkListboxModule, [typeof i1.CdkListbox, typeof i1.CdkOption], never, [typeof i1.CdkListbox, typeof i1.CdkOption]>;
|
|
274
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CdkListboxModule>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/** A selectable option in a listbox. */
|
|
278
|
+
export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightable, OnDestroy {
|
|
279
|
+
/** The id of the option's host element. */
|
|
280
|
+
get id(): string;
|
|
281
|
+
set id(value: string);
|
|
282
|
+
private _id;
|
|
283
|
+
private _generatedId;
|
|
284
|
+
/** The value of this option. */
|
|
285
|
+
value: T;
|
|
286
|
+
/**
|
|
287
|
+
* The text used to locate this item during listbox typeahead. If not specified,
|
|
288
|
+
* the `textContent` of the item will be used.
|
|
289
|
+
*/
|
|
290
|
+
typeaheadLabel: string;
|
|
291
|
+
/** Whether this option is disabled. */
|
|
292
|
+
get disabled(): boolean;
|
|
293
|
+
set disabled(value: BooleanInput);
|
|
294
|
+
private _disabled;
|
|
295
|
+
/** The tabindex of the option when it is enabled. */
|
|
296
|
+
get enabledTabIndex(): number | null;
|
|
297
|
+
set enabledTabIndex(value: number | null);
|
|
298
|
+
private _enabledTabIndex?;
|
|
299
|
+
/** The option's host element */
|
|
300
|
+
readonly element: HTMLElement;
|
|
301
|
+
/** The parent listbox this option belongs to. */
|
|
302
|
+
protected readonly listbox: CdkListbox<T>;
|
|
303
|
+
/** Emits when the option is destroyed. */
|
|
304
|
+
protected destroyed: Subject<void>;
|
|
305
|
+
/** Emits when the option is clicked. */
|
|
306
|
+
readonly _clicked: Subject<MouseEvent>;
|
|
307
|
+
/** Whether the option is currently active. */
|
|
308
|
+
private _active;
|
|
309
|
+
ngOnDestroy(): void;
|
|
310
|
+
/** Whether this option is selected. */
|
|
311
|
+
isSelected(): boolean;
|
|
312
|
+
/** Whether this option is active. */
|
|
313
|
+
isActive(): boolean;
|
|
314
|
+
/** Toggle the selected state of this option. */
|
|
315
|
+
toggle(): void;
|
|
316
|
+
/** Select this option if it is not selected. */
|
|
317
|
+
select(): void;
|
|
318
|
+
/** Deselect this option if it is selected. */
|
|
319
|
+
deselect(): void;
|
|
320
|
+
/** Focus this option. */
|
|
321
|
+
focus(): void;
|
|
322
|
+
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
323
|
+
getLabel(): string;
|
|
324
|
+
/**
|
|
325
|
+
* Set the option as active.
|
|
326
|
+
* @docs-private
|
|
327
|
+
*/
|
|
328
|
+
setActiveStyles(): void;
|
|
329
|
+
/**
|
|
330
|
+
* Set the option as inactive.
|
|
331
|
+
* @docs-private
|
|
332
|
+
*/
|
|
333
|
+
setInactiveStyles(): void;
|
|
334
|
+
/** Handle focus events on the option. */
|
|
335
|
+
protected _handleFocus(): void;
|
|
336
|
+
/** Get the tabindex for this option. */
|
|
337
|
+
protected _getTabIndex(): number | null;
|
|
338
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkOption<any>, never>;
|
|
339
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": "id"; "value": "cdkOption"; "typeaheadLabel": "cdkOptionTypeaheadLabel"; "disabled": "cdkOptionDisabled"; "enabledTabIndex": "tabindex"; }, {}, never, never, false>;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
declare namespace i1 {
|
|
343
|
+
export {
|
|
344
|
+
CdkOption,
|
|
345
|
+
CdkListbox,
|
|
346
|
+
ListboxValueChangeEvent
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* An implementation of SelectionModel that internally always represents the selection as a
|
|
352
|
+
* multi-selection. This is necessary so that we can recover the full selection if the user
|
|
353
|
+
* switches the listbox from single-selection to multi-selection after initialization.
|
|
354
|
+
*
|
|
355
|
+
* This selection model may report multiple selected values, even if it is in single-selection
|
|
356
|
+
* mode. It is up to the user (CdkListbox) to check for invalid selections.
|
|
357
|
+
*/
|
|
358
|
+
declare class ListboxSelectionModel<T> extends SelectionModel<T> {
|
|
359
|
+
multiple: boolean;
|
|
360
|
+
constructor(multiple?: boolean, initiallySelectedValues?: T[], emitChanges?: boolean, compareWith?: (o1: T, o2: T) => boolean);
|
|
361
|
+
isMultipleSelection(): boolean;
|
|
362
|
+
select(...values: T[]): boolean | void;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** Change event that is fired whenever the value of the listbox changes. */
|
|
366
|
+
export declare interface ListboxValueChangeEvent<T> {
|
|
367
|
+
/** The new value of the listbox. */
|
|
368
|
+
readonly value: readonly T[];
|
|
369
|
+
/** Reference to the listbox that emitted the event. */
|
|
370
|
+
readonly listbox: CdkListbox<T>;
|
|
371
|
+
/** Reference to the option that was triggered. */
|
|
372
|
+
readonly option: CdkOption<T> | null;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export { }
|
package/overlay/index.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
|
|
|
131
131
|
/** The min height of the overlay panel. */
|
|
132
132
|
minHeight: number | string;
|
|
133
133
|
/** The custom class to be set on the backdrop element. */
|
|
134
|
-
backdropClass: string;
|
|
134
|
+
backdropClass: string | string[];
|
|
135
135
|
/** The custom class to add to the overlay pane element. */
|
|
136
136
|
panelClass: string | string[];
|
|
137
137
|
/** Margin between the overlay and the viewport edges. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk",
|
|
3
|
-
"version": "14.2.0-
|
|
3
|
+
"version": "14.2.0-rc.0",
|
|
4
4
|
"description": "Angular Material Component Development Kit",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -132,6 +132,14 @@
|
|
|
132
132
|
"node": "./fesm2015/layout.mjs",
|
|
133
133
|
"default": "./fesm2020/layout.mjs"
|
|
134
134
|
},
|
|
135
|
+
"./listbox": {
|
|
136
|
+
"types": "./listbox/index.d.ts",
|
|
137
|
+
"esm2020": "./esm2020/listbox/listbox_public_index.mjs",
|
|
138
|
+
"es2020": "./fesm2020/listbox.mjs",
|
|
139
|
+
"es2015": "./fesm2015/listbox.mjs",
|
|
140
|
+
"node": "./fesm2015/listbox.mjs",
|
|
141
|
+
"default": "./fesm2020/listbox.mjs"
|
|
142
|
+
},
|
|
135
143
|
"./menu": {
|
|
136
144
|
"types": "./menu/index.d.ts",
|
|
137
145
|
"esm2020": "./esm2020/menu/menu_public_index.mjs",
|
|
@@ -28,7 +28,7 @@ function default_1() {
|
|
|
28
28
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
29
29
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
30
30
|
// dependencies in new CLI projects.
|
|
31
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.1.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.1.3`);
|
|
32
32
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
33
33
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
34
34
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
@@ -28,7 +28,7 @@ function default_1() {
|
|
|
28
28
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
29
29
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
30
30
|
// dependencies in new CLI projects.
|
|
31
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.1.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.1.3`);
|
|
32
32
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
33
33
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
34
34
|
context.addTask(new tasks_1.NodePackageInstallTask());
|