ywana-core8 0.0.410 → 0.0.413
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 +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +11 -4
- package/src/html/table.test.js +0 -1
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -265,10 +265,17 @@ const TableFilters = (props) => {
|
|
265
265
|
for (var key in filterSchema) {
|
266
266
|
if (filterSchema[key].filter === false) {
|
267
267
|
delete filterSchema[key]
|
268
|
-
} else
|
269
|
-
|
270
|
-
|
271
|
-
|
268
|
+
} else {
|
269
|
+
|
270
|
+
if (filterSchema[key].type === TYPES.ENTITY) {
|
271
|
+
const fs = filterSchema[key].item
|
272
|
+
for (var key in fs) {
|
273
|
+
if (fs[key].filter === false) delete fs[key]
|
274
|
+
}
|
275
|
+
}
|
276
|
+
// TODO: check this
|
277
|
+
if (filterSchema[key].defValue) {
|
278
|
+
change({ [key] : filterSchema[key].defValue })
|
272
279
|
}
|
273
280
|
}
|
274
281
|
}
|
package/src/html/table.test.js
CHANGED
@@ -3,7 +3,6 @@ import { DataTable } from './table'
|
|
3
3
|
|
4
4
|
const TableTest = (prop) => {
|
5
5
|
|
6
|
-
|
7
6
|
const [rows, setRows] = useState(
|
8
7
|
[
|
9
8
|
{ id: 1, checked: false, name: "John Smith", thumb: "https://w7.pngwing.com/pngs/881/826/png-transparent-pikachu-ash-ketchum-pokemon-vrste-pikachu-leaf-flower-meme-thumbnail.png"},
|