@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.4 → 0.0.0-pr624.40
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 +13 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1292 -79
- package/components/bibtemplate/dist/registered.js +1292 -79
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +47 -14
- package/components/checkbox/demo/api.min.js +44 -31
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +44 -31
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +44 -31
- package/components/checkbox/dist/registered.js +44 -31
- package/components/combobox/demo/api.md +100 -2
- package/components/combobox/demo/api.min.js +3202 -759
- package/components/combobox/demo/index.md +6 -30
- package/components/combobox/demo/index.min.js +3202 -759
- package/components/combobox/dist/auro-combobox.d.ts +37 -16
- package/components/combobox/dist/index.js +3091 -789
- package/components/combobox/dist/registered.js +3091 -789
- package/components/counter/demo/api.html +1 -0
- package/components/counter/demo/api.md +21 -19
- package/components/counter/demo/api.min.js +3324 -614
- package/components/counter/demo/index.html +1 -0
- package/components/counter/demo/index.md +103 -34
- package/components/counter/demo/index.min.js +3324 -614
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +89 -6
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3324 -614
- package/components/counter/dist/registered.js +3324 -614
- package/components/datepicker/demo/api.md +36 -19
- package/components/datepicker/demo/api.min.js +11976 -8000
- package/components/datepicker/demo/index.md +80 -0
- package/components/datepicker/demo/index.min.js +11976 -8000
- package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +12238 -8262
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +12238 -8262
- package/components/dropdown/demo/api.md +8 -9
- package/components/dropdown/demo/api.min.js +551 -147
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +551 -147
- package/components/dropdown/dist/auro-dropdown.d.ts +28 -9
- package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
- package/components/dropdown/dist/index.js +551 -147
- package/components/dropdown/dist/registered.js +551 -147
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/index.js +2 -2
- package/components/helptext/dist/registered.js +2 -2
- package/components/input/README.md +5 -2
- package/components/input/demo/api.md +271 -176
- package/components/input/demo/api.min.js +956 -270
- package/components/input/demo/index.md +48 -32
- package/components/input/demo/index.min.js +955 -269
- package/components/input/demo/readme.md +5 -2
- package/components/input/dist/auro-input.d.ts +23 -15
- package/components/input/dist/base-input.d.ts +32 -8
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +955 -269
- package/components/input/dist/registered.js +955 -269
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +68 -7
- package/components/menu/demo/api.min.js +278 -42
- package/components/menu/demo/index.min.js +278 -42
- package/components/menu/dist/auro-menu.d.ts +28 -5
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +278 -42
- package/components/menu/dist/registered.js +278 -42
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.md +7 -8
- package/components/radio/demo/api.min.js +68 -80
- package/components/radio/demo/index.min.js +68 -80
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +9 -12
- package/components/radio/dist/index.js +68 -80
- package/components/radio/dist/registered.js +68 -80
- package/components/select/demo/api.md +123 -13
- package/components/select/demo/api.min.js +3045 -456
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +323 -763
- package/components/select/demo/index.min.js +3045 -456
- package/components/select/dist/auro-select.d.ts +112 -11
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +2925 -477
- package/components/select/dist/registered.js +2925 -477
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +6 -4
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
|
@@ -20,9 +20,11 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
20
20
|
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | If declared, sets the autocomplete attribute for the select element. |
|
|
21
21
|
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
22
22
|
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
23
|
-
| [
|
|
23
|
+
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` | `boolean` | false | If declared, the label and value will be visually hidden and the displayValue will render 100% of the time. |
|
|
24
24
|
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
25
25
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
26
|
+
| [layout](#layout) | | `string` | "snowflake" | |
|
|
27
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
26
28
|
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
27
29
|
| [name](#name) | `name` | `string` | | The name for the select element. |
|
|
28
30
|
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
@@ -31,28 +33,33 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
31
33
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
32
34
|
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
33
35
|
| [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | | Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true. |
|
|
34
|
-
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
36
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end". |
|
|
35
37
|
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
36
38
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
37
39
|
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
38
40
|
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
41
|
+
| [shape](#shape) | | `string` | "snowflake" | |
|
|
42
|
+
| [size](#size) | | `string` | "xl" | |
|
|
39
43
|
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
40
44
|
| [value](#value) | `value` | `String\|Array<String>` | | Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true. |
|
|
41
45
|
|
|
42
46
|
## Methods
|
|
43
47
|
|
|
44
|
-
| Method
|
|
45
|
-
|
|
46
|
-
| [
|
|
47
|
-
| [
|
|
48
|
+
| Method | Type | Description |
|
|
49
|
+
|----------------------|----------------------------------------|--------------------------------------------------|
|
|
50
|
+
| [renderAriaHtml](#renderAriaHtml) | `(): TemplateResult` | |
|
|
51
|
+
| [renderBACKUP](#renderBACKUP) | `(): TemplateResult` | |
|
|
52
|
+
| [renderNativeSelect](#renderNativeSelect) | `(): TemplateResult` | |
|
|
53
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
54
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
48
55
|
|
|
49
56
|
## Events
|
|
50
57
|
|
|
51
|
-
| Event | Type
|
|
52
|
-
|
|
53
|
-
| `auroFormElement-validated` |
|
|
54
|
-
| `auroSelect-valueSet` | `CustomEvent<any>`
|
|
55
|
-
| [input](#input) | `CustomEvent<any>` | Notifies every time the value prop of the element is changed. |
|
|
58
|
+
| Event | Type | Description |
|
|
59
|
+
|-----------------------------|--------------------------------------------------|--------------------------------------------------|
|
|
60
|
+
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
61
|
+
| `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
|
|
62
|
+
| [input](#input) | `CustomEvent<{ optionSelected: any; value: any; }>` | Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object. |
|
|
56
63
|
|
|
57
64
|
## Slots
|
|
58
65
|
|
|
@@ -60,9 +67,12 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
60
67
|
|---------------------------|--------------------------------------------------|
|
|
61
68
|
| | Default slot for the menu content. |
|
|
62
69
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
70
|
+
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when select is not focused. |
|
|
63
71
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
64
72
|
| [label](#label) | Defines the content of the label. |
|
|
65
|
-
| [
|
|
73
|
+
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
74
|
+
| [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
|
|
75
|
+
| [valueText](#valueText) | Dropdown value text display. |
|
|
66
76
|
|
|
67
77
|
## CSS Shadow Parts
|
|
68
78
|
|
|
@@ -439,6 +449,50 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
439
449
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
440
450
|
</auro-accordion>
|
|
441
451
|
|
|
452
|
+
### Custom optional label <a name="optionalLabel"></a>
|
|
453
|
+
The `<auro-select>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
454
|
+
|
|
455
|
+
<div class="exampleWrapper">
|
|
456
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
|
|
457
|
+
<!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
458
|
+
<auro-select>
|
|
459
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
460
|
+
<span slot="label">Please select a preference</span>
|
|
461
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
462
|
+
<auro-menu>
|
|
463
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
464
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
465
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
466
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
467
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
468
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
469
|
+
</auro-menu>
|
|
470
|
+
</auro-select>
|
|
471
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
472
|
+
</div>
|
|
473
|
+
<auro-accordion alignRight>
|
|
474
|
+
<span slot="trigger">See code</span>
|
|
475
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
|
|
476
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
477
|
+
|
|
478
|
+
```html
|
|
479
|
+
<auro-select>
|
|
480
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
481
|
+
<span slot="label">Please select a preference</span>
|
|
482
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
483
|
+
<auro-menu>
|
|
484
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
485
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
486
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
487
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
488
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
489
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
490
|
+
</auro-menu>
|
|
491
|
+
</auro-select>
|
|
492
|
+
```
|
|
493
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
494
|
+
</auro-accordion>
|
|
495
|
+
|
|
442
496
|
#### error <a name="error"></a>
|
|
443
497
|
Use the `error` boolean attribute to toggle the error UI.
|
|
444
498
|
|
|
@@ -730,7 +784,7 @@ Use the `label` slot to give your users contextual information about their selec
|
|
|
730
784
|
</auro-accordion>
|
|
731
785
|
|
|
732
786
|
#### helpText <a name="helpText"></a>
|
|
733
|
-
Use the `
|
|
787
|
+
Use the `helpText` slot to provide additional information back to your user about their selection option(s).
|
|
734
788
|
|
|
735
789
|
<div class="exampleWrapper">
|
|
736
790
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
@@ -1033,6 +1087,62 @@ export function auroMenuLoadingExample() {
|
|
|
1033
1087
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1034
1088
|
</auro-accordion>
|
|
1035
1089
|
|
|
1090
|
+
### displayValue <a name="displayValue"></a>
|
|
1091
|
+
The label for selected option can be customized using `displayValue` slot under `<menuoption>.
|
|
1092
|
+
|
|
1093
|
+
<div class="exampleWrapper">
|
|
1094
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/displayValue.html) -->
|
|
1095
|
+
<!-- The below content is automatically added from ./../apiExamples/displayValue.html -->
|
|
1096
|
+
<auro-select id="displayValueExample" autocomplete="address-level1">
|
|
1097
|
+
<span slot="bib.fullscreen.headline">Select Your Gender</span>
|
|
1098
|
+
<span slot="label">Gender</span>
|
|
1099
|
+
<span slot="displayValue"></span>
|
|
1100
|
+
<auro-menu>
|
|
1101
|
+
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1102
|
+
<span slot="displayValue">Male</span>
|
|
1103
|
+
</auro-menuoption>
|
|
1104
|
+
<auro-menuoption value="f" data-display="Female">F - Female
|
|
1105
|
+
<span slot="displayValue">Female</span>
|
|
1106
|
+
</auro-menuoption>
|
|
1107
|
+
<auro-menuoption value="x" data-display="Unspecified">X - Unspecified
|
|
1108
|
+
<span slot="displayValue">Unspecified</span>
|
|
1109
|
+
</auro-menuoption>
|
|
1110
|
+
<auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed
|
|
1111
|
+
<span slot="displayValue">Undisclosed</span>
|
|
1112
|
+
</auro-menuoption>
|
|
1113
|
+
</auro-menu>
|
|
1114
|
+
</auro-select>
|
|
1115
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1116
|
+
</div>
|
|
1117
|
+
<auro-accordion alignRight>
|
|
1118
|
+
<span slot="trigger">See code</span>
|
|
1119
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/displayValue.html) -->
|
|
1120
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/displayValue.html -->
|
|
1121
|
+
|
|
1122
|
+
```html
|
|
1123
|
+
<auro-select id="displayValueExample" autocomplete="address-level1">
|
|
1124
|
+
<span slot="bib.fullscreen.headline">Select Your Gender</span>
|
|
1125
|
+
<span slot="label">Gender</span>
|
|
1126
|
+
<span slot="displayValue"></span>
|
|
1127
|
+
<auro-menu>
|
|
1128
|
+
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1129
|
+
<span slot="displayValue">Male</span>
|
|
1130
|
+
</auro-menuoption>
|
|
1131
|
+
<auro-menuoption value="f" data-display="Female">F - Female
|
|
1132
|
+
<span slot="displayValue">Female</span>
|
|
1133
|
+
</auro-menuoption>
|
|
1134
|
+
<auro-menuoption value="x" data-display="Unspecified">X - Unspecified
|
|
1135
|
+
<span slot="displayValue">Unspecified</span>
|
|
1136
|
+
</auro-menuoption>
|
|
1137
|
+
<auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed
|
|
1138
|
+
<span slot="displayValue">Undisclosed</span>
|
|
1139
|
+
</auro-menuoption>
|
|
1140
|
+
</auro-menu>
|
|
1141
|
+
</auro-select>
|
|
1142
|
+
```
|
|
1143
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1144
|
+
</auro-accordion>
|
|
1145
|
+
|
|
1036
1146
|
### Customized bib position
|
|
1037
1147
|
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
|
|
1038
1148
|
|