ywana-core8 0.0.30 → 0.0.35
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/dist/index.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +2 -12
- package/src/upload/UploadArea.js +18 -0
- package/src/upload/uploader.css +1 -0
- package/src/upload/uploader.js +68 -51
package/dist/index.cjs
CHANGED
@@ -4452,17 +4452,14 @@ var TableAPI = function TableAPI(url) {
|
|
4452
4452
|
var queryParams = "?";
|
4453
4453
|
|
4454
4454
|
if (filters) {
|
4455
|
-
console.log('filters', filters);
|
4456
4455
|
var filterQuery = Object.keys(filters).reduce(function (query, key) {
|
4457
4456
|
var value = filters[key];
|
4458
|
-
console.log(value);
|
4459
4457
|
|
4460
4458
|
if (typeof value === 'boolean') {
|
4461
4459
|
return query.concat(key + "=" + value + "&");
|
4462
4460
|
} else if (Array.isArray(value)) {
|
4463
|
-
var param = value.length === 0 ? '
|
4464
|
-
param.concat(key + "=" + item + "&");
|
4465
|
-
console.log(item, param);
|
4461
|
+
var param = value.length === 0 ? '' : value.reduce(function (param, item) {
|
4462
|
+
param = param.concat(key + "=" + item + "&");
|
4466
4463
|
return param;
|
4467
4464
|
}, "");
|
4468
4465
|
console.log(param);
|
@@ -4471,7 +4468,6 @@ var TableAPI = function TableAPI(url) {
|
|
4471
4468
|
return query.concat(key + "=%" + filters[key] + "%&");
|
4472
4469
|
}
|
4473
4470
|
}, "");
|
4474
|
-
console.log('filterQuery');
|
4475
4471
|
queryParams = queryParams.concat(filterQuery);
|
4476
4472
|
}
|
4477
4473
|
|