@doyourjob/gravity-ui-page-constructor 5.31.86 → 5.31.87

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.
@@ -6,6 +6,7 @@
6
6
  unpredictable css rules order in build */
7
7
  .pc-header-block {
8
8
  position: relative;
9
+ z-index: 1;
9
10
  }
10
11
  .pc-header-block_full-width {
11
12
  --pc-border-radius: 0;
@@ -91,6 +91,7 @@ unpredictable css rules order in build */
91
91
  margin-top: -5px;
92
92
  border-radius: 2px;
93
93
  background-color: var(--g-color-private-black-150);
94
+ display: none;
94
95
  }
95
96
  @media (max-width: 769px) {
96
97
  .pc-highlight-table-block__scrollbar {
@@ -37,7 +37,7 @@ const HighlightTableBlock = ({ title, description, table, legend = [], contentSi
37
37
  if (!tableContentElem || !blockElem)
38
38
  return () => { };
39
39
  const updateSizes = (0, debounce_1.default)(() => {
40
- const width = Math.max(672, blockElem.clientWidth - 24 - 2); // 24 - padding, 2 - border
40
+ const width = Math.max(648, blockElem.clientWidth - 24 - 2); // 24 - padding, 2 - border
41
41
  tableContentElem.style.setProperty('--block-width', `${width}px`);
42
42
  });
43
43
  updateSizes();
@@ -53,6 +53,14 @@ const HighlightTableBlock = ({ title, description, table, legend = [], contentSi
53
53
  if (!tableElem || !scrollBar || !scrollThumb)
54
54
  return () => { };
55
55
  const updateProgress = (0, debounce_1.default)(() => {
56
+ if (tableElem.clientWidth === tableElem.scrollWidth) {
57
+ if (scrollBar.style.getPropertyValue('display') !== 'none') {
58
+ scrollBar.style.setProperty('display', `none`);
59
+ }
60
+ }
61
+ else if (scrollBar.style.getPropertyValue('display') !== 'block') {
62
+ scrollBar.style.setProperty('display', `block`);
63
+ }
56
64
  const scrollWidth = Math.round(scrollBar.clientWidth * (tableElem.clientWidth / tableElem.scrollWidth));
57
65
  const scrollLeft = Math.round(scrollBar.clientWidth * (tableElem.scrollLeft / tableElem.scrollWidth));
58
66
  scrollThumb.style.setProperty('transform', `translateX(${scrollLeft}px)`);
@@ -3,6 +3,16 @@ unpredictable css rules order in build */
3
3
  .pc-reports-sections-block__title {
4
4
  margin-bottom: 24px;
5
5
  }
6
+ @media (min-width: 769px) {
7
+ .pc-reports-sections-block__wrap-sections.pc-AnimateBlock .pc-reports-sections-block__sections, .pc-AnimateBlock .pc-reports-sections-block__wrap-sections .pc-reports-sections-block__sections {
8
+ opacity: 0;
9
+ }
10
+ .pc-reports-sections-block__wrap-sections.pc-AnimateBlock.animate .pc-reports-sections-block__sections, .pc-AnimateBlock .pc-reports-sections-block__wrap-sections.animate .pc-reports-sections-block__sections {
11
+ opacity: 1;
12
+ transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
13
+ transition-delay: 0s;
14
+ }
15
+ }
6
16
  .pc-reports-sections-block__sections {
7
17
  display: flex;
8
18
  flex-direction: column;
@@ -30,7 +30,8 @@ const ReportsSectionsBlock = ({ title, typeKey, empty }) => {
30
30
  return (react_1.default.createElement("div", { className: b() },
31
31
  title && react_1.default.createElement(components_1.Title, { className: b('title'), title: titleProps, colSizes: titleColSizes }),
32
32
  react_1.default.createElement(FilterSelects_1.default, { selects: selects, filters: localFilters, handleChange: handleChange }),
33
- filteredItems.length ? (react_1.default.createElement("div", { className: b('sections') }, filteredItems.map((item, index) => (react_1.default.createElement(Section_1.default, Object.assign({ key: index }, item)))))) : (react_1.default.createElement(components_1.EmptyPlug, { empty: empty, className: b('empty') }))));
33
+ filteredItems.length ? (react_1.default.createElement(components_1.AnimateBlock, { key: JSON.stringify(localFilters), className: b('wrap-sections'), animate: true },
34
+ react_1.default.createElement("div", { className: b('sections') }, filteredItems.map((item, index) => (react_1.default.createElement(Section_1.default, Object.assign({ key: index }, item))))))) : (react_1.default.createElement(components_1.EmptyPlug, { empty: empty, className: b('empty') }))));
34
35
  };
35
36
  exports.ReportsSectionsBlock = ReportsSectionsBlock;
36
37
  exports.default = exports.ReportsSectionsBlock;
@@ -7,6 +7,9 @@ unpredictable css rules order in build */
7
7
  max-height: 500px;
8
8
  border-radius: 12px;
9
9
  }
10
+ .pc-filter-select__popup .g-select-list {
11
+ scrollbar-width: none;
12
+ }
10
13
  .pc-filter-select__popup .g-select-list::-webkit-scrollbar {
11
14
  display: none;
12
15
  }
@@ -6,6 +6,7 @@
6
6
  unpredictable css rules order in build */
7
7
  .pc-header-block {
8
8
  position: relative;
9
+ z-index: 1;
9
10
  }
10
11
  .pc-header-block_full-width {
11
12
  --pc-border-radius: 0;
@@ -91,6 +91,7 @@ unpredictable css rules order in build */
91
91
  margin-top: -5px;
92
92
  border-radius: 2px;
93
93
  background-color: var(--g-color-private-black-150);
94
+ display: none;
94
95
  }
95
96
  @media (max-width: 769px) {
96
97
  .pc-highlight-table-block__scrollbar {
@@ -34,7 +34,7 @@ export const HighlightTableBlock = ({ title, description, table, legend = [], co
34
34
  if (!tableContentElem || !blockElem)
35
35
  return () => { };
36
36
  const updateSizes = debounce(() => {
37
- const width = Math.max(672, blockElem.clientWidth - 24 - 2); // 24 - padding, 2 - border
37
+ const width = Math.max(648, blockElem.clientWidth - 24 - 2); // 24 - padding, 2 - border
38
38
  tableContentElem.style.setProperty('--block-width', `${width}px`);
39
39
  });
40
40
  updateSizes();
@@ -50,6 +50,14 @@ export const HighlightTableBlock = ({ title, description, table, legend = [], co
50
50
  if (!tableElem || !scrollBar || !scrollThumb)
51
51
  return () => { };
52
52
  const updateProgress = debounce(() => {
53
+ if (tableElem.clientWidth === tableElem.scrollWidth) {
54
+ if (scrollBar.style.getPropertyValue('display') !== 'none') {
55
+ scrollBar.style.setProperty('display', `none`);
56
+ }
57
+ }
58
+ else if (scrollBar.style.getPropertyValue('display') !== 'block') {
59
+ scrollBar.style.setProperty('display', `block`);
60
+ }
53
61
  const scrollWidth = Math.round(scrollBar.clientWidth * (tableElem.clientWidth / tableElem.scrollWidth));
54
62
  const scrollLeft = Math.round(scrollBar.clientWidth * (tableElem.scrollLeft / tableElem.scrollWidth));
55
63
  scrollThumb.style.setProperty('transform', `translateX(${scrollLeft}px)`);
@@ -3,6 +3,16 @@ unpredictable css rules order in build */
3
3
  .pc-reports-sections-block__title {
4
4
  margin-bottom: 24px;
5
5
  }
6
+ @media (min-width: 769px) {
7
+ .pc-reports-sections-block__wrap-sections.pc-AnimateBlock .pc-reports-sections-block__sections, .pc-AnimateBlock .pc-reports-sections-block__wrap-sections .pc-reports-sections-block__sections {
8
+ opacity: 0;
9
+ }
10
+ .pc-reports-sections-block__wrap-sections.pc-AnimateBlock.animate .pc-reports-sections-block__sections, .pc-AnimateBlock .pc-reports-sections-block__wrap-sections.animate .pc-reports-sections-block__sections {
11
+ opacity: 1;
12
+ transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
13
+ transition-delay: 0s;
14
+ }
15
+ }
6
16
  .pc-reports-sections-block__sections {
7
17
  display: flex;
8
18
  flex-direction: column;
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useContext, useMemo, useState } from 'react';
2
- import { EmptyPlug, Title } from '../../components';
2
+ import { AnimateBlock, EmptyPlug, Title } from '../../components';
3
3
  import FilterSelects from '../../components/Filters/FilterSelects/FilterSelects';
4
4
  import { ReportsSectionsContext } from '../../context/reportsSectionsContext';
5
5
  import { block } from '../../utils';
@@ -27,6 +27,7 @@ export const ReportsSectionsBlock = ({ title, typeKey, empty }) => {
27
27
  return (React.createElement("div", { className: b() },
28
28
  title && React.createElement(Title, { className: b('title'), title: titleProps, colSizes: titleColSizes }),
29
29
  React.createElement(FilterSelects, { selects: selects, filters: localFilters, handleChange: handleChange }),
30
- filteredItems.length ? (React.createElement("div", { className: b('sections') }, filteredItems.map((item, index) => (React.createElement(Section, Object.assign({ key: index }, item)))))) : (React.createElement(EmptyPlug, { empty: empty, className: b('empty') }))));
30
+ filteredItems.length ? (React.createElement(AnimateBlock, { key: JSON.stringify(localFilters), className: b('wrap-sections'), animate: true },
31
+ React.createElement("div", { className: b('sections') }, filteredItems.map((item, index) => (React.createElement(Section, Object.assign({ key: index }, item))))))) : (React.createElement(EmptyPlug, { empty: empty, className: b('empty') }))));
31
32
  };
32
33
  export default ReportsSectionsBlock;
@@ -7,6 +7,9 @@ unpredictable css rules order in build */
7
7
  max-height: 500px;
8
8
  border-radius: 12px;
9
9
  }
10
+ .pc-filter-select__popup .g-select-list {
11
+ scrollbar-width: none;
12
+ }
10
13
  .pc-filter-select__popup .g-select-list::-webkit-scrollbar {
11
14
  display: none;
12
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor",
3
- "version": "5.31.86",
3
+ "version": "5.31.87",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {