ps-toolkit-ui 0.0.155 → 0.0.159
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 +12 -3
- 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/components/form/date/form.date.component.js +12 -2
- package/esm2015/lib/components/table/row/table.row.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +13 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2712,8 +2712,8 @@
|
|
|
2712
2712
|
var p = new PermissionClass();
|
|
2713
2713
|
p.RelatedId = 'Index';
|
|
2714
2714
|
p.Area = this_1.table.permissions.Area;
|
|
2715
|
-
p.Controller =
|
|
2716
|
-
p.Action = option.
|
|
2715
|
+
p.Controller = 'Print';
|
|
2716
|
+
p.Action = option.Controller;
|
|
2717
2717
|
opt.url = '/Report' + p.getUrl() + '/' + this_1.row.Data.Id;
|
|
2718
2718
|
opt.urlNewTab = true;
|
|
2719
2719
|
}
|
|
@@ -3472,6 +3472,8 @@
|
|
|
3472
3472
|
this.inp.setValue = function (v) {
|
|
3473
3473
|
_this.setInpValue(v);
|
|
3474
3474
|
};
|
|
3475
|
+
console.log(_.cloneDeep(3424234234), 3424234234);
|
|
3476
|
+
console.log(this.active instanceof moment__namespace);
|
|
3475
3477
|
this.inp.isValid = function () {
|
|
3476
3478
|
_this.inp.error = null;
|
|
3477
3479
|
if (_this.inp.required && !_this.inp.value) {
|
|
@@ -3507,14 +3509,21 @@
|
|
|
3507
3509
|
};
|
|
3508
3510
|
};
|
|
3509
3511
|
FormDateComponent.prototype.setInpValue = function (v) {
|
|
3512
|
+
console.log(v, 'vv');
|
|
3513
|
+
console.log(typeof v, 'typeof vtypeof v');
|
|
3514
|
+
console.log(this.inp.default, 'this.inp.defaultthis.inp.default');
|
|
3515
|
+
console.log(typeof this.inp.default, 'typeof this.inp.default');
|
|
3510
3516
|
if (v === null) {
|
|
3511
3517
|
this.inp.clear();
|
|
3512
3518
|
return;
|
|
3513
3519
|
}
|
|
3514
|
-
else if (typeof v === 'string') {
|
|
3520
|
+
else if (typeof v === 'string' && v.includes('Date')) {
|
|
3515
3521
|
var d = parseInt(v.substring(6, v.length - 2), 10);
|
|
3516
3522
|
this.active = moment__namespace(d);
|
|
3517
3523
|
}
|
|
3524
|
+
else if (typeof v === 'string' && v.includes('/')) {
|
|
3525
|
+
this.active = moment__namespace(this.inp.value, 'jYYYY/jMM/jDD');
|
|
3526
|
+
}
|
|
3518
3527
|
else if (typeof v === 'number') {
|
|
3519
3528
|
this.active = moment__namespace(v);
|
|
3520
3529
|
}
|