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
|
@@ -14,12 +14,12 @@ export class ModalComponent {
|
|
|
14
14
|
ModalComponent.decorators = [
|
|
15
15
|
{ type: Component, args: [{
|
|
16
16
|
selector: 'lib-modal',
|
|
17
|
-
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",
|
|
18
|
-
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
|
|
17
|
+
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",
|
|
18
|
+
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}}"]
|
|
19
19
|
},] }
|
|
20
20
|
];
|
|
21
21
|
ModalComponent.ctorParameters = () => [];
|
|
22
22
|
ModalComponent.propDecorators = {
|
|
23
23
|
modal: [{ type: Input }]
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IkQ6L1Byb2plY3RzL1BzVG9vbGtpdC9VSS9wcm9qZWN0cy9wcy10b29sa2l0LXVpL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL21vZGFsL21vZGFsLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUV2RCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFDcEQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBT25ELE1BQU0sT0FBTyxjQUFjO0lBSXpCO0lBQ0EsQ0FBQztJQUNELFFBQVE7UUFDTixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksVUFBVSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsV0FBVyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLElBQUksRUFBRSxjQUFjLEVBQ3BGLFNBQVMsQ0FBQyxJQUFJLEVBQUUsMEJBQTBCLENBQUMsQ0FBQztRQUM5QyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sR0FBRyxHQUFHLEVBQUU7WUFDeEIsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUNwQixDQUFDLENBQUM7SUFDSixDQUFDOzs7WUFqQkYsU0FBUyxTQUFD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ubW9kYWwuaGlkZSgpO1xyXG4gICAgfTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1396,6 +1396,7 @@ class InputClass {
|
|
|
1396
1396
|
this.type === InputType.SelectAutoCompletePlaque || this.type === InputType.SelectAutoCompletePlaqueM ||
|
|
1397
1397
|
this.type === InputType.SelectAutoCompletePlaqueF || this.type === InputType.Radio) {
|
|
1398
1398
|
const r = this.getOptions(result, null);
|
|
1399
|
+
console.log(r, 'this.getOptions(result, null)');
|
|
1399
1400
|
const s = result.find(x => x.Selected);
|
|
1400
1401
|
if (s) {
|
|
1401
1402
|
this.value = s.Id.toString();
|
|
@@ -1426,6 +1427,7 @@ class InputClass {
|
|
|
1426
1427
|
}
|
|
1427
1428
|
setOptions(r) {
|
|
1428
1429
|
this.options = r;
|
|
1430
|
+
console.log(this.options, 'this.options');
|
|
1429
1431
|
if (this.value != null) {
|
|
1430
1432
|
setTimeout(() => {
|
|
1431
1433
|
this.setValue(this.value, true);
|
|
@@ -1587,8 +1589,8 @@ class ModalComponent {
|
|
|
1587
1589
|
ModalComponent.decorators = [
|
|
1588
1590
|
{ type: Component, args: [{
|
|
1589
1591
|
selector: 'lib-modal',
|
|
1590
|
-
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",
|
|
1591
|
-
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
|
|
1592
|
+
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",
|
|
1593
|
+
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}}"]
|
|
1592
1594
|
},] }
|
|
1593
1595
|
];
|
|
1594
1596
|
ModalComponent.ctorParameters = () => [];
|
|
@@ -3593,6 +3595,7 @@ class FormPlaqueSelectComponent {
|
|
|
3593
3595
|
}
|
|
3594
3596
|
};
|
|
3595
3597
|
this.inp.focus = () => {
|
|
3598
|
+
console.log('this.inp.focus');
|
|
3596
3599
|
this.openOptions(true);
|
|
3597
3600
|
};
|
|
3598
3601
|
this.inp.isValid = () => {
|
|
@@ -3726,6 +3729,7 @@ class FormPlaqueSelectComponent {
|
|
|
3726
3729
|
}
|
|
3727
3730
|
loadOptions() {
|
|
3728
3731
|
const v = this.getSearch().replace(/^_+|_+$/g, '');
|
|
3732
|
+
console.log('loadOptions', v);
|
|
3729
3733
|
if (v) {
|
|
3730
3734
|
this.inp.load(this.inp.url.replace('{}', v));
|
|
3731
3735
|
}
|
|
@@ -3734,6 +3738,7 @@ class FormPlaqueSelectComponent {
|
|
|
3734
3738
|
}
|
|
3735
3739
|
}
|
|
3736
3740
|
openOptions(f = false) {
|
|
3741
|
+
console.log('openOptions');
|
|
3737
3742
|
this.setPosition();
|
|
3738
3743
|
this.setHoverCenter();
|
|
3739
3744
|
this.open = true;
|
|
@@ -3805,6 +3810,7 @@ class FormPlaqueSelectComponent {
|
|
|
3805
3810
|
}
|
|
3806
3811
|
}
|
|
3807
3812
|
toggleOption() {
|
|
3813
|
+
console.log('toggleOption');
|
|
3808
3814
|
this.openOptions();
|
|
3809
3815
|
}
|
|
3810
3816
|
selectOption(v, isEdit = false) {
|
|
@@ -3957,7 +3963,6 @@ class FormPlaqueSelectComponent {
|
|
|
3957
3963
|
this.part3.focus();
|
|
3958
3964
|
if (this.inp.type === InputType.SelectAutoCompletePlaqueF) {
|
|
3959
3965
|
this.loadOptions();
|
|
3960
|
-
console.log('loadOptions');
|
|
3961
3966
|
}
|
|
3962
3967
|
}
|
|
3963
3968
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
@@ -3972,7 +3977,6 @@ class FormPlaqueSelectComponent {
|
|
|
3972
3977
|
this.part1.focus();
|
|
3973
3978
|
if (this.inp.type === InputType.SelectAutoCompletePlaqueF) {
|
|
3974
3979
|
this.loadOptions();
|
|
3975
|
-
console.log('loadOptions');
|
|
3976
3980
|
}
|
|
3977
3981
|
}
|
|
3978
3982
|
}
|
|
@@ -5811,7 +5815,8 @@ class FormCarSearchComponent {
|
|
|
5811
5815
|
onFocusIn() {
|
|
5812
5816
|
if (this.type === 'Car' || this.type === 'Motor' || this.type === 'CarF') {
|
|
5813
5817
|
setTimeout(() => {
|
|
5814
|
-
$('#
|
|
5818
|
+
$('#' + this.inp.name + 'Input' + ' .plaque-inp').click();
|
|
5819
|
+
$('#' + this.inp.name + 'Input' + ' #Part1Input .control').focus();
|
|
5815
5820
|
}, 100);
|
|
5816
5821
|
}
|
|
5817
5822
|
else if (this.type === 'Driver') {
|