ps-toolkit-ui 1.4.95 → 1.4.98
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 +29 -3
- 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/helper.class.js +26 -1
- package/esm2015/lib/components/form/radio/form.radio.component.js +2 -2
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +2 -2
- package/esm2015/lib/components/table/row/table.row.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +28 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1179,6 +1179,32 @@
|
|
|
1179
1179
|
}
|
|
1180
1180
|
return (parseInt(bgColor.replace('#', ''), 16) > 0xffffff / 2) ? '#000' : '#fff';
|
|
1181
1181
|
};
|
|
1182
|
+
HelperClass.queryStringToJSON = function (qs) {
|
|
1183
|
+
if (qs === void 0) { qs = null; }
|
|
1184
|
+
qs = qs || location.search.slice(1);
|
|
1185
|
+
if (qs === '') {
|
|
1186
|
+
return {};
|
|
1187
|
+
}
|
|
1188
|
+
var pairs = qs.split('&');
|
|
1189
|
+
var result = {};
|
|
1190
|
+
pairs.forEach(function (p) {
|
|
1191
|
+
var pair = p.split('=');
|
|
1192
|
+
var key = pair[0].replace('%5B%5D', '');
|
|
1193
|
+
var value = decodeURIComponent(pair[1] || '');
|
|
1194
|
+
if (result[key]) {
|
|
1195
|
+
if (Object.prototype.toString.call(result[key]) === '[object Array]') {
|
|
1196
|
+
result[key].push(value);
|
|
1197
|
+
}
|
|
1198
|
+
else {
|
|
1199
|
+
result[key] = [result[key], value];
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
else {
|
|
1203
|
+
result[key] = value;
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
return JSON.parse(JSON.stringify(result));
|
|
1207
|
+
};
|
|
1182
1208
|
return HelperClass;
|
|
1183
1209
|
}());
|
|
1184
1210
|
|
|
@@ -2366,7 +2392,7 @@
|
|
|
2366
2392
|
};
|
|
2367
2393
|
TablePaginationComponent.prototype.ngOnInit = function () {
|
|
2368
2394
|
var _this = this;
|
|
2369
|
-
this.perPageSelect = new InputClass(this.table.environment, this.table.l, 'PerPage', '', exports.InputType.Select, 'h-25 w-80-p f-l');
|
|
2395
|
+
this.perPageSelect = new InputClass(this.table.environment, this.table.l, 'PerPage', '', exports.InputType.Select, 'h-25 p-0 w-80-p f-l');
|
|
2370
2396
|
this.perPageSelect.value = this.table.perPage.toString();
|
|
2371
2397
|
this.perPageSelect.options = [
|
|
2372
2398
|
new OptionClass('5', '5'),
|
|
@@ -2827,7 +2853,7 @@
|
|
|
2827
2853
|
return '<a target="_blank" class="ltr" href="' + cv + '">' + cv + '</a>';
|
|
2828
2854
|
}
|
|
2829
2855
|
else if (col.type === exports.TableCollType.Image) {
|
|
2830
|
-
return '<img
|
|
2856
|
+
return '<img style="height: ' + this.table.height + 'px" alt="" src="' + this.service.environment.url + cv + '"/>';
|
|
2831
2857
|
}
|
|
2832
2858
|
else if (col.type === exports.TableCollType.FileSize) {
|
|
2833
2859
|
return HelperClass.getFileSize(cv);
|
|
@@ -5009,7 +5035,7 @@
|
|
|
5009
5035
|
FormRadioComponent.decorators = [
|
|
5010
5036
|
{ type: core.Component, args: [{
|
|
5011
5037
|
selector: 'lib-form-radio',
|
|
5012
|
-
template: "<div #inputDiv [id]=\"inp.name + 'Input'\" [className]=\"'form-input-con radio' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onClick()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</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 <input #inputBase type=\"text\" class=\"input-base\" (keydown)=\"onKeyDown($event)\" (focusin)=\"onFocusIn()\">\r\n <div class=\"control\">\r\n <div [className]=\"(o.class ? o.class + ' ' : '') + 'option-con'\" *ngFor=\"let o of inp.options\">\r\n <label class=\"option\">\r\n <input [disabled]=\"inp.disabled\" (change)=\"onChange()\" [value]=\"o.value\" [(ngModel)]=\"inp.value\" [checked]=\"inp.value == o.value\" type=\"radio\" [name]=\"inp.name\">\r\n <span></span>\r\n <div class=\"text\">{{inp.l(o.name)}}</div>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
5038
|
+
template: "<div #inputDiv [id]=\"inp.name + 'Input'\" [className]=\"'form-input-con radio w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onClick()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</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 <input #inputBase type=\"text\" class=\"input-base\" (keydown)=\"onKeyDown($event)\" (focusin)=\"onFocusIn()\">\r\n <div class=\"control\">\r\n <div [className]=\"(o.class ? o.class + ' ' : '') + 'option-con'\" *ngFor=\"let o of inp.options\">\r\n <label class=\"option\">\r\n <input [disabled]=\"inp.disabled\" (change)=\"onChange()\" [value]=\"o.value\" [(ngModel)]=\"inp.value\" [checked]=\"inp.value == o.value\" type=\"radio\" [name]=\"inp.name\">\r\n <span></span>\r\n <div class=\"text\">{{inp.l(o.name)}}</div>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
5013
5039
|
styles: [".form-input-con.radio{padding:0 15px;position:relative}.form-input-con.radio .form-input{float:right;position:relative;width:100%}.form-input-con.radio .form-input .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-con.radio.error .form-input .label{color:var(--red);font-size:10px}.form-input-con.radio .form-input .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.radio .form-input i.icon{bottom:0;color:var(--primary);cursor:default;font-size:13px;height:35px;left:0;line-height:35px;position:absolute;text-align:center;transition:all .35s ease-in-out;width:35px;z-index:1}.form-input-con.radio .form-input>.control{background-color:#fff;border:var(--border-input);border-radius:var(--border-radius-base);display:table;height:35px;padding:0 35px;width:100%}.form-input-con.radio .form-input .input-base{cursor:pointer;height:0;opacity:0;position:absolute;right:50%;top:50%;width:0;z-index:1}.form-input-con.radio .form-input .input-base:focus+.control,.form-input-con.radio .form-input:hover .control{border:var(--border-input-dark);outline:none}.form-input-con.radio.error .form-input>.control{border:var(--border-input-red)}.form-input-con.radio.error .form-input i.icon{color:var(--red)}.form-input-con.radio .form-input .options{display:table;height:100%;text-align:center;width:100%}.form-input-con.radio .form-input .option{-webkit-user-select:none;align-items:center;cursor:pointer;display:flex;float:right;font-size:11px;justify-content:center;position:relative;text-align:center;user-select:none;width:100%}.form-input-con.radio .form-input .option-con{display:table-cell;height:100%;position:relative;vertical-align:middle}.form-input-con.radio .form-input .option-con .text{float:right;height:25px;line-height:25px;margin-right:10px;padding:0 20px}.form-input-con.radio .form-input .option-con input{cursor:pointer;opacity:0;position:absolute;right:0}.form-input-con.radio .form-input .option-con span:after{color:var(--black-white);content:\"\\f111\";float:right;font-family:Font Awesome\\ 5 Pro;font-size:14px;font-weight:700;height:30px;line-height:30px;width:15px}.form-input-con.radio .form-input .option-con:hover span:after{color:var(--black-light)}.form-input-con.radio .form-input .option-con input:checked~span:after{color:var(--primary);content:\"\\f192\"}"]
|
|
5014
5040
|
},] }
|
|
5015
5041
|
];
|