datastake-daf 0.6.230 → 0.6.231

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.
@@ -12692,8 +12692,8 @@ const useHeader = _ref => {
12692
12692
  setShowFilters(p => !p);
12693
12693
  }
12694
12694
  }];
12695
- const actionButtons = onDownload && _actionButtons.length < 3 ? [..._actionButtons, ...(hasFilters ? filterButton : []), downloadButton] : _actionButtons;
12696
- const extraButtons = onDownload && _actionButtons.length >= 3 ? [..._extraButtons, downloadButtonAction] : _extraButtons;
12695
+ const actionButtons = onDownload && _actionButtons.length < 3 ? [..._actionButtons, ...(hasFilters ? filterButton : []), downloadButton] : [..._actionButtons, ...(hasFilters ? filterButton : [])];
12696
+ const extraButtons = onDownload && _actionButtons.length >= 3 ? [..._extraButtons, ...(hasFilters ? filterButton : []), downloadButtonAction] : [..._extraButtons, ...(hasFilters ? filterButton : [])];
12697
12697
  const mainCont = React.useRef();
12698
12698
  const buttonCont = React.useRef();
12699
12699
  const [mainContWidth, setMainContWidth] = React.useState(600);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.230",
3
+ "version": "0.6.231",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -179,38 +179,43 @@ export const WithFilters = {
179
179
  filtersConfig: {
180
180
  "language": "en",
181
181
  "filtersConfig": {
182
- "country": {
182
+ "region": {
183
183
  "type": "select",
184
- "label": "Country",
184
+ "label": "Region",
185
185
  "style": {
186
186
  "flex": 1
187
187
  },
188
188
  "labelStyle": {
189
189
  "flex": 1
190
+ }
191
+ },
192
+ "technicalPartner": {
193
+ "type": "ajaxSelect",
194
+ "label": "Technical Partner",
195
+ "style": {
196
+ "flex": 1
190
197
  },
191
- "isMulti": true
192
- }
193
- },
194
- "options": {
195
- "country": [
196
- {
197
- "label": "Peru",
198
- "value": "PE"
198
+ "labelStyle": {
199
+ "flex": 1
199
200
  },
200
- {
201
- "label": "Colombia",
202
- "value": "CO"
201
+ "entity": "STAKEHOLDER",
202
+ "method": "getOptions",
203
+ "mapper": {
204
+ "label": "name",
205
+ "value": "id"
203
206
  }
204
- ]
205
- },
206
- "selectedFilters": {
207
- "country": [
208
- "PE",
209
- "CO"
210
- ]
207
+ }
211
208
  },
212
209
  "type": "small",
213
- onApply: () => {}
210
+ "options": [],
211
+ "selectedFilters": {
212
+ "name": "",
213
+ "datastakeId": "",
214
+ "type": "",
215
+ "category": "",
216
+ "position": "",
217
+ "country": ""
218
+ }
214
219
  }
215
220
  },
216
221
  };
@@ -63,12 +63,19 @@ export const useHeader = ({
63
63
  ..._actionButtons,
64
64
  ...(hasFilters ? filterButton : []),
65
65
  downloadButton
66
- ] : _actionButtons;
66
+ ] : [
67
+ ..._actionButtons,
68
+ ...(hasFilters ? filterButton : [])
69
+ ];
67
70
 
68
71
  const extraButtons = onDownload && _actionButtons.length >= 3 ? [
69
72
  ..._extraButtons,
73
+ ...(hasFilters ? filterButton : []),
70
74
  downloadButtonAction,
71
- ] : _extraButtons;
75
+ ] : [
76
+ ..._extraButtons,
77
+ ...(hasFilters ? filterButton : [])
78
+ ];
72
79
 
73
80
  const mainCont = useRef()
74
81
  const buttonCont = useRef()