@luftborn/custom-elements 2.9.0 → 2.10.0
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 +41 -1
- package/demo/index.min.js +40 -0
- package/demo/index.min.js.map +1 -1
- package/dist/elements/CPRElement/CPRElement.js +3 -0
- package/dist/elements/CPRElement/CPRElement.js.map +1 -1
- package/dist/elements/CVRElement/CVRElement.js +3 -0
- package/dist/elements/CVRElement/CVRElement.js.map +1 -1
- package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +3 -0
- package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +1 -1
- package/dist/elements/DateField/DateFieldElement.js +3 -0
- package/dist/elements/DateField/DateFieldElement.js.map +1 -1
- package/dist/elements/DropDownList/DropDownListElement.js +3 -0
- package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
- package/dist/elements/EmailField/EmailFieldElement.js +3 -0
- package/dist/elements/EmailField/EmailFieldElement.js.map +1 -1
- package/dist/elements/NumericField/NumericFieldElement.js +3 -0
- package/dist/elements/NumericField/NumericFieldElement.js.map +1 -1
- package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +3 -0
- package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
- package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js +3 -0
- package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js.map +1 -1
- package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js +3 -0
- package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js.map +1 -1
- package/dist/elements/TextAreaElement/TextAreaElement.js +3 -0
- package/dist/elements/TextAreaElement/TextAreaElement.js.map +1 -1
- package/dist/elements/TextField/TextFieldElement.js +3 -0
- package/dist/elements/TextField/TextFieldElement.js.map +1 -1
- package/dist/elements/TypeAhead/TypeAheadElement.js +3 -0
- package/dist/elements/TypeAhead/TypeAheadElement.js.map +1 -1
- package/dist/framework/CustomInputElement.d.ts +1 -0
- package/dist/framework/CustomInputElement.js +1 -0
- package/dist/framework/CustomInputElement.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/CPRElement/CPRElement.ts +3 -0
- package/src/elements/CVRElement/CVRElement.ts +3 -0
- package/src/elements/CustomRegularExpression/CustomRegularExpressionElement.ts +3 -0
- package/src/elements/DateField/DateFieldElement.ts +3 -0
- package/src/elements/DropDownList/DropDownListElement.ts +3 -0
- package/src/elements/EmailField/EmailFieldElement.ts +3 -0
- package/src/elements/NumericField/NumericFieldElement.ts +3 -0
- package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +3 -0
- package/src/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.ts +3 -0
- package/src/elements/SEPersonalNumberElement/SEPersonalNumberElement.ts +3 -0
- package/src/elements/TextAreaElement/TextAreaElement.ts +3 -0
- package/src/elements/TextField/TextFieldElement.ts +3 -0
- package/src/elements/TypeAhead/TypeAheadElement.ts +3 -0
- package/src/framework/CustomInputElement.ts +2 -0
package/demo/index.min.js
CHANGED
|
@@ -2766,6 +2766,9 @@ var CPRElement = /** @class */ (function (_super) {
|
|
|
2766
2766
|
if (this.required) {
|
|
2767
2767
|
this.text.setAttribute('required', '');
|
|
2768
2768
|
}
|
|
2769
|
+
if (this.initialValue) {
|
|
2770
|
+
this.value = this.initialValue;
|
|
2771
|
+
}
|
|
2769
2772
|
};
|
|
2770
2773
|
// events
|
|
2771
2774
|
CPRElement.prototype.change = function ($event) {
|
|
@@ -2850,6 +2853,9 @@ var CVRElement = /** @class */ (function (_super) {
|
|
|
2850
2853
|
if (this.required) {
|
|
2851
2854
|
this.text.setAttribute('required', '');
|
|
2852
2855
|
}
|
|
2856
|
+
if (this.initialValue) {
|
|
2857
|
+
this.value = this.initialValue;
|
|
2858
|
+
}
|
|
2853
2859
|
};
|
|
2854
2860
|
// events
|
|
2855
2861
|
CVRElement.prototype.change = function ($event) {
|
|
@@ -3976,6 +3982,9 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
|
|
|
3976
3982
|
if (this.placeholder) {
|
|
3977
3983
|
this.text.setAttribute('placeholder', this.placeholder);
|
|
3978
3984
|
}
|
|
3985
|
+
if (this.initialValue) {
|
|
3986
|
+
this.value = this.initialValue;
|
|
3987
|
+
}
|
|
3979
3988
|
};
|
|
3980
3989
|
// events
|
|
3981
3990
|
CustomRegularExpressionElement.prototype.change = function ($event) {
|
|
@@ -4063,6 +4072,9 @@ var DateFieldElement = /** @class */ (function (_super) {
|
|
|
4063
4072
|
if (this.min) {
|
|
4064
4073
|
this.date.setAttribute('min', this.min);
|
|
4065
4074
|
}
|
|
4075
|
+
if (this.initialValue) {
|
|
4076
|
+
this.value = this.initialValue;
|
|
4077
|
+
}
|
|
4066
4078
|
};
|
|
4067
4079
|
// events
|
|
4068
4080
|
DateFieldElement.prototype.change = function ($event) {
|
|
@@ -4152,6 +4164,9 @@ var DropDownListElement = /** @class */ (function (_super) {
|
|
|
4152
4164
|
if (this.multi) {
|
|
4153
4165
|
this.select.setAttribute('multiple', '');
|
|
4154
4166
|
}
|
|
4167
|
+
if (this.initialValue) {
|
|
4168
|
+
this.value = this.initialValue;
|
|
4169
|
+
}
|
|
4155
4170
|
this.select.addEventListener('change', this.change.bind(this));
|
|
4156
4171
|
};
|
|
4157
4172
|
DropDownListElement.prototype.addOptions = function () {
|
|
@@ -4297,6 +4312,9 @@ var EmailFieldElement = /** @class */ (function (_super) {
|
|
|
4297
4312
|
if (this.placeholder) {
|
|
4298
4313
|
this.email.setAttribute('placeholder', this.placeholder);
|
|
4299
4314
|
}
|
|
4315
|
+
if (this.initialValue) {
|
|
4316
|
+
this.value = this.initialValue;
|
|
4317
|
+
}
|
|
4300
4318
|
};
|
|
4301
4319
|
// events
|
|
4302
4320
|
EmailFieldElement.prototype.change = function ($event) {
|
|
@@ -4742,6 +4760,9 @@ var NumericFieldElement = /** @class */ (function (_super) {
|
|
|
4742
4760
|
if (this.placeholder) {
|
|
4743
4761
|
this.number.setAttribute('placeholder', this.placeholder);
|
|
4744
4762
|
}
|
|
4763
|
+
if (this.initialValue) {
|
|
4764
|
+
this.value = this.initialValue;
|
|
4765
|
+
}
|
|
4745
4766
|
};
|
|
4746
4767
|
// events
|
|
4747
4768
|
NumericFieldElement.prototype.change = function ($event) {
|
|
@@ -4835,6 +4856,9 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
|
|
|
4835
4856
|
this.radioButton.forEach(function (radio) {
|
|
4836
4857
|
return radio.addEventListener('change', _this.change.bind(_this));
|
|
4837
4858
|
});
|
|
4859
|
+
if (this.initialValue) {
|
|
4860
|
+
this.value = this.initialValue;
|
|
4861
|
+
}
|
|
4838
4862
|
};
|
|
4839
4863
|
RadioButtonGroupElement.prototype.addRadioButtons = function () {
|
|
4840
4864
|
var _this = this;
|
|
@@ -4927,6 +4951,9 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
|
|
|
4927
4951
|
if (this.required) {
|
|
4928
4952
|
this.text.setAttribute('required', '');
|
|
4929
4953
|
}
|
|
4954
|
+
if (this.initialValue) {
|
|
4955
|
+
this.value = this.initialValue;
|
|
4956
|
+
}
|
|
4930
4957
|
};
|
|
4931
4958
|
// events
|
|
4932
4959
|
SECompanyRegistrationElement.prototype.change = function ($event) {
|
|
@@ -5011,6 +5038,9 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
|
|
|
5011
5038
|
if (this.required) {
|
|
5012
5039
|
this.text.setAttribute('required', '');
|
|
5013
5040
|
}
|
|
5041
|
+
if (this.initialValue) {
|
|
5042
|
+
this.value = this.initialValue;
|
|
5043
|
+
}
|
|
5014
5044
|
};
|
|
5015
5045
|
// events
|
|
5016
5046
|
SEPersonalNumberElement.prototype.change = function ($event) {
|
|
@@ -5095,6 +5125,9 @@ var TextAreaElement = /** @class */ (function (_super) {
|
|
|
5095
5125
|
if (this.placeholder) {
|
|
5096
5126
|
this.text.setAttribute('placeholder', this.placeholder);
|
|
5097
5127
|
}
|
|
5128
|
+
if (this.initialValue) {
|
|
5129
|
+
this.value = this.initialValue;
|
|
5130
|
+
}
|
|
5098
5131
|
};
|
|
5099
5132
|
// events
|
|
5100
5133
|
TextAreaElement.prototype.change = function ($event) {
|
|
@@ -5179,6 +5212,9 @@ var TextFieldElement = /** @class */ (function (_super) {
|
|
|
5179
5212
|
if (this.placeholder) {
|
|
5180
5213
|
this.text.setAttribute('placeholder', this.placeholder);
|
|
5181
5214
|
}
|
|
5215
|
+
if (this.initialValue) {
|
|
5216
|
+
this.value = this.initialValue;
|
|
5217
|
+
}
|
|
5182
5218
|
};
|
|
5183
5219
|
// events
|
|
5184
5220
|
TextFieldElement.prototype.change = function ($event) {
|
|
@@ -5293,6 +5329,9 @@ var TypeAheadElement = /** @class */ (function (_super) {
|
|
|
5293
5329
|
if (this.placeholder) {
|
|
5294
5330
|
this.textInputElement.setAttribute('placeholder', this.placeholder);
|
|
5295
5331
|
}
|
|
5332
|
+
if (this.initialValue) {
|
|
5333
|
+
this.value = this.initialValue;
|
|
5334
|
+
}
|
|
5296
5335
|
this.textInputElement.addEventListener('change', this.change.bind(this));
|
|
5297
5336
|
this.textInputElement.addEventListener('input', function () {
|
|
5298
5337
|
_this.inputEventHandler();
|
|
@@ -5558,6 +5597,7 @@ var CustomInputElement = /** @class */ (function (_super) {
|
|
|
5558
5597
|
this.step = data.step;
|
|
5559
5598
|
this.customValue = data.value;
|
|
5560
5599
|
this.dateFormat = data.dateFormat;
|
|
5600
|
+
this.initialValue = data.value;
|
|
5561
5601
|
}
|
|
5562
5602
|
catch (ex) {
|
|
5563
5603
|
console.error(ex);
|