@infomaximum/ui-kit 0.16.0 → 0.16.1
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/Table/components/Body/components/BodyRow/BodyRow.js +1 -1
- package/dist/components/Table/components/Body/components/MeasureRow/MeasureRow.js +1 -1
- package/dist/components/Table/components/EmptyDataRow/EmptyDataRow.d.ts +1 -2
- package/dist/components/Table/components/EmptyDataRow/EmptyDataRow.js +4 -4
- package/dist/components/Table/components/FixedHeader/components/FixedHeaderColGroup/FixedHeaderColGroup.js +1 -1
- package/dist/components/Table/features/tableRowSelection/hooks/useTableRowSelection/useTableRowSelection.js +1 -1
- package/dist/components/Table/features/tableSort/hooks/useSortState/useSortState.js +1 -1
- package/dist/components/Table/features/tableSort/hooks/useTableSort/useTableSort.js +1 -1
- package/dist/components/Table/features/tableStaticContext/contexts/tableStaticContext/TableStaticContext.js +1 -1
- package/dist/components/Table/features/tableStaticContext/hocs/withTableStaticContext.js +6 -3
- package/dist/components/Table/hooks/useCellFixedInfo/useCellFixedInfo.js +1 -1
- package/dist/components/Table/hooks/useCellHover/useCellHover.js +1 -1
- package/dist/components/Table/hooks/useTableVisualParamsChange/useTableVisualParamsChange.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { memo, useState } from "react";
|
|
3
3
|
import { BodyCell } from "../BodyCell/BodyCell.js";
|
|
4
|
+
import { useSubscribe } from "../../../../features/typedEventBus/hooks.js";
|
|
4
5
|
import { useTableContext } from "../../../../contexts/tableContext/useTableContext/useTableContext.js";
|
|
5
6
|
import { useTableStaticContext } from "../../../../features/tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
6
7
|
import { getRefValue } from "../../../../utils/ref/ref.js";
|
|
7
|
-
import { useSubscribe } from "../../../../features/typedEventBus/hooks.js";
|
|
8
8
|
const BodyRowComponent = (props) => {
|
|
9
9
|
const {
|
|
10
10
|
record,
|
|
@@ -3,10 +3,10 @@ import { useMemo, useCallback, useLayoutEffect, useRef } from "react";
|
|
|
3
3
|
import { MeasureCell } from "../MeasureCell/MeasureCell.js";
|
|
4
4
|
import ResizeObserver from "rc-resize-observer";
|
|
5
5
|
import { useEvent } from "../../../../../../hooks/useEvent/useEvent.js";
|
|
6
|
+
import { useEmitter } from "../../../../features/typedEventBus/hooks.js";
|
|
6
7
|
import { getColumnsKeys } from "./MeasureRow.utils.js";
|
|
7
8
|
import { useTableContext } from "../../../../contexts/tableContext/useTableContext/useTableContext.js";
|
|
8
9
|
import { useTableStaticContext } from "../../../../features/tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
9
|
-
import { useEmitter } from "../../../../features/typedEventBus/hooks.js";
|
|
10
10
|
import { getRefValue, updateRefValue } from "../../../../utils/ref/ref.js";
|
|
11
11
|
const MeasureRowComponent = () => {
|
|
12
12
|
const {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useContext, useState, useMemo } from "react";
|
|
2
|
+
import { memo, useContext, useState, useMemo } from "react";
|
|
3
|
+
import { useSubscribe } from "../../features/typedEventBus/hooks.js";
|
|
3
4
|
import { isUndefined, isObject, isNumber } from "lodash-es";
|
|
4
5
|
import { getCellStyle, getBorderedCellStyle, emptyWrapperStyle } from "./EmptyDataRow.styles.js";
|
|
5
6
|
import { getEndRangeInfo } from "./EmptyDataRow.utils.js";
|
|
@@ -7,7 +8,6 @@ import { ConfigContext } from "../../../ConfigProvider/contexts/ConfigContext.js
|
|
|
7
8
|
import { useTableContext } from "../../contexts/tableContext/useTableContext/useTableContext.js";
|
|
8
9
|
import { useTableStaticContext } from "../../features/tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
9
10
|
import { getRefValue } from "../../utils/ref/ref.js";
|
|
10
|
-
import { useSubscribe } from "../../features/typedEventBus/hooks.js";
|
|
11
11
|
import { Empty } from "../../../Empty/Empty.js";
|
|
12
12
|
const EmptyDataRowComponent = () => {
|
|
13
13
|
const {
|
|
@@ -58,12 +58,12 @@ const EmptyDataRowComponent = () => {
|
|
|
58
58
|
const hasBlockEndBorder = !isObject(bordered) || Boolean(bordered && bordered.emptyBlockEnd);
|
|
59
59
|
return /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { css: [cellOverflowX ? {
|
|
60
60
|
overflowX: cellOverflowX
|
|
61
|
-
} : void 0, getCellStyle(tableTokens, hasBlockEndBorder), bordered ? getBorderedCellStyle(hasInlineBorder) : void 0, process.env.NODE_ENV === "production" ? "" : ";label:EmptyDataRowComponent;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
61
|
+
} : void 0, getCellStyle(tableTokens, hasBlockEndBorder), bordered ? getBorderedCellStyle(hasInlineBorder) : void 0, process.env.NODE_ENV === "production" ? "" : ";label:EmptyDataRowComponent;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9idWlsZHMvZnJvbnRlbmQvbGlicy91aS1raXQvc3JjL2NvbXBvbmVudHMvVGFibGUvY29tcG9uZW50cy9FbXB0eURhdGFSb3cvRW1wdHlEYXRhUm93LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrRVEiLCJmaWxlIjoiL2J1aWxkcy9mcm9udGVuZC9saWJzL3VpLWtpdC9zcmMvY29tcG9uZW50cy9UYWJsZS9jb21wb25lbnRzL0VtcHR5RGF0YVJvdy9FbXB0eURhdGFSb3cudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbWVtbywgdXNlQ29udGV4dCwgdXNlTWVtbywgdXNlU3RhdGUsIHR5cGUgQ1NTUHJvcGVydGllcywgdHlwZSBGQyB9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tFbmQpO1xuXG4gIHJldHVybiAoXG4gICAgPHRyPlxuICAgICAgPHRkXG4gICAgICAgIGNzcz17W1xuICAgICAgICAgIGNlbGxPdmVyZmxvd1ggPyB7IG92ZXJmbG93WDogY2VsbE92ZXJmbG93WCB9IDogdW5kZWZpbmVkLFxuICAgICAgICAgIGdldENlbGxTdHlsZSh0YWJsZVRva2VucywgaGFzQmxvY2tFbmRCb3JkZXIpLFxuICAgICAgICAgIGJvcmRlcmVkID8gZ2V0Qm9yZGVyZWRDZWxsU3R5bGUoaGFzSW5saW5lQm9yZGVyKSA6IHVuZGVmaW5lZCxcbiAgICAgICAgXX1cbiAgICAgICAgY29sU3Bhbj17ZmxhdHRlZENvbHVtbnMubGVuZ3RofVxuICAgICAgPlxuICAgICAgICA8ZGl2XG4gICAgICAgICAgc3R5bGU9e1xuICAgICAgICAgICAgaG9yaXpvblNjcm9sbFxuICAgICAgICAgICAgICA/IHtcbiAgICAgICAgICAgICAgICAgIHdpZHRoOlxuICAgICAgICAgICAgICAgICAgICBpc051bWJlcihjbGllbnRXaWR0aCkgJiYgY2xpZW50V2lkdGggPiAwICYmIGhhc0lubGluZUJvcmRlclxuICAgICAgICAgICAgICAgICAgICAgID8gY2xpZW50V2lkdGggLSAyXG4gICAgICAgICAgICAgICAgICAgICAgOiBjbGllbnRXaWR0aCxcbiAgICAgICAgICAgICAgICAgIGxlZnQ6IGhhc0lubGluZUJvcmRlciA/IDEgOiAwLFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgOiB1bmRlZmluZWRcbiAgICAgICAgICB9XG4gICAgICAgICAgY3NzPXtob3Jpem9uU2Nyb2xsID8gZW1wdHlXcmFwcGVyU3R5bGUgOiB1bmRlZmluZWR9XG4gICAgICAgID5cbiAgICAgICAgICB7ZW1wdHl9XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC90ZD5cbiAgICA8L3RyPlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IEVtcHR5RGF0YVJvdyA9IG1lbW8oRW1wdHlEYXRhUm93Q29tcG9uZW50KTtcbiJdfQ== */"], colSpan: flattedColumns.length, children: /* @__PURE__ */ jsx("div", { style: horizonScroll ? {
|
|
62
62
|
width: isNumber(clientWidth) && clientWidth > 0 && hasInlineBorder ? clientWidth - 2 : clientWidth,
|
|
63
63
|
left: hasInlineBorder ? 1 : 0
|
|
64
64
|
} : void 0, css: horizonScroll ? emptyWrapperStyle : void 0, children: empty }) }) });
|
|
65
65
|
};
|
|
66
|
-
const EmptyDataRow = EmptyDataRowComponent;
|
|
66
|
+
const EmptyDataRow = memo(EmptyDataRowComponent);
|
|
67
67
|
export {
|
|
68
68
|
EmptyDataRow
|
|
69
69
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
+
import { useSubscribe } from "../../../../features/typedEventBus/hooks.js";
|
|
3
4
|
import { isNumber } from "lodash-es";
|
|
4
5
|
import { useTableStaticContext } from "../../../../features/tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
5
6
|
import { getRefValue } from "../../../../utils/ref/ref.js";
|
|
6
|
-
import { useSubscribe } from "../../../../features/typedEventBus/hooks.js";
|
|
7
7
|
const FixedHeaderColGroupComponent = () => {
|
|
8
8
|
const staticContextRef = useTableStaticContext();
|
|
9
9
|
const [widths, setWidths] = useState(() => getRefValue(staticContextRef, "measureCellsInfo.widths"));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useMemo, useCallback } from "react";
|
|
2
|
+
import { useEmitter } from "../../../typedEventBus/hooks.js";
|
|
2
3
|
import { useEvent } from "../../../../../../hooks/useEvent/useEvent.js";
|
|
3
4
|
import { compact } from "lodash-es";
|
|
4
5
|
import { useMultipleSelect } from "../useMultipleSelect/useMultipleSelect.js";
|
|
5
6
|
import { flattenData } from "./useTableRowSelection.utils.js";
|
|
6
7
|
import { useControlledState } from "../../../../../../hooks/useControlledState/useControlledState.js";
|
|
7
8
|
import { getRowKey } from "../../../../utils/getRowKey/getRowKey.js";
|
|
8
|
-
import { useEmitter } from "../../../typedEventBus/hooks.js";
|
|
9
9
|
import { useFirstMountLayoutEffect } from "../../../../../../hooks/useFirstMountLayoutEffect/useFirstMountLayoutEffect.js";
|
|
10
10
|
const useTableRowSelection = (options) => {
|
|
11
11
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
+
import { useSubscribe } from "../../../typedEventBus/hooks.js";
|
|
2
3
|
import { useTableContext } from "../../../../contexts/tableContext/useTableContext/useTableContext.js";
|
|
3
4
|
import { useTableStaticContext } from "../../../tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
4
5
|
import { getRefValue } from "../../../../utils/ref/ref.js";
|
|
5
|
-
import { useSubscribe } from "../../../typedEventBus/hooks.js";
|
|
6
6
|
const useSortState = (options) => {
|
|
7
7
|
const {
|
|
8
8
|
column
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useMemo } from "react";
|
|
2
|
+
import { useEmitter } from "../../../typedEventBus/hooks.js";
|
|
2
3
|
import { useEvent } from "../../../../../../hooks/useEvent/useEvent.js";
|
|
3
4
|
import { useTableStaticContext } from "../../../tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
4
5
|
import { getRefValue } from "../../../../utils/ref/ref.js";
|
|
5
|
-
import { useEmitter } from "../../../typedEventBus/hooks.js";
|
|
6
6
|
import { useFirstMountLayoutEffect } from "../../../../../../hooks/useFirstMountLayoutEffect/useFirstMountLayoutEffect.js";
|
|
7
7
|
import { getSortedData } from "../../utils/getSortedData/getSortedData.js";
|
|
8
8
|
const useTableSort = (options) => {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { forwardRef
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
3
|
import { useStatic } from "../../../../../hooks/useStatic/useStatic.js";
|
|
4
|
-
import {
|
|
4
|
+
import { createTableStaticContext, initialTableStaticContextValue } from "../contexts/tableStaticContext/TableStaticContext.js";
|
|
5
|
+
import { cloneDeep } from "lodash-es";
|
|
5
6
|
const withTableStaticContext = (Component) => {
|
|
6
7
|
const WithTableStaticContext = forwardRef((props, ref) => {
|
|
7
8
|
const TableStaticContext = useStatic(() => createTableStaticContext());
|
|
8
|
-
const tableStaticContextValueRef =
|
|
9
|
+
const tableStaticContextValueRef = useStatic(() => ({
|
|
10
|
+
current: cloneDeep(initialTableStaticContextValue)
|
|
11
|
+
}));
|
|
9
12
|
return /* @__PURE__ */ jsx(TableStaticContext.Provider, { value: tableStaticContextValueRef, children: /* @__PURE__ */ jsx(Component, { ref, ...props }) });
|
|
10
13
|
});
|
|
11
14
|
return WithTableStaticContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef } from "react";
|
|
2
2
|
import { isNumber } from "lodash-es";
|
|
3
|
+
import { useSubscribe } from "../../features/typedEventBus/hooks.js";
|
|
3
4
|
import { getCellFixedMinimalInfo, getCellFixedInfo } from "./useCellFixedInfo.utils.js";
|
|
4
5
|
import { useTableContext } from "../../contexts/tableContext/useTableContext/useTableContext.js";
|
|
5
|
-
import { useSubscribe } from "../../features/typedEventBus/hooks.js";
|
|
6
6
|
import { updateRefValue, getRefValue } from "../../utils/ref/ref.js";
|
|
7
7
|
const useCellFixedInfo = (options) => {
|
|
8
8
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef, useState } from "react";
|
|
2
|
-
import { isInHoverRange } from "./useCellHover.utils.js";
|
|
3
2
|
import { useSubscribe, useEmitter } from "../../features/typedEventBus/hooks.js";
|
|
3
|
+
import { isInHoverRange } from "./useCellHover.utils.js";
|
|
4
4
|
const useCellHover = (options) => {
|
|
5
5
|
const {
|
|
6
6
|
index,
|
package/dist/components/Table/hooks/useTableVisualParamsChange/useTableVisualParamsChange.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useRef, useLayoutEffect, useCallback } from "react";
|
|
2
2
|
import { useEvent } from "../../../../hooks/useEvent/useEvent.js";
|
|
3
|
+
import { useEmitter } from "../../features/typedEventBus/hooks.js";
|
|
3
4
|
import "rc-resize-observer";
|
|
4
5
|
import { getVerticalScrollBarWidth, forceScroll, getHorizontalScrollPositionRange } from "./utils.js";
|
|
5
6
|
import { useTableStaticContext } from "../../features/tableStaticContext/contexts/tableStaticContext/useTableStaticContext/useTableStaticContext.js";
|
|
6
|
-
import { useEmitter } from "../../features/typedEventBus/hooks.js";
|
|
7
7
|
import { updateRefValue, getRefValue } from "../../utils/ref/ref.js";
|
|
8
8
|
const useTableVisualParamsChange = (options) => {
|
|
9
9
|
const {
|