@energycap/components 0.47.4-ECAP-35552-PresentationModeUpdate.20261023-1554 → 0.47.5
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/package.json
CHANGED
|
@@ -294,6 +294,12 @@ export interface NavItem extends LinkItem {
|
|
|
294
294
|
* Displays a button that allows the tab to be closed
|
|
295
295
|
*/
|
|
296
296
|
closable?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Accessible name for an icon-only tab (an `icon` with no `label`), announced by screen readers
|
|
299
|
+
* in place of the missing visible text. Can be plain text or a translation key.
|
|
300
|
+
* Ignored when the tab has a visible `label`.
|
|
301
|
+
*/
|
|
302
|
+
ariaLabel?: string;
|
|
297
303
|
}
|
|
298
304
|
export declare class NavGroup {
|
|
299
305
|
/** The groups nav items */
|
|
@@ -8118,12 +8124,17 @@ export declare class DateDisplayPipe3 implements PipeTransform {
|
|
|
8118
8124
|
static ɵpipe: i0.ɵɵPipeDeclaration<DateDisplayPipe3, "dateDisplay3", false>;
|
|
8119
8125
|
}
|
|
8120
8126
|
declare namespace multiselect_component_d_exports {
|
|
8121
|
-
export { MultiselectComponent, MultiselectMenuPosition };
|
|
8127
|
+
export { MultiselectComponent, MultiselectCustomItemMapper, MultiselectMenuPosition };
|
|
8122
8128
|
}
|
|
8123
8129
|
/**
|
|
8124
8130
|
* Position of the menu relative to the input
|
|
8125
8131
|
*/
|
|
8126
8132
|
export type MultiselectMenuPosition = 'top_right' | 'top_left' | 'bottom_left' | 'bottom_right';
|
|
8133
|
+
/**
|
|
8134
|
+
* Turns the text a user typed into the custom item(s) to select. Return a single item, several items (for example
|
|
8135
|
+
* a pasted, comma-separated list), or null / an empty array to reject the text.
|
|
8136
|
+
*/
|
|
8137
|
+
export type MultiselectCustomItemMapper = (text: string) => MenuItem | MenuItem[] | null;
|
|
8127
8138
|
/**
|
|
8128
8139
|
* Multiselect component that allows a user to pick multiple items from a dropdown list.
|
|
8129
8140
|
* Selected items are displayed as dismissable tags inside the input area.
|
|
@@ -8182,6 +8193,16 @@ export declare class MultiselectComponent extends FormControlBase implements OnI
|
|
|
8182
8193
|
* @default false
|
|
8183
8194
|
*/
|
|
8184
8195
|
allowCustom: boolean;
|
|
8196
|
+
/**
|
|
8197
|
+
* Optional mapper for custom entries when allowCustom is true, the equivalent of Kendo's `valueNormalizer`.
|
|
8198
|
+
* Receives the trimmed filter text when the user adds it, and returns the item(s) to select instead of the default
|
|
8199
|
+
* `{ label: text, value: text }`. Returning several items adds each as its own tag, so a pasted list can be split.
|
|
8200
|
+
* Each returned item goes through the same rules as a typed one: an item whose label matches an option selects that
|
|
8201
|
+
* option, an item that is already selected is skipped, and maxSelections is respected. When nothing is added the
|
|
8202
|
+
* filter text is kept so the user can correct it.
|
|
8203
|
+
* @default undefined
|
|
8204
|
+
*/
|
|
8205
|
+
customItemMapper?: MultiselectCustomItemMapper;
|
|
8185
8206
|
/**
|
|
8186
8207
|
* Maximum number of items that can be selected. 0 means no limit.
|
|
8187
8208
|
* @default 0
|
|
@@ -8370,8 +8391,8 @@ export declare class MultiselectComponent extends FormControlBase implements OnI
|
|
|
8370
8391
|
*/
|
|
8371
8392
|
onFilterInput(): void;
|
|
8372
8393
|
/**
|
|
8373
|
-
* Add
|
|
8374
|
-
*
|
|
8394
|
+
* Add custom item(s) from the current filter text and select them.
|
|
8395
|
+
* Without a customItemMapper the item uses the typed text as both label and value.
|
|
8375
8396
|
*/
|
|
8376
8397
|
addCustomItem(): void;
|
|
8377
8398
|
/**
|
|
@@ -8517,6 +8538,10 @@ export declare class MultiselectComponent extends FormControlBase implements OnI
|
|
|
8517
8538
|
"alias": "allowCustom";
|
|
8518
8539
|
"required": false;
|
|
8519
8540
|
};
|
|
8541
|
+
"customItemMapper": {
|
|
8542
|
+
"alias": "customItemMapper";
|
|
8543
|
+
"required": false;
|
|
8544
|
+
};
|
|
8520
8545
|
"maxSelections": {
|
|
8521
8546
|
"alias": "maxSelections";
|
|
8522
8547
|
"required": false;
|