@aurodesignsystem-dev/auro-formkit 0.0.0-pr1452.1 → 0.0.0-pr1452.2
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.js +17 -0
- package/components/checkbox/demo/api.min.js +26 -0
- 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/registered.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/auro-counter-group.min.js +2 -2
- package/components/counter/dist/index.js +13 -240
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/accessibility.html +0 -1
- package/components/datepicker/demo/auro-datepicker.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/auro-dropdown.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/keyboard-behavior.md +38 -0
- package/components/form/demo/pages.json +1 -1
- package/components/form/demo/registerDemoDeps.min.js +257 -257
- package/components/input/demo/api.js +8 -0
- package/components/input/demo/api.min.js +9 -0
- package/components/input/demo/auro-input.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.js +29 -0
- package/components/menu/demo/api.min.js +121 -0
- package/components/menu/demo/auro-menuoption.min.js +2289 -0
- package/components/menu/demo/index.min.js +1 -2287
- 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.js +39 -0
- package/components/select/demo/api.min.js +83 -0
- package/components/select/demo/getting-started.min.js +1 -31
- package/components/select/demo/registered.min.js +2 -2
- package/components/select/demo/update-active-option.min.js +32 -0
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +1 -1
- package/components/combobox/demo/install.html +0 -50
- package/components/combobox/demo/styles.css +0 -974
- package/components/select/demo/keyboardBehavior.html +0 -48
|
@@ -6614,7 +6614,7 @@ class AuroHelpText extends LitElement {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
var formkitVersion = '
|
|
6617
|
+
var formkitVersion = '202605070546';
|
|
6618
6618
|
|
|
6619
6619
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6620
6620
|
// See LICENSE in the project root for license information.
|
|
@@ -6614,7 +6614,7 @@ class AuroHelpText extends LitElement {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
var formkitVersion = '
|
|
6617
|
+
var formkitVersion = '202605070546';
|
|
6618
6618
|
|
|
6619
6619
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6620
6620
|
// See LICENSE in the project root for license information.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
+
|
|
3
|
+
import { auroMenuResetExample } from '../apiExamples/reset';
|
|
4
|
+
import { auroMenuMatchWordExample } from '../apiExamples/match-word';
|
|
5
|
+
import { initKeysExample } from '../apiExamples/keys';
|
|
6
|
+
import { auroMenuLoadingExample } from '../apiExamples/loading';
|
|
7
|
+
import { initSelectAllMatchingOptionsExample } from '../apiExamples/select-all-matching-options';
|
|
8
|
+
import '../src/registered.js';
|
|
9
|
+
|
|
10
|
+
export function initExamples(initCount) {
|
|
11
|
+
initCount = initCount || 0;
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
15
|
+
initKeysExample();
|
|
16
|
+
auroMenuLoadingExample();
|
|
17
|
+
auroMenuMatchWordExample();
|
|
18
|
+
initSelectAllMatchingOptionsExample();
|
|
19
|
+
auroMenuResetExample();
|
|
20
|
+
} catch (err) {
|
|
21
|
+
if (initCount <= 20) {
|
|
22
|
+
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
initExamples(initCount + 1);
|
|
25
|
+
}, 100);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { A as AuroMenu, a as AuroMenuOption } from './auro-menuoption.min.js';
|
|
2
|
+
|
|
3
|
+
function auroMenuResetExample() {
|
|
4
|
+
const resetExampleBtnElem = document.querySelector('#resetExampleBtn');
|
|
5
|
+
const resetExampleElem = document.querySelector('#resetExample');
|
|
6
|
+
|
|
7
|
+
if (resetExampleElem && resetExampleBtnElem) {
|
|
8
|
+
resetExampleBtnElem.addEventListener('click', () => {
|
|
9
|
+
resetExampleElem.reset();
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function updateMatch() {
|
|
15
|
+
let matchWordMenu = document.querySelector('#matchWordMenu');
|
|
16
|
+
|
|
17
|
+
matchWordMenu.matchWord = matchWordInput.value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function auroMenuMatchWordExample() {
|
|
21
|
+
let matchWordInput = document.querySelector('#matchWordInput');
|
|
22
|
+
|
|
23
|
+
matchWordInput.addEventListener('keyup', updateMatch);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function initKeysExample() {
|
|
27
|
+
const menu = document.getElementById('keys-menu');
|
|
28
|
+
const stopsButton = document.getElementById('stopsButton');
|
|
29
|
+
const stopsTopButton = document.getElementById('stopsTopButton');
|
|
30
|
+
const output = document.getElementById('output');
|
|
31
|
+
|
|
32
|
+
const createConsoleEntry = (message) => {
|
|
33
|
+
const node = document.createElement('span');
|
|
34
|
+
node.innerHTML = message;
|
|
35
|
+
output.appendChild(node);
|
|
36
|
+
output.appendChild(document.createElement('br'));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const resetConsole = () => {
|
|
40
|
+
output.innerHTML = '';
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const updateMenuValue = (value) => {
|
|
44
|
+
resetConsole();
|
|
45
|
+
createConsoleEntry(`Setting menu.value: <em>"${value}"</em>`);
|
|
46
|
+
menu.value = '';
|
|
47
|
+
menu.value = value;
|
|
48
|
+
createConsoleEntry(`menu.value before next lifecycle: <em>"${menu.value}"</em>`);
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
createConsoleEntry(`menu.value after lifecycle: <em>"${menu.value}"</em>`);
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
stopsButton.addEventListener('click', () => {
|
|
55
|
+
updateMenuValue('stops');
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
stopsTopButton.addEventListener('click', () => {
|
|
59
|
+
updateMenuValue('stops-top');
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function auroMenuLoadingExample() {
|
|
64
|
+
document.querySelector("#loadingExampleToggleButton").addEventListener("click", () => {
|
|
65
|
+
document.querySelectorAll("#loadingExampleTable auro-menu").forEach(menu => menu.toggleAttribute("loading"));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const initSelectAllMatchingOptionsExample = () => {
|
|
70
|
+
|
|
71
|
+
const selectAllBtn = document.getElementById('selectAllBtn');
|
|
72
|
+
const selectAllMenu = document.getElementById('selectAllMenu');
|
|
73
|
+
const selectFirstBtn = document.getElementById('selectFirstBtn');
|
|
74
|
+
const selectFirstMenu = document.getElementById('selectFirstMenu');
|
|
75
|
+
const resetAllBtn = document.getElementById('resetAllBtn');
|
|
76
|
+
const resetFirstBtn = document.getElementById('resetFirstBtn');
|
|
77
|
+
|
|
78
|
+
selectAllBtn.addEventListener('click', () => {
|
|
79
|
+
selectAllMenu.value = 'stops';
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
resetAllBtn.addEventListener('click', () => {
|
|
83
|
+
selectAllMenu.reset();
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
selectFirstBtn.addEventListener('click', () => {
|
|
87
|
+
selectFirstMenu.value = 'stops';
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
resetFirstBtn.addEventListener('click', () => {
|
|
91
|
+
selectFirstMenu.reset();
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
AuroMenu.register();
|
|
96
|
+
AuroMenuOption.register();
|
|
97
|
+
|
|
98
|
+
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
function initExamples(initCount) {
|
|
102
|
+
initCount = initCount || 0;
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
106
|
+
initKeysExample();
|
|
107
|
+
auroMenuLoadingExample();
|
|
108
|
+
auroMenuMatchWordExample();
|
|
109
|
+
initSelectAllMatchingOptionsExample();
|
|
110
|
+
auroMenuResetExample();
|
|
111
|
+
} catch (err) {
|
|
112
|
+
if (initCount <= 20) {
|
|
113
|
+
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
initExamples(initCount + 1);
|
|
116
|
+
}, 100);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { initExamples };
|