@aurodesignsystem-dev/auro-formkit 0.0.0-pr1508.0 → 0.0.0-pr1508.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/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/customize.min.js +8 -6
- package/components/checkbox/demo/getting-started.min.js +8 -6
- package/components/checkbox/demo/index.min.js +8 -6
- package/components/checkbox/dist/index.js +8 -6
- package/components/checkbox/dist/registered.js +8 -6
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/customize.md +2 -10
- package/components/combobox/demo/customize.min.js +386 -305
- package/components/combobox/demo/getting-started.min.js +386 -301
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +386 -301
- package/components/combobox/demo/keyboard-behavior.md +2 -142
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/demo/why-combobox.md +2 -2
- package/components/combobox/dist/auro-combobox.d.ts +23 -16
- package/components/combobox/dist/index.js +385 -300
- package/components/combobox/dist/registered.js +385 -300
- package/components/counter/demo/customize.min.js +18 -8
- package/components/counter/demo/index.min.js +18 -8
- package/components/counter/dist/index.js +18 -8
- package/components/counter/dist/registered.js +18 -8
- package/components/datepicker/demo/accessibility.md +2 -1
- package/components/datepicker/demo/api.md +63 -62
- package/components/datepicker/demo/customize.md +12 -1
- package/components/datepicker/demo/customize.min.js +932 -335
- package/components/datepicker/demo/index.min.js +932 -335
- package/components/datepicker/dist/{src/auro-calendar-cell.d.ts → auro-calendar-cell.d.ts} +20 -3
- package/components/datepicker/dist/{src/auro-calendar.d.ts → auro-calendar.d.ts} +121 -7
- package/components/datepicker/dist/{src/auro-datepicker.d.ts → auro-datepicker.d.ts} +78 -5
- package/components/datepicker/dist/blackoutUtils.d.ts +43 -0
- package/components/datepicker/dist/index.js +932 -335
- package/components/datepicker/dist/registered.js +932 -335
- package/components/dropdown/demo/customize.min.js +2 -1
- package/components/dropdown/demo/getting-started.min.js +2 -1
- package/components/dropdown/demo/index.min.js +2 -1
- package/components/dropdown/dist/index.js +2 -1
- package/components/dropdown/dist/registered.js +2 -1
- package/components/form/demo/customize.min.js +1690 -826
- package/components/form/demo/getting-started.min.js +1690 -826
- package/components/form/demo/index.min.js +1690 -826
- package/components/form/demo/registerDemoDeps.min.js +1690 -826
- package/components/input/demo/api.md +5 -5
- package/components/input/demo/customize.md +8 -8
- package/components/input/demo/customize.min.js +137 -95
- package/components/input/demo/getting-started.min.js +137 -95
- package/components/input/demo/index.min.js +137 -95
- package/components/input/dist/base-input.d.ts +33 -44
- package/components/input/dist/index.js +150 -96
- package/components/input/dist/registered.js +137 -95
- package/components/radio/demo/customize.min.js +8 -6
- package/components/radio/demo/getting-started.min.js +8 -6
- package/components/radio/demo/index.min.js +8 -6
- package/components/radio/dist/index.js +8 -6
- package/components/radio/dist/registered.js +8 -6
- package/components/select/demo/customize.md +86 -0
- package/components/select/demo/customize.min.js +194 -68
- package/components/select/demo/getting-started.min.js +196 -115
- package/components/select/demo/index.min.js +194 -68
- package/components/select/demo/keyboard-behavior.md +18 -4
- package/components/select/dist/auro-select.d.ts +20 -8
- package/components/select/dist/index.js +194 -68
- package/components/select/dist/registered.js +194 -68
- package/custom-elements.json +2365 -1819
- package/package.json +6 -2
- package/components/checkbox/demo/customize.js +0 -22
- package/components/checkbox/demo/demo-support.js +0 -1
- package/components/checkbox/demo/getting-started.js +0 -22
- package/components/checkbox/demo/index.js +0 -8
- package/components/checkbox/demo/styles.scss +0 -1
- package/components/combobox/demo/customize.js +0 -24
- package/components/combobox/demo/demo-support.js +0 -1
- package/components/combobox/demo/getting-started.js +0 -21
- package/components/combobox/demo/index.js +0 -23
- package/components/combobox/demo/styles.scss +0 -1
- package/components/counter/demo/customize.js +0 -21
- package/components/counter/demo/demo-support.js +0 -1
- package/components/counter/demo/index.js +0 -21
- package/components/counter/demo/styles.scss +0 -1
- package/components/datepicker/demo/customize.js +0 -17
- package/components/datepicker/demo/demo-support.js +0 -1
- package/components/datepicker/demo/index.js +0 -23
- package/components/datepicker/demo/styles.scss +0 -1
- package/components/dropdown/demo/customize.js +0 -9
- package/components/dropdown/demo/demo-support.js +0 -1
- package/components/dropdown/demo/getting-started.js +0 -9
- package/components/dropdown/demo/index.js +0 -16
- package/components/dropdown/demo/styles.scss +0 -1
- package/components/form/demo/customize.js +0 -28
- package/components/form/demo/demo-support.js +0 -1
- package/components/form/demo/getting-started.js +0 -9
- package/components/form/demo/index.js +0 -5
- package/components/form/demo/registerDemoDeps.js +0 -23
- package/components/form/demo/styles.scss +0 -1
- package/components/input/demo/customize.js +0 -25
- package/components/input/demo/demo-support.js +0 -1
- package/components/input/demo/getting-started.js +0 -8
- package/components/input/demo/index.js +0 -8
- package/components/input/demo/styles.css +0 -974
- package/components/input/demo/styles.scss +0 -1
- package/components/menu/demo/demo-support.js +0 -1
- package/components/menu/demo/index.js +0 -25
- package/components/menu/demo/styles.scss +0 -1
- package/components/radio/demo/customize.js +0 -22
- package/components/radio/demo/demo-support.js +0 -1
- package/components/radio/demo/getting-started.js +0 -24
- package/components/radio/demo/index.js +0 -8
- package/components/radio/demo/styles.scss +0 -1
- package/components/select/demo/customize.js +0 -11
- package/components/select/demo/demo-support.js +0 -1
- package/components/select/demo/getting-started.js +0 -26
- package/components/select/demo/index.js +0 -11
- package/components/select/demo/styles.scss +0 -1
- /package/components/datepicker/dist/{src/auro-calendar-month.d.ts → auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{src/buttonVersion.d.ts → buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/datepickerKeyboardStrategy.d.ts → datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{src/iconVersion.d.ts → iconVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/components/datepicker/dist/{src/popoverVersion.d.ts → popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/utilities.d.ts → utilities.d.ts} +0 -0
- /package/components/datepicker/dist/{src/utilitiesCalendar.d.ts → utilitiesCalendar.d.ts} +0 -0
- /package/components/datepicker/dist/{src/utilitiesCalendarRender.d.ts → utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-pr1508.
|
|
3
|
+
"version": "0.0.0-pr1508.2",
|
|
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": {
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
],
|
|
28
28
|
"files": [
|
|
29
29
|
"components/*/dist/**/*",
|
|
30
|
-
"components/*/demo
|
|
30
|
+
"components/*/demo/**/*.md",
|
|
31
|
+
"components/*/demo/**/*.html",
|
|
32
|
+
"components/*/demo/**/*.min.*",
|
|
33
|
+
"components/*/demo/**/*.json",
|
|
31
34
|
"CHANGELOG.md",
|
|
32
35
|
"README.md",
|
|
33
36
|
"LICENSE",
|
|
@@ -155,6 +158,7 @@
|
|
|
155
158
|
"concat": "^1.0.3",
|
|
156
159
|
"concurrently": "^9.2.1",
|
|
157
160
|
"core-js": "^3.49.0",
|
|
161
|
+
"cross-env": "^10.1.0",
|
|
158
162
|
"date-fns": "^4.1.0",
|
|
159
163
|
"eslint": "^10.2.1",
|
|
160
164
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AuroCheckbox } from '../src/auro-checkbox.js';
|
|
2
|
-
import { AuroCheckboxGroup } from '../src/auro-checkbox-group.js';
|
|
3
|
-
|
|
4
|
-
AuroCheckbox.register(); // registering to `auro-checkbox`
|
|
5
|
-
AuroCheckboxGroup.register(); // registering to `auro-checkbox-group`
|
|
6
|
-
|
|
7
|
-
AuroCheckbox.register('custom-checkbox');
|
|
8
|
-
AuroCheckboxGroup.register('custom-checkbox-group');
|
|
9
|
-
|
|
10
|
-
export function initExamples(initCount) {
|
|
11
|
-
initCount = initCount || 0;
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
// Add any example initialization code here.
|
|
15
|
-
} catch (err) {
|
|
16
|
-
if (initCount <= 20) {
|
|
17
|
-
setTimeout(() => {
|
|
18
|
-
initExamples(initCount + 1);
|
|
19
|
-
}, 100);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AuroCheckbox } from '../src/auro-checkbox.js';
|
|
2
|
-
import { AuroCheckboxGroup } from '../src/auro-checkbox-group.js';
|
|
3
|
-
|
|
4
|
-
AuroCheckbox.register(); // registering to `auro-checkbox`
|
|
5
|
-
AuroCheckboxGroup.register(); // registering to `auro-checkbox-group`
|
|
6
|
-
|
|
7
|
-
AuroCheckbox.register('custom-checkbox');
|
|
8
|
-
AuroCheckboxGroup.register('custom-checkbox-group');
|
|
9
|
-
|
|
10
|
-
export function initExamples(initCount) {
|
|
11
|
-
initCount = initCount || 0;
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
// Add any example initialization code here.
|
|
15
|
-
} catch (err) {
|
|
16
|
-
if (initCount <= 20) {
|
|
17
|
-
setTimeout(() => {
|
|
18
|
-
initExamples(initCount + 1);
|
|
19
|
-
}, 100);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AuroCheckbox } from '../src/auro-checkbox.js';
|
|
2
|
-
import { AuroCheckboxGroup } from '../src/auro-checkbox-group.js';
|
|
3
|
-
|
|
4
|
-
AuroCheckbox.register(); // registering to `auro-checkbox`
|
|
5
|
-
AuroCheckboxGroup.register(); // registering to `auro-checkbox-group`
|
|
6
|
-
|
|
7
|
-
AuroCheckbox.register('custom-checkbox');
|
|
8
|
-
AuroCheckboxGroup.register('custom-checkbox-group');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@aurodesignsystem/config/demo-styles';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// import { exampleFunction } from "exampleFile.js";
|
|
2
|
-
|
|
3
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
4
|
-
|
|
5
|
-
import { AuroCombobox } from '../src/auro-combobox.js';
|
|
6
|
-
import '../../menu/src/registered.js';
|
|
7
|
-
import { dynamicMenuExample } from '../apiExamples/dynamic-menu.js';
|
|
8
|
-
|
|
9
|
-
AuroCombobox.register(); // registering to `auro-combobox`
|
|
10
|
-
AuroCombobox.register('custom-combobox');
|
|
11
|
-
|
|
12
|
-
export async function initExamples(initCount) {
|
|
13
|
-
initCount = initCount || 0;
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
await dynamicMenuExample();
|
|
17
|
-
} catch (err) {
|
|
18
|
-
if (initCount <= 20) {
|
|
19
|
-
setTimeout(() => {
|
|
20
|
-
initExamples(initCount + 1);
|
|
21
|
-
}, 100);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { AuroCombobox } from '../src/auro-combobox.js';
|
|
4
|
-
import '../../menu/src/registered.js';
|
|
5
|
-
|
|
6
|
-
AuroCombobox.register();
|
|
7
|
-
AuroCombobox.register('custom-combobox');
|
|
8
|
-
|
|
9
|
-
export function initExamples(initCount) {
|
|
10
|
-
initCount = initCount || 0;
|
|
11
|
-
|
|
12
|
-
try {
|
|
13
|
-
// Add any example initialization code here.
|
|
14
|
-
} catch (err) {
|
|
15
|
-
if (initCount <= 20) {
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
initExamples(initCount + 1);
|
|
18
|
-
}, 100);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { swapValueExample } from '../apiExamples/swap-value';
|
|
4
|
-
|
|
5
|
-
import { AuroCombobox } from '../src/auro-combobox.js';
|
|
6
|
-
import '../../menu/src/registered.js';
|
|
7
|
-
|
|
8
|
-
AuroCombobox.register();
|
|
9
|
-
|
|
10
|
-
export function initExamples(initCount) {
|
|
11
|
-
initCount = initCount || 0;
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
swapValueExample();
|
|
15
|
-
} catch {
|
|
16
|
-
if (initCount <= 20) {
|
|
17
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
18
|
-
setTimeout(() => {
|
|
19
|
-
initExamples(initCount + 1);
|
|
20
|
-
}, 100);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@aurodesignsystem/config/demo-styles';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
import { AuroCounter } from '../src/auro-counter.js';
|
|
3
|
-
import { AuroCounterGroup } from '../src/auro-counter-group.js';
|
|
4
|
-
|
|
5
|
-
AuroCounter.register();
|
|
6
|
-
AuroCounterGroup.register();
|
|
7
|
-
AuroCounterGroup.register('custom-counter-group');
|
|
8
|
-
AuroCounter.register('custom-counter');
|
|
9
|
-
|
|
10
|
-
export function initExamples(initialCount = 0) {
|
|
11
|
-
try {
|
|
12
|
-
|
|
13
|
-
} catch (err) {
|
|
14
|
-
if (initialCount <= 20) {
|
|
15
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
initExamples(initialCount + 1);
|
|
18
|
-
}, 100);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
import { AuroCounter } from '../src/auro-counter.js';
|
|
3
|
-
import { AuroCounterGroup } from '../src/auro-counter-group.js';
|
|
4
|
-
|
|
5
|
-
AuroCounter.register();
|
|
6
|
-
AuroCounterGroup.register();
|
|
7
|
-
AuroCounterGroup.register('custom-counter-group');
|
|
8
|
-
AuroCounter.register('custom-counter');
|
|
9
|
-
|
|
10
|
-
export function initExamples(initialCount = 0) {
|
|
11
|
-
try {
|
|
12
|
-
|
|
13
|
-
} catch (err) {
|
|
14
|
-
if (initialCount <= 20) {
|
|
15
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
initExamples(initialCount + 1);
|
|
18
|
-
}, 100);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@aurodesignsystem/config/demo-styles';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AuroDatePicker } from '../src/auro-datepicker.js';
|
|
2
|
-
|
|
3
|
-
AuroDatePicker.register();
|
|
4
|
-
|
|
5
|
-
export function initExamples(initCount) {
|
|
6
|
-
initCount = initCount || 0;
|
|
7
|
-
|
|
8
|
-
try {
|
|
9
|
-
} catch {
|
|
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 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AuroDatePicker } from '../src/auro-datepicker.js';
|
|
2
|
-
import { blackoutLabelExample } from '../apiExamples/blackout-label.js';
|
|
3
|
-
|
|
4
|
-
AuroDatePicker.register(); // registering to auro-datepicker
|
|
5
|
-
AuroDatePicker.register('custom-datepicker');
|
|
6
|
-
|
|
7
|
-
export function initExamples(initCount) {
|
|
8
|
-
initCount = initCount || 0;
|
|
9
|
-
|
|
10
|
-
try {
|
|
11
|
-
// Only run when the demo element exists on the current page
|
|
12
|
-
if (document.querySelector('#blackoutLabelExample')) {
|
|
13
|
-
blackoutLabelExample();
|
|
14
|
-
}
|
|
15
|
-
} catch {
|
|
16
|
-
if (initCount <= 20) {
|
|
17
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
18
|
-
setTimeout(() => {
|
|
19
|
-
initExamples(initCount + 1);
|
|
20
|
-
}, 100);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@aurodesignsystem/config/demo-styles';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { AuroDropdown } from '../src/auro-dropdown.js';
|
|
4
|
-
AuroDropdown.register();
|
|
5
|
-
AuroDropdown.register('custom-dropdown');
|
|
6
|
-
|
|
7
|
-
export function initExamples() {
|
|
8
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { AuroDropdown } from '../src/auro-dropdown.js';
|
|
4
|
-
AuroDropdown.register();
|
|
5
|
-
AuroDropdown.register('custom-dropdown');
|
|
6
|
-
|
|
7
|
-
export function initExamples() {
|
|
8
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { classicExample } from '../apiExamples/classic/basic.js';
|
|
4
|
-
import { classicInverseExample } from '../apiExamples/classic/appearance-inverse.js';
|
|
5
|
-
import { customExample } from '../apiExamples/custom.js';
|
|
6
|
-
|
|
7
|
-
import { AuroDropdown } from '../src/auro-dropdown.js';
|
|
8
|
-
AuroDropdown.register();
|
|
9
|
-
AuroDropdown.register('custom-dropdown');
|
|
10
|
-
|
|
11
|
-
export function initExamples() {
|
|
12
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
13
|
-
classicExample();
|
|
14
|
-
classicInverseExample();
|
|
15
|
-
customExample();
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@aurodesignsystem/config/demo-styles';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc */
|
|
2
|
-
|
|
3
|
-
import { AuroForm } from '../src/auro-form.js';
|
|
4
|
-
import './registerDemoDeps.js';
|
|
5
|
-
import { AuroInput } from '@aurodesignsystem/auro-input';
|
|
6
|
-
import { AuroDatePicker } from '@aurodesignsystem/auro-datepicker';
|
|
7
|
-
import { disabledExample } from '../apiExamples/disabled.js';
|
|
8
|
-
import { disableAfterEditExample } from '../apiExamples/disabled-after-edit.js';
|
|
9
|
-
|
|
10
|
-
AuroInput.register('input-two');
|
|
11
|
-
AuroDatePicker.register();
|
|
12
|
-
AuroForm.register();
|
|
13
|
-
AuroForm.register('custom-form');
|
|
14
|
-
|
|
15
|
-
export async function initExamples(initCount) {
|
|
16
|
-
initCount = initCount || 0;
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
await disabledExample();
|
|
20
|
-
await disableAfterEditExample();
|
|
21
|
-
} catch (err) {
|
|
22
|
-
if (initCount <= 20) {
|
|
23
|
-
setTimeout(() => {
|
|
24
|
-
initExamples(initCount + 1);
|
|
25
|
-
}, 100);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AuroForm } from '../src/auro-form.js';
|
|
2
|
-
import './registerDemoDeps.js';
|
|
3
|
-
import { AuroInput } from '@aurodesignsystem/auro-input';
|
|
4
|
-
import { AuroDatePicker } from '@aurodesignsystem/auro-datepicker';
|
|
5
|
-
|
|
6
|
-
AuroInput.register('input-two');
|
|
7
|
-
AuroDatePicker.register();
|
|
8
|
-
AuroForm.register();
|
|
9
|
-
AuroForm.register('custom-form');
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import "@aurodesignsystem/auro-button";
|
|
2
|
-
import {AuroInput} from "@aurodesignsystem/auro-input";
|
|
3
|
-
import {AuroDatePicker} from "@aurodesignsystem/auro-datepicker";
|
|
4
|
-
import {AuroCounter, AuroCounterGroup} from "@aurodesignsystem/auro-counter";
|
|
5
|
-
import {AuroRadio, AuroRadioGroup} from "@aurodesignsystem/auro-radio";
|
|
6
|
-
import {AuroCheckbox, AuroCheckboxGroup} from "@aurodesignsystem/auro-checkbox";
|
|
7
|
-
import {AuroCombobox} from "@aurodesignsystem/auro-combobox";
|
|
8
|
-
import {AuroMenu, AuroMenuOption} from "@aurodesignsystem/auro-menu";
|
|
9
|
-
import {AuroSelect} from "@aurodesignsystem/auro-select";
|
|
10
|
-
|
|
11
|
-
AuroInput.register();
|
|
12
|
-
AuroInput.register('auro-input-two');
|
|
13
|
-
AuroDatePicker.register();
|
|
14
|
-
AuroCounter.register();
|
|
15
|
-
AuroCounterGroup.register();
|
|
16
|
-
AuroRadio.register();
|
|
17
|
-
AuroRadioGroup.register();
|
|
18
|
-
AuroCheckbox.register();
|
|
19
|
-
AuroCheckboxGroup.register();
|
|
20
|
-
AuroCombobox.register();
|
|
21
|
-
AuroMenu.register();
|
|
22
|
-
AuroMenuOption.register();
|
|
23
|
-
AuroSelect.register();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@aurodesignsystem/config/demo-styles';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AuroInput } from '../src/auro-input.js';
|
|
2
|
-
import { customError } from "../apiExamples/error";
|
|
3
|
-
import { setReadonlyValue } from "../apiExamples/readonly";
|
|
4
|
-
import { resetStateExample } from "../apiExamples/reset-state";
|
|
5
|
-
import { swapInputValues } from "../apiExamples/swap-value";
|
|
6
|
-
|
|
7
|
-
AuroInput.register();
|
|
8
|
-
AuroInput.register('custom-input');
|
|
9
|
-
|
|
10
|
-
export function initExamples(initCount) {
|
|
11
|
-
initCount = initCount || 0;
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
customError();
|
|
15
|
-
setReadonlyValue();
|
|
16
|
-
swapInputValues();
|
|
17
|
-
resetStateExample();
|
|
18
|
-
} catch (error) {
|
|
19
|
-
if (initCount <= 20) {
|
|
20
|
-
setTimeout(() => {
|
|
21
|
-
initExamples(initCount + 1);
|
|
22
|
-
}, 100);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|