@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.10 → 0.0.0-pr1451.12
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.md +40 -40
- package/components/checkbox/demo/api.min.js +1 -1
- 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 +5 -52
- package/components/combobox/demo/api.md +53 -2261
- package/components/combobox/demo/api.min.js +3 -3
- package/components/combobox/demo/customize.html +53 -0
- package/components/combobox/demo/customize.js +24 -0
- package/components/combobox/demo/customize.md +1099 -0
- package/components/combobox/demo/customize.min.js +18129 -0
- package/components/combobox/demo/demo-support.js +60 -0
- package/components/combobox/demo/getting-started.html +53 -0
- package/components/combobox/demo/getting-started.js +21 -0
- package/components/combobox/demo/getting-started.md +385 -0
- package/components/combobox/demo/getting-started.min.js +17966 -0
- package/components/combobox/demo/index.html +4 -47
- package/components/combobox/demo/index.md +0 -13
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/demo/install.min.js +3 -3
- package/components/combobox/demo/styles.css +97 -104
- package/components/combobox/demo/voiceover.md +1 -1
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/api.md +49 -49
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.md +69 -69
- package/components/datepicker/demo/api.min.js +3 -3
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/api.md +40 -40
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.md +14 -14
- package/components/form/demo/api.min.js +10286 -1891
- package/components/form/demo/index.min.js +10286 -1891
- package/components/input/demo/api.md +67 -67
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.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.md +43 -43
- package/components/radio/demo/api.md +44 -44
- package/components/radio/demo/api.min.js +1 -1
- 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.md +52 -52
- package/components/select/demo/customize.js +0 -1
- package/components/select/demo/customize.md +4 -4
- package/components/select/demo/customize.min.js +14 -648
- package/components/select/demo/getting-started.js +0 -1
- package/components/select/demo/getting-started.md +34 -0
- package/components/select/demo/getting-started.min.js +14 -648
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +1433 -1433
- package/package.json +3 -3
|
@@ -8,41 +8,41 @@ The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements..
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
10
|
| Property | Attribute | Type | Default | Description |
|
|
11
|
-
|---------------------------------|---------------------------------|--------------------------|-------------|--------------------------------------------------|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
11
|
+
|---------------------------------|---------------------------------|--------------------------|-------------|--------------------------------------------------|
|
|
12
|
+
| `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
13
|
+
| `disabled` | `disabled` | `boolean` | | If set, disables the checkbox group. |
|
|
14
|
+
| `error` | `error` | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
15
|
+
| `horizontal` | `horizontal` | `boolean` | | If set, checkboxes will be aligned horizontally. |
|
|
16
|
+
| `noValidate` | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
|
|
17
|
+
| `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
18
|
+
| `required` | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
19
|
+
| `setCustomValidity` | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
20
|
+
| `setCustomValidityCustomError` | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
21
|
+
| `setCustomValidityValueMissing` | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
22
|
+
| `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
23
23
|
|
|
24
24
|
## Methods
|
|
25
25
|
|
|
26
26
|
| Method | Type | Description |
|
|
27
|
-
|------------|----------------------------------------|--------------------------------------------------|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
27
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
28
|
+
| `reset` | `(): void` | Resets component to initial state. |
|
|
29
|
+
| `validate` | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
30
30
|
|
|
31
31
|
## Events
|
|
32
32
|
|
|
33
33
|
| Event | Type | Description |
|
|
34
34
|
|-----------------------------|--------------------|--------------------------------------------------|
|
|
35
|
-
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
36
|
-
|
|
|
35
|
+
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
36
|
+
| `input` | `CustomEvent<any>` | |
|
|
37
37
|
|
|
38
38
|
## Slots
|
|
39
39
|
|
|
40
40
|
| Name | Description |
|
|
41
|
-
|-----------------|--------------------------------------------------|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
41
|
+
|-----------------|--------------------------------------------------|
|
|
42
|
+
| `default` | The default slot for the checkbox items. |
|
|
43
|
+
| `helpText` | Allows for the helper text to be overridden. |
|
|
44
|
+
| `legend` | Allows for the legend to be overridden. |
|
|
45
|
+
| `optionalLabel` | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
46
46
|
|
|
47
47
|
# auro-checkbox
|
|
48
48
|
|
|
@@ -51,21 +51,21 @@ The `auro-checkbox` element is for the purpose of allowing users to select one o
|
|
|
51
51
|
## Properties
|
|
52
52
|
|
|
53
53
|
| Property | Attribute | Type | Default | Description |
|
|
54
|
-
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
54
|
+
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
55
|
+
| `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
56
|
+
| `checked` | `checked` | `boolean` | | If set to true, the checkbox will be filled with a checkmark. |
|
|
57
|
+
| `disabled` | `disabled` | `boolean` | | If set to true, the checkbox will not be clickable. |
|
|
58
|
+
| `error` | `error` | `boolean` | | If set to true, the checkbox will be displayed with an error state. |
|
|
59
|
+
| `id` | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
|
|
60
|
+
| `name` | `name` | `string` | | Accepts any string and is used to identify related checkboxes when submitting form data. |
|
|
61
|
+
| `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
62
|
+
| `value` | `value` | `string` | | Sets the element's input value. Must be unique within an auro-checkbox-group element. |
|
|
63
63
|
|
|
64
64
|
## Methods
|
|
65
65
|
|
|
66
66
|
| Method | Type | Description |
|
|
67
|
-
|---------|------------|------------------------------------|
|
|
68
|
-
|
|
|
67
|
+
|---------|------------|------------------------------------|
|
|
68
|
+
| `reset` | `(): void` | Resets component to initial state. |
|
|
69
69
|
|
|
70
70
|
## Events
|
|
71
71
|
|
|
@@ -73,21 +73,21 @@ The `auro-checkbox` element is for the purpose of allowing users to select one o
|
|
|
73
73
|
|-------------------------|--------------------|--------------------------------------------------|
|
|
74
74
|
| `auroCheckbox-focusin` | `CustomEvent<any>` | |
|
|
75
75
|
| `auroCheckbox-focusout` | `CustomEvent<any>` | |
|
|
76
|
-
| `auroCheckbox-input` | `CustomEvent<any>` | |
|
|
77
|
-
|
|
|
78
|
-
|
|
|
76
|
+
| `auroCheckbox-input` | `CustomEvent<any>` | |
|
|
77
|
+
| `change` | | (Deprecated) Notifies when checked value is changed. |
|
|
78
|
+
| `input` | | Notifies when when checked value is changed by user's interface. |
|
|
79
79
|
|
|
80
80
|
## Slots
|
|
81
81
|
|
|
82
82
|
| Name | Description |
|
|
83
|
-
|-----------|------------------------------------------|
|
|
84
|
-
|
|
|
83
|
+
|-----------|------------------------------------------|
|
|
84
|
+
| `default` | The default slot for the checkbox label. |
|
|
85
85
|
|
|
86
86
|
## CSS Shadow Parts
|
|
87
87
|
|
|
88
88
|
| Part | Description |
|
|
89
|
-
|------------------|-------------------------------------------|
|
|
90
|
-
|
|
|
89
|
+
|------------------|-------------------------------------------|
|
|
90
|
+
| `checkbox` | apply css to a specific checkbox. |
|
|
91
91
|
| `checkbox-input` | apply css to a specific checkbox's input. |
|
|
92
92
|
| `checkbox-label` | apply css to a specific checkbox's label. |
|
|
93
93
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1689,7 +1689,7 @@ class AuroHelpText extends i$2 {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
|
-
var formkitVersion = '
|
|
1692
|
+
var formkitVersion = '202604302125';
|
|
1693
1693
|
|
|
1694
1694
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1695
1695
|
// See LICENSE in the project root for license information.
|
|
@@ -1681,7 +1681,7 @@ class AuroHelpText extends i$2 {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
1683
|
|
|
1684
|
-
var formkitVersion = '
|
|
1684
|
+
var formkitVersion = '202604302125';
|
|
1685
1685
|
|
|
1686
1686
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1687
1687
|
// See LICENSE in the project root for license information.
|
|
@@ -1634,7 +1634,7 @@ class AuroHelpText extends LitElement {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
var formkitVersion = '
|
|
1637
|
+
var formkitVersion = '202604302125';
|
|
1638
1638
|
|
|
1639
1639
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1640
1640
|
// See LICENSE in the project root for license information.
|
|
@@ -1634,7 +1634,7 @@ class AuroHelpText extends LitElement {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
var formkitVersion = '
|
|
1637
|
+
var formkitVersion = '202604302125';
|
|
1638
1638
|
|
|
1639
1639
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1640
1640
|
// See LICENSE in the project root for license information.
|
|
@@ -38,63 +38,16 @@
|
|
|
38
38
|
<body class="auro-markdown">
|
|
39
39
|
<main></main>
|
|
40
40
|
|
|
41
|
-
<script type="module">
|
|
42
|
-
import {unified} from 'https://esm.sh/unified';
|
|
43
|
-
import remarkParse from 'https://esm.sh/remark-parse';
|
|
44
|
-
import remarkGfm from 'https://esm.sh/remark-gfm';
|
|
45
|
-
import remarkRehype from 'https://esm.sh/remark-rehype';
|
|
46
|
-
import rehypeRaw from 'https://esm.sh/rehype-raw';
|
|
47
|
-
import rehypeHighlight from 'https://esm.sh/rehype-highlight';
|
|
48
|
-
import rehypeStringify from 'https://esm.sh/rehype-stringify';
|
|
49
|
-
|
|
50
|
-
const response = await fetch('./api.md');
|
|
51
|
-
const text = await response.text();
|
|
52
|
-
const result = await unified()
|
|
53
|
-
.use(remarkParse)
|
|
54
|
-
.use(remarkGfm)
|
|
55
|
-
.use(remarkRehype, { allowDangerousHtml: true })
|
|
56
|
-
.use(rehypeRaw)
|
|
57
|
-
.use(rehypeHighlight)
|
|
58
|
-
.use(rehypeStringify)
|
|
59
|
-
.process(text);
|
|
60
|
-
|
|
61
|
-
document.querySelector('main').innerHTML = String(result);
|
|
62
|
-
addCopyButtons();
|
|
63
|
-
|
|
64
|
-
function addCopyButtons() {
|
|
65
|
-
document.querySelectorAll('pre code[class*="language-"], pre code[class*="hljs"]').forEach((code) => {
|
|
66
|
-
const pre = code.parentElement;
|
|
67
|
-
const wrapper = document.createElement('div');
|
|
68
|
-
wrapper.className = 'pre-wrapper';
|
|
69
|
-
pre.parentNode.insertBefore(wrapper, pre);
|
|
70
|
-
wrapper.appendChild(pre);
|
|
71
|
-
const btn = document.createElement('button');
|
|
72
|
-
btn.className = 'copy-btn';
|
|
73
|
-
btn.textContent = 'Copy';
|
|
74
|
-
btn.addEventListener('click', () => {
|
|
75
|
-
const raw = code.textContent;
|
|
76
|
-
const text = raw.replace(/\u200B/g, '').replace(/^\n+/, '').replace(/\n+$/, '\n').replace(/^\$ /, '');
|
|
77
|
-
navigator.clipboard.writeText(text).then(() => {
|
|
78
|
-
btn.textContent = 'Copied!';
|
|
79
|
-
setTimeout(() => { btn.textContent = 'Copy'; }, 1500);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
wrapper.appendChild(btn);
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
41
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
88
42
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
89
43
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
90
44
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
91
|
-
<script
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<script type="module" data-demo-script="true">
|
|
96
|
-
import { initExamples } from "./api.min.js"
|
|
45
|
+
<script type="module">
|
|
46
|
+
import { renderPage } from './demo-support.js';
|
|
47
|
+
await renderPage('./api.md');
|
|
48
|
+
import { initExamples } from "./api.min.js";
|
|
97
49
|
initExamples();
|
|
98
50
|
</script>
|
|
51
|
+
<script src="./api.min.js" data-demo-script="true" type="module"></script>
|
|
99
52
|
</body>
|
|
100
53
|
</html>
|