@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.30 → 0.0.0-pr1451.31
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/README.md +17 -154
- package/components/checkbox/README.md +3 -69
- package/components/checkbox/demo/demo-support.min.js +15 -2
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/readme.md +3 -69
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +3 -73
- package/components/combobox/demo/demo-support.min.js +15 -2
- package/components/combobox/demo/readme.md +3 -73
- package/components/combobox/demo/registered.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/README.md +3 -74
- package/components/counter/demo/auro-counter-group.min.js +2 -2
- package/components/counter/demo/demo-support.min.js +15 -2
- package/components/counter/demo/readme.md +3 -74
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/README.md +3 -66
- package/components/datepicker/demo/auro-datepicker.min.js +3 -3
- package/components/datepicker/demo/demo-support.min.js +15 -2
- package/components/datepicker/demo/readme.md +3 -66
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/README.md +3 -75
- package/components/dropdown/demo/auro-dropdown.min.js +1 -1
- package/components/dropdown/demo/demo-support.min.js +15 -2
- package/components/dropdown/demo/readme.md +3 -75
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/README.md +3 -81
- package/components/form/demo/demo-support.min.js +15 -2
- package/components/form/demo/readme.md +3 -81
- package/components/form/demo/registerDemoDeps.min.js +13 -13
- package/components/input/README.md +3 -66
- package/components/input/demo/auro-input.min.js +1 -1
- package/components/input/demo/demo-support.min.js +15 -2
- package/components/input/demo/readme.md +3 -66
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/README.md +3 -65
- package/components/menu/demo/demo-support.min.js +15 -2
- package/components/menu/demo/readme.md +3 -65
- package/components/radio/README.md +3 -68
- package/components/radio/demo/demo-support.min.js +15 -2
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/readme.md +3 -68
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +3 -79
- package/components/select/demo/demo-support.min.js +15 -2
- package/components/select/demo/readme.md +3 -79
- package/components/select/demo/registered.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ The following sections are editable by making changes to the following files:
|
|
|
17
17
|
| kit Example Code | HTML sample code of the kits use | `./apiExamples/basic.html` |
|
|
18
18
|
-->
|
|
19
19
|
|
|
20
|
-
# Formkit
|
|
20
|
+
# Formkit TESTING
|
|
21
21
|
|
|
22
22
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
@@ -108,157 +108,20 @@ $ npm i @aurodesignsystem/auro-formkit
|
|
|
108
108
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/gettingStarted.md) -->
|
|
109
109
|
<!-- The below content is automatically added from ./docs/partials/gettingStarted.md -->
|
|
110
110
|
|
|
111
|
-
###
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/bundleInstallDescription.md) -->
|
|
129
|
-
<!-- The below content is automatically added from ./docs/partials/bundleInstallDescription.md -->
|
|
130
|
-
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.
|
|
131
|
-
|
|
132
|
-
Each component is imported individually by its export path:
|
|
133
|
-
|
|
134
|
-
```html
|
|
135
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-checkbox/+esm"></script>
|
|
136
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"></script>
|
|
137
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-select/+esm"></script>
|
|
138
|
-
```
|
|
139
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
140
|
-
|
|
141
|
-
## Additional Information
|
|
142
|
-
|
|
143
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
144
|
-
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
145
|
-
|
|
146
|
-
### Turborepo Overview
|
|
147
|
-
|
|
148
|
-
This monorepo is managed using [Turborepo](https://turborepo.org/).
|
|
149
|
-
|
|
150
|
-
### Managing dependencies
|
|
151
|
-
|
|
152
|
-
#### Best practices for dependency installation
|
|
153
|
-
|
|
154
|
-
When you install a dependency in a component or package in `auro-formkit`, you should install it directly in the package that uses it.
|
|
155
|
-
|
|
156
|
-
The package's `package.json` will have every dependency that it needs. This is true for both external and internal dependencies.
|
|
157
|
-
|
|
158
|
-
### Types of Dependencies by Source
|
|
159
|
-
|
|
160
|
-
#### External Dependencies
|
|
161
|
-
- These are packages fetched from the `npm` registry (e.g., Lit, Rollup, Sass)
|
|
162
|
-
- Declared in `package.json` using exact versions or version ranges
|
|
163
|
-
- Installed in `node_modules` during `npm install` or `yarn install`
|
|
164
|
-
|
|
165
|
-
#### Internal Dependencies
|
|
166
|
-
- These are packages from within the `auro-formkit` monorepo
|
|
167
|
-
- Allow sharing code between different packages in your repository
|
|
168
|
-
- Example: The `@aurodesignsystem/combobox` package might depend on `@aurodesignsystem/input`
|
|
169
|
-
- Must be declared in `package.json` just like external dependencies
|
|
170
|
-
- Use workspace protocols (e.g., `"workspace:*"` or `"workspace:^1.0.0"`)
|
|
171
|
-
|
|
172
|
-
### Types of Dependencies by Purpose
|
|
173
|
-
|
|
174
|
-
#### Dependencies (`dependencies`)
|
|
175
|
-
- Required for the package to function in production
|
|
176
|
-
- Example:
|
|
177
|
-
```json
|
|
178
|
-
{
|
|
179
|
-
"dependencies": {
|
|
180
|
-
"lit": "^3.0.0"
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Development Dependencies (`devDependencies`)
|
|
186
|
-
- Only needed during development, testing, or building
|
|
187
|
-
- Not included in the production bundle
|
|
188
|
-
- Example:
|
|
189
|
-
```json
|
|
190
|
-
{
|
|
191
|
-
"devDependencies": {
|
|
192
|
-
"@aurodesignsystem/auro-dropdown": "*",
|
|
193
|
-
"@aurodesignsystem/build-tools": "*",
|
|
194
|
-
"rollup": "^4.24.4"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### Example: Component Dependencies
|
|
200
|
-
|
|
201
|
-
Let's use `@aurodesignsystem/combobox` as an example to illustrate these concepts:
|
|
202
|
-
|
|
203
|
-
```json
|
|
204
|
-
{
|
|
205
|
-
"name": "@aurodesignsystem/combobox",
|
|
206
|
-
"dependencies": {
|
|
207
|
-
"lit": "^3.2.1"
|
|
208
|
-
},
|
|
209
|
-
"devDependencies": {
|
|
210
|
-
// Internal component dependencies
|
|
211
|
-
"@aurodesignsystem/auro-dropdown": "*",
|
|
212
|
-
"@aurodesignsystem/auro-input": "*",
|
|
213
|
-
// Build utilities
|
|
214
|
-
"rollup": "^4.24.4",
|
|
215
|
-
"@aurodesignsystem/build-tools": "*"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
This structure ensures that:
|
|
221
|
-
1. The package explicitly declares all its dependencies
|
|
222
|
-
2. Internal dependencies are properly tracked and versioned
|
|
223
|
-
3. Development tools are separated from production dependencies
|
|
224
|
-
|
|
225
|
-
- External dependencies come from the `npm` registry.
|
|
226
|
-
|
|
227
|
-
- Internal dependencies let you share functionality within your repository.
|
|
228
|
-
|
|
229
|
-
This practice has several benefits:
|
|
230
|
-
|
|
231
|
-
- **Improved clarity:** It's easier to understand what a package depends on when its dependencies are listed in its `package.json`. Developers working in the repository can see at a glance what dependencies are used within the package.
|
|
232
|
-
|
|
233
|
-
- **Enhanced flexibility:** In a monorepo at scale, it can be unrealistic to expect each package to use the same version of an external dependency.
|
|
234
|
-
|
|
235
|
-
- **Better caching ability:** If you install too many dependencies in the root of your repository, you'll be changing the workspace root whenever you add, update, or delete a dependency, leading to unnecessary cache misses.
|
|
236
|
-
|
|
237
|
-
- **Pruning unused dependencies:** When dependencies are installed in the packages that they are meant for, Turborepo can read your lockfile and remove dependencies that aren't used in the packages you need.
|
|
238
|
-
|
|
239
|
-
For more information, see the [Turborepo docs](https://turbo.build/repo/docs/crafting-your-repository/managing-dependencies).
|
|
240
|
-
|
|
241
|
-
### Root `package.json`
|
|
242
|
-
|
|
243
|
-
The only dependencies that belong in the root `package.json` are **tools for managing the repository**.
|
|
244
|
-
|
|
245
|
-
Some examples of dependencies that make sense to install in the root are `turbo`, `husky`, or `stylelint`.
|
|
246
|
-
|
|
247
|
-
Conversely, dependencies Auro components rely on should be installed in their respective packages, such as `Lit`, `Rollup`, or other `auro-formkit` dependencies.
|
|
248
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
249
|
-
|
|
250
|
-
## Formkit Development
|
|
251
|
-
|
|
252
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/developmentDescription.md) -->
|
|
253
|
-
<!-- The below content is automatically added from ./docs/partials/developmentDescription.md -->
|
|
254
|
-
|
|
255
|
-
### Filtering
|
|
256
|
-
|
|
257
|
-
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
258
|
-
|
|
259
|
-
To only develop a single component, use the `--filter` flag:
|
|
260
|
-
|
|
261
|
-
```shell
|
|
262
|
-
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
263
|
-
```
|
|
111
|
+
### Getting Started
|
|
112
|
+
|
|
113
|
+
Each component contains its own Getting Started documentation.
|
|
114
|
+
|
|
115
|
+
<ul>
|
|
116
|
+
<li><a href="https://auro.alaskaair.com/components/auro/checkbox/getting-started">checkbox</a></li>
|
|
117
|
+
<li><a href="https://auro.alaskaair.com/components/auro/combobox/getting-started">combobox</a></li>
|
|
118
|
+
<li><a href="https://auro.alaskaair.com/components/auro/counter/getting-started">counter</a></li>
|
|
119
|
+
<li><a href="https://auro.alaskaair.com/components/auro/datepicker/getting-started">datepicker</a></li>
|
|
120
|
+
<li><a href="https://auro.alaskaair.com/components/auro/dropdown/getting-started">dropdown</a></li>
|
|
121
|
+
<li><a href="https://auro.alaskaair.com/components/auro/form/getting-started">form</a></li>
|
|
122
|
+
<li><a href="https://auro.alaskaair.com/components/auro/input/getting-started">input</a></li>
|
|
123
|
+
<li><a href="https://auro.alaskaair.com/components/auro/menu/getting-started">menu</a></li>
|
|
124
|
+
<li><a href="https://auro.alaskaair.com/components/auro/radio/getting-started">radio</a></li>
|
|
125
|
+
<li><a href="https://auro.alaskaair.com/components/auro/select/getting-started">select</a></li>
|
|
126
|
+
</ul>
|
|
264
127
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -40,73 +40,7 @@ The <code><auro-checkbox></code> element should be used in situations wher
|
|
|
40
40
|
|
|
41
41
|
## Getting Started
|
|
42
42
|
|
|
43
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
44
|
-
<!-- The below content is automatically added from
|
|
45
|
-
|
|
46
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
47
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
48
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
49
|
-
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
50
|
-
|
|
51
|
-
### TypeScript Module Resolution
|
|
52
|
-
|
|
53
|
-
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
54
|
-
|
|
55
|
-
<pre class="language-json"><code class="language-json">{
|
|
56
|
-
"compilerOptions": {
|
|
57
|
-
"moduleResolution": "bundler"
|
|
58
|
-
}
|
|
59
|
-
}</code></pre>
|
|
60
|
-
|
|
61
|
-
This configuration enables proper module resolution for the component's TypeScript files.
|
|
62
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
63
|
-
|
|
64
|
-
## Install from CDN
|
|
65
|
-
|
|
66
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
67
|
-
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
68
|
-
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.
|
|
69
|
-
|
|
70
|
-
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-checkbox/+esm"></script></code></pre>
|
|
71
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
72
|
-
|
|
73
|
-
## Formkit Development
|
|
74
|
-
|
|
75
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
76
|
-
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
77
|
-
|
|
78
|
-
### Filtering
|
|
79
|
-
|
|
80
|
-
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
81
|
-
|
|
82
|
-
To only develop a single component, use the `--filter` flag:
|
|
83
|
-
|
|
84
|
-
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
85
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
86
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
87
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
88
|
-
<auro-header level="2" id="customRegistration">Custom Component Registration for Version Management</auro-header>
|
|
89
|
-
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
90
|
-
|
|
91
|
-
You can do this by importing only the component class and using the <code>register(name)</code> method with a unique name:
|
|
92
|
-
|
|
93
|
-
<pre class="language-js"><code class="language-js">// Import the class only
|
|
94
|
-
import { AuroCheckbox, AuroCheckboxGroup } from '@aurodesignsystem/auro-formkit/auro-checkbox/class';
|
|
95
|
-
|
|
96
|
-
// Register with a custom name if desired
|
|
97
|
-
AuroCheckbox.register('custom-checkbox');
|
|
98
|
-
AuroCheckboxGroup.register('custom-checkbox-group');</code></pre>
|
|
99
|
-
|
|
100
|
-
This will create a new custom element <code>>custom-checkbox<</code> and <code>>custom-checkbox-group<</code> that behaves exactly like <code>>auro-checkbox<</code> and <code><auro-checkbox-group></code>, allowing both to coexist on the same page without interfering with each other.
|
|
101
|
-
|
|
102
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom.html) -->
|
|
103
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/custom.html -->
|
|
104
|
-
<pre class="language-html"><code class="language-html"><custom-checkbox-group>
|
|
105
|
-
<span slot="legend">Form label goes here</span>
|
|
106
|
-
<custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
|
|
107
|
-
<custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
|
|
108
|
-
<custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
|
|
109
|
-
<custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
|
|
110
|
-
</custom-checkbox-group></code></pre>
|
|
111
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
43
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
|
|
44
|
+
<!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
|
|
45
|
+
For Getting Started instructions, visit the [auro-checkbox Getting Started page](https://auro.alaskaair.com/components/auro/checkbox/getting-started).
|
|
112
46
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -22886,6 +22886,19 @@ const BIGINT = 8;
|
|
|
22886
22886
|
|
|
22887
22887
|
const env = typeof self === 'object' ? self : globalThis;
|
|
22888
22888
|
|
|
22889
|
+
const guard = (name, init) => {
|
|
22890
|
+
switch (name) {
|
|
22891
|
+
case 'Function':
|
|
22892
|
+
case 'SharedWorker':
|
|
22893
|
+
case 'Worker':
|
|
22894
|
+
case 'eval':
|
|
22895
|
+
case 'setInterval':
|
|
22896
|
+
case 'setTimeout':
|
|
22897
|
+
throw new TypeError('unable to deserialize ' + name);
|
|
22898
|
+
}
|
|
22899
|
+
return new env[name](init);
|
|
22900
|
+
};
|
|
22901
|
+
|
|
22889
22902
|
const deserializer = ($, _) => {
|
|
22890
22903
|
const as = (out, index) => {
|
|
22891
22904
|
$.set(index, out);
|
|
@@ -22933,7 +22946,7 @@ const deserializer = ($, _) => {
|
|
|
22933
22946
|
}
|
|
22934
22947
|
case ERROR: {
|
|
22935
22948
|
const {name, message} = value;
|
|
22936
|
-
return as(
|
|
22949
|
+
return as(guard(name, message), index);
|
|
22937
22950
|
}
|
|
22938
22951
|
case BIGINT:
|
|
22939
22952
|
return as(BigInt(value), index);
|
|
@@ -22946,7 +22959,7 @@ const deserializer = ($, _) => {
|
|
|
22946
22959
|
return as(new DataView(buffer), value);
|
|
22947
22960
|
}
|
|
22948
22961
|
}
|
|
22949
|
-
return as(
|
|
22962
|
+
return as(guard(type, value), index);
|
|
22950
22963
|
};
|
|
22951
22964
|
|
|
22952
22965
|
return unpair;
|
|
@@ -1682,7 +1682,7 @@ class AuroHelpText extends i$2 {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
|
-
var formkitVersion = '
|
|
1685
|
+
var formkitVersion = '202605061848';
|
|
1686
1686
|
|
|
1687
1687
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1688
1688
|
// See LICENSE in the project root for license information.
|
|
@@ -40,73 +40,7 @@ The <code><auro-checkbox></code> element should be used in situations wher
|
|
|
40
40
|
|
|
41
41
|
## Getting Started
|
|
42
42
|
|
|
43
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
44
|
-
<!-- The below content is automatically added from
|
|
45
|
-
|
|
46
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
47
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
48
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
49
|
-
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
50
|
-
|
|
51
|
-
### TypeScript Module Resolution
|
|
52
|
-
|
|
53
|
-
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
54
|
-
|
|
55
|
-
<pre class="language-json"><code class="language-json">{
|
|
56
|
-
"compilerOptions": {
|
|
57
|
-
"moduleResolution": "bundler"
|
|
58
|
-
}
|
|
59
|
-
}</code></pre>
|
|
60
|
-
|
|
61
|
-
This configuration enables proper module resolution for the component's TypeScript files.
|
|
62
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
63
|
-
|
|
64
|
-
## Install from CDN
|
|
65
|
-
|
|
66
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
67
|
-
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
68
|
-
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.
|
|
69
|
-
|
|
70
|
-
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-checkbox/+esm"></script></code></pre>
|
|
71
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
72
|
-
|
|
73
|
-
## Formkit Development
|
|
74
|
-
|
|
75
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
76
|
-
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
77
|
-
|
|
78
|
-
### Filtering
|
|
79
|
-
|
|
80
|
-
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
81
|
-
|
|
82
|
-
To only develop a single component, use the `--filter` flag:
|
|
83
|
-
|
|
84
|
-
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
85
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
86
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
87
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
88
|
-
<auro-header level="2" id="customRegistration">Custom Component Registration for Version Management</auro-header>
|
|
89
|
-
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
90
|
-
|
|
91
|
-
You can do this by importing only the component class and using the <code>register(name)</code> method with a unique name:
|
|
92
|
-
|
|
93
|
-
<pre class="language-js"><code class="language-js">// Import the class only
|
|
94
|
-
import { AuroCheckbox, AuroCheckboxGroup } from '@aurodesignsystem/auro-formkit/auro-checkbox/class';
|
|
95
|
-
|
|
96
|
-
// Register with a custom name if desired
|
|
97
|
-
AuroCheckbox.register('custom-checkbox');
|
|
98
|
-
AuroCheckboxGroup.register('custom-checkbox-group');</code></pre>
|
|
99
|
-
|
|
100
|
-
This will create a new custom element <code>>custom-checkbox<</code> and <code>>custom-checkbox-group<</code> that behaves exactly like <code>>auro-checkbox<</code> and <code><auro-checkbox-group></code>, allowing both to coexist on the same page without interfering with each other.
|
|
101
|
-
|
|
102
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom.html) -->
|
|
103
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/custom.html -->
|
|
104
|
-
<pre class="language-html"><code class="language-html"><custom-checkbox-group>
|
|
105
|
-
<span slot="legend">Form label goes here</span>
|
|
106
|
-
<custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
|
|
107
|
-
<custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
|
|
108
|
-
<custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
|
|
109
|
-
<custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
|
|
110
|
-
</custom-checkbox-group></code></pre>
|
|
111
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
43
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
|
|
44
|
+
<!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
|
|
45
|
+
For Getting Started instructions, visit the [auro-checkbox Getting Started page](https://auro.alaskaair.com/components/auro/checkbox/getting-started).
|
|
112
46
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1635,7 +1635,7 @@ class AuroHelpText extends LitElement {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
|
-
var formkitVersion = '
|
|
1638
|
+
var formkitVersion = '202605061848';
|
|
1639
1639
|
|
|
1640
1640
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1641
1641
|
// See LICENSE in the project root for license information.
|
|
@@ -1635,7 +1635,7 @@ class AuroHelpText extends LitElement {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
|
-
var formkitVersion = '
|
|
1638
|
+
var formkitVersion = '202605061848';
|
|
1639
1639
|
|
|
1640
1640
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1641
1641
|
// See LICENSE in the project root for license information.
|
|
@@ -57,77 +57,7 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
57
57
|
|
|
58
58
|
## Getting Started
|
|
59
59
|
|
|
60
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
61
|
-
<!-- The below content is automatically added from
|
|
62
|
-
|
|
63
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
64
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
65
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
66
|
-
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
67
|
-
|
|
68
|
-
### TypeScript Module Resolution
|
|
69
|
-
|
|
70
|
-
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
71
|
-
|
|
72
|
-
<pre class="language-json"><code class="language-json">{
|
|
73
|
-
"compilerOptions": {
|
|
74
|
-
"moduleResolution": "bundler"
|
|
75
|
-
}
|
|
76
|
-
}</code></pre>
|
|
77
|
-
|
|
78
|
-
This configuration enables proper module resolution for the component's TypeScript files.
|
|
79
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
80
|
-
|
|
81
|
-
## Install from CDN
|
|
82
|
-
|
|
83
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
84
|
-
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
85
|
-
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.
|
|
86
|
-
|
|
87
|
-
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-combobox/+esm"></script></code></pre>
|
|
88
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
89
|
-
|
|
90
|
-
## Formkit Development
|
|
91
|
-
|
|
92
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
93
|
-
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
94
|
-
|
|
95
|
-
### Filtering
|
|
96
|
-
|
|
97
|
-
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
98
|
-
|
|
99
|
-
To only develop a single component, use the `--filter` flag:
|
|
100
|
-
|
|
101
|
-
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
102
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
104
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/partials/customRegistrationDescription.md) -->
|
|
106
|
-
<!-- The below content is automatically added from ./../../../docs/partials/customRegistrationDescription.md -->
|
|
107
|
-
<p>Every Auro component consists of a JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and a <a href="https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define">custom element registration</a>. The class defines the component's behavior, and the registration maps it to an HTML tag name so it can be used in markup.</p>
|
|
108
|
-
<p>The default import (shown above) handles both steps automatically, registering the component under its standard tag name.</p>
|
|
109
|
-
<p>If you need multiple versions of the same component on a single page — for example, when two projects depend on different versions — you can register the class under a custom tag name to avoid conflicts.</p>
|
|
110
|
-
<p>To do this, import the component class directly and call its <code>register(name)</code> method with a unique name:</p>
|
|
111
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
|
-
|
|
113
|
-
<pre class="language-js"><code class="language-js">// Import the class only
|
|
114
|
-
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
115
|
-
|
|
116
|
-
// Register with a custom name if desired
|
|
117
|
-
AuroCombobox.register('custom-combobox');</code></pre>
|
|
118
|
-
|
|
119
|
-
This will create a new custom element `<custom-combobox>` that behaves exactly like `<auro-combobox>`, allowing both to coexist on the same page without interfering with each other.
|
|
120
|
-
|
|
121
|
-
<pre class="language-html"><code class="language-html"><custom-combobox>
|
|
122
|
-
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
123
|
-
<span slot="label">Name</span>
|
|
124
|
-
<auro-menu>
|
|
125
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
126
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
127
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
128
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
129
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
130
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
131
|
-
</auro-menu>
|
|
132
|
-
</custom-combobox></code></pre>
|
|
60
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
|
|
61
|
+
<!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
|
|
62
|
+
For Getting Started instructions, visit the [auro-combobox Getting Started page](https://auro.alaskaair.com/components/auro/combobox/getting-started).
|
|
133
63
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -22886,6 +22886,19 @@ const BIGINT = 8;
|
|
|
22886
22886
|
|
|
22887
22887
|
const env = typeof self === 'object' ? self : globalThis;
|
|
22888
22888
|
|
|
22889
|
+
const guard = (name, init) => {
|
|
22890
|
+
switch (name) {
|
|
22891
|
+
case 'Function':
|
|
22892
|
+
case 'SharedWorker':
|
|
22893
|
+
case 'Worker':
|
|
22894
|
+
case 'eval':
|
|
22895
|
+
case 'setInterval':
|
|
22896
|
+
case 'setTimeout':
|
|
22897
|
+
throw new TypeError('unable to deserialize ' + name);
|
|
22898
|
+
}
|
|
22899
|
+
return new env[name](init);
|
|
22900
|
+
};
|
|
22901
|
+
|
|
22889
22902
|
const deserializer = ($, _) => {
|
|
22890
22903
|
const as = (out, index) => {
|
|
22891
22904
|
$.set(index, out);
|
|
@@ -22933,7 +22946,7 @@ const deserializer = ($, _) => {
|
|
|
22933
22946
|
}
|
|
22934
22947
|
case ERROR: {
|
|
22935
22948
|
const {name, message} = value;
|
|
22936
|
-
return as(
|
|
22949
|
+
return as(guard(name, message), index);
|
|
22937
22950
|
}
|
|
22938
22951
|
case BIGINT:
|
|
22939
22952
|
return as(BigInt(value), index);
|
|
@@ -22946,7 +22959,7 @@ const deserializer = ($, _) => {
|
|
|
22946
22959
|
return as(new DataView(buffer), value);
|
|
22947
22960
|
}
|
|
22948
22961
|
}
|
|
22949
|
-
return as(
|
|
22962
|
+
return as(guard(type, value), index);
|
|
22950
22963
|
};
|
|
22951
22964
|
|
|
22952
22965
|
return unpair;
|
|
@@ -57,77 +57,7 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
57
57
|
|
|
58
58
|
## Getting Started
|
|
59
59
|
|
|
60
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
61
|
-
<!-- The below content is automatically added from
|
|
62
|
-
|
|
63
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
64
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
65
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
66
|
-
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
67
|
-
|
|
68
|
-
### TypeScript Module Resolution
|
|
69
|
-
|
|
70
|
-
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
71
|
-
|
|
72
|
-
<pre class="language-json"><code class="language-json">{
|
|
73
|
-
"compilerOptions": {
|
|
74
|
-
"moduleResolution": "bundler"
|
|
75
|
-
}
|
|
76
|
-
}</code></pre>
|
|
77
|
-
|
|
78
|
-
This configuration enables proper module resolution for the component's TypeScript files.
|
|
79
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
80
|
-
|
|
81
|
-
## Install from CDN
|
|
82
|
-
|
|
83
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
84
|
-
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
85
|
-
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.
|
|
86
|
-
|
|
87
|
-
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-combobox/+esm"></script></code></pre>
|
|
88
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
89
|
-
|
|
90
|
-
## Formkit Development
|
|
91
|
-
|
|
92
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
93
|
-
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
94
|
-
|
|
95
|
-
### Filtering
|
|
96
|
-
|
|
97
|
-
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
98
|
-
|
|
99
|
-
To only develop a single component, use the `--filter` flag:
|
|
100
|
-
|
|
101
|
-
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
102
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
104
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/partials/customRegistrationDescription.md) -->
|
|
106
|
-
<!-- The below content is automatically added from ./../../../docs/partials/customRegistrationDescription.md -->
|
|
107
|
-
<p>Every Auro component consists of a JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and a <a href="https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define">custom element registration</a>. The class defines the component's behavior, and the registration maps it to an HTML tag name so it can be used in markup.</p>
|
|
108
|
-
<p>The default import (shown above) handles both steps automatically, registering the component under its standard tag name.</p>
|
|
109
|
-
<p>If you need multiple versions of the same component on a single page — for example, when two projects depend on different versions — you can register the class under a custom tag name to avoid conflicts.</p>
|
|
110
|
-
<p>To do this, import the component class directly and call its <code>register(name)</code> method with a unique name:</p>
|
|
111
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
|
-
|
|
113
|
-
<pre class="language-js"><code class="language-js">// Import the class only
|
|
114
|
-
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
115
|
-
|
|
116
|
-
// Register with a custom name if desired
|
|
117
|
-
AuroCombobox.register('custom-combobox');</code></pre>
|
|
118
|
-
|
|
119
|
-
This will create a new custom element `<custom-combobox>` that behaves exactly like `<auro-combobox>`, allowing both to coexist on the same page without interfering with each other.
|
|
120
|
-
|
|
121
|
-
<pre class="language-html"><code class="language-html"><custom-combobox>
|
|
122
|
-
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
123
|
-
<span slot="label">Name</span>
|
|
124
|
-
<auro-menu>
|
|
125
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
126
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
127
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
128
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
129
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
130
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
131
|
-
</auro-menu>
|
|
132
|
-
</custom-combobox></code></pre>
|
|
60
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
|
|
61
|
+
<!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
|
|
62
|
+
For Getting Started instructions, visit the [auro-combobox Getting Started page](https://auro.alaskaair.com/components/auro/combobox/getting-started).
|
|
133
63
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -5278,7 +5278,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5278
5278
|
}
|
|
5279
5279
|
};
|
|
5280
5280
|
|
|
5281
|
-
var formkitVersion$2 = '
|
|
5281
|
+
var formkitVersion$2 = '202605061848';
|
|
5282
5282
|
|
|
5283
5283
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5284
5284
|
static get properties() {
|
|
@@ -13030,7 +13030,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
13030
13030
|
}
|
|
13031
13031
|
};
|
|
13032
13032
|
|
|
13033
|
-
var formkitVersion$1 = '
|
|
13033
|
+
var formkitVersion$1 = '202605061848';
|
|
13034
13034
|
|
|
13035
13035
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13036
13036
|
// See LICENSE in the project root for license information.
|
|
@@ -14095,7 +14095,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
14095
14095
|
}
|
|
14096
14096
|
}
|
|
14097
14097
|
|
|
14098
|
-
var formkitVersion = '
|
|
14098
|
+
var formkitVersion = '202605061848';
|
|
14099
14099
|
|
|
14100
14100
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
14101
14101
|
|