ps-toolkit-ui 0.2.99 → 1.3.5
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 +6 -4
- 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/checkbox/form.checkbox.component.js +5 -4
- package/esm2015/lib/components/table/row/table.row.component.js +3 -2
- package/fesm2015/ps-toolkit-ui.js +6 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2635,13 +2635,14 @@
|
|
|
2635
2635
|
var inp = new InputClass(this_1.table.environment, this_1.table.l, null, null, exports.InputType.Check, 'h-25 without-border m-h-5 d-ib va-m f-u', this_1.row.Data[option.Action] === true);
|
|
2636
2636
|
inp.row = this_1.row;
|
|
2637
2637
|
inp.onChange = function () {
|
|
2638
|
+
console.log(inp.data(), 'onChangeonChangeonChange');
|
|
2639
|
+
_this.row.Data[option.Action] = !inp.data();
|
|
2638
2640
|
var p = new PermissionClass();
|
|
2639
2641
|
p.RelatedId = _this.table.permissions.RelatedId;
|
|
2640
2642
|
p.Area = _this.table.permissions.Area;
|
|
2641
2643
|
p.Controller = option.Controller;
|
|
2642
2644
|
p.Action = option.Action;
|
|
2643
2645
|
new RequestClass(_this.table.l).send(p.getUrl(), exports.Method.Post, null, null, function () {
|
|
2644
|
-
_this.row.Data[option.Action] = !inp.data();
|
|
2645
2646
|
});
|
|
2646
2647
|
};
|
|
2647
2648
|
inp.displayLabel = false;
|
|
@@ -3515,9 +3516,8 @@
|
|
|
3515
3516
|
}
|
|
3516
3517
|
FormCheckboxComponent.prototype.ngOnInit = function () {
|
|
3517
3518
|
var _this = this;
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
}
|
|
3519
|
+
console.log(this.inp.value, 'ngOnInitngOnInitngOnInit');
|
|
3520
|
+
this.setValue(this.inp.value === true);
|
|
3521
3521
|
this.inp.clear = function () {
|
|
3522
3522
|
_this.inp.error = null;
|
|
3523
3523
|
_this.setValue(_this.inp.default);
|
|
@@ -3546,6 +3546,8 @@
|
|
|
3546
3546
|
};
|
|
3547
3547
|
FormCheckboxComponent.prototype.onClick = function () {
|
|
3548
3548
|
this.setValue(!this.inp.value);
|
|
3549
|
+
console.log(this.inp.value, 'onClickonClickonClick');
|
|
3550
|
+
this.onChange();
|
|
3549
3551
|
};
|
|
3550
3552
|
FormCheckboxComponent.prototype.setValue = function (v) {
|
|
3551
3553
|
this.inp.value = v;
|