@aurodesignsystem-dev/auro-formkit 0.0.0-pr1460.2 → 0.0.0-pr1462.0
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/components/checkbox/demo/api.html +4 -26
- package/components/checkbox/demo/getting-started.md +5 -6
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.html +4 -25
- package/components/combobox/demo/getting-started.md +76 -27
- package/components/combobox/demo/index.min.js +15 -1
- package/components/combobox/demo/registered.min.js +1506 -1506
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/api.html +5 -29
- package/components/counter/demo/getting-started.md +4 -3
- package/components/counter/demo/index.min.js +8392 -1
- package/components/counter/dist/index.js +106 -5110
- package/components/counter/dist/registered.js +106 -5110
- package/components/datepicker/demo/accessibility.html +0 -1
- package/components/datepicker/demo/api.html +4 -29
- package/components/datepicker/demo/getting-started.md +25 -2
- package/components/datepicker/demo/index.min.js +24612 -1
- package/components/datepicker/demo/readme.html +2 -10
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/api.html +5 -31
- package/components/dropdown/demo/getting-started.md +34 -2
- package/components/dropdown/demo/index.min.js +5097 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.html +5 -27
- package/components/form/demo/getting-started.md +5 -6
- package/components/form/demo/index.min.js +719 -2
- package/components/form/demo/keyboard-behavior.md +38 -0
- package/components/form/demo/pages.json +1 -1
- package/components/form/demo/registerDemoDeps.min.js +11590 -60657
- package/components/input/demo/accessibility.md +1 -1
- package/components/input/demo/api.html +15 -26
- package/components/input/demo/auro-input.min.js +1 -1
- package/components/input/demo/getting-started.md +1 -1
- package/components/input/demo/readme.html +2 -10
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.html +5 -30
- package/components/menu/demo/getting-started.md +1 -1
- package/components/menu/demo/index.min.js +1572 -1572
- package/components/menu/dist/auro-menu.context.d.ts +0 -1
- package/components/menu/dist/index.js +1607 -1607
- package/components/menu/dist/registered.js +1556 -1556
- package/components/radio/demo/api.html +7 -28
- package/components/radio/demo/getting-started.md +27 -2
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.html +5 -42
- package/components/select/demo/getting-started.md +39 -5
- package/components/select/demo/registered.min.js +1505 -1505
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +1489 -1489
- package/package.json +38 -4
- package/components/combobox/demo/api.js +0 -39
- package/components/combobox/demo/api.min.js +0 -106
- package/components/combobox/demo/install.html +0 -50
- package/components/combobox/demo/styles.css +0 -974
- package/components/combobox/demo/swap-value.min.js +0 -16
- package/components/counter/demo/api.js +0 -24
- package/components/counter/demo/api.min.js +0 -52
- package/components/counter/demo/auro-counter-group.min.js +0 -8394
- package/components/datepicker/demo/api.js +0 -37
- package/components/datepicker/demo/api.min.js +0 -300
- package/components/datepicker/demo/auro-datepicker.min.js +0 -24614
- package/components/dropdown/demo/api.js +0 -26
- package/components/dropdown/demo/api.min.js +0 -109
- package/components/dropdown/demo/auro-dropdown.min.js +0 -5099
- package/components/form/demo/api.js +0 -5
- package/components/form/demo/api.min.js +0 -5
- package/components/form/demo/auro-form.min.js +0 -718
- package/components/form/demo/autocomplete.html +0 -31
- package/components/radio/demo/api.js +0 -19
- package/components/radio/demo/api.min.js +0 -44
- package/components/select/demo/keyboardBehavior.html +0 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-pr1462.0",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"test": "npm run test:wtr && npm run test:frameworks",
|
|
64
64
|
"test:local": "npm run test:wtr; npm run test:frameworks; npm run test:dashboard",
|
|
65
65
|
"test:dashboard": "node test/coverage/generate-dashboard.mjs",
|
|
66
|
-
"test:force": "turbo run test --force",
|
|
66
|
+
"test:force": "turbo run test --force --continue",
|
|
67
67
|
"test:framework:react": "turbo run test:framework --filter=@aurodesignsystem/react-framework",
|
|
68
68
|
"test:framework:report:react": "npm run test:framework:report -w apps/react-framework",
|
|
69
69
|
"test:framework:report:svelte": "npm run test:framework:report -w apps/svelte-framework",
|
|
70
70
|
"test:framework:svelte": "turbo run test:framework --filter=@aurodesignsystem/svelte-framework",
|
|
71
71
|
"test:frameworks": "turbo run test:framework --filter=@aurodesignsystem/react-framework --filter=@aurodesignsystem/svelte-framework",
|
|
72
72
|
"test:watch": "turbo run test:watch",
|
|
73
|
-
"test:wtr": "turbo run test --concurrency=3",
|
|
73
|
+
"test:wtr": "turbo run test --concurrency=3 --continue",
|
|
74
74
|
"test:wtr:force": "npm run test:wtr -- --force",
|
|
75
75
|
"update-stories": "node ./packages/utils/update-stories.js",
|
|
76
76
|
"test:global": "wtr --config \"./packages/config/src/web-test-runner.config-global.mjs\" --coverage --port 7725",
|
|
@@ -79,13 +79,35 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@lit/context": "^1.1.6",
|
|
81
81
|
"@lit/reactive-element": "^2.1.2",
|
|
82
|
+
"lit-element": "^4.1.1",
|
|
83
|
+
"lit-html": "^3.2.1",
|
|
82
84
|
"lit": "^3.3.2"
|
|
83
85
|
},
|
|
84
86
|
"optionalDependencies": {
|
|
85
87
|
"@rolldown/binding-linux-x64-gnu": "*",
|
|
86
88
|
"@rollup/rollup-linux-x64-gnu": "*"
|
|
87
89
|
},
|
|
90
|
+
"overrides": {
|
|
91
|
+
"minimatch@<=3.1.3": "~3.1.4",
|
|
92
|
+
"stylelint-order": "^8.1.1",
|
|
93
|
+
"@noticeable/sass-render": {
|
|
94
|
+
"sass": "$sass"
|
|
95
|
+
},
|
|
96
|
+
"serialize-javascript": "^7.0.5",
|
|
97
|
+
"@actions/http-client": "^3.0.2",
|
|
98
|
+
"undici@<=6.23.0": "^6.24.0",
|
|
99
|
+
"@rollup/plugin-terser": "^1.0.0"
|
|
100
|
+
},
|
|
88
101
|
"devDependencies": {
|
|
102
|
+
"@alaskaairux/icons": "^5.14.0",
|
|
103
|
+
"@aurodesignsystem/auro-header": "^5.0.0",
|
|
104
|
+
"@aurodesignsystem/auro-icon": "^9.1.1",
|
|
105
|
+
"@aurodesignsystem/auro-popover": "^6.0.0",
|
|
106
|
+
"@floating-ui/dom": "^1.6.13",
|
|
107
|
+
"@popperjs/core": "^2.11.8",
|
|
108
|
+
"date-fns": "^4.1.0",
|
|
109
|
+
"focus-visible": "^5.2.1",
|
|
110
|
+
"imask": "^7.6.1",
|
|
89
111
|
"@aurodesignsystem/auro-accordion": "^6.1.3",
|
|
90
112
|
"@aurodesignsystem/auro-button": "^12.3.2",
|
|
91
113
|
"@aurodesignsystem/auro-dialog": "^4.1.1",
|
|
@@ -108,6 +130,7 @@
|
|
|
108
130
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
109
131
|
"@eslint/compat": "^2.0.5",
|
|
110
132
|
"@open-wc/testing": "^4.0.0",
|
|
133
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
111
134
|
"@semantic-release/changelog": "^6.0.3",
|
|
112
135
|
"@semantic-release/git": "^10.0.1",
|
|
113
136
|
"@semantic-release/npm": "^13.1.5",
|
|
@@ -131,7 +154,6 @@
|
|
|
131
154
|
"compression": "^1.8.1",
|
|
132
155
|
"concat": "^1.0.3",
|
|
133
156
|
"concurrently": "^9.2.1",
|
|
134
|
-
"copyfiles": "^2.4.1",
|
|
135
157
|
"core-js": "^3.49.0",
|
|
136
158
|
"eslint": "^10.2.1",
|
|
137
159
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
@@ -142,14 +164,22 @@
|
|
|
142
164
|
"mockdate": "^3.0.5",
|
|
143
165
|
"nodemon": "^3.1.14",
|
|
144
166
|
"npm-run-all": "^4.1.5",
|
|
167
|
+
"@playwright/test": "^1.59.1",
|
|
145
168
|
"playwright": "^1.59.1",
|
|
146
169
|
"postcss": "^8.5.10",
|
|
147
170
|
"postcss-custom-properties": "^15.0.1",
|
|
148
171
|
"postcss-discard-comments": "^7.0.7",
|
|
172
|
+
"postcss-selector-replace": "^1.0.2",
|
|
149
173
|
"prettier": "^3.8.3",
|
|
174
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
175
|
+
"globals": "^17.4.0",
|
|
176
|
+
"monocart-reporter": "^2.10.1",
|
|
177
|
+
"rollup": "^4.45.1",
|
|
178
|
+
"rollup-plugin-serve": "^3.0.0",
|
|
150
179
|
"sass": "^1.99.0",
|
|
151
180
|
"semantic-release": "^25.0.3",
|
|
152
181
|
"shadow-dom-testing-library": "^1.13.1",
|
|
182
|
+
"sinon": "^21.0.0",
|
|
153
183
|
"storybook": "^10.3.5",
|
|
154
184
|
"storybook-addon-pseudo-states": "^10.3.5",
|
|
155
185
|
"storybook-addon-tag-badges": "^3.1.0",
|
|
@@ -160,8 +190,12 @@
|
|
|
160
190
|
"stylelint-order": "^8.1.1",
|
|
161
191
|
"stylelint-scss": "^7.0.0",
|
|
162
192
|
"turbo": "^2.9.6",
|
|
193
|
+
"@types/node": "^24.12.0",
|
|
163
194
|
"typescript": "^6.0.3",
|
|
195
|
+
"vite": "^8.0.5",
|
|
164
196
|
"vitest": "^4.1.5",
|
|
197
|
+
"@noticeable/sass-render": "^3.0.0",
|
|
198
|
+
"web-component-analyzer": "^2.0.0",
|
|
165
199
|
"whatwg-fetch": "^3.6.20",
|
|
166
200
|
"yaml-lint": "^1.7.0",
|
|
167
201
|
"rehype-highlight": "^7.0.2",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { focusExample } from '../apiExamples/focus';
|
|
4
|
-
import { resetStateExample } from '../apiExamples/reset-state';
|
|
5
|
-
import { setupExternalSelectionExample } from '../apiExamples/external-selection';
|
|
6
|
-
import { valueExample } from '../apiExamples/value';
|
|
7
|
-
import { inDialogExample } from '../apiExamples/in-dialog';
|
|
8
|
-
import { inDrawerExample } from '../apiExamples/in-drawer';
|
|
9
|
-
import { persistentExample } from '../apiExamples/persistent';
|
|
10
|
-
import { swapValueExample } from '../apiExamples/swap-value';
|
|
11
|
-
|
|
12
|
-
import { AuroCombobox } from '../src/auro-combobox.js';
|
|
13
|
-
import '../../menu/src/registered.js';
|
|
14
|
-
|
|
15
|
-
AuroCombobox.register();
|
|
16
|
-
|
|
17
|
-
export function initExamples(initCount) {
|
|
18
|
-
initCount = initCount || 0;
|
|
19
|
-
|
|
20
|
-
try {
|
|
21
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
22
|
-
focusExample();
|
|
23
|
-
resetStateExample();
|
|
24
|
-
setupExternalSelectionExample();
|
|
25
|
-
valueExample();
|
|
26
|
-
inDialogExample();
|
|
27
|
-
inDrawerExample();
|
|
28
|
-
persistentExample();
|
|
29
|
-
swapValueExample();
|
|
30
|
-
} catch (err) {
|
|
31
|
-
if (initCount <= 20) {
|
|
32
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
33
|
-
setTimeout(() => {
|
|
34
|
-
initExamples(initCount + 1);
|
|
35
|
-
}, 100);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { s as swapValueExample } from './swap-value.min.js';
|
|
2
|
-
import { A as AuroCombobox } from './registered.min.js';
|
|
3
|
-
|
|
4
|
-
function focusExample() {
|
|
5
|
-
const focusExample = document.querySelector('#focusExample');
|
|
6
|
-
const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
|
|
7
|
-
|
|
8
|
-
focusExampleBtnElem.addEventListener('click', () => {
|
|
9
|
-
focusExample.focus();
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function resetStateExample() {
|
|
14
|
-
const elem = document.querySelector('#resetStateExample');
|
|
15
|
-
|
|
16
|
-
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
17
|
-
elem.reset();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function setupExternalSelectionExample() {
|
|
22
|
-
const combobox = document.getElementById('externalSelectionExample');
|
|
23
|
-
const iataCodes = ['sea', 'lax', 'jfk', 'ord', 'sfo'];
|
|
24
|
-
|
|
25
|
-
combobox.addEventListener('input', () => {
|
|
26
|
-
const input = combobox.inputValue?.toLowerCase();
|
|
27
|
-
const matchIndex = iataCodes.indexOf(input);
|
|
28
|
-
|
|
29
|
-
if (matchIndex !== -1) {
|
|
30
|
-
combobox.updateActiveOption(matchIndex);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function valueExample() {
|
|
36
|
-
const valueExample = document.querySelector('#valueExample');
|
|
37
|
-
|
|
38
|
-
document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
|
|
39
|
-
valueExample.value = 'Oranges';
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
|
|
43
|
-
valueExample.value = 'Dragon Fruit';
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
|
|
47
|
-
valueExample.value = undefined;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function inDialogExample() {
|
|
52
|
-
document.querySelector("#combobox-dialog-opener").addEventListener("click", () => {
|
|
53
|
-
const dialog = document.querySelector("#combobox-dialog");
|
|
54
|
-
dialog.open = true;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function inDrawerExample() {
|
|
59
|
-
document.querySelector("#combobox-drawer-opener").addEventListener("click", () => {
|
|
60
|
-
const drawer = document.querySelector("#combobox-drawer");
|
|
61
|
-
if (drawer.hasAttribute('open')) {
|
|
62
|
-
drawer.removeAttribute('open');
|
|
63
|
-
} else {
|
|
64
|
-
drawer.setAttribute('open', true);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function persistentExample() {
|
|
70
|
-
const persistentExample = document.querySelector('#persistent');
|
|
71
|
-
|
|
72
|
-
persistentExample.addEventListener('addNewAddress', () => {
|
|
73
|
-
console.warn('addNewAddress event fired');
|
|
74
|
-
alert(`addNewAddress event fired`);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
AuroCombobox.register();
|
|
82
|
-
|
|
83
|
-
function initExamples(initCount) {
|
|
84
|
-
initCount = initCount || 0;
|
|
85
|
-
|
|
86
|
-
try {
|
|
87
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
88
|
-
focusExample();
|
|
89
|
-
resetStateExample();
|
|
90
|
-
setupExternalSelectionExample();
|
|
91
|
-
valueExample();
|
|
92
|
-
inDialogExample();
|
|
93
|
-
inDrawerExample();
|
|
94
|
-
persistentExample();
|
|
95
|
-
swapValueExample();
|
|
96
|
-
} catch (err) {
|
|
97
|
-
if (initCount <= 20) {
|
|
98
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
99
|
-
setTimeout(() => {
|
|
100
|
-
initExamples(initCount + 1);
|
|
101
|
-
}, 100);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export { initExamples };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
-
See LICENSE in the project root for license information.
|
|
4
|
-
|
|
5
|
-
HTML in this document is standardized and NOT to be edited.
|
|
6
|
-
All demo code should be added/edited in ./demo/install.md
|
|
7
|
-
|
|
8
|
-
With the exception of adding custom elements if needed for the demo.
|
|
9
|
-
|
|
10
|
-
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
-
|
|
12
|
-
-->
|
|
13
|
-
|
|
14
|
-
<!DOCTYPE html>
|
|
15
|
-
<html lang="en">
|
|
16
|
-
<head>
|
|
17
|
-
<meta charset="UTF-8" />
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component Demo | auro-combobox | Install</title>
|
|
20
|
-
|
|
21
|
-
<!-- highlight.js Stylesheet -->
|
|
22
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css"/>
|
|
23
|
-
|
|
24
|
-
<!-- Legacy reference is still needed to support auro-combobox's use of legacy token values at this time -->
|
|
25
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
-
|
|
27
|
-
<!-- Design Token Alaska Theme -->
|
|
28
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
-
|
|
30
|
-
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
-
|
|
33
|
-
<!-- Demo Specific Styles -->
|
|
34
|
-
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
35
|
-
</head>
|
|
36
|
-
<body class="auro-markdown">
|
|
37
|
-
<main></main>
|
|
38
|
-
|
|
39
|
-
<script type="module">
|
|
40
|
-
import { renderPage } from './demo-support.min.js';
|
|
41
|
-
await renderPage('./install.md');
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<!-- If additional elements are needed for the demo, add them here. -->
|
|
45
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
46
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
47
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
48
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
49
|
-
</body>
|
|
50
|
-
</html>
|