datastake-daf 0.6.181 → 0.6.183

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.
@@ -12448,26 +12448,27 @@ function Loading(_ref) {
12448
12448
  const {
12449
12449
  Paragraph: Paragraph$1
12450
12450
  } = antd.Typography;
12451
- const useHeader = ({
12452
- title = '',
12453
- tooltip = '',
12454
- supportText = '',
12455
- tags = [],
12456
- actionButtons: _actionButtons = [],
12457
- titleTooltip,
12458
- className,
12459
- addedHeader = null,
12460
- addedHeaderFirst,
12461
- extraButtons: _extraButtons = [],
12462
- onDownload,
12463
- downloadDisabled,
12464
- goBackTo,
12465
- loading,
12466
- renderExtraComponents,
12467
- app = '',
12468
- isViewMode = false,
12469
- filtersConfig = {}
12470
- }) => {
12451
+ const useHeader = _ref => {
12452
+ let {
12453
+ title = '',
12454
+ tooltip = '',
12455
+ supportText = '',
12456
+ tags = [],
12457
+ actionButtons: _actionButtons = [],
12458
+ titleTooltip,
12459
+ className,
12460
+ addedHeader = null,
12461
+ addedHeaderFirst,
12462
+ extraButtons: _extraButtons = [],
12463
+ onDownload,
12464
+ downloadDisabled,
12465
+ goBackTo,
12466
+ loading,
12467
+ renderExtraComponents,
12468
+ app = '',
12469
+ isViewMode = false,
12470
+ filtersConfig = {}
12471
+ } = _ref;
12471
12472
  const [showFilters, setShowFilters] = React.useState(false);
12472
12473
  const hasFilters = filtersConfig && Object.keys(filtersConfig).length > 0;
12473
12474
  const downloadButtonAction = app && app === 'sbg' && isViewMode ? null : {
@@ -12504,9 +12505,9 @@ const useHeader = ({
12504
12505
  const buttonCont = React.useRef();
12505
12506
  const [mainContWidth, setMainContWidth] = React.useState(600);
12506
12507
  const [buttonContWidth, setButtonContWidth] = React.useState(0);
12507
- const hasSupportText = !!supportText?.length;
12508
- const hasTags = !!tags?.length;
12509
- const hasButtons = !!(actionButtons?.length || extraButtons?.length);
12508
+ const hasSupportText = !!(supportText !== null && supportText !== void 0 && supportText.length);
12509
+ const hasTags = !!(tags !== null && tags !== void 0 && tags.length);
12510
+ const hasButtons = !!(actionButtons !== null && actionButtons !== void 0 && actionButtons.length || extraButtons !== null && extraButtons !== void 0 && extraButtons.length);
12510
12511
  React.useEffect(() => {
12511
12512
  const mainContObserver = new ResizeObserver(entries => {
12512
12513
  const _mainEntry = entries[0];
@@ -18678,17 +18679,6 @@ const Style$A = dt.div`
18678
18679
  position: relative;
18679
18680
  width: 100%;
18680
18681
  height: 472px;
18681
- min-height: 300px;
18682
-
18683
- @media (max-width: 768px) {
18684
- height: 350px;
18685
- min-height: 250px;
18686
- }
18687
-
18688
- @media (max-width: 480px) {
18689
- height: 300px;
18690
- min-height: 200px;
18691
- }
18692
18682
 
18693
18683
  .filter-cont {
18694
18684
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.181",
3
+ "version": "0.6.183",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -6,17 +6,6 @@ const Style = styled.div`
6
6
  position: relative;
7
7
  width: 100%;
8
8
  height: 472px;
9
- min-height: 300px;
10
-
11
- @media (max-width: 768px) {
12
- height: 350px;
13
- min-height: 250px;
14
- }
15
-
16
- @media (max-width: 480px) {
17
- height: 300px;
18
- min-height: 200px;
19
- }
20
9
 
21
10
  .filter-cont {
22
11
  position: absolute;
package/.env DELETED
@@ -1,8 +0,0 @@
1
- REACT_APP_API_KEY=
2
- REACT_APP_AUTH_DOMAIN=
3
- REACT_APP_PROJECT_ID=
4
- REACT_APP_STORAGE_BUCKED=
5
- REACT_APP_SENDER_ID=
6
- REACT_APP_APP_ID=
7
- REACT_APP_MEASUREMENT_ID=
8
- REACT_APP_VAPID_KEY=
@@ -1,13 +0,0 @@
1
- {
2
- "cSpell.words": ["cukura"],
3
- "files.autoSave": "afterDelay",
4
- "editor.wordWrap": "on",
5
- "editor.autoClosingBrackets": "always",
6
- "editor.autoClosingComments": "always",
7
- "editor.autoClosingQuotes": "always",
8
- "editor.defaultFormatter": "esbenp.prettier-vscode",
9
- "editor.formatOnPaste": true,
10
- "editor.formatOnSave": true,
11
- "notebook.defaultFormatter": "esbenp.prettier-vscode",
12
- "javascript.format.semicolons": "insert"
13
- }