@energycap/components 0.46.9 → 0.46.12
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
|
@@ -59,9 +59,17 @@
|
|
|
59
59
|
"DateInput_CalendarCloseButton_Label": "Close",
|
|
60
60
|
"DateInput_CalendarTodayButton_Label": "Go to today",
|
|
61
61
|
"Banner_CloseButtonLabel": "Close",
|
|
62
|
+
"CollapsibleToggle_Expand_SC": "Expand",
|
|
63
|
+
"CollapsibleToggle_Collapse_SC": "Collapse",
|
|
64
|
+
"Combobox_ToggleOpen_SC": "Open options",
|
|
65
|
+
"Combobox_ToggleClose_SC": "Close options",
|
|
62
66
|
"SelectAllMultiSelect_TC": "Select All",
|
|
63
67
|
"Search_TC": "Search",
|
|
64
68
|
"AddCustomItem_TC": "Add {{customItem}}",
|
|
65
69
|
"ClearAllSelections_SC": "Clear all selections",
|
|
66
|
-
"Multiselect_LiveRegion_Status_SC": "{{count}} items selected"
|
|
67
|
-
|
|
70
|
+
"Multiselect_LiveRegion_Status_SC": "{{count}} items selected",
|
|
71
|
+
"ItemPicker_RemoveItem_SC": "Remove item",
|
|
72
|
+
"Tooltip_DismissButton_SC": "Dismiss",
|
|
73
|
+
"PageView_CloseDialog_SC": "Close dialog",
|
|
74
|
+
"JsonDisplay_CopyButton_SC": "Copy JSON"
|
|
75
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, TemplateRef, EventEmitter, ElementRef,
|
|
2
|
+
import { OnInit, OnChanges, AfterViewInit, OnDestroy, TemplateRef, EventEmitter, ElementRef, SimpleChanges, PipeTransform, ViewContainerRef, Renderer2, QueryList, ApplicationRef, AfterContentInit, Type, ComponentRef, ComponentFactoryResolver, AfterViewChecked, Injector, Provider, ModuleWithProviders } from '@angular/core';
|
|
3
3
|
import * as i73 from '@angular/router';
|
|
4
4
|
import { Params, Router, ActivatedRoute, ActivatedRouteSnapshot, ParamMap, UrlSegment, QueryParamsHandling } from '@angular/router';
|
|
5
5
|
import { Subject, Observable } from 'rxjs';
|
|
@@ -25,7 +25,7 @@ import { HttpErrorResponse } from '@angular/common/http';
|
|
|
25
25
|
* "Link" button type is deprecated. Use the LinkButtonComponent instead.
|
|
26
26
|
*/
|
|
27
27
|
type ButtonType = "primary" | "secondary" | "common" | "icon" | "link" | "text" | "submit" | "danger" | "danger-text" | "card";
|
|
28
|
-
declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
28
|
+
declare class ButtonComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
29
29
|
/**
|
|
30
30
|
* Id to set
|
|
31
31
|
*/
|
|
@@ -56,6 +56,18 @@ declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
56
56
|
* Note: If both label and ariaLabel are provided, ariaLabel will be ignored as the visible label text provides the accessible name.
|
|
57
57
|
*/
|
|
58
58
|
ariaLabel?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates whether the element controlled by this button is expanded or collapsed.
|
|
61
|
+
* When provided, sets the aria-expanded attribute on the native button element.
|
|
62
|
+
* Use when the button controls an expandable region, such as a dropdown or menu.
|
|
63
|
+
*/
|
|
64
|
+
ariaExpanded?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates that the button opens a popup element.
|
|
67
|
+
* When provided, sets the aria-haspopup attribute on the native button element.
|
|
68
|
+
* Accepts standard ARIA token values: 'menu', 'listbox', 'tree', 'grid', or 'dialog'.
|
|
69
|
+
*/
|
|
70
|
+
ariaHaspopup?: string;
|
|
59
71
|
/**
|
|
60
72
|
* Text to place in a badge to the right of the button
|
|
61
73
|
*/
|
|
@@ -91,13 +103,20 @@ declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
91
103
|
*/
|
|
92
104
|
clicked: EventEmitter<any>;
|
|
93
105
|
buttonElement: ElementRef;
|
|
106
|
+
/** True when the button already has an explicit accessible name source. */
|
|
107
|
+
hasExplicitAccessibleName: boolean;
|
|
108
|
+
private hasLoggedMissingAccessibleName;
|
|
109
|
+
private missingAccessibleNameCheckId?;
|
|
110
|
+
private viewInitialized;
|
|
94
111
|
constructor();
|
|
95
112
|
/**
|
|
96
113
|
* Ensure label or icon is set
|
|
97
114
|
*
|
|
98
115
|
*/
|
|
99
116
|
ngOnInit(): void;
|
|
117
|
+
ngOnChanges(_changes: SimpleChanges): void;
|
|
100
118
|
ngAfterViewInit(): void;
|
|
119
|
+
ngOnDestroy(): void;
|
|
101
120
|
/**
|
|
102
121
|
* Event handler for click event on the button element.
|
|
103
122
|
* Blur the button so focus style does not persist
|
|
@@ -105,8 +124,11 @@ declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
105
124
|
*/
|
|
106
125
|
onClick(event: any): void;
|
|
107
126
|
focus(): void;
|
|
127
|
+
private updateAccessibleNameState;
|
|
128
|
+
private scheduleMissingAccessibleNameCheck;
|
|
129
|
+
private logMissingAccessibleNameErrorIfNeeded;
|
|
108
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ec-button", never, { "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "lockButton": { "alias": "lockButton"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "pendingIcon": { "alias": "pendingIcon"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; "isSubmit": { "alias": "isSubmit"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], false, never>;
|
|
131
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ec-button", never, { "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "lockButton": { "alias": "lockButton"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; }; "ariaHaspopup": { "alias": "ariaHaspopup"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "pendingIcon": { "alias": "pendingIcon"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; "isSubmit": { "alias": "isSubmit"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], false, never>;
|
|
110
132
|
}
|
|
111
133
|
|
|
112
134
|
interface LinkItem {
|
|
@@ -5273,6 +5295,11 @@ declare class FormControlLabelComponent implements OnInit {
|
|
|
5273
5295
|
* Id
|
|
5274
5296
|
*/
|
|
5275
5297
|
id?: string;
|
|
5298
|
+
/**
|
|
5299
|
+
* The id of the associated form input element. When not provided,
|
|
5300
|
+
* derived from the component's id using the {id}_input convention.
|
|
5301
|
+
*/
|
|
5302
|
+
inputId?: string;
|
|
5276
5303
|
/**
|
|
5277
5304
|
* Bind id to host element
|
|
5278
5305
|
*/
|
|
@@ -5308,6 +5335,11 @@ declare class FormControlLabelComponent implements OnInit {
|
|
|
5308
5335
|
*/
|
|
5309
5336
|
validationErrors: string;
|
|
5310
5337
|
allControlsTouched: boolean;
|
|
5338
|
+
/**
|
|
5339
|
+
* Computed `for` attribute value for the label element.
|
|
5340
|
+
* Uses inputId if provided, otherwise derives from id using {id}_input convention.
|
|
5341
|
+
*/
|
|
5342
|
+
forId: string | null;
|
|
5311
5343
|
private componentDestroyed;
|
|
5312
5344
|
constructor(validationMessageService: ValidationMessageService, translateService: TranslateService);
|
|
5313
5345
|
ngOnInit(): Promise<void>;
|
|
@@ -5331,7 +5363,7 @@ declare class FormControlLabelComponent implements OnInit {
|
|
|
5331
5363
|
*/
|
|
5332
5364
|
private translateValidationMessages;
|
|
5333
5365
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlLabelComponent, never>;
|
|
5334
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlLabelComponent, "ec-form-control-label", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "control": { "alias": "control"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "overrideValidationError": { "alias": "overrideValidationError"; "required": false; }; "hideValidationMessage": { "alias": "hideValidationMessage"; "required": false; }; }, {}, never, never, false, never>;
|
|
5366
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlLabelComponent, "ec-form-control-label", never, { "id": { "alias": "id"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "label": { "alias": "label"; "required": false; }; "control": { "alias": "control"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "overrideValidationError": { "alias": "overrideValidationError"; "required": false; }; "hideValidationMessage": { "alias": "hideValidationMessage"; "required": false; }; }, {}, never, never, false, never>;
|
|
5335
5367
|
}
|
|
5336
5368
|
|
|
5337
5369
|
interface PickerItem<TValue = any, SItems = any> extends MenuItem {
|