@aurodesignsystem-dev/auro-formkit 0.0.0-pr1460.2 → 0.0.0-pr1464.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.
Files changed (85) hide show
  1. package/components/checkbox/demo/api.html +4 -26
  2. package/components/checkbox/demo/getting-started.md +5 -6
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/api.html +4 -25
  7. package/components/combobox/demo/getting-started.md +76 -27
  8. package/components/combobox/demo/index.min.js +15 -1
  9. package/components/combobox/demo/registered.min.js +1517 -1509
  10. package/components/combobox/dist/auro-combobox.d.ts +1 -1
  11. package/components/combobox/dist/index.js +18 -11
  12. package/components/combobox/dist/registered.js +18 -11
  13. package/components/counter/demo/api.html +5 -29
  14. package/components/counter/demo/getting-started.md +4 -3
  15. package/components/counter/demo/index.min.js +8392 -1
  16. package/components/counter/dist/index.js +53 -5284
  17. package/components/counter/dist/registered.js +106 -5110
  18. package/components/datepicker/demo/accessibility.html +0 -1
  19. package/components/datepicker/demo/api.html +4 -29
  20. package/components/datepicker/demo/getting-started.md +25 -2
  21. package/components/datepicker/demo/index.min.js +24612 -1
  22. package/components/datepicker/demo/readme.html +2 -10
  23. package/components/datepicker/dist/index.js +10 -10
  24. package/components/datepicker/dist/registered.js +10 -10
  25. package/components/dropdown/demo/api.html +5 -31
  26. package/components/dropdown/demo/getting-started.md +34 -2
  27. package/components/dropdown/demo/index.min.js +5097 -1
  28. package/components/dropdown/dist/index.js +1 -1
  29. package/components/dropdown/dist/registered.js +1 -1
  30. package/components/form/demo/api.html +5 -27
  31. package/components/form/demo/getting-started.md +5 -6
  32. package/components/form/demo/index.min.js +719 -2
  33. package/components/form/demo/keyboard-behavior.md +38 -0
  34. package/components/form/demo/pages.json +1 -1
  35. package/components/form/demo/registerDemoDeps.min.js +11842 -60908
  36. package/components/input/demo/accessibility.md +1 -1
  37. package/components/input/demo/api.html +15 -26
  38. package/components/input/demo/auro-input.min.js +1 -1
  39. package/components/input/demo/getting-started.md +1 -1
  40. package/components/input/demo/readme.html +2 -10
  41. package/components/input/dist/index.js +1 -1
  42. package/components/input/dist/registered.js +1 -1
  43. package/components/menu/demo/api.html +5 -30
  44. package/components/menu/demo/api.md +1 -1
  45. package/components/menu/demo/getting-started.md +1 -1
  46. package/components/menu/demo/index.min.js +1574 -1573
  47. package/components/menu/dist/auro-menu.context.d.ts +0 -1
  48. package/components/menu/dist/auro-menu.d.ts +1 -1
  49. package/components/menu/dist/index.js +1609 -1608
  50. package/components/menu/dist/registered.js +1553 -1552
  51. package/components/radio/demo/api.html +7 -28
  52. package/components/radio/demo/getting-started.md +27 -2
  53. package/components/radio/demo/index.md +1 -3
  54. package/components/radio/demo/index.min.js +1 -1
  55. package/components/radio/demo/readme.md +0 -2
  56. package/components/radio/dist/index.js +1 -1
  57. package/components/radio/dist/registered.js +1 -1
  58. package/components/select/demo/api.html +5 -42
  59. package/components/select/demo/getting-started.md +39 -5
  60. package/components/select/demo/registered.min.js +1503 -1502
  61. package/components/select/dist/index.js +2 -2
  62. package/components/select/dist/registered.js +2 -2
  63. package/custom-elements.json +1487 -1489
  64. package/package.json +37 -4
  65. package/components/combobox/demo/api.js +0 -39
  66. package/components/combobox/demo/api.min.js +0 -106
  67. package/components/combobox/demo/install.html +0 -50
  68. package/components/combobox/demo/styles.css +0 -974
  69. package/components/combobox/demo/swap-value.min.js +0 -16
  70. package/components/counter/demo/api.js +0 -24
  71. package/components/counter/demo/api.min.js +0 -52
  72. package/components/counter/demo/auro-counter-group.min.js +0 -8394
  73. package/components/datepicker/demo/api.js +0 -37
  74. package/components/datepicker/demo/api.min.js +0 -300
  75. package/components/datepicker/demo/auro-datepicker.min.js +0 -24614
  76. package/components/dropdown/demo/api.js +0 -26
  77. package/components/dropdown/demo/api.min.js +0 -109
  78. package/components/dropdown/demo/auro-dropdown.min.js +0 -5099
  79. package/components/form/demo/api.js +0 -5
  80. package/components/form/demo/api.min.js +0 -5
  81. package/components/form/demo/auro-form.min.js +0 -718
  82. package/components/form/demo/autocomplete.html +0 -31
  83. package/components/radio/demo/api.js +0 -19
  84. package/components/radio/demo/api.min.js +0 -44
  85. 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-pr1460.2",
3
+ "version": "0.0.0-pr1464.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,34 @@
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
+ "undici@<=6.23.0": "^6.24.0",
98
+ "@rollup/plugin-terser": "^1.0.0"
99
+ },
88
100
  "devDependencies": {
101
+ "@alaskaairux/icons": "^5.14.0",
102
+ "@aurodesignsystem/auro-header": "^5.0.0",
103
+ "@aurodesignsystem/auro-icon": "^9.1.1",
104
+ "@aurodesignsystem/auro-popover": "^6.0.0",
105
+ "@floating-ui/dom": "^1.6.13",
106
+ "@popperjs/core": "^2.11.8",
107
+ "date-fns": "^4.1.0",
108
+ "focus-visible": "^5.2.1",
109
+ "imask": "^7.6.1",
89
110
  "@aurodesignsystem/auro-accordion": "^6.1.3",
90
111
  "@aurodesignsystem/auro-button": "^12.3.2",
91
112
  "@aurodesignsystem/auro-dialog": "^4.1.1",
@@ -108,6 +129,7 @@
108
129
  "@custom-elements-manifest/analyzer": "^0.11.0",
109
130
  "@eslint/compat": "^2.0.5",
110
131
  "@open-wc/testing": "^4.0.0",
132
+ "@rollup/plugin-node-resolve": "^16.0.1",
111
133
  "@semantic-release/changelog": "^6.0.3",
112
134
  "@semantic-release/git": "^10.0.1",
113
135
  "@semantic-release/npm": "^13.1.5",
@@ -131,7 +153,6 @@
131
153
  "compression": "^1.8.1",
132
154
  "concat": "^1.0.3",
133
155
  "concurrently": "^9.2.1",
134
- "copyfiles": "^2.4.1",
135
156
  "core-js": "^3.49.0",
136
157
  "eslint": "^10.2.1",
137
158
  "eslint-plugin-jsdoc": "^62.9.0",
@@ -142,14 +163,22 @@
142
163
  "mockdate": "^3.0.5",
143
164
  "nodemon": "^3.1.14",
144
165
  "npm-run-all": "^4.1.5",
166
+ "@playwright/test": "^1.59.1",
145
167
  "playwright": "^1.59.1",
146
168
  "postcss": "^8.5.10",
147
169
  "postcss-custom-properties": "^15.0.1",
148
170
  "postcss-discard-comments": "^7.0.7",
171
+ "postcss-selector-replace": "^1.0.2",
149
172
  "prettier": "^3.8.3",
173
+ "@rollup/plugin-commonjs": "^28.0.3",
174
+ "globals": "^17.4.0",
175
+ "monocart-reporter": "^2.10.1",
176
+ "rollup": "^4.45.1",
177
+ "rollup-plugin-serve": "^3.0.0",
150
178
  "sass": "^1.99.0",
151
179
  "semantic-release": "^25.0.3",
152
180
  "shadow-dom-testing-library": "^1.13.1",
181
+ "sinon": "^21.0.0",
153
182
  "storybook": "^10.3.5",
154
183
  "storybook-addon-pseudo-states": "^10.3.5",
155
184
  "storybook-addon-tag-badges": "^3.1.0",
@@ -160,8 +189,12 @@
160
189
  "stylelint-order": "^8.1.1",
161
190
  "stylelint-scss": "^7.0.0",
162
191
  "turbo": "^2.9.6",
192
+ "@types/node": "^24.12.0",
163
193
  "typescript": "^6.0.3",
194
+ "vite": "^8.0.5",
164
195
  "vitest": "^4.1.5",
196
+ "@noticeable/sass-render": "^3.0.0",
197
+ "web-component-analyzer": "^2.0.0",
165
198
  "whatwg-fetch": "^3.6.20",
166
199
  "yaml-lint": "^1.7.0",
167
200
  "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>