@m4l/components 0.1.93 → 0.1.95
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/components/AccountPopover/{index.2ef0bf6d.js → index.3711d526.js} +1 -1
- package/components/AppBar/{index.16fe42a1.js → index.512042a9.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c3e23ad4.js → index.bb383946.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.6da52418.js → index.97ecdeef.js} +2 -2
- package/components/CommonActions/components/ActionFormIntro/{index.c3af6d1d.js → index.3deddb07.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.49631fcb.js → index.4bc5780e.js} +1 -1
- package/components/DataGrid/{index.abedf2c0.js → index.47a152d0.js} +5 -5
- package/components/DataGrid/subcomponents/Actions/{index.c8408b73.js → index.8d9feca6.js} +7 -7
- package/components/DynamicFilter/{index.cb1402aa.js → index.a50a1483.js} +9 -9
- package/components/GridLayout/{index.1421f0d4.js → index.4a245d9e.js} +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.b2342897.js → index.ea745285.js} +2 -2
- package/components/GridLayout/subcomponents/Responsive/{index.f459804c.js → index.edb59c22.js} +2 -2
- package/components/Icon/{index.3211023d.js → index.11a7a77c.js} +1 -1
- package/components/Image/{index.611cd930.js → index.9799dfc0.js} +1 -1
- package/components/LanguagePopover/{index.b6dc03d0.js → index.087b430d.js} +2 -2
- package/components/LoadingError/{index.96bdc803.js → index.08cf9728.js} +2 -2
- package/components/MFLoader/{index.caee87dd.js → index.4b531d2d.js} +1 -1
- package/components/NoItemSelected/{index.3e29c208.js → index.8a2a13f8.js} +1 -1
- package/components/ObjectLogs/{index.38fd657f.js → index.55b5c933.js} +4 -4
- package/components/Page/{index.c4642a29.js → index.49d18c85.js} +1 -1
- package/components/PaperForm/{index.cce9ed39.js → index.a2b69977.js} +1 -1
- package/components/Period/{index.c35c6a6c.js → index.8cccbb4b.js} +1 -1
- package/components/PrintingSystem/index.d1fd7818.js +223 -0
- package/components/PrintingSystem/subcomponents/BodyNode/index.f6410daa.js +48 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.6b30abe0.js +91 -0
- package/components/PrintingSystem/subcomponents/DividerNode/index.dcac3bc0.js +19 -0
- package/components/PrintingSystem/subcomponents/FooterNode/index.dd21921e.js +48 -0
- package/components/PrintingSystem/subcomponents/GridNode/index.eb5ebe06.js +73 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/index.48e8769c.js +48 -0
- package/components/PrintingSystem/subcomponents/PaperNode/index.ccec72dc.js +46 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.807e0343.js +43 -0
- package/components/PrintingSystem/subcomponents/SectionNode/index.622df623.js +48 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.f06ac3d5.js +28 -0
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/PropertyValue/{index.3ee95452.js → index.4ae0bb21.js} +1 -1
- package/components/SideBar/{index.5fd648d2.js → index.ce301edd.js} +3 -3
- package/components/areas/components/AreasAdmin/{index.ddb384a1.js → index.3c182644.js} +8 -8
- package/components/areas/components/AreasViewer/{index.625bf23b.js → index.a0a969e7.js} +10 -10
- package/components/areas/contexts/AreasContext/{index.646f3c8f.js → index.d43aceaf.js} +4 -4
- package/components/areas/hooks/useAreas/{index.ee66240b.js → index.6a1d525c.js} +1 -1
- package/components/formatters/BooleanFormatter/{index.3c2df7a8.js → index.00596be3.js} +3 -10
- package/components/formatters/dictionary.d.ts +0 -1
- package/components/formatters/{index.dc77adb7.js → index.1906141f.js} +1 -11
- package/components/hook-form/RHFAutocomplete/{index.52387f0f.js → index.a5f1034a.js} +2 -2
- package/components/hook-form/RHFAutocompleteAsync/{index.638bd2ae.js → index.047ff594.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.66e334b0.js → index.a273293c.js} +1 -1
- package/components/hook-form/RHFPeriod/{index.23099265.js → index.53827a17.js} +1 -1
- package/components/hook-form/RHFTextField/{index.25b3627e.js → index.5801338a.js} +1 -1
- package/components/hook-form/RHFUpload/{index.65588e08.js → index.f04df1c9.js} +2 -2
- package/components/modal/{WindowBase.161ec78a.js → WindowBase.beb2fb3e.js} +2 -2
- package/components/modal/{WindowConfirm.7eed7c35.js → WindowConfirm.477e6f63.js} +4 -4
- package/components/mui_extended/Accordion/{index.92aae1a4.js → index.08ff7e2f.js} +3 -3
- package/components/mui_extended/Button/{index.94fec33c.js → index.857c2dfe.js} +1 -1
- package/components/mui_extended/IconButton/{index.53cd6388.js → index.5499ffdb.js} +1 -1
- package/components/mui_extended/MenuActions/{index.dd9f65a2.js → index.d8d0c00e.js} +2 -2
- package/components/mui_extended/Pager/{index.de0bd62c.js → index.47343062.js} +1 -1
- package/components/mui_extended/Tab/{index.1fcabba2.js → index.2f9a6815.js} +1 -1
- package/contexts/RHFormContext/classes/index.d.ts +1 -1
- package/hooks/useFormAddEdit/{index.3584a29f.js → index.b9ccd95f.js} +1 -1
- package/index.js +69 -58
- package/package.json +1 -1
- package/{vendor.71883626.js → vendor.6019bf6e.js} +43 -43
- package/components/PrintingSystem/index.e18a2fa8.js +0 -634
- package/node_modules.b55d04d9.js +0 -15267
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
8
8
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
9
9
|
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
10
|
-
import { I as Icon } from "../Icon/index.
|
|
10
|
+
import { I as Icon } from "../Icon/index.11a7a77c.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
const componentName = "M4LAccountPopover";
|
|
13
13
|
generateUtilityClasses(componentName, [
|
|
@@ -5,7 +5,7 @@ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
8
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.5499ffdb.js";
|
|
9
9
|
const AppBarRoot = styled("header")(({
|
|
10
10
|
theme
|
|
11
11
|
}) => ({
|
package/components/CommonActions/components/ActionCancel/{index.c3e23ad4.js → index.bb383946.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.857c2dfe.js";
|
|
3
3
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
package/components/CommonActions/components/ActionFormCancel/{index.6da52418.js → index.97ecdeef.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
4
|
+
import { B as Button } from "../../../mui_extended/Button/index.857c2dfe.js";
|
|
5
5
|
import { useCallback, useEffect } from "react";
|
|
6
6
|
import { u as useModal } from "../../../../hooks/useModal/index.05d1821e.js";
|
|
7
7
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
10
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
10
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.477e6f63.js";
|
|
11
11
|
function ActionFormCancel() {
|
|
12
12
|
const {
|
|
13
13
|
getLabel
|
package/components/CommonActions/components/ActionFormIntro/{index.c3af6d1d.js → index.3deddb07.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.
|
|
4
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.857c2dfe.js";
|
|
5
5
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
package/components/CommonActions/components/ActionIntro/{index.49631fcb.js → index.4bc5780e.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.857c2dfe.js";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.ec55087e.js";
|
|
2
|
-
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.47343062.js";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
5
5
|
import { S as SELECT_COLUMN_KEY, u as useRowSelection, a as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.d46d625e.js";
|
|
@@ -8,13 +8,13 @@ import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
8
8
|
import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
11
|
-
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.
|
|
11
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.8d9feca6.js";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
14
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
15
|
-
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.
|
|
14
|
+
import { g as getNameDataTestId } from "../../vendor.6019bf6e.js";
|
|
15
|
+
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.00596be3.js";
|
|
16
16
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
17
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.
|
|
17
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.1906141f.js";
|
|
18
18
|
const DataGridRoot = styled("div")(({
|
|
19
19
|
theme
|
|
20
20
|
}) => ({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
2
|
-
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.
|
|
1
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.d8d0c00e.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.47a152d0.js";
|
|
3
3
|
import { useTheme, Checkbox, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
6
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
5
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.47343062.js";
|
|
6
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.5499ffdb.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
8
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
9
9
|
import { D as DataGrid$1 } from "../../../../react-data-grid.d46d625e.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
11
|
import { u as useModal } from "../../../../hooks/useModal/index.05d1821e.js";
|
|
12
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
13
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.bb383946.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.4bc5780e.js";
|
|
14
14
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
15
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.beb2fb3e.js";
|
|
16
16
|
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.ccf731c1.js";
|
|
17
17
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
18
18
|
function ActionsFormatter(props) {
|
|
@@ -8,25 +8,25 @@ import { devtools } from "zustand/middleware";
|
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
10
|
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.ccf731c1.js";
|
|
11
|
-
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
12
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
11
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.a5f1034a.js";
|
|
12
|
+
import { g as getNameDataTestId } from "../../vendor.6019bf6e.js";
|
|
13
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
15
|
import { shallow } from "zustand/shallow";
|
|
16
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
17
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
16
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.a273293c.js";
|
|
17
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.5801338a.js";
|
|
18
18
|
import * as Yup from "yup";
|
|
19
19
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
20
20
|
import { styled, useTheme } from "@mui/material/styles";
|
|
21
21
|
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
22
22
|
import clsx from "clsx";
|
|
23
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
24
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
23
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.5499ffdb.js";
|
|
24
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.d8d0c00e.js";
|
|
25
25
|
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
26
|
-
import { I as Icon } from "../Icon/index.
|
|
26
|
+
import { I as Icon } from "../Icon/index.11a7a77c.js";
|
|
27
27
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
28
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
29
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
28
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.bb383946.js";
|
|
29
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.4bc5780e.js";
|
|
30
30
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
31
31
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
32
32
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.ea745285.js";
|
|
4
4
|
import { styled, alpha } from "@mui/material/styles";
|
|
5
5
|
import { r as react_resizable_css } from "../../react-resizable.c07d63fb.js";
|
|
6
6
|
import { generateUtilityClasses } from "@mui/material";
|
package/components/GridLayout/subcomponents/Griditem/{index.b2342897.js → index.ea745285.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
2
|
import { D as DraggableCore_1 } from "../../../../react-draggable.e4725f3a.js";
|
|
3
3
|
import { R as Resizable } from "../../../../react-resizable.c07d63fb.js";
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.4a245d9e.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { deepEqual } from "fast-equals";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
8
8
|
function GridItem(props) {
|
|
9
9
|
const {
|
package/components/GridLayout/subcomponents/Responsive/{index.f459804c.js → index.edb59c22.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.4a245d9e.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
|
-
import {
|
|
4
|
+
import { deepEqual } from "fast-equals";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
function getBreakpointFromWidth(breakpoints, width) {
|
|
7
7
|
const sorted = sortBreakpoints(breakpoints);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
3
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.ce301edd.js";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { useState, useEffect } from "react";
|
|
@@ -5,7 +5,7 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { styled, Skeleton as Skeleton$1, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { g as getEvalValue, c as classes, a as getSize } from "../PrintingSystem/index.
|
|
8
|
+
import { g as getEvalValue, c as classes, a as getSize } from "../PrintingSystem/index.d1fd7818.js";
|
|
9
9
|
function isIntersectionObserverAvailable() {
|
|
10
10
|
return typeof window !== "undefined" && "IntersectionObserver" in window && "IntersectionObserverEntry" in window;
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.9799dfc0.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
|
-
import { I as ImageButton } from "../mui_extended/Button/index.
|
|
5
|
+
import { I as ImageButton } from "../mui_extended/Button/index.857c2dfe.js";
|
|
6
6
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
@@ -4,9 +4,9 @@ import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/mater
|
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { L as LinearProgressIndeterminate } from "../LinearProgressIndeterminate/index.c46da124.js";
|
|
7
|
-
import { I as Icon } from "../Icon/index.
|
|
7
|
+
import { I as Icon } from "../Icon/index.11a7a77c.js";
|
|
8
8
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
9
|
-
import { B as Button } from "../mui_extended/Button/index.
|
|
9
|
+
import { B as Button } from "../mui_extended/Button/index.857c2dfe.js";
|
|
10
10
|
const componentName = "M4LoadingError";
|
|
11
11
|
generateUtilityClasses(componentName, [
|
|
12
12
|
"root",
|
|
@@ -12,7 +12,7 @@ import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/mater
|
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { L as LinearProgress } from "../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
15
|
-
import { L as LoadingError } from "../LoadingError/index.
|
|
15
|
+
import { L as LoadingError } from "../LoadingError/index.08cf9728.js";
|
|
16
16
|
const componentName = "M4LMFLoader";
|
|
17
17
|
const mfLoaderClasses = generateUtilityClasses(componentName, [
|
|
18
18
|
"root",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.9799dfc0.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { c as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { c as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.47a152d0.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -9,10 +9,10 @@ import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
|
9
9
|
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { u as useModal } from "../../hooks/useModal/index.05d1821e.js";
|
|
12
|
-
import { I as Icon } from "../Icon/index.
|
|
12
|
+
import { I as Icon } from "../Icon/index.11a7a77c.js";
|
|
13
13
|
import { S as Stack } from "../mui_extended/Stack/index.0e53197c.js";
|
|
14
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
15
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
14
|
+
import { W as WindowBase } from "../modal/WindowBase.beb2fb3e.js";
|
|
15
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.a50a1483.js";
|
|
16
16
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
17
17
|
const Container = styled("div")(() => ({
|
|
18
18
|
height: "100%",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase, BaseProvider, useModuleSkeleton } from "@m4l/core";
|
|
2
|
-
import { c as classes, a as getSize, F as FactoryRender } from "../PrintingSystem/index.
|
|
2
|
+
import { c as classes, a as getSize, F as FactoryRender } from "../PrintingSystem/index.d1fd7818.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
5
|
import React__default from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.11a7a77c.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
const PaperFormRoot = styled("div")(({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Autocomplete, TextField, Skeleton } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.11a7a77c.js";
|
|
5
5
|
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.ccf731c1.js";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { getPropertyByString } from "@m4l/core";
|
|
2
|
+
import { generateUtilityClasses } from "@mui/material";
|
|
3
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../utils/index.6469f148.js";
|
|
5
|
+
import { styled, useTheme } from "@mui/material/styles";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { D as DividerNode } from "./subcomponents/DividerNode/index.dcac3bc0.js";
|
|
8
|
+
import { S as SectionNode } from "./subcomponents/SectionNode/index.622df623.js";
|
|
9
|
+
import { T as TextBoxNode } from "./subcomponents/TextBoxNode/index.f06ac3d5.js";
|
|
10
|
+
import { H as HeaderNode } from "./subcomponents/HeaderNode/index.48e8769c.js";
|
|
11
|
+
import { a as ImageNode } from "../Image/index.9799dfc0.js";
|
|
12
|
+
import { B as BodyNode } from "./subcomponents/BodyNode/index.f6410daa.js";
|
|
13
|
+
import { F as FooterNode } from "./subcomponents/FooterNode/index.dd21921e.js";
|
|
14
|
+
import { P as PaperNode } from "./subcomponents/PaperNode/index.ccec72dc.js";
|
|
15
|
+
import { P as PropertyValueNode } from "./subcomponents/PropertyValueNode/index.807e0343.js";
|
|
16
|
+
import { G as GridNode } from "./subcomponents/GridNode/index.eb5ebe06.js";
|
|
17
|
+
import { C as ChartNode } from "./subcomponents/ChartNode/index.6b30abe0.js";
|
|
18
|
+
import { P as PagerNode, a as PageRender } from "../Page/index.49d18c85.js";
|
|
19
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
20
|
+
import { forwardRef, useRef, useImperativeHandle } from "react";
|
|
21
|
+
const componentName = "M4LPrintingSystem";
|
|
22
|
+
const classes = generateUtilityClasses(componentName, [
|
|
23
|
+
"root",
|
|
24
|
+
"pageNodeRoot",
|
|
25
|
+
"sectionNodeRoot",
|
|
26
|
+
"dividerNodeRoot",
|
|
27
|
+
"dividerNodeVertical",
|
|
28
|
+
"dividerNodeHorizontal",
|
|
29
|
+
"textBoxNodeVariant",
|
|
30
|
+
"textBoxNodeRoot",
|
|
31
|
+
"headerNodeRoot",
|
|
32
|
+
"imageNodeRoot",
|
|
33
|
+
"paperNodeRoot",
|
|
34
|
+
"paperNodeTitle",
|
|
35
|
+
"paperNodeContent",
|
|
36
|
+
"propertyValueNodeRoot",
|
|
37
|
+
"propertyValueNodeTitle",
|
|
38
|
+
"propertyValueNodeContent",
|
|
39
|
+
"propertyValueNodeHorizontal",
|
|
40
|
+
"propertyValueNodeVertical",
|
|
41
|
+
"gridNodeRoot",
|
|
42
|
+
"footerNodeRoot",
|
|
43
|
+
"bodyNodeRoot",
|
|
44
|
+
"paperNodeContainerTitles",
|
|
45
|
+
"paperNodeTitleSecondary",
|
|
46
|
+
"pagerNodeRoot",
|
|
47
|
+
"gridNodeTh",
|
|
48
|
+
"gridNodeTr",
|
|
49
|
+
"gridNodeTd",
|
|
50
|
+
"chartNodeRoot"
|
|
51
|
+
]);
|
|
52
|
+
const printingSystemUtilityClasses = () => {
|
|
53
|
+
const slots = {
|
|
54
|
+
root: ["root"],
|
|
55
|
+
pageNodeRoot: ["pageNodeRoot"],
|
|
56
|
+
sectionNodeRoot: ["sectionNodeRoot"],
|
|
57
|
+
dividerNodeRoot: ["dividerNodeRoot"],
|
|
58
|
+
dividerNodeVertical: ["dividerNodeVertical"],
|
|
59
|
+
dividerNodeHorizontal: ["dividerNodeHorizontal"],
|
|
60
|
+
textBoxNodeVariant: ["textBoxNodeVariant"],
|
|
61
|
+
textBoxNodeRoot: ["textBoxNodeRoot"],
|
|
62
|
+
headerNodeRoot: ["headerNodeRoot"],
|
|
63
|
+
imageNodeRoot: ["imageNodeRoot"],
|
|
64
|
+
paperNodeRoot: ["paperNodeRoot"],
|
|
65
|
+
paperNodeTitle: ["paperNodeTitle"],
|
|
66
|
+
paperNodeContent: ["paperNodeContent"],
|
|
67
|
+
propertyValueNodeRoot: ["propertyValueNodeRoot"],
|
|
68
|
+
propertyValueNodeTitle: ["propertyValueNodeTitle"],
|
|
69
|
+
propertyValueNodeContent: ["propertyValueNodeContent"],
|
|
70
|
+
propertyValueNodeHorizontal: ["propertyValueNodeHorizontal"],
|
|
71
|
+
propertyValueNodeVertical: ["propertyValueNodeVertical"],
|
|
72
|
+
gridNodeRoot: ["gridNodeRoot"],
|
|
73
|
+
footerNodeRoot: ["footerNodeRoot"],
|
|
74
|
+
bodyNodeRoot: ["bodyNodeRoot"],
|
|
75
|
+
paperNodeContainerTitles: ["paperNodeContainerTitles"],
|
|
76
|
+
paperNodeTitleSecondary: ["paperNodeTitleSecondary"],
|
|
77
|
+
pagerNodeRoot: ["pagerNodeRoot"],
|
|
78
|
+
gridNodeTh: ["gridNodeTh"],
|
|
79
|
+
gridNodeTr: ["gridNodeTr"],
|
|
80
|
+
gridNodeTd: ["gridNodeTd"],
|
|
81
|
+
chartNodeRoot: ["chartNodeRoot"]
|
|
82
|
+
};
|
|
83
|
+
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
84
|
+
return {
|
|
85
|
+
...composedClasses
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
const PrintingSystemRoot = styled("div")(({
|
|
89
|
+
theme
|
|
90
|
+
}) => ({
|
|
91
|
+
...theme.components?.M4LPrintingSystem?.styleOverrides
|
|
92
|
+
}));
|
|
93
|
+
const getSize = (value, unitSize) => {
|
|
94
|
+
if (typeof value === "number") {
|
|
95
|
+
return `${value}${unitSize}`;
|
|
96
|
+
} else {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const getEvalValue = (sourceData, key) => {
|
|
101
|
+
const regexPattern = /\${([^${}]+(?:\${[^{}]*}[^${}]*)*)}/g;
|
|
102
|
+
if (regexPattern.test(key)) {
|
|
103
|
+
const matches = [];
|
|
104
|
+
let match;
|
|
105
|
+
let localRegex = new RegExp(regexPattern);
|
|
106
|
+
while ((match = localRegex.exec(key)) !== null) {
|
|
107
|
+
matches.push(match[1]);
|
|
108
|
+
}
|
|
109
|
+
const finalValue = new Array();
|
|
110
|
+
matches.map((findMatch) => {
|
|
111
|
+
const nestedRegex = /\${([^${}]+(?:\${[^{}]*}[^${}]*)*)}/g;
|
|
112
|
+
if (nestedRegex.test(findMatch)) {
|
|
113
|
+
const regexKeyReady = /([^ ${]+)/;
|
|
114
|
+
let matchKeyReady = regexKeyReady.exec(findMatch) || "";
|
|
115
|
+
let nestedKey = findMatch.match(regexPattern) || "";
|
|
116
|
+
finalValue.push(getPropertyByString(sourceData, matchKeyReady[1]));
|
|
117
|
+
finalValue.push(getEvalValue(sourceData, nestedKey[0]));
|
|
118
|
+
} else {
|
|
119
|
+
finalValue.push(getPropertyByString(sourceData, findMatch));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return finalValue.join(" ");
|
|
123
|
+
} else {
|
|
124
|
+
return key;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const FactoryRender = (props) => {
|
|
128
|
+
const {
|
|
129
|
+
data: parent
|
|
130
|
+
} = props;
|
|
131
|
+
const {
|
|
132
|
+
children,
|
|
133
|
+
...otherProps
|
|
134
|
+
} = parent || {};
|
|
135
|
+
const strategiesComponents = {
|
|
136
|
+
section: SectionNode,
|
|
137
|
+
textBox: TextBoxNode,
|
|
138
|
+
divider: DividerNode,
|
|
139
|
+
image: ImageNode,
|
|
140
|
+
header: HeaderNode,
|
|
141
|
+
body: BodyNode,
|
|
142
|
+
footer: FooterNode,
|
|
143
|
+
paper: PaperNode,
|
|
144
|
+
propertyValue: PropertyValueNode,
|
|
145
|
+
grid: GridNode,
|
|
146
|
+
chart: ChartNode,
|
|
147
|
+
pager: PagerNode,
|
|
148
|
+
__default__: () => {
|
|
149
|
+
throw new Error("Type no defined");
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const Component = strategiesComponents[parent.type] ?? strategiesComponents.__default__;
|
|
153
|
+
return /* @__PURE__ */ jsxs(Component, {
|
|
154
|
+
...otherProps,
|
|
155
|
+
children: [Array.isArray(children) && children.length > 0 ? children.map((subComponent, _id) => {
|
|
156
|
+
return /* @__PURE__ */ jsx(FactoryRender, {
|
|
157
|
+
data: subComponent
|
|
158
|
+
}, `${subComponent.key}-${Math.random().toString(36).substring(7)}`);
|
|
159
|
+
}) : null, typeof children === "string" ? children : null]
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
const PrintingSystem = forwardRef((props, ref) => {
|
|
163
|
+
const {
|
|
164
|
+
templateData: nodeRoot,
|
|
165
|
+
sourceData,
|
|
166
|
+
className
|
|
167
|
+
} = props;
|
|
168
|
+
const theme = useTheme();
|
|
169
|
+
console.log("sourceData", sourceData);
|
|
170
|
+
const classes2 = printingSystemUtilityClasses();
|
|
171
|
+
const listPages = Array.isArray(nodeRoot.pages) && nodeRoot.pages.length > 0 ? nodeRoot.pages : [];
|
|
172
|
+
const rootRef = useRef(null);
|
|
173
|
+
useImperativeHandle(ref, () => ({
|
|
174
|
+
GoPrint: async () => {
|
|
175
|
+
if (rootRef.current) {
|
|
176
|
+
const content = rootRef.current;
|
|
177
|
+
const printWindow = window.open("", "_blank");
|
|
178
|
+
if (printWindow) {
|
|
179
|
+
const printDocument = printWindow.document;
|
|
180
|
+
printDocument.write("<html><head><title>Contenido a imprimir</title></head><body></body></html>");
|
|
181
|
+
printDocument.body.appendChild(content.cloneNode(true));
|
|
182
|
+
const styleElement = printDocument.createElement("style");
|
|
183
|
+
styleElement.textContent = `
|
|
184
|
+
${theme.components?.M4LPrintingSystem?.styleOverrides}
|
|
185
|
+
`;
|
|
186
|
+
printDocument.head.appendChild(styleElement);
|
|
187
|
+
printDocument.close();
|
|
188
|
+
printWindow.print();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}));
|
|
193
|
+
const Header = () => /* @__PURE__ */ jsx(FactoryRender, {
|
|
194
|
+
data: nodeRoot.header[0]
|
|
195
|
+
});
|
|
196
|
+
const Footer = () => /* @__PURE__ */ jsx(FactoryRender, {
|
|
197
|
+
data: nodeRoot.footer[0]
|
|
198
|
+
});
|
|
199
|
+
return /* @__PURE__ */ jsx(PrintingSystemRoot, {
|
|
200
|
+
className: clsx(classes2.root, className),
|
|
201
|
+
ref: rootRef,
|
|
202
|
+
children: listPages.map((page, id) => {
|
|
203
|
+
return /* @__PURE__ */ jsx(PageRender, {
|
|
204
|
+
data: page,
|
|
205
|
+
id: id + 1,
|
|
206
|
+
unitSize: nodeRoot.unitSizes,
|
|
207
|
+
mainColor: nodeRoot.mainColor,
|
|
208
|
+
countPages: listPages.length,
|
|
209
|
+
HeaderGeneral: Header,
|
|
210
|
+
FooterGeneral: Footer,
|
|
211
|
+
sourceData,
|
|
212
|
+
templateData: nodeRoot
|
|
213
|
+
}, page.key);
|
|
214
|
+
})
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
export {
|
|
218
|
+
FactoryRender as F,
|
|
219
|
+
PrintingSystem as P,
|
|
220
|
+
getSize as a,
|
|
221
|
+
classes as c,
|
|
222
|
+
getEvalValue as g
|
|
223
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { useBase } from "@m4l/core";
|
|
2
|
+
import { c as classes, a as getSize } from "../../index.d1fd7818.js";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
const BodyNode = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
children,
|
|
8
|
+
className,
|
|
9
|
+
direction = "row",
|
|
10
|
+
gap = "unset",
|
|
11
|
+
style,
|
|
12
|
+
width = "auto",
|
|
13
|
+
height = "auto",
|
|
14
|
+
paddingTop = "unset",
|
|
15
|
+
paddingRight = "unset",
|
|
16
|
+
paddingBottom = "unset",
|
|
17
|
+
paddingLeft = "unset",
|
|
18
|
+
alignX = "unset",
|
|
19
|
+
alignY = "unset",
|
|
20
|
+
grow = false
|
|
21
|
+
} = props;
|
|
22
|
+
const {
|
|
23
|
+
unitSize
|
|
24
|
+
} = useBase();
|
|
25
|
+
return /* @__PURE__ */ jsx("div", {
|
|
26
|
+
className: clsx(classes.bodyNodeRoot, className),
|
|
27
|
+
style: {
|
|
28
|
+
flexDirection: direction,
|
|
29
|
+
gap: getSize(gap, unitSize),
|
|
30
|
+
width: getSize(width, unitSize),
|
|
31
|
+
height: getSize(height, unitSize),
|
|
32
|
+
minWidth: getSize(width, unitSize),
|
|
33
|
+
minHeight: getSize(height, unitSize),
|
|
34
|
+
paddingTop: getSize(paddingTop, unitSize),
|
|
35
|
+
paddingRight: getSize(paddingRight, unitSize),
|
|
36
|
+
paddingBottom: getSize(paddingBottom, unitSize),
|
|
37
|
+
paddingLeft: getSize(paddingLeft, unitSize),
|
|
38
|
+
justifyContent: direction === "row" ? alignX : alignY,
|
|
39
|
+
alignItems: direction === "row" ? alignY : alignX,
|
|
40
|
+
flex: grow ? 1 : "unset",
|
|
41
|
+
...style
|
|
42
|
+
},
|
|
43
|
+
children
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
BodyNode as B
|
|
48
|
+
};
|