ps-toolkit-ui 1.5.10 → 1.5.13
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 +11 -5
- 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/form.class.js +3 -1
- package/esm2015/lib/components/form/car/search/form.car.search.component.js +3 -2
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +5 -3
- package/esm2015/lib/components/modal/modal.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +10 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1858,6 +1858,7 @@
|
|
|
1858
1858
|
_this.type === exports.InputType.SelectAutoCompletePlaque || _this.type === exports.InputType.SelectAutoCompletePlaqueM ||
|
|
1859
1859
|
_this.type === exports.InputType.SelectAutoCompletePlaqueF || _this.type === exports.InputType.Radio) {
|
|
1860
1860
|
var r = _this.getOptions(result, null);
|
|
1861
|
+
console.log(r, 'this.getOptions(result, null)');
|
|
1861
1862
|
var s = result.find(function (x) { return x.Selected; });
|
|
1862
1863
|
if (s) {
|
|
1863
1864
|
_this.value = s.Id.toString();
|
|
@@ -1889,6 +1890,7 @@
|
|
|
1889
1890
|
InputClass.prototype.setOptions = function (r) {
|
|
1890
1891
|
var _this = this;
|
|
1891
1892
|
this.options = r;
|
|
1893
|
+
console.log(this.options, 'this.options');
|
|
1892
1894
|
if (this.value != null) {
|
|
1893
1895
|
setTimeout(function () {
|
|
1894
1896
|
_this.setValue(_this.value, true);
|
|
@@ -2084,8 +2086,8 @@
|
|
|
2084
2086
|
ModalComponent.decorators = [
|
|
2085
2087
|
{ type: core.Component, args: [{
|
|
2086
2088
|
selector: 'lib-modal',
|
|
2087
|
-
template: "<div [id]=\"modal.id + 'Modal'\" class=\"modal\">\r\n <div [className]=\"(modal.class ? modal.class : '') + (modal.class.includes('xlg') ? '' : modal.class.includes('lg') ? 'w-1000-60 m-r-1000-20 w-700-70 m-r-700-15' : 'w-1300-40 m-r-1300-30 w-1100-50 m-r-1100-25 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10') + ' content w-90 m-r-5'\">\r\n <lib-form-button [inp]=\"close\"></lib-form-button>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n <lib-form *ngIf=\"modal.form != null && modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-table *ngIf=\"modal.table != null\" [table]=\"modal.table\"></lib-table>\r\n <lib-form *ngIf=\"modal.form != null && !modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-accordion *ngIf=\"modal.accordion != null\" [accordion]=\"modal.accordion\"></lib-accordion>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2088
|
-
styles: [".modal{background-color:rgba(51,51,51,.26666666666666666);display:none;height:100%;overflow-y:auto;position:fixed;right:0;top:0;width:100%;z-index:999}.modal .content{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-modal);margin-bottom:50px;margin-top:50px;position:relative;z-index:2}.modal
|
|
2089
|
+
template: "<div [id]=\"modal.id + 'Modal'\" class=\"modal\">\r\n <div [className]=\"(modal.class ? modal.class : '') + (modal.class.includes('xlg') ? '' : modal.class.includes('lg') ? ' w-1000-60 m-r-1000-20 w-700-70 m-r-700-15' : ' w-1300-40 m-r-1300-30 w-1100-50 m-r-1100-25 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10') + ' content w-90 m-r-5'\">\r\n <lib-form-button [inp]=\"close\"></lib-form-button>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n <lib-form *ngIf=\"modal.form != null && modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-table *ngIf=\"modal.table != null\" [table]=\"modal.table\"></lib-table>\r\n <lib-form *ngIf=\"modal.form != null && !modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-accordion *ngIf=\"modal.accordion != null\" [accordion]=\"modal.accordion\"></lib-accordion>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2090
|
+
styles: [".modal{background-color:rgba(51,51,51,.26666666666666666);display:none;height:100%;overflow-y:auto;position:fixed;right:0;top:0;width:100%;z-index:999}.modal .content{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-modal);margin-bottom:50px;margin-top:50px;position:relative;z-index:2}.modal .content .header{float:right;position:relative;text-align:center;width:100%}.modal .content .header .title{float:left;font-family:VazirBold;font-size:18px;height:40px;line-height:40px;width:100%}::ng-deep .modal .content>lib-form-button .form-input-con.button{left:-25px;position:absolute;top:-10px;z-index:5}.modal .content .body{float:right;position:relative;width:100%}@media (max-width:399.98px){.modal .content .close-modal{left:-15px!important}}"]
|
|
2089
2091
|
},] }
|
|
2090
2092
|
];
|
|
2091
2093
|
ModalComponent.ctorParameters = function () { return []; };
|
|
@@ -4286,6 +4288,7 @@
|
|
|
4286
4288
|
}
|
|
4287
4289
|
};
|
|
4288
4290
|
this.inp.focus = function () {
|
|
4291
|
+
console.log('this.inp.focus');
|
|
4289
4292
|
_this.openOptions(true);
|
|
4290
4293
|
};
|
|
4291
4294
|
this.inp.isValid = function () {
|
|
@@ -4419,6 +4422,7 @@
|
|
|
4419
4422
|
};
|
|
4420
4423
|
FormPlaqueSelectComponent.prototype.loadOptions = function () {
|
|
4421
4424
|
var v = this.getSearch().replace(/^_+|_+$/g, '');
|
|
4425
|
+
console.log('loadOptions', v);
|
|
4422
4426
|
if (v) {
|
|
4423
4427
|
this.inp.load(this.inp.url.replace('{}', v));
|
|
4424
4428
|
}
|
|
@@ -4428,6 +4432,7 @@
|
|
|
4428
4432
|
};
|
|
4429
4433
|
FormPlaqueSelectComponent.prototype.openOptions = function (f) {
|
|
4430
4434
|
if (f === void 0) { f = false; }
|
|
4435
|
+
console.log('openOptions');
|
|
4431
4436
|
this.setPosition();
|
|
4432
4437
|
this.setHoverCenter();
|
|
4433
4438
|
this.open = true;
|
|
@@ -4501,6 +4506,7 @@
|
|
|
4501
4506
|
}
|
|
4502
4507
|
};
|
|
4503
4508
|
FormPlaqueSelectComponent.prototype.toggleOption = function () {
|
|
4509
|
+
console.log('toggleOption');
|
|
4504
4510
|
this.openOptions();
|
|
4505
4511
|
};
|
|
4506
4512
|
FormPlaqueSelectComponent.prototype.selectOption = function (v, isEdit) {
|
|
@@ -4695,7 +4701,6 @@
|
|
|
4695
4701
|
this.part3.focus();
|
|
4696
4702
|
if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
|
|
4697
4703
|
this.loadOptions();
|
|
4698
|
-
console.log('loadOptions');
|
|
4699
4704
|
}
|
|
4700
4705
|
}
|
|
4701
4706
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
@@ -4710,7 +4715,6 @@
|
|
|
4710
4715
|
this.part1.focus();
|
|
4711
4716
|
if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
|
|
4712
4717
|
this.loadOptions();
|
|
4713
|
-
console.log('loadOptions');
|
|
4714
4718
|
}
|
|
4715
4719
|
}
|
|
4716
4720
|
}
|
|
@@ -6717,9 +6721,11 @@
|
|
|
6717
6721
|
this.onFocusIn();
|
|
6718
6722
|
};
|
|
6719
6723
|
FormCarSearchComponent.prototype.onFocusIn = function () {
|
|
6724
|
+
var _this = this;
|
|
6720
6725
|
if (this.type === 'Car' || this.type === 'Motor' || this.type === 'CarF') {
|
|
6721
6726
|
setTimeout(function () {
|
|
6722
|
-
$('#
|
|
6727
|
+
$('#' + _this.inp.name + 'Input' + ' .plaque-inp').click();
|
|
6728
|
+
$('#' + _this.inp.name + 'Input' + ' #Part1Input .control').focus();
|
|
6723
6729
|
}, 100);
|
|
6724
6730
|
}
|
|
6725
6731
|
else if (this.type === 'Driver') {
|