@aurodesignsystem-dev/auro-formkit 0.0.0-pr1457.0 → 0.0.0-pr1457.1
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/README.md +2 -2
- package/components/checkbox/demo/demo-support.js +1 -60
- package/components/checkbox/demo/getting-started.md +2 -2
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/install.md +2 -2
- package/components/checkbox/demo/readme.md +2 -2
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +2 -2
- package/components/combobox/demo/demo-support.js +1 -60
- package/components/combobox/demo/getting-started.md +2 -2
- package/components/combobox/demo/install.md +2 -2
- package/components/combobox/demo/readme.md +2 -2
- 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/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/README.md +2 -2
- package/components/datepicker/demo/auro-datepicker.min.js +3 -3
- package/components/datepicker/demo/demo-support.js +1 -60
- package/components/datepicker/demo/getting-started.md +2 -2
- package/components/datepicker/demo/readme.md +2 -2
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- 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.min.js +13 -13
- package/components/form/demo/index.min.js +13 -13
- package/components/input/README.md +2 -2
- package/components/input/demo/auro-input.min.js +1 -1
- package/components/input/demo/demo-support.js +1 -60
- package/components/input/demo/getting-started.md +2 -2
- package/components/input/demo/readme.md +2 -2
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/accessibility.html +1 -2
- package/components/radio/demo/api.html +1 -2
- package/components/radio/demo/api.md +44 -44
- package/components/radio/demo/api.min.js +2 -2168
- package/components/radio/demo/customize.html +1 -2
- package/components/radio/demo/demo-support.js +1 -60
- package/components/radio/demo/demo-support.min.js +55732 -0
- package/components/radio/demo/design.html +1 -2
- package/components/radio/demo/getting-started.html +1 -2
- package/components/radio/demo/index.html +1 -2
- package/components/radio/demo/index.min.js +16 -2
- package/components/radio/demo/keyboard-behavior.html +1 -2
- package/components/radio/demo/styles.min.css +1 -0
- package/components/radio/demo/styles.scss +1 -0
- package/components/radio/demo/voiceover.html +1 -2
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +2 -2
- package/components/select/demo/demo-support.js +1 -60
- package/components/select/demo/getting-started.md +2 -2
- package/components/select/demo/install.md +2 -2
- package/components/select/demo/readme.md +2 -2
- package/components/select/demo/registered.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +244 -244
- package/package.json +2 -2
- package/components/radio/demo/keyboard-behavior.md +0 -72
- package/components/radio/demo/layout.md +0 -30
- package/components/radio/demo/styles.css +0 -974
|
@@ -1,60 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import remarkParse from 'remark-parse';
|
|
3
|
-
import remarkGfm from 'remark-gfm';
|
|
4
|
-
import remarkRehype from 'remark-rehype';
|
|
5
|
-
import rehypeRaw from 'rehype-raw';
|
|
6
|
-
import rehypeHighlight from 'rehype-highlight';
|
|
7
|
-
import rehypeStringify from 'rehype-stringify';
|
|
8
|
-
|
|
9
|
-
export async function renderPage(mdPath) {
|
|
10
|
-
const response = await fetch(mdPath);
|
|
11
|
-
const text = await response.text();
|
|
12
|
-
const result = await unified()
|
|
13
|
-
.use(remarkParse)
|
|
14
|
-
.use(remarkGfm)
|
|
15
|
-
.use(remarkRehype, { allowDangerousHtml: true })
|
|
16
|
-
.use(rehypeRaw)
|
|
17
|
-
.use(rehypeHighlight)
|
|
18
|
-
.use(rehypeStringify)
|
|
19
|
-
.process(text);
|
|
20
|
-
|
|
21
|
-
document.querySelector('main').innerHTML = String(result);
|
|
22
|
-
addCopyButtons();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function addCopyButtons() {
|
|
26
|
-
document.querySelectorAll('pre code[class*="language-"], pre code[class*="hljs"]').forEach((code) => {
|
|
27
|
-
const pre = code.parentElement;
|
|
28
|
-
const wrapper = document.createElement('div');
|
|
29
|
-
wrapper.className = 'pre-wrapper';
|
|
30
|
-
pre.parentNode.insertBefore(wrapper, pre);
|
|
31
|
-
wrapper.appendChild(pre);
|
|
32
|
-
const btn = document.createElement('button');
|
|
33
|
-
btn.className = 'copy-btn';
|
|
34
|
-
btn.textContent = 'Copy';
|
|
35
|
-
btn.addEventListener('click', () => {
|
|
36
|
-
const raw = code.textContent;
|
|
37
|
-
const text = raw.replace(/\u200B/g, '').replace(/^\n+/, '').replace(/\n+$/, '\n').replace(/^\$ /, '');
|
|
38
|
-
navigator.clipboard.writeText(text).then(() => {
|
|
39
|
-
btn.textContent = 'Copied!';
|
|
40
|
-
setTimeout(() => { btn.textContent = 'Copy'; }, 1500);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
wrapper.appendChild(btn);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function openAccordion(id) {
|
|
48
|
-
document.querySelectorAll('auro-accordion').forEach((accordion) => {
|
|
49
|
-
accordion.removeAttribute('expanded');
|
|
50
|
-
});
|
|
51
|
-
const target = document.getElementById(id);
|
|
52
|
-
if (target) {
|
|
53
|
-
target.setAttribute('expanded', '');
|
|
54
|
-
setTimeout(() => {
|
|
55
|
-
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
56
|
-
}, 550);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
window.openAccordion = openAccordion;
|
|
1
|
+
export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<auro-header level="3">Install</auro-header>
|
|
44
44
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/templates/componentInstall.md) -->
|
|
45
45
|
<!-- The below content is automatically added from ./../../../docs/templates/componentInstall.md -->
|
|
46
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem
|
|
46
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
47
47
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
48
48
|
<auro-header level="3">Implementation</auro-header>
|
|
49
49
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customRegistration.md) -->
|
|
@@ -77,7 +77,7 @@ AuroInput.register('[custom]-input');</code></pre>
|
|
|
77
77
|
<auro-header level="3">Install</auro-header>
|
|
78
78
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/templates/componentInstall.md) -->
|
|
79
79
|
<!-- The below content is automatically added from ./../../../docs/templates/componentInstall.md -->
|
|
80
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem
|
|
80
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
81
81
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
82
|
<auro-header level="3">Implementation</auro-header>
|
|
83
83
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/defaultRegistration.md) -->
|
|
@@ -43,7 +43,7 @@ The following sections are editable by making changes to the following files:
|
|
|
43
43
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
44
44
|
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
45
45
|
|
|
46
|
-
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem
|
|
46
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
47
47
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
48
48
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
49
49
|
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
@@ -67,7 +67,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
67
67
|
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
68
68
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
69
69
|
|
|
70
|
-
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem
|
|
70
|
+
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"></script></code></pre>
|
|
71
71
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
72
72
|
|
|
73
73
|
## Formkit Development
|
|
@@ -6613,7 +6613,7 @@ class AuroHelpText extends LitElement {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
6615
|
|
|
6616
|
-
var formkitVersion = '
|
|
6616
|
+
var formkitVersion = '202605042114';
|
|
6617
6617
|
|
|
6618
6618
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6619
6619
|
// See LICENSE in the project root for license information.
|
|
@@ -6613,7 +6613,7 @@ class AuroHelpText extends LitElement {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
6615
|
|
|
6616
|
-
var formkitVersion = '
|
|
6616
|
+
var formkitVersion = '202605042114';
|
|
6617
6617
|
|
|
6618
6618
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6619
6619
|
// See LICENSE in the project root for license information.
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
32
|
|
|
33
33
|
<!-- Demo Specific Styles -->
|
|
34
|
-
<link rel="stylesheet" type="text/css" href="
|
|
35
|
-
<link rel="stylesheet" type="text/css" href="./styles.css" />
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
36
35
|
</head>
|
|
37
36
|
<body class="auro-markdown">
|
|
38
37
|
<main></main>
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
31
31
|
|
|
32
32
|
<!-- Demo Specific Styles -->
|
|
33
|
-
<link rel="stylesheet" type="text/css" href="
|
|
34
|
-
<link rel="stylesheet" type="text/css" href="./styles.css" />
|
|
33
|
+
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
35
34
|
</head>
|
|
36
35
|
<body class="auro-markdown">
|
|
37
36
|
<main></main>
|
|
@@ -8,42 +8,42 @@ The `auro-radio-group` element is used to group a set `auro-radio` 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
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
11
|
+
|---------------------------------|---------------------------------|--------------------------|-------------|--------------------------------------------------|
|
|
12
|
+
| [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
13
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If true, all radio buttons will be disabled. |
|
|
14
|
+
| [error](#error) | `error` | `string` | | If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
15
|
+
| [horizontal](#horizontal) | `horizontal` | `boolean` | | If true, displays radio buttons horizontally. |
|
|
16
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If true, disables auto-validation on blur. |
|
|
17
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
18
|
+
| [optionSelected](#optionSelected) | `optionSelected` | `object` | | Specifies the current selected radio button. |
|
|
19
|
+
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
20
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
21
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
22
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
23
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
24
|
+
| [value](#value) | `value` | `string` | | Specifies the current value of the selected radio button. |
|
|
25
25
|
|
|
26
26
|
## Methods
|
|
27
27
|
|
|
28
28
|
| Method | Type | Description |
|
|
29
|
-
|------------|----------------------------------------|--------------------------------------------------|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
29
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
30
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
31
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
32
32
|
|
|
33
33
|
## Events
|
|
34
34
|
|
|
35
35
|
| Event | Type | Description |
|
|
36
36
|
|-----------------------------|--------------------|--------------------------------------------------|
|
|
37
|
-
| `auroFormElement-validated` | | Notifies that the element has been validated. |
|
|
38
|
-
|
|
|
37
|
+
| `auroFormElement-validated` | | Notifies that the element has been validated. |
|
|
38
|
+
| [input](#input) | `CustomEvent<any>` | Notifies every time the value prop of the element is changed. |
|
|
39
39
|
|
|
40
40
|
## Slots
|
|
41
41
|
|
|
42
42
|
| Name | Description |
|
|
43
|
-
|-----------------|--------------------------------------------------|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
43
|
+
|-----------------|--------------------------------------------------|
|
|
44
|
+
| [helpText](#helpText) | Allows for the helper text to be overridden. |
|
|
45
|
+
| [legend](#legend) | Allows for the legend to be overridden. |
|
|
46
|
+
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
47
47
|
|
|
48
48
|
## CSS Shadow Parts
|
|
49
49
|
|
|
@@ -58,41 +58,41 @@ The `auro-radio` element is used to a button that allows the user to select one
|
|
|
58
58
|
## Properties
|
|
59
59
|
|
|
60
60
|
| Property | Attribute | Type | Default | Description |
|
|
61
|
-
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
61
|
+
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
62
|
+
| [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
63
|
+
| [checked](#checked) | `checked` | `boolean` | | If set to true, the radio button will be filled. |
|
|
64
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If set to true, the radio button will be non-clickable. |
|
|
65
|
+
| [error](#error) | `error` | `boolean` | | If set to true, sets an error state on the radio button. |
|
|
66
|
+
| [id](#id) | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
|
|
67
|
+
| [label](#label) | `label` | `string` | | Label for the radio button. |
|
|
68
|
+
| [name](#name) | `name` | `string` | | Name for the radio button group. |
|
|
69
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
70
|
+
| [required](#required) | `required` | `boolean` | | Defines element as required. |
|
|
71
|
+
| [value](#value) | `value` | `string` | | The value of the radio button. |
|
|
72
72
|
|
|
73
73
|
## Methods
|
|
74
74
|
|
|
75
75
|
| Method | Type | Description |
|
|
76
|
-
|---------|------------|------------------------------------|
|
|
77
|
-
|
|
|
76
|
+
|---------|------------|------------------------------------|
|
|
77
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
78
78
|
|
|
79
79
|
## Events
|
|
80
80
|
|
|
81
81
|
| Event | Type | Description |
|
|
82
82
|
|----------------------|--------------------|--------------------------------------------------|
|
|
83
83
|
| `auroRadio-blur` | `CustomEvent<any>` | Notifies that the component has lost focus. |
|
|
84
|
-
| `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
84
|
+
| `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
|
|
85
|
+
| [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
|
|
86
|
+
| [focusSelected](#focusSelected) | `CustomEvent<any>` | Notifies that the component has gained focus. |
|
|
87
|
+
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
88
|
+
| [resetRadio](#resetRadio) | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
|
|
89
|
+
| [toggleSelected](#toggleSelected) | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
|
|
90
90
|
|
|
91
91
|
## CSS Shadow Parts
|
|
92
92
|
|
|
93
93
|
| Part | Description |
|
|
94
|
-
|---------------|-------------------------------------------|
|
|
95
|
-
|
|
|
94
|
+
|---------------|-------------------------------------------|
|
|
95
|
+
| [radio](#radio) | apply css to a specific checkbox. |
|
|
96
96
|
| `radio-input` | apply css to a specific checkbox's input. |
|
|
97
97
|
| `radio-label` | apply css to a specific checkbox's label. |
|
|
98
98
|
<!-- AURO-GENERATED-CONTENT:END -->
|