ps-toolkit-ui 0.0.69 → 0.0.73
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/bundles/ps-toolkit-ui.umd.js +9 -10
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +2 -2
- package/esm2015/lib/components/form/date/form.date.component.js +9 -10
- package/fesm2015/ps-toolkit-ui.js +9 -10
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1726,7 +1726,7 @@
|
|
|
1726
1726
|
exports.InputType.NationalCode, exports.InputType.Sheba, exports.InputType.PostalCode, exports.InputType.Date, exports.InputType.Time].includes(type) ? ' ltr' : '');
|
|
1727
1727
|
this.type = type;
|
|
1728
1728
|
this.value = value;
|
|
1729
|
-
this.default = HelperClass.clone(value);
|
|
1729
|
+
// this.default = HelperClass.clone(value);
|
|
1730
1730
|
this.required = required;
|
|
1731
1731
|
this.minLength = type === exports.InputType.Mobile || type === exports.InputType.Phone ? 11 :
|
|
1732
1732
|
type === exports.InputType.NationalCode || type === exports.InputType.PostalCode ? 10 :
|
|
@@ -3237,14 +3237,9 @@
|
|
|
3237
3237
|
this.todayDay = parseInt(today.format('jDD'), 10);
|
|
3238
3238
|
this.todayMonth = parseInt(today.format('jMM'), 10);
|
|
3239
3239
|
this.todayYear = parseInt(today.format('jYYYY'), 10);
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
this.inp.search = this.inp.value;
|
|
3244
|
-
}
|
|
3245
|
-
else {
|
|
3246
|
-
this.active = moment__namespace();
|
|
3247
|
-
}
|
|
3240
|
+
console.log(44444444444);
|
|
3241
|
+
console.log(this.inp.value);
|
|
3242
|
+
console.log(typeof this.inp.value);
|
|
3248
3243
|
this.setInpValue(this.inp.value);
|
|
3249
3244
|
this.inp.setValue = function (v) {
|
|
3250
3245
|
_this.setInpValue(v);
|
|
@@ -3284,6 +3279,7 @@
|
|
|
3284
3279
|
};
|
|
3285
3280
|
};
|
|
3286
3281
|
FormDateComponent.prototype.setInpValue = function (v) {
|
|
3282
|
+
console.log(typeof v, 'typeof vtypeof vtypeof vtypeof v');
|
|
3287
3283
|
if (v === null) {
|
|
3288
3284
|
this.inp.clear();
|
|
3289
3285
|
return;
|
|
@@ -3292,9 +3288,12 @@
|
|
|
3292
3288
|
var d = parseInt(v.substring(6, v.length - 2), 10);
|
|
3293
3289
|
this.active = moment__namespace(d);
|
|
3294
3290
|
}
|
|
3295
|
-
else {
|
|
3291
|
+
else if (typeof v === 'number') {
|
|
3296
3292
|
this.active = moment__namespace(v);
|
|
3297
3293
|
}
|
|
3294
|
+
else {
|
|
3295
|
+
this.active = v;
|
|
3296
|
+
}
|
|
3298
3297
|
this.inp.value = this.active.format('jYYYY/jMM/jDD');
|
|
3299
3298
|
this.inp.search = this.active.format('jYYYY/jMM/jDD');
|
|
3300
3299
|
this.setDate();
|