@kaspernj/api-maker 1.0.435 → 1.0.436
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/package.json
CHANGED
|
@@ -33,7 +33,8 @@ export default memo(shapeComponent(class ApiMakerTableFilter extends BaseCompone
|
|
|
33
33
|
<Pressable
|
|
34
34
|
dataSet={{
|
|
35
35
|
attribute: a,
|
|
36
|
-
class: "filter-label"
|
|
36
|
+
class: "filter-label",
|
|
37
|
+
scope: sc
|
|
37
38
|
}}
|
|
38
39
|
onPress={this.tt.onFilterPressed}
|
|
39
40
|
>
|
|
@@ -55,8 +56,9 @@ export default memo(shapeComponent(class ApiMakerTableFilter extends BaseCompone
|
|
|
55
56
|
e.preventDefault()
|
|
56
57
|
|
|
57
58
|
const {a, filterIndex, p, pre, v} = this.p
|
|
59
|
+
const {sc} = this.props
|
|
58
60
|
|
|
59
|
-
this.props.onClick({a, filterIndex, p, pre, v})
|
|
61
|
+
this.props.onClick({a, filterIndex, p, pre, sc, v})
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
onRemoveFilterPressed = (e) => {
|
|
@@ -70,8 +70,8 @@ export default memo(shapeComponent(class ApiMakerTableFilters extends BaseCompon
|
|
|
70
70
|
<Filter
|
|
71
71
|
key={filterIndex}
|
|
72
72
|
filterIndex={filterIndex}
|
|
73
|
-
onClick={
|
|
74
|
-
onRemoveClicked={
|
|
73
|
+
onClick={this.tt.onFilterClicked}
|
|
74
|
+
onRemoveClicked={this.tt.onRemoveClicked}
|
|
75
75
|
{...filterData}
|
|
76
76
|
/>
|
|
77
77
|
)}
|
|
@@ -122,7 +122,7 @@ export default memo(shapeComponent(class ApiMakerTableFilters extends BaseCompon
|
|
|
122
122
|
})
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
onFilterClicked = (
|
|
125
|
+
onFilterClicked = (filter) => this.setState({filter})
|
|
126
126
|
|
|
127
127
|
onLoadSearchClicked = (e) => {
|
|
128
128
|
e.preventDefault()
|