fui-material 2.0.2 → 2.0.3
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/f-ui-kit.es.js
CHANGED
|
@@ -1614,19 +1614,25 @@ const FPaper = ({
|
|
|
1614
1614
|
}
|
|
1615
1615
|
);
|
|
1616
1616
|
};
|
|
1617
|
-
const bordered = "
|
|
1617
|
+
const bordered = "_bordered_19x7r_18";
|
|
1618
|
+
const left$1 = "_left_19x7r_40";
|
|
1619
|
+
const center = "_center_19x7r_43";
|
|
1620
|
+
const right = "_right_19x7r_46";
|
|
1618
1621
|
const styles$p = {
|
|
1619
|
-
"f-table-component": "_f-table-
|
|
1620
|
-
"f-table-component__table": "_f-table-
|
|
1622
|
+
"f-table-component": "_f-table-component_19x7r_1",
|
|
1623
|
+
"f-table-component__table": "_f-table-component__table_19x7r_7",
|
|
1621
1624
|
bordered,
|
|
1622
|
-
"bordered-half": "_bordered-
|
|
1623
|
-
"f-table-component__table_header": "_f-table-
|
|
1624
|
-
"is-sticky": "_is-
|
|
1625
|
-
"f-table-component__table_header-cell": "_f-table-component__table_header-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
"f-table-
|
|
1625
|
+
"bordered-half": "_bordered-half_19x7r_22",
|
|
1626
|
+
"f-table-component__table_header": "_f-table-component__table_header_19x7r_25",
|
|
1627
|
+
"is-sticky": "_is-sticky_19x7r_32",
|
|
1628
|
+
"f-table-component__table_header-cell": "_f-table-component__table_header-cell_19x7r_37",
|
|
1629
|
+
left: left$1,
|
|
1630
|
+
center,
|
|
1631
|
+
right,
|
|
1632
|
+
"f-table-component__table_body": "_f-table-component__table_body_19x7r_65",
|
|
1633
|
+
"f-table-component__table_row": "_f-table-component__table_row_19x7r_68",
|
|
1634
|
+
"f-table-component__table_body-cell": "_f-table-component__table_body-cell_19x7r_81",
|
|
1635
|
+
"f-table-component__table_footer": "_f-table-component__table_footer_19x7r_97"
|
|
1630
1636
|
};
|
|
1631
1637
|
const FTableHead = ({
|
|
1632
1638
|
st: st2,
|
|
@@ -1637,16 +1643,12 @@ const FTableHead = ({
|
|
|
1637
1643
|
// По умолчанию заголовок не "липкий"
|
|
1638
1644
|
...props
|
|
1639
1645
|
}) => {
|
|
1640
|
-
const style = {
|
|
1641
|
-
textAlign: textAlignment,
|
|
1642
|
-
...st2
|
|
1643
|
-
};
|
|
1644
1646
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1645
1647
|
"thead",
|
|
1646
1648
|
{
|
|
1647
|
-
style,
|
|
1649
|
+
style: st2,
|
|
1648
1650
|
...props,
|
|
1649
|
-
className: `${styles$p["f-table-component__table_header"]} ${isSticky ? styles$p["is-sticky"] : ""} ${props.className || ""}`,
|
|
1651
|
+
className: `${styles$p["f-table-component__table_header"]} ${isSticky ? styles$p["is-sticky"] : ""} ${props.className || ""} ${styles$p[textAlignment]}`,
|
|
1650
1652
|
children
|
|
1651
1653
|
}
|
|
1652
1654
|
);
|
|
@@ -1660,10 +1662,6 @@ const FTableBody = ({
|
|
|
1660
1662
|
visibleRowCount = void 0,
|
|
1661
1663
|
...props
|
|
1662
1664
|
}) => {
|
|
1663
|
-
const style = {
|
|
1664
|
-
textAlign: textAlignment,
|
|
1665
|
-
...st2
|
|
1666
|
-
};
|
|
1667
1665
|
const tableBodyRef = useRef(null);
|
|
1668
1666
|
const flatChildren = useMemo(() => React.Children.toArray(children), [children]);
|
|
1669
1667
|
const totalRows = flatChildren.length;
|
|
@@ -1743,7 +1741,7 @@ const FTableBody = ({
|
|
|
1743
1741
|
} else {
|
|
1744
1742
|
visibleItems = flatChildren;
|
|
1745
1743
|
}
|
|
1746
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style, ...props, className: `${styles$p["f-table-component__table_body"]} ${props.className || ""}`, children: [
|
|
1744
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style: st2, ...props, className: `${styles$p["f-table-component__table_body"]} ${props.className || ""} ${styles$p[textAlignment]}`, children: [
|
|
1747
1745
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: topOffset } }),
|
|
1748
1746
|
visibleItems.map((child, idx) => React.isValidElement(child) ? React.cloneElement(child, { "data-row-index": virtualizationEnabled ? startIdx + idx : idx, key: virtualizationEnabled ? startIdx + idx : idx }) : child),
|
|
1749
1747
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: bottomOffset } })
|
|
@@ -1821,6 +1819,7 @@ const FTable = ({
|
|
|
1821
1819
|
const FTableRow = ({
|
|
1822
1820
|
st: st2,
|
|
1823
1821
|
children,
|
|
1822
|
+
textAlignment,
|
|
1824
1823
|
...props
|
|
1825
1824
|
}) => {
|
|
1826
1825
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -1828,7 +1827,7 @@ const FTableRow = ({
|
|
|
1828
1827
|
{
|
|
1829
1828
|
style: st2,
|
|
1830
1829
|
...props,
|
|
1831
|
-
className: `${styles$p["f-table-component__table_row"]} ${props.className || ""}`,
|
|
1830
|
+
className: `${styles$p["f-table-component__table_row"]} ${props.className || ""}${textAlignment !== void 0 ? ` ${styles$p[textAlignment]}` : ""}`,
|
|
1832
1831
|
children
|
|
1833
1832
|
}
|
|
1834
1833
|
);
|
|
@@ -1838,8 +1837,8 @@ const FTableHeaderCell = ({
|
|
|
1838
1837
|
row,
|
|
1839
1838
|
col,
|
|
1840
1839
|
children,
|
|
1841
|
-
textAlignment
|
|
1842
|
-
// По умолчанию
|
|
1840
|
+
textAlignment,
|
|
1841
|
+
// По умолчанию выравнивания нет
|
|
1843
1842
|
width = "auto",
|
|
1844
1843
|
// По умолчанию ширина автоматическая
|
|
1845
1844
|
...props
|
|
@@ -1866,8 +1865,8 @@ const FTableDataCell = ({
|
|
|
1866
1865
|
row,
|
|
1867
1866
|
col,
|
|
1868
1867
|
children,
|
|
1869
|
-
textAlignment
|
|
1870
|
-
// По умолчанию
|
|
1868
|
+
textAlignment,
|
|
1869
|
+
// По умолчанию выравнивания нет
|
|
1871
1870
|
height = "auto",
|
|
1872
1871
|
// По умолчанию высота автоматическая
|
|
1873
1872
|
...props
|
|
@@ -6705,7 +6704,7 @@ const document$1 = (data, format = "A4", orientation = "vertical") => {
|
|
|
6705
6704
|
let width = 11906;
|
|
6706
6705
|
let height = 16838;
|
|
6707
6706
|
let top = 1134;
|
|
6708
|
-
let
|
|
6707
|
+
let right2 = 567;
|
|
6709
6708
|
let bottom = 1134;
|
|
6710
6709
|
let left2 = 1701;
|
|
6711
6710
|
const header = 709;
|
|
@@ -6715,7 +6714,7 @@ const document$1 = (data, format = "A4", orientation = "vertical") => {
|
|
|
6715
6714
|
width = orientation === "landscape" ? 16838 : 11906;
|
|
6716
6715
|
height = orientation === "landscape" ? 11906 : 16838;
|
|
6717
6716
|
top = orientation === "landscape" ? 1134 : 1134;
|
|
6718
|
-
|
|
6717
|
+
right2 = orientation === "landscape" ? 851 : 567;
|
|
6719
6718
|
bottom = orientation === "landscape" ? 1418 : 1134;
|
|
6720
6719
|
left2 = orientation === "landscape" ? 1701 : 1701;
|
|
6721
6720
|
break;
|
|
@@ -6723,7 +6722,7 @@ const document$1 = (data, format = "A4", orientation = "vertical") => {
|
|
|
6723
6722
|
width = orientation === "landscape" ? 23803 : 16817;
|
|
6724
6723
|
height = orientation === "landscape" ? 16817 : 23803;
|
|
6725
6724
|
top = orientation === "landscape" ? 1134 : 1134;
|
|
6726
|
-
|
|
6725
|
+
right2 = orientation === "landscape" ? 851 : 851;
|
|
6727
6726
|
bottom = orientation === "landscape" ? 1134 : 1134;
|
|
6728
6727
|
left2 = orientation === "landscape" ? 1418 : 1418;
|
|
6729
6728
|
break;
|
|
@@ -6731,7 +6730,7 @@ const document$1 = (data, format = "A4", orientation = "vertical") => {
|
|
|
6731
6730
|
width = orientation === "landscape" ? 31678 : 23803;
|
|
6732
6731
|
height = orientation === "landscape" ? 23803 : 31678;
|
|
6733
6732
|
top = orientation === "landscape" ? 1418 : 1418;
|
|
6734
|
-
|
|
6733
|
+
right2 = orientation === "landscape" ? 1134 : 1134;
|
|
6735
6734
|
bottom = orientation === "landscape" ? 1418 : 1418;
|
|
6736
6735
|
left2 = orientation === "landscape" ? 1701 : 1701;
|
|
6737
6736
|
break;
|
|
@@ -6739,12 +6738,12 @@ const document$1 = (data, format = "A4", orientation = "vertical") => {
|
|
|
6739
6738
|
width = orientation === "landscape" ? 31678 : 31678;
|
|
6740
6739
|
height = orientation === "landscape" ? 31678 : 31678;
|
|
6741
6740
|
top = orientation === "landscape" ? 1701 : 1701;
|
|
6742
|
-
|
|
6741
|
+
right2 = orientation === "landscape" ? 1701 : 1701;
|
|
6743
6742
|
bottom = orientation === "landscape" ? 1985 : 1985;
|
|
6744
6743
|
left2 = orientation === "landscape" ? 2268 : 2268;
|
|
6745
6744
|
break;
|
|
6746
6745
|
}
|
|
6747
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body>${data}<w:sectPr><w:pgSz w:w="${width}" w:h="${height}" w:orient="${orientation}"/><w:pgMar w:top="${top}" w:right="${
|
|
6746
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body>${data}<w:sectPr><w:pgSz w:w="${width}" w:h="${height}" w:orient="${orientation}"/><w:pgMar w:top="${top}" w:right="${right2}" w:bottom="${bottom}" w:left="${left2}" w:header="${header}" w:footer="${footer}" w:gutter="0"/><w:cols w:space="708"/><w:docGrid w:linePitch="360"/></w:sectPr></w:body></w:document>`;
|
|
6748
6747
|
};
|
|
6749
6748
|
const styles$1 = () => {
|
|
6750
6749
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|