ps-toolkit-ui 1.12.99 → 1.13.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/bundles/ps-toolkit-ui.umd.js +3 -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/classes/string.class.js +2 -1
- package/esm2015/lib/classes/table.class.js +2 -4
- package/esm2015/lib/components/form/toggle/form.toggle.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +3 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/string.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
Cancel: 'انصراف',
|
|
234
234
|
UserDeActive: 'نام کاربری غیر فعال شده است',
|
|
235
235
|
DeleteConfirm: 'آیا از حذف این مورد مطمئن هستید ؟',
|
|
236
|
+
DeleteConfirmMulti: 'آیا از حذف موارد انتخاب شده ({} مورد) مطمئن هستید ؟',
|
|
236
237
|
ChooseFiles: 'انتخاب فایل ها',
|
|
237
238
|
CodeNotExpired: 'کد تایید ارسال شده منقضی نشده است',
|
|
238
239
|
ChooseFile: 'انتخاب فایل',
|
|
@@ -8162,7 +8163,7 @@
|
|
|
8162
8163
|
FormToggleComponent.decorators = [
|
|
8163
8164
|
{ type: core.Component, args: [{
|
|
8164
8165
|
selector: 'lib-form-toggle',
|
|
8165
|
-
template: "<div #inputDiv [id]=\"inp.id + '
|
|
8166
|
+
template: "<div #inputDiv [id]=\"inp.id + 'ToggleInput'\" [style]=\"inp.style\" [className]=\"'form-input-con toggle w-100' + (inp.error == null ? '' : ' error') + (inp.disabled || inp.loading ? ' disabled' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onClick()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</div>\r\n <input #inputBase type=\"checkbox\" class=\"input-base\" (keydown)=\"onKeyDown($event)\" (focusin)=\"onFocusIn()\" (change)=\"onChange()\">\r\n <div class=\"control\">\r\n <span [className]=\"inp.icon ? inp.icon : ''\"></span>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
8166
8167
|
styles: [".form-input-con.toggle{padding:0 15px;position:relative}.form-input-con.toggle .form-input{align-content:center;display:flex;float:right;justify-content:center;position:relative;width:100%}.form-input-con.toggle .form-input .label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.toggle.error .form-input .label{color:var(--red);font-size:10px}.form-input-con.toggle .form-input .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.toggle .form-input .control{background:#bbb;border-radius:46px;display:inline-block;height:15px;margin-top:10px;position:relative;transition:.4s;width:45px}.form-input-con.toggle .form-input .control span{background:#fff;border-radius:100%;box-shadow:0 0 5px rgba(0,0,0,.2);color:var(--black);content:\"\";height:25px;left:0;line-height:25px;position:absolute;text-align:center;top:-5px;transition:.4s;width:25px;z-index:2}.form-input-con.toggle .form-input .input-base{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:5}.form-input-con.toggle .form-input .input-base:checked+.control{background:var(--primary-light)}.form-input-con.toggle .form-input .input-base:checked+.control span{background:var(--primary-dark);color:var(--white);left:20px}"]
|
|
8167
8168
|
},] }
|
|
8168
8169
|
];
|
|
@@ -8768,9 +8769,7 @@
|
|
|
8768
8769
|
p.Controller = option.Controller;
|
|
8769
8770
|
p.Action = option.Action;
|
|
8770
8771
|
var data = { Ids: _this.data().map(function (x) { return x.Id; }) };
|
|
8771
|
-
|
|
8772
|
-
console.log(data);
|
|
8773
|
-
_this.showConfirm(_this.l(option.Action + 'ConfirmMulti'), _this.getOptionUrl(option.Url, _this.permissions.RelatedId, ''), data, function () {
|
|
8772
|
+
_this.showConfirm(_this.l(option.Action + 'ConfirmMulti', data.Ids.length), _this.getOptionUrl(option.Url, _this.permissions.RelatedId, ''), data, function () {
|
|
8774
8773
|
_this.load();
|
|
8775
8774
|
});
|
|
8776
8775
|
};
|