ywana-core8 0.0.397 → 0.0.400
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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -2
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +7 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.css +5 -2
- package/src/domain/TablePage.js +8 -1
package/package.json
CHANGED
package/src/domain/TablePage.css
CHANGED
@@ -14,6 +14,11 @@
|
|
14
14
|
margin: 0 1rem;
|
15
15
|
}
|
16
16
|
|
17
|
+
menu.table-page {
|
18
|
+
display: flex;
|
19
|
+
flex-direction: column;
|
20
|
+
}
|
21
|
+
|
17
22
|
menu.table-page>header {
|
18
23
|
padding-right: .5rem;
|
19
24
|
}
|
@@ -47,7 +52,6 @@ main.table-editor {
|
|
47
52
|
padding-right: 1rem;
|
48
53
|
}
|
49
54
|
|
50
|
-
|
51
55
|
.table-selector {
|
52
56
|
display: flex;
|
53
57
|
flex-direction: column;
|
@@ -82,7 +86,6 @@ header.table-filters {
|
|
82
86
|
background-color: rgba(220,220,220,.5);
|
83
87
|
}
|
84
88
|
|
85
|
-
main.table-queries,
|
86
89
|
main.table-filters {
|
87
90
|
flex: 1;
|
88
91
|
}
|
package/src/domain/TablePage.js
CHANGED
@@ -264,6 +264,10 @@ const TableFilters = (props) => {
|
|
264
264
|
const filterSchema = Object.assign({}, schema)
|
265
265
|
for (var key in filterSchema) {
|
266
266
|
if (filterSchema[key].filter === false) delete filterSchema[key]
|
267
|
+
if (filterSchema[key].type === TYPES.ENTITY) {
|
268
|
+
const fs = filterSchema.item
|
269
|
+
if (fs.filter === false) delete fs[key]
|
270
|
+
}
|
267
271
|
}
|
268
272
|
Object.values(filterSchema).forEach(field => field.section = null)
|
269
273
|
delete filterSchema.flows
|
@@ -483,7 +487,10 @@ const TableContext = (url, field, host, urlQuery) => {
|
|
483
487
|
|
484
488
|
if (field) {
|
485
489
|
if (CHECK['isObject'](field)) {
|
486
|
-
Object.keys(field).forEach(key2 =>
|
490
|
+
Object.keys(field).forEach(key2 => {
|
491
|
+
const subfield = field[key2]
|
492
|
+
if (subfield) filters[`${key}.${key2}`] = subfield
|
493
|
+
})
|
487
494
|
} else {
|
488
495
|
filters[key] = field;
|
489
496
|
}
|