@aurodesignsystem/auro-formkit 2.0.0-beta.44 → 2.0.0-beta.46
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 +26 -0
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +292 -42
- package/components/checkbox/demo/index.min.js +292 -42
- package/components/checkbox/dist/auro-checkbox-group.d.ts +5 -1
- package/components/checkbox/dist/helptextVersion.d.ts +2 -0
- package/components/checkbox/dist/index.js +292 -42
- package/components/checkbox/dist/registered.js +292 -42
- package/components/combobox/README.md +6 -6
- package/components/combobox/demo/api.md +46 -43
- package/components/combobox/demo/api.min.js +494 -97
- package/components/combobox/demo/index.md +16 -16
- package/components/combobox/demo/index.min.js +494 -97
- package/components/combobox/dist/auro-combobox.d.ts +3 -2
- package/components/combobox/dist/index.js +483 -86
- package/components/combobox/dist/registered.js +483 -86
- 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 +1259 -182
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +1232 -182
- 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 +1232 -182
- package/components/counter/dist/registered.js +1232 -182
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +550 -154
- package/components/datepicker/demo/index.min.js +550 -154
- package/components/datepicker/dist/index.js +550 -154
- package/components/datepicker/dist/registered.js +550 -154
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +23 -23
- package/components/dropdown/demo/api.min.js +239 -41
- package/components/dropdown/demo/index.min.js +239 -41
- package/components/dropdown/dist/auro-dropdown.d.ts +5 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +1 -1
- package/components/dropdown/dist/helptextVersion.d.ts +2 -0
- package/components/dropdown/dist/index.js +239 -41
- package/components/dropdown/dist/registered.js +239 -41
- package/components/form/README.md +1 -1
- package/components/helptext/dist/index.js +2 -0
- package/components/helptext/dist/registered.js +2 -0
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +249 -51
- package/components/input/demo/index.min.js +249 -51
- package/components/input/dist/auro-input.d.ts +4 -0
- package/components/input/dist/helptextVersion.d.ts +2 -0
- package/components/input/dist/index.js +249 -51
- package/components/input/dist/registered.js +249 -51
- package/components/menu/README.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +291 -41
- package/components/radio/demo/index.min.js +291 -41
- package/components/radio/dist/auro-radio-group.d.ts +5 -1
- package/components/radio/dist/helptextVersion.d.ts +2 -0
- package/components/radio/dist/index.js +291 -41
- package/components/radio/dist/registered.js +291 -41
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +257 -59
- package/components/select/demo/index.min.js +257 -59
- package/components/select/dist/index.js +246 -48
- package/components/select/dist/registered.js +246 -48
- package/package.json +1 -1
|
@@ -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.45/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>
|