@aurodesignsystem-dev/auro-formkit 0.0.0-pr820.0 → 0.0.0-pr832.0
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 +10 -8
- package/components/bibtemplate/dist/registered.js +10 -8
- package/components/checkbox/demo/api.md +7 -6
- package/components/checkbox/demo/api.min.js +5 -8
- package/components/checkbox/demo/index.min.js +5 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -0
- package/components/checkbox/dist/index.js +5 -8
- package/components/checkbox/dist/registered.js +5 -8
- package/components/combobox/demo/api.min.js +52 -38
- package/components/combobox/demo/index.min.js +52 -38
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/index.js +51 -37
- package/components/combobox/dist/registered.js +51 -37
- package/components/counter/demo/api.min.js +16 -25
- package/components/counter/demo/index.min.js +16 -25
- package/components/counter/dist/index.js +16 -25
- package/components/counter/dist/registered.js +16 -25
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/api.min.js +19 -28
- package/components/datepicker/demo/index.min.js +19 -28
- package/components/datepicker/dist/index.js +19 -28
- package/components/datepicker/dist/registered.js +19 -28
- package/components/dropdown/demo/api.min.js +3 -14
- package/components/dropdown/demo/index.min.js +3 -14
- package/components/dropdown/dist/index.js +3 -14
- package/components/dropdown/dist/registered.js +3 -14
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -3
- package/components/input/demo/api.min.js +4 -4
- package/components/input/demo/index.min.js +4 -4
- package/components/input/dist/index.js +4 -4
- package/components/input/dist/registered.js +4 -4
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.md +2 -0
- package/components/radio/demo/api.min.js +3 -1
- package/components/radio/demo/index.min.js +3 -1
- package/components/radio/dist/auro-radio.d.ts +2 -0
- package/components/radio/dist/index.js +3 -1
- package/components/radio/dist/registered.js +3 -1
- package/components/select/demo/api.md +1 -0
- package/components/select/demo/api.min.js +55 -34
- package/components/select/demo/index.min.js +55 -34
- package/components/select/dist/auro-select.d.ts +12 -0
- package/components/select/dist/index.js +54 -33
- package/components/select/dist/registered.js +54 -33
- package/package.json +5 -5
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column
|
|
8
|
+
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
10
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
@@ -1909,13 +1909,15 @@ class AuroBibtemplate extends LitElement {
|
|
|
1909
1909
|
<div id="bibTemplate" part="bibtemplate">
|
|
1910
1910
|
${this.isFullscreen ? html$1`
|
|
1911
1911
|
<div id="headerContainer">
|
|
1912
|
-
|
|
1913
|
-
<${this.
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1912
|
+
<div class="titleRow">
|
|
1913
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1914
|
+
<slot name="header"></slot>
|
|
1915
|
+
</${this.headerTag}>
|
|
1916
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1917
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1918
|
+
</${this.buttonTag}>
|
|
1919
|
+
</div>
|
|
1920
|
+
<span class="subheader">
|
|
1919
1921
|
<slot name="subheader"></slot>
|
|
1920
1922
|
</span>
|
|
1921
1923
|
</div>` : null}
|
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column
|
|
8
|
+
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
10
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
@@ -1909,13 +1909,15 @@ class AuroBibtemplate extends LitElement {
|
|
|
1909
1909
|
<div id="bibTemplate" part="bibtemplate">
|
|
1910
1910
|
${this.isFullscreen ? html$1`
|
|
1911
1911
|
<div id="headerContainer">
|
|
1912
|
-
|
|
1913
|
-
<${this.
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1912
|
+
<div class="titleRow">
|
|
1913
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1914
|
+
<slot name="header"></slot>
|
|
1915
|
+
</${this.headerTag}>
|
|
1916
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1917
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1918
|
+
</${this.buttonTag}>
|
|
1919
|
+
</div>
|
|
1920
|
+
<span class="subheader">
|
|
1919
1921
|
<slot name="subheader"></slot>
|
|
1920
1922
|
</span>
|
|
1921
1923
|
</div>` : null}
|
|
@@ -66,12 +66,13 @@ Custom element for the purpose of allowing users to select one or more options o
|
|
|
66
66
|
|
|
67
67
|
## Events
|
|
68
68
|
|
|
69
|
-
| Event | Type |
|
|
70
|
-
|
|
71
|
-
| `auroCheckbox-focusin` | `CustomEvent<any>` |
|
|
72
|
-
| `auroCheckbox-focusout` | `CustomEvent<any>` |
|
|
73
|
-
| `auroCheckbox-input` | `CustomEvent<any>` |
|
|
74
|
-
| [
|
|
69
|
+
| Event | Type | Description |
|
|
70
|
+
|-------------------------|--------------------|--------------------------------------------------|
|
|
71
|
+
| `auroCheckbox-focusin` | `CustomEvent<any>` | |
|
|
72
|
+
| `auroCheckbox-focusout` | `CustomEvent<any>` | |
|
|
73
|
+
| `auroCheckbox-input` | `CustomEvent<any>` | |
|
|
74
|
+
| [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
|
|
75
|
+
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
75
76
|
|
|
76
77
|
## CSS Shadow Parts
|
|
77
78
|
|
|
@@ -142,6 +142,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
142
142
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
143
143
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
144
144
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
145
|
+
*
|
|
146
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
147
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
145
148
|
*/
|
|
146
149
|
|
|
147
150
|
// build the component class
|
|
@@ -287,12 +290,6 @@ class AuroCheckbox extends i$2 {
|
|
|
287
290
|
handleInput(event) {
|
|
288
291
|
this.checked = event.target.checked;
|
|
289
292
|
|
|
290
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
291
|
-
bubbles: true,
|
|
292
|
-
cancelable: false,
|
|
293
|
-
composed: true,
|
|
294
|
-
}));
|
|
295
|
-
|
|
296
293
|
// Old event we need to deprecate
|
|
297
294
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
298
295
|
bubbles: true,
|
|
@@ -352,7 +349,7 @@ class AuroCheckbox extends i$2 {
|
|
|
352
349
|
}
|
|
353
350
|
|
|
354
351
|
if (!this.disabled) {
|
|
355
|
-
this.
|
|
352
|
+
this.shadowRoot.querySelector('input').click();
|
|
356
353
|
this.handleFocusin();
|
|
357
354
|
}
|
|
358
355
|
});
|
|
@@ -390,7 +387,7 @@ class AuroCheckbox extends i$2 {
|
|
|
390
387
|
@change="${this.handleChange}"
|
|
391
388
|
@input="${this.handleInput}"
|
|
392
389
|
?disabled="${this.disabled}"
|
|
393
|
-
|
|
390
|
+
?checked="${this.checked}"
|
|
394
391
|
id="${this.inputId}"
|
|
395
392
|
name="${o$1(this.name)}"
|
|
396
393
|
type="checkbox"
|
|
@@ -134,6 +134,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
134
134
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
135
135
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
136
136
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
137
|
+
*
|
|
138
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
139
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
137
140
|
*/
|
|
138
141
|
|
|
139
142
|
// build the component class
|
|
@@ -279,12 +282,6 @@ class AuroCheckbox extends i$2 {
|
|
|
279
282
|
handleInput(event) {
|
|
280
283
|
this.checked = event.target.checked;
|
|
281
284
|
|
|
282
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
283
|
-
bubbles: true,
|
|
284
|
-
cancelable: false,
|
|
285
|
-
composed: true,
|
|
286
|
-
}));
|
|
287
|
-
|
|
288
285
|
// Old event we need to deprecate
|
|
289
286
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
290
287
|
bubbles: true,
|
|
@@ -344,7 +341,7 @@ class AuroCheckbox extends i$2 {
|
|
|
344
341
|
}
|
|
345
342
|
|
|
346
343
|
if (!this.disabled) {
|
|
347
|
-
this.
|
|
344
|
+
this.shadowRoot.querySelector('input').click();
|
|
348
345
|
this.handleFocusin();
|
|
349
346
|
}
|
|
350
347
|
});
|
|
@@ -382,7 +379,7 @@ class AuroCheckbox extends i$2 {
|
|
|
382
379
|
@change="${this.handleChange}"
|
|
383
380
|
@input="${this.handleInput}"
|
|
384
381
|
?disabled="${this.disabled}"
|
|
385
|
-
|
|
382
|
+
?checked="${this.checked}"
|
|
386
383
|
id="${this.inputId}"
|
|
387
384
|
name="${o$1(this.name)}"
|
|
388
385
|
type="checkbox"
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
8
8
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
9
9
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
10
|
+
*
|
|
11
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
12
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
10
13
|
*/
|
|
11
14
|
export class AuroCheckbox extends LitElement {
|
|
12
15
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -94,6 +94,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
95
95
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
96
96
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
97
|
+
*
|
|
98
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
99
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
// build the component class
|
|
@@ -239,12 +242,6 @@ class AuroCheckbox extends LitElement {
|
|
|
239
242
|
handleInput(event) {
|
|
240
243
|
this.checked = event.target.checked;
|
|
241
244
|
|
|
242
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
-
bubbles: true,
|
|
244
|
-
cancelable: false,
|
|
245
|
-
composed: true,
|
|
246
|
-
}));
|
|
247
|
-
|
|
248
245
|
// Old event we need to deprecate
|
|
249
246
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
250
247
|
bubbles: true,
|
|
@@ -304,7 +301,7 @@ class AuroCheckbox extends LitElement {
|
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
if (!this.disabled) {
|
|
307
|
-
this.
|
|
304
|
+
this.shadowRoot.querySelector('input').click();
|
|
308
305
|
this.handleFocusin();
|
|
309
306
|
}
|
|
310
307
|
});
|
|
@@ -342,7 +339,7 @@ class AuroCheckbox extends LitElement {
|
|
|
342
339
|
@change="${this.handleChange}"
|
|
343
340
|
@input="${this.handleInput}"
|
|
344
341
|
?disabled="${this.disabled}"
|
|
345
|
-
|
|
342
|
+
?checked="${this.checked}"
|
|
346
343
|
id="${this.inputId}"
|
|
347
344
|
name="${ifDefined(this.name)}"
|
|
348
345
|
type="checkbox"
|
|
@@ -94,6 +94,9 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
95
95
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
96
96
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
97
|
+
*
|
|
98
|
+
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
99
|
+
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
// build the component class
|
|
@@ -239,12 +242,6 @@ class AuroCheckbox extends LitElement {
|
|
|
239
242
|
handleInput(event) {
|
|
240
243
|
this.checked = event.target.checked;
|
|
241
244
|
|
|
242
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
-
bubbles: true,
|
|
244
|
-
cancelable: false,
|
|
245
|
-
composed: true,
|
|
246
|
-
}));
|
|
247
|
-
|
|
248
245
|
// Old event we need to deprecate
|
|
249
246
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
250
247
|
bubbles: true,
|
|
@@ -304,7 +301,7 @@ class AuroCheckbox extends LitElement {
|
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
if (!this.disabled) {
|
|
307
|
-
this.
|
|
304
|
+
this.shadowRoot.querySelector('input').click();
|
|
308
305
|
this.handleFocusin();
|
|
309
306
|
}
|
|
310
307
|
});
|
|
@@ -342,7 +339,7 @@ class AuroCheckbox extends LitElement {
|
|
|
342
339
|
@change="${this.handleChange}"
|
|
343
340
|
@input="${this.handleInput}"
|
|
344
341
|
?disabled="${this.disabled}"
|
|
345
|
-
|
|
342
|
+
?checked="${this.checked}"
|
|
346
343
|
id="${this.inputId}"
|
|
347
344
|
name="${ifDefined(this.name)}"
|
|
348
345
|
type="checkbox"
|