@aurodesignsystem/auro-formkit 5.1.0-rc-1044.1 → 5.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 +1 -14
- package/components/checkbox/demo/api.min.js +9 -37
- package/components/checkbox/demo/index.min.js +9 -37
- package/components/checkbox/dist/auro-checkbox.d.ts +0 -7
- package/components/checkbox/dist/index.js +9 -37
- package/components/checkbox/dist/registered.js +9 -37
- package/components/combobox/demo/api.min.js +24 -51
- package/components/combobox/demo/index.min.js +24 -51
- package/components/combobox/dist/index.js +24 -51
- package/components/combobox/dist/registered.js +24 -51
- package/components/counter/demo/api.min.js +9 -25
- package/components/counter/demo/index.min.js +9 -25
- package/components/counter/dist/index.js +9 -25
- package/components/counter/dist/registered.js +9 -25
- package/components/datepicker/demo/api.md +0 -1
- package/components/datepicker/demo/api.min.js +19 -45
- package/components/datepicker/demo/index.min.js +19 -45
- package/components/datepicker/dist/index.js +19 -45
- package/components/datepicker/dist/registered.js +19 -45
- package/components/dropdown/demo/api.min.js +0 -8
- package/components/dropdown/demo/index.min.js +0 -8
- package/components/dropdown/dist/index.js +0 -8
- package/components/dropdown/dist/registered.js +0 -8
- package/components/input/demo/api.min.js +9 -17
- package/components/input/demo/index.min.js +9 -17
- package/components/input/dist/index.js +9 -17
- package/components/input/dist/registered.js +9 -17
- package/components/layoutElement/dist/auroElement.d.ts +0 -5
- package/components/layoutElement/dist/index.js +0 -8
- package/components/layoutElement/dist/registered.js +0 -8
- package/components/menu/demo/api.min.js +0 -8
- package/components/menu/demo/index.min.js +0 -8
- package/components/menu/dist/index.js +0 -8
- package/components/menu/dist/registered.js +0 -8
- package/components/radio/demo/api.min.js +13 -15
- package/components/radio/demo/index.min.js +13 -15
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +13 -15
- package/components/radio/dist/registered.js +13 -15
- package/components/select/demo/api.min.js +9 -25
- package/components/select/demo/index.min.js +9 -25
- package/components/select/dist/index.js +9 -25
- package/components/select/dist/registered.js +9 -25
- package/package.json +1 -1
|
@@ -835,16 +835,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
this.getErrorMessage(elem);
|
|
838
|
-
}
|
|
839
838
|
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
839
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
840
|
+
bubbles: true,
|
|
841
|
+
composed: true,
|
|
842
|
+
detail: {
|
|
843
|
+
validity: elem.validity,
|
|
844
|
+
message: elem.errorMessage
|
|
845
|
+
}
|
|
846
|
+
}));
|
|
847
|
+
}
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
/**
|
|
@@ -4294,14 +4294,6 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4294
4294
|
};
|
|
4295
4295
|
}
|
|
4296
4296
|
|
|
4297
|
-
/**
|
|
4298
|
-
* Returns true if the element has focus.
|
|
4299
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
4300
|
-
*/
|
|
4301
|
-
get componentHasFocus() {
|
|
4302
|
-
return this.matches(':focus');
|
|
4303
|
-
}
|
|
4304
|
-
|
|
4305
4297
|
resetShapeClasses() {
|
|
4306
4298
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4307
4299
|
|
|
@@ -10039,16 +10031,16 @@ class AuroFormValidation {
|
|
|
10039
10031
|
}
|
|
10040
10032
|
|
|
10041
10033
|
this.getErrorMessage(elem);
|
|
10042
|
-
}
|
|
10043
10034
|
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10035
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10036
|
+
bubbles: true,
|
|
10037
|
+
composed: true,
|
|
10038
|
+
detail: {
|
|
10039
|
+
validity: elem.validity,
|
|
10040
|
+
message: elem.errorMessage
|
|
10041
|
+
}
|
|
10042
|
+
}));
|
|
10043
|
+
}
|
|
10052
10044
|
}
|
|
10053
10045
|
|
|
10054
10046
|
/**
|
|
@@ -10140,14 +10132,6 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
|
|
|
10140
10132
|
};
|
|
10141
10133
|
}
|
|
10142
10134
|
|
|
10143
|
-
/**
|
|
10144
|
-
* Returns true if the element has focus.
|
|
10145
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
10146
|
-
*/
|
|
10147
|
-
get componentHasFocus() {
|
|
10148
|
-
return this.matches(':focus');
|
|
10149
|
-
}
|
|
10150
|
-
|
|
10151
10135
|
resetShapeClasses() {
|
|
10152
10136
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10153
10137
|
|
|
@@ -15577,7 +15561,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
15577
15561
|
|
|
15578
15562
|
var bibTemplateVersion = '1.0.0';
|
|
15579
15563
|
|
|
15580
|
-
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-input]{--ds-auro-input-
|
|
15564
|
+
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-input]{--ds-auro-input-container-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15581
15565
|
|
|
15582
15566
|
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15583
15567
|
|
|
@@ -15617,14 +15601,6 @@ class AuroElement extends LitElement {
|
|
|
15617
15601
|
};
|
|
15618
15602
|
}
|
|
15619
15603
|
|
|
15620
|
-
/**
|
|
15621
|
-
* Returns true if the element has focus.
|
|
15622
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
15623
|
-
*/
|
|
15624
|
-
get componentHasFocus() {
|
|
15625
|
-
return this.matches(':focus');
|
|
15626
|
-
}
|
|
15627
|
-
|
|
15628
15604
|
resetShapeClasses() {
|
|
15629
15605
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15630
15606
|
|
|
@@ -16450,7 +16426,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16450
16426
|
|
|
16451
16427
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16452
16428
|
setTimeout(() => {
|
|
16453
|
-
if (this
|
|
16429
|
+
if (document.activeElement === this) {
|
|
16454
16430
|
this.setInputFocus();
|
|
16455
16431
|
}
|
|
16456
16432
|
}, 0);
|
|
@@ -16615,16 +16591,13 @@ class AuroCombobox extends AuroElement {
|
|
|
16615
16591
|
* Validate every time we remove focus from the combo box.
|
|
16616
16592
|
*/
|
|
16617
16593
|
this.addEventListener('focusout', () => {
|
|
16618
|
-
if (
|
|
16594
|
+
if (document.activeElement !== this) {
|
|
16619
16595
|
this.validate();
|
|
16620
16596
|
}
|
|
16621
16597
|
});
|
|
16622
16598
|
|
|
16623
16599
|
// Handle validation messages from auroFormElement-validated event
|
|
16624
16600
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16625
|
-
// not to bubble up input's validated event.
|
|
16626
|
-
evt.stopPropagation();
|
|
16627
|
-
|
|
16628
16601
|
this.errorMessage = evt.detail.message;
|
|
16629
16602
|
});
|
|
16630
16603
|
}
|
|
@@ -16695,7 +16668,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16695
16668
|
this.handleMenuOptions();
|
|
16696
16669
|
|
|
16697
16670
|
// Validate only if the value was set programmatically
|
|
16698
|
-
if (
|
|
16671
|
+
if (document.activeElement !== this) {
|
|
16699
16672
|
this.validate();
|
|
16700
16673
|
}
|
|
16701
16674
|
|
|
@@ -16735,7 +16708,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16735
16708
|
}
|
|
16736
16709
|
} else {
|
|
16737
16710
|
setTimeout(() => {
|
|
16738
|
-
if (
|
|
16711
|
+
if (document.activeElement !== this) {
|
|
16739
16712
|
this.hideBib();
|
|
16740
16713
|
}
|
|
16741
16714
|
}, 0);
|
|
@@ -16856,7 +16829,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16856
16829
|
}
|
|
16857
16830
|
|
|
16858
16831
|
if (changedProperties.has('availableOptions')) {
|
|
16859
|
-
if (this.availableOptions && this.availableOptions.length > 0 && this
|
|
16832
|
+
if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
|
|
16860
16833
|
this.showBib();
|
|
16861
16834
|
} else {
|
|
16862
16835
|
this.hideBib();
|
|
@@ -835,16 +835,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
this.getErrorMessage(elem);
|
|
838
|
-
}
|
|
839
838
|
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
839
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
840
|
+
bubbles: true,
|
|
841
|
+
composed: true,
|
|
842
|
+
detail: {
|
|
843
|
+
validity: elem.validity,
|
|
844
|
+
message: elem.errorMessage
|
|
845
|
+
}
|
|
846
|
+
}));
|
|
847
|
+
}
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
/**
|
|
@@ -4294,14 +4294,6 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4294
4294
|
};
|
|
4295
4295
|
}
|
|
4296
4296
|
|
|
4297
|
-
/**
|
|
4298
|
-
* Returns true if the element has focus.
|
|
4299
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
4300
|
-
*/
|
|
4301
|
-
get componentHasFocus() {
|
|
4302
|
-
return this.matches(':focus');
|
|
4303
|
-
}
|
|
4304
|
-
|
|
4305
4297
|
resetShapeClasses() {
|
|
4306
4298
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4307
4299
|
|
|
@@ -10039,16 +10031,16 @@ class AuroFormValidation {
|
|
|
10039
10031
|
}
|
|
10040
10032
|
|
|
10041
10033
|
this.getErrorMessage(elem);
|
|
10042
|
-
}
|
|
10043
10034
|
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10035
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10036
|
+
bubbles: true,
|
|
10037
|
+
composed: true,
|
|
10038
|
+
detail: {
|
|
10039
|
+
validity: elem.validity,
|
|
10040
|
+
message: elem.errorMessage
|
|
10041
|
+
}
|
|
10042
|
+
}));
|
|
10043
|
+
}
|
|
10052
10044
|
}
|
|
10053
10045
|
|
|
10054
10046
|
/**
|
|
@@ -10140,14 +10132,6 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
|
|
|
10140
10132
|
};
|
|
10141
10133
|
}
|
|
10142
10134
|
|
|
10143
|
-
/**
|
|
10144
|
-
* Returns true if the element has focus.
|
|
10145
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
10146
|
-
*/
|
|
10147
|
-
get componentHasFocus() {
|
|
10148
|
-
return this.matches(':focus');
|
|
10149
|
-
}
|
|
10150
|
-
|
|
10151
10135
|
resetShapeClasses() {
|
|
10152
10136
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10153
10137
|
|
|
@@ -15577,7 +15561,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
15577
15561
|
|
|
15578
15562
|
var bibTemplateVersion = '1.0.0';
|
|
15579
15563
|
|
|
15580
|
-
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-input]{--ds-auro-input-
|
|
15564
|
+
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-input]{--ds-auro-input-container-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15581
15565
|
|
|
15582
15566
|
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15583
15567
|
|
|
@@ -15617,14 +15601,6 @@ class AuroElement extends LitElement {
|
|
|
15617
15601
|
};
|
|
15618
15602
|
}
|
|
15619
15603
|
|
|
15620
|
-
/**
|
|
15621
|
-
* Returns true if the element has focus.
|
|
15622
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
15623
|
-
*/
|
|
15624
|
-
get componentHasFocus() {
|
|
15625
|
-
return this.matches(':focus');
|
|
15626
|
-
}
|
|
15627
|
-
|
|
15628
15604
|
resetShapeClasses() {
|
|
15629
15605
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15630
15606
|
|
|
@@ -16450,7 +16426,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16450
16426
|
|
|
16451
16427
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16452
16428
|
setTimeout(() => {
|
|
16453
|
-
if (this
|
|
16429
|
+
if (document.activeElement === this) {
|
|
16454
16430
|
this.setInputFocus();
|
|
16455
16431
|
}
|
|
16456
16432
|
}, 0);
|
|
@@ -16615,16 +16591,13 @@ class AuroCombobox extends AuroElement {
|
|
|
16615
16591
|
* Validate every time we remove focus from the combo box.
|
|
16616
16592
|
*/
|
|
16617
16593
|
this.addEventListener('focusout', () => {
|
|
16618
|
-
if (
|
|
16594
|
+
if (document.activeElement !== this) {
|
|
16619
16595
|
this.validate();
|
|
16620
16596
|
}
|
|
16621
16597
|
});
|
|
16622
16598
|
|
|
16623
16599
|
// Handle validation messages from auroFormElement-validated event
|
|
16624
16600
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16625
|
-
// not to bubble up input's validated event.
|
|
16626
|
-
evt.stopPropagation();
|
|
16627
|
-
|
|
16628
16601
|
this.errorMessage = evt.detail.message;
|
|
16629
16602
|
});
|
|
16630
16603
|
}
|
|
@@ -16695,7 +16668,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16695
16668
|
this.handleMenuOptions();
|
|
16696
16669
|
|
|
16697
16670
|
// Validate only if the value was set programmatically
|
|
16698
|
-
if (
|
|
16671
|
+
if (document.activeElement !== this) {
|
|
16699
16672
|
this.validate();
|
|
16700
16673
|
}
|
|
16701
16674
|
|
|
@@ -16735,7 +16708,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16735
16708
|
}
|
|
16736
16709
|
} else {
|
|
16737
16710
|
setTimeout(() => {
|
|
16738
|
-
if (
|
|
16711
|
+
if (document.activeElement !== this) {
|
|
16739
16712
|
this.hideBib();
|
|
16740
16713
|
}
|
|
16741
16714
|
}, 0);
|
|
@@ -16856,7 +16829,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16856
16829
|
}
|
|
16857
16830
|
|
|
16858
16831
|
if (changedProperties.has('availableOptions')) {
|
|
16859
|
-
if (this.availableOptions && this.availableOptions.length > 0 && this
|
|
16832
|
+
if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
|
|
16860
16833
|
this.showBib();
|
|
16861
16834
|
} else {
|
|
16862
16835
|
this.hideBib();
|
|
@@ -2423,16 +2423,16 @@ class AuroFormValidation {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
|
|
2425
2425
|
this.getErrorMessage(elem);
|
|
2426
|
-
}
|
|
2427
2426
|
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2427
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
2428
|
+
bubbles: true,
|
|
2429
|
+
composed: true,
|
|
2430
|
+
detail: {
|
|
2431
|
+
validity: elem.validity,
|
|
2432
|
+
message: elem.errorMessage
|
|
2433
|
+
}
|
|
2434
|
+
}));
|
|
2435
|
+
}
|
|
2436
2436
|
}
|
|
2437
2437
|
|
|
2438
2438
|
/**
|
|
@@ -6526,14 +6526,6 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6526
6526
|
};
|
|
6527
6527
|
}
|
|
6528
6528
|
|
|
6529
|
-
/**
|
|
6530
|
-
* Returns true if the element has focus.
|
|
6531
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
6532
|
-
*/
|
|
6533
|
-
get componentHasFocus() {
|
|
6534
|
-
return this.matches(':focus');
|
|
6535
|
-
}
|
|
6536
|
-
|
|
6537
6529
|
resetShapeClasses() {
|
|
6538
6530
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6539
6531
|
|
|
@@ -9518,14 +9510,6 @@ class AuroElement extends i$2 {
|
|
|
9518
9510
|
};
|
|
9519
9511
|
}
|
|
9520
9512
|
|
|
9521
|
-
/**
|
|
9522
|
-
* Returns true if the element has focus.
|
|
9523
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
9524
|
-
*/
|
|
9525
|
-
get componentHasFocus() {
|
|
9526
|
-
return this.matches(':focus');
|
|
9527
|
-
}
|
|
9528
|
-
|
|
9529
9513
|
resetShapeClasses() {
|
|
9530
9514
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9531
9515
|
|
|
@@ -2423,16 +2423,16 @@ class AuroFormValidation {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
|
|
2425
2425
|
this.getErrorMessage(elem);
|
|
2426
|
-
}
|
|
2427
2426
|
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2427
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
2428
|
+
bubbles: true,
|
|
2429
|
+
composed: true,
|
|
2430
|
+
detail: {
|
|
2431
|
+
validity: elem.validity,
|
|
2432
|
+
message: elem.errorMessage
|
|
2433
|
+
}
|
|
2434
|
+
}));
|
|
2435
|
+
}
|
|
2436
2436
|
}
|
|
2437
2437
|
|
|
2438
2438
|
/**
|
|
@@ -6526,14 +6526,6 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6526
6526
|
};
|
|
6527
6527
|
}
|
|
6528
6528
|
|
|
6529
|
-
/**
|
|
6530
|
-
* Returns true if the element has focus.
|
|
6531
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
6532
|
-
*/
|
|
6533
|
-
get componentHasFocus() {
|
|
6534
|
-
return this.matches(':focus');
|
|
6535
|
-
}
|
|
6536
|
-
|
|
6537
6529
|
resetShapeClasses() {
|
|
6538
6530
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6539
6531
|
|
|
@@ -9518,14 +9510,6 @@ class AuroElement extends i$2 {
|
|
|
9518
9510
|
};
|
|
9519
9511
|
}
|
|
9520
9512
|
|
|
9521
|
-
/**
|
|
9522
|
-
* Returns true if the element has focus.
|
|
9523
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
9524
|
-
*/
|
|
9525
|
-
get componentHasFocus() {
|
|
9526
|
-
return this.matches(':focus');
|
|
9527
|
-
}
|
|
9528
|
-
|
|
9529
9513
|
resetShapeClasses() {
|
|
9530
9514
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9531
9515
|
|
|
@@ -2376,16 +2376,16 @@ class AuroFormValidation {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
2378
|
this.getErrorMessage(elem);
|
|
2379
|
-
}
|
|
2380
2379
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2380
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
2381
|
+
bubbles: true,
|
|
2382
|
+
composed: true,
|
|
2383
|
+
detail: {
|
|
2384
|
+
validity: elem.validity,
|
|
2385
|
+
message: elem.errorMessage
|
|
2386
|
+
}
|
|
2387
|
+
}));
|
|
2388
|
+
}
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
2391
|
/**
|
|
@@ -6479,14 +6479,6 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
6479
6479
|
};
|
|
6480
6480
|
}
|
|
6481
6481
|
|
|
6482
|
-
/**
|
|
6483
|
-
* Returns true if the element has focus.
|
|
6484
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
6485
|
-
*/
|
|
6486
|
-
get componentHasFocus() {
|
|
6487
|
-
return this.matches(':focus');
|
|
6488
|
-
}
|
|
6489
|
-
|
|
6490
6482
|
resetShapeClasses() {
|
|
6491
6483
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6492
6484
|
|
|
@@ -9471,14 +9463,6 @@ class AuroElement extends LitElement {
|
|
|
9471
9463
|
};
|
|
9472
9464
|
}
|
|
9473
9465
|
|
|
9474
|
-
/**
|
|
9475
|
-
* Returns true if the element has focus.
|
|
9476
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
9477
|
-
*/
|
|
9478
|
-
get componentHasFocus() {
|
|
9479
|
-
return this.matches(':focus');
|
|
9480
|
-
}
|
|
9481
|
-
|
|
9482
9466
|
resetShapeClasses() {
|
|
9483
9467
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9484
9468
|
|
|
@@ -2376,16 +2376,16 @@ class AuroFormValidation {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
2378
|
this.getErrorMessage(elem);
|
|
2379
|
-
}
|
|
2380
2379
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2380
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
2381
|
+
bubbles: true,
|
|
2382
|
+
composed: true,
|
|
2383
|
+
detail: {
|
|
2384
|
+
validity: elem.validity,
|
|
2385
|
+
message: elem.errorMessage
|
|
2386
|
+
}
|
|
2387
|
+
}));
|
|
2388
|
+
}
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
2391
|
/**
|
|
@@ -6479,14 +6479,6 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
6479
6479
|
};
|
|
6480
6480
|
}
|
|
6481
6481
|
|
|
6482
|
-
/**
|
|
6483
|
-
* Returns true if the element has focus.
|
|
6484
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
6485
|
-
*/
|
|
6486
|
-
get componentHasFocus() {
|
|
6487
|
-
return this.matches(':focus');
|
|
6488
|
-
}
|
|
6489
|
-
|
|
6490
6482
|
resetShapeClasses() {
|
|
6491
6483
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6492
6484
|
|
|
@@ -9471,14 +9463,6 @@ class AuroElement extends LitElement {
|
|
|
9471
9463
|
};
|
|
9472
9464
|
}
|
|
9473
9465
|
|
|
9474
|
-
/**
|
|
9475
|
-
* Returns true if the element has focus.
|
|
9476
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
9477
|
-
*/
|
|
9478
|
-
get componentHasFocus() {
|
|
9479
|
-
return this.matches(':focus');
|
|
9480
|
-
}
|
|
9481
|
-
|
|
9482
9466
|
resetShapeClasses() {
|
|
9483
9467
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9484
9468
|
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
| [calendarFocusDate](#calendarFocusDate) | `calendarFocusDate` | | `string` | "value" | The date that will first be visually rendered to the user in the calendar. |
|
|
13
13
|
| [calendarStartDate](#calendarStartDate) | `calendarStartDate` | | `string` | "undefined" | The first date that may be displayed in the calendar. |
|
|
14
14
|
| [centralDate](#centralDate) | `centralDate` | | `string` | | The date that determines the currently visible month. |
|
|
15
|
-
| [componentHasFocus](#componentHasFocus) | | readonly | `boolean` | | Returns true if the element has focus. |
|
|
16
15
|
| [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the datepicker. |
|
|
17
16
|
| [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
18
17
|
| [format](#format) | `format` | | `string` | "mm/dd/yyyy" | Specifies the date format. The default is `mm/dd/yyyy`. |
|
|
@@ -1075,16 +1075,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
|
|
1077
1077
|
this.getErrorMessage(elem);
|
|
1078
|
-
}
|
|
1079
1078
|
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1079
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1080
|
+
bubbles: true,
|
|
1081
|
+
composed: true,
|
|
1082
|
+
detail: {
|
|
1083
|
+
validity: elem.validity,
|
|
1084
|
+
message: elem.errorMessage
|
|
1085
|
+
}
|
|
1086
|
+
}));
|
|
1087
|
+
}
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
/**
|
|
@@ -17947,14 +17947,6 @@ let AuroElement$4 = class AuroElement extends i {
|
|
|
17947
17947
|
};
|
|
17948
17948
|
}
|
|
17949
17949
|
|
|
17950
|
-
/**
|
|
17951
|
-
* Returns true if the element has focus.
|
|
17952
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
17953
|
-
*/
|
|
17954
|
-
get componentHasFocus() {
|
|
17955
|
-
return this.matches(':focus');
|
|
17956
|
-
}
|
|
17957
|
-
|
|
17958
17950
|
resetShapeClasses() {
|
|
17959
17951
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
17960
17952
|
|
|
@@ -23705,16 +23697,16 @@ class AuroFormValidation {
|
|
|
23705
23697
|
}
|
|
23706
23698
|
|
|
23707
23699
|
this.getErrorMessage(elem);
|
|
23708
|
-
}
|
|
23709
23700
|
|
|
23710
|
-
|
|
23711
|
-
|
|
23712
|
-
|
|
23713
|
-
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23701
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
23702
|
+
bubbles: true,
|
|
23703
|
+
composed: true,
|
|
23704
|
+
detail: {
|
|
23705
|
+
validity: elem.validity,
|
|
23706
|
+
message: elem.errorMessage
|
|
23707
|
+
}
|
|
23708
|
+
}));
|
|
23709
|
+
}
|
|
23718
23710
|
}
|
|
23719
23711
|
|
|
23720
23712
|
/**
|
|
@@ -23806,14 +23798,6 @@ let AuroElement$2 = class AuroElement extends i {
|
|
|
23806
23798
|
};
|
|
23807
23799
|
}
|
|
23808
23800
|
|
|
23809
|
-
/**
|
|
23810
|
-
* Returns true if the element has focus.
|
|
23811
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
23812
|
-
*/
|
|
23813
|
-
get componentHasFocus() {
|
|
23814
|
-
return this.matches(':focus');
|
|
23815
|
-
}
|
|
23816
|
-
|
|
23817
23801
|
resetShapeClasses() {
|
|
23818
23802
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
23819
23803
|
|
|
@@ -27542,14 +27526,6 @@ let AuroElement$1 = class AuroElement extends i {
|
|
|
27542
27526
|
};
|
|
27543
27527
|
}
|
|
27544
27528
|
|
|
27545
|
-
/**
|
|
27546
|
-
* Returns true if the element has focus.
|
|
27547
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
27548
|
-
*/
|
|
27549
|
-
get componentHasFocus() {
|
|
27550
|
-
return this.matches(':focus');
|
|
27551
|
-
}
|
|
27552
|
-
|
|
27553
27529
|
resetShapeClasses() {
|
|
27554
27530
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
27555
27531
|
|
|
@@ -28806,9 +28782,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28806
28782
|
});
|
|
28807
28783
|
|
|
28808
28784
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
28809
|
-
// not to bubble up input's validated event.
|
|
28810
|
-
evt.stopPropagation();
|
|
28811
|
-
|
|
28812
28785
|
if (evt.detail.validity === 'customError') {
|
|
28813
28786
|
this.validity = evt.detail.validity;
|
|
28814
28787
|
this.errorMessage = evt.detail.message;
|
|
@@ -29146,6 +29119,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29146
29119
|
}
|
|
29147
29120
|
|
|
29148
29121
|
this.setHasValue();
|
|
29122
|
+
this.validate();
|
|
29149
29123
|
}
|
|
29150
29124
|
|
|
29151
29125
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|