@aurodesignsystem/auro-formkit 2.1.0 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -2
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +122 -19
- package/components/combobox/demo/api.min.js +160 -24
- package/components/combobox/demo/index.min.js +160 -24
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +42 -0
- package/components/combobox/dist/index.js +160 -24
- package/components/combobox/dist/registered.js +160 -24
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +113 -10
- package/components/counter/demo/api.min.js +178 -47
- package/components/counter/demo/index.min.js +178 -47
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +55 -17
- package/components/counter/dist/index.js +178 -47
- package/components/counter/dist/registered.js +178 -47
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +61 -0
- package/components/datepicker/demo/api.min.js +162 -25
- package/components/datepicker/demo/index.min.js +162 -25
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +42 -0
- package/components/datepicker/dist/index.js +162 -25
- package/components/datepicker/dist/registered.js +162 -25
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +166 -19
- package/components/dropdown/demo/api.min.js +106 -22
- package/components/dropdown/demo/index.min.js +106 -22
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +63 -7
- package/components/dropdown/dist/index.js +106 -22
- package/components/dropdown/dist/registered.js +106 -22
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/readme.md +1 -1
- package/components/menu/README.md +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/select/README.md +2 -1
- package/components/select/demo/api.md +142 -17
- package/components/select/demo/api.min.js +160 -24
- package/components/select/demo/index.md +14 -0
- package/components/select/demo/index.min.js +160 -24
- package/components/select/demo/readme.md +2 -1
- package/components/select/dist/auro-select.d.ts +42 -0
- package/components/select/dist/index.js +160 -24
- package/components/select/dist/registered.js +160 -24
- package/package.json +1 -1
|
@@ -14,23 +14,27 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Attribute | Type | Default
|
|
18
|
-
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [
|
|
23
|
-
| [
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
17
|
+
| Property | Attribute | Type | Default | Description |
|
|
18
|
+
|---------------------------------|---------------------------------|-----------|----------------|--------------------------------------------------|
|
|
19
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
20
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
21
|
+
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
22
|
+
| [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `boolean` | | If set, makes dropdown width match the size of the content, rather than the width of the trigger. |
|
|
23
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.<br />When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint. |
|
|
24
|
+
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
|
|
25
|
+
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
26
|
+
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
27
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
28
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
|
|
29
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
30
|
+
| [optionSelected](#optionSelected) | `optionSelected` | | | Specifies the current selected menuOption. |
|
|
31
|
+
| [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" |
|
|
32
|
+
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
33
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
34
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
35
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
36
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
37
|
+
| [value](#value) | `value` | | | Value selected for the component. |
|
|
34
38
|
|
|
35
39
|
## Methods
|
|
36
40
|
|
|
@@ -75,6 +79,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
75
79
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
76
80
|
<auro-select>
|
|
77
81
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
82
|
+
<span slot="label">Select Example</span>
|
|
78
83
|
<auro-menu>
|
|
79
84
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
80
85
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -94,6 +99,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
94
99
|
```html
|
|
95
100
|
<auro-select>
|
|
96
101
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
102
|
+
<span slot="label">Select Example</span>
|
|
97
103
|
<auro-menu>
|
|
98
104
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
99
105
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -186,6 +192,7 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
186
192
|
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
187
193
|
<auro-select required setCustomValidityValueMissing="Custom required validation error message.">
|
|
188
194
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
195
|
+
<span slot="label">required field</span>
|
|
189
196
|
<label slot="placeholder">Placeholder Text</label>
|
|
190
197
|
<auro-menu>
|
|
191
198
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -206,6 +213,7 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
206
213
|
```html
|
|
207
214
|
<auro-select required setCustomValidityValueMissing="Custom required validation error message.">
|
|
208
215
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
216
|
+
<span slot="label">required field</span>
|
|
209
217
|
<label slot="placeholder">Placeholder Text</label>
|
|
210
218
|
<auro-menu>
|
|
211
219
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -234,6 +242,7 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
234
242
|
<auro-select id="errorExample" error="Custom error message">
|
|
235
243
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
236
244
|
<label slot="placeholder">Placeholder Text</label>
|
|
245
|
+
<span slot="label">error Select Example</span>
|
|
237
246
|
<auro-menu>
|
|
238
247
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
239
248
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -257,6 +266,7 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
257
266
|
<auro-select id="errorExample" error="Custom error message">
|
|
258
267
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
259
268
|
<label slot="placeholder">Placeholder Text</label>
|
|
269
|
+
<span slot="label">error Select Example</span>
|
|
260
270
|
<auro-menu>
|
|
261
271
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
262
272
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -279,6 +289,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
279
289
|
<auro-select disabled>
|
|
280
290
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
281
291
|
<label slot="placeholder">Placeholder Text</label>
|
|
292
|
+
<span slot="label">disabled select example</span>
|
|
282
293
|
<auro-menu>
|
|
283
294
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
284
295
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -299,6 +310,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
299
310
|
<auro-select disabled>
|
|
300
311
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
301
312
|
<label slot="placeholder">Placeholder Text</label>
|
|
313
|
+
<span slot="label">disabled select example</span>
|
|
302
314
|
<auro-menu>
|
|
303
315
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
304
316
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -321,6 +333,7 @@ Sets multi-select mode, allowing multiple options to be selected at once.
|
|
|
321
333
|
<auro-select multiselect>
|
|
322
334
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
323
335
|
<label slot="placeholder">Select one or more options</label>
|
|
336
|
+
<span slot="label">multiselect select example</span>
|
|
324
337
|
<auro-menu>
|
|
325
338
|
<auro-menuoption value="1">Option 1</auro-menuoption>
|
|
326
339
|
<auro-menuoption value="2">Option 2</auro-menuoption>
|
|
@@ -338,6 +351,7 @@ Sets multi-select mode, allowing multiple options to be selected at once.
|
|
|
338
351
|
<auro-select multiselect>
|
|
339
352
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
340
353
|
<label slot="placeholder">Select one or more options</label>
|
|
354
|
+
<span slot="label">multiselect select example</span>
|
|
341
355
|
<auro-menu>
|
|
342
356
|
<auro-menuoption value="1">Option 1</auro-menuoption>
|
|
343
357
|
<auro-menuoption value="2">Option 2</auro-menuoption>
|
|
@@ -355,6 +369,7 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
|
|
|
355
369
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/flexMenuWidth.html) -->
|
|
356
370
|
<!-- The below content is automatically added from ../apiExamples/flexMenuWidth.html -->
|
|
357
371
|
<auro-select flexMenuWidth id="flexMenuWidthExample">
|
|
372
|
+
<span slot="label">flexMenuWidth select example</span>
|
|
358
373
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
359
374
|
<label slot="placeholder">Placeholder Text</label>
|
|
360
375
|
<auro-menu>
|
|
@@ -379,6 +394,7 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
|
|
|
379
394
|
|
|
380
395
|
```html
|
|
381
396
|
<auro-select flexMenuWidth id="flexMenuWidthExample">
|
|
397
|
+
<span slot="label">flexMenuWidth select example</span>
|
|
382
398
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
383
399
|
<label slot="placeholder">Placeholder Text</label>
|
|
384
400
|
<auro-menu>
|
|
@@ -452,6 +468,7 @@ Use the `helptext` slot to provide additional information back to your user abou
|
|
|
452
468
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
453
469
|
<label slot="placeholder">Placeholder Text</label>
|
|
454
470
|
<span slot="helpText">Custom help text message.</span>
|
|
471
|
+
<span slot="label">helpText select example</span>
|
|
455
472
|
<auro-menu>
|
|
456
473
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
457
474
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -473,6 +490,7 @@ Use the `helptext` slot to provide additional information back to your user abou
|
|
|
473
490
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
474
491
|
<label slot="placeholder">Placeholder Text</label>
|
|
475
492
|
<span slot="helpText">Custom help text message.</span>
|
|
493
|
+
<span slot="label">helpText select example</span>
|
|
476
494
|
<auro-menu>
|
|
477
495
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
478
496
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -560,6 +578,7 @@ The following example illustrates how a user may query the `element.value` or `e
|
|
|
560
578
|
<auro-select id="valueExtraction">
|
|
561
579
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
562
580
|
<label slot="placeholder">Placeholder Text</label>
|
|
581
|
+
<span slot="label">Select Example</span>
|
|
563
582
|
<auro-menu>
|
|
564
583
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
565
584
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -581,6 +600,7 @@ The following example illustrates how a user may query the `element.value` or `e
|
|
|
581
600
|
<auro-select id="valueExtraction">
|
|
582
601
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
583
602
|
<label slot="placeholder">Placeholder Text</label>
|
|
603
|
+
<span slot="label">Select Example</span>
|
|
584
604
|
<auro-menu>
|
|
585
605
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
586
606
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -622,6 +642,7 @@ This example programmatically adds the `error` state when a user selects an opti
|
|
|
622
642
|
<auro-select id="primaryError">
|
|
623
643
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
624
644
|
<label slot="placeholder">Placeholder Text</label>
|
|
645
|
+
<span slot="label">Select Example</span>
|
|
625
646
|
<auro-menu>
|
|
626
647
|
<auro-menuoption value="1">1</auro-menuoption>
|
|
627
648
|
<auro-menuoption value="2">2</auro-menuoption>
|
|
@@ -642,6 +663,7 @@ This example programmatically adds the `error` state when a user selects an opti
|
|
|
642
663
|
<auro-select id="primaryError">
|
|
643
664
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
644
665
|
<label slot="placeholder">Placeholder Text</label>
|
|
666
|
+
<span slot="label">Select Example</span>
|
|
645
667
|
<auro-menu>
|
|
646
668
|
<auro-menuoption value="1">1</auro-menuoption>
|
|
647
669
|
<auro-menuoption value="2">2</auro-menuoption>
|
|
@@ -740,6 +762,105 @@ export function auroMenuLoadingExample() {
|
|
|
740
762
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
741
763
|
</auro-accordion>
|
|
742
764
|
|
|
765
|
+
### Customized bib position
|
|
766
|
+
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
|
|
767
|
+
|
|
768
|
+
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
769
|
+
- `offset` sets the distance between the trigger and the bib.
|
|
770
|
+
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
771
|
+
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
772
|
+
|
|
773
|
+
<div class="exampleWrapper">
|
|
774
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
|
|
775
|
+
<!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
776
|
+
<div style="width: 350px">
|
|
777
|
+
<auro-select offset="20" noFlip placement="bottom-end">
|
|
778
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
779
|
+
<span slot="label">bottom-end bib with 20px offset and noFlip</span>
|
|
780
|
+
<auro-menu>
|
|
781
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
782
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
783
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
784
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
785
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
786
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
787
|
+
</auro-menu>
|
|
788
|
+
</auro-select>
|
|
789
|
+
<auro-select offset="20" placement="bottom-end">
|
|
790
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
791
|
+
<span slot="label">bottom-end bib with 20px offset and flip</span>
|
|
792
|
+
<auro-menu>
|
|
793
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
794
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
795
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
796
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
797
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
798
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
799
|
+
</auro-menu>
|
|
800
|
+
</auro-select>
|
|
801
|
+
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
802
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
803
|
+
<span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
804
|
+
<auro-menu>
|
|
805
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
806
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
807
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
808
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
809
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
810
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
811
|
+
</auro-menu>
|
|
812
|
+
</auro-select>
|
|
813
|
+
</div>
|
|
814
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
815
|
+
</div>
|
|
816
|
+
<auro-accordion alignRight>
|
|
817
|
+
<span slot="trigger">See code</span>
|
|
818
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
|
|
819
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
820
|
+
|
|
821
|
+
```html
|
|
822
|
+
<div style="width: 350px">
|
|
823
|
+
<auro-select offset="20" noFlip placement="bottom-end">
|
|
824
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
825
|
+
<span slot="label">bottom-end bib with 20px offset and noFlip</span>
|
|
826
|
+
<auro-menu>
|
|
827
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
828
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
829
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
830
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
831
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
832
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
833
|
+
</auro-menu>
|
|
834
|
+
</auro-select>
|
|
835
|
+
<auro-select offset="20" placement="bottom-end">
|
|
836
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
837
|
+
<span slot="label">bottom-end bib with 20px offset and flip</span>
|
|
838
|
+
<auro-menu>
|
|
839
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
840
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
841
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
842
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
843
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
844
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
845
|
+
</auro-menu>
|
|
846
|
+
</auro-select>
|
|
847
|
+
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
848
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
849
|
+
<span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
850
|
+
<auro-menu>
|
|
851
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
852
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
853
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
854
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
855
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
856
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
857
|
+
</auro-menu>
|
|
858
|
+
</auro-select>
|
|
859
|
+
</div>
|
|
860
|
+
```
|
|
861
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
862
|
+
</auro-accordion>
|
|
863
|
+
|
|
743
864
|
### Dropdown with fullscreen bib
|
|
744
865
|
|
|
745
866
|
You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
|
|
@@ -754,6 +875,7 @@ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMM
|
|
|
754
875
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreenBreakpoint.html) -->
|
|
755
876
|
<!-- The below content is automatically added from ./../apiExamples/fullscreenBreakpoint.html -->
|
|
756
877
|
<auro-select fullscreenBreakpoint="lg">
|
|
878
|
+
<span slot="label">Select Example</span>
|
|
757
879
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
758
880
|
<auro-menu>
|
|
759
881
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -773,6 +895,7 @@ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMM
|
|
|
773
895
|
|
|
774
896
|
```html
|
|
775
897
|
<auro-select fullscreenBreakpoint="lg">
|
|
898
|
+
<span slot="label">Select Example</span>
|
|
776
899
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
777
900
|
<auro-menu>
|
|
778
901
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -866,6 +989,7 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
|
|
|
866
989
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueAlert.html) -->
|
|
867
990
|
<!-- The below content is automatically added from ./../apiExamples/valueAlert.html -->
|
|
868
991
|
<auro-select id="valueAlert">
|
|
992
|
+
<span slot="label">Select Example</span>
|
|
869
993
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
870
994
|
<label slot="placeholder">Placeholder Text</label>
|
|
871
995
|
<auro-menu id="valueAlertMenu">
|
|
@@ -886,6 +1010,7 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
|
|
|
886
1010
|
|
|
887
1011
|
```html
|
|
888
1012
|
<auro-select id="valueAlert">
|
|
1013
|
+
<span slot="label">Select Example</span>
|
|
889
1014
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
890
1015
|
<label slot="placeholder">Placeholder Text</label>
|
|
891
1016
|
<auro-menu id="valueAlertMenu">
|