@luftborn/custom-elements 2.10.0 → 2.11.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/demo/index.js +5 -5
- package/demo/index.min.js +4 -4
- package/demo/index.min.js.map +1 -1
- package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +0 -3
- package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +1 -1
- package/dist/elements/DropDownList/DropDownListElement.d.ts +1 -1
- package/dist/elements/DropDownList/DropDownListElement.js +4 -1
- package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/CustomRegularExpression/CustomRegularExpressionElement.ts +0 -3
- package/src/elements/DropDownList/DropDownListElement.ts +5 -2
package/demo/index.min.js
CHANGED
|
@@ -3982,9 +3982,6 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
|
|
|
3982
3982
|
if (this.placeholder) {
|
|
3983
3983
|
this.text.setAttribute('placeholder', this.placeholder);
|
|
3984
3984
|
}
|
|
3985
|
-
if (this.initialValue) {
|
|
3986
|
-
this.value = this.initialValue;
|
|
3987
|
-
}
|
|
3988
3985
|
};
|
|
3989
3986
|
// events
|
|
3990
3987
|
CustomRegularExpressionElement.prototype.change = function ($event) {
|
|
@@ -4136,6 +4133,9 @@ var DropDownListElement = /** @class */ (function (_super) {
|
|
|
4136
4133
|
}
|
|
4137
4134
|
Object.defineProperty(DropDownListElement.prototype, "value", {
|
|
4138
4135
|
get: function () {
|
|
4136
|
+
if (this.multi) {
|
|
4137
|
+
return Array.from(this.select.selectedOptions).map(function (option) { return option.value; }).join(', ');
|
|
4138
|
+
}
|
|
4139
4139
|
return "" + this.select.value;
|
|
4140
4140
|
},
|
|
4141
4141
|
set: function (value) {
|
|
@@ -4156,7 +4156,7 @@ var DropDownListElement = /** @class */ (function (_super) {
|
|
|
4156
4156
|
_super.prototype.connectedCallback.call(this);
|
|
4157
4157
|
};
|
|
4158
4158
|
DropDownListElement.prototype.initChildInputs = function () {
|
|
4159
|
-
this.select =
|
|
4159
|
+
this.select = this.shadowRoot.querySelector('select');
|
|
4160
4160
|
this.addOptions();
|
|
4161
4161
|
if (this.required) {
|
|
4162
4162
|
this.select.setAttribute('required', '');
|