@aurodesignsystem/auro-formkit 5.9.4 → 5.11.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/CHANGELOG.md +62 -2
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +16 -0
- package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +38 -16
- package/components/bibtemplate/dist/registered.js +38 -16
- package/components/checkbox/demo/api.md +7 -0
- package/components/checkbox/demo/api.min.js +19 -16
- package/components/checkbox/demo/index.min.js +19 -16
- package/components/checkbox/dist/auro-checkbox-group.d.ts +4 -3
- package/components/checkbox/dist/auro-checkbox.d.ts +2 -0
- package/components/checkbox/dist/index.js +10 -7
- package/components/checkbox/dist/registered.js +10 -7
- package/components/combobox/demo/api.js +2 -2
- package/components/combobox/demo/api.md +80 -0
- package/components/combobox/demo/api.min.js +1676 -645
- package/components/combobox/demo/index.min.js +1657 -640
- package/components/combobox/dist/auro-combobox.d.ts +25 -2
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +6 -0
- package/components/combobox/dist/index.js +1500 -501
- package/components/combobox/dist/registered.js +1500 -501
- package/components/counter/demo/api.min.js +1014 -427
- package/components/counter/demo/index.min.js +1014 -427
- package/components/counter/dist/auro-counter-button.d.ts +11 -2
- package/components/counter/dist/auro-counter.d.ts +8 -0
- package/components/counter/dist/buttonVersion.d.ts +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +972 -389
- package/components/counter/dist/registered.js +972 -389
- package/components/datepicker/demo/api.md +110 -87
- package/components/datepicker/demo/api.min.js +1457 -665
- package/components/datepicker/demo/index.md +18 -12
- package/components/datepicker/demo/index.min.js +1457 -665
- package/components/datepicker/dist/auro-calendar.d.ts +6 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +12 -2
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +1249 -461
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +1249 -461
- package/components/dropdown/demo/api.md +16 -18
- package/components/dropdown/demo/api.min.js +892 -378
- package/components/dropdown/demo/index.min.js +892 -378
- package/components/dropdown/dist/auro-dropdown.d.ts +27 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +87 -0
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +862 -348
- package/components/dropdown/dist/keyboardUtils.d.ts +18 -0
- package/components/dropdown/dist/registered.js +862 -348
- package/components/form/README.md +47 -2
- package/components/form/demo/api.js +2 -0
- package/components/form/demo/api.md +303 -30
- package/components/form/demo/api.min.js +69263 -67
- package/components/form/demo/index.html +0 -1
- package/components/form/demo/index.js +1 -0
- package/components/form/demo/index.md +1 -275
- package/components/form/demo/index.min.js +69262 -67
- package/components/form/demo/readme.md +47 -2
- package/components/form/demo/working.html +123 -32
- package/components/form/dist/auro-form.d.ts +106 -61
- package/components/form/dist/index.js +143 -57
- package/components/form/dist/registered.js +143 -57
- package/components/input/demo/api.md +6 -1
- package/components/input/demo/api.min.js +164 -103
- package/components/input/demo/index.min.js +164 -103
- package/components/input/dist/auro-input.d.ts +23 -0
- package/components/input/dist/base-input.d.ts +36 -18
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +119 -58
- package/components/input/dist/registered.js +119 -58
- package/components/menu/demo/api.md +4 -10
- package/components/menu/demo/api.min.js +36 -22
- package/components/menu/demo/index.min.js +36 -22
- package/components/menu/dist/auro-menuoption.d.ts +0 -7
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +25 -11
- package/components/menu/dist/registered.js +25 -11
- package/components/radio/demo/api.min.js +13 -13
- package/components/radio/demo/index.min.js +13 -13
- package/components/radio/dist/index.js +4 -4
- package/components/radio/dist/registered.js +4 -4
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +333 -78
- package/components/select/demo/api.min.js +1339 -505
- package/components/select/demo/index.min.js +1327 -505
- package/components/select/dist/auro-select.d.ts +26 -0
- package/components/select/dist/index.js +1266 -462
- package/components/select/dist/registered.js +1266 -462
- package/components/select/dist/selectKeyboardStrategy.d.ts +8 -0
- package/custom-elements.json +18655 -0
- package/package.json +47 -13
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `auro-input` element provides users a way to enter data into a text field.
|
|
3
|
+
* @customElement auro-input
|
|
4
|
+
*
|
|
5
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
6
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
7
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
8
|
+
* @slot helpText - Sets the help text displayed below the input.
|
|
9
|
+
* @slot label - Sets the label text for the input.
|
|
10
|
+
* @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
11
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
12
|
+
* @csspart wrapper - Use for customizing the style of the root element
|
|
13
|
+
* @csspart label - Use for customizing the style of the label element
|
|
14
|
+
* @csspart helpText - Use for customizing the style of the helpText element
|
|
15
|
+
* @csspart input - Use for customizing the style of the input element
|
|
16
|
+
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
17
|
+
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
18
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
19
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
20
|
+
* @csspart displayValue - Use for customizing the style of the displayValue element
|
|
21
|
+
* @csspart inputHelpText - Use for customizing the style of the input help text wrapper
|
|
22
|
+
*/
|
|
1
23
|
export class AuroInput extends BaseInput {
|
|
2
24
|
static get styles(): import("lit").CSSResult[];
|
|
3
25
|
/**
|
|
@@ -74,6 +96,7 @@ export class AuroInput extends BaseInput {
|
|
|
74
96
|
/**
|
|
75
97
|
* Common display value wrapper classes.
|
|
76
98
|
* @private
|
|
99
|
+
* @returns {Record<string, boolean>}
|
|
77
100
|
*/
|
|
78
101
|
private get commonDisplayValueWrapperClasses();
|
|
79
102
|
/**
|
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @customElement auro-input
|
|
4
|
-
*
|
|
5
|
-
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
6
|
-
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
7
|
-
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
8
|
-
* @slot helpText - Sets the help text displayed below the input.
|
|
9
|
-
* @slot label - Sets the label text for the input.
|
|
10
|
-
* @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
11
|
-
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
12
|
-
* @csspart wrapper - Use for customizing the style of the root element
|
|
13
|
-
* @csspart label - Use for customizing the style of the label element
|
|
14
|
-
* @csspart helpText - Use for customizing the style of the helpText element
|
|
15
|
-
* @csspart input - Use for customizing the style of the input element
|
|
16
|
-
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
17
|
-
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
18
|
-
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
19
|
-
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
2
|
+
* Base class for auro-input component that provides core input functionality.
|
|
20
3
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
21
4
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
22
5
|
*/
|
|
23
6
|
export default class BaseInput extends AuroElement {
|
|
7
|
+
static get shadowRootOptions(): {
|
|
8
|
+
delegatesFocus: boolean;
|
|
9
|
+
clonable?: boolean;
|
|
10
|
+
customElementRegistry?: CustomElementRegistry;
|
|
11
|
+
mode: ShadowRootMode;
|
|
12
|
+
serializable?: boolean;
|
|
13
|
+
slotAssignment?: SlotAssignmentMode;
|
|
14
|
+
};
|
|
24
15
|
static get properties(): {
|
|
25
16
|
/**
|
|
26
17
|
* The value for the role attribute.
|
|
@@ -43,6 +34,14 @@ export default class BaseInput extends AuroElement {
|
|
|
43
34
|
type: BooleanConstructor;
|
|
44
35
|
reflect: boolean;
|
|
45
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* The value for the aria-activedescendant attribute.
|
|
39
|
+
* Points to the ID of the currently active/highlighted option in a listbox.
|
|
40
|
+
*/
|
|
41
|
+
a11yActivedescendant: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
reflect: boolean;
|
|
44
|
+
};
|
|
46
45
|
/**
|
|
47
46
|
* If set, the label will remain fixed in the active position.
|
|
48
47
|
*/
|
|
@@ -133,6 +132,14 @@ export default class BaseInput extends AuroElement {
|
|
|
133
132
|
reflect: boolean;
|
|
134
133
|
attribute: boolean;
|
|
135
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* If set, the label will be hidden visually but still accessible to assistive technologies.
|
|
137
|
+
* @private
|
|
138
|
+
*/
|
|
139
|
+
hideLabelVisually: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
reflect: boolean;
|
|
142
|
+
};
|
|
136
143
|
/**
|
|
137
144
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
138
145
|
*/
|
|
@@ -175,6 +182,7 @@ export default class BaseInput extends AuroElement {
|
|
|
175
182
|
};
|
|
176
183
|
/**
|
|
177
184
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
185
|
+
* **Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.
|
|
178
186
|
*/
|
|
179
187
|
maxLength: {
|
|
180
188
|
type: NumberConstructor;
|
|
@@ -375,6 +383,7 @@ export default class BaseInput extends AuroElement {
|
|
|
375
383
|
icon: boolean;
|
|
376
384
|
disabled: boolean;
|
|
377
385
|
dvInputOnly: boolean;
|
|
386
|
+
hideLabelVisually: boolean;
|
|
378
387
|
max: any;
|
|
379
388
|
maxLength: any;
|
|
380
389
|
min: any;
|
|
@@ -532,6 +541,15 @@ export default class BaseInput extends AuroElement {
|
|
|
532
541
|
* @returns {Object}
|
|
533
542
|
*/
|
|
534
543
|
private getActiveElement;
|
|
544
|
+
/**
|
|
545
|
+
* Sets the active descendant element for accessibility.
|
|
546
|
+
* Uses ariaActiveDescendantElement to cross shadow DOM boundaries.
|
|
547
|
+
* This function is used in components that contain `auro-input` to set the active descendant.
|
|
548
|
+
* @private
|
|
549
|
+
* @param {HTMLElement|null} element - The element to set as the active descendant, or null to clear.
|
|
550
|
+
* @returns {void}
|
|
551
|
+
*/
|
|
552
|
+
private setActiveDescendant;
|
|
535
553
|
/**
|
|
536
554
|
* Validates value.
|
|
537
555
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "12.3.
|
|
1
|
+
declare const _default: "12.3.2";
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "9.1.
|
|
1
|
+
declare const _default: "9.1.2";
|
|
2
2
|
export default _default;
|