@aurodesignsystem/auro-formkit 5.1.1 → 5.1.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/CHANGELOG.md +7 -2
- package/components/checkbox/demo/api.min.js +37 -9
- package/components/checkbox/demo/index.min.js +37 -9
- package/components/checkbox/dist/auro-checkbox.d.ts +7 -0
- package/components/checkbox/dist/index.js +37 -9
- package/components/checkbox/dist/registered.js +37 -9
- package/components/combobox/demo/api.min.js +51 -24
- package/components/combobox/demo/index.min.js +51 -24
- package/components/combobox/dist/index.js +51 -24
- package/components/combobox/dist/registered.js +51 -24
- package/components/counter/demo/api.min.js +25 -9
- package/components/counter/demo/index.min.js +25 -9
- package/components/counter/dist/index.js +25 -9
- package/components/counter/dist/registered.js +25 -9
- package/components/datepicker/demo/api.md +1 -0
- package/components/datepicker/demo/api.min.js +45 -19
- package/components/datepicker/demo/index.min.js +45 -19
- package/components/datepicker/dist/index.js +45 -19
- package/components/datepicker/dist/registered.js +45 -19
- package/components/dropdown/demo/api.min.js +8 -0
- package/components/dropdown/demo/index.min.js +8 -0
- package/components/dropdown/dist/index.js +8 -0
- package/components/dropdown/dist/registered.js +8 -0
- package/components/input/demo/api.min.js +17 -9
- package/components/input/demo/index.min.js +17 -9
- package/components/input/dist/index.js +17 -9
- package/components/input/dist/registered.js +17 -9
- package/components/layoutElement/dist/auroElement.d.ts +5 -0
- package/components/layoutElement/dist/index.js +8 -0
- package/components/layoutElement/dist/registered.js +8 -0
- package/components/menu/demo/api.min.js +8 -0
- package/components/menu/demo/index.min.js +8 -0
- package/components/menu/dist/index.js +8 -0
- package/components/menu/dist/registered.js +8 -0
- package/components/radio/demo/api.min.js +15 -13
- package/components/radio/demo/index.min.js +15 -13
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +15 -13
- package/components/radio/dist/registered.js +15 -13
- package/components/select/demo/api.min.js +25 -9
- package/components/select/demo/index.min.js +25 -9
- package/components/select/dist/index.js +25 -9
- package/components/select/dist/registered.js +25 -9
- package/package.json +1 -1
|
@@ -816,16 +816,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
816
816
|
}
|
|
817
817
|
|
|
818
818
|
this.getErrorMessage(elem);
|
|
819
|
-
|
|
820
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
821
|
-
bubbles: true,
|
|
822
|
-
composed: true,
|
|
823
|
-
detail: {
|
|
824
|
-
validity: elem.validity,
|
|
825
|
-
message: elem.errorMessage
|
|
826
|
-
}
|
|
827
|
-
}));
|
|
828
819
|
}
|
|
820
|
+
|
|
821
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
822
|
+
bubbles: true,
|
|
823
|
+
composed: true,
|
|
824
|
+
detail: {
|
|
825
|
+
validity: elem.validity,
|
|
826
|
+
message: elem.errorMessage
|
|
827
|
+
}
|
|
828
|
+
}));
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
/**
|
|
@@ -17688,6 +17688,14 @@ let AuroElement$4 = class AuroElement extends i {
|
|
|
17688
17688
|
};
|
|
17689
17689
|
}
|
|
17690
17690
|
|
|
17691
|
+
/**
|
|
17692
|
+
* Returns true if the element has focus.
|
|
17693
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
17694
|
+
*/
|
|
17695
|
+
get componentHasFocus() {
|
|
17696
|
+
return this.matches(':focus');
|
|
17697
|
+
}
|
|
17698
|
+
|
|
17691
17699
|
resetShapeClasses() {
|
|
17692
17700
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
17693
17701
|
|
|
@@ -23438,16 +23446,16 @@ class AuroFormValidation {
|
|
|
23438
23446
|
}
|
|
23439
23447
|
|
|
23440
23448
|
this.getErrorMessage(elem);
|
|
23441
|
-
|
|
23442
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23443
|
-
bubbles: true,
|
|
23444
|
-
composed: true,
|
|
23445
|
-
detail: {
|
|
23446
|
-
validity: elem.validity,
|
|
23447
|
-
message: elem.errorMessage
|
|
23448
|
-
}
|
|
23449
|
-
}));
|
|
23450
23449
|
}
|
|
23450
|
+
|
|
23451
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23452
|
+
bubbles: true,
|
|
23453
|
+
composed: true,
|
|
23454
|
+
detail: {
|
|
23455
|
+
validity: elem.validity,
|
|
23456
|
+
message: elem.errorMessage
|
|
23457
|
+
}
|
|
23458
|
+
}));
|
|
23451
23459
|
}
|
|
23452
23460
|
|
|
23453
23461
|
/**
|
|
@@ -23539,6 +23547,14 @@ let AuroElement$2 = class AuroElement extends i {
|
|
|
23539
23547
|
};
|
|
23540
23548
|
}
|
|
23541
23549
|
|
|
23550
|
+
/**
|
|
23551
|
+
* Returns true if the element has focus.
|
|
23552
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
23553
|
+
*/
|
|
23554
|
+
get componentHasFocus() {
|
|
23555
|
+
return this.matches(':focus');
|
|
23556
|
+
}
|
|
23557
|
+
|
|
23542
23558
|
resetShapeClasses() {
|
|
23543
23559
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
23544
23560
|
|
|
@@ -27267,6 +27283,14 @@ let AuroElement$1 = class AuroElement extends i {
|
|
|
27267
27283
|
};
|
|
27268
27284
|
}
|
|
27269
27285
|
|
|
27286
|
+
/**
|
|
27287
|
+
* Returns true if the element has focus.
|
|
27288
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
27289
|
+
*/
|
|
27290
|
+
get componentHasFocus() {
|
|
27291
|
+
return this.matches(':focus');
|
|
27292
|
+
}
|
|
27293
|
+
|
|
27270
27294
|
resetShapeClasses() {
|
|
27271
27295
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
27272
27296
|
|
|
@@ -28523,6 +28547,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28523
28547
|
});
|
|
28524
28548
|
|
|
28525
28549
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
28550
|
+
// not to bubble up input's validated event.
|
|
28551
|
+
evt.stopPropagation();
|
|
28552
|
+
|
|
28526
28553
|
if (evt.detail.validity === 'customError') {
|
|
28527
28554
|
this.validity = evt.detail.validity;
|
|
28528
28555
|
this.errorMessage = evt.detail.message;
|
|
@@ -28860,7 +28887,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28860
28887
|
}
|
|
28861
28888
|
|
|
28862
28889
|
this.setHasValue();
|
|
28863
|
-
this.validate();
|
|
28864
28890
|
}
|
|
28865
28891
|
|
|
28866
28892
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -796,16 +796,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
this.getErrorMessage(elem);
|
|
799
|
-
|
|
800
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
801
|
-
bubbles: true,
|
|
802
|
-
composed: true,
|
|
803
|
-
detail: {
|
|
804
|
-
validity: elem.validity,
|
|
805
|
-
message: elem.errorMessage
|
|
806
|
-
}
|
|
807
|
-
}));
|
|
808
799
|
}
|
|
800
|
+
|
|
801
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
802
|
+
bubbles: true,
|
|
803
|
+
composed: true,
|
|
804
|
+
detail: {
|
|
805
|
+
validity: elem.validity,
|
|
806
|
+
message: elem.errorMessage
|
|
807
|
+
}
|
|
808
|
+
}));
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
/**
|
|
@@ -17637,6 +17637,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
17637
17637
|
};
|
|
17638
17638
|
}
|
|
17639
17639
|
|
|
17640
|
+
/**
|
|
17641
|
+
* Returns true if the element has focus.
|
|
17642
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
17643
|
+
*/
|
|
17644
|
+
get componentHasFocus() {
|
|
17645
|
+
return this.matches(':focus');
|
|
17646
|
+
}
|
|
17647
|
+
|
|
17640
17648
|
resetShapeClasses() {
|
|
17641
17649
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
17642
17650
|
|
|
@@ -23374,16 +23382,16 @@ class AuroFormValidation {
|
|
|
23374
23382
|
}
|
|
23375
23383
|
|
|
23376
23384
|
this.getErrorMessage(elem);
|
|
23377
|
-
|
|
23378
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23379
|
-
bubbles: true,
|
|
23380
|
-
composed: true,
|
|
23381
|
-
detail: {
|
|
23382
|
-
validity: elem.validity,
|
|
23383
|
-
message: elem.errorMessage
|
|
23384
|
-
}
|
|
23385
|
-
}));
|
|
23386
23385
|
}
|
|
23386
|
+
|
|
23387
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23388
|
+
bubbles: true,
|
|
23389
|
+
composed: true,
|
|
23390
|
+
detail: {
|
|
23391
|
+
validity: elem.validity,
|
|
23392
|
+
message: elem.errorMessage
|
|
23393
|
+
}
|
|
23394
|
+
}));
|
|
23387
23395
|
}
|
|
23388
23396
|
|
|
23389
23397
|
/**
|
|
@@ -23475,6 +23483,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
23475
23483
|
};
|
|
23476
23484
|
}
|
|
23477
23485
|
|
|
23486
|
+
/**
|
|
23487
|
+
* Returns true if the element has focus.
|
|
23488
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
23489
|
+
*/
|
|
23490
|
+
get componentHasFocus() {
|
|
23491
|
+
return this.matches(':focus');
|
|
23492
|
+
}
|
|
23493
|
+
|
|
23478
23494
|
resetShapeClasses() {
|
|
23479
23495
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
23480
23496
|
|
|
@@ -27203,6 +27219,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
27203
27219
|
};
|
|
27204
27220
|
}
|
|
27205
27221
|
|
|
27222
|
+
/**
|
|
27223
|
+
* Returns true if the element has focus.
|
|
27224
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
27225
|
+
*/
|
|
27226
|
+
get componentHasFocus() {
|
|
27227
|
+
return this.matches(':focus');
|
|
27228
|
+
}
|
|
27229
|
+
|
|
27206
27230
|
resetShapeClasses() {
|
|
27207
27231
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
27208
27232
|
|
|
@@ -28459,6 +28483,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28459
28483
|
});
|
|
28460
28484
|
|
|
28461
28485
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
28486
|
+
// not to bubble up input's validated event.
|
|
28487
|
+
evt.stopPropagation();
|
|
28488
|
+
|
|
28462
28489
|
if (evt.detail.validity === 'customError') {
|
|
28463
28490
|
this.validity = evt.detail.validity;
|
|
28464
28491
|
this.errorMessage = evt.detail.message;
|
|
@@ -28796,7 +28823,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28796
28823
|
}
|
|
28797
28824
|
|
|
28798
28825
|
this.setHasValue();
|
|
28799
|
-
this.validate();
|
|
28800
28826
|
}
|
|
28801
28827
|
|
|
28802
28828
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -796,16 +796,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
this.getErrorMessage(elem);
|
|
799
|
-
|
|
800
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
801
|
-
bubbles: true,
|
|
802
|
-
composed: true,
|
|
803
|
-
detail: {
|
|
804
|
-
validity: elem.validity,
|
|
805
|
-
message: elem.errorMessage
|
|
806
|
-
}
|
|
807
|
-
}));
|
|
808
799
|
}
|
|
800
|
+
|
|
801
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
802
|
+
bubbles: true,
|
|
803
|
+
composed: true,
|
|
804
|
+
detail: {
|
|
805
|
+
validity: elem.validity,
|
|
806
|
+
message: elem.errorMessage
|
|
807
|
+
}
|
|
808
|
+
}));
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
/**
|
|
@@ -17637,6 +17637,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
17637
17637
|
};
|
|
17638
17638
|
}
|
|
17639
17639
|
|
|
17640
|
+
/**
|
|
17641
|
+
* Returns true if the element has focus.
|
|
17642
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
17643
|
+
*/
|
|
17644
|
+
get componentHasFocus() {
|
|
17645
|
+
return this.matches(':focus');
|
|
17646
|
+
}
|
|
17647
|
+
|
|
17640
17648
|
resetShapeClasses() {
|
|
17641
17649
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
17642
17650
|
|
|
@@ -23374,16 +23382,16 @@ class AuroFormValidation {
|
|
|
23374
23382
|
}
|
|
23375
23383
|
|
|
23376
23384
|
this.getErrorMessage(elem);
|
|
23377
|
-
|
|
23378
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23379
|
-
bubbles: true,
|
|
23380
|
-
composed: true,
|
|
23381
|
-
detail: {
|
|
23382
|
-
validity: elem.validity,
|
|
23383
|
-
message: elem.errorMessage
|
|
23384
|
-
}
|
|
23385
|
-
}));
|
|
23386
23385
|
}
|
|
23386
|
+
|
|
23387
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23388
|
+
bubbles: true,
|
|
23389
|
+
composed: true,
|
|
23390
|
+
detail: {
|
|
23391
|
+
validity: elem.validity,
|
|
23392
|
+
message: elem.errorMessage
|
|
23393
|
+
}
|
|
23394
|
+
}));
|
|
23387
23395
|
}
|
|
23388
23396
|
|
|
23389
23397
|
/**
|
|
@@ -23475,6 +23483,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
23475
23483
|
};
|
|
23476
23484
|
}
|
|
23477
23485
|
|
|
23486
|
+
/**
|
|
23487
|
+
* Returns true if the element has focus.
|
|
23488
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
23489
|
+
*/
|
|
23490
|
+
get componentHasFocus() {
|
|
23491
|
+
return this.matches(':focus');
|
|
23492
|
+
}
|
|
23493
|
+
|
|
23478
23494
|
resetShapeClasses() {
|
|
23479
23495
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
23480
23496
|
|
|
@@ -27203,6 +27219,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
27203
27219
|
};
|
|
27204
27220
|
}
|
|
27205
27221
|
|
|
27222
|
+
/**
|
|
27223
|
+
* Returns true if the element has focus.
|
|
27224
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
27225
|
+
*/
|
|
27226
|
+
get componentHasFocus() {
|
|
27227
|
+
return this.matches(':focus');
|
|
27228
|
+
}
|
|
27229
|
+
|
|
27206
27230
|
resetShapeClasses() {
|
|
27207
27231
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
27208
27232
|
|
|
@@ -28459,6 +28483,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28459
28483
|
});
|
|
28460
28484
|
|
|
28461
28485
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
28486
|
+
// not to bubble up input's validated event.
|
|
28487
|
+
evt.stopPropagation();
|
|
28488
|
+
|
|
28462
28489
|
if (evt.detail.validity === 'customError') {
|
|
28463
28490
|
this.validity = evt.detail.validity;
|
|
28464
28491
|
this.errorMessage = evt.detail.message;
|
|
@@ -28796,7 +28823,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28796
28823
|
}
|
|
28797
28824
|
|
|
28798
28825
|
this.setHasValue();
|
|
28799
|
-
this.validate();
|
|
28800
28826
|
}
|
|
28801
28827
|
|
|
28802
28828
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -3467,6 +3467,14 @@ class AuroElement extends i {
|
|
|
3467
3467
|
};
|
|
3468
3468
|
}
|
|
3469
3469
|
|
|
3470
|
+
/**
|
|
3471
|
+
* Returns true if the element has focus.
|
|
3472
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
3473
|
+
*/
|
|
3474
|
+
get componentHasFocus() {
|
|
3475
|
+
return this.matches(':focus');
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3470
3478
|
resetShapeClasses() {
|
|
3471
3479
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3472
3480
|
|
|
@@ -3442,6 +3442,14 @@ class AuroElement extends i {
|
|
|
3442
3442
|
};
|
|
3443
3443
|
}
|
|
3444
3444
|
|
|
3445
|
+
/**
|
|
3446
|
+
* Returns true if the element has focus.
|
|
3447
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
3448
|
+
*/
|
|
3449
|
+
get componentHasFocus() {
|
|
3450
|
+
return this.matches(':focus');
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3445
3453
|
resetShapeClasses() {
|
|
3446
3454
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3447
3455
|
|
|
@@ -3395,6 +3395,14 @@ class AuroElement extends LitElement {
|
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
+
/**
|
|
3399
|
+
* Returns true if the element has focus.
|
|
3400
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
3401
|
+
*/
|
|
3402
|
+
get componentHasFocus() {
|
|
3403
|
+
return this.matches(':focus');
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3398
3406
|
resetShapeClasses() {
|
|
3399
3407
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3400
3408
|
|
|
@@ -3395,6 +3395,14 @@ class AuroElement extends LitElement {
|
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
+
/**
|
|
3399
|
+
* Returns true if the element has focus.
|
|
3400
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
3401
|
+
*/
|
|
3402
|
+
get componentHasFocus() {
|
|
3403
|
+
return this.matches(':focus');
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3398
3406
|
resetShapeClasses() {
|
|
3399
3407
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3400
3408
|
|
|
@@ -4933,16 +4933,16 @@ class AuroFormValidation {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
|
|
4935
4935
|
this.getErrorMessage(elem);
|
|
4936
|
-
|
|
4937
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4938
|
-
bubbles: true,
|
|
4939
|
-
composed: true,
|
|
4940
|
-
detail: {
|
|
4941
|
-
validity: elem.validity,
|
|
4942
|
-
message: elem.errorMessage
|
|
4943
|
-
}
|
|
4944
|
-
}));
|
|
4945
4936
|
}
|
|
4937
|
+
|
|
4938
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4939
|
+
bubbles: true,
|
|
4940
|
+
composed: true,
|
|
4941
|
+
detail: {
|
|
4942
|
+
validity: elem.validity,
|
|
4943
|
+
message: elem.errorMessage
|
|
4944
|
+
}
|
|
4945
|
+
}));
|
|
4946
4946
|
}
|
|
4947
4947
|
|
|
4948
4948
|
/**
|
|
@@ -5034,6 +5034,14 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
5034
5034
|
};
|
|
5035
5035
|
}
|
|
5036
5036
|
|
|
5037
|
+
/**
|
|
5038
|
+
* Returns true if the element has focus.
|
|
5039
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
5040
|
+
*/
|
|
5041
|
+
get componentHasFocus() {
|
|
5042
|
+
return this.matches(':focus');
|
|
5043
|
+
}
|
|
5044
|
+
|
|
5037
5045
|
resetShapeClasses() {
|
|
5038
5046
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5039
5047
|
|
|
@@ -4858,16 +4858,16 @@ class AuroFormValidation {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
|
|
4860
4860
|
this.getErrorMessage(elem);
|
|
4861
|
-
|
|
4862
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4863
|
-
bubbles: true,
|
|
4864
|
-
composed: true,
|
|
4865
|
-
detail: {
|
|
4866
|
-
validity: elem.validity,
|
|
4867
|
-
message: elem.errorMessage
|
|
4868
|
-
}
|
|
4869
|
-
}));
|
|
4870
4861
|
}
|
|
4862
|
+
|
|
4863
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4864
|
+
bubbles: true,
|
|
4865
|
+
composed: true,
|
|
4866
|
+
detail: {
|
|
4867
|
+
validity: elem.validity,
|
|
4868
|
+
message: elem.errorMessage
|
|
4869
|
+
}
|
|
4870
|
+
}));
|
|
4871
4871
|
}
|
|
4872
4872
|
|
|
4873
4873
|
/**
|
|
@@ -4959,6 +4959,14 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
4959
4959
|
};
|
|
4960
4960
|
}
|
|
4961
4961
|
|
|
4962
|
+
/**
|
|
4963
|
+
* Returns true if the element has focus.
|
|
4964
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
4965
|
+
*/
|
|
4966
|
+
get componentHasFocus() {
|
|
4967
|
+
return this.matches(':focus');
|
|
4968
|
+
}
|
|
4969
|
+
|
|
4962
4970
|
resetShapeClasses() {
|
|
4963
4971
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4964
4972
|
|
|
@@ -4782,16 +4782,16 @@ class AuroFormValidation {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
|
|
4784
4784
|
this.getErrorMessage(elem);
|
|
4785
|
-
|
|
4786
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4787
|
-
bubbles: true,
|
|
4788
|
-
composed: true,
|
|
4789
|
-
detail: {
|
|
4790
|
-
validity: elem.validity,
|
|
4791
|
-
message: elem.errorMessage
|
|
4792
|
-
}
|
|
4793
|
-
}));
|
|
4794
4785
|
}
|
|
4786
|
+
|
|
4787
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4788
|
+
bubbles: true,
|
|
4789
|
+
composed: true,
|
|
4790
|
+
detail: {
|
|
4791
|
+
validity: elem.validity,
|
|
4792
|
+
message: elem.errorMessage
|
|
4793
|
+
}
|
|
4794
|
+
}));
|
|
4795
4795
|
}
|
|
4796
4796
|
|
|
4797
4797
|
/**
|
|
@@ -4883,6 +4883,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4883
4883
|
};
|
|
4884
4884
|
}
|
|
4885
4885
|
|
|
4886
|
+
/**
|
|
4887
|
+
* Returns true if the element has focus.
|
|
4888
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
4889
|
+
*/
|
|
4890
|
+
get componentHasFocus() {
|
|
4891
|
+
return this.matches(':focus');
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4886
4894
|
resetShapeClasses() {
|
|
4887
4895
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4888
4896
|
|
|
@@ -4782,16 +4782,16 @@ class AuroFormValidation {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
|
|
4784
4784
|
this.getErrorMessage(elem);
|
|
4785
|
-
|
|
4786
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4787
|
-
bubbles: true,
|
|
4788
|
-
composed: true,
|
|
4789
|
-
detail: {
|
|
4790
|
-
validity: elem.validity,
|
|
4791
|
-
message: elem.errorMessage
|
|
4792
|
-
}
|
|
4793
|
-
}));
|
|
4794
4785
|
}
|
|
4786
|
+
|
|
4787
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
4788
|
+
bubbles: true,
|
|
4789
|
+
composed: true,
|
|
4790
|
+
detail: {
|
|
4791
|
+
validity: elem.validity,
|
|
4792
|
+
message: elem.errorMessage
|
|
4793
|
+
}
|
|
4794
|
+
}));
|
|
4795
4795
|
}
|
|
4796
4796
|
|
|
4797
4797
|
/**
|
|
@@ -4883,6 +4883,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4883
4883
|
};
|
|
4884
4884
|
}
|
|
4885
4885
|
|
|
4886
|
+
/**
|
|
4887
|
+
* Returns true if the element has focus.
|
|
4888
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
4889
|
+
*/
|
|
4890
|
+
get componentHasFocus() {
|
|
4891
|
+
return this.matches(':focus');
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4886
4894
|
resetShapeClasses() {
|
|
4887
4895
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4888
4896
|
|
|
@@ -25,6 +25,11 @@ export class AuroElement extends LitElement {
|
|
|
25
25
|
reflect: boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the element has focus.
|
|
30
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
31
|
+
*/
|
|
32
|
+
get componentHasFocus(): boolean;
|
|
28
33
|
resetShapeClasses(): void;
|
|
29
34
|
resetLayoutClasses(): void;
|
|
30
35
|
updateComponentArchitecture(): void;
|
|
@@ -34,6 +34,14 @@ class AuroElement extends LitElement {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the element has focus.
|
|
39
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
40
|
+
*/
|
|
41
|
+
get componentHasFocus() {
|
|
42
|
+
return this.matches(':focus');
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
resetShapeClasses() {
|
|
38
46
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
39
47
|
|
|
@@ -34,6 +34,14 @@ class AuroElement extends LitElement {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the element has focus.
|
|
39
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
40
|
+
*/
|
|
41
|
+
get componentHasFocus() {
|
|
42
|
+
return this.matches(':focus');
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
resetShapeClasses() {
|
|
38
46
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
39
47
|
|
|
@@ -104,6 +104,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Returns true if the element has focus.
|
|
109
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
110
|
+
*/
|
|
111
|
+
get componentHasFocus() {
|
|
112
|
+
return this.matches(':focus');
|
|
113
|
+
}
|
|
114
|
+
|
|
107
115
|
resetShapeClasses() {
|
|
108
116
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
109
117
|
|
|
@@ -64,6 +64,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the element has focus.
|
|
69
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
70
|
+
*/
|
|
71
|
+
get componentHasFocus() {
|
|
72
|
+
return this.matches(':focus');
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
resetShapeClasses() {
|
|
68
76
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
69
77
|
|
|
@@ -43,6 +43,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the element has focus.
|
|
48
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
49
|
+
*/
|
|
50
|
+
get componentHasFocus() {
|
|
51
|
+
return this.matches(':focus');
|
|
52
|
+
}
|
|
53
|
+
|
|
46
54
|
resetShapeClasses() {
|
|
47
55
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
48
56
|
|
|
@@ -43,6 +43,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the element has focus.
|
|
48
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
49
|
+
*/
|
|
50
|
+
get componentHasFocus() {
|
|
51
|
+
return this.matches(':focus');
|
|
52
|
+
}
|
|
53
|
+
|
|
46
54
|
resetShapeClasses() {
|
|
47
55
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
48
56
|
|