ps-toolkit-ui 1.3.7 → 1.3.8
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 +10 -26
- 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/bank-card/form.bank-card.component.js +1 -2
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +6 -19
- package/esm2015/lib/components/table/row/table.row.component.js +1 -3
- package/fesm2015/ps-toolkit-ui.js +85 -101
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/checkbox/form.checkbox.component.d.ts +0 -2
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('jquery'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('ngx-slick-carousel'), require('highcharts')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'jquery', 'lodash', 'jalali-moment', '@angular/router', '@angular/forms', '@angular/common', '@angular/platform-browser', 'ngx-slick-carousel', 'highcharts'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global
|
|
5
|
-
}(this, (function (exports, core,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global.$, global._, global.moment, global.ng.router, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.ngxSlickCarousel, global.Highcharts));
|
|
5
|
+
}(this, (function (exports, core, $, _, moment, router, forms, common, platformBrowser, ngxSlickCarousel, Highcharts) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) { return e; } else {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
var $__namespace = /*#__PURE__*/_interopNamespace(
|
|
28
|
+
var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
29
29
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
30
30
|
|
|
31
31
|
var PsToolkitUiConfigService = /** @class */ (function () {
|
|
@@ -1468,7 +1468,7 @@
|
|
|
1468
1468
|
headers: token == null ? {} : { Authorization: token, Accept: 'application/json' }
|
|
1469
1469
|
};
|
|
1470
1470
|
}
|
|
1471
|
-
var request =
|
|
1471
|
+
var request = $.ajax(settings);
|
|
1472
1472
|
request.done(function (response) {
|
|
1473
1473
|
if (!_this.environment.production) {
|
|
1474
1474
|
console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
|
|
@@ -2632,13 +2632,11 @@
|
|
|
2632
2632
|
TableRowComponent.prototype.setOptions = function () {
|
|
2633
2633
|
var e_1, _a, e_2, _b;
|
|
2634
2634
|
var _this = this;
|
|
2635
|
-
console.log('setOptionssetOptionssetOptionssetOptions');
|
|
2636
2635
|
var opts = [];
|
|
2637
2636
|
var _loop_1 = function (option) {
|
|
2638
2637
|
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);
|
|
2639
2638
|
inp.row = this_1.row;
|
|
2640
2639
|
inp.onChange = function () {
|
|
2641
|
-
console.log(inp.data(), 'onChangeonChangeonChange');
|
|
2642
2640
|
_this.row.Data[option.Action] = !inp.data();
|
|
2643
2641
|
var p = new PermissionClass();
|
|
2644
2642
|
p.RelatedId = _this.table.permissions.RelatedId;
|
|
@@ -3365,7 +3363,6 @@
|
|
|
3365
3363
|
};
|
|
3366
3364
|
FormBankCardComponent.prototype.setIcon = function () {
|
|
3367
3365
|
var _this = this;
|
|
3368
|
-
console.log(this.part1.data().toString() + this.part2.data().toString());
|
|
3369
3366
|
var b = this.banks.filter(function (x) { return x.startWith.includes(_this.part1.data().toString() + _this.part2.data().toString().substring(0, 2)); });
|
|
3370
3367
|
if (b.length > 0) {
|
|
3371
3368
|
$__namespace(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
|
|
@@ -3519,10 +3516,9 @@
|
|
|
3519
3516
|
}
|
|
3520
3517
|
FormCheckboxComponent.prototype.ngOnInit = function () {
|
|
3521
3518
|
var _this = this;
|
|
3522
|
-
console.log(this.inp.value, 'ngOnInitngOnInitngOnInit');
|
|
3523
3519
|
this.inp.clear = function () {
|
|
3524
3520
|
_this.inp.error = null;
|
|
3525
|
-
_this.
|
|
3521
|
+
_this.inp.value = _this.inp.default;
|
|
3526
3522
|
};
|
|
3527
3523
|
this.inp.isValid = function () {
|
|
3528
3524
|
_this.inp.error = null;
|
|
@@ -3536,7 +3532,7 @@
|
|
|
3536
3532
|
return _this.inp.value;
|
|
3537
3533
|
};
|
|
3538
3534
|
this.inp.setValue = function (v) {
|
|
3539
|
-
_this.
|
|
3535
|
+
_this.inp.value = v;
|
|
3540
3536
|
};
|
|
3541
3537
|
this.inp.focus = function () {
|
|
3542
3538
|
_this.onFocusIn();
|
|
@@ -3547,18 +3543,7 @@
|
|
|
3547
3543
|
this.inputBase.nativeElement.focus();
|
|
3548
3544
|
};
|
|
3549
3545
|
FormCheckboxComponent.prototype.onClick = function () {
|
|
3550
|
-
this.
|
|
3551
|
-
console.log(this.inp.value, 'onClickonClickonClick');
|
|
3552
|
-
this.onChange();
|
|
3553
|
-
};
|
|
3554
|
-
FormCheckboxComponent.prototype.setValue = function (v) {
|
|
3555
|
-
this.inp.value = v;
|
|
3556
|
-
if (v) {
|
|
3557
|
-
$(this.inputCon.nativeElement).addClass('checked');
|
|
3558
|
-
}
|
|
3559
|
-
else {
|
|
3560
|
-
$(this.inputCon.nativeElement).removeClass('checked');
|
|
3561
|
-
}
|
|
3546
|
+
this.inputBase.nativeElement.click();
|
|
3562
3547
|
};
|
|
3563
3548
|
FormCheckboxComponent.prototype.onChange = function () {
|
|
3564
3549
|
var _this = this;
|
|
@@ -3580,7 +3565,7 @@
|
|
|
3580
3565
|
FormCheckboxComponent.decorators = [
|
|
3581
3566
|
{ type: core.Component, args: [{
|
|
3582
3567
|
selector: 'lib-form-checkbox',
|
|
3583
|
-
template: "<div #inputDiv [id]=\"inp.name + 'Input'\" [style]=\"inp.style\" [className]=\"'form-input-con checkbox w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + (inp.icon == null ? ' without-icon' : '') + (!inp.displayLabel ? ' without-label' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onFocusIn()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"></div>\r\n <input (keydown)=\"onKeyDown($event)\" #inputBase type=\"checkbox\" class=\"check\">\r\n <div (click)=\"onClick()\"
|
|
3568
|
+
template: "<div #inputDiv [id]=\"inp.name + 'Input'\" [style]=\"inp.style\" [className]=\"'form-input-con checkbox w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + (inp.icon == null ? ' without-icon' : '') + (!inp.displayLabel ? ' without-label' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onFocusIn()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"></div>\r\n <input (keydown)=\"onKeyDown($event)\" (change)=\"onChange()\" [disabled]=\"inp.disabled\" [(ngModel)]=\"inp.value\" #inputBase type=\"checkbox\" [name]=\"inp.name\" class=\"check\">\r\n <div (click)=\"onClick()\" class=\"control\">{{inp.l(inp.name)}}</div>\r\n <i *ngIf=\"inp.icon != null || inp.loading\" #inputIcon [className]=\"(inp.loading ? 'fa-duotone fa-spin fa-spinner' : inp.icon) + ' icon'\"></i>\r\n </div>\r\n</div>\r\n",
|
|
3584
3569
|
styles: [".form-input-con.checkbox{padding:0 15px;position:relative}.form-input-con.checkbox .form-input{float:right;position:relative;width:100%}.form-input-con.checkbox .form-input .label{cursor:default;direction:rtl;font-size:12px;height:20px;margin-bottom:3px;padding:0 10px;text-align:right}.form-input-con.checkbox .form-input .control,.form-input-con.checkbox .form-input .label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;float:right;line-height:20px;width:100%}.form-input-con.checkbox .form-input .control{align-items:center;background-color:#fff;border:var(--border-input);border-radius:var(--border-radius-base);cursor:pointer;display:flex;font-size:11px;justify-content:center;min-height:35px;padding:5px 45px;position:relative;text-align:center;z-index:2}.form-input-con.checkbox.without-border .form-input .control{border:unset}.form-input-con.checkbox .form-input .control:after{content:\"\\f0c8\";font-family:Font Awesome\\ 5 Pro;font-size:17px;font-weight:400;height:35px;line-height:32px;position:absolute;right:0;top:0;width:35px}.form-input-con.checkbox:not(.without-border) .form-input .check:focus+.control,.form-input-con.checkbox:not(.without-border) .form-input .control:hover{border:var(--border-input-dark);outline:none}.form-input-con.checkbox.error .form-input .control{border:var(--border-input-red)}.form-input-con.checkbox.error .form-input .control,.form-input-con.checkbox.error .form-input span.icon{color:var(--red)}.form-input-con.checkbox .form-input .check{cursor:pointer;height:0;opacity:0;position:absolute;right:50%;top:50%;width:0;z-index:1}.form-input-con.checkbox .form-input .control.checked:after{animation:pop .18s ease-in;color:var(--green);content:\"\\f14a\";font-weight:900}.form-input-con.checkbox .form-input i.icon{color:var(--primary);cursor:pointer;font-size:13px;height:35px;left:0;line-height:35px;position:absolute;text-align:center;top:24px;transition:all .35s ease-in-out;width:35px;z-index:2}.form-input-con.checkbox.without-label .form-input i.icon{top:0}.form-input-con.checkbox.without-icon .form-input .control{padding:0 35px 0 0}.form-input-con.checkbox.h-30 .form-input .control{font-size:10px;line-height:28px;min-height:30px;padding:0 40px}.form-input-con.checkbox.h-30 .form-input .control:after{font-size:14px;height:30px;line-height:28px;width:30px}.form-input-con.checkbox.h-30 .form-input i.icon{font-size:11px;height:30px;line-height:30px;width:30px}.form-input-con.checkbox.h-30.without-icon .form-input .control{padding:0 30px 0 0}.form-input-con.checkbox.h-25 .form-input .control{font-size:10px;line-height:23px;min-height:25px;padding:0 25px}.form-input-con.checkbox.h-25 .form-input .control:after{font-size:14px;height:25px;line-height:23px;width:25px}.form-input-con.checkbox.h-25 .form-input i.icon{font-size:11px;height:25px;line-height:25px;width:25px}.form-input-con.checkbox.h-25.without-icon .form-input .control{padding:0 25px 0 0}"]
|
|
3585
3570
|
},] }
|
|
3586
3571
|
];
|
|
@@ -3589,8 +3574,7 @@
|
|
|
3589
3574
|
inp: [{ type: core.Input }],
|
|
3590
3575
|
changeIndex: [{ type: core.Output }],
|
|
3591
3576
|
inputBase: [{ type: core.ViewChild, args: ['inputBase',] }],
|
|
3592
|
-
inputDiv: [{ type: core.ViewChild, args: ['inputDiv',] }]
|
|
3593
|
-
inputCon: [{ type: core.ViewChild, args: ['inputCon',] }]
|
|
3577
|
+
inputDiv: [{ type: core.ViewChild, args: ['inputDiv',] }]
|
|
3594
3578
|
};
|
|
3595
3579
|
|
|
3596
3580
|
var FormDateComponent = /** @class */ (function () {
|
|
@@ -8110,7 +8094,7 @@
|
|
|
8110
8094
|
p.Area = _this.permissions.Area;
|
|
8111
8095
|
p.Controller = 'Print';
|
|
8112
8096
|
p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
|
|
8113
|
-
var params =
|
|
8097
|
+
var params = $.param(_this.searchData(true));
|
|
8114
8098
|
window.open('/Report' + p.getUrl() + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
|
|
8115
8099
|
(params ? '?' + params : ''), '_blank');
|
|
8116
8100
|
};
|