ps-toolkit-ui 1.18.10 → 1.18.12
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 +3 -9
- 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/excel.class.js +3 -3
- package/esm2015/lib/components/form/select/form.select.component.js +1 -8
- package/fesm2015/ps-toolkit-ui.js +2 -9
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/excel.class.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6045,7 +6045,6 @@
|
|
|
6045
6045
|
}
|
|
6046
6046
|
this.inp.setValue = function (v, isEdit) {
|
|
6047
6047
|
if (!_this.inp.multiple) {
|
|
6048
|
-
console.log(v, 'vvvvvvvvvvvvv');
|
|
6049
6048
|
_this.selectOption(v == null ? null : v.toString(), isEdit);
|
|
6050
6049
|
}
|
|
6051
6050
|
else {
|
|
@@ -6054,7 +6053,6 @@
|
|
|
6054
6053
|
}
|
|
6055
6054
|
}
|
|
6056
6055
|
};
|
|
6057
|
-
console.log(this.inp.default, 'this.inp.defaultthis.inp.defaultthis.inp.default');
|
|
6058
6056
|
if (this.inp.default != null) {
|
|
6059
6057
|
this.inp.setValue(this.inp.default, false);
|
|
6060
6058
|
}
|
|
@@ -6258,8 +6256,6 @@
|
|
|
6258
6256
|
if (isEdit === void 0) { isEdit = false; }
|
|
6259
6257
|
this.inp.error = null;
|
|
6260
6258
|
var va = this.getValue(v);
|
|
6261
|
-
console.log(this.inp.options, 'this.inp.optionsthis.inp.optionsthis.inp.optionsthis.inp.options');
|
|
6262
|
-
console.log(this.inp.options.find(function (x) { return x.value === v; }), 'this.inp.options.findthis.inp.options.findthis.inp.options.find');
|
|
6263
6259
|
if (this.inp.multiple) {
|
|
6264
6260
|
this.toggle(va);
|
|
6265
6261
|
this.inp.search = '';
|
|
@@ -6267,9 +6263,6 @@
|
|
|
6267
6263
|
else {
|
|
6268
6264
|
this.inp.value = v;
|
|
6269
6265
|
this.inp.search = va ? (((this.inp.type !== exports.InputType.SelectSearch && this.inp.type !== exports.InputType.Select) || va.search) ? va.search : va.name) : '';
|
|
6270
|
-
console.log(va, 'vavavavavavavaa');
|
|
6271
|
-
console.log(this.inp.value, 'this.inp.valuethis.inp.valuethis.inp.valuethis.inp.value');
|
|
6272
|
-
console.log(this.inp.search, 'this.inp.searchthis.inp.searchthis.inp.searchthis.inp.search');
|
|
6273
6266
|
}
|
|
6274
6267
|
this.setOptions();
|
|
6275
6268
|
this.cSearch = this.inp.search;
|
|
@@ -9864,8 +9857,9 @@
|
|
|
9864
9857
|
var ExcelClass = /** @class */ (function () {
|
|
9865
9858
|
function ExcelClass() {
|
|
9866
9859
|
}
|
|
9867
|
-
ExcelClass.prototype.exportAsExcelFile = function (json, excelFileName) {
|
|
9868
|
-
|
|
9860
|
+
ExcelClass.prototype.exportAsExcelFile = function (json, excelFileName, opts) {
|
|
9861
|
+
if (opts === void 0) { opts = null; }
|
|
9862
|
+
var worksheet = XLSX.utils.json_to_sheet(json, opts);
|
|
9869
9863
|
var workbook = {
|
|
9870
9864
|
Sheets: { data: worksheet },
|
|
9871
9865
|
SheetNames: ['data']
|