datastake-daf 0.6.235 → 0.6.237
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/components/index.js
CHANGED
|
@@ -12663,7 +12663,6 @@ const useHeader = _ref => {
|
|
|
12663
12663
|
isViewMode = false,
|
|
12664
12664
|
filtersConfig = {}
|
|
12665
12665
|
} = _ref;
|
|
12666
|
-
const [showFilters, setShowFilters] = React.useState(false);
|
|
12667
12666
|
const hasFilters = filtersConfig && Object.keys(filtersConfig).length > 0;
|
|
12668
12667
|
const downloadButtonAction = app && app === 'sbg' && isViewMode ? null : {
|
|
12669
12668
|
onClick: onDownload,
|
|
@@ -12690,7 +12689,7 @@ const useHeader = _ref => {
|
|
|
12690
12689
|
noMinWidth: true,
|
|
12691
12690
|
squareIconButton: true,
|
|
12692
12691
|
onClick: () => {
|
|
12693
|
-
setShowFilters(p => !p);
|
|
12692
|
+
filtersConfig.setShowFilters(p => !p);
|
|
12694
12693
|
}
|
|
12695
12694
|
}];
|
|
12696
12695
|
const actionButtons = onDownload && _actionButtons.length < 3 ? [..._actionButtons, ...(hasFilters ? filterButton : []), downloadButton] : [..._actionButtons, ...(hasFilters ? filterButton : [])];
|
|
@@ -12836,10 +12835,10 @@ const useHeader = _ref => {
|
|
|
12836
12835
|
children: hasFilters && /*#__PURE__*/jsxRuntime.jsx(SelectFilters, {
|
|
12837
12836
|
t: filtersConfig.t,
|
|
12838
12837
|
apiUrl: filtersConfig.apiUrl,
|
|
12839
|
-
showFilters: showFilters,
|
|
12838
|
+
showFilters: filtersConfig.showFilters,
|
|
12840
12839
|
onApply: filtersConfig.onApply,
|
|
12841
12840
|
options: filtersConfig.options,
|
|
12842
|
-
setShowFilters: setShowFilters,
|
|
12841
|
+
setShowFilters: filtersConfig.setShowFilters,
|
|
12843
12842
|
language: filtersConfig.language,
|
|
12844
12843
|
type: filtersConfig.type,
|
|
12845
12844
|
filtersConfig: filtersConfig.filtersConfig,
|
package/package.json
CHANGED
|
@@ -31,7 +31,6 @@ export const useHeader = ({
|
|
|
31
31
|
isViewMode = false,
|
|
32
32
|
filtersConfig = {},
|
|
33
33
|
}) => {
|
|
34
|
-
const [showFilters, setShowFilters] = useState(false)
|
|
35
34
|
const hasFilters = filtersConfig && Object.keys(filtersConfig).length > 0
|
|
36
35
|
const downloadButtonAction = app && app === 'sbg' && isViewMode ? null : {
|
|
37
36
|
onClick: onDownload,
|
|
@@ -55,7 +54,7 @@ export const useHeader = ({
|
|
|
55
54
|
noMinWidth: true,
|
|
56
55
|
squareIconButton: true,
|
|
57
56
|
onClick: () => {
|
|
58
|
-
setShowFilters((p) => !p)
|
|
57
|
+
filtersConfig.setShowFilters((p) => !p)
|
|
59
58
|
}
|
|
60
59
|
}]
|
|
61
60
|
|
|
@@ -213,10 +212,10 @@ export const useHeader = ({
|
|
|
213
212
|
<SelectFilters
|
|
214
213
|
t={filtersConfig.t}
|
|
215
214
|
apiUrl={filtersConfig.apiUrl}
|
|
216
|
-
showFilters={showFilters}
|
|
215
|
+
showFilters={filtersConfig.showFilters}
|
|
217
216
|
onApply={filtersConfig.onApply}
|
|
218
217
|
options={filtersConfig.options}
|
|
219
|
-
setShowFilters={setShowFilters}
|
|
218
|
+
setShowFilters={filtersConfig.setShowFilters}
|
|
220
219
|
language={filtersConfig.language}
|
|
221
220
|
type={filtersConfig.type}
|
|
222
221
|
filtersConfig={filtersConfig.filtersConfig}
|