@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.1 → 0.0.0-pr1628.10
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/auro-bibtemplate.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- 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 +3 -3
- package/components/combobox/demo/css-only.md +3 -3
- package/components/combobox/demo/customize.md +12 -12
- package/components/combobox/demo/customize.min.js +50 -32
- package/components/combobox/demo/getting-started.min.js +50 -32
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +50 -32
- package/components/combobox/dist/auro-combobox.d.ts +6 -4
- package/components/combobox/dist/index.js +39 -22
- package/components/combobox/dist/registered.js +39 -22
- package/components/counter/demo/accessibility.md +1 -1
- package/components/counter/demo/api.md +18 -18
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +28 -28
- package/components/counter/demo/design.md +1 -1
- package/components/counter/demo/getting-started.md +29 -2
- package/components/counter/demo/getting-started.min.js +28 -28
- package/components/counter/demo/index.min.js +28 -28
- package/components/counter/demo/why-counter.md +3 -3
- package/components/counter/dist/auro-counter-group.d.ts +13 -14
- package/components/counter/dist/auro-counter.d.ts +1 -1
- package/components/counter/dist/index.js +28 -28
- package/components/counter/dist/registered.js +28 -28
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/accessibility.md +5 -5
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/css-only.md +4 -4
- package/components/datepicker/demo/customize.md +12 -12
- package/components/datepicker/demo/customize.min.js +186 -132
- package/components/datepicker/demo/design.md +11 -11
- package/components/datepicker/demo/getting-started.md +4 -4
- package/components/datepicker/demo/getting-started.min.js +186 -132
- package/components/datepicker/demo/index.md +5 -5
- package/components/datepicker/demo/index.min.js +186 -132
- package/components/datepicker/demo/keyboard-behavior.md +1 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/demo/voiceover.md +4 -4
- package/components/datepicker/demo/why-datepicker.md +3 -3
- package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
- package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
- package/components/datepicker/dist/auro-calendar.d.ts +44 -43
- package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
- package/components/datepicker/dist/index.js +186 -132
- package/components/datepicker/dist/registered.js +186 -132
- package/components/datepicker/dist/utilities.d.ts +4 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
- package/components/dropdown/demo/api.md +7 -7
- package/components/dropdown/demo/css-only.md +2 -2
- package/components/dropdown/demo/customize.md +1 -1
- package/components/dropdown/demo/customize.min.js +10 -9
- package/components/dropdown/demo/design.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +31 -16
- package/components/dropdown/demo/index.min.js +10 -9
- 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 +9 -8
- package/components/dropdown/dist/index.js +10 -9
- package/components/dropdown/dist/registered.js +10 -9
- package/components/form/README.md +1 -1
- package/components/form/demo/api.md +7 -7
- package/components/form/demo/css-only.md +1 -1
- package/components/form/demo/customize.md +2 -0
- package/components/form/demo/customize.min.js +316 -230
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +316 -230
- package/components/form/demo/index.md +2 -2
- package/components/form/demo/index.min.js +316 -230
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +314 -228
- package/components/form/demo/voiceover.md +3 -3
- package/components/form/demo/why-form.md +1 -1
- package/components/form/dist/auro-form.d.ts +2 -2
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/input/demo/api.md +58 -58
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +11 -11
- package/components/input/demo/customize.min.js +21 -7
- package/components/input/demo/design.md +2 -2
- package/components/input/demo/getting-started.md +5 -5
- package/components/input/demo/getting-started.min.js +21 -7
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +21 -7
- package/components/input/demo/why-input.md +3 -3
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +6 -5
- package/components/input/dist/index.js +21 -7
- package/components/input/dist/registered.js +21 -7
- package/components/input/dist/utilities.d.ts +11 -0
- package/components/menu/demo/accessibility.md +1 -1
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/css-only.md +4 -4
- package/components/menu/demo/customize.md +1 -1
- package/components/menu/demo/design.md +1 -1
- package/components/menu/demo/getting-started.md +3 -3
- package/components/menu/demo/index.min.js +11 -10
- package/components/menu/demo/keyboard-behavior.md +1 -1
- package/components/menu/demo/voiceover.md +1 -1
- package/components/menu/demo/why-menu.md +3 -3
- package/components/menu/dist/auro-menu.d.ts +10 -9
- package/components/menu/dist/auro-menuoption.d.ts +1 -1
- package/components/menu/dist/index.js +11 -10
- package/components/menu/dist/registered.js +11 -10
- package/components/radio/demo/accessibility.md +1 -1
- package/components/radio/demo/api.md +10 -10
- package/components/radio/demo/customize.md +15 -5
- package/components/radio/demo/customize.min.js +10 -12
- package/components/radio/demo/design.md +1 -1
- package/components/radio/demo/getting-started.md +6 -6
- package/components/radio/demo/getting-started.min.js +10 -12
- package/components/radio/demo/index.md +1 -1
- package/components/radio/demo/index.min.js +10 -12
- package/components/radio/demo/keyboard-behavior.md +1 -1
- package/components/radio/demo/voiceover.md +1 -1
- package/components/radio/demo/why-radio.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -8
- package/components/radio/dist/auro-radio.d.ts +3 -3
- package/components/radio/dist/index.js +10 -12
- package/components/radio/dist/registered.js +10 -12
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/css-only.md +1 -1
- package/components/select/demo/customize.md +1 -1
- package/components/select/demo/customize.min.js +27 -24
- package/components/select/demo/getting-started.min.js +27 -24
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +27 -24
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/auro-select.d.ts +4 -3
- package/components/select/dist/index.js +16 -14
- package/components/select/dist/registered.js +16 -14
- package/custom-elements.json +148 -132
- package/package.json +1 -1
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
29
29
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
30
30
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
31
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
32
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
31
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
32
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
33
33
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
34
34
|
*/
|
|
35
35
|
export class AuroDropdown extends AuroElement {
|
|
@@ -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
|
|
103
104
|
* @category ui
|
|
104
105
|
*/
|
|
105
106
|
simple: {
|
|
@@ -342,6 +343,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
342
343
|
/**
|
|
343
344
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
344
345
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
346
|
+
* @default 0
|
|
345
347
|
* @category a11y
|
|
346
348
|
*/
|
|
347
349
|
tabIndex: {
|
|
@@ -600,39 +602,38 @@ export class AuroDropdown extends AuroElement {
|
|
|
600
602
|
*
|
|
601
603
|
* @private
|
|
602
604
|
* @method handleDefaultSlot
|
|
603
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
604
605
|
*/
|
|
605
606
|
private handleDefaultSlot;
|
|
606
607
|
/**
|
|
607
608
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
608
609
|
* @private
|
|
609
610
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
610
|
-
* @returns {
|
|
611
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
611
612
|
*/
|
|
612
613
|
private renderBasicHtml;
|
|
613
614
|
/**
|
|
614
615
|
* Renders the classic layout.
|
|
615
616
|
* @private
|
|
616
|
-
* @returns {
|
|
617
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
617
618
|
*/
|
|
618
619
|
private renderLayoutClassic;
|
|
619
620
|
/**
|
|
620
621
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
621
622
|
* @private
|
|
622
|
-
* @returns {
|
|
623
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
623
624
|
*/
|
|
624
625
|
private renderLayoutSnowflake;
|
|
625
626
|
/**
|
|
626
627
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
627
628
|
* @private
|
|
628
|
-
* @returns {
|
|
629
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
629
630
|
*/
|
|
630
631
|
private renderLayoutEmphasized;
|
|
631
632
|
/**
|
|
632
633
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
633
634
|
* @private
|
|
634
635
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
635
|
-
* @returns {
|
|
636
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
636
637
|
*/
|
|
637
638
|
private renderLayout;
|
|
638
639
|
}
|
|
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
|
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
4041
|
|
|
4042
|
-
var formkitVersion = '
|
|
4042
|
+
var formkitVersion = '202611091558';
|
|
4043
4043
|
|
|
4044
4044
|
/**
|
|
4045
4045
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4205,8 +4205,8 @@ class AuroElement extends LitElement {
|
|
|
4205
4205
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
4206
4206
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
4207
4207
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
4208
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
4209
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
4208
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
4209
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
4210
4210
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
4211
4211
|
*/
|
|
4212
4212
|
class AuroDropdown extends AuroElement {
|
|
@@ -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
|
|
4538
4539
|
* @category ui
|
|
4539
4540
|
*/
|
|
4540
4541
|
simple: {
|
|
@@ -4827,6 +4828,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4827
4828
|
/**
|
|
4828
4829
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
4829
4830
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
4831
|
+
* @default 0
|
|
4830
4832
|
* @category a11y
|
|
4831
4833
|
*/
|
|
4832
4834
|
tabIndex: {
|
|
@@ -5518,7 +5520,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5518
5520
|
*
|
|
5519
5521
|
* @private
|
|
5520
5522
|
* @method handleDefaultSlot
|
|
5521
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5522
5523
|
*/
|
|
5523
5524
|
handleDefaultSlot() {
|
|
5524
5525
|
|
|
@@ -5531,7 +5532,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5531
5532
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5532
5533
|
* @private
|
|
5533
5534
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5534
|
-
* @returns {
|
|
5535
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5535
5536
|
*/
|
|
5536
5537
|
renderBasicHtml(helpTextClasses) {
|
|
5537
5538
|
return html$1`
|
|
@@ -5593,7 +5594,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5593
5594
|
/**
|
|
5594
5595
|
* Renders the classic layout.
|
|
5595
5596
|
* @private
|
|
5596
|
-
* @returns {
|
|
5597
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5597
5598
|
*/
|
|
5598
5599
|
renderLayoutClassic() {
|
|
5599
5600
|
// TODO: check with Doug why this was never used?
|
|
@@ -5609,7 +5610,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5609
5610
|
/**
|
|
5610
5611
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5611
5612
|
* @private
|
|
5612
|
-
* @returns {
|
|
5613
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5613
5614
|
*/
|
|
5614
5615
|
renderLayoutSnowflake() {
|
|
5615
5616
|
const helpTextClasses = {
|
|
@@ -5626,7 +5627,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5626
5627
|
/**
|
|
5627
5628
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5628
5629
|
* @private
|
|
5629
|
-
* @returns {
|
|
5630
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5630
5631
|
*/
|
|
5631
5632
|
renderLayoutEmphasized() {
|
|
5632
5633
|
const helpTextClasses = {
|
|
@@ -5644,7 +5645,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5644
5645
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5645
5646
|
* @private
|
|
5646
5647
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5647
|
-
* @returns {
|
|
5648
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5648
5649
|
*/
|
|
5649
5650
|
renderLayout(ForcedLayout) {
|
|
5650
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 = '202611091558';
|
|
4043
4043
|
|
|
4044
4044
|
/**
|
|
4045
4045
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4205,8 +4205,8 @@ class AuroElement extends LitElement {
|
|
|
4205
4205
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
4206
4206
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
4207
4207
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
4208
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
4209
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
4208
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
4209
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
4210
4210
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
4211
4211
|
*/
|
|
4212
4212
|
class AuroDropdown extends AuroElement {
|
|
@@ -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
|
|
4538
4539
|
* @category ui
|
|
4539
4540
|
*/
|
|
4540
4541
|
simple: {
|
|
@@ -4827,6 +4828,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4827
4828
|
/**
|
|
4828
4829
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
4829
4830
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
4831
|
+
* @default 0
|
|
4830
4832
|
* @category a11y
|
|
4831
4833
|
*/
|
|
4832
4834
|
tabIndex: {
|
|
@@ -5518,7 +5520,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5518
5520
|
*
|
|
5519
5521
|
* @private
|
|
5520
5522
|
* @method handleDefaultSlot
|
|
5521
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5522
5523
|
*/
|
|
5523
5524
|
handleDefaultSlot() {
|
|
5524
5525
|
|
|
@@ -5531,7 +5532,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5531
5532
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5532
5533
|
* @private
|
|
5533
5534
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5534
|
-
* @returns {
|
|
5535
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5535
5536
|
*/
|
|
5536
5537
|
renderBasicHtml(helpTextClasses) {
|
|
5537
5538
|
return html$1`
|
|
@@ -5593,7 +5594,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5593
5594
|
/**
|
|
5594
5595
|
* Renders the classic layout.
|
|
5595
5596
|
* @private
|
|
5596
|
-
* @returns {
|
|
5597
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5597
5598
|
*/
|
|
5598
5599
|
renderLayoutClassic() {
|
|
5599
5600
|
// TODO: check with Doug why this was never used?
|
|
@@ -5609,7 +5610,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5609
5610
|
/**
|
|
5610
5611
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5611
5612
|
* @private
|
|
5612
|
-
* @returns {
|
|
5613
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5613
5614
|
*/
|
|
5614
5615
|
renderLayoutSnowflake() {
|
|
5615
5616
|
const helpTextClasses = {
|
|
@@ -5626,7 +5627,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5626
5627
|
/**
|
|
5627
5628
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5628
5629
|
* @private
|
|
5629
|
-
* @returns {
|
|
5630
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5630
5631
|
*/
|
|
5631
5632
|
renderLayoutEmphasized() {
|
|
5632
5633
|
const helpTextClasses = {
|
|
@@ -5644,7 +5645,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5644
5645
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5645
5646
|
* @private
|
|
5646
5647
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5647
|
-
* @returns {
|
|
5648
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5648
5649
|
*/
|
|
5649
5650
|
renderLayout(ForcedLayout) {
|
|
5650
5651
|
const layout = ForcedLayout || this.layout;
|
|
@@ -35,5 +35,5 @@ Use `<auro-form>` when you build a form from Auro form elements and want their v
|
|
|
35
35
|
|
|
36
36
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
|
|
37
37
|
<!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
|
|
38
|
-
For
|
|
38
|
+
For getting started instructions, visit the [`auro-form` getting started page](https://auro.alaskaair.com/components/auro/form/getting-started).
|
|
39
39
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -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**
|
|
@@ -40,12 +40,12 @@ Collects the values and validity of the Auro form elements inside it, and handle
|
|
|
40
40
|
|
|
41
41
|
### Events
|
|
42
42
|
|
|
43
|
-
| Name | Description
|
|
44
|
-
| ------ |
|
|
45
|
-
| change | Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset.
|
|
46
|
-
| input |
|
|
47
|
-
| reset | Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset.
|
|
48
|
-
| submit | Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values.
|
|
43
|
+
| Name | Description |
|
|
44
|
+
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
45
|
+
| change | Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset. |
|
|
46
|
+
| input | Bubbles up from a child form element when it receives user input; the form doesn't fire `input` itself. `auro-counter-group` doesn't currently bubble its `input` event, so listen for `change` to catch every field. |
|
|
47
|
+
| reset | Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset. |
|
|
48
|
+
| submit | Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values. |
|
|
49
49
|
|
|
50
50
|
### Slots
|
|
51
51
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<auro-header level="1">CSS only with native form</auro-header>
|
|
2
2
|
<p>When you can't use the <code><auro-form></code> web component, lay out a native HTML <code><form></code> element with the Auro Design System tokens instead. <code>auro-form</code> has no styles of its own and doesn't lay out its children, so the CSS below is a suggested starting point, not a copy of <code>auro-form</code>. Unlike <auro-hyperlink href="https://auro.alaskaair.com/components/auro/hyperlink/css-only" target="_blank">auro-hyperlink</auro-hyperlink>, <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">Web Core Style Sheets</auro-hyperlink> doesn't provide a prebuilt <code>.form</code> class. The native <code><form></code> element provides the structural container and browser-native constraint validation, but it doesn't provide the cross-field coordination that <code>auro-form</code> adds.</p>
|
|
3
3
|
<auro-header level="2">Styling a native form</auro-header>
|
|
4
|
-
<p>Lay out the native form with the Auro design tokens published by <auro-hyperlink href="https://
|
|
4
|
+
<p>Lay out the native form with the Auro design tokens published by <auro-hyperlink href="https://github.com/AlaskaAirlines/AuroDesignTokens" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. The pattern below gives fields and actions consistent spacing.</p>
|
|
5
5
|
<pre><code>@import "./node_modules/@aurodesignsystem/design-tokens/dist/legacy/auro-classic/CSSCustomProperties.css";
|
|
6
6
|
.form {
|
|
7
7
|
display: flex;
|
|
@@ -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>
|