@aurodesignsystem-dev/auro-formkit 0.0.0-pr835.0 → 0.0.0-pr837.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/components/bibtemplate/dist/index.js +3 -2
- package/components/bibtemplate/dist/registered.js +3 -2
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +6 -0
- package/components/combobox/demo/api.min.js +26 -25
- package/components/combobox/demo/index.md +12 -0
- package/components/combobox/demo/index.min.js +26 -25
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +2 -0
- package/components/combobox/dist/index.js +26 -25
- package/components/combobox/dist/registered.js +26 -25
- package/components/counter/demo/api.md +9 -0
- package/components/counter/demo/api.min.js +6 -13
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +6 -13
- package/components/counter/dist/auro-counter-group.d.ts +1 -0
- package/components/counter/dist/index.js +6 -13
- package/components/counter/dist/registered.js +6 -13
- package/components/datepicker/README.md +1 -0
- package/components/datepicker/demo/api.md +11 -0
- package/components/datepicker/demo/api.min.js +19 -17
- package/components/datepicker/demo/index.md +12 -0
- package/components/datepicker/demo/index.min.js +19 -17
- package/components/datepicker/demo/readme.md +1 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +1 -0
- package/components/datepicker/dist/index.js +19 -17
- package/components/datepicker/dist/registered.js +19 -17
- package/components/dropdown/demo/api.md +7 -6
- package/components/dropdown/demo/api.min.js +1 -11
- package/components/dropdown/demo/index.min.js +1 -11
- package/components/dropdown/dist/index.js +1 -11
- package/components/dropdown/dist/registered.js +1 -11
- package/components/input/README.md +1 -0
- package/components/input/demo/api.md +14 -6
- package/components/input/demo/api.min.js +12 -4
- package/components/input/demo/index.md +7 -0
- package/components/input/demo/index.min.js +12 -4
- package/components/input/demo/readme.md +1 -0
- package/components/input/dist/base-input.d.ts +3 -1
- package/components/input/dist/index.js +12 -4
- package/components/input/dist/registered.js +12 -4
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -0
- package/components/select/demo/api.md +9 -3
- package/components/select/demo/api.min.js +12 -13
- package/components/select/demo/index.md +8 -0
- package/components/select/demo/index.min.js +12 -13
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +5 -0
- package/components/select/dist/index.js +12 -13
- package/components/select/dist/registered.js +12 -13
- package/package.json +2 -2
|
@@ -3049,12 +3049,6 @@ class AuroFloatingUI {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
|
|
3051
3051
|
setupHideHandlers() {
|
|
3052
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
3053
|
-
event.preventDefault();
|
|
3054
|
-
event.stopPropagation();
|
|
3055
|
-
};
|
|
3056
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3057
|
-
|
|
3058
3052
|
// Define handlers & store references
|
|
3059
3053
|
this.focusHandler = () => this.handleFocusLoss();
|
|
3060
3054
|
|
|
@@ -3104,11 +3098,6 @@ class AuroFloatingUI {
|
|
|
3104
3098
|
cleanupHideHandlers() {
|
|
3105
3099
|
// Remove event listeners if they exist
|
|
3106
3100
|
|
|
3107
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
3108
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3109
|
-
delete this.preventFocusLoseOnBibClick;
|
|
3110
|
-
}
|
|
3111
|
-
|
|
3112
3101
|
if (this.focusHandler) {
|
|
3113
3102
|
document.removeEventListener('focusin', this.focusHandler);
|
|
3114
3103
|
this.focusHandler = null;
|
|
@@ -4608,6 +4597,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
4608
4597
|
* @slot trigger - Defines the content of the trigger.
|
|
4609
4598
|
* @csspart trigger - The trigger content container.
|
|
4610
4599
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4600
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4611
4601
|
* @csspart helpText - The helpText content container.
|
|
4612
4602
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4613
4603
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -7404,8 +7394,9 @@ class AuroBibtemplate extends i$2 {
|
|
|
7404
7394
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
7405
7395
|
<slot name="header"></slot>
|
|
7406
7396
|
</${this.headerTag}>
|
|
7407
|
-
<${this.buttonTag} id="closeButton"
|
|
7408
|
-
|
|
7397
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7398
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
7399
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
7409
7400
|
</${this.buttonTag}>
|
|
7410
7401
|
</div>
|
|
7411
7402
|
<span class="subheader">
|
|
@@ -7645,6 +7636,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7645
7636
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
7646
7637
|
*
|
|
7647
7638
|
* @slot - Default slot for the menu content.
|
|
7639
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
7648
7640
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
7649
7641
|
* @slot label - Defines the content of the label.
|
|
7650
7642
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -7654,6 +7646,10 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7654
7646
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
7655
7647
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
7656
7648
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
7649
|
+
*
|
|
7650
|
+
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
7651
|
+
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
7652
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
7657
7653
|
* @csspart helpText - Apply CSS to the help text.
|
|
7658
7654
|
*/
|
|
7659
7655
|
|
|
@@ -8830,6 +8826,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8830
8826
|
</div>
|
|
8831
8827
|
<div class="menuWrapper"></div>
|
|
8832
8828
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8829
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8833
8830
|
<slot></slot>
|
|
8834
8831
|
</${this.bibtemplateTag}>
|
|
8835
8832
|
<div slot="helpText">
|
|
@@ -8907,6 +8904,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8907
8904
|
</div>
|
|
8908
8905
|
<div class="menuWrapper"></div>
|
|
8909
8906
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8907
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8910
8908
|
<slot></slot>
|
|
8911
8909
|
</${this.bibtemplateTag}>
|
|
8912
8910
|
<div slot="helpText">
|
|
@@ -8990,6 +8988,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8990
8988
|
</div>
|
|
8991
8989
|
<div class="menuWrapper"></div>
|
|
8992
8990
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8991
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8993
8992
|
<slot></slot>
|
|
8994
8993
|
</${this.bibtemplateTag}>
|
|
8995
8994
|
<div slot="helpText">
|
|
@@ -21,6 +21,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
|
|
|
21
21
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
22
22
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
23
23
|
<auro-select>
|
|
24
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
24
25
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
25
26
|
<span slot="label">Select Example</span>
|
|
26
27
|
<auro-menu>
|
|
@@ -58,6 +59,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
|
|
|
58
59
|
|
|
59
60
|
```html
|
|
60
61
|
<auro-select>
|
|
62
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
61
63
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
62
64
|
<span slot="label">Select Example</span>
|
|
63
65
|
<auro-menu>
|
|
@@ -102,6 +104,7 @@ The `classic` layout is default for `auro-select`. No customization is needed to
|
|
|
102
104
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
103
105
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
104
106
|
<auro-select>
|
|
107
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
105
108
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
106
109
|
<span slot="label">Select Example</span>
|
|
107
110
|
<auro-menu>
|
|
@@ -122,6 +125,7 @@ The `classic` layout is default for `auro-select`. No customization is needed to
|
|
|
122
125
|
|
|
123
126
|
```html
|
|
124
127
|
<auro-select>
|
|
128
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
125
129
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
126
130
|
<span slot="label">Select Example</span>
|
|
127
131
|
<auro-menu>
|
|
@@ -154,6 +158,7 @@ The `emphasized` layout supports the following sizes:
|
|
|
154
158
|
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic-ondark.html -->
|
|
155
159
|
<div>
|
|
156
160
|
<auro-select layout="emphasized" shape="pill" size="xl" ondark required style="width:300px;">
|
|
161
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
157
162
|
<span slot="label">Label</span>
|
|
158
163
|
<span slot="helpText">Help Text</span>
|
|
159
164
|
<auro-menu nocheckmark>
|
|
@@ -229,6 +234,7 @@ The `emphasized` layout supports the following sizes:
|
|
|
229
234
|
```html
|
|
230
235
|
<div>
|
|
231
236
|
<auro-select layout="emphasized" shape="pill" size="xl" ondark required style="width:300px;">
|
|
237
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
232
238
|
<span slot="label">Label</span>
|
|
233
239
|
<span slot="helpText">Help Text</span>
|
|
234
240
|
<auro-menu nocheckmark>
|
|
@@ -306,6 +312,7 @@ The `snowflake` layout is a unique, one off layout that does not follow the norm
|
|
|
306
312
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic-ondark.html) -->
|
|
307
313
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic-ondark.html -->
|
|
308
314
|
<auro-select layout="snowflake" shape="snowflake" ondark required style="width:300px;">
|
|
315
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
309
316
|
<span slot="label">Label</span>
|
|
310
317
|
<span slot="helpText">Help Text</span>
|
|
311
318
|
<auro-menu nocheckmark>
|
|
@@ -335,6 +342,7 @@ The `snowflake` layout is a unique, one off layout that does not follow the norm
|
|
|
335
342
|
|
|
336
343
|
```html
|
|
337
344
|
<auro-select layout="snowflake" shape="snowflake" ondark required style="width:300px;">
|
|
345
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
338
346
|
<span slot="label">Label</span>
|
|
339
347
|
<span slot="helpText">Help Text</span>
|
|
340
348
|
<auro-menu nocheckmark>
|
|
@@ -2957,12 +2957,6 @@ class AuroFloatingUI {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
|
|
2959
2959
|
setupHideHandlers() {
|
|
2960
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
2961
|
-
event.preventDefault();
|
|
2962
|
-
event.stopPropagation();
|
|
2963
|
-
};
|
|
2964
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2965
|
-
|
|
2966
2960
|
// Define handlers & store references
|
|
2967
2961
|
this.focusHandler = () => this.handleFocusLoss();
|
|
2968
2962
|
|
|
@@ -3012,11 +3006,6 @@ class AuroFloatingUI {
|
|
|
3012
3006
|
cleanupHideHandlers() {
|
|
3013
3007
|
// Remove event listeners if they exist
|
|
3014
3008
|
|
|
3015
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
3016
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3017
|
-
delete this.preventFocusLoseOnBibClick;
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
3009
|
if (this.focusHandler) {
|
|
3021
3010
|
document.removeEventListener('focusin', this.focusHandler);
|
|
3022
3011
|
this.focusHandler = null;
|
|
@@ -4516,6 +4505,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
4516
4505
|
* @slot trigger - Defines the content of the trigger.
|
|
4517
4506
|
* @csspart trigger - The trigger content container.
|
|
4518
4507
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4508
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4519
4509
|
* @csspart helpText - The helpText content container.
|
|
4520
4510
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4521
4511
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -7312,8 +7302,9 @@ class AuroBibtemplate extends i$2 {
|
|
|
7312
7302
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
7313
7303
|
<slot name="header"></slot>
|
|
7314
7304
|
</${this.headerTag}>
|
|
7315
|
-
<${this.buttonTag} id="closeButton"
|
|
7316
|
-
|
|
7305
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7306
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
7307
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
7317
7308
|
</${this.buttonTag}>
|
|
7318
7309
|
</div>
|
|
7319
7310
|
<span class="subheader">
|
|
@@ -7553,6 +7544,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7553
7544
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
7554
7545
|
*
|
|
7555
7546
|
* @slot - Default slot for the menu content.
|
|
7547
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
7556
7548
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
7557
7549
|
* @slot label - Defines the content of the label.
|
|
7558
7550
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -7562,6 +7554,10 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7562
7554
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
7563
7555
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
7564
7556
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
7557
|
+
*
|
|
7558
|
+
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
7559
|
+
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
7560
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
7565
7561
|
* @csspart helpText - Apply CSS to the help text.
|
|
7566
7562
|
*/
|
|
7567
7563
|
|
|
@@ -8738,6 +8734,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8738
8734
|
</div>
|
|
8739
8735
|
<div class="menuWrapper"></div>
|
|
8740
8736
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8737
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8741
8738
|
<slot></slot>
|
|
8742
8739
|
</${this.bibtemplateTag}>
|
|
8743
8740
|
<div slot="helpText">
|
|
@@ -8815,6 +8812,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8815
8812
|
</div>
|
|
8816
8813
|
<div class="menuWrapper"></div>
|
|
8817
8814
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8815
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8818
8816
|
<slot></slot>
|
|
8819
8817
|
</${this.bibtemplateTag}>
|
|
8820
8818
|
<div slot="helpText">
|
|
@@ -8898,6 +8896,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8898
8896
|
</div>
|
|
8899
8897
|
<div class="menuWrapper"></div>
|
|
8900
8898
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8899
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8901
8900
|
<slot></slot>
|
|
8902
8901
|
</${this.bibtemplateTag}>
|
|
8903
8902
|
<div slot="helpText">
|
|
@@ -84,6 +84,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-select>
|
|
87
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
87
88
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
88
89
|
<span slot="label">Select Example</span>
|
|
89
90
|
<auro-menu>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
3
3
|
*
|
|
4
4
|
* @slot - Default slot for the menu content.
|
|
5
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
5
6
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
6
7
|
* @slot label - Defines the content of the label.
|
|
7
8
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -11,6 +12,10 @@
|
|
|
11
12
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
12
13
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
13
14
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
15
|
+
*
|
|
16
|
+
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
17
|
+
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
18
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
14
19
|
* @csspart helpText - Apply CSS to the help text.
|
|
15
20
|
*/
|
|
16
21
|
export class AuroSelect extends AuroElement {
|
|
@@ -2911,12 +2911,6 @@ class AuroFloatingUI {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
|
|
2913
2913
|
setupHideHandlers() {
|
|
2914
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
2915
|
-
event.preventDefault();
|
|
2916
|
-
event.stopPropagation();
|
|
2917
|
-
};
|
|
2918
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2919
|
-
|
|
2920
2914
|
// Define handlers & store references
|
|
2921
2915
|
this.focusHandler = () => this.handleFocusLoss();
|
|
2922
2916
|
|
|
@@ -2966,11 +2960,6 @@ class AuroFloatingUI {
|
|
|
2966
2960
|
cleanupHideHandlers() {
|
|
2967
2961
|
// Remove event listeners if they exist
|
|
2968
2962
|
|
|
2969
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
2970
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2971
|
-
delete this.preventFocusLoseOnBibClick;
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
2963
|
if (this.focusHandler) {
|
|
2975
2964
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2976
2965
|
this.focusHandler = null;
|
|
@@ -4470,6 +4459,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4470
4459
|
* @slot trigger - Defines the content of the trigger.
|
|
4471
4460
|
* @csspart trigger - The trigger content container.
|
|
4472
4461
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4462
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4473
4463
|
* @csspart helpText - The helpText content container.
|
|
4474
4464
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4475
4465
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -7266,8 +7256,9 @@ class AuroBibtemplate extends LitElement {
|
|
|
7266
7256
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
7267
7257
|
<slot name="header"></slot>
|
|
7268
7258
|
</${this.headerTag}>
|
|
7269
|
-
<${this.buttonTag} id="closeButton"
|
|
7270
|
-
|
|
7259
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7260
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
7261
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
7271
7262
|
</${this.buttonTag}>
|
|
7272
7263
|
</div>
|
|
7273
7264
|
<span class="subheader">
|
|
@@ -7507,6 +7498,7 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
7507
7498
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
7508
7499
|
*
|
|
7509
7500
|
* @slot - Default slot for the menu content.
|
|
7501
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
7510
7502
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
7511
7503
|
* @slot label - Defines the content of the label.
|
|
7512
7504
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -7516,6 +7508,10 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
7516
7508
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
7517
7509
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
7518
7510
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
7511
|
+
*
|
|
7512
|
+
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
7513
|
+
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
7514
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
7519
7515
|
* @csspart helpText - Apply CSS to the help text.
|
|
7520
7516
|
*/
|
|
7521
7517
|
|
|
@@ -8692,6 +8688,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8692
8688
|
</div>
|
|
8693
8689
|
<div class="menuWrapper"></div>
|
|
8694
8690
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8691
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8695
8692
|
<slot></slot>
|
|
8696
8693
|
</${this.bibtemplateTag}>
|
|
8697
8694
|
<div slot="helpText">
|
|
@@ -8769,6 +8766,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8769
8766
|
</div>
|
|
8770
8767
|
<div class="menuWrapper"></div>
|
|
8771
8768
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8769
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8772
8770
|
<slot></slot>
|
|
8773
8771
|
</${this.bibtemplateTag}>
|
|
8774
8772
|
<div slot="helpText">
|
|
@@ -8852,6 +8850,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8852
8850
|
</div>
|
|
8853
8851
|
<div class="menuWrapper"></div>
|
|
8854
8852
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8853
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8855
8854
|
<slot></slot>
|
|
8856
8855
|
</${this.bibtemplateTag}>
|
|
8857
8856
|
<div slot="helpText">
|
|
@@ -2911,12 +2911,6 @@ class AuroFloatingUI {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
|
|
2913
2913
|
setupHideHandlers() {
|
|
2914
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
2915
|
-
event.preventDefault();
|
|
2916
|
-
event.stopPropagation();
|
|
2917
|
-
};
|
|
2918
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2919
|
-
|
|
2920
2914
|
// Define handlers & store references
|
|
2921
2915
|
this.focusHandler = () => this.handleFocusLoss();
|
|
2922
2916
|
|
|
@@ -2966,11 +2960,6 @@ class AuroFloatingUI {
|
|
|
2966
2960
|
cleanupHideHandlers() {
|
|
2967
2961
|
// Remove event listeners if they exist
|
|
2968
2962
|
|
|
2969
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
2970
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2971
|
-
delete this.preventFocusLoseOnBibClick;
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
2963
|
if (this.focusHandler) {
|
|
2975
2964
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2976
2965
|
this.focusHandler = null;
|
|
@@ -4470,6 +4459,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4470
4459
|
* @slot trigger - Defines the content of the trigger.
|
|
4471
4460
|
* @csspart trigger - The trigger content container.
|
|
4472
4461
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4462
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4473
4463
|
* @csspart helpText - The helpText content container.
|
|
4474
4464
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4475
4465
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -7266,8 +7256,9 @@ class AuroBibtemplate extends LitElement {
|
|
|
7266
7256
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
7267
7257
|
<slot name="header"></slot>
|
|
7268
7258
|
</${this.headerTag}>
|
|
7269
|
-
<${this.buttonTag} id="closeButton"
|
|
7270
|
-
|
|
7259
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7260
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
7261
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
7271
7262
|
</${this.buttonTag}>
|
|
7272
7263
|
</div>
|
|
7273
7264
|
<span class="subheader">
|
|
@@ -7507,6 +7498,7 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
7507
7498
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
7508
7499
|
*
|
|
7509
7500
|
* @slot - Default slot for the menu content.
|
|
7501
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
7510
7502
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
7511
7503
|
* @slot label - Defines the content of the label.
|
|
7512
7504
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -7516,6 +7508,10 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
7516
7508
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
7517
7509
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
7518
7510
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
7511
|
+
*
|
|
7512
|
+
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
7513
|
+
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
7514
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
7519
7515
|
* @csspart helpText - Apply CSS to the help text.
|
|
7520
7516
|
*/
|
|
7521
7517
|
|
|
@@ -8692,6 +8688,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8692
8688
|
</div>
|
|
8693
8689
|
<div class="menuWrapper"></div>
|
|
8694
8690
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8691
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8695
8692
|
<slot></slot>
|
|
8696
8693
|
</${this.bibtemplateTag}>
|
|
8697
8694
|
<div slot="helpText">
|
|
@@ -8769,6 +8766,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8769
8766
|
</div>
|
|
8770
8767
|
<div class="menuWrapper"></div>
|
|
8771
8768
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8769
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8772
8770
|
<slot></slot>
|
|
8773
8771
|
</${this.bibtemplateTag}>
|
|
8774
8772
|
<div slot="helpText">
|
|
@@ -8852,6 +8850,7 @@ class AuroSelect extends AuroElement$3 {
|
|
|
8852
8850
|
</div>
|
|
8853
8851
|
<div class="menuWrapper"></div>
|
|
8854
8852
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8853
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8855
8854
|
<slot></slot>
|
|
8856
8855
|
</${this.bibtemplateTag}>
|
|
8857
8856
|
<div slot="helpText">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-pr837.0",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"local-demo": "npm run build && sh ./local-demo.sh --zip"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@aurodesignsystem/auro-library": "^5.3.
|
|
56
|
+
"@aurodesignsystem/auro-library": "^5.3.2",
|
|
57
57
|
"@lit/reactive-element": "^2.1.1",
|
|
58
58
|
"lit": "^3.2.1"
|
|
59
59
|
},
|