ps-toolkit-ui 1.3.84 → 1.3.88
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 +5 -7
- 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/car/form.car.component.js +2 -2
- package/esm2015/lib/components/form/date/form.date.component.js +1 -3
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +3 -3
- package/esm2015/lib/components/table/row/table.row.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +5 -7
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2843,7 +2843,7 @@
|
|
|
2843
2843
|
'<div class="part4">' + parts[3] + '</div>' +
|
|
2844
2844
|
'</div>';
|
|
2845
2845
|
}
|
|
2846
|
-
else if (parts.length === 2 && parts.
|
|
2846
|
+
else if (parts.length === 2 && parts.every(function (x) { return /^[0-9]+$/.test(x); })) {
|
|
2847
2847
|
return '<div class="plaque plaque-m">' +
|
|
2848
2848
|
'<div class="part1">' + parts[0] + '</div>' +
|
|
2849
2849
|
'<div class="part2">' + parts[1] + '</div>' +
|
|
@@ -3154,7 +3154,7 @@
|
|
|
3154
3154
|
TableComponent.decorators = [
|
|
3155
3155
|
{ type: core.Component, args: [{
|
|
3156
3156
|
selector: 'lib-table',
|
|
3157
|
-
template: "<div [id]=\"table.id + 'Table'\" [style]=\"table.style\" #tableDiv [className]=\"(table.class ? table.class : '') + (table.sortable ? 'sortable' : '') + (table.hasChildren ? ' has-children' : '') + ' table-con'\">\r\n <div *ngIf=\"table.displayLabel\" class=\"title\">\r\n <div class=\"f-r\">{{this.table.title ? this.table.title : 'List'}}</div>\r\n <span class=\"description\" *ngIf=\"this.table.description != null\" [innerHTML]=\"'( ' + this.table.description + ' )'\"></span>\r\n <div class=\"extra-buttons\" *ngIf=\"table.showExtraButtons\">\r\n <lib-form-icon *ngFor=\"let btn of table.extraButtons\" [inp]=\"btn\"></lib-form-icon>\r\n <lib-form-icon [inp]=\"reload\"></lib-form-icon>\r\n <lib-form-icon [inp]=\"maximum\"></lib-form-icon>\r\n </div>\r\n <div *ngIf=\"table.buttons.length > 0\" class=\"buttons\">\r\n <lib-form-button [inp]=\"btn\" *ngFor=\"let btn of table.buttons\"></lib-form-button>\r\n </div>\r\n </div>\r\n <div class=\"search-form\" *ngIf=\"table.searchForm\">\r\n <lib-form [form]=\"table.searchForm\"></lib-form>\r\n </div>\r\n <lib-form *ngIf=\"table.form && table.form.onTop\" [form]=\"table.form\"></lib-form>\r\n <div class=\"table\">\r\n <div class=\"header\">\r\n <div [className]=\"(table.hasChildren || table.sortable || table.withSelect ? 'with-handle ' : '') + 'row'\">\r\n <div class=\"handle\" *ngIf=\"table.hasChildren\"></div>\r\n <div class=\"handle\" *ngIf=\"table.sortable\"></div>\r\n <div class=\"handle\" *ngIf=\"table.withSelect\">\r\n <i (click)=\"selectAll()\" [className]=\"(allSelected() ? 'fas fa-check-square green' : isSelected() ? 'fas fa-minus-square green' : 'far fa-square') + ' select-row'\" *ngIf=\"table.rows.length > 0\"></i>\r\n </div>\r\n <div (click)=\"!table.sortable && col.sort && changeSort($event, col.name)\" [className]=\"(!table.sortable && col.sort ? 'sort ' : '') + col.class + ' ' + col.name + '-cell cell w-100'\" *ngFor=\"let col of table.cols\">\r\n <div class=\"header-title\" *ngIf=\"col.search == null\">{{ table.l(col.name) }}</div>\r\n <div class=\"header-search\" *ngIf=\"!table.sortable && col.search != null\">\r\n <lib-form-textbox *ngIf=\"col.type
|
|
3157
|
+
template: "<div [id]=\"table.id + 'Table'\" [style]=\"table.style\" #tableDiv [className]=\"(table.class ? table.class : '') + (table.sortable ? 'sortable' : '') + (table.hasChildren ? ' has-children' : '') + ' table-con'\">\r\n <div *ngIf=\"table.displayLabel\" class=\"title\">\r\n <div class=\"f-r\">{{this.table.title ? this.table.title : 'List'}}</div>\r\n <span class=\"description\" *ngIf=\"this.table.description != null\" [innerHTML]=\"'( ' + this.table.description + ' )'\"></span>\r\n <div class=\"extra-buttons\" *ngIf=\"table.showExtraButtons\">\r\n <lib-form-icon *ngFor=\"let btn of table.extraButtons\" [inp]=\"btn\"></lib-form-icon>\r\n <lib-form-icon [inp]=\"reload\"></lib-form-icon>\r\n <lib-form-icon [inp]=\"maximum\"></lib-form-icon>\r\n </div>\r\n <div *ngIf=\"table.buttons.length > 0\" class=\"buttons\">\r\n <lib-form-button [inp]=\"btn\" *ngFor=\"let btn of table.buttons\"></lib-form-button>\r\n </div>\r\n </div>\r\n <div class=\"search-form\" *ngIf=\"table.searchForm\">\r\n <lib-form [form]=\"table.searchForm\"></lib-form>\r\n </div>\r\n <lib-form *ngIf=\"table.form && table.form.onTop\" [form]=\"table.form\"></lib-form>\r\n <div class=\"table\">\r\n <div class=\"header\">\r\n <div [className]=\"(table.hasChildren || table.sortable || table.withSelect ? 'with-handle ' : '') + 'row'\">\r\n <div class=\"handle\" *ngIf=\"table.hasChildren\"></div>\r\n <div class=\"handle\" *ngIf=\"table.sortable\"></div>\r\n <div class=\"handle\" *ngIf=\"table.withSelect\">\r\n <i (click)=\"selectAll()\" [className]=\"(allSelected() ? 'fas fa-check-square green' : isSelected() ? 'fas fa-minus-square green' : 'far fa-square') + ' select-row'\" *ngIf=\"table.rows.length > 0\"></i>\r\n </div>\r\n <div (click)=\"!table.sortable && col.sort && changeSort($event, col.name)\" [className]=\"(!table.sortable && col.sort ? 'sort ' : '') + col.class + ' ' + col.name + '-cell cell w-100'\" *ngFor=\"let col of table.cols\">\r\n <div class=\"header-title\" *ngIf=\"col.search == null\">{{ table.l(col.name) }}</div>\r\n <div class=\"header-search\" *ngIf=\"!table.sortable && col.search != null\">\r\n <lib-form-textbox *ngIf=\"col.type != colType.Date && col.type != colType.DateTime\" [inp]=\"col.search\"></lib-form-textbox>\r\n <lib-form-date *ngIf=\"col.type == colType.Date || col.type == colType.DateTime\" [inp]=\"col.search\"></lib-form-date>\r\n </div>\r\n <i *ngIf=\"!table.sortable && col.sort\" [className]=\"'sort-icon fas' + (table.sort === col.name ? (table.sortType === 'ASC' ? ' fa-sort-up' : ' fa-sort-down') : ' fa-sort')\"></i>\r\n </div>\r\n <div class=\"cell options\" *ngIf=\"table.optionType == tableOptionType.Show\">{{table.l('Options')}}</div>\r\n </div>\r\n </div>\r\n <div class=\"body\" #rows [style]=\"table.perPage > 0 ? {minHeight: table.height * table.perPage + 'px'} : table.loading || !table.permission || table.rows.length == 0 ? {minHeight: '100px'} : {}\">\r\n <lib-table-row (confirmShow)=\"onConfirmShow($event)\" [level]=\"1\" (changeRows)=\"onChangeRows($event)\" [id]=\"row.id ? row.id : ''\" [table]=\"table\" [row]=\"row\" *ngFor=\"let row of getRows()\"></lib-table-row>\r\n <lib-table-loading [table]=\"table\"></lib-table-loading>\r\n </div>\r\n </div>\r\n <lib-table-pagination [table]=\"table\" *ngIf=\"table.perPage > 0\"></lib-table-pagination>\r\n <lib-modal *ngIf=\"table.modal != null\" [modal]=\"table.modal\"></lib-modal>\r\n <lib-modal [modal]=\"opt\" *ngFor=\"let opt of getModals()\"></lib-modal>\r\n <lib-confirm #confirm [tableId]=\"table.name\"></lib-confirm>\r\n</div>\r\n",
|
|
3158
3158
|
styles: [".table-con{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-table);float:right;padding:20px;position:relative;width:100%}.table-con.maximum{border-radius:0;height:100%;overflow-y:auto;position:fixed;right:0;top:0;width:100%;z-index:102}.table-con>.title{float:right;font-family:VazirBold;font-size:16px;line-height:40px;margin-bottom:10px;position:relative;text-align:right;width:100%}.table-con>.title .description{font-family:VazirLight;font-size:13px;margin-right:10px}.table-con>.title .buttons,.table-con>.title .extra-buttons{float:left;margin-top:5px}.table-con>.search-form{border-radius:var(--border-radius-base);float:right;margin-bottom:10px;width:100%}.table-con .table,.table-con .table .header{float:right;width:100%}.table-con .table .header .row{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;align-items:center;background-color:var(--base-white);border-radius:var(--border-radius-base);display:flex;flex-wrap:wrap;float:right;justify-content:right;position:relative;width:100%}.table-con .table .header .row.with-handle{padding-right:30px}.table-con .table .header .row .cell{align-items:center;color:var(--black-light);display:flex;float:right;font-family:VazirLight;font-size:12px;font-weight:400;height:45px;justify-content:center;position:relative}.table-con .table .header .row .cell.options{margin-left:auto;margin-right:auto}.table-con .table .header .row .handle{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:30px}.table-con .table .header .row .cell.sort{cursor:pointer}.table-con .table .header .row .cell .header-title{float:right;padding:0 15px;text-align:center;width:calc(100% - 20px)}.table-con .table .header .row .cell .header-search{float:right;width:calc(100% - 20px)}.table-con .table .header .row .cell .sort-icon{float:right;font-size:13px;height:20px;left:5px;line-height:20px;opacity:.6;top:calc(50% - 10px);width:20px}.table-con .table .body{float:right;position:relative;width:100%}::ng-deep .table-con:not(.sortable) .table lib-table-row:last-of-type>.row-con>.row:after{background-image:unset}::ng-deep .table-con .table .header .row .cell .select-row{cursor:pointer;font-size:18px;height:30px;line-height:30px}"]
|
|
3159
3159
|
},] }
|
|
3160
3160
|
];
|
|
@@ -3621,7 +3621,6 @@
|
|
|
3621
3621
|
previousDays.push(new DayClass(i, this.isToday(previousMonth, i), false));
|
|
3622
3622
|
}
|
|
3623
3623
|
}
|
|
3624
|
-
console.log(countDayInMonth, 'countDayInMonth');
|
|
3625
3624
|
for (var i = 1; i <= countDayInMonth; i++) {
|
|
3626
3625
|
days.push(new DayClass(i, this.isToday(this.active, i), this.isSelected(this.active, i)));
|
|
3627
3626
|
}
|
|
@@ -3634,7 +3633,6 @@
|
|
|
3634
3633
|
this.previousDays = previousDays;
|
|
3635
3634
|
this.nextDays = nextDays;
|
|
3636
3635
|
this.days = days;
|
|
3637
|
-
console.log(days, 'days');
|
|
3638
3636
|
};
|
|
3639
3637
|
FormDateComponent.prototype.isToday = function (m, d) {
|
|
3640
3638
|
var month = parseInt(m.format('jMM'), 10);
|
|
@@ -4659,12 +4657,12 @@
|
|
|
4659
4657
|
this.part4.class += ' plaque-part-m';
|
|
4660
4658
|
}
|
|
4661
4659
|
else if (this.inp.type === exports.InputType.PlaqueF) {
|
|
4662
|
-
this.part1.minLength =
|
|
4660
|
+
this.part1.minLength = 100;
|
|
4663
4661
|
this.part1.maxLength = 9999999;
|
|
4664
4662
|
this.part1.class += ' plaque-part-f';
|
|
4665
4663
|
this.part2.class += ' plaque-part-f';
|
|
4666
4664
|
this.part3.minLength = 1;
|
|
4667
|
-
this.part3.maxLength =
|
|
4665
|
+
this.part3.maxLength = 20;
|
|
4668
4666
|
this.part3.type = exports.InputType.Text;
|
|
4669
4667
|
this.part3.class += ' plaque-part-f';
|
|
4670
4668
|
this.part4.class += ' plaque-part-f';
|
|
@@ -6639,7 +6637,7 @@
|
|
|
6639
6637
|
this.car.displayLabel = this.carF.displayLabel = this.motor.displayLabel = false;
|
|
6640
6638
|
this.inp.setValue = function (v) {
|
|
6641
6639
|
if (v != null) {
|
|
6642
|
-
if (v.split('_').length === 2 && v.split('_').
|
|
6640
|
+
if (v.split('_').length === 2 && v.split('_').every(function (x) { return /^[0-9]+$/.test(x); })) {
|
|
6643
6641
|
_this.type = exports.VehicleType.Motorcycle;
|
|
6644
6642
|
setTimeout(function () {
|
|
6645
6643
|
_this.motor.setValue(v, false);
|