@aurodesignsystem/auro-formkit 3.4.1 → 3.5.0-rc-627.1.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/CHANGELOG.md +3 -1756
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +1 -1
- package/components/checkbox/demo/api.min.js +17 -7
- package/components/checkbox/demo/index.min.js +17 -7
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +13 -6
- package/components/checkbox/dist/index.js +17 -7
- package/components/checkbox/dist/registered.js +17 -7
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +25 -25
- package/components/combobox/demo/api.min.js +20 -11
- package/components/combobox/demo/index.min.js +20 -11
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +2 -4
- package/components/combobox/dist/index.js +19 -10
- package/components/combobox/dist/registered.js +19 -10
- package/components/counter/README.md +1 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.min.js +17 -10
- package/components/datepicker/demo/index.min.js +17 -10
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/index.js +17 -10
- package/components/datepicker/dist/registered.js +17 -10
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/form/README.md +1 -1
- package/components/form/demo/api.md +1 -5
- package/components/form/demo/api.min.js +8 -2
- package/components/form/demo/index.html +1 -0
- package/components/form/demo/index.md +321 -27
- package/components/form/demo/index.min.js +8 -2
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.js +1 -0
- package/components/form/dist/auro-form.d.ts +12 -6
- package/components/form/dist/index.js +8 -2
- package/components/form/dist/registered.js +8 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +17 -10
- package/components/input/demo/index.min.js +17 -10
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +13 -6
- package/components/input/dist/index.js +17 -10
- package/components/input/dist/registered.js +17 -10
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.md +11 -17
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +1 -1
- package/components/radio/demo/api.min.js +18 -3
- package/components/radio/demo/index.min.js +18 -3
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio.d.ts +14 -3
- package/components/radio/dist/index.js +18 -3
- package/components/radio/dist/registered.js +18 -3
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +15 -0
- package/components/select/demo/api.md +178 -0
- package/components/select/demo/api.min.js +70 -2
- package/components/select/demo/index.html +15 -0
- package/components/select/demo/index.md +177 -0
- package/components/select/demo/index.min.js +70 -2
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +27 -0
- package/components/select/dist/index.js +70 -1
- package/components/select/dist/registered.js +70 -1
- package/package.json +1 -1
|
@@ -9441,6 +9441,9 @@ class AuroFormValidation {
|
|
|
9441
9441
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
9442
9442
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
9443
9443
|
*
|
|
9444
|
+
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
9445
|
+
* @attr id
|
|
9446
|
+
*
|
|
9444
9447
|
* @slot helptext - Sets the help text displayed below the input.
|
|
9445
9448
|
* @slot label - Sets the label text for the input.
|
|
9446
9449
|
*
|
|
@@ -9631,13 +9634,6 @@ class BaseInput extends LitElement {
|
|
|
9631
9634
|
reflect: true
|
|
9632
9635
|
},
|
|
9633
9636
|
|
|
9634
|
-
/**
|
|
9635
|
-
* Sets the unique ID of the element.
|
|
9636
|
-
*/
|
|
9637
|
-
id: {
|
|
9638
|
-
type: String
|
|
9639
|
-
},
|
|
9640
|
-
|
|
9641
9637
|
/** Exposes inputmode attribute for input. */
|
|
9642
9638
|
inputmode: {
|
|
9643
9639
|
type: String,
|
|
@@ -9858,6 +9854,16 @@ class BaseInput extends LitElement {
|
|
|
9858
9854
|
type: Boolean,
|
|
9859
9855
|
reflect: true,
|
|
9860
9856
|
attribute: false
|
|
9857
|
+
},
|
|
9858
|
+
|
|
9859
|
+
/**
|
|
9860
|
+
* @private
|
|
9861
|
+
* id for input node
|
|
9862
|
+
*/
|
|
9863
|
+
inputId: {
|
|
9864
|
+
type: String,
|
|
9865
|
+
reflect: false,
|
|
9866
|
+
attribute: false
|
|
9861
9867
|
}
|
|
9862
9868
|
};
|
|
9863
9869
|
}
|
|
@@ -9889,6 +9895,7 @@ class BaseInput extends LitElement {
|
|
|
9889
9895
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
9890
9896
|
this.setAttribute('auro-input', true);
|
|
9891
9897
|
}
|
|
9898
|
+
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
9892
9899
|
|
|
9893
9900
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
9894
9901
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -11554,7 +11561,7 @@ class AuroInput extends BaseInput {
|
|
|
11554
11561
|
: undefined
|
|
11555
11562
|
}
|
|
11556
11563
|
</div>
|
|
11557
|
-
<label for=${this.
|
|
11564
|
+
<label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
|
|
11558
11565
|
<slot name="label">
|
|
11559
11566
|
${this.label}
|
|
11560
11567
|
</slot>
|
|
@@ -11564,7 +11571,7 @@ class AuroInput extends BaseInput {
|
|
|
11564
11571
|
@input="${this.handleInput}"
|
|
11565
11572
|
@focusin="${this.handleFocusin}"
|
|
11566
11573
|
@blur="${this.handleBlur}"
|
|
11567
|
-
id="${this.
|
|
11574
|
+
id="${this.inputId}"
|
|
11568
11575
|
name="${ifDefined(this.name)}"
|
|
11569
11576
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
11570
11577
|
pattern="${ifDefined(this.definePattern())}"
|
|
@@ -11632,7 +11639,7 @@ class AuroInput extends BaseInput {
|
|
|
11632
11639
|
variant="flat"
|
|
11633
11640
|
?onDark="${this.onDark}"
|
|
11634
11641
|
class="notificationBtn clearBtn"
|
|
11635
|
-
|
|
11642
|
+
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
11636
11643
|
@click="${this.handleClickClear}">
|
|
11637
11644
|
<${this.iconTag}
|
|
11638
11645
|
customColor
|
|
@@ -12757,6 +12764,7 @@ class AuroCombobox extends LitElement {
|
|
|
12757
12764
|
|
|
12758
12765
|
/**
|
|
12759
12766
|
* Value selected for the dropdown menu.
|
|
12767
|
+
* @type {Array|String<Array>}
|
|
12760
12768
|
*/
|
|
12761
12769
|
value: {
|
|
12762
12770
|
converter: arrayConverter,
|
|
@@ -13138,6 +13146,7 @@ class AuroCombobox extends LitElement {
|
|
|
13138
13146
|
}
|
|
13139
13147
|
});
|
|
13140
13148
|
|
|
13149
|
+
// Handle validation messages from auroFormElement-validated event
|
|
13141
13150
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
13142
13151
|
this.errorMessage = evt.detail.message;
|
|
13143
13152
|
});
|
|
@@ -9441,6 +9441,9 @@ class AuroFormValidation {
|
|
|
9441
9441
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
9442
9442
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
9443
9443
|
*
|
|
9444
|
+
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
9445
|
+
* @attr id
|
|
9446
|
+
*
|
|
9444
9447
|
* @slot helptext - Sets the help text displayed below the input.
|
|
9445
9448
|
* @slot label - Sets the label text for the input.
|
|
9446
9449
|
*
|
|
@@ -9631,13 +9634,6 @@ class BaseInput extends LitElement {
|
|
|
9631
9634
|
reflect: true
|
|
9632
9635
|
},
|
|
9633
9636
|
|
|
9634
|
-
/**
|
|
9635
|
-
* Sets the unique ID of the element.
|
|
9636
|
-
*/
|
|
9637
|
-
id: {
|
|
9638
|
-
type: String
|
|
9639
|
-
},
|
|
9640
|
-
|
|
9641
9637
|
/** Exposes inputmode attribute for input. */
|
|
9642
9638
|
inputmode: {
|
|
9643
9639
|
type: String,
|
|
@@ -9858,6 +9854,16 @@ class BaseInput extends LitElement {
|
|
|
9858
9854
|
type: Boolean,
|
|
9859
9855
|
reflect: true,
|
|
9860
9856
|
attribute: false
|
|
9857
|
+
},
|
|
9858
|
+
|
|
9859
|
+
/**
|
|
9860
|
+
* @private
|
|
9861
|
+
* id for input node
|
|
9862
|
+
*/
|
|
9863
|
+
inputId: {
|
|
9864
|
+
type: String,
|
|
9865
|
+
reflect: false,
|
|
9866
|
+
attribute: false
|
|
9861
9867
|
}
|
|
9862
9868
|
};
|
|
9863
9869
|
}
|
|
@@ -9889,6 +9895,7 @@ class BaseInput extends LitElement {
|
|
|
9889
9895
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
9890
9896
|
this.setAttribute('auro-input', true);
|
|
9891
9897
|
}
|
|
9898
|
+
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
9892
9899
|
|
|
9893
9900
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
9894
9901
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -11554,7 +11561,7 @@ class AuroInput extends BaseInput {
|
|
|
11554
11561
|
: undefined
|
|
11555
11562
|
}
|
|
11556
11563
|
</div>
|
|
11557
|
-
<label for=${this.
|
|
11564
|
+
<label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
|
|
11558
11565
|
<slot name="label">
|
|
11559
11566
|
${this.label}
|
|
11560
11567
|
</slot>
|
|
@@ -11564,7 +11571,7 @@ class AuroInput extends BaseInput {
|
|
|
11564
11571
|
@input="${this.handleInput}"
|
|
11565
11572
|
@focusin="${this.handleFocusin}"
|
|
11566
11573
|
@blur="${this.handleBlur}"
|
|
11567
|
-
id="${this.
|
|
11574
|
+
id="${this.inputId}"
|
|
11568
11575
|
name="${ifDefined(this.name)}"
|
|
11569
11576
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
11570
11577
|
pattern="${ifDefined(this.definePattern())}"
|
|
@@ -11632,7 +11639,7 @@ class AuroInput extends BaseInput {
|
|
|
11632
11639
|
variant="flat"
|
|
11633
11640
|
?onDark="${this.onDark}"
|
|
11634
11641
|
class="notificationBtn clearBtn"
|
|
11635
|
-
|
|
11642
|
+
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
11636
11643
|
@click="${this.handleClickClear}">
|
|
11637
11644
|
<${this.iconTag}
|
|
11638
11645
|
customColor
|
|
@@ -12757,6 +12764,7 @@ class AuroCombobox extends LitElement {
|
|
|
12757
12764
|
|
|
12758
12765
|
/**
|
|
12759
12766
|
* Value selected for the dropdown menu.
|
|
12767
|
+
* @type {Array|String<Array>}
|
|
12760
12768
|
*/
|
|
12761
12769
|
value: {
|
|
12762
12770
|
converter: arrayConverter,
|
|
@@ -13138,6 +13146,7 @@ class AuroCombobox extends LitElement {
|
|
|
13138
13146
|
}
|
|
13139
13147
|
});
|
|
13140
13148
|
|
|
13149
|
+
// Handle validation messages from auroFormElement-validated event
|
|
13141
13150
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
13142
13151
|
this.errorMessage = evt.detail.message;
|
|
13143
13152
|
});
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
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.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-counter/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
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.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-counter/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
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.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -21135,6 +21135,9 @@ class AuroFormValidation {
|
|
|
21135
21135
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
21136
21136
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
21137
21137
|
*
|
|
21138
|
+
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
21139
|
+
* @attr id
|
|
21140
|
+
*
|
|
21138
21141
|
* @slot helptext - Sets the help text displayed below the input.
|
|
21139
21142
|
* @slot label - Sets the label text for the input.
|
|
21140
21143
|
*
|
|
@@ -21325,13 +21328,6 @@ class BaseInput extends i$2 {
|
|
|
21325
21328
|
reflect: true
|
|
21326
21329
|
},
|
|
21327
21330
|
|
|
21328
|
-
/**
|
|
21329
|
-
* Sets the unique ID of the element.
|
|
21330
|
-
*/
|
|
21331
|
-
id: {
|
|
21332
|
-
type: String
|
|
21333
|
-
},
|
|
21334
|
-
|
|
21335
21331
|
/** Exposes inputmode attribute for input. */
|
|
21336
21332
|
inputmode: {
|
|
21337
21333
|
type: String,
|
|
@@ -21552,6 +21548,16 @@ class BaseInput extends i$2 {
|
|
|
21552
21548
|
type: Boolean,
|
|
21553
21549
|
reflect: true,
|
|
21554
21550
|
attribute: false
|
|
21551
|
+
},
|
|
21552
|
+
|
|
21553
|
+
/**
|
|
21554
|
+
* @private
|
|
21555
|
+
* id for input node
|
|
21556
|
+
*/
|
|
21557
|
+
inputId: {
|
|
21558
|
+
type: String,
|
|
21559
|
+
reflect: false,
|
|
21560
|
+
attribute: false
|
|
21555
21561
|
}
|
|
21556
21562
|
};
|
|
21557
21563
|
}
|
|
@@ -21583,6 +21589,7 @@ class BaseInput extends i$2 {
|
|
|
21583
21589
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
21584
21590
|
this.setAttribute('auro-input', true);
|
|
21585
21591
|
}
|
|
21592
|
+
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
21586
21593
|
|
|
21587
21594
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
21588
21595
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -23248,7 +23255,7 @@ class AuroInput extends BaseInput {
|
|
|
23248
23255
|
: undefined
|
|
23249
23256
|
}
|
|
23250
23257
|
</div>
|
|
23251
|
-
<label for=${this.
|
|
23258
|
+
<label for=${this.inputId} class="${e(labelClasses)}" part="label">
|
|
23252
23259
|
<slot name="label">
|
|
23253
23260
|
${this.label}
|
|
23254
23261
|
</slot>
|
|
@@ -23258,7 +23265,7 @@ class AuroInput extends BaseInput {
|
|
|
23258
23265
|
@input="${this.handleInput}"
|
|
23259
23266
|
@focusin="${this.handleFocusin}"
|
|
23260
23267
|
@blur="${this.handleBlur}"
|
|
23261
|
-
id="${this.
|
|
23268
|
+
id="${this.inputId}"
|
|
23262
23269
|
name="${o(this.name)}"
|
|
23263
23270
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
23264
23271
|
pattern="${o(this.definePattern())}"
|
|
@@ -23326,7 +23333,7 @@ class AuroInput extends BaseInput {
|
|
|
23326
23333
|
variant="flat"
|
|
23327
23334
|
?onDark="${this.onDark}"
|
|
23328
23335
|
class="notificationBtn clearBtn"
|
|
23329
|
-
|
|
23336
|
+
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
23330
23337
|
@click="${this.handleClickClear}">
|
|
23331
23338
|
<${this.iconTag}
|
|
23332
23339
|
customColor
|
|
@@ -20876,6 +20876,9 @@ class AuroFormValidation {
|
|
|
20876
20876
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
20877
20877
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
20878
20878
|
*
|
|
20879
|
+
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
20880
|
+
* @attr id
|
|
20881
|
+
*
|
|
20879
20882
|
* @slot helptext - Sets the help text displayed below the input.
|
|
20880
20883
|
* @slot label - Sets the label text for the input.
|
|
20881
20884
|
*
|
|
@@ -21066,13 +21069,6 @@ class BaseInput extends i$2 {
|
|
|
21066
21069
|
reflect: true
|
|
21067
21070
|
},
|
|
21068
21071
|
|
|
21069
|
-
/**
|
|
21070
|
-
* Sets the unique ID of the element.
|
|
21071
|
-
*/
|
|
21072
|
-
id: {
|
|
21073
|
-
type: String
|
|
21074
|
-
},
|
|
21075
|
-
|
|
21076
21072
|
/** Exposes inputmode attribute for input. */
|
|
21077
21073
|
inputmode: {
|
|
21078
21074
|
type: String,
|
|
@@ -21293,6 +21289,16 @@ class BaseInput extends i$2 {
|
|
|
21293
21289
|
type: Boolean,
|
|
21294
21290
|
reflect: true,
|
|
21295
21291
|
attribute: false
|
|
21292
|
+
},
|
|
21293
|
+
|
|
21294
|
+
/**
|
|
21295
|
+
* @private
|
|
21296
|
+
* id for input node
|
|
21297
|
+
*/
|
|
21298
|
+
inputId: {
|
|
21299
|
+
type: String,
|
|
21300
|
+
reflect: false,
|
|
21301
|
+
attribute: false
|
|
21296
21302
|
}
|
|
21297
21303
|
};
|
|
21298
21304
|
}
|
|
@@ -21324,6 +21330,7 @@ class BaseInput extends i$2 {
|
|
|
21324
21330
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
21325
21331
|
this.setAttribute('auro-input', true);
|
|
21326
21332
|
}
|
|
21333
|
+
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
21327
21334
|
|
|
21328
21335
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
21329
21336
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -22989,7 +22996,7 @@ class AuroInput extends BaseInput {
|
|
|
22989
22996
|
: undefined
|
|
22990
22997
|
}
|
|
22991
22998
|
</div>
|
|
22992
|
-
<label for=${this.
|
|
22999
|
+
<label for=${this.inputId} class="${e(labelClasses)}" part="label">
|
|
22993
23000
|
<slot name="label">
|
|
22994
23001
|
${this.label}
|
|
22995
23002
|
</slot>
|
|
@@ -22999,7 +23006,7 @@ class AuroInput extends BaseInput {
|
|
|
22999
23006
|
@input="${this.handleInput}"
|
|
23000
23007
|
@focusin="${this.handleFocusin}"
|
|
23001
23008
|
@blur="${this.handleBlur}"
|
|
23002
|
-
id="${this.
|
|
23009
|
+
id="${this.inputId}"
|
|
23003
23010
|
name="${o(this.name)}"
|
|
23004
23011
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
23005
23012
|
pattern="${o(this.definePattern())}"
|
|
@@ -23067,7 +23074,7 @@ class AuroInput extends BaseInput {
|
|
|
23067
23074
|
variant="flat"
|
|
23068
23075
|
?onDark="${this.onDark}"
|
|
23069
23076
|
class="notificationBtn clearBtn"
|
|
23070
|
-
|
|
23077
|
+
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
23071
23078
|
@click="${this.handleClickClear}">
|
|
23072
23079
|
<${this.iconTag}
|
|
23073
23080
|
customColor
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
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.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -20812,6 +20812,9 @@ class AuroFormValidation {
|
|
|
20812
20812
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
20813
20813
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
20814
20814
|
*
|
|
20815
|
+
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
20816
|
+
* @attr id
|
|
20817
|
+
*
|
|
20815
20818
|
* @slot helptext - Sets the help text displayed below the input.
|
|
20816
20819
|
* @slot label - Sets the label text for the input.
|
|
20817
20820
|
*
|
|
@@ -21002,13 +21005,6 @@ class BaseInput extends LitElement {
|
|
|
21002
21005
|
reflect: true
|
|
21003
21006
|
},
|
|
21004
21007
|
|
|
21005
|
-
/**
|
|
21006
|
-
* Sets the unique ID of the element.
|
|
21007
|
-
*/
|
|
21008
|
-
id: {
|
|
21009
|
-
type: String
|
|
21010
|
-
},
|
|
21011
|
-
|
|
21012
21008
|
/** Exposes inputmode attribute for input. */
|
|
21013
21009
|
inputmode: {
|
|
21014
21010
|
type: String,
|
|
@@ -21229,6 +21225,16 @@ class BaseInput extends LitElement {
|
|
|
21229
21225
|
type: Boolean,
|
|
21230
21226
|
reflect: true,
|
|
21231
21227
|
attribute: false
|
|
21228
|
+
},
|
|
21229
|
+
|
|
21230
|
+
/**
|
|
21231
|
+
* @private
|
|
21232
|
+
* id for input node
|
|
21233
|
+
*/
|
|
21234
|
+
inputId: {
|
|
21235
|
+
type: String,
|
|
21236
|
+
reflect: false,
|
|
21237
|
+
attribute: false
|
|
21232
21238
|
}
|
|
21233
21239
|
};
|
|
21234
21240
|
}
|
|
@@ -21260,6 +21266,7 @@ class BaseInput extends LitElement {
|
|
|
21260
21266
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
21261
21267
|
this.setAttribute('auro-input', true);
|
|
21262
21268
|
}
|
|
21269
|
+
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
21263
21270
|
|
|
21264
21271
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
21265
21272
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -22925,7 +22932,7 @@ class AuroInput extends BaseInput {
|
|
|
22925
22932
|
: undefined
|
|
22926
22933
|
}
|
|
22927
22934
|
</div>
|
|
22928
|
-
<label for=${this.
|
|
22935
|
+
<label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
|
|
22929
22936
|
<slot name="label">
|
|
22930
22937
|
${this.label}
|
|
22931
22938
|
</slot>
|
|
@@ -22935,7 +22942,7 @@ class AuroInput extends BaseInput {
|
|
|
22935
22942
|
@input="${this.handleInput}"
|
|
22936
22943
|
@focusin="${this.handleFocusin}"
|
|
22937
22944
|
@blur="${this.handleBlur}"
|
|
22938
|
-
id="${this.
|
|
22945
|
+
id="${this.inputId}"
|
|
22939
22946
|
name="${ifDefined(this.name)}"
|
|
22940
22947
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
22941
22948
|
pattern="${ifDefined(this.definePattern())}"
|
|
@@ -23003,7 +23010,7 @@ class AuroInput extends BaseInput {
|
|
|
23003
23010
|
variant="flat"
|
|
23004
23011
|
?onDark="${this.onDark}"
|
|
23005
23012
|
class="notificationBtn clearBtn"
|
|
23006
|
-
|
|
23013
|
+
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
23007
23014
|
@click="${this.handleClickClear}">
|
|
23008
23015
|
<${this.iconTag}
|
|
23009
23016
|
customColor
|
|
@@ -20812,6 +20812,9 @@ class AuroFormValidation {
|
|
|
20812
20812
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
20813
20813
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
20814
20814
|
*
|
|
20815
|
+
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
20816
|
+
* @attr id
|
|
20817
|
+
*
|
|
20815
20818
|
* @slot helptext - Sets the help text displayed below the input.
|
|
20816
20819
|
* @slot label - Sets the label text for the input.
|
|
20817
20820
|
*
|
|
@@ -21002,13 +21005,6 @@ class BaseInput extends LitElement {
|
|
|
21002
21005
|
reflect: true
|
|
21003
21006
|
},
|
|
21004
21007
|
|
|
21005
|
-
/**
|
|
21006
|
-
* Sets the unique ID of the element.
|
|
21007
|
-
*/
|
|
21008
|
-
id: {
|
|
21009
|
-
type: String
|
|
21010
|
-
},
|
|
21011
|
-
|
|
21012
21008
|
/** Exposes inputmode attribute for input. */
|
|
21013
21009
|
inputmode: {
|
|
21014
21010
|
type: String,
|
|
@@ -21229,6 +21225,16 @@ class BaseInput extends LitElement {
|
|
|
21229
21225
|
type: Boolean,
|
|
21230
21226
|
reflect: true,
|
|
21231
21227
|
attribute: false
|
|
21228
|
+
},
|
|
21229
|
+
|
|
21230
|
+
/**
|
|
21231
|
+
* @private
|
|
21232
|
+
* id for input node
|
|
21233
|
+
*/
|
|
21234
|
+
inputId: {
|
|
21235
|
+
type: String,
|
|
21236
|
+
reflect: false,
|
|
21237
|
+
attribute: false
|
|
21232
21238
|
}
|
|
21233
21239
|
};
|
|
21234
21240
|
}
|
|
@@ -21260,6 +21266,7 @@ class BaseInput extends LitElement {
|
|
|
21260
21266
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
21261
21267
|
this.setAttribute('auro-input', true);
|
|
21262
21268
|
}
|
|
21269
|
+
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
21263
21270
|
|
|
21264
21271
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
21265
21272
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -22925,7 +22932,7 @@ class AuroInput extends BaseInput {
|
|
|
22925
22932
|
: undefined
|
|
22926
22933
|
}
|
|
22927
22934
|
</div>
|
|
22928
|
-
<label for=${this.
|
|
22935
|
+
<label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
|
|
22929
22936
|
<slot name="label">
|
|
22930
22937
|
${this.label}
|
|
22931
22938
|
</slot>
|
|
@@ -22935,7 +22942,7 @@ class AuroInput extends BaseInput {
|
|
|
22935
22942
|
@input="${this.handleInput}"
|
|
22936
22943
|
@focusin="${this.handleFocusin}"
|
|
22937
22944
|
@blur="${this.handleBlur}"
|
|
22938
|
-
id="${this.
|
|
22945
|
+
id="${this.inputId}"
|
|
22939
22946
|
name="${ifDefined(this.name)}"
|
|
22940
22947
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
22941
22948
|
pattern="${ifDefined(this.definePattern())}"
|
|
@@ -23003,7 +23010,7 @@ class AuroInput extends BaseInput {
|
|
|
23003
23010
|
variant="flat"
|
|
23004
23011
|
?onDark="${this.onDark}"
|
|
23005
23012
|
class="notificationBtn clearBtn"
|
|
23006
|
-
|
|
23013
|
+
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
23007
23014
|
@click="${this.handleClickClear}">
|
|
23008
23015
|
<${this.iconTag}
|
|
23009
23016
|
customColor
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
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.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
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.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
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.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -19,9 +19,8 @@ The auro-form element provides users a way to ... (it would be great if you fill
|
|
|
19
19
|
| [formState](#formState) | | `FormState` | {} | |
|
|
20
20
|
| [isInitialState](#isInitialState) | readonly | `boolean` | | Mostly internal way to determine if a form is in the initial state. |
|
|
21
21
|
| [mutationEventListener](#mutationEventListener) | | | | |
|
|
22
|
-
| [mutationObservers](#mutationObservers) | | `MutationObserver[]` | [] | |
|
|
23
22
|
| [reset](#reset) | | | | |
|
|
24
|
-
| [resetElements](#resetElements) | readonly | `HTMLButtonElement[]` | |
|
|
23
|
+
| [resetElements](#resetElements) | readonly | `HTMLButtonElement[]` | | Returns a collection of elements that will reset the form |
|
|
25
24
|
| [sharedInputListener](#sharedInputListener) | | | | |
|
|
26
25
|
| [sharedValidationListener](#sharedValidationListener) | | | | |
|
|
27
26
|
| [submit](#submit) | | | | |
|
|
@@ -36,13 +35,10 @@ The auro-form element provides users a way to ... (it would be great if you fill
|
|
|
36
35
|
| [initializeState](#initializeState) | `(): void` | Initialize (or reinitialize) the form state. |
|
|
37
36
|
| [isButtonElement](#isButtonElement) | `(element: HTMLElement): boolean` | Check if the tag name is a button element.<br /><br />**element**: The element to check. |
|
|
38
37
|
| [isFormElement](#isFormElement) | `(element: HTMLElement): boolean` | Check if the tag name is a form element.<br /><br />**element**: The element to check (attr or tag name). |
|
|
39
|
-
| [mutationEventListener](#mutationEventListener) | `(): void` | Mutation observer for form elements. Slot change does not trigger unless<br />root-level elements are added/removed. This is a workaround to ensure<br />nested form elements are also observed. |
|
|
40
38
|
| [onSlotChange](#onSlotChange) | `(event: Event): void` | Slot change event listener. This is the main entry point for the form element.<br /><br />**event**: The slot change event. |
|
|
41
39
|
| [queryAuroElements](#queryAuroElements) | `(): NodeList` | Construct the query strings from elements, append them together, execute, and return the NodeList. |
|
|
42
40
|
| [reset](#reset) | `(): void` | Reset fires an event called `reset` - just as you would expect from a normal form. |
|
|
43
41
|
| [setDisabledStateOnButtons](#setDisabledStateOnButtons) | `(): void` | |
|
|
44
|
-
| [sharedInputListener](#sharedInputListener) | `(event: Event): void` | Shared input listener for all form elements.<br /><br />**event**: The event that is fired from the form element. |
|
|
45
|
-
| [sharedValidationListener](#sharedValidationListener) | `(event: Event): void` | Shared validation listener for all form elements.<br /><br />**event**: The event that is fired from the form element. |
|
|
46
42
|
| [submit](#submit) | `(): void` | Submit fires an event called `submit` - just as you would expect from a normal form. |
|
|
47
43
|
|
|
48
44
|
## Events
|
|
@@ -153,7 +153,10 @@ class AuroForm extends i {
|
|
|
153
153
|
/** @type {HTMLButtonElement[]} */
|
|
154
154
|
this._resetElements = [];
|
|
155
155
|
|
|
156
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* @private
|
|
158
|
+
* @type {MutationObserver[]}
|
|
159
|
+
*/
|
|
157
160
|
this.mutationObservers = [];
|
|
158
161
|
|
|
159
162
|
// Bind listeners
|
|
@@ -268,7 +271,7 @@ class AuroForm extends i {
|
|
|
268
271
|
}
|
|
269
272
|
|
|
270
273
|
/**
|
|
271
|
-
*
|
|
274
|
+
* Returns a collection of elements that will reset the form
|
|
272
275
|
* @returns {HTMLButtonElement[]}
|
|
273
276
|
*/
|
|
274
277
|
get resetElements() {
|
|
@@ -498,6 +501,7 @@ class AuroForm extends i {
|
|
|
498
501
|
|
|
499
502
|
/**
|
|
500
503
|
* Shared input listener for all form elements.
|
|
504
|
+
* @private
|
|
501
505
|
* @param {Event} event - The event that is fired from the form element.
|
|
502
506
|
*/
|
|
503
507
|
sharedInputListener(event) {
|
|
@@ -530,6 +534,7 @@ class AuroForm extends i {
|
|
|
530
534
|
|
|
531
535
|
/**
|
|
532
536
|
* Shared validation listener for all form elements.
|
|
537
|
+
* @private
|
|
533
538
|
* @param {Event} event - The event that is fired from the form element.
|
|
534
539
|
*/
|
|
535
540
|
sharedValidationListener(event) {
|
|
@@ -585,6 +590,7 @@ class AuroForm extends i {
|
|
|
585
590
|
* root-level elements are added/removed. This is a workaround to ensure
|
|
586
591
|
* nested form elements are also observed.
|
|
587
592
|
*
|
|
593
|
+
* @private
|
|
588
594
|
* @returns {void}
|
|
589
595
|
*/
|
|
590
596
|
mutationEventListener() {
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
Prism.highlightAll();
|
|
42
42
|
});
|
|
43
43
|
</script>
|
|
44
|
+
<script type="module" data-demo-script="true" src="./registerDemoDeps.js"></script>
|
|
44
45
|
<script type="module" data-demo-script="true" src="./index.min.js"></script>
|
|
45
46
|
|
|
46
47
|
<!-- If additional elements are needed for the demo, add them here. -->
|