@aurodesignsystem/auro-formkit 2.0.0-beta.44 → 2.0.0-beta.45
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 +19 -0
- package/components/checkbox/README.md +1 -1
- package/components/combobox/README.md +6 -6
- package/components/combobox/demo/api.md +46 -43
- package/components/combobox/demo/api.min.js +9 -8
- package/components/combobox/demo/index.md +16 -16
- package/components/combobox/demo/index.min.js +9 -8
- package/components/combobox/dist/auro-combobox.d.ts +3 -2
- package/components/combobox/dist/index.js +9 -8
- package/components/combobox/dist/registered.js +9 -8
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.js +2 -1
- package/components/counter/demo/api.md +88 -14
- package/components/counter/demo/api.min.js +1145 -266
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +1118 -266
- package/components/counter/dist/auro-counter-group.d.ts +31 -0
- package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
- package/components/counter/dist/index.js +1118 -266
- package/components/counter/dist/registered.js +1118 -266
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +5 -5
- package/components/datepicker/demo/index.min.js +5 -5
- package/components/datepicker/dist/index.js +5 -5
- package/components/datepicker/dist/registered.js +5 -5
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +23 -23
- package/components/dropdown/demo/api.min.js +4 -4
- package/components/dropdown/demo/index.min.js +4 -4
- package/components/dropdown/dist/auro-dropdown.d.ts +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +1 -1
- package/components/dropdown/dist/index.js +4 -4
- package/components/dropdown/dist/registered.js +4 -4
- package/components/form/README.md +1 -1
- package/components/input/README.md +1 -1
- package/components/menu/README.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +4 -4
- package/components/select/demo/index.min.js +4 -4
- package/components/select/dist/index.js +4 -4
- package/components/select/dist/registered.js +4 -4
- package/package.json +1 -1
|
@@ -2942,7 +2942,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2942
2942
|
];
|
|
2943
2943
|
|
|
2944
2944
|
/**
|
|
2945
|
-
* @prop { String }
|
|
2945
|
+
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2946
2946
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2947
2947
|
*/
|
|
2948
2948
|
|
|
@@ -3316,7 +3316,7 @@ class AuroDropdown extends r$4$2 {
|
|
|
3316
3316
|
/**
|
|
3317
3317
|
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3318
3318
|
*/
|
|
3319
|
-
|
|
3319
|
+
fullscreenBreakpoint: {
|
|
3320
3320
|
type: String,
|
|
3321
3321
|
reflect: true
|
|
3322
3322
|
},
|
|
@@ -3405,8 +3405,8 @@ class AuroDropdown extends r$4$2 {
|
|
|
3405
3405
|
updated(changedProperties) {
|
|
3406
3406
|
this.floater.handleUpdate(changedProperties);
|
|
3407
3407
|
|
|
3408
|
-
if (changedProperties.has('
|
|
3409
|
-
this.bibContent.mobileFullscreenBreakpoint = this.
|
|
3408
|
+
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3409
|
+
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3410
3410
|
}
|
|
3411
3411
|
|
|
3412
3412
|
// when trigger's content is changed without any attribute or node change,
|
|
@@ -8843,6 +8843,7 @@ var styleCss$3 = i$g`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
8843
8843
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
8844
8844
|
/**
|
|
8845
8845
|
* @slot - Default slot for the menu content.
|
|
8846
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
8846
8847
|
* @slot label - Defines the content of the label.
|
|
8847
8848
|
* @slot helpText - Defines the content of the helpText.
|
|
8848
8849
|
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
@@ -8871,7 +8872,7 @@ class AuroCombobox extends r$b {
|
|
|
8871
8872
|
this.optionActive = null;
|
|
8872
8873
|
this.msgSelectionMissing = 'Please select an option.';
|
|
8873
8874
|
|
|
8874
|
-
this.
|
|
8875
|
+
this.fullscreenBreakpoint = 'sm';
|
|
8875
8876
|
|
|
8876
8877
|
this.validation = new AuroFormValidation$1();
|
|
8877
8878
|
|
|
@@ -9024,7 +9025,7 @@ class AuroCombobox extends r$b {
|
|
|
9024
9025
|
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
9025
9026
|
* @default sm
|
|
9026
9027
|
*/
|
|
9027
|
-
|
|
9028
|
+
fullscreenBreakpoint: {
|
|
9028
9029
|
type: String,
|
|
9029
9030
|
reflect: true
|
|
9030
9031
|
},
|
|
@@ -9205,7 +9206,7 @@ class AuroCombobox extends r$b {
|
|
|
9205
9206
|
this.hideBib = this.hideBib.bind(this);
|
|
9206
9207
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
9207
9208
|
|
|
9208
|
-
const bibHeader = this.querySelector('[slot="bib.
|
|
9209
|
+
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
9209
9210
|
if (bibHeader) {
|
|
9210
9211
|
bibHeader.setAttribute('slot', 'header');
|
|
9211
9212
|
this.bibtemplate.append(bibHeader);
|
|
@@ -9693,7 +9694,7 @@ class AuroCombobox extends r$b {
|
|
|
9693
9694
|
rounded
|
|
9694
9695
|
matchWidth
|
|
9695
9696
|
nocheckmark
|
|
9696
|
-
|
|
9697
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
9697
9698
|
?disabled="${this.disabled}"
|
|
9698
9699
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
9699
9700
|
disableEventShow>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @slot - Default slot for the menu content.
|
|
3
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
3
4
|
* @slot label - Defines the content of the label.
|
|
4
5
|
* @slot helpText - Defines the content of the helpText.
|
|
5
6
|
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
@@ -122,7 +123,7 @@ export class AuroCombobox extends LitElement {
|
|
|
122
123
|
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
123
124
|
* @default sm
|
|
124
125
|
*/
|
|
125
|
-
|
|
126
|
+
fullscreenBreakpoint: {
|
|
126
127
|
type: StringConstructor;
|
|
127
128
|
reflect: boolean;
|
|
128
129
|
};
|
|
@@ -156,7 +157,7 @@ export class AuroCombobox extends LitElement {
|
|
|
156
157
|
availableOptions: any[];
|
|
157
158
|
optionActive: any;
|
|
158
159
|
msgSelectionMissing: string;
|
|
159
|
-
|
|
160
|
+
fullscreenBreakpoint: string;
|
|
160
161
|
validation: AuroFormValidation;
|
|
161
162
|
runtimeUtils: any;
|
|
162
163
|
isHiddenWhileLoading: boolean;
|
|
@@ -2919,7 +2919,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2919
2919
|
];
|
|
2920
2920
|
|
|
2921
2921
|
/**
|
|
2922
|
-
* @prop { String }
|
|
2922
|
+
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2923
2923
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2924
2924
|
*/
|
|
2925
2925
|
|
|
@@ -3293,7 +3293,7 @@ class AuroDropdown extends r$4$2 {
|
|
|
3293
3293
|
/**
|
|
3294
3294
|
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3295
3295
|
*/
|
|
3296
|
-
|
|
3296
|
+
fullscreenBreakpoint: {
|
|
3297
3297
|
type: String,
|
|
3298
3298
|
reflect: true
|
|
3299
3299
|
},
|
|
@@ -3382,8 +3382,8 @@ class AuroDropdown extends r$4$2 {
|
|
|
3382
3382
|
updated(changedProperties) {
|
|
3383
3383
|
this.floater.handleUpdate(changedProperties);
|
|
3384
3384
|
|
|
3385
|
-
if (changedProperties.has('
|
|
3386
|
-
this.bibContent.mobileFullscreenBreakpoint = this.
|
|
3385
|
+
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3386
|
+
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3387
3387
|
}
|
|
3388
3388
|
|
|
3389
3389
|
// when trigger's content is changed without any attribute or node change,
|
|
@@ -8820,6 +8820,7 @@ var styleCss = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
8820
8820
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
8821
8821
|
/**
|
|
8822
8822
|
* @slot - Default slot for the menu content.
|
|
8823
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
8823
8824
|
* @slot label - Defines the content of the label.
|
|
8824
8825
|
* @slot helpText - Defines the content of the helpText.
|
|
8825
8826
|
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
@@ -8848,7 +8849,7 @@ class AuroCombobox extends r$b {
|
|
|
8848
8849
|
this.optionActive = null;
|
|
8849
8850
|
this.msgSelectionMissing = 'Please select an option.';
|
|
8850
8851
|
|
|
8851
|
-
this.
|
|
8852
|
+
this.fullscreenBreakpoint = 'sm';
|
|
8852
8853
|
|
|
8853
8854
|
this.validation = new AuroFormValidation$1();
|
|
8854
8855
|
|
|
@@ -9001,7 +9002,7 @@ class AuroCombobox extends r$b {
|
|
|
9001
9002
|
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
9002
9003
|
* @default sm
|
|
9003
9004
|
*/
|
|
9004
|
-
|
|
9005
|
+
fullscreenBreakpoint: {
|
|
9005
9006
|
type: String,
|
|
9006
9007
|
reflect: true
|
|
9007
9008
|
},
|
|
@@ -9182,7 +9183,7 @@ class AuroCombobox extends r$b {
|
|
|
9182
9183
|
this.hideBib = this.hideBib.bind(this);
|
|
9183
9184
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
9184
9185
|
|
|
9185
|
-
const bibHeader = this.querySelector('[slot="bib.
|
|
9186
|
+
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
9186
9187
|
if (bibHeader) {
|
|
9187
9188
|
bibHeader.setAttribute('slot', 'header');
|
|
9188
9189
|
this.bibtemplate.append(bibHeader);
|
|
@@ -9670,7 +9671,7 @@ class AuroCombobox extends r$b {
|
|
|
9670
9671
|
rounded
|
|
9671
9672
|
matchWidth
|
|
9672
9673
|
nocheckmark
|
|
9673
|
-
|
|
9674
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
9674
9675
|
?disabled="${this.disabled}"
|
|
9675
9676
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
9676
9677
|
disableEventShow>
|
|
@@ -2919,7 +2919,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2919
2919
|
];
|
|
2920
2920
|
|
|
2921
2921
|
/**
|
|
2922
|
-
* @prop { String }
|
|
2922
|
+
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2923
2923
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2924
2924
|
*/
|
|
2925
2925
|
|
|
@@ -3293,7 +3293,7 @@ class AuroDropdown extends r$4$2 {
|
|
|
3293
3293
|
/**
|
|
3294
3294
|
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3295
3295
|
*/
|
|
3296
|
-
|
|
3296
|
+
fullscreenBreakpoint: {
|
|
3297
3297
|
type: String,
|
|
3298
3298
|
reflect: true
|
|
3299
3299
|
},
|
|
@@ -3382,8 +3382,8 @@ class AuroDropdown extends r$4$2 {
|
|
|
3382
3382
|
updated(changedProperties) {
|
|
3383
3383
|
this.floater.handleUpdate(changedProperties);
|
|
3384
3384
|
|
|
3385
|
-
if (changedProperties.has('
|
|
3386
|
-
this.bibContent.mobileFullscreenBreakpoint = this.
|
|
3385
|
+
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3386
|
+
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3387
3387
|
}
|
|
3388
3388
|
|
|
3389
3389
|
// when trigger's content is changed without any attribute or node change,
|
|
@@ -8820,6 +8820,7 @@ var styleCss = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{d
|
|
|
8820
8820
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
8821
8821
|
/**
|
|
8822
8822
|
* @slot - Default slot for the menu content.
|
|
8823
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
8823
8824
|
* @slot label - Defines the content of the label.
|
|
8824
8825
|
* @slot helpText - Defines the content of the helpText.
|
|
8825
8826
|
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
@@ -8848,7 +8849,7 @@ class AuroCombobox extends r$b {
|
|
|
8848
8849
|
this.optionActive = null;
|
|
8849
8850
|
this.msgSelectionMissing = 'Please select an option.';
|
|
8850
8851
|
|
|
8851
|
-
this.
|
|
8852
|
+
this.fullscreenBreakpoint = 'sm';
|
|
8852
8853
|
|
|
8853
8854
|
this.validation = new AuroFormValidation$1();
|
|
8854
8855
|
|
|
@@ -9001,7 +9002,7 @@ class AuroCombobox extends r$b {
|
|
|
9001
9002
|
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
9002
9003
|
* @default sm
|
|
9003
9004
|
*/
|
|
9004
|
-
|
|
9005
|
+
fullscreenBreakpoint: {
|
|
9005
9006
|
type: String,
|
|
9006
9007
|
reflect: true
|
|
9007
9008
|
},
|
|
@@ -9182,7 +9183,7 @@ class AuroCombobox extends r$b {
|
|
|
9182
9183
|
this.hideBib = this.hideBib.bind(this);
|
|
9183
9184
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
9184
9185
|
|
|
9185
|
-
const bibHeader = this.querySelector('[slot="bib.
|
|
9186
|
+
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
9186
9187
|
if (bibHeader) {
|
|
9187
9188
|
bibHeader.setAttribute('slot', 'header');
|
|
9188
9189
|
this.bibtemplate.append(bibHeader);
|
|
@@ -9670,7 +9671,7 @@ class AuroCombobox extends r$b {
|
|
|
9670
9671
|
rounded
|
|
9671
9672
|
matchWidth
|
|
9672
9673
|
nocheckmark
|
|
9673
|
-
|
|
9674
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
9674
9675
|
?disabled="${this.disabled}"
|
|
9675
9676
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
9676
9677
|
disableEventShow>
|
|
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
100
100
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
101
101
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
102
102
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.
|
|
103
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.44/dist/auro-counter__bundled.js" type="module"></script>
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
106
106
|
## auro-counter use cases
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
|
|
2
2
|
import '../src/registered.js';
|
|
3
|
+
import { dropdownCounterExample } from "../apiExamples/dropdown-mobile-properties.js";
|
|
3
4
|
|
|
4
5
|
export function initExamples(initialCount = 0) {
|
|
5
6
|
try {
|
|
6
7
|
// javascript example function calls to be added here upon creation to test examples
|
|
7
|
-
|
|
8
|
+
dropdownCounterExample();
|
|
8
9
|
} catch (err) {
|
|
9
10
|
if (initialCount <= 20) {
|
|
10
11
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
@@ -38,14 +38,16 @@
|
|
|
38
38
|
|
|
39
39
|
## Properties
|
|
40
40
|
|
|
41
|
-
| Property
|
|
42
|
-
|
|
43
|
-
| [
|
|
44
|
-
| [
|
|
45
|
-
| [
|
|
46
|
-
| [
|
|
47
|
-
| [
|
|
48
|
-
| [
|
|
41
|
+
| Property | Attribute | Type | Default | Description |
|
|
42
|
+
|------------------------|------------------------|-----------|-------------|--------------------------------------------------|
|
|
43
|
+
| [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. |
|
|
44
|
+
| [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
|
|
45
|
+
| [largeMobileHeadline](#largeMobileHeadline) | `largeMobileHeadline` | `boolean` | | If declared, make mobileHeadline in HeadingDisplay.<br />Otherwise, Heading 600 |
|
|
46
|
+
| [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
|
|
47
|
+
| [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
|
|
48
|
+
| [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
|
|
49
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
50
|
+
| [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
49
51
|
|
|
50
52
|
## Methods
|
|
51
53
|
|
|
@@ -61,12 +63,14 @@
|
|
|
61
63
|
|
|
62
64
|
## Slots
|
|
63
65
|
|
|
64
|
-
| Name
|
|
65
|
-
|
|
66
|
-
| [Default](#Default)
|
|
67
|
-
| [HelpText](#HelpText)
|
|
68
|
-
| [Label](#Label)
|
|
69
|
-
| [ValueText](#ValueText)
|
|
66
|
+
| Name | Description |
|
|
67
|
+
|---------------------------|--------------------------------------------------|
|
|
68
|
+
| [Default](#Default) | Slot for counter elements. |
|
|
69
|
+
| [HelpText](#HelpText) | Dropdown help text content. Only used when `isDropdown` is true. |
|
|
70
|
+
| [Label](#Label) | Dropdown label content. Only used when `isDropdown` is true. |
|
|
71
|
+
| [ValueText](#ValueText) | Dropdown value text display. Only used when `isDropdown` is true. |
|
|
72
|
+
| `bib.fullscreen.footer` | Defines the footer to display at the bottom of fullscreen bib |
|
|
73
|
+
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
70
74
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
71
75
|
|
|
72
76
|
## API Examples
|
|
@@ -143,4 +147,74 @@ You can also individually set the max or min value for each counter in a group.
|
|
|
143
147
|
</auro-counter-group>
|
|
144
148
|
```
|
|
145
149
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
150
|
+
</auro-accordion>
|
|
151
|
+
|
|
152
|
+
### Dropdown with fullscreen bib
|
|
153
|
+
|
|
154
|
+
You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
|
|
155
|
+
|
|
156
|
+
The default value of `fullscreenBreakpoint` is `sm`.
|
|
157
|
+
|
|
158
|
+
Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens)
|
|
159
|
+
|
|
160
|
+
To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMMENDED**.
|
|
161
|
+
You can also set `bib.fullscreen.footer` to add any additional options on fullscreen view.
|
|
162
|
+
|
|
163
|
+
<div class="exampleWrapper">
|
|
164
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-mobile-properties.html) -->
|
|
165
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
166
|
+
<div style="max-width: 350px;">
|
|
167
|
+
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
168
|
+
<span slot="bib.fullscreen.headline">Counter Bib Header</span>
|
|
169
|
+
<div slot="helpText">This is help text</div>
|
|
170
|
+
<auro-counter>
|
|
171
|
+
Adults
|
|
172
|
+
<span slot="description">18 years or older</span>
|
|
173
|
+
</auro-counter>
|
|
174
|
+
<auro-counter>
|
|
175
|
+
Children
|
|
176
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
177
|
+
</auro-counter>
|
|
178
|
+
<auro-counter>
|
|
179
|
+
Lap Infants
|
|
180
|
+
<span slot="description">Under 2 years</span>
|
|
181
|
+
</auro-counter>
|
|
182
|
+
<div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
|
|
183
|
+
<auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
|
|
184
|
+
<auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
|
|
185
|
+
</div>
|
|
186
|
+
</auro-counter-group>
|
|
187
|
+
</div>
|
|
188
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
189
|
+
</div>
|
|
190
|
+
<auro-accordion alignRight>
|
|
191
|
+
<span slot="trigger">See code</span>
|
|
192
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-mobile-properties.html) -->
|
|
193
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
194
|
+
|
|
195
|
+
```html
|
|
196
|
+
<div style="max-width: 350px;">
|
|
197
|
+
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
198
|
+
<span slot="bib.fullscreen.headline">Counter Bib Header</span>
|
|
199
|
+
<div slot="helpText">This is help text</div>
|
|
200
|
+
<auro-counter>
|
|
201
|
+
Adults
|
|
202
|
+
<span slot="description">18 years or older</span>
|
|
203
|
+
</auro-counter>
|
|
204
|
+
<auro-counter>
|
|
205
|
+
Children
|
|
206
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
207
|
+
</auro-counter>
|
|
208
|
+
<auro-counter>
|
|
209
|
+
Lap Infants
|
|
210
|
+
<span slot="description">Under 2 years</span>
|
|
211
|
+
</auro-counter>
|
|
212
|
+
<div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
|
|
213
|
+
<auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
|
|
214
|
+
<auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
|
|
215
|
+
</div>
|
|
216
|
+
</auro-counter-group>
|
|
217
|
+
</div>
|
|
218
|
+
```
|
|
219
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
146
220
|
</auro-accordion>
|