@aurodesignsystem-dev/auro-formkit 0.0.0-pr1452.3 → 0.0.0-pr1452.5

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 (69) hide show
  1. package/components/checkbox/demo/api.html +4 -26
  2. package/components/checkbox/demo/index.min.js +1 -1
  3. package/components/checkbox/dist/index.js +1 -1
  4. package/components/checkbox/dist/registered.js +1 -1
  5. package/components/combobox/demo/api.html +4 -25
  6. package/components/combobox/demo/index.min.js +15 -1
  7. package/components/combobox/demo/registered.min.js +3 -3
  8. package/components/combobox/dist/index.js +3 -3
  9. package/components/combobox/dist/registered.js +3 -3
  10. package/components/counter/demo/api.html +5 -29
  11. package/components/counter/demo/index.min.js +8392 -1
  12. package/components/counter/dist/index.js +1 -1
  13. package/components/counter/dist/registered.js +1 -1
  14. package/components/datepicker/demo/api.html +4 -29
  15. package/components/datepicker/demo/index.min.js +24612 -1
  16. package/components/datepicker/dist/index.js +3 -3
  17. package/components/datepicker/dist/registered.js +3 -3
  18. package/components/dropdown/demo/api.html +5 -31
  19. package/components/dropdown/demo/index.min.js +5097 -1
  20. package/components/dropdown/dist/index.js +1 -1
  21. package/components/dropdown/dist/registered.js +1 -1
  22. package/components/form/demo/api.html +5 -27
  23. package/components/form/demo/index.min.js +716 -2
  24. package/components/form/demo/registerDemoDeps.min.js +5 -5
  25. package/components/input/demo/api.html +15 -26
  26. package/components/input/demo/auro-input.min.js +1 -1
  27. package/components/input/dist/index.js +1 -1
  28. package/components/input/dist/registered.js +1 -1
  29. package/components/menu/demo/api.html +5 -30
  30. package/components/menu/demo/index.min.js +2287 -1
  31. package/components/radio/demo/api.html +7 -28
  32. package/components/radio/demo/index.min.js +1 -1
  33. package/components/radio/dist/index.js +1 -1
  34. package/components/radio/dist/registered.js +1 -1
  35. package/components/select/demo/api.html +5 -42
  36. package/components/select/demo/getting-started.min.js +31 -1
  37. package/components/select/demo/registered.min.js +2 -2
  38. package/components/select/dist/index.js +2 -2
  39. package/components/select/dist/registered.js +2 -2
  40. package/custom-elements.json +1489 -1489
  41. package/package.json +1 -1
  42. package/components/checkbox/demo/api.js +0 -17
  43. package/components/checkbox/demo/api.min.js +0 -26
  44. package/components/combobox/demo/api.js +0 -39
  45. package/components/combobox/demo/api.min.js +0 -106
  46. package/components/combobox/demo/swap-value.min.js +0 -16
  47. package/components/counter/demo/api.js +0 -24
  48. package/components/counter/demo/api.min.js +0 -52
  49. package/components/counter/demo/auro-counter-group.min.js +0 -8394
  50. package/components/datepicker/demo/api.js +0 -37
  51. package/components/datepicker/demo/api.min.js +0 -300
  52. package/components/datepicker/demo/auro-datepicker.min.js +0 -24614
  53. package/components/dropdown/demo/api.js +0 -26
  54. package/components/dropdown/demo/api.min.js +0 -109
  55. package/components/dropdown/demo/auro-dropdown.min.js +0 -5099
  56. package/components/form/demo/api.js +0 -5
  57. package/components/form/demo/api.min.js +0 -8
  58. package/components/form/demo/auro-form.min.js +0 -718
  59. package/components/form/demo/autocomplete.html +0 -31
  60. package/components/input/demo/api.js +0 -8
  61. package/components/input/demo/api.min.js +0 -9
  62. package/components/menu/demo/api.js +0 -29
  63. package/components/menu/demo/api.min.js +0 -121
  64. package/components/menu/demo/auro-menuoption.min.js +0 -2289
  65. package/components/radio/demo/api.js +0 -19
  66. package/components/radio/demo/api.min.js +0 -44
  67. package/components/select/demo/api.js +0 -39
  68. package/components/select/demo/api.min.js +0 -83
  69. package/components/select/demo/update-active-option.min.js +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr1452.3",
3
+ "version": "0.0.0-pr1452.5",
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": {
@@ -1,17 +0,0 @@
1
- import { resetStateExample } from "../apiExamples/reset-state";
2
- import './index.js';
3
-
4
- export function initExamples(initCount) {
5
- initCount = initCount || 0;
6
-
7
- try {
8
- resetStateExample();
9
- } catch (error) {
10
- if (initCount <= 20) {
11
- // setTimeout handles issue where content is sometimes loaded after the functions get called
12
- setTimeout(() => {
13
- initExamples(initCount + 1);
14
- }, 100);
15
- }
16
- }
17
- }
@@ -1,26 +0,0 @@
1
- import './index.min.js';
2
-
3
- function resetStateExample() {
4
- const elem = document.querySelector('#resetStateExample');
5
-
6
- document.querySelector('#resetStateBtn').addEventListener('click', () => {
7
- elem.reset();
8
- });
9
- }
10
-
11
- function initExamples(initCount) {
12
- initCount = initCount || 0;
13
-
14
- try {
15
- resetStateExample();
16
- } catch (error) {
17
- if (initCount <= 20) {
18
- // setTimeout handles issue where content is sometimes loaded after the functions get called
19
- setTimeout(() => {
20
- initExamples(initCount + 1);
21
- }, 100);
22
- }
23
- }
24
- }
25
-
26
- export { initExamples };
@@ -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,16 +0,0 @@
1
- function swapValueExample() {
2
- const btn = document.querySelector('#swapExampleBtn');
3
- const comboboxOne = document.querySelector('#swapExampleLeft');
4
- const comboboxTwo = document.querySelector('#swapExampleRight');
5
-
6
- btn.addEventListener('click', () => {
7
- console.warn('swap value example button clicked');
8
- const valueOne = comboboxOne.value;
9
- const valueTwo = comboboxTwo.value;
10
-
11
- comboboxOne.value = valueTwo;
12
- comboboxTwo.value = valueOne;
13
- });
14
- }
15
-
16
- export { swapValueExample as s };
@@ -1,24 +0,0 @@
1
- /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
2
- import '../src/registered.js';
3
- // import { dropdownCounterExample } from "../apiExamples/dropdown-mobile-properties.js";
4
- import { eventCounterExample } from "../apiExamples/events.js";
5
- import { inDialogExample } from "../apiExamples/in-dialog.js";
6
- import { inDrawerExample } from "../apiExamples/in-drawer.js";
7
-
8
- export function initExamples(initialCount = 0) {
9
- try {
10
- // javascript example function calls to be added here upon creation to test examples
11
- // dropdownCounterExample();
12
- eventCounterExample();
13
- inDialogExample();
14
- inDrawerExample();
15
-
16
- } catch (err) {
17
- if (initialCount <= 20) {
18
- // setTimeout handles issue where content is sometimes loaded after the functions get called
19
- setTimeout(() => {
20
- initExamples(initialCount + 1);
21
- }, 100);
22
- }
23
- }
24
- }
@@ -1,52 +0,0 @@
1
- import { A as AuroCounter, a as AuroCounterGroup } from './auro-counter-group.min.js';
2
-
3
- AuroCounter.register();
4
- AuroCounterGroup.register();
5
-
6
- function eventCounterExample() {
7
- const counter = document.getElementById('eventExample');
8
-
9
- counter.addEventListener('input', (event) => {
10
- console.log(`Values updated: ${JSON.stringify(event.detail)}`);
11
- });
12
- }
13
-
14
- function inDialogExample() {
15
- document.querySelector("#counter-dialog-opener").addEventListener("click", () => {
16
- const dialog = document.querySelector("#counter-dialog");
17
- dialog.open = true;
18
- });
19
- }
20
-
21
- function inDrawerExample() {
22
- document.querySelector("#counter-drawer-opener").addEventListener("click", () => {
23
- const drawer = document.querySelector("#counter-drawer");
24
- if (drawer.hasAttribute('open')) {
25
- drawer.removeAttribute('open');
26
- } else {
27
- drawer.setAttribute('open', true);
28
- }
29
- });
30
- }
31
-
32
- /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
33
-
34
- function initExamples(initialCount = 0) {
35
- try {
36
- // javascript example function calls to be added here upon creation to test examples
37
- // dropdownCounterExample();
38
- eventCounterExample();
39
- inDialogExample();
40
- inDrawerExample();
41
-
42
- } catch (err) {
43
- if (initialCount <= 20) {
44
- // setTimeout handles issue where content is sometimes loaded after the functions get called
45
- setTimeout(() => {
46
- initExamples(initialCount + 1);
47
- }, 100);
48
- }
49
- }
50
- }
51
-
52
- export { initExamples };