@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.8 → 0.0.0-pr1628.9
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/checkbox/README.md +1 -1
- package/components/checkbox/demo/accessibility.md +2 -2
- package/components/checkbox/demo/api.md +17 -17
- package/components/checkbox/demo/customize.md +16 -16
- package/components/checkbox/demo/customize.min.js +3 -3
- package/components/checkbox/demo/design.md +24 -24
- package/components/checkbox/demo/getting-started.md +33 -27
- package/components/checkbox/demo/getting-started.min.js +3 -3
- package/components/checkbox/demo/index.md +17 -17
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- package/components/combobox/demo/api.md +1 -1
- package/components/combobox/demo/customize.md +12 -12
- package/components/combobox/demo/customize.min.js +13 -13
- package/components/combobox/demo/getting-started.min.js +13 -13
- package/components/combobox/demo/index.min.js +13 -13
- package/components/combobox/dist/auro-combobox.d.ts +1 -1
- package/components/combobox/dist/index.js +12 -12
- package/components/combobox/dist/registered.js +12 -12
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +8 -8
- package/components/counter/demo/getting-started.min.js +8 -8
- package/components/counter/demo/index.min.js +8 -8
- package/components/counter/demo/why-counter.md +1 -1
- package/components/counter/dist/index.js +8 -8
- package/components/counter/dist/registered.js +8 -8
- package/components/datepicker/demo/css-only.md +1 -1
- package/components/datepicker/demo/customize.md +2 -2
- package/components/datepicker/demo/customize.min.js +25 -20
- package/components/datepicker/demo/getting-started.min.js +25 -20
- package/components/datepicker/demo/index.min.js +25 -20
- package/components/datepicker/demo/why-datepicker.md +1 -1
- package/components/datepicker/dist/auro-calendar.d.ts +4 -9
- package/components/datepicker/dist/index.js +25 -20
- package/components/datepicker/dist/registered.js +25 -20
- package/components/datepicker/dist/utilitiesCalendar.d.ts +5 -2
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +5 -2
- package/components/dropdown/demo/customize.min.js +7 -7
- package/components/dropdown/demo/getting-started.min.js +10 -10
- package/components/dropdown/demo/index.min.js +7 -7
- package/components/dropdown/demo/voiceover.md +1 -1
- package/components/dropdown/demo/why-dropdown.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +6 -6
- package/components/dropdown/dist/index.js +7 -7
- package/components/dropdown/dist/registered.js +7 -7
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/customize.md +2 -0
- package/components/form/demo/customize.min.js +62 -57
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +62 -57
- package/components/form/demo/index.min.js +62 -57
- package/components/form/demo/registerDemoDeps.min.js +61 -56
- package/components/form/demo/voiceover.md +2 -2
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/css-only.md +1 -1
- package/components/input/demo/customize.md +3 -3
- package/components/input/demo/customize.min.js +3 -3
- package/components/input/demo/getting-started.md +2 -2
- package/components/input/demo/getting-started.min.js +3 -3
- package/components/input/demo/index.min.js +3 -3
- package/components/input/demo/why-input.md +1 -1
- package/components/input/dist/base-input.d.ts +2 -2
- package/components/input/dist/index.js +3 -3
- package/components/input/dist/registered.js +3 -3
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/css-only.md +3 -3
- package/components/menu/demo/getting-started.md +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/why-radio.md +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.md +1 -1
- package/components/select/demo/customize.min.js +9 -9
- package/components/select/demo/getting-started.min.js +9 -9
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +9 -9
- package/components/select/dist/index.js +8 -8
- package/components/select/dist/registered.js +8 -8
- package/custom-elements.json +23 -17
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<p>For example, a mobile phone or a very small desktop browser window.</p>
|
|
50
50
|
<ol>
|
|
51
51
|
<li><strong>Focus trigger:</strong> Announces the trigger label and state.</li>
|
|
52
|
-
<li><strong>Open | Expand:</strong> Opens a fullscreen modal and keeps focus in the bib content.</li>
|
|
52
|
+
<li><strong>Open | Expand:</strong> Opens the bib as a fullscreen modal when the screen is at or below the <code>fullscreenBreakpoint</code> width, and keeps focus in the bib content.</li>
|
|
53
53
|
<li><strong>Navigate bib content:</strong> Swipe or Tab through focusable elements.</li>
|
|
54
54
|
<li><strong>Close:</strong> Activate a close button in the bib content, such as the one <code>auro-bibtemplate</code> provides, or use the scrub gesture (two-finger zigzag) to dismiss.</li>
|
|
55
55
|
</ol>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<ul>
|
|
7
7
|
<li><strong>Focus trapping:</strong> In desktop modal mode, Tab and Shift+Tab cycle within the dropdown content. The rest of the page becomes inert. The implementation handles focus across shadow DOM boundaries.</li>
|
|
8
8
|
<li><strong>Native dialog semantics:</strong> On screens at or below the <code>fullscreenBreakpoint</code> you set, the dropdown opens via <code>showModal()</code>, which provides browser-native focus trapping and background inert behavior.</li>
|
|
9
|
-
<li><strong>ARIA attributes:</strong> The trigger has a configurable <code>role</code> (default: <code>button</code>), and with other roles, such as <code>combobox</code>, it also carries <code>aria-expanded</code> and <code>aria-controls</code>.
|
|
9
|
+
<li><strong>ARIA attributes:</strong> The trigger has a configurable <code>role</code> (default: <code>button</code>), and with other roles, such as <code>combobox</code>, it also carries <code>aria-expanded</code> and <code>aria-controls</code>. Components that wrap the dropdown, such as <code>auro-select</code>, <code>auro-combobox</code>, and <code>auro-datepicker</code>, give the bib's dialog an accessible name from their own label.</li>
|
|
10
10
|
<li><strong>Focus routing:</strong> The <code>focus()</code> method moves focus to the first focusable element in the open bib, or to the trigger when the bib is closed.</li>
|
|
11
11
|
<li><strong>Escape to close:</strong> Pressing <code>Escape</code> closes the open bib.</li>
|
|
12
12
|
</ul>
|
|
@@ -100,6 +100,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
100
100
|
/**
|
|
101
101
|
* Removes the trigger's border, background, and shadow.
|
|
102
102
|
* Applies only when `shape` and `size` are both set.
|
|
103
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
103
104
|
* @category ui
|
|
104
105
|
*/
|
|
105
106
|
simple: {
|
|
@@ -601,39 +602,38 @@ export class AuroDropdown extends AuroElement {
|
|
|
601
602
|
*
|
|
602
603
|
* @private
|
|
603
604
|
* @method handleDefaultSlot
|
|
604
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
605
605
|
*/
|
|
606
606
|
private handleDefaultSlot;
|
|
607
607
|
/**
|
|
608
608
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
609
609
|
* @private
|
|
610
610
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
611
|
-
* @returns {
|
|
611
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
612
612
|
*/
|
|
613
613
|
private renderBasicHtml;
|
|
614
614
|
/**
|
|
615
615
|
* Renders the classic layout.
|
|
616
616
|
* @private
|
|
617
|
-
* @returns {
|
|
617
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
618
618
|
*/
|
|
619
619
|
private renderLayoutClassic;
|
|
620
620
|
/**
|
|
621
621
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
622
622
|
* @private
|
|
623
|
-
* @returns {
|
|
623
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
624
624
|
*/
|
|
625
625
|
private renderLayoutSnowflake;
|
|
626
626
|
/**
|
|
627
627
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
628
628
|
* @private
|
|
629
|
-
* @returns {
|
|
629
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
630
630
|
*/
|
|
631
631
|
private renderLayoutEmphasized;
|
|
632
632
|
/**
|
|
633
633
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
634
634
|
* @private
|
|
635
635
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
636
|
-
* @returns {
|
|
636
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
637
637
|
*/
|
|
638
638
|
private renderLayout;
|
|
639
639
|
}
|
|
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
|
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
4041
|
|
|
4042
|
-
var formkitVersion = '
|
|
4042
|
+
var formkitVersion = '202611090436';
|
|
4043
4043
|
|
|
4044
4044
|
/**
|
|
4045
4045
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4535,6 +4535,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4535
4535
|
/**
|
|
4536
4536
|
* Removes the trigger's border, background, and shadow.
|
|
4537
4537
|
* Applies only when `shape` and `size` are both set.
|
|
4538
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
4538
4539
|
* @category ui
|
|
4539
4540
|
*/
|
|
4540
4541
|
simple: {
|
|
@@ -5519,7 +5520,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5519
5520
|
*
|
|
5520
5521
|
* @private
|
|
5521
5522
|
* @method handleDefaultSlot
|
|
5522
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5523
5523
|
*/
|
|
5524
5524
|
handleDefaultSlot() {
|
|
5525
5525
|
|
|
@@ -5532,7 +5532,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5532
5532
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5533
5533
|
* @private
|
|
5534
5534
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5535
|
-
* @returns {
|
|
5535
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5536
5536
|
*/
|
|
5537
5537
|
renderBasicHtml(helpTextClasses) {
|
|
5538
5538
|
return html$1`
|
|
@@ -5594,7 +5594,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5594
5594
|
/**
|
|
5595
5595
|
* Renders the classic layout.
|
|
5596
5596
|
* @private
|
|
5597
|
-
* @returns {
|
|
5597
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5598
5598
|
*/
|
|
5599
5599
|
renderLayoutClassic() {
|
|
5600
5600
|
// TODO: check with Doug why this was never used?
|
|
@@ -5610,7 +5610,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5610
5610
|
/**
|
|
5611
5611
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5612
5612
|
* @private
|
|
5613
|
-
* @returns {
|
|
5613
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5614
5614
|
*/
|
|
5615
5615
|
renderLayoutSnowflake() {
|
|
5616
5616
|
const helpTextClasses = {
|
|
@@ -5627,7 +5627,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5627
5627
|
/**
|
|
5628
5628
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5629
5629
|
* @private
|
|
5630
|
-
* @returns {
|
|
5630
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5631
5631
|
*/
|
|
5632
5632
|
renderLayoutEmphasized() {
|
|
5633
5633
|
const helpTextClasses = {
|
|
@@ -5645,7 +5645,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5645
5645
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5646
5646
|
* @private
|
|
5647
5647
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5648
|
-
* @returns {
|
|
5648
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5649
5649
|
*/
|
|
5650
5650
|
renderLayout(ForcedLayout) {
|
|
5651
5651
|
const layout = ForcedLayout || this.layout;
|
|
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
|
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
4041
|
|
|
4042
|
-
var formkitVersion = '
|
|
4042
|
+
var formkitVersion = '202611090436';
|
|
4043
4043
|
|
|
4044
4044
|
/**
|
|
4045
4045
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4535,6 +4535,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4535
4535
|
/**
|
|
4536
4536
|
* Removes the trigger's border, background, and shadow.
|
|
4537
4537
|
* Applies only when `shape` and `size` are both set.
|
|
4538
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
4538
4539
|
* @category ui
|
|
4539
4540
|
*/
|
|
4540
4541
|
simple: {
|
|
@@ -5519,7 +5520,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5519
5520
|
*
|
|
5520
5521
|
* @private
|
|
5521
5522
|
* @method handleDefaultSlot
|
|
5522
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5523
5523
|
*/
|
|
5524
5524
|
handleDefaultSlot() {
|
|
5525
5525
|
|
|
@@ -5532,7 +5532,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5532
5532
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5533
5533
|
* @private
|
|
5534
5534
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5535
|
-
* @returns {
|
|
5535
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5536
5536
|
*/
|
|
5537
5537
|
renderBasicHtml(helpTextClasses) {
|
|
5538
5538
|
return html$1`
|
|
@@ -5594,7 +5594,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5594
5594
|
/**
|
|
5595
5595
|
* Renders the classic layout.
|
|
5596
5596
|
* @private
|
|
5597
|
-
* @returns {
|
|
5597
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5598
5598
|
*/
|
|
5599
5599
|
renderLayoutClassic() {
|
|
5600
5600
|
// TODO: check with Doug why this was never used?
|
|
@@ -5610,7 +5610,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5610
5610
|
/**
|
|
5611
5611
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5612
5612
|
* @private
|
|
5613
|
-
* @returns {
|
|
5613
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5614
5614
|
*/
|
|
5615
5615
|
renderLayoutSnowflake() {
|
|
5616
5616
|
const helpTextClasses = {
|
|
@@ -5627,7 +5627,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5627
5627
|
/**
|
|
5628
5628
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5629
5629
|
* @private
|
|
5630
|
-
* @returns {
|
|
5630
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5631
5631
|
*/
|
|
5632
5632
|
renderLayoutEmphasized() {
|
|
5633
5633
|
const helpTextClasses = {
|
|
@@ -5645,7 +5645,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5645
5645
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5646
5646
|
* @private
|
|
5647
5647
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5648
|
-
* @returns {
|
|
5648
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5649
5649
|
*/
|
|
5650
5650
|
renderLayout(ForcedLayout) {
|
|
5651
5651
|
const layout = ForcedLayout || this.layout;
|
|
@@ -9,7 +9,7 @@ Collects the values and validity of the Auro form elements inside it, and handle
|
|
|
9
9
|
- **Collects values**: The form always gathers the value of every named, enabled Auro form element inside it, such as `auro-input` or `auro-select`, into one object in `value`.
|
|
10
10
|
- **Tracks validity and changes**: The form always reports whether its fields pass validation in `validity`, and whether any field has changed from its starting value in `isInitialState`.
|
|
11
11
|
- **Manages submit and reset buttons**: The form always turns on a `button` or `auro-button` with `type="submit"` only while no enabled field is invalid or required but empty, and one with `type="reset"` only when the form has changed or holds a value.
|
|
12
|
-
- **Submits on Enter**: Pressing Enter in a named, enabled form element
|
|
12
|
+
- **Submits on Enter**: Pressing Enter in a named, enabled form element runs `submit()`, except on the clear button in `auro-input` or `auro-combobox`.
|
|
13
13
|
- **Skips disabled fields**: The form always leaves fields with the `disabled` attribute out of `value`, validation, and the `submit` event.
|
|
14
14
|
|
|
15
15
|
**Example**
|
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
<auro-combobox required name="destination">
|
|
149
149
|
<span slot="label">To</span>
|
|
150
150
|
<span slot="bib.fullscreen.headline">Search destinations</span>
|
|
151
|
+
<span slot="ariaLabel.input.clear">Clear destination</span>
|
|
151
152
|
<span slot="ariaLabel.bib.close">Close</span>
|
|
152
153
|
<auro-menu>
|
|
153
154
|
<auro-menuoption value="HNL">Honolulu (HNL)</auro-menuoption>
|
|
@@ -321,6 +322,7 @@
|
|
|
321
322
|
<auro-combobox required name="destination">
|
|
322
323
|
<span slot="label">To</span>
|
|
323
324
|
<span slot="bib.fullscreen.headline">Search destinations</span>
|
|
325
|
+
<span slot="ariaLabel.input.clear">Clear destination</span>
|
|
324
326
|
<span slot="ariaLabel.bib.close">Close</span>
|
|
325
327
|
<auro-menu>
|
|
326
328
|
<auro-menuoption value="HNL">Honolulu (HNL)</auro-menuoption>
|