@m4l/components 1.0.0 → 1.0.2

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.
Files changed (95) hide show
  1. package/components/AccountPopover/{index.efc74d5c.js → index.ec031003.js} +5 -3
  2. package/components/AppBar/{index.fc126a22.js → index.1499770b.js} +4 -4
  3. package/components/DragResizeWindow/{index.46b380e1.js → index.5e316291.js} +3 -3
  4. package/components/DynamicFilter/{index.d9168c12.js → index.05e15fb8.js} +28 -211
  5. package/components/FieldLabel/{index.f9cdcc27.js → index.400a46e0.js} +4 -4
  6. package/components/GridLayout/{index.bb3b7769.js → index.7156fbc9.js} +2 -2
  7. package/components/GridLayout/subcomponents/Griditem/{index.bb23f651.js → index.8946f18e.js} +4 -4
  8. package/components/GridLayout/subcomponents/Responsive/{index.b8a2a121.js → index.3c68f0cb.js} +2 -2
  9. package/components/GridLayout/subcomponents/SizeProvider/{index.094bc6b5.js → index.a5b2190d.js} +1 -1
  10. package/components/HamburgerMenu/{index.5997af31.js → index.d57bca4c.js} +3 -3
  11. package/components/HelperText/{index.be949cdf.js → index.651a9b4b.js} +1 -1
  12. package/components/Icon/index.2e8ec5a1.js +209 -0
  13. package/components/Image/index.0d32558e.js +168 -0
  14. package/components/LoadingError/{index.9f00c83c.js → index.d137be81.js} +5 -4
  15. package/components/MFLoader/{index.402c1acc.js → index.2038aa6c.js} +3 -3
  16. package/components/ModalDialog/{index.ea9189c3.js → index.85d30f10.js} +4 -4
  17. package/components/NavLink/{index.4e548cee.js → index.badec599.js} +2 -2
  18. package/components/NoItemSelected/{index.418c8316.js → index.008154ce.js} +2 -2
  19. package/components/ObjectLogs/{index.bfa7dad3.js → index.65a6b1bc.js} +8 -7
  20. package/components/PDFViewer/{index.bb2eca5a.js → index.9677b02a.js} +2 -2
  21. package/components/Page/index.7482cf60.js +98 -0
  22. package/components/PaperForm/{index.8121e3da.js → index.e04f9f1f.js} +2 -2
  23. package/components/Period/{index.5233694b.js → index.3d695534.js} +8 -103
  24. package/components/PrintingSystem/{index.fb176a93.js → index.89493ad6.js} +15 -14
  25. package/components/PrintingSystem/subcomponents/BodyNode/{index.c1d61038.js → index.fdd8cebb.js} +1 -1
  26. package/components/PrintingSystem/subcomponents/ChartNode/{index.18bd9bad.js → index.12293a60.js} +1 -1
  27. package/components/PrintingSystem/subcomponents/DividerNode/{index.67d9f1b4.js → index.7fdad1df.js} +1 -1
  28. package/components/PrintingSystem/subcomponents/FooterNode/{index.eaee152a.js → index.fcaf9b2f.js} +1 -1
  29. package/components/PrintingSystem/subcomponents/GridNode/{index.f5f63a2a.js → index.03148990.js} +1 -1
  30. package/components/PrintingSystem/subcomponents/HeaderNode/{index.7de4e411.js → index.691b5c38.js} +1 -1
  31. package/components/PrintingSystem/subcomponents/PaperNode/{index.f9ccf22b.js → index.3699b685.js} +1 -1
  32. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.f2f2e903.js → index.bcc87da8.js} +1 -1
  33. package/components/PrintingSystem/subcomponents/SectionNode/{index.540a4b19.js → index.659f28e5.js} +1 -1
  34. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.41e7fcb0.js → index.137ebb7a.js} +1 -1
  35. package/components/PropertyValue/{index.9572c347.js → index.e31d4282.js} +3 -3
  36. package/components/Resizeable/{index.1f0c1359.js → index.8c72e36a.js} +1 -1
  37. package/components/ScrollBar/{index.adf0eade.js → index.9bfcc74f.js} +1 -1
  38. package/components/SideBar/{index.629ba840.js → index.004a2de1.js} +7 -31
  39. package/components/SplitLayout/{index.74091a81.js → index.aed78a1f.js} +1 -1
  40. package/components/ToastContainer/{index.f9b507b9.js → index.586b1194.js} +3 -3
  41. package/components/areas/constants.630a4f42.js +293 -0
  42. package/components/areas/contexts/AreasContext/{index.bb316000.js → index.81b748ec.js} +4 -4
  43. package/components/areas/{dictionary.7e74022a.js → dictionary.19b25583.js} +26 -34
  44. package/components/areas/hooks/useAreas/{index.e24bd74d.js → index.b02d5bdc.js} +1 -1
  45. package/components/hook-form/HelperError/index.fd10c3ab.js +19 -0
  46. package/components/hook-form/RHFAutocompleteAsync/index.ea3ba7a7.js +160 -0
  47. package/components/hook-form/RHFCheckbox/index.9ac452cc.js +143 -0
  48. package/components/hook-form/RHFColorPicker/index.25e4e643.js +191 -0
  49. package/components/hook-form/RHFDateTime/index.31a0537d.js +190 -0
  50. package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +34 -0
  51. package/components/hook-form/RHFPeriod/index.c8868100.js +105 -0
  52. package/components/hook-form/RHFRadioGroup/index.11c0add8.js +35 -0
  53. package/components/hook-form/RHFSelect/index.c6c60ecc.js +29 -0
  54. package/components/hook-form/RHFTextField/index.2ae1f130.js +326 -0
  55. package/components/{Image/index.36a3d440.js → hook-form/RHFUpload/index.9eeaee0f.js} +32 -232
  56. package/components/maps/components/GpsTools/index.ef751d28.js +251 -0
  57. package/components/maps/{index.8ec46ce4.js → index.ba1ccfad.js} +21 -555
  58. package/components/modal/{WindowBase.a3ac7adc.js → WindowBase.c1e879e4.js} +4 -3
  59. package/components/modal/{WindowConfirm.e35da619.js → WindowConfirm.1a123368.js} +6 -6
  60. package/components/modal/{index.a0e30c8b.js → index.7ca17f55.js} +1 -1
  61. package/components/mui_extended/Accordion/index.391679d1.js +143 -0
  62. package/components/mui_extended/Avatar/index.3ba36655.js +63 -0
  63. package/components/mui_extended/Badge/index.3465d7fb.js +31 -0
  64. package/components/mui_extended/BoxIcon/index.d61e7ac5.js +22 -0
  65. package/components/mui_extended/Breadcrumbs/index.4a44883c.js +87 -0
  66. package/components/mui_extended/Button/index.a7dc6ef0.js +289 -0
  67. package/components/mui_extended/CheckBox/index.c5c8721c.js +76 -0
  68. package/components/mui_extended/CircularProgress/index.967e70b7.js +8 -0
  69. package/components/mui_extended/IconButton/index.87f4726c.js +120 -0
  70. package/components/{LinearProgressIndeterminate/index.de9d447c.js → mui_extended/LinearProgress/index.52edc848.js} +11 -4
  71. package/components/mui_extended/LinkWithRoute/index.288c51f3.js +15 -0
  72. package/components/{Page/index.fdf04592.js → mui_extended/Pager/index.46aec921.js} +9 -98
  73. package/components/mui_extended/Popover/index.8e5ac765.js +1041 -0
  74. package/components/mui_extended/Stack/index.fe363ca5.js +31 -0
  75. package/components/{maps/components/GpsTools/index.75880ce0.js → mui_extended/Tab/index.ad88441e.js} +674 -239
  76. package/components/mui_extended/ToggleButton/index.38ca2330.js +18 -0
  77. package/components/mui_extended/ToggleIconButton/index.7fbece74.js +24 -0
  78. package/components/mui_extended/Tooltip/index.49bb5ee1.js +40 -0
  79. package/components/mui_extended/Typography/index.2a1c68f8.js +55 -0
  80. package/components/popups/PopupsProvider/{index.18669fb4.js → index.3b43e55f.js} +1 -1
  81. package/components/popups/PopupsViewer/{index.ba354267.js → index.fb3f0c48.js} +5 -4
  82. package/contexts/ModalContext/{index.cf02e6bd.js → index.82f61407.js} +1 -1
  83. package/contexts/RHFormContext/{index.dc955a09.js → index.e942a298.js} +1 -1
  84. package/hooks/useFormAddEdit/{index.f156a2cd.js → index.fa430551.js} +2 -2
  85. package/hooks/useModal/{index.ef54bcf2.js → index.9fe41bde.js} +3 -3
  86. package/index.js +266 -239
  87. package/package.json +1 -1
  88. package/{react-draggable.5331add7.js → react-draggable.2df3b71a.js} +1 -1
  89. package/{react-resizable.37bfb965.js → react-resizable.c60f3843.js} +2 -2
  90. package/utils/{index.9ee4c99a.js → index.0660ee9c.js} +9 -62
  91. package/{vendor.a1ce6777.js → vendor.3eadfa16.js} +746 -3011
  92. package/components/Icon/index.d5fed418.js +0 -420
  93. package/components/LanguagePopover/index.e6fa2336.js +0 -184
  94. package/components/areas/constants.5387d83e.js +0 -412
  95. package/hooks/useTab/index.bce8b99e.js +0 -12
@@ -0,0 +1,76 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { generateUtilityClasses, generateUtilityClass, Skeleton, styled, Checkbox } from "@mui/material";
3
+ import clsx from "clsx";
4
+ import { useResponsiveDesktop } from "@m4l/graphics";
5
+ import { unstable_composeClasses } from "@mui/base";
6
+ import { useModuleSkeleton } from "@m4l/core";
7
+ import { forwardRef } from "react";
8
+ import { F as FieldLabel } from "../../FieldLabel/index.400a46e0.js";
9
+ const COMPONENT_CLASS_NAME = "M4LCheckBox";
10
+ generateUtilityClasses(COMPONENT_CLASS_NAME, [
11
+ "root",
12
+ "skeleton",
13
+ "small",
14
+ "medium",
15
+ "stateDisabled"
16
+ ]);
17
+ function getRHFCheckboxUtilityClass(slot) {
18
+ return generateUtilityClass(COMPONENT_CLASS_NAME, slot);
19
+ }
20
+ const useUtilityClasses = (ownerState) => {
21
+ const slots = {
22
+ root: [
23
+ "root",
24
+ ownerState.size === "small" && "small",
25
+ ownerState.size === "medium" && "medium",
26
+ ownerState.disabled && "stateDisabled"
27
+ ],
28
+ skeleton: ["skeleton"]
29
+ };
30
+ const composedClasses = unstable_composeClasses(slots, getRHFCheckboxUtilityClass, {});
31
+ return {
32
+ ...composedClasses
33
+ };
34
+ };
35
+ const SkeletonCheckBox = (props) => {
36
+ const { classes } = props;
37
+ return /* @__PURE__ */ jsx("div", { className: classes.skeleton, children: /* @__PURE__ */ jsx(Skeleton, { variant: "rounded", width: "18px", height: "18px" }) });
38
+ };
39
+ const CheckBoxRoot = styled("div")(({ theme }) => ({
40
+ ...theme.components?.M4LCheckBox?.styleOverrides
41
+ }));
42
+ const CheckBox = forwardRef((props, ref) => {
43
+ const {
44
+ className,
45
+ size = "small",
46
+ disabled,
47
+ label,
48
+ mandatory,
49
+ mandatoryMessage,
50
+ helperMessage,
51
+ htmlFor
52
+ } = props;
53
+ const isDesktop = useResponsiveDesktop();
54
+ const isSkeleton = useModuleSkeleton();
55
+ const ownerState = {
56
+ size: !isDesktop ? "medium" : size,
57
+ disabled
58
+ };
59
+ const classes = useUtilityClasses(ownerState);
60
+ return /* @__PURE__ */ jsxs(CheckBoxRoot, { className: clsx(classes.root, className), ref, children: [
61
+ !isSkeleton ? /* @__PURE__ */ jsx(Checkbox, { id: htmlFor, ...props }) : /* @__PURE__ */ jsx(SkeletonCheckBox, { classes }),
62
+ label && /* @__PURE__ */ jsx(
63
+ FieldLabel,
64
+ {
65
+ label,
66
+ mandatory,
67
+ mandatoryMessage,
68
+ helperMessage,
69
+ htmlFor
70
+ }
71
+ )
72
+ ] });
73
+ });
74
+ export {
75
+ CheckBox as C
76
+ };
@@ -0,0 +1,8 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { CircularProgress as CircularProgress$1 } from "@mui/material";
3
+ const CircularProgress = (props) => {
4
+ return /* @__PURE__ */ jsx(CircularProgress$1, { ...props });
5
+ };
6
+ export {
7
+ CircularProgress as C
8
+ };
@@ -0,0 +1,120 @@
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { useMemo, useState } from "react";
3
+ import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
4
+ import { Skeleton, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
5
+ import { I as Icon } from "../../Icon/index.2e8ec5a1.js";
6
+ import { styled } from "@mui/material/styles";
7
+ import { unstable_composeClasses } from "@mui/base";
8
+ import clsx from "clsx";
9
+ import { useResponsiveDesktop } from "@m4l/graphics";
10
+ const SkeletonIconButton = (props) => {
11
+ const { classes } = props;
12
+ return /* @__PURE__ */ jsx(
13
+ Skeleton,
14
+ {
15
+ variant: "rectangular",
16
+ className: classes.skeleton,
17
+ "data-testid": "SkeletonIconButton"
18
+ }
19
+ );
20
+ };
21
+ const IconButtonRoot = styled("div")(({ theme }) => ({
22
+ ...theme.components?.M4LIconButton?.styleOverrides
23
+ }));
24
+ const componentName = "M4LIconButton";
25
+ const iconButtonClasses = generateUtilityClasses(componentName, [
26
+ "root",
27
+ "skeleton",
28
+ "sizemSall",
29
+ "sizeMedium",
30
+ "variantPrimary",
31
+ "variantSecondary",
32
+ "variantLine",
33
+ "isFocus",
34
+ "isDisabled",
35
+ "togglePressed",
36
+ "toggleNotPressed"
37
+ ]);
38
+ function getIconButtonUtilityClass(slot) {
39
+ return generateUtilityClass(componentName, slot);
40
+ }
41
+ const useUtilityClasses = (ownerState) => {
42
+ const slots = {
43
+ root: [
44
+ "root",
45
+ ownerState.size === "small" && "sizeSmall",
46
+ ownerState.size === "medium" && "sizeMedium",
47
+ ownerState.variant === "primary" && ownerState.isSkeleton !== true && "variantPrimary",
48
+ ownerState.variant === "secondary" && ownerState.isSkeleton !== true && "variantSecondary",
49
+ ownerState.variant === "line" && ownerState.isSkeleton !== true && "variantLine",
50
+ ownerState.isFocus && !ownerState.isDisabled && "isFocus",
51
+ ownerState.isDisabled && "isDisabled"
52
+ ],
53
+ skeleton: ["skeleton"]
54
+ };
55
+ const composedClasses = unstable_composeClasses(slots, getIconButtonUtilityClass, {});
56
+ return {
57
+ ...composedClasses
58
+ };
59
+ };
60
+ const IconButton = (props) => {
61
+ const {
62
+ src,
63
+ tooltip,
64
+ size = "small",
65
+ dictionaryTooltipId,
66
+ rotationAngle,
67
+ variant = "line",
68
+ disabled,
69
+ className,
70
+ onClick,
71
+ ...other
72
+ } = props;
73
+ const { getLabel } = useModuleDictionary();
74
+ const isDesktop = useResponsiveDesktop();
75
+ const isSkeleton = useModuleSkeleton();
76
+ const finalTooltip = useMemo(() => {
77
+ if (disabled) {
78
+ return void 0;
79
+ }
80
+ if (tooltip && tooltip !== "") {
81
+ return tooltip;
82
+ }
83
+ if (dictionaryTooltipId && getLabel) {
84
+ return getLabel(dictionaryTooltipId);
85
+ }
86
+ return void 0;
87
+ }, [tooltip, dictionaryTooltipId, getLabel, disabled]);
88
+ const [isfocus] = useState(false);
89
+ const ownerState = {
90
+ variant,
91
+ size: isDesktop ? size : "medium",
92
+ isSkeleton,
93
+ isFocus: disabled ? false : isfocus,
94
+ isDisabled: disabled
95
+ };
96
+ const classes = useUtilityClasses(ownerState);
97
+ return /* @__PURE__ */ jsx(IconButtonRoot, { className: clsx(classes.root, className), "data-testid": "IconButtonRoot", children: !isSkeleton ? /* @__PURE__ */ jsx(Fragment, { children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip, { title: finalTooltip || "", children: /* @__PURE__ */ jsx(
98
+ IconButton$1,
99
+ {
100
+ ...other,
101
+ onClick,
102
+ disableRipple: true,
103
+ disabled,
104
+ children: /* @__PURE__ */ jsx(Icon, { src, size })
105
+ }
106
+ ) }) : /* @__PURE__ */ jsx(
107
+ IconButton$1,
108
+ {
109
+ ...other,
110
+ onClick,
111
+ disableRipple: true,
112
+ disabled,
113
+ children: /* @__PURE__ */ jsx(Icon, { src, size: isDesktop ? size : "medium", rotationAngle })
114
+ }
115
+ ) }) : /* @__PURE__ */ jsx(SkeletonIconButton, { classes }) });
116
+ };
117
+ export {
118
+ IconButton as I,
119
+ iconButtonClasses as i
120
+ };
@@ -1,9 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { LinearProgress as LinearProgress$1, generateUtilityClasses, styled } from "@mui/material";
2
3
  import clsx from "clsx";
3
- import { generateUtilityClasses, styled } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { G as LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME, J as ICON_PREFIX, T as TEST_PROP_ID } from "../areas/constants.5387d83e.js";
6
- import { g as getComponentUtilityClass } from "../../utils/index.9ee4c99a.js";
5
+ import { g as getComponentUtilityClass } from "../../../utils/index.0660ee9c.js";
6
+ import { T as TEST_PROP_ID } from "../../areas/constants.630a4f42.js";
7
+ const LinearProgress = (props) => {
8
+ const { ...other } = props;
9
+ return /* @__PURE__ */ jsx(LinearProgress$1, { ...other });
10
+ };
11
+ const LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME = "M4LinearProgressIndeterminate";
7
12
  generateUtilityClasses(
8
13
  LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME,
9
14
  [
@@ -26,6 +31,7 @@ const useLinearProgressIndeterminateUtilityClasses = () => {
26
31
  const LinearProgressIndeterminateRoot = styled("div")(({ theme }) => ({
27
32
  ...theme.components?.M4LinearProgressIndeterminate?.styleOverrides
28
33
  }));
34
+ const ICON_PREFIX = "M4LinearProgressIndeterminate";
29
35
  const getNameLinearProgressIndeterminateDataTestId = (KEY) => {
30
36
  return `${ICON_PREFIX}-${KEY}`;
31
37
  };
@@ -49,5 +55,6 @@ const LinearProgressIndeterminate = () => {
49
55
  );
50
56
  };
51
57
  export {
52
- LinearProgressIndeterminate as L
58
+ LinearProgressIndeterminate as L,
59
+ LinearProgress as a
53
60
  };
@@ -0,0 +1,15 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Link as Link$1 } from "react-router-dom";
3
+ import { Skeleton, Link } from "@mui/material";
4
+ import { useModuleSkeleton } from "@m4l/core";
5
+ const LinkWithRoute = (props) => {
6
+ const { to, children, skeletonWidth = "100%", skeletonHeight = "14px", ...other } = props;
7
+ const isSkeleton = useModuleSkeleton();
8
+ if (isSkeleton) {
9
+ return /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletonHeight });
10
+ }
11
+ return /* @__PURE__ */ jsx(Link, { component: Link$1, to, ...other, children });
12
+ };
13
+ export {
14
+ LinkWithRoute as L
15
+ };
@@ -1,20 +1,20 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import React__default, { useMemo } from "react";
2
+ import { useMemo } from "react";
3
3
  import { styled } from "@mui/material/styles";
4
4
  import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
- import { U as componentName } from "../areas/constants.5387d83e.js";
7
- import { a as IconButton, I as Icon } from "../Icon/index.d5fed418.js";
8
- import { useEnvironment, useBase, BaseProvider, useModuleSkeleton } from "@m4l/core";
9
- import { useResponsiveContainerStore, useLocales } from "@m4l/graphics";
6
+ import { I as IconButton } from "../IconButton/index.87f4726c.js";
7
+ import { useEnvironment, useBase } from "@m4l/core";
8
+ import { useResponsiveContainerStore } from "@m4l/graphics";
10
9
  import { shallow } from "zustand/shallow";
11
- import { T as Typography } from "../../vendor.a1ce6777.js";
12
- import { c as classes, g as getSize, F as FactoryRender } from "../PrintingSystem/index.fb176a93.js";
10
+ import { T as Typography } from "../Typography/index.2a1c68f8.js";
11
+ import { I as Icon } from "../../Icon/index.2e8ec5a1.js";
12
+ import { c as classes } from "../../PrintingSystem/index.89493ad6.js";
13
13
  import clsx from "clsx";
14
- import { Helmet } from "react-helmet-async";
15
14
  const PagerRoot = styled("div")(({ theme }) => ({
16
15
  ...theme.components?.M4LPager?.styleOverrides
17
16
  }));
17
+ const componentName = "M4LPager";
18
18
  generateUtilityClasses(componentName, [
19
19
  "root",
20
20
  "labelRowsPerPageContainer",
@@ -268,97 +268,8 @@ const PagerNode = (props) => {
268
268
  }
269
269
  );
270
270
  };
271
- const PageNode = (props) => {
272
- const {
273
- children,
274
- style = {},
275
- className = "",
276
- width = "auto",
277
- height = "auto",
278
- paddingTop = "unset",
279
- paddingRight = "unset",
280
- paddingBottom = "unset",
281
- paddingLeft = "unset",
282
- gap = "unset"
283
- } = props;
284
- const { unitSize } = useBase();
285
- return /* @__PURE__ */ jsx(
286
- "div",
287
- {
288
- className: clsx(classes.pageNodeRoot, className),
289
- style: {
290
- width: getSize(width, unitSize),
291
- gap: getSize(gap, unitSize),
292
- height: getSize(height, unitSize),
293
- minWidth: getSize(width, unitSize),
294
- minHeight: typeof height === "number" ? `${height}${unitSize}` : height,
295
- paddingTop: typeof paddingTop === "number" ? `${paddingTop}${unitSize}` : paddingTop,
296
- paddingRight: typeof paddingRight === "number" ? `${paddingRight}${unitSize}` : paddingRight,
297
- paddingBottom: typeof paddingBottom === "number" ? `${paddingBottom}${unitSize}` : paddingBottom,
298
- paddingLeft: typeof paddingLeft === "number" ? `${paddingLeft}${unitSize}` : paddingLeft,
299
- ...style
300
- },
301
- children
302
- }
303
- );
304
- };
305
- const PageRender = (props) => {
306
- const {
307
- data: parent,
308
- id,
309
- unitSize,
310
- mainColor,
311
- countPages,
312
- HeaderGeneral,
313
- FooterGeneral,
314
- sourceData,
315
- templateData
316
- } = props;
317
- const { children, ...otherProps } = parent || {};
318
- return /* @__PURE__ */ jsx(
319
- BaseProvider,
320
- {
321
- value: {
322
- pageId: id,
323
- unitSize,
324
- mainColor,
325
- countPages,
326
- HeaderGeneral,
327
- FooterGeneral,
328
- templateData,
329
- sourceData
330
- },
331
- children: /* @__PURE__ */ jsxs(PageNode, { ...otherProps, children: [
332
- Array.isArray(children) && children.length > 0 ? children.map((subComponent, id2) => {
333
- return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
334
- id2 === 0 && parent.type === "page" && children[0].type !== "header" ? HeaderGeneral ? /* @__PURE__ */ jsx(HeaderGeneral, { ancestor: parent }, `${parent.key}-header`) : null : null,
335
- /* @__PURE__ */ jsx(FactoryRender, { data: subComponent }, `${parent.type}-${subComponent.key}`),
336
- id2 === children.length - 1 && parent.type === "page" && children[children.length - 1].type !== "footer" ? FooterGeneral ? /* @__PURE__ */ jsx(FooterGeneral, { ancestor: parent }, `${parent.key}-footer`) : null : null
337
- ] }, `fragment-page-${id2}`);
338
- }) : null,
339
- typeof children === "string" ? children : null
340
- ] })
341
- }
342
- );
343
- };
344
- const HelmetPage = (props) => {
345
- const { children, title, meta, subtitle } = props;
346
- const localeString = useLocales().currentLocale?.localeString;
347
- const isSkeleton = useModuleSkeleton();
348
- return /* @__PURE__ */ jsxs(Fragment, { children: [
349
- !isSkeleton && /* @__PURE__ */ jsxs(Helmet, { children: [
350
- /* @__PURE__ */ jsx("title", { children: `${title}${subtitle ? ` | ${subtitle}` : ""} ` }),
351
- /* @__PURE__ */ jsx("html", { lang: localeString }),
352
- meta
353
- ] }),
354
- children
355
- ] });
356
- };
357
- HelmetPage.displayName = "Page";
358
271
  export {
359
- HelmetPage as H,
360
272
  PagerNode as P,
361
- PageRender as a,
362
- Pager as b,
273
+ Pager as a,
363
274
  getPagerComponentsDictionary as g
364
275
  };