@aurodesignsystem/auro-formkit 2.0.0-beta.52 → 2.0.0-beta.53
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 +7 -0
- package/README.md +27 -6
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +4 -3
- package/components/bibtemplate/dist/registered.js +4 -3
- package/components/checkbox/README.md +56 -93
- package/components/checkbox/demo/index.md +0 -45
- package/components/checkbox/demo/readme.html +49 -0
- package/components/checkbox/demo/readme.md +142 -0
- package/components/combobox/README.md +57 -102
- package/components/combobox/demo/api.min.js +9 -7
- package/components/combobox/demo/index.md +0 -53
- package/components/combobox/demo/index.min.js +9 -7
- package/components/combobox/demo/readme.html +49 -0
- package/components/combobox/demo/readme.md +152 -0
- package/components/combobox/dist/index.js +9 -7
- package/components/combobox/dist/registered.js +9 -7
- package/components/counter/README.md +58 -100
- package/components/counter/demo/api.js +3 -0
- package/components/counter/demo/api.md +254 -12
- package/components/counter/demo/api.min.js +26 -11
- package/components/counter/demo/index.html +0 -1
- package/components/counter/demo/index.js +1 -2
- package/components/counter/demo/index.md +71 -221
- package/components/counter/demo/index.min.js +15 -11
- package/components/counter/demo/readme.html +49 -0
- package/components/counter/demo/readme.md +146 -0
- package/components/counter/dist/auro-counter-group.d.ts +6 -6
- package/components/counter/dist/auro-counter.d.ts +1 -1
- package/components/counter/dist/index.js +15 -11
- package/components/counter/dist/registered.js +15 -11
- package/components/datepicker/README.md +57 -95
- package/components/datepicker/demo/api.min.js +9 -7
- package/components/datepicker/demo/index.md +0 -39
- package/components/datepicker/demo/index.min.js +9 -7
- package/components/datepicker/demo/readme.html +49 -0
- package/components/datepicker/demo/readme.md +140 -0
- package/components/datepicker/dist/index.js +9 -7
- package/components/datepicker/dist/registered.js +9 -7
- package/components/dropdown/README.md +56 -92
- package/components/dropdown/demo/index.md +1 -60
- package/components/dropdown/demo/readme.html +49 -0
- package/components/dropdown/demo/readme.md +144 -0
- package/components/form/README.md +56 -91
- package/components/form/demo/readme.html +49 -0
- package/components/form/demo/readme.md +145 -0
- package/components/input/README.md +56 -87
- package/components/input/demo/api.min.js +5 -4
- package/components/input/demo/index.md +0 -31
- package/components/input/demo/index.min.js +5 -4
- package/components/input/demo/readme.html +49 -0
- package/components/input/demo/readme.md +135 -0
- package/components/input/dist/index.js +5 -4
- package/components/input/dist/registered.js +5 -4
- package/components/menu/README.md +56 -93
- package/components/menu/demo/index.md +1 -44
- package/components/menu/demo/readme.html +49 -0
- package/components/menu/demo/readme.md +145 -0
- package/components/radio/README.md +56 -87
- package/components/radio/demo/index.md +0 -45
- package/components/radio/demo/readme.html +49 -0
- package/components/radio/demo/readme.md +137 -0
- package/components/select/README.md +57 -100
- package/components/select/demo/api.min.js +4 -3
- package/components/select/demo/index.md +0 -53
- package/components/select/demo/index.min.js +4 -3
- package/components/select/demo/readme.html +49 -0
- package/components/select/demo/readme.md +143 -0
- package/components/select/dist/index.js +4 -3
- package/components/select/dist/registered.js +4 -3
- package/package.json +3 -2
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
The README.md file is a compiled document. No edits should be made directly to this file.
|
|
3
|
+
|
|
4
|
+
README.md is created by running `npm run build:docs`.
|
|
5
|
+
|
|
6
|
+
This file is generated based on a template fetched from
|
|
7
|
+
`../../docs/templates/componentReadmeTemplate.md`
|
|
8
|
+
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
|
+
|
|
10
|
+
The following sections are editable by making changes to the following files:
|
|
11
|
+
|
|
12
|
+
| SECTION | DESCRIPTION | FILE LOCATION |
|
|
13
|
+
|------------------------|---------------------------------------------------|-------------------------------------|
|
|
14
|
+
| Description | Description of the component | `./docs/partials/description.md` |
|
|
15
|
+
| Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
|
|
16
|
+
| Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
|
|
17
|
+
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
|
|
18
|
+
-->
|
|
19
|
+
|
|
20
|
+
# Combobox
|
|
21
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
22
|
+
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
23
|
+
`<auro-combobox>` is the combination of [dropdown](http://auro.alaskaair.com/components/auro/dropdown), [input](http://auro.alaskaair.com/components/auro/input), and [menu](http://auro.alaskaair.com/components/auro/menu) and allows users to filter search results from a predefined list as they type. When the user starts typing in the text input, a dropdown of a menu shows up to display options that match the user’s search.
|
|
24
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
25
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
26
|
+
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
27
|
+
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
28
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
29
|
+
|
|
30
|
+
## Getting Started
|
|
31
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
32
|
+
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
33
|
+
|
|
34
|
+
#### NPM Installation
|
|
35
|
+
|
|
36
|
+
```shell
|
|
37
|
+
$ npm i @aurodesignsystem/auro-formkit
|
|
38
|
+
```
|
|
39
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
40
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
41
|
+
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
42
|
+
|
|
43
|
+
### Import Options
|
|
44
|
+
|
|
45
|
+
#### Automatic Registration
|
|
46
|
+
|
|
47
|
+
For automatic registration, simply import the component:
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
// Registers <auro-combobox> automatically
|
|
51
|
+
import '@aurodesignsystem/auro-formkit/auro-combobox';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### Custom Registration
|
|
55
|
+
|
|
56
|
+
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroCombobox.register('custom-combobox')` method on the component class and pass in a unique name.
|
|
57
|
+
|
|
58
|
+
```javascript
|
|
59
|
+
// Import the class only
|
|
60
|
+
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
61
|
+
|
|
62
|
+
// Register with a custom name if desired
|
|
63
|
+
AuroCombobox.register('custom-combobox');
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
#### TypeScript Module Resolution
|
|
67
|
+
|
|
68
|
+
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"compilerOptions": {
|
|
73
|
+
"moduleResolution": "bundler"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
This configuration enables proper module resolution for the component's TypeScript files.
|
|
79
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
80
|
+
**Reference component in HTML**
|
|
81
|
+
|
|
82
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
83
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<auro-combobox>
|
|
87
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
88
|
+
<span slot="label">Name</span>
|
|
89
|
+
<auro-menu>
|
|
90
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
91
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
92
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
93
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
94
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
95
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
96
|
+
</auro-menu>
|
|
97
|
+
</auro-combobox>
|
|
98
|
+
```
|
|
99
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
100
|
+
|
|
101
|
+
### Design Token CSS Custom Property dependency
|
|
102
|
+
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
|
|
104
|
+
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
105
|
+
|
|
106
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
107
|
+
|
|
108
|
+
## Install from CDN
|
|
109
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
110
|
+
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
111
|
+
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.0-beta.52/auro-combobox/+esm"></script>
|
|
115
|
+
```
|
|
116
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
|
+
|
|
118
|
+
## UI development browser support
|
|
119
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
|
|
120
|
+
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
121
|
+
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
123
|
+
|
|
124
|
+
## auro-combobox use cases
|
|
125
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
126
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
127
|
+
The `<auro-combobox>` element should be used in situations where users may:
|
|
128
|
+
|
|
129
|
+
* Search
|
|
130
|
+
* Airports: user looks for a specific airport by searching for the city name or airport code
|
|
131
|
+
* Site wide: user searches for a topic site wide and combobox makes suggestions on searchable results
|
|
132
|
+
* Filter
|
|
133
|
+
* Options: user chooses filters for their search by using combobox
|
|
134
|
+
* Select
|
|
135
|
+
* Quantity: user types a quantity to select an option within a range (for example, the user may be limited to 2-34)
|
|
136
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
137
|
+
|
|
138
|
+
## Formkit development
|
|
139
|
+
|
|
140
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
141
|
+
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
142
|
+
|
|
143
|
+
### Filtering
|
|
144
|
+
|
|
145
|
+
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
146
|
+
|
|
147
|
+
To only develop a single component, use the `--filter` flag:
|
|
148
|
+
|
|
149
|
+
```shell
|
|
150
|
+
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
151
|
+
```
|
|
152
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -3923,7 +3923,8 @@ const stringsES = {
|
|
|
3923
3923
|
'dateYYMM': 'Ingrese una fecha completa en el formato AA/MM',
|
|
3924
3924
|
'dateYY': 'Ingrese una fecha completa en el formato AA',
|
|
3925
3925
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
3926
|
-
'dateDD': 'Ingrese una fecha completa en el formato DD'
|
|
3926
|
+
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
3927
|
+
'clearInput': 'Borrar campo de entrada',
|
|
3927
3928
|
};
|
|
3928
3929
|
|
|
3929
3930
|
const stringsEN = {
|
|
@@ -3946,7 +3947,8 @@ const stringsEN = {
|
|
|
3946
3947
|
'dateYYMM': 'Please enter a complete date in the format YY/MM',
|
|
3947
3948
|
'dateYY': 'Please enter a complete date in the format YY',
|
|
3948
3949
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
3949
|
-
'dateDD': 'Please enter a complete date in the format DD'
|
|
3950
|
+
'dateDD': 'Please enter a complete date in the format DD',
|
|
3951
|
+
'clearInput': 'Clear input field',
|
|
3950
3952
|
};
|
|
3951
3953
|
|
|
3952
3954
|
/**
|
|
@@ -10372,8 +10374,7 @@ class AuroInput extends BaseInput {
|
|
|
10372
10374
|
<${this.buttonTag}
|
|
10373
10375
|
variant="flat"
|
|
10374
10376
|
class="notificationBtn clearBtn"
|
|
10375
|
-
aria-
|
|
10376
|
-
tabindex="-1"
|
|
10377
|
+
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
10377
10378
|
@click="${this.handleClickClear}">
|
|
10378
10379
|
<${this.iconTag}
|
|
10379
10380
|
customColor
|
|
@@ -10938,7 +10939,7 @@ class AuroIcon extends BaseIcon {
|
|
|
10938
10939
|
|
|
10939
10940
|
var iconVersion = '6.1.2';
|
|
10940
10941
|
|
|
10941
|
-
var styleCss$3 = i$5$1`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
10942
|
+
var styleCss$3 = i$5$1`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
10942
10943
|
|
|
10943
10944
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10944
10945
|
// See LICENSE in the project root for license information.
|
|
@@ -10947,6 +10948,7 @@ var styleCss$3 = i$5$1`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-he
|
|
|
10947
10948
|
/**
|
|
10948
10949
|
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
10949
10950
|
*
|
|
10951
|
+
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
10950
10952
|
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
10951
10953
|
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
10952
10954
|
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
@@ -11079,7 +11081,7 @@ class AuroHeader extends r$4 {
|
|
|
11079
11081
|
}
|
|
11080
11082
|
}
|
|
11081
11083
|
|
|
11082
|
-
var headerVersion = '
|
|
11084
|
+
var headerVersion = '4.0.0';
|
|
11083
11085
|
|
|
11084
11086
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11085
11087
|
// See LICENSE in the project root for license information.
|
|
@@ -11178,7 +11180,7 @@ class AuroBibtemplate extends r$4 {
|
|
|
11178
11180
|
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11179
11181
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
11180
11182
|
</button>
|
|
11181
|
-
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header">
|
|
11183
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
11182
11184
|
<slot name="header"></slot>
|
|
11183
11185
|
</${this.headerTag}>
|
|
11184
11186
|
<span id="subheader">
|
|
@@ -3923,7 +3923,8 @@ const stringsES = {
|
|
|
3923
3923
|
'dateYYMM': 'Ingrese una fecha completa en el formato AA/MM',
|
|
3924
3924
|
'dateYY': 'Ingrese una fecha completa en el formato AA',
|
|
3925
3925
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
3926
|
-
'dateDD': 'Ingrese una fecha completa en el formato DD'
|
|
3926
|
+
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
3927
|
+
'clearInput': 'Borrar campo de entrada',
|
|
3927
3928
|
};
|
|
3928
3929
|
|
|
3929
3930
|
const stringsEN = {
|
|
@@ -3946,7 +3947,8 @@ const stringsEN = {
|
|
|
3946
3947
|
'dateYYMM': 'Please enter a complete date in the format YY/MM',
|
|
3947
3948
|
'dateYY': 'Please enter a complete date in the format YY',
|
|
3948
3949
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
3949
|
-
'dateDD': 'Please enter a complete date in the format DD'
|
|
3950
|
+
'dateDD': 'Please enter a complete date in the format DD',
|
|
3951
|
+
'clearInput': 'Clear input field',
|
|
3950
3952
|
};
|
|
3951
3953
|
|
|
3952
3954
|
/**
|
|
@@ -10372,8 +10374,7 @@ class AuroInput extends BaseInput {
|
|
|
10372
10374
|
<${this.buttonTag}
|
|
10373
10375
|
variant="flat"
|
|
10374
10376
|
class="notificationBtn clearBtn"
|
|
10375
|
-
aria-
|
|
10376
|
-
tabindex="-1"
|
|
10377
|
+
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
10377
10378
|
@click="${this.handleClickClear}">
|
|
10378
10379
|
<${this.iconTag}
|
|
10379
10380
|
customColor
|
|
@@ -10938,7 +10939,7 @@ class AuroIcon extends BaseIcon {
|
|
|
10938
10939
|
|
|
10939
10940
|
var iconVersion = '6.1.2';
|
|
10940
10941
|
|
|
10941
|
-
var styleCss$3 = i$5$1`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
10942
|
+
var styleCss$3 = i$5$1`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
10942
10943
|
|
|
10943
10944
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10944
10945
|
// See LICENSE in the project root for license information.
|
|
@@ -10947,6 +10948,7 @@ var styleCss$3 = i$5$1`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-he
|
|
|
10947
10948
|
/**
|
|
10948
10949
|
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
10949
10950
|
*
|
|
10951
|
+
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
10950
10952
|
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
10951
10953
|
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
10952
10954
|
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
@@ -11079,7 +11081,7 @@ class AuroHeader extends r$4 {
|
|
|
11079
11081
|
}
|
|
11080
11082
|
}
|
|
11081
11083
|
|
|
11082
|
-
var headerVersion = '
|
|
11084
|
+
var headerVersion = '4.0.0';
|
|
11083
11085
|
|
|
11084
11086
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11085
11087
|
// See LICENSE in the project root for license information.
|
|
@@ -11178,7 +11180,7 @@ class AuroBibtemplate extends r$4 {
|
|
|
11178
11180
|
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11179
11181
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
11180
11182
|
</button>
|
|
11181
|
-
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header">
|
|
11183
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
11182
11184
|
<slot name="header"></slot>
|
|
11183
11185
|
</${this.headerTag}>
|
|
11184
11186
|
<span id="subheader">
|
|
@@ -18,7 +18,6 @@ The following sections are editable by making changes to the following files:
|
|
|
18
18
|
-->
|
|
19
19
|
|
|
20
20
|
# Counter
|
|
21
|
-
|
|
22
21
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
22
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
23
|
The `auro-counter` component is a ui element that enables a way to increment or decrement a single digit value. Common use case is inside the `auro-counter-group` to facilitate a collection of counters to add passenger types to a flight.
|
|
@@ -28,42 +27,55 @@ The `auro-counter` component is a ui element that enables a way to increment or
|
|
|
28
27
|
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
29
28
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
30
29
|
|
|
31
|
-
##
|
|
32
|
-
|
|
33
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
|
|
34
|
-
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
35
|
-
|
|
36
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
37
|
-
|
|
38
|
-
## Install
|
|
39
|
-
|
|
30
|
+
## Getting Started
|
|
40
31
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
41
32
|
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
42
33
|
|
|
34
|
+
#### NPM Installation
|
|
35
|
+
|
|
43
36
|
```shell
|
|
44
37
|
$ npm i @aurodesignsystem/auro-formkit
|
|
45
38
|
```
|
|
46
39
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
40
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
41
|
+
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
47
42
|
|
|
48
|
-
###
|
|
43
|
+
### Import Options
|
|
44
|
+
|
|
45
|
+
#### Automatic Registration
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
47
|
+
For automatic registration, simply import the component:
|
|
52
48
|
|
|
53
|
-
|
|
49
|
+
```javascript
|
|
50
|
+
// Registers <auro-counter> automatically
|
|
51
|
+
import '@aurodesignsystem/auro-formkit/auro-counter';
|
|
52
|
+
```
|
|
54
53
|
|
|
55
|
-
|
|
54
|
+
#### Custom Registration
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
Defining the component dependency within each component that is using the `<auro-counter>` component.
|
|
56
|
+
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroCounter.register('custom-counter')` method on the component class and pass in a unique name.
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
```javascript
|
|
59
|
+
// Import the class only
|
|
60
|
+
import { AuroCounter } from '@aurodesignsystem/auro-formkit/auro-counter/class';
|
|
61
|
+
|
|
62
|
+
// Register with a custom name if desired
|
|
63
|
+
AuroCounter.register('custom-counter');
|
|
64
|
+
```
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
#### TypeScript Module Resolution
|
|
67
|
+
|
|
68
|
+
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"compilerOptions": {
|
|
73
|
+
"moduleResolution": "bundler"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
66
76
|
```
|
|
77
|
+
|
|
78
|
+
This configuration enables proper module resolution for the component's TypeScript files.
|
|
67
79
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
68
80
|
**Reference component in HTML**
|
|
69
81
|
|
|
@@ -85,104 +97,50 @@ import "@aurodesignsystem/auro-formkit/auro-counter";
|
|
|
85
97
|
```
|
|
86
98
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
87
99
|
|
|
88
|
-
|
|
100
|
+
### Design Token CSS Custom Property dependency
|
|
89
101
|
|
|
90
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/
|
|
91
|
-
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
|
|
103
|
+
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
92
104
|
|
|
93
|
-
|
|
105
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
|
+
|
|
107
|
+
## Install from CDN
|
|
108
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
109
|
+
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
110
|
+
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
94
111
|
|
|
112
|
+
```html
|
|
113
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.0-beta.52/auro-counter/+esm"></script>
|
|
114
|
+
```
|
|
95
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
96
116
|
|
|
97
|
-
|
|
117
|
+
## UI development browser support
|
|
118
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
|
|
119
|
+
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
98
120
|
|
|
99
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentBundleUseModBrowsers.md) -->
|
|
100
|
-
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
101
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
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.51/dist/auro-counter__bundled.js" type="module"></script>
|
|
104
121
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
122
|
|
|
106
123
|
## auro-counter use cases
|
|
107
|
-
|
|
108
124
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
109
125
|
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
110
126
|
The `auro-counter` element should be used in situations where users may:
|
|
111
127
|
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* 3
|
|
115
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
|
-
|
|
117
|
-
## API Code Examples
|
|
118
|
-
|
|
119
|
-
### Default auro-counter
|
|
120
|
-
|
|
121
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
122
|
-
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
123
|
-
|
|
124
|
-
```html
|
|
125
|
-
<auro-counter-group>
|
|
126
|
-
<auro-counter>
|
|
127
|
-
Short label
|
|
128
|
-
</auro-counter>
|
|
129
|
-
<auro-counter>
|
|
130
|
-
Another short label
|
|
131
|
-
</auro-counter>
|
|
132
|
-
<auro-counter>
|
|
133
|
-
This is an example of the wrapping behavior for a long label
|
|
134
|
-
</auro-counter>
|
|
135
|
-
</auro-counter-group>
|
|
136
|
-
```
|
|
128
|
+
* Need to input a numeric value within a defined range
|
|
129
|
+
* Need a user-friendly interface for quantity selection
|
|
137
130
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
138
131
|
|
|
139
|
-
##
|
|
140
|
-
|
|
141
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/developmentDescription.md) -->
|
|
142
|
-
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
|
|
132
|
+
## Formkit development
|
|
143
133
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
134
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
135
|
+
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
147
136
|
|
|
148
|
-
###
|
|
137
|
+
### Filtering
|
|
149
138
|
|
|
150
|
-
|
|
151
|
-
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
|
|
139
|
+
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
152
140
|
|
|
153
|
-
|
|
154
|
-
$ npm run dev
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
Open [localhost:8000](http://localhost:8000/)
|
|
158
|
-
|
|
159
|
-
If running separate sessions is preferred, please run the following commands in individual terminal shells.
|
|
141
|
+
To only develop a single component, use the `--filter` flag:
|
|
160
142
|
|
|
161
143
|
```shell
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
$ npm run serve
|
|
144
|
+
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
165
145
|
```
|
|
166
|
-
|
|
167
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
168
|
-
|
|
169
|
-
### API generation
|
|
170
|
-
|
|
171
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/api.md) -->
|
|
172
|
-
The custom element API file is generated in the build and committed back to the repo with a version change. If the API doc has changed without a version change, author's are to run `npm run build:api` to generate the doc and commit to version control.
|
|
173
|
-
|
|
174
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
175
|
-
|
|
176
|
-
### Testing
|
|
177
|
-
|
|
178
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/testing.md) -->
|
|
179
|
-
Automated tests are required for every Auro component. See `.\test\auro-counter.test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
180
|
-
|
|
181
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
182
|
-
|
|
183
|
-
### Bundled assets
|
|
184
|
-
|
|
185
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/bundles.md) -->
|
|
186
|
-
Bundled assets are only generated in the remote and not merged back to this repo. To review and/or test a bundled asset locally, run `$ npm run bundler` to generate assets.
|
|
187
|
-
|
|
188
146
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
|
|
2
2
|
import '../src/registered.js';
|
|
3
3
|
import { dropdownCounterExample } from "../apiExamples/dropdown-mobile-properties.js";
|
|
4
|
+
import { eventCounterExample } from "../apiExamples/events.js";
|
|
4
5
|
|
|
5
6
|
export function initExamples(initialCount = 0) {
|
|
6
7
|
try {
|
|
7
8
|
// javascript example function calls to be added here upon creation to test examples
|
|
8
9
|
dropdownCounterExample();
|
|
10
|
+
eventCounterExample();
|
|
11
|
+
|
|
9
12
|
} catch (err) {
|
|
10
13
|
if (initialCount <= 20) {
|
|
11
14
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|