ywana-core8 0.0.402 → 0.0.405
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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/domain/TablePage.js +3 -1
- package/src/html/icon.css +4 -0
- package/src/html/icon.js +3 -3
- package/src/site/dialog.js +1 -1
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -267,7 +267,9 @@ const TableFilters = (props) => {
|
|
267
267
|
delete filterSchema[key]
|
268
268
|
} else if (filterSchema[key].type === TYPES.ENTITY) {
|
269
269
|
const fs = filterSchema[key].item
|
270
|
-
|
270
|
+
for (var key in fs) {
|
271
|
+
if (fs[key].filter === false) delete fs[key]
|
272
|
+
}
|
271
273
|
}
|
272
274
|
}
|
273
275
|
Object.values(filterSchema).forEach(field => field.section = null)
|
package/src/html/icon.css
CHANGED
package/src/html/icon.js
CHANGED
@@ -4,7 +4,7 @@ import './icon.css'
|
|
4
4
|
/**
|
5
5
|
* Icon
|
6
6
|
*/
|
7
|
-
export const Icon = ({ icon, size = "normal", clickable = false, action, eventPropagation = false }) => {
|
7
|
+
export const Icon = ({ icon, size = "normal", clickable = false, disabled = false, action, eventPropagation = false }) => {
|
8
8
|
|
9
9
|
function click (event) {
|
10
10
|
if (!eventPropagation) {
|
@@ -14,9 +14,9 @@ export const Icon = ({ icon, size = "normal", clickable = false, action, eventPr
|
|
14
14
|
if (action) action(event)
|
15
15
|
}
|
16
16
|
|
17
|
-
const
|
17
|
+
const style = disabled ? "disabled" : clickable ? "clickable" : ""
|
18
18
|
return (
|
19
|
-
<i className={`icon ${size} ${
|
19
|
+
<i className={`icon ${size} ${style} material-icons`} onClick={click}>
|
20
20
|
{icon}
|
21
21
|
</i>
|
22
22
|
)
|
package/src/site/dialog.js
CHANGED
@@ -24,7 +24,7 @@ export const Dialog = (props) => {
|
|
24
24
|
return (
|
25
25
|
<Fragment>
|
26
26
|
<div className={`overlay ${className}`} onMouseDown={close} />
|
27
|
-
<dialog className=
|
27
|
+
<dialog className={`dialog-panel ${className}`}>
|
28
28
|
<header>
|
29
29
|
{icon ? <MenuIcon icon={icon} /> : null}
|
30
30
|
<Text>{title}</Text>
|