nntc-ui 0.0.34 → 0.0.35
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/index.css +37 -3
- package/index.d.ts +1 -0
- package/index.js +159 -111
- package/package.json +1 -1
package/index.css
CHANGED
|
@@ -144,12 +144,19 @@
|
|
|
144
144
|
.button_textSecondary.button_active > span > svg {
|
|
145
145
|
fill: var(--theme-focus) !important;
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
.button_root:disabled,
|
|
148
|
+
.button_root[disabled] {
|
|
149
149
|
color: var(--theme-text-inactive);
|
|
150
150
|
pointer-events: none;
|
|
151
151
|
-webkit-user-select: none;
|
|
152
152
|
user-select: none;
|
|
153
|
+
}
|
|
154
|
+
.button_tonal:disabled,
|
|
155
|
+
.button_tonal[disabled],
|
|
156
|
+
.button_elevated:disabled,
|
|
157
|
+
.button_elevated[disabled],
|
|
158
|
+
.button_filled:disabled,
|
|
159
|
+
.button_filled[disabled] {
|
|
153
160
|
background-color: var(--theme-grey-700);
|
|
154
161
|
}
|
|
155
162
|
|
|
@@ -1260,9 +1267,36 @@ button[disabled] {
|
|
|
1260
1267
|
width: 100%;
|
|
1261
1268
|
height: 0;
|
|
1262
1269
|
}
|
|
1270
|
+
.multiSelect_input:disabled,
|
|
1271
|
+
.multiSelect_input[disabled],
|
|
1272
|
+
.multiSelect_input:disabled + .multiSelect_arrow,
|
|
1273
|
+
.multiSelect_input[disabled] + .multiSelect_arrow {
|
|
1274
|
+
color: var(--theme-text-inactive);
|
|
1275
|
+
pointer-events: none;
|
|
1276
|
+
-webkit-user-select: none;
|
|
1277
|
+
user-select: none;
|
|
1278
|
+
}
|
|
1279
|
+
.multiSelect_outlined:hover > .multiSelect_input:disabled,
|
|
1280
|
+
.multiSelect_outlined:hover > .multiSelect_input.multiSelect_input[disabled] {
|
|
1281
|
+
outline-color: var(--theme-input-border);
|
|
1282
|
+
}
|
|
1283
|
+
.multiSelect_filled .multiSelect_input:disabled,
|
|
1284
|
+
.multiSelect_filled .multiSelect_input[disabled] {
|
|
1285
|
+
background-color: var(--theme-grey-700);
|
|
1286
|
+
}
|
|
1263
1287
|
.multiSelect_popoverContent {
|
|
1288
|
+
display: flex;
|
|
1289
|
+
flex-direction: column;
|
|
1290
|
+
gap: 8px;
|
|
1291
|
+
padding-right: 16px;
|
|
1292
|
+
padding-bottom: 16px;
|
|
1293
|
+
}
|
|
1294
|
+
.multiSelect_menuWrapper {
|
|
1264
1295
|
max-height: 250px;
|
|
1265
|
-
|
|
1296
|
+
}
|
|
1297
|
+
.multiSelect_searchInputRoot {
|
|
1298
|
+
padding: 0 8px;
|
|
1299
|
+
margin-top: 8px;
|
|
1266
1300
|
}
|
|
1267
1301
|
|
|
1268
1302
|
/* src/components/common/Checklist/checklist.module.css */
|
package/index.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ interface Props$e {
|
|
|
138
138
|
onValueChange?: (newItem: string[] | null) => void;
|
|
139
139
|
selected: string[] | null;
|
|
140
140
|
titleType?: TitleVariant;
|
|
141
|
+
enableSearch?: boolean;
|
|
141
142
|
}
|
|
142
143
|
declare function MultiSelect(props: UiProps<Props$e> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
143
144
|
|
package/index.js
CHANGED
|
@@ -1570,10 +1570,12 @@ __export(multiSelect_exports, {
|
|
|
1570
1570
|
itemIcon: () => itemIcon3,
|
|
1571
1571
|
label: () => label5,
|
|
1572
1572
|
medium: () => medium9,
|
|
1573
|
+
menuWrapper: () => menuWrapper,
|
|
1573
1574
|
outlined: () => outlined7,
|
|
1574
1575
|
popoverContent: () => popoverContent3,
|
|
1575
1576
|
popoverTarget: () => popoverTarget4,
|
|
1576
1577
|
root: () => root12,
|
|
1578
|
+
searchInputRoot: () => searchInputRoot,
|
|
1577
1579
|
small: () => small9,
|
|
1578
1580
|
withIcon: () => withIcon4,
|
|
1579
1581
|
withItemIcon: () => withItemIcon2,
|
|
@@ -1595,6 +1597,8 @@ var clear = "multiSelect_clear";
|
|
|
1595
1597
|
var arrow3 = "multiSelect_arrow";
|
|
1596
1598
|
var popoverTarget4 = "multiSelect_popoverTarget";
|
|
1597
1599
|
var popoverContent3 = "multiSelect_popoverContent";
|
|
1600
|
+
var menuWrapper = "multiSelect_menuWrapper";
|
|
1601
|
+
var searchInputRoot = "multiSelect_searchInputRoot";
|
|
1598
1602
|
var multiSelect_default = {
|
|
1599
1603
|
root: root12,
|
|
1600
1604
|
medium: medium9,
|
|
@@ -1611,33 +1615,68 @@ var multiSelect_default = {
|
|
|
1611
1615
|
clear,
|
|
1612
1616
|
arrow: arrow3,
|
|
1613
1617
|
popoverTarget: popoverTarget4,
|
|
1614
|
-
popoverContent: popoverContent3
|
|
1618
|
+
popoverContent: popoverContent3,
|
|
1619
|
+
menuWrapper,
|
|
1620
|
+
searchInputRoot
|
|
1615
1621
|
};
|
|
1616
1622
|
|
|
1617
1623
|
// src/components/common/MultiSelect/ui/SelectPopover/SelectPopover.tsx
|
|
1618
|
-
import
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
name: i.name,
|
|
1630
|
-
description: i.description,
|
|
1631
|
-
disabled: i.disabled,
|
|
1632
|
-
selected: selected5?.includes(i.value),
|
|
1633
|
-
onClick: () => {
|
|
1634
|
-
changeSelectedItem(i);
|
|
1635
|
-
},
|
|
1636
|
-
withCheckbox: true
|
|
1637
|
-
})
|
|
1638
|
-
)
|
|
1639
|
-
}
|
|
1624
|
+
import classNames4 from "classnames";
|
|
1625
|
+
import { useState as useState7 } from "react";
|
|
1626
|
+
|
|
1627
|
+
// src/components/common/MultiSelect/utils/filterItems.ts
|
|
1628
|
+
var filterItems = (items2, filterText) => {
|
|
1629
|
+
if (!filterText) {
|
|
1630
|
+
return items2;
|
|
1631
|
+
}
|
|
1632
|
+
const searchText = filterText.toUpperCase();
|
|
1633
|
+
return items2.filter(
|
|
1634
|
+
(item3) => item3.name.toUpperCase().includes(searchText) || item3.description && item3.description.toUpperCase().includes(searchText)
|
|
1640
1635
|
);
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
// src/components/common/MultiSelect/ui/SelectPopover/SelectPopover.tsx
|
|
1639
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1640
|
+
function SelectPopover2(props) {
|
|
1641
|
+
const { items: items2, componentSize, selected: selected5, changeSelectedItem, classes, enableSearch = false } = props;
|
|
1642
|
+
const [searchValue, setSearchValue] = useState7("");
|
|
1643
|
+
const filteredItems = enableSearch ? filterItems(items2, searchValue) : items2;
|
|
1644
|
+
const handleSearchChange = (e) => {
|
|
1645
|
+
setSearchValue(e.target.value);
|
|
1646
|
+
};
|
|
1647
|
+
return /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
1648
|
+
enableSearch && /* @__PURE__ */ jsx19(
|
|
1649
|
+
SearchInput,
|
|
1650
|
+
{
|
|
1651
|
+
variant: "outlined",
|
|
1652
|
+
componentSize,
|
|
1653
|
+
value: searchValue,
|
|
1654
|
+
fullWidth: true,
|
|
1655
|
+
classes: classes?.searchInput,
|
|
1656
|
+
onChange: handleSearchChange
|
|
1657
|
+
}
|
|
1658
|
+
),
|
|
1659
|
+
/* @__PURE__ */ jsx19("div", { className: classNames4(classes?.menuWrapper), children: /* @__PURE__ */ jsx19(
|
|
1660
|
+
Menu,
|
|
1661
|
+
{
|
|
1662
|
+
size: componentSize,
|
|
1663
|
+
classes: classes?.menu,
|
|
1664
|
+
items: filteredItems.map(
|
|
1665
|
+
(i) => ({
|
|
1666
|
+
type: "item",
|
|
1667
|
+
name: i.name,
|
|
1668
|
+
description: i.description,
|
|
1669
|
+
disabled: i.disabled,
|
|
1670
|
+
selected: selected5?.includes(i.value),
|
|
1671
|
+
onClick: () => {
|
|
1672
|
+
changeSelectedItem(i);
|
|
1673
|
+
},
|
|
1674
|
+
withCheckbox: true
|
|
1675
|
+
})
|
|
1676
|
+
)
|
|
1677
|
+
}
|
|
1678
|
+
) })
|
|
1679
|
+
] });
|
|
1641
1680
|
}
|
|
1642
1681
|
|
|
1643
1682
|
// src/components/common/MultiSelect/utils/getTitle.ts
|
|
@@ -1656,7 +1695,7 @@ var getTitle = (titleType, activeItems, t) => {
|
|
|
1656
1695
|
};
|
|
1657
1696
|
|
|
1658
1697
|
// src/components/common/MultiSelect/MultiSelect.tsx
|
|
1659
|
-
import { jsx as jsx20, jsxs as
|
|
1698
|
+
import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1660
1699
|
function MultiSelect(props) {
|
|
1661
1700
|
const {
|
|
1662
1701
|
variant = "filled",
|
|
@@ -1673,6 +1712,7 @@ function MultiSelect(props) {
|
|
|
1673
1712
|
disabled: disabled2,
|
|
1674
1713
|
id,
|
|
1675
1714
|
titleType = "allValue",
|
|
1715
|
+
enableSearch = false,
|
|
1676
1716
|
...inputProps
|
|
1677
1717
|
} = props;
|
|
1678
1718
|
const { t } = useTranslation2();
|
|
@@ -1704,7 +1744,7 @@ function MultiSelect(props) {
|
|
|
1704
1744
|
onValueChange?.(null);
|
|
1705
1745
|
};
|
|
1706
1746
|
const inputId = id ?? uuidv45();
|
|
1707
|
-
return /* @__PURE__ */
|
|
1747
|
+
return /* @__PURE__ */ jsxs12(
|
|
1708
1748
|
"div",
|
|
1709
1749
|
{
|
|
1710
1750
|
className: classnames11(root12, multiSelect_exports[componentSize], classes?.root),
|
|
@@ -1723,7 +1763,7 @@ function MultiSelect(props) {
|
|
|
1723
1763
|
children: label7
|
|
1724
1764
|
}
|
|
1725
1765
|
),
|
|
1726
|
-
/* @__PURE__ */
|
|
1766
|
+
/* @__PURE__ */ jsxs12(
|
|
1727
1767
|
"div",
|
|
1728
1768
|
{
|
|
1729
1769
|
className: classnames11(
|
|
@@ -1755,7 +1795,7 @@ function MultiSelect(props) {
|
|
|
1755
1795
|
{
|
|
1756
1796
|
placement: "bottom-start",
|
|
1757
1797
|
classes: {
|
|
1758
|
-
content: classnames11(popoverContent3,
|
|
1798
|
+
content: classnames11(popoverContent3, classes?.popoverContent),
|
|
1759
1799
|
...classes?.popover
|
|
1760
1800
|
},
|
|
1761
1801
|
containerOffset: 4,
|
|
@@ -1763,10 +1803,18 @@ function MultiSelect(props) {
|
|
|
1763
1803
|
SelectPopover2,
|
|
1764
1804
|
{
|
|
1765
1805
|
items: items2,
|
|
1766
|
-
classes
|
|
1806
|
+
classes: {
|
|
1807
|
+
searchInput: {
|
|
1808
|
+
root: searchInputRoot,
|
|
1809
|
+
...classes?.selectPopover?.searchInput
|
|
1810
|
+
},
|
|
1811
|
+
menuWrapper: classnames11(menuWrapper, "styledScroll"),
|
|
1812
|
+
...classes?.selectPopover
|
|
1813
|
+
},
|
|
1767
1814
|
componentSize,
|
|
1768
1815
|
selected: selected5,
|
|
1769
|
-
changeSelectedItem
|
|
1816
|
+
changeSelectedItem,
|
|
1817
|
+
enableSearch
|
|
1770
1818
|
}
|
|
1771
1819
|
),
|
|
1772
1820
|
children: /* @__PURE__ */ jsx20("div", { ref: popoverTargetRef, className: classnames11(popoverTarget4) })
|
|
@@ -1782,7 +1830,7 @@ function MultiSelect(props) {
|
|
|
1782
1830
|
|
|
1783
1831
|
// src/components/common/Checklist/Checklist.tsx
|
|
1784
1832
|
import classnames12 from "classnames";
|
|
1785
|
-
import { useState as
|
|
1833
|
+
import { useState as useState8 } from "react";
|
|
1786
1834
|
|
|
1787
1835
|
// src/components/common/Checklist/checklist.module.css
|
|
1788
1836
|
var root13 = "checklist_root";
|
|
@@ -1790,7 +1838,7 @@ var scrolled = "checklist_scrolled";
|
|
|
1790
1838
|
var actionWrap = "checklist_actionWrap";
|
|
1791
1839
|
|
|
1792
1840
|
// src/components/common/Checklist/utils/filterItems.ts
|
|
1793
|
-
var
|
|
1841
|
+
var filterItems2 = (items2, filterText, selectedItems) => {
|
|
1794
1842
|
if (!filterText) {
|
|
1795
1843
|
return items2.filter((item3) => !selectedItems[item3.value]);
|
|
1796
1844
|
}
|
|
@@ -1804,13 +1852,13 @@ var filterItems = (items2, filterText, selectedItems) => {
|
|
|
1804
1852
|
};
|
|
1805
1853
|
|
|
1806
1854
|
// src/components/common/Checklist/Checklist.tsx
|
|
1807
|
-
import { Fragment as
|
|
1855
|
+
import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1808
1856
|
function Checklist(props) {
|
|
1809
1857
|
const { items: items2, selected: selected5, disableSearch, isDisabled, actionWithSelected, onChangeItem, classes } = props;
|
|
1810
1858
|
const { t } = useTranslation();
|
|
1811
|
-
const [filterSubstring, setFilterSubstring] =
|
|
1812
|
-
const [selectedItems, setSelectedItems] =
|
|
1813
|
-
const filteredItems =
|
|
1859
|
+
const [filterSubstring, setFilterSubstring] = useState8("");
|
|
1860
|
+
const [selectedItems, setSelectedItems] = useState8(selected5);
|
|
1861
|
+
const filteredItems = filterItems2(items2, filterSubstring, selectedItems);
|
|
1814
1862
|
const handleClick = (item3) => {
|
|
1815
1863
|
const value = !selected5[item3.value];
|
|
1816
1864
|
if (onChangeItem) {
|
|
@@ -1833,7 +1881,7 @@ function Checklist(props) {
|
|
|
1833
1881
|
setSelectedItems(newSelected);
|
|
1834
1882
|
actionWithSelected(newSelected);
|
|
1835
1883
|
};
|
|
1836
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ jsxs13("div", { className: classnames12(root13, classes?.root), children: [
|
|
1837
1885
|
!disableSearch && /* @__PURE__ */ jsx21(
|
|
1838
1886
|
SearchInput,
|
|
1839
1887
|
{
|
|
@@ -1845,9 +1893,9 @@ function Checklist(props) {
|
|
|
1845
1893
|
onChange: (e) => setFilterSubstring(e.target.value)
|
|
1846
1894
|
}
|
|
1847
1895
|
),
|
|
1848
|
-
/* @__PURE__ */
|
|
1849
|
-
items2.some((item3) => !!selectedItems[item3.value]) && /* @__PURE__ */
|
|
1850
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ jsxs13("div", { className: classnames12(scrolled, "styledScroll"), children: [
|
|
1897
|
+
items2.some((item3) => !!selectedItems[item3.value]) && /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
1898
|
+
/* @__PURE__ */ jsxs13("div", { className: classnames12(actionWrap, classes?.actionWrap), children: [
|
|
1851
1899
|
/* @__PURE__ */ jsx21(Typography, { className: classnames12(classes?.typography), children: t("\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435") }),
|
|
1852
1900
|
/* @__PURE__ */ jsx21(
|
|
1853
1901
|
Button,
|
|
@@ -1951,11 +1999,11 @@ function Layout(props) {
|
|
|
1951
1999
|
|
|
1952
2000
|
// src/components/navigation/Tabs/Tabs.tsx
|
|
1953
2001
|
import classnames17 from "classnames";
|
|
1954
|
-
import { useEffect as useEffect5, useState as
|
|
2002
|
+
import { useEffect as useEffect5, useState as useState11 } from "react";
|
|
1955
2003
|
|
|
1956
2004
|
// src/components/view/Tooltip/Tooltip.tsx
|
|
1957
2005
|
import classnames16 from "classnames";
|
|
1958
|
-
import { useRef as useRef8, useState as
|
|
2006
|
+
import { useRef as useRef8, useState as useState10 } from "react";
|
|
1959
2007
|
|
|
1960
2008
|
// src/components/view/Tooltip/tooltip.module.css
|
|
1961
2009
|
var tooltip_exports = {};
|
|
@@ -2008,7 +2056,7 @@ import { createContext as createContext2 } from "react";
|
|
|
2008
2056
|
var TooltipContext = createContext2(null);
|
|
2009
2057
|
|
|
2010
2058
|
// src/components/view/Tooltip/ui/TooltipContent/TooltipContent.tsx
|
|
2011
|
-
import { jsx as jsx24, jsxs as
|
|
2059
|
+
import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2012
2060
|
var TooltipContent = forwardRef5(function TooltipContent2({ styles, style, children: children2, ...props }, propRef) {
|
|
2013
2061
|
const context = useContext5(TooltipContext);
|
|
2014
2062
|
if (!context) {
|
|
@@ -2049,7 +2097,7 @@ var TooltipContent = forwardRef5(function TooltipContent2({ styles, style, child
|
|
|
2049
2097
|
default:
|
|
2050
2098
|
break;
|
|
2051
2099
|
}
|
|
2052
|
-
return /* @__PURE__ */ jsx24(FloatingPortal2, { root: otherContext.root, children: /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx24(FloatingPortal2, { root: otherContext.root, children: /* @__PURE__ */ jsxs14(
|
|
2053
2101
|
"div",
|
|
2054
2102
|
{
|
|
2055
2103
|
ref,
|
|
@@ -2093,7 +2141,7 @@ import {
|
|
|
2093
2141
|
useInteractions as useInteractions2,
|
|
2094
2142
|
useRole as useRole2
|
|
2095
2143
|
} from "@floating-ui/react";
|
|
2096
|
-
import { useMemo as useMemo4, useState as
|
|
2144
|
+
import { useMemo as useMemo4, useState as useState9 } from "react";
|
|
2097
2145
|
function useTooltip(props = {}) {
|
|
2098
2146
|
const {
|
|
2099
2147
|
initialOpen = false,
|
|
@@ -2104,7 +2152,7 @@ function useTooltip(props = {}) {
|
|
|
2104
2152
|
arrowRef,
|
|
2105
2153
|
root: root22
|
|
2106
2154
|
} = props;
|
|
2107
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
2155
|
+
const [uncontrolledOpen, setUncontrolledOpen] = useState9(initialOpen);
|
|
2108
2156
|
const open = controlledOpen ?? uncontrolledOpen;
|
|
2109
2157
|
const setOpen = setControlledOpen ?? setUncontrolledOpen;
|
|
2110
2158
|
const data = useFloating2({
|
|
@@ -2184,7 +2232,7 @@ var TooltipTrigger = forwardRef6(
|
|
|
2184
2232
|
);
|
|
2185
2233
|
|
|
2186
2234
|
// src/components/view/Tooltip/Tooltip.tsx
|
|
2187
|
-
import { jsx as jsx27, jsxs as
|
|
2235
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2188
2236
|
function Tooltip(props) {
|
|
2189
2237
|
const {
|
|
2190
2238
|
label: label7,
|
|
@@ -2198,7 +2246,7 @@ function Tooltip(props) {
|
|
|
2198
2246
|
children: children2,
|
|
2199
2247
|
classes
|
|
2200
2248
|
} = props;
|
|
2201
|
-
const [showTooltip, setShowTooltip] =
|
|
2249
|
+
const [showTooltip, setShowTooltip] = useState10(false);
|
|
2202
2250
|
const arrowRef = useRef8(null);
|
|
2203
2251
|
if (!label7) {
|
|
2204
2252
|
return children2;
|
|
@@ -2206,7 +2254,7 @@ function Tooltip(props) {
|
|
|
2206
2254
|
if (!children2) {
|
|
2207
2255
|
return null;
|
|
2208
2256
|
}
|
|
2209
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsxs15(
|
|
2210
2258
|
TooltipProvider,
|
|
2211
2259
|
{
|
|
2212
2260
|
placement,
|
|
@@ -2299,7 +2347,7 @@ var tabs_default = {
|
|
|
2299
2347
|
};
|
|
2300
2348
|
|
|
2301
2349
|
// src/components/navigation/Tabs/Tabs.tsx
|
|
2302
|
-
import { jsx as jsx28, jsxs as
|
|
2350
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2303
2351
|
function Tabs(props) {
|
|
2304
2352
|
const {
|
|
2305
2353
|
items: items2,
|
|
@@ -2315,8 +2363,8 @@ function Tabs(props) {
|
|
|
2315
2363
|
value,
|
|
2316
2364
|
classes
|
|
2317
2365
|
} = props;
|
|
2318
|
-
const [isMounted, setIsMounted] =
|
|
2319
|
-
const [selectedTab, setSelectedTab] =
|
|
2366
|
+
const [isMounted, setIsMounted] = useState11(false);
|
|
2367
|
+
const [selectedTab, setSelectedTab] = useState11(defaultSelected);
|
|
2320
2368
|
const currentValue = useExternalState ? value : selectedTab;
|
|
2321
2369
|
const handleClick = (item3) => () => {
|
|
2322
2370
|
if (item3.isDisabled) {
|
|
@@ -2362,7 +2410,7 @@ function Tabs(props) {
|
|
|
2362
2410
|
children: items2.map((item3) => {
|
|
2363
2411
|
const isButton = !!item3.onClick;
|
|
2364
2412
|
const isSelected = !isButton && currentValue === item3.value;
|
|
2365
|
-
const tabContent = /* @__PURE__ */
|
|
2413
|
+
const tabContent = /* @__PURE__ */ jsxs16(
|
|
2366
2414
|
"div",
|
|
2367
2415
|
{
|
|
2368
2416
|
className: classnames17(
|
|
@@ -2379,7 +2427,7 @@ function Tabs(props) {
|
|
|
2379
2427
|
),
|
|
2380
2428
|
onClick: handleClick(item3),
|
|
2381
2429
|
children: [
|
|
2382
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ jsxs16(
|
|
2383
2431
|
"div",
|
|
2384
2432
|
{
|
|
2385
2433
|
className: classnames17(
|
|
@@ -2424,7 +2472,7 @@ import { flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-tabl
|
|
|
2424
2472
|
import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual";
|
|
2425
2473
|
import classnames22 from "classnames";
|
|
2426
2474
|
import dayjs4 from "dayjs";
|
|
2427
|
-
import { Fragment as
|
|
2475
|
+
import { Fragment as Fragment8, useCallback as useCallback7, useEffect as useEffect8, useMemo as useMemo6, useRef as useRef11, useState as useState15 } from "react";
|
|
2428
2476
|
|
|
2429
2477
|
// src/utils/toFirstLetterUpperCase.ts
|
|
2430
2478
|
var toFirstLetterUpperCase = (name) => {
|
|
@@ -2436,7 +2484,7 @@ var defaultRowHeight = 32;
|
|
|
2436
2484
|
|
|
2437
2485
|
// src/components/view/VirtualTable/ui/DefaultColumn/DefaultColumn.tsx
|
|
2438
2486
|
import classnames18 from "classnames";
|
|
2439
|
-
import { useEffect as useEffect6, useRef as useRef10, useState as
|
|
2487
|
+
import { useEffect as useEffect6, useRef as useRef10, useState as useState12 } from "react";
|
|
2440
2488
|
|
|
2441
2489
|
// src/components/view/Modal/Modal.tsx
|
|
2442
2490
|
import { forwardRef as forwardRef7, useRef as useRef9 } from "react";
|
|
@@ -2597,15 +2645,15 @@ var virtualTable_default = {
|
|
|
2597
2645
|
};
|
|
2598
2646
|
|
|
2599
2647
|
// src/components/view/VirtualTable/ui/DefaultColumn/DefaultColumn.tsx
|
|
2600
|
-
import { Fragment as
|
|
2648
|
+
import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2601
2649
|
var DefaultColumn = {
|
|
2602
2650
|
cell: ({ getValue, row: { index, original }, column: { id, columnDef }, table: table2 }) => {
|
|
2603
2651
|
const initialValue = getValue();
|
|
2604
2652
|
const { meta } = columnDef;
|
|
2605
2653
|
const tableMeta = table2.options.meta;
|
|
2606
|
-
const [value, setValue] =
|
|
2607
|
-
const [isEdit, setIsEdit] =
|
|
2608
|
-
const [showModal, setShowModal] =
|
|
2654
|
+
const [value, setValue] = useState12(initialValue);
|
|
2655
|
+
const [isEdit, setIsEdit] = useState12(false);
|
|
2656
|
+
const [showModal, setShowModal] = useState12(false);
|
|
2609
2657
|
const closeModalRef = useRef10();
|
|
2610
2658
|
closeModalRef.current = () => {
|
|
2611
2659
|
setShowModal(false);
|
|
@@ -2622,10 +2670,10 @@ var DefaultColumn = {
|
|
|
2622
2670
|
const onChange = (e) => {
|
|
2623
2671
|
setValue(e.target.value);
|
|
2624
2672
|
};
|
|
2625
|
-
return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error ?? "", alertType: "error", children: additionalViewResult?.edit !== null && additionalViewResult?.edit !== void 0 ? additionalViewResult.edit(onChange, onBlur) : /* @__PURE__ */ jsx30(
|
|
2673
|
+
return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error ?? "", alertType: "error", children: additionalViewResult?.edit !== null && additionalViewResult?.edit !== void 0 ? additionalViewResult.edit(onChange, onBlur) : /* @__PURE__ */ jsx30(Fragment5, { children: /* @__PURE__ */ jsx30("input", { onChange, onBlur, value: value ?? "", autoFocus: true }) }) });
|
|
2626
2674
|
}
|
|
2627
2675
|
const shownValue = additionalViewResult?.view !== null && additionalViewResult?.view !== void 0 ? additionalViewResult.view : meta?.valueFormat ? meta.valueFormat(initialValue?.toString() ?? "") : meta?.toFixed !== void 0 && !Number.isNaN(parseFloat(initialValue)) ? parseFloat(Number(initialValue).toFixed(meta.toFixed)) : initialValue;
|
|
2628
|
-
return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error, alertType: "error", children: /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error, alertType: "error", children: /* @__PURE__ */ jsxs17(
|
|
2629
2677
|
"div",
|
|
2630
2678
|
{
|
|
2631
2679
|
className: classnames18(
|
|
@@ -2659,7 +2707,7 @@ var checklistWrap = "headerDropdown_checklistWrap";
|
|
|
2659
2707
|
|
|
2660
2708
|
// src/components/view/VirtualTable/ui/DateFiltration/DateFiltration.tsx
|
|
2661
2709
|
import classnames19 from "classnames";
|
|
2662
|
-
import { useEffect as useEffect7, useState as
|
|
2710
|
+
import { useEffect as useEffect7, useState as useState13 } from "react";
|
|
2663
2711
|
|
|
2664
2712
|
// src/components/view/VirtualTable/ui/DateFiltration/dateFiltration.module.css
|
|
2665
2713
|
var root19 = "dateFiltration_root";
|
|
@@ -2668,7 +2716,7 @@ var root19 = "dateFiltration_root";
|
|
|
2668
2716
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2669
2717
|
function DateFiltration(props) {
|
|
2670
2718
|
const { defaultValues = [void 0, void 0], actionWithSelected } = props;
|
|
2671
|
-
const [values, setValues] =
|
|
2719
|
+
const [values, setValues] = useState13(defaultValues);
|
|
2672
2720
|
const handleChangeDates = (newValues) => {
|
|
2673
2721
|
setValues(newValues);
|
|
2674
2722
|
};
|
|
@@ -2690,7 +2738,7 @@ function DateFiltration(props) {
|
|
|
2690
2738
|
|
|
2691
2739
|
// src/components/view/VirtualTable/ui/NumberFiltration/NumberFiltration.tsx
|
|
2692
2740
|
import classnames20 from "classnames";
|
|
2693
|
-
import { useState as
|
|
2741
|
+
import { useState as useState14 } from "react";
|
|
2694
2742
|
|
|
2695
2743
|
// src/components/view/VirtualTable/ui/NumberFiltration/numberFiltration.module.css
|
|
2696
2744
|
var root20 = "numberFiltration_root";
|
|
@@ -2699,7 +2747,7 @@ var inputsContainer = "numberFiltration_inputsContainer";
|
|
|
2699
2747
|
var input8 = "numberFiltration_input";
|
|
2700
2748
|
|
|
2701
2749
|
// src/components/view/VirtualTable/ui/NumberFiltration/NumberFiltration.tsx
|
|
2702
|
-
import { Fragment as
|
|
2750
|
+
import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2703
2751
|
var items = [
|
|
2704
2752
|
{ type: "item", name: "\u041E\u0442 \u2014 \u0434\u043E", value: "range" },
|
|
2705
2753
|
{ type: "item", name: "\u0411\u043E\u043B\u044C\u0448\u0435", value: "more" },
|
|
@@ -2708,10 +2756,10 @@ var items = [
|
|
|
2708
2756
|
];
|
|
2709
2757
|
function NumberFiltration(props) {
|
|
2710
2758
|
const { defaultValues = [-Infinity, Infinity], actionWithSelected } = props;
|
|
2711
|
-
const [selectedItem, setSelectedItem] =
|
|
2759
|
+
const [selectedItem, setSelectedItem] = useState14(
|
|
2712
2760
|
defaultValues[0] === -Infinity && defaultValues[1] === Infinity ? items[0] : defaultValues[0] === defaultValues[1] ? items[3] : defaultValues[0] === -Infinity ? items[2] : defaultValues[1] === Infinity ? items[1] : items[0]
|
|
2713
2761
|
);
|
|
2714
|
-
const [values, setValues] =
|
|
2762
|
+
const [values, setValues] = useState14(defaultValues);
|
|
2715
2763
|
const handleSelect = (item3) => {
|
|
2716
2764
|
if (!!item3) {
|
|
2717
2765
|
const newValues = [...values];
|
|
@@ -2740,7 +2788,7 @@ function NumberFiltration(props) {
|
|
|
2740
2788
|
(prev) => type === "equal" ? [value.length ? +value : -Infinity, value.length ? +value : Infinity] : type === "more" ? [value.length ? +value : -Infinity, prev[1]] : [prev[0], value.length ? +value : Infinity]
|
|
2741
2789
|
);
|
|
2742
2790
|
};
|
|
2743
|
-
return /* @__PURE__ */
|
|
2791
|
+
return /* @__PURE__ */ jsxs18("div", { className: classnames20(root20), children: [
|
|
2744
2792
|
/* @__PURE__ */ jsx32(
|
|
2745
2793
|
Select,
|
|
2746
2794
|
{
|
|
@@ -2753,7 +2801,7 @@ function NumberFiltration(props) {
|
|
|
2753
2801
|
tabIndex: -1
|
|
2754
2802
|
}
|
|
2755
2803
|
),
|
|
2756
|
-
/* @__PURE__ */ jsx32("div", { className: classnames20(inputsContainer), children: selectedItem.value === "range" ? /* @__PURE__ */
|
|
2804
|
+
/* @__PURE__ */ jsx32("div", { className: classnames20(inputsContainer), children: selectedItem.value === "range" ? /* @__PURE__ */ jsxs18(Fragment6, { children: [
|
|
2757
2805
|
/* @__PURE__ */ jsx32(
|
|
2758
2806
|
Input,
|
|
2759
2807
|
{
|
|
@@ -2818,7 +2866,7 @@ function NumberFiltration(props) {
|
|
|
2818
2866
|
}
|
|
2819
2867
|
|
|
2820
2868
|
// src/components/view/VirtualTable/ui/HeaderDropdown/HeaderDropdown.tsx
|
|
2821
|
-
import { Fragment as
|
|
2869
|
+
import { Fragment as Fragment7, jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2822
2870
|
function HeaderDropdown(props) {
|
|
2823
2871
|
const {
|
|
2824
2872
|
headerMeta: {
|
|
@@ -2841,7 +2889,7 @@ function HeaderDropdown(props) {
|
|
|
2841
2889
|
children: children2
|
|
2842
2890
|
} = props;
|
|
2843
2891
|
const headerResultName = sortAnotherName ?? headerName;
|
|
2844
|
-
const
|
|
2892
|
+
const filterItems3 = useMemo5(() => {
|
|
2845
2893
|
const checklistItems = items2.filter((i) => Object.keys(i).includes(headerResultName)).map(
|
|
2846
2894
|
(i) => ({
|
|
2847
2895
|
name: valueFormat ? valueFormat(i[headerResultName].value?.toString() ?? "") : toFixed !== void 0 && !Number.isNaN(parseFloat(i[headerResultName].value)) ? parseFloat(Number(i[headerResultName].value).toFixed(toFixed)) : i[headerResultName].value,
|
|
@@ -2941,21 +2989,21 @@ function HeaderDropdown(props) {
|
|
|
2941
2989
|
};
|
|
2942
2990
|
const hasAnyFilter = Object.keys(filterSelectedItems).length || sortBy.some((sb) => sb.columnName === headerResultName);
|
|
2943
2991
|
const { t } = useTranslation();
|
|
2944
|
-
return /* @__PURE__ */
|
|
2945
|
-
children2?.(showUniqueValuesCount && /* @__PURE__ */ jsx33("div", { children: `(${
|
|
2992
|
+
return /* @__PURE__ */ jsxs19("div", { className: classnames21(root18), children: [
|
|
2993
|
+
children2?.(showUniqueValuesCount && /* @__PURE__ */ jsx33("div", { children: `(${filterItems3.length})` })),
|
|
2946
2994
|
(sortable || filtrationByValue || filtrationByDate || filtrationByNumber) && /* @__PURE__ */ jsx33(
|
|
2947
2995
|
Popover,
|
|
2948
2996
|
{
|
|
2949
2997
|
placement: "bottom-end",
|
|
2950
2998
|
wrapTrigger: true,
|
|
2951
2999
|
root: containerRef,
|
|
2952
|
-
description: /* @__PURE__ */
|
|
3000
|
+
description: /* @__PURE__ */ jsxs19(Fragment7, { children: [
|
|
2953
3001
|
filtrationByNumber && /* @__PURE__ */ jsx33(NumberFiltration, { defaultValues: filterNumbers, actionWithSelected: actionWithSelectedNumbers }),
|
|
2954
3002
|
filtrationByDate && /* @__PURE__ */ jsx33(DateFiltration, { defaultValues: filterDates, actionWithSelected: actionWithSelectedDates }),
|
|
2955
3003
|
filtrationByValue && /* @__PURE__ */ jsx33("div", { className: classnames21(checklistWrap), children: /* @__PURE__ */ jsx33(
|
|
2956
3004
|
Checklist,
|
|
2957
3005
|
{
|
|
2958
|
-
items:
|
|
3006
|
+
items: filterItems3,
|
|
2959
3007
|
selected: filterSelectedItems,
|
|
2960
3008
|
actionWithSelected: actionWithSelectedObjects
|
|
2961
3009
|
}
|
|
@@ -3100,7 +3148,7 @@ var recursiveSort = (items2, sortBy) => {
|
|
|
3100
3148
|
};
|
|
3101
3149
|
|
|
3102
3150
|
// src/components/view/VirtualTable/VirtualTable.tsx
|
|
3103
|
-
import { Fragment as
|
|
3151
|
+
import { Fragment as Fragment9, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3104
3152
|
function VirtualTable(props) {
|
|
3105
3153
|
const {
|
|
3106
3154
|
rows,
|
|
@@ -3123,8 +3171,8 @@ function VirtualTable(props) {
|
|
|
3123
3171
|
showUniqueValuesCount = false
|
|
3124
3172
|
// globalFilters,
|
|
3125
3173
|
} = props;
|
|
3126
|
-
const [filterBy, setFilterBy] =
|
|
3127
|
-
const [sortBy, setSortBy] =
|
|
3174
|
+
const [filterBy, setFilterBy] = useState15([]);
|
|
3175
|
+
const [sortBy, setSortBy] = useState15([{ columnName: "isNew", direction: "desc" }]);
|
|
3128
3176
|
const tableContainerRef = useRef11(null);
|
|
3129
3177
|
const memoizedColumns = useMemo6(() => getColumns(columns), [columns]);
|
|
3130
3178
|
const memoizedData = useMemo6(() => {
|
|
@@ -3271,8 +3319,8 @@ function VirtualTable(props) {
|
|
|
3271
3319
|
classes?.root
|
|
3272
3320
|
),
|
|
3273
3321
|
style: height ? { height } : void 0,
|
|
3274
|
-
children: /* @__PURE__ */
|
|
3275
|
-
/* @__PURE__ */
|
|
3322
|
+
children: /* @__PURE__ */ jsxs20("div", { ref: tableContainerRef, className: classnames22(tableContainer, "styledScroll"), children: [
|
|
3323
|
+
/* @__PURE__ */ jsxs20(
|
|
3276
3324
|
"div",
|
|
3277
3325
|
{
|
|
3278
3326
|
className: table,
|
|
@@ -3304,7 +3352,7 @@ function VirtualTable(props) {
|
|
|
3304
3352
|
headerName: header2.column.columnDef.id ?? header2.id,
|
|
3305
3353
|
containerRef: useTableContainerAsRootForPopup ? tableContainerRef : void 0,
|
|
3306
3354
|
showUniqueValuesCount,
|
|
3307
|
-
children: (afterNode) => /* @__PURE__ */
|
|
3355
|
+
children: (afterNode) => /* @__PURE__ */ jsxs20(
|
|
3308
3356
|
"div",
|
|
3309
3357
|
{
|
|
3310
3358
|
className: classnames22(
|
|
@@ -3329,7 +3377,7 @@ function VirtualTable(props) {
|
|
|
3329
3377
|
}
|
|
3330
3378
|
) });
|
|
3331
3379
|
};
|
|
3332
|
-
return /* @__PURE__ */
|
|
3380
|
+
return /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
3333
3381
|
[...Array(fixedColumnsCount)].map((_, index) => {
|
|
3334
3382
|
const header2 = headerGroup.headers[index];
|
|
3335
3383
|
const nextHorizontalHeaders = getNextHorizontalHeaders(
|
|
@@ -3425,7 +3473,7 @@ function VirtualTable(props) {
|
|
|
3425
3473
|
),
|
|
3426
3474
|
virtualRows.map((virtualRow) => {
|
|
3427
3475
|
const row = rowsFromTable[virtualRow.index];
|
|
3428
|
-
return /* @__PURE__ */
|
|
3476
|
+
return /* @__PURE__ */ jsxs20(
|
|
3429
3477
|
"div",
|
|
3430
3478
|
{
|
|
3431
3479
|
"data-index": virtualRow.index,
|
|
@@ -3480,7 +3528,7 @@ function VirtualTable(props) {
|
|
|
3480
3528
|
overflow: "hidden"
|
|
3481
3529
|
}
|
|
3482
3530
|
},
|
|
3483
|
-
children: rowButtons?.(row.original)?.map((ab) => /* @__PURE__ */ jsx34(
|
|
3531
|
+
children: rowButtons?.(row.original)?.map((ab) => /* @__PURE__ */ jsx34(Fragment8, { children: ab.template ? ab.template(ab) : /* @__PURE__ */ jsx34(
|
|
3484
3532
|
Tooltip,
|
|
3485
3533
|
{
|
|
3486
3534
|
label: ab.title,
|
|
@@ -3509,7 +3557,7 @@ function VirtualTable(props) {
|
|
|
3509
3557
|
]
|
|
3510
3558
|
}
|
|
3511
3559
|
),
|
|
3512
|
-
borders !== "none" && /* @__PURE__ */
|
|
3560
|
+
borders !== "none" && /* @__PURE__ */ jsxs20(Fragment9, { children: [
|
|
3513
3561
|
/* @__PURE__ */ jsx34("div", { className: rightBorder, style: { height: `${rowsTotalSize + summaryHeaderHeight}px` } }),
|
|
3514
3562
|
/* @__PURE__ */ jsx34("div", { className: bottomBorder, style: { width: `${columnsTotalSize}px` } })
|
|
3515
3563
|
] })
|
|
@@ -3519,14 +3567,14 @@ function VirtualTable(props) {
|
|
|
3519
3567
|
}
|
|
3520
3568
|
|
|
3521
3569
|
// src/components/view/TreeView/TreeView.tsx
|
|
3522
|
-
import { memo as memo2, useCallback as useCallback8, useMemo as useMemo7, useState as
|
|
3570
|
+
import { memo as memo2, useCallback as useCallback8, useMemo as useMemo7, useState as useState17 } from "react";
|
|
3523
3571
|
|
|
3524
3572
|
// src/components/view/TreeView/treeView.module.css
|
|
3525
3573
|
var search = "treeView_search";
|
|
3526
3574
|
|
|
3527
3575
|
// src/components/view/TreeView/ui/TreeViewItem/TreeViewItem.tsx
|
|
3528
|
-
import
|
|
3529
|
-
import { memo, useEffect as useEffect9, useState as
|
|
3576
|
+
import classNames5 from "classnames";
|
|
3577
|
+
import { memo, useEffect as useEffect9, useState as useState16 } from "react";
|
|
3530
3578
|
|
|
3531
3579
|
// src/components/view/TreeView/ui/TreeViewItem/treeViewItem.module.css
|
|
3532
3580
|
var item2 = "treeViewItem_item";
|
|
@@ -3537,7 +3585,7 @@ var selected4 = "treeViewItem_selected";
|
|
|
3537
3585
|
var selectIcon = "treeViewItem_selectIcon";
|
|
3538
3586
|
|
|
3539
3587
|
// src/components/view/TreeView/ui/TreeViewItem/TreeViewItem.tsx
|
|
3540
|
-
import { jsx as jsx35, jsxs as
|
|
3588
|
+
import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3541
3589
|
var TreeViewItem_default = memo(function TreeViewItem({
|
|
3542
3590
|
title: title2,
|
|
3543
3591
|
value,
|
|
@@ -3549,7 +3597,7 @@ var TreeViewItem_default = memo(function TreeViewItem({
|
|
|
3549
3597
|
startIcons,
|
|
3550
3598
|
children: children2
|
|
3551
3599
|
}) {
|
|
3552
|
-
const [isOpen, setIsOpen] =
|
|
3600
|
+
const [isOpen, setIsOpen] = useState16(false);
|
|
3553
3601
|
useEffect9(() => {
|
|
3554
3602
|
setIsOpen(!!searchValue);
|
|
3555
3603
|
}, [searchValue]);
|
|
@@ -3563,10 +3611,10 @@ var TreeViewItem_default = memo(function TreeViewItem({
|
|
|
3563
3611
|
}
|
|
3564
3612
|
};
|
|
3565
3613
|
const isSelected = selected5[value];
|
|
3566
|
-
return /* @__PURE__ */
|
|
3567
|
-
/* @__PURE__ */
|
|
3614
|
+
return /* @__PURE__ */ jsxs21("div", { children: [
|
|
3615
|
+
/* @__PURE__ */ jsxs21("div", { className: classNames5(item2, { [selectable]: isSelectable }), onClick: handleClick, children: [
|
|
3568
3616
|
hasChildren && /* @__PURE__ */ jsx35(KeyboardArrowDownIcon, {}),
|
|
3569
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ jsxs21("div", { className: classNames5(title, { [selected4]: isSelected }), children: [
|
|
3570
3618
|
startIcon,
|
|
3571
3619
|
/* @__PURE__ */ jsx35(Typography, { variant: "subtitle2", children: title2 }),
|
|
3572
3620
|
isSelectable && /* @__PURE__ */ jsx35("span", { className: selectIcon, children: isSelected ? /* @__PURE__ */ jsx35(DoneIcon, {}) : /* @__PURE__ */ jsx35(AddIcon, {}) })
|
|
@@ -3609,9 +3657,9 @@ var getFilteredTree = (tree, search2) => {
|
|
|
3609
3657
|
};
|
|
3610
3658
|
|
|
3611
3659
|
// src/components/view/TreeView/TreeView.tsx
|
|
3612
|
-
import { Fragment as
|
|
3660
|
+
import { Fragment as Fragment10, jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3613
3661
|
var TreeView_default = memo2(function TreeView({ data, selected: selected5, startIcons, onSelect, withSearch = false }) {
|
|
3614
|
-
const [searchValue, setSearchValue] =
|
|
3662
|
+
const [searchValue, setSearchValue] = useState17("");
|
|
3615
3663
|
const onChangeSearchValue = useCallback8((e) => setSearchValue(e.target.value), []);
|
|
3616
3664
|
const selectedValues = useMemo7(
|
|
3617
3665
|
() => selected5.reduce(
|
|
@@ -3626,7 +3674,7 @@ var TreeView_default = memo2(function TreeView({ data, selected: selected5, star
|
|
|
3626
3674
|
const filteredData = useMemo7(() => {
|
|
3627
3675
|
return getFilteredTree(data, searchValue);
|
|
3628
3676
|
}, [data, searchValue]);
|
|
3629
|
-
return /* @__PURE__ */
|
|
3677
|
+
return /* @__PURE__ */ jsxs22(Fragment10, { children: [
|
|
3630
3678
|
withSearch && /* @__PURE__ */ jsx36(
|
|
3631
3679
|
SearchInput,
|
|
3632
3680
|
{
|
|
@@ -3656,7 +3704,7 @@ var TreeView_default = memo2(function TreeView({ data, selected: selected5, star
|
|
|
3656
3704
|
});
|
|
3657
3705
|
|
|
3658
3706
|
// src/components/view/Pairs/Pairs.tsx
|
|
3659
|
-
import
|
|
3707
|
+
import classNames6 from "classnames";
|
|
3660
3708
|
|
|
3661
3709
|
// src/components/view/Pairs/pairs.module.css
|
|
3662
3710
|
var rowContainerBorders = "pairs_rowContainerBorders";
|
|
@@ -3667,11 +3715,11 @@ var valuesWithBorders = "pairs_valuesWithBorders";
|
|
|
3667
3715
|
var dimTypography = "pairs_dimTypography";
|
|
3668
3716
|
|
|
3669
3717
|
// src/components/view/Pairs/ui/TypographyWithTooltip.tsx
|
|
3670
|
-
import { useState as
|
|
3718
|
+
import { useState as useState18 } from "react";
|
|
3671
3719
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3672
3720
|
function TypographyWithTooltip(props) {
|
|
3673
3721
|
const { label: label7 } = props;
|
|
3674
|
-
const [tooltip, setTooltip] =
|
|
3722
|
+
const [tooltip, setTooltip] = useState18(label7);
|
|
3675
3723
|
return /* @__PURE__ */ jsx37(Tooltip, { label: tooltip, children: /* @__PURE__ */ jsx37(
|
|
3676
3724
|
Typography,
|
|
3677
3725
|
{
|
|
@@ -3689,21 +3737,21 @@ function TypographyWithTooltip(props) {
|
|
|
3689
3737
|
}
|
|
3690
3738
|
|
|
3691
3739
|
// src/components/view/Pairs/Pairs.tsx
|
|
3692
|
-
import { Fragment as
|
|
3740
|
+
import { Fragment as Fragment11, jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3693
3741
|
function Pairs(props) {
|
|
3694
3742
|
const { pairs, column1Width = "50%", column2Width = "50%", showBorder, minRowHeight, classes } = props;
|
|
3695
|
-
return /* @__PURE__ */ jsx38("div", { className:
|
|
3743
|
+
return /* @__PURE__ */ jsx38("div", { className: classNames6(classes?.root), children: pairs.map((pair, i) => /* @__PURE__ */ jsx38(
|
|
3696
3744
|
"div",
|
|
3697
3745
|
{
|
|
3698
3746
|
style: { minHeight: minRowHeight, display: "flex" },
|
|
3699
|
-
className:
|
|
3747
|
+
className: classNames6(classes?.rowContainer, {
|
|
3700
3748
|
[rowContainerBorders]: showBorder
|
|
3701
3749
|
}),
|
|
3702
|
-
children: pair && /* @__PURE__ */
|
|
3750
|
+
children: pair && /* @__PURE__ */ jsxs23(Fragment11, { children: [
|
|
3703
3751
|
/* @__PURE__ */ jsx38(
|
|
3704
3752
|
"div",
|
|
3705
3753
|
{
|
|
3706
|
-
className:
|
|
3754
|
+
className: classNames6(labelsContainer, classes?.labelsContainer, {
|
|
3707
3755
|
[labelsWithBorders]: showBorder
|
|
3708
3756
|
}),
|
|
3709
3757
|
style: {
|
|
@@ -3720,7 +3768,7 @@ function Pairs(props) {
|
|
|
3720
3768
|
width: column2Width,
|
|
3721
3769
|
minWidth: column2Width
|
|
3722
3770
|
},
|
|
3723
|
-
className:
|
|
3771
|
+
className: classNames6(valuesContainer, classes?.valuesContainer, {
|
|
3724
3772
|
[valuesWithBorders]: showBorder
|
|
3725
3773
|
}),
|
|
3726
3774
|
children: /* @__PURE__ */ jsx38(TypographyWithTooltip, { label: pair.value })
|
|
@@ -3733,7 +3781,7 @@ function Pairs(props) {
|
|
|
3733
3781
|
}
|
|
3734
3782
|
|
|
3735
3783
|
// src/components/view/Card/Card.tsx
|
|
3736
|
-
import
|
|
3784
|
+
import classNames7 from "classnames";
|
|
3737
3785
|
|
|
3738
3786
|
// src/components/view/Card/card.module.css
|
|
3739
3787
|
var root21 = "card_root";
|
|
@@ -3741,15 +3789,15 @@ var header = "card_header";
|
|
|
3741
3789
|
var actions = "card_actions";
|
|
3742
3790
|
|
|
3743
3791
|
// src/components/view/Card/Card.tsx
|
|
3744
|
-
import { jsx as jsx39, jsxs as
|
|
3792
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3745
3793
|
function Card(props) {
|
|
3746
3794
|
const { surfaceType = "primary", title: title2, actions: actions2, children: children2, classes } = props;
|
|
3747
|
-
return /* @__PURE__ */
|
|
3748
|
-
(!!title2 || !!actions2) && /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ jsxs24(Surface, { type: surfaceType, classes: { root: classNames7(root21, classes?.root) }, children: [
|
|
3796
|
+
(!!title2 || !!actions2) && /* @__PURE__ */ jsxs24("div", { className: header, children: [
|
|
3749
3797
|
title2 ?? /* @__PURE__ */ jsx39("div", {}),
|
|
3750
|
-
!!actions2 && /* @__PURE__ */ jsx39("div", { className:
|
|
3798
|
+
!!actions2 && /* @__PURE__ */ jsx39("div", { className: classNames7(actions, classes?.actions), children: actions2 })
|
|
3751
3799
|
] }),
|
|
3752
|
-
/* @__PURE__ */ jsx39("div", { className:
|
|
3800
|
+
/* @__PURE__ */ jsx39("div", { className: classNames7(classes?.body), children: children2 })
|
|
3753
3801
|
] });
|
|
3754
3802
|
}
|
|
3755
3803
|
export {
|