ps-toolkit-ui 1.3.67 → 1.3.70
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 +24 -20
- 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/table.class.js +7 -7
- package/esm2015/lib/components/form/car/form.car.component.js +4 -2
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +4 -2
- package/esm2015/lib/components/form/table/form.table.component.js +5 -5
- package/esm2015/lib/components/table/row/table.row.component.js +9 -9
- package/fesm2015/ps-toolkit-ui.js +24 -20
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/car/form.car.component.d.ts +1 -0
- package/lib/components/form/plaque/form.plaque.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2616,7 +2616,7 @@
|
|
|
2616
2616
|
if (option.AccessType === exports.PermissionAccessTypeEnum.Update) {
|
|
2617
2617
|
if (this_2.table.form) {
|
|
2618
2618
|
opt.onClick = function () {
|
|
2619
|
-
_this.table.form.url = _this.table.url + '
|
|
2619
|
+
_this.table.form.url = _this.table.url + 'update/' + _this.row.Data.Id;
|
|
2620
2620
|
if (_this.table.hasChildren && _this.row.Data.ParentId != null) {
|
|
2621
2621
|
_this.table.form.onSuccessBase = function () {
|
|
2622
2622
|
_this.table.modal.hide();
|
|
@@ -2641,7 +2641,7 @@
|
|
|
2641
2641
|
};
|
|
2642
2642
|
}
|
|
2643
2643
|
else {
|
|
2644
|
-
opt.url = this_2.table.url + '/
|
|
2644
|
+
opt.url = this_2.table.url + '/update/' + this_2.row.Data.Id;
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
2647
|
else if (option.AccessType === exports.PermissionAccessTypeEnum.Delete) {
|
|
@@ -2696,15 +2696,15 @@
|
|
|
2696
2696
|
p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2697
2697
|
opt.modal.table.permissions = p;
|
|
2698
2698
|
if (opt.modal.table.form) {
|
|
2699
|
-
opt.modal.table.form.url = p.getUrl() + '
|
|
2700
|
-
opt.modal.table.form.baseUrl = p.getUrl() + '
|
|
2699
|
+
opt.modal.table.form.url = p.getUrl() + 'insert';
|
|
2700
|
+
opt.modal.table.form.baseUrl = p.getUrl() + 'insert';
|
|
2701
2701
|
}
|
|
2702
2702
|
opt.modal.table.set();
|
|
2703
2703
|
}
|
|
2704
2704
|
if (opt.modal.form) {
|
|
2705
2705
|
opt.modal.form.name = option.Name;
|
|
2706
|
-
opt.modal.form.url = opt.modal.form.baseUrl + '
|
|
2707
|
-
opt.modal.form.loadData(opt.modal.form.baseUrl + '
|
|
2706
|
+
opt.modal.form.url = opt.modal.form.baseUrl + 'update/' + _this.row.Data.Id;
|
|
2707
|
+
opt.modal.form.loadData(opt.modal.form.baseUrl + 'get/' + _this.row.Data.Id);
|
|
2708
2708
|
opt.modal.form.onSuccessBase = function () {
|
|
2709
2709
|
opt.modal.hide();
|
|
2710
2710
|
};
|
|
@@ -2722,8 +2722,8 @@
|
|
|
2722
2722
|
p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2723
2723
|
r.table.permissions = p;
|
|
2724
2724
|
if (r.table.form) {
|
|
2725
|
-
r.table.form.url = p.getUrl() + '
|
|
2726
|
-
r.table.form.baseUrl = p.getUrl() + '
|
|
2725
|
+
r.table.form.url = p.getUrl() + 'insert';
|
|
2726
|
+
r.table.form.baseUrl = p.getUrl() + 'insert';
|
|
2727
2727
|
}
|
|
2728
2728
|
r.table.set();
|
|
2729
2729
|
}
|
|
@@ -4626,6 +4626,7 @@
|
|
|
4626
4626
|
|
|
4627
4627
|
var FormPlaqueComponent = /** @class */ (function () {
|
|
4628
4628
|
function FormPlaqueComponent() {
|
|
4629
|
+
this.letter = null;
|
|
4629
4630
|
this.changeIndex = new core.EventEmitter();
|
|
4630
4631
|
this.alphas = ['الف', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی'];
|
|
4631
4632
|
}
|
|
@@ -4637,7 +4638,7 @@
|
|
|
4637
4638
|
FormPlaqueComponent.prototype.ngOnInit = function () {
|
|
4638
4639
|
var _this = this;
|
|
4639
4640
|
this.part1 = new InputClass(this.inp.environment, this.inp.l, 'Part1', null, exports.InputType.Number, 'plaque-part-1 plaque-part-item', null, true);
|
|
4640
|
-
this.part2 = new InputClass(this.inp.environment, this.inp.l, 'Part2', null, exports.InputType.Select, 'plaque-part-2 plaque-part-item',
|
|
4641
|
+
this.part2 = new InputClass(this.inp.environment, this.inp.l, 'Part2', null, exports.InputType.Select, 'plaque-part-2 plaque-part-item', this.letter, true);
|
|
4641
4642
|
this.part3 = new InputClass(this.inp.environment, this.inp.l, 'Part3', null, exports.InputType.Number, 'plaque-part-3 plaque-part-item', null, true);
|
|
4642
4643
|
this.part4 = new InputClass(this.inp.environment, this.inp.l, 'Part4', null, exports.InputType.Number, 'plaque-part-4 plaque-part-item', null, true, 10, 99);
|
|
4643
4644
|
this.part2.options = this.alphas.map(function (x) { return new OptionClass(x, x); });
|
|
@@ -4845,6 +4846,7 @@
|
|
|
4845
4846
|
FormPlaqueComponent.ctorParameters = function () { return []; };
|
|
4846
4847
|
FormPlaqueComponent.propDecorators = {
|
|
4847
4848
|
inp: [{ type: core.Input }],
|
|
4849
|
+
letter: [{ type: core.Input }],
|
|
4848
4850
|
changeIndex: [{ type: core.Output }],
|
|
4849
4851
|
inputBase: [{ type: core.ViewChild, args: ['inputBase',] }],
|
|
4850
4852
|
inputDiv: [{ type: core.ViewChild, args: ['inputDiv',] }],
|
|
@@ -5440,13 +5442,13 @@
|
|
|
5440
5442
|
var p = new PermissionClass();
|
|
5441
5443
|
p.Type = exports.PermissionTypeEnum.Form;
|
|
5442
5444
|
var lAccess = new PermissionClass();
|
|
5443
|
-
lAccess.Action = '
|
|
5445
|
+
lAccess.Action = 'list';
|
|
5444
5446
|
var iAccess = new PermissionClass();
|
|
5445
|
-
iAccess.Action = '
|
|
5447
|
+
iAccess.Action = 'insert';
|
|
5446
5448
|
var uAccess = new PermissionClass();
|
|
5447
|
-
uAccess.Action = '
|
|
5449
|
+
uAccess.Action = 'update';
|
|
5448
5450
|
var dAccess = new PermissionClass();
|
|
5449
|
-
dAccess.Action = '
|
|
5451
|
+
dAccess.Action = 'delete';
|
|
5450
5452
|
p.Accesses = [
|
|
5451
5453
|
lAccess,
|
|
5452
5454
|
iAccess,
|
|
@@ -6603,6 +6605,7 @@
|
|
|
6603
6605
|
|
|
6604
6606
|
var FormCarComponent = /** @class */ (function () {
|
|
6605
6607
|
function FormCarComponent() {
|
|
6608
|
+
this.letter = null;
|
|
6606
6609
|
this.changeIndex = new core.EventEmitter();
|
|
6607
6610
|
this.type = exports.VehicleType.Car;
|
|
6608
6611
|
}
|
|
@@ -6687,13 +6690,14 @@
|
|
|
6687
6690
|
FormCarComponent.decorators = [
|
|
6688
6691
|
{ type: core.Component, args: [{
|
|
6689
6692
|
selector: 'lib-form-car',
|
|
6690
|
-
template: "<div #inputDiv [id]=\"inp.name + 'Input'\" [style]=\"inp.style\" [className]=\"inp.class + (inp.error == null ? '' : ' error') + (inp.icon != null ? '' : ' without-icon') + ' form-input car'\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\">\r\n <i *ngIf=\"inp.required\" class=\"f-r fas fa-star-of-life required-icon\"></i>\r\n <i *ngIf=\"inp.rows.includes('Car')\" [className]=\"(type === vehicleType.Car ? 'active ' : '') + 'change-type-btn fas fa-car'\" (click)=\"changeType(vehicleType.Car)\"></i>\r\n <i *ngIf=\"inp.rows.includes('CarF')\" [className]=\"(type === vehicleType.CarF ? 'active ' : '') + 'change-type-btn fas fa-earth-asia'\" (click)=\"changeType(vehicleType.CarF)\"></i>\r\n <i *ngIf=\"inp.rows.includes('Motor')\" [className]=\"(type === vehicleType.Motorcycle ? 'active ' : '') + 'change-type-btn fas fa-motorcycle'\" (click)=\"changeType(vehicleType.Motorcycle)\"></i>\r\n </div>\r\n <div class=\"w-100 p-r\">\r\n <lib-form-plaque (changeIndex)=\"changeIndex.emit($event)\" [inp]=\"car\" *ngIf=\"type === vehicleType.Car\"></lib-form-plaque>\r\n <lib-form-plaque (changeIndex)=\"changeIndex.emit($event)\" [inp]=\"carF\" *ngIf=\"type === vehicleType.CarF\"></lib-form-plaque>\r\n <lib-form-plaque (changeIndex)=\"changeIndex.emit($event)\" [inp]=\"motor\" *ngIf=\"type === vehicleType.Motorcycle\"></lib-form-plaque>\r\n </div>\r\n</div>\r\n",
|
|
6693
|
+
template: "<div #inputDiv [id]=\"inp.name + 'Input'\" [style]=\"inp.style\" [className]=\"inp.class + (inp.error == null ? '' : ' error') + (inp.icon != null ? '' : ' without-icon') + ' form-input car'\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\">\r\n <i *ngIf=\"inp.required\" class=\"f-r fas fa-star-of-life required-icon\"></i>\r\n <i *ngIf=\"inp.rows.includes('Car')\" [className]=\"(type === vehicleType.Car ? 'active ' : '') + 'change-type-btn fas fa-car'\" (click)=\"changeType(vehicleType.Car)\"></i>\r\n <i *ngIf=\"inp.rows.includes('CarF')\" [className]=\"(type === vehicleType.CarF ? 'active ' : '') + 'change-type-btn fas fa-earth-asia'\" (click)=\"changeType(vehicleType.CarF)\"></i>\r\n <i *ngIf=\"inp.rows.includes('Motor')\" [className]=\"(type === vehicleType.Motorcycle ? 'active ' : '') + 'change-type-btn fas fa-motorcycle'\" (click)=\"changeType(vehicleType.Motorcycle)\"></i>\r\n </div>\r\n <div class=\"w-100 p-r\">\r\n <lib-form-plaque (changeIndex)=\"changeIndex.emit($event)\" [letter]=\"letter\" [inp]=\"car\" *ngIf=\"type === vehicleType.Car\"></lib-form-plaque>\r\n <lib-form-plaque (changeIndex)=\"changeIndex.emit($event)\" [inp]=\"carF\" *ngIf=\"type === vehicleType.CarF\"></lib-form-plaque>\r\n <lib-form-plaque (changeIndex)=\"changeIndex.emit($event)\" [inp]=\"motor\" *ngIf=\"type === vehicleType.Motorcycle\"></lib-form-plaque>\r\n </div>\r\n</div>\r\n",
|
|
6691
6694
|
styles: [".form-input.car{border-radius:var(--border-radius-base);float:right;font-size:15px;position:relative;width:185px}.form-input.car .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.car.error .label{color:var(--red);font-size:10px}.form-input.car .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input.car .label .change-type-btn{cursor:pointer;float:right;font-size:16px;height:20px;line-height:20px;text-align:center;width:30px}.form-input.car .label .change-type-btn.fa-user{font-size:14px;line-height:18px}.form-input.car .label .change-type-btn.active,.form-input.car .label .change-type-btn:hover{color:var(--primary)}.form-input.car .control{background-color:#fff;background-image:none;border:none;border-radius:var(--border-radius-base);box-shadow:0 1px 3px 0 rgba(0,0,0,.4);color:var(--black);display:block;font-family:Vazir;font-size:11px;height:35px;padding:5px 35px;position:relative;text-align:center;width:100%;z-index:2}.form-input.car .control:focus,.form-input.car:hover .control{box-shadow:0 1px 5px 0 rgba(0,0,0,.7)}.form-input.car span.icon{bottom:0;color:var(--primary);cursor:text;font-size:14px;height:35px;left:0;line-height:38px;position:absolute;text-align:center;transition:all .35s ease-in-out;width:35px;z-index:2}.form-input.car span.icon.button{background-color:var(--base);border-radius:var(--border-radius-base) 0 0 var(--border-radius-base);color:#fff;cursor:pointer}.form-input.car span.icon.button:hover{background-color:var(--base-dark)}.form-input.car span.icon.button.blue{background-color:var(--blue)}.form-input.car span.icon.button.blue:hover{background-color:var(--blue-dark)}.form-input.car span.icon.button.green{background-color:var(--green)}.form-input.car span.icon.button.green:hover{background-color:var(--green-dark)}.form-input.car span.icon.button.red{background-color:var(--red)}.form-input.car span.icon.button.red:hover{background-color:var(--red-dark)}.form-input.car span.icon.button.yellow{background-color:var(--yellow)}.form-input.car span.icon.button.yellow:hover{background-color:var(--yellow-dark)}.form-input.car.disabled .control,.form-input.car.disabled .label,.form-input.car.disabled span.icon{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-shadow:unset;cursor:default;filter:blur(.5px);opacity:.7}.form-input.car.error .control{box-shadow:0 1px 3px 0 var(--red)}.form-input.car.error .control,.form-input.car.error span.icon{color:var(--red-light)}.form-input.car .progress{background-color:var(--primary);border-radius:var(--border-radius-base);bottom:0;height:3px;line-height:3px;position:absolute;right:0;transition:width .5s ease-in-out;width:100%;z-index:2}.form-input.car.without-icon .control{padding:5px 10px}.form-input.car.h-50 .control{height:50px}.form-input.car.h-50 span.icon{height:50px;line-height:50px}.form-input.car.h-45 .control{height:45px}.form-input.car.h-45 span.icon{height:45px;line-height:45px}.form-input.car.h-30 .control{font-size:10px;height:30px;padding:0}.form-input.car.h-30 span.icon{height:30px;line-height:30px}.form-input.car.h-35{height:35px}.form-input.car.h-35 .control{height:35px;padding:0 35px}.form-input.car.h-35 span.icon{height:35px;line-height:35px}.form-input.car.h-25 .control{height:25px;padding:0}.form-input.car.h-25 span.icon{height:25px;line-height:25px}.form-input.car.table-search{float:right;margin-right:10%;margin-top:4px;width:80%}.form-input.car.h-22 .control{height:22px;padding:0}.form-input.car.h-22 span.icon{height:22px;line-height:22px}.form-input.car.plaque-part-1{float:left;padding:0!important;width:35px!important}.form-input.car.plaque-part-1.plaque-part-m{width:49px!important}.form-input.car.plaque-part-3{float:left;padding:0!important;width:49px!important}.form-input.car.plaque-part-3.plaque-part-m{width:69px!important}.form-input.car.plaque-part-4{float:left;margin-top:10px;padding:0!important;width:34px!important}.form-input.car.plaque-part-4 .control{height:25px!important}.form-input.car.plaque-part-4.plaque-part-m{display:none!important}.form-input.car.bank-card-part-item{float:left;padding:0!important;width:25%}.form-input.car.bank-card-part-item:not(.bank-card-part-4):after{content:\"\\f068\";font-family:Font Awesome\\ 5 Free;font-size:6px;font-weight:900;height:20px;line-height:20px;position:absolute;right:-10px;text-align:center;top:calc(50% - 10px);width:20px}.form-input.car.bank-card-part-item .control{background-color:initial!important;box-shadow:unset!important;font-size:13px!important;padding:0!important}"]
|
|
6692
6695
|
},] }
|
|
6693
6696
|
];
|
|
6694
6697
|
FormCarComponent.ctorParameters = function () { return []; };
|
|
6695
6698
|
FormCarComponent.propDecorators = {
|
|
6696
6699
|
inp: [{ type: core.Input }],
|
|
6700
|
+
letter: [{ type: core.Input }],
|
|
6697
6701
|
changeIndex: [{ type: core.Output }],
|
|
6698
6702
|
inputDiv: [{ type: core.ViewChild, args: ['inputDiv',] }]
|
|
6699
6703
|
};
|
|
@@ -7355,12 +7359,12 @@
|
|
|
7355
7359
|
return this.searchForm ? this.searchForm.json(d) : d;
|
|
7356
7360
|
};
|
|
7357
7361
|
TableClass.prototype.getUrl = function () {
|
|
7358
|
-
return this.url + '
|
|
7362
|
+
return this.url + 'list';
|
|
7359
7363
|
};
|
|
7360
7364
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7361
7365
|
if (cId === void 0) { cId = null; }
|
|
7362
7366
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7363
|
-
this.form.url = this.form.baseUrl = this.url + '
|
|
7367
|
+
this.form.url = this.form.baseUrl = this.url + 'insert' + (cId ? '/' + cId : '');
|
|
7364
7368
|
this.form.name = insertAccess.Name;
|
|
7365
7369
|
this.form.method = exports.Method.Post;
|
|
7366
7370
|
this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
|
|
@@ -7397,7 +7401,7 @@
|
|
|
7397
7401
|
if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
|
|
7398
7402
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7399
7403
|
if (this_1.form) {
|
|
7400
|
-
this_1.form.url = this_1.form.baseUrl = this_1.url + '
|
|
7404
|
+
this_1.form.url = this_1.form.baseUrl = this_1.url + 'insert';
|
|
7401
7405
|
if (!this_1.form.onTop) {
|
|
7402
7406
|
accessInp.onClick = function () {
|
|
7403
7407
|
_this.form.onSuccessBase = function () {
|
|
@@ -7419,7 +7423,7 @@
|
|
|
7419
7423
|
};
|
|
7420
7424
|
}
|
|
7421
7425
|
else {
|
|
7422
|
-
accessInp.url = this_1.url + '
|
|
7426
|
+
accessInp.url = this_1.url + 'insert';
|
|
7423
7427
|
}
|
|
7424
7428
|
}
|
|
7425
7429
|
}
|
|
@@ -7427,10 +7431,10 @@
|
|
|
7427
7431
|
accessInp.onClick = function () {
|
|
7428
7432
|
var p = new PermissionClass();
|
|
7429
7433
|
p.Area = _this.permissions.Area;
|
|
7430
|
-
p.Controller = '
|
|
7434
|
+
p.Controller = 'print';
|
|
7431
7435
|
p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
|
|
7432
7436
|
var params = $$1.param(_this.searchData(true));
|
|
7433
|
-
window.open('/
|
|
7437
|
+
window.open('/report' + p.getUrl() + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
|
|
7434
7438
|
(params ? '?' + params : ''), '_blank');
|
|
7435
7439
|
};
|
|
7436
7440
|
}
|