@aurodesignsystem-dev/auro-formkit 0.0.0-pr649.3 → 0.0.0-pr649.4
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.
|
@@ -6142,6 +6142,17 @@ class AuroSelect extends i$2 {
|
|
|
6142
6142
|
}
|
|
6143
6143
|
}
|
|
6144
6144
|
|
|
6145
|
+
/**
|
|
6146
|
+
* Resets all options to their default state.
|
|
6147
|
+
* @private
|
|
6148
|
+
*/
|
|
6149
|
+
clearSelection() {
|
|
6150
|
+
this.value = undefined;
|
|
6151
|
+
this.optionSelected = undefined;
|
|
6152
|
+
|
|
6153
|
+
this.menu.multiSelect = this.multiSelect;
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6145
6156
|
/**
|
|
6146
6157
|
* Handle element attributes on update.
|
|
6147
6158
|
* @private
|
|
@@ -6184,6 +6195,10 @@ class AuroSelect extends i$2 {
|
|
|
6184
6195
|
}
|
|
6185
6196
|
|
|
6186
6197
|
async updated(changedProperties) {
|
|
6198
|
+
if (changedProperties.has('multiSelect')) {
|
|
6199
|
+
this.clearSelection();
|
|
6200
|
+
}
|
|
6201
|
+
|
|
6187
6202
|
if (changedProperties.has('value')) {
|
|
6188
6203
|
if (this.value) {
|
|
6189
6204
|
this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
|
|
@@ -6290,7 +6305,7 @@ class AuroSelect extends i$2 {
|
|
|
6290
6305
|
}
|
|
6291
6306
|
|
|
6292
6307
|
if (this.multiSelect) {
|
|
6293
|
-
nativeSelect.value = this.value[0]
|
|
6308
|
+
nativeSelect.value = this.value ? this.value[0] : '';
|
|
6294
6309
|
} else {
|
|
6295
6310
|
nativeSelect.value = this.value || '';
|
|
6296
6311
|
}
|
|
@@ -6050,6 +6050,17 @@ class AuroSelect extends i$2 {
|
|
|
6050
6050
|
}
|
|
6051
6051
|
}
|
|
6052
6052
|
|
|
6053
|
+
/**
|
|
6054
|
+
* Resets all options to their default state.
|
|
6055
|
+
* @private
|
|
6056
|
+
*/
|
|
6057
|
+
clearSelection() {
|
|
6058
|
+
this.value = undefined;
|
|
6059
|
+
this.optionSelected = undefined;
|
|
6060
|
+
|
|
6061
|
+
this.menu.multiSelect = this.multiSelect;
|
|
6062
|
+
}
|
|
6063
|
+
|
|
6053
6064
|
/**
|
|
6054
6065
|
* Handle element attributes on update.
|
|
6055
6066
|
* @private
|
|
@@ -6092,6 +6103,10 @@ class AuroSelect extends i$2 {
|
|
|
6092
6103
|
}
|
|
6093
6104
|
|
|
6094
6105
|
async updated(changedProperties) {
|
|
6106
|
+
if (changedProperties.has('multiSelect')) {
|
|
6107
|
+
this.clearSelection();
|
|
6108
|
+
}
|
|
6109
|
+
|
|
6095
6110
|
if (changedProperties.has('value')) {
|
|
6096
6111
|
if (this.value) {
|
|
6097
6112
|
this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
|
|
@@ -6198,7 +6213,7 @@ class AuroSelect extends i$2 {
|
|
|
6198
6213
|
}
|
|
6199
6214
|
|
|
6200
6215
|
if (this.multiSelect) {
|
|
6201
|
-
nativeSelect.value = this.value[0]
|
|
6216
|
+
nativeSelect.value = this.value ? this.value[0] : '';
|
|
6202
6217
|
} else {
|
|
6203
6218
|
nativeSelect.value = this.value || '';
|
|
6204
6219
|
}
|
|
@@ -320,6 +320,11 @@ export class AuroSelect extends LitElement {
|
|
|
320
320
|
* @returns {void}
|
|
321
321
|
*/
|
|
322
322
|
private generateOptionsArray;
|
|
323
|
+
/**
|
|
324
|
+
* Resets all options to their default state.
|
|
325
|
+
* @private
|
|
326
|
+
*/
|
|
327
|
+
private clearSelection;
|
|
323
328
|
firstUpdated(): void;
|
|
324
329
|
updated(changedProperties: any): Promise<void>;
|
|
325
330
|
/**
|
|
@@ -6004,6 +6004,17 @@ class AuroSelect extends LitElement {
|
|
|
6004
6004
|
}
|
|
6005
6005
|
}
|
|
6006
6006
|
|
|
6007
|
+
/**
|
|
6008
|
+
* Resets all options to their default state.
|
|
6009
|
+
* @private
|
|
6010
|
+
*/
|
|
6011
|
+
clearSelection() {
|
|
6012
|
+
this.value = undefined;
|
|
6013
|
+
this.optionSelected = undefined;
|
|
6014
|
+
|
|
6015
|
+
this.menu.multiSelect = this.multiSelect;
|
|
6016
|
+
}
|
|
6017
|
+
|
|
6007
6018
|
/**
|
|
6008
6019
|
* Handle element attributes on update.
|
|
6009
6020
|
* @private
|
|
@@ -6046,6 +6057,10 @@ class AuroSelect extends LitElement {
|
|
|
6046
6057
|
}
|
|
6047
6058
|
|
|
6048
6059
|
async updated(changedProperties) {
|
|
6060
|
+
if (changedProperties.has('multiSelect')) {
|
|
6061
|
+
this.clearSelection();
|
|
6062
|
+
}
|
|
6063
|
+
|
|
6049
6064
|
if (changedProperties.has('value')) {
|
|
6050
6065
|
if (this.value) {
|
|
6051
6066
|
this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
|
|
@@ -6152,7 +6167,7 @@ class AuroSelect extends LitElement {
|
|
|
6152
6167
|
}
|
|
6153
6168
|
|
|
6154
6169
|
if (this.multiSelect) {
|
|
6155
|
-
nativeSelect.value = this.value[0]
|
|
6170
|
+
nativeSelect.value = this.value ? this.value[0] : '';
|
|
6156
6171
|
} else {
|
|
6157
6172
|
nativeSelect.value = this.value || '';
|
|
6158
6173
|
}
|
|
@@ -6004,6 +6004,17 @@ class AuroSelect extends LitElement {
|
|
|
6004
6004
|
}
|
|
6005
6005
|
}
|
|
6006
6006
|
|
|
6007
|
+
/**
|
|
6008
|
+
* Resets all options to their default state.
|
|
6009
|
+
* @private
|
|
6010
|
+
*/
|
|
6011
|
+
clearSelection() {
|
|
6012
|
+
this.value = undefined;
|
|
6013
|
+
this.optionSelected = undefined;
|
|
6014
|
+
|
|
6015
|
+
this.menu.multiSelect = this.multiSelect;
|
|
6016
|
+
}
|
|
6017
|
+
|
|
6007
6018
|
/**
|
|
6008
6019
|
* Handle element attributes on update.
|
|
6009
6020
|
* @private
|
|
@@ -6046,6 +6057,10 @@ class AuroSelect extends LitElement {
|
|
|
6046
6057
|
}
|
|
6047
6058
|
|
|
6048
6059
|
async updated(changedProperties) {
|
|
6060
|
+
if (changedProperties.has('multiSelect')) {
|
|
6061
|
+
this.clearSelection();
|
|
6062
|
+
}
|
|
6063
|
+
|
|
6049
6064
|
if (changedProperties.has('value')) {
|
|
6050
6065
|
if (this.value) {
|
|
6051
6066
|
this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
|
|
@@ -6152,7 +6167,7 @@ class AuroSelect extends LitElement {
|
|
|
6152
6167
|
}
|
|
6153
6168
|
|
|
6154
6169
|
if (this.multiSelect) {
|
|
6155
|
-
nativeSelect.value = this.value[0]
|
|
6170
|
+
nativeSelect.value = this.value ? this.value[0] : '';
|
|
6156
6171
|
} else {
|
|
6157
6172
|
nativeSelect.value = this.value || '';
|
|
6158
6173
|
}
|
package/package.json
CHANGED