@m4l/components 9.86.0-beta-pkg-799-preparar-app-cd-ci.0 → 9.87.0
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/Label/Label.styles.d.ts.map +1 -1
- package/components/Label/Label.styles.js +80 -59
- package/components/Label/types.d.ts +2 -2
- package/components/Label/types.d.ts.map +1 -1
- package/components/NumberInput/NumberInput.styles.d.ts.map +1 -1
- package/components/NumberInput/NumberInput.styles.js +89 -81
- package/components/PropertyValue/PropertyValue.d.ts.map +1 -1
- package/components/PropertyValue/PropertyValue.js +76 -74
- package/components/PropertyValue/PropertyValue.styles.d.ts.map +1 -1
- package/components/PropertyValue/PropertyValue.styles.js +57 -37
- package/components/PropertyValue/types.d.ts +3 -1
- package/components/PropertyValue/types.d.ts.map +1 -1
- package/components/SideBar/SideBar.d.ts +2 -7
- package/components/SideBar/SideBar.d.ts.map +1 -1
- package/components/SideBar/SideBar.js +54 -48
- package/components/SideBar/constants.d.ts +21 -0
- package/components/SideBar/constants.d.ts.map +1 -1
- package/components/SideBar/constants.js +34 -14
- package/components/SideBar/dictionaryDefaults.d.ts +4 -0
- package/components/SideBar/dictionaryDefaults.d.ts.map +1 -0
- package/components/SideBar/dictionaryDefaults.js +35 -0
- package/components/SideBar/helpers/getMenuDataWithState/index.js +4 -4
- package/components/SideBar/helpers/resolveSidebarWidth.d.ts +3 -0
- package/components/SideBar/helpers/resolveSidebarWidth.d.ts.map +1 -0
- package/components/SideBar/helpers/resolveSidebarWidth.js +7 -0
- package/components/SideBar/hooks/useSideBarPreferences.d.ts +4 -0
- package/components/SideBar/hooks/useSideBarPreferences.d.ts.map +1 -0
- package/components/SideBar/hooks/useSideBarPreferences.js +71 -0
- package/components/SideBar/index.d.ts +4 -1
- package/components/SideBar/index.d.ts.map +1 -1
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.js +257 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.d.ts +6 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.js +44 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.js +77 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.js +40 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.js +21 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.js +62 -0
- package/components/SideBar/subcomponents/SideBarNavigation/assets/sidebar-texture.jpg.js +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.d.ts +32 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.js +17 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.d.ts +17 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.js +61 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.d.ts +75 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.js +508 -0
- package/components/SideBar/subcomponents/SideBarNavigation/types.d.ts +108 -0
- package/components/SideBar/subcomponents/SideBarNavigation/types.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.d.ts +16 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.js +42 -0
- package/components/SideBar/types.d.ts +70 -60
- package/components/SideBar/types.d.ts.map +1 -1
- package/index.js +200 -194
- package/package.json +10 -10
|
@@ -1,115 +1,117 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { TEST_PROP_ID as
|
|
5
|
-
import { PROPERTY_VALUE_CLASSNAMES as
|
|
6
|
-
import { getNameDataTestId as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { PropertyValueRootStyled as
|
|
9
|
-
import { getComponentSlotRoot as
|
|
10
|
-
import { getNullGuard as
|
|
11
|
-
import { Label as
|
|
12
|
-
import { useComponentSize as
|
|
13
|
-
function
|
|
1
|
+
import { jsxs as S, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import v, { useId as W } from "react";
|
|
3
|
+
import x from "clsx";
|
|
4
|
+
import { TEST_PROP_ID as M } from "../../test/constants_no_mock.js";
|
|
5
|
+
import { PROPERTY_VALUE_CLASSNAMES as F, TEST_PROPS_DATA as q, PROPERTY_VALUE_KEY_COMPONENT as d, COMPONENT_PREFIX as Y } from "./constants.js";
|
|
6
|
+
import { getNameDataTestId as $, getPropDataTestId as j } from "../../test/getNameDataTestId.js";
|
|
7
|
+
import { Icon as U } from "@m4l/base";
|
|
8
|
+
import { PropertyValueRootStyled as G, ContainerStartAdornmentStyled as H, ContainerPropertyAndValueStyled as J, NameStyled as K, ValueStyled as X, TypographyValueStyled as k } from "./slots/PropertyValueSlots.js";
|
|
9
|
+
import { getComponentSlotRoot as h } from "../../utils/getComponentSlotRoot.js";
|
|
10
|
+
import { getNullGuard as B } from "../../utils/getNullGuard.js";
|
|
11
|
+
import { Label as Q } from "../Label/Label.js";
|
|
12
|
+
import { useComponentSize as Z } from "@m4l/graphics";
|
|
13
|
+
function ce(E) {
|
|
14
14
|
const {
|
|
15
|
-
property:
|
|
16
|
-
startAdornment:
|
|
15
|
+
property: i,
|
|
16
|
+
startAdornment: t,
|
|
17
17
|
value: e,
|
|
18
|
-
className:
|
|
18
|
+
className: P,
|
|
19
19
|
isForm: n,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
formLayout: m,
|
|
21
|
+
labelOverflow: N,
|
|
22
|
+
labelWidth: O,
|
|
22
23
|
dataTestId: p = "",
|
|
23
24
|
disabled: u = !1,
|
|
24
|
-
controlWidth:
|
|
25
|
-
mandatory:
|
|
26
|
-
mandatoryMessage:
|
|
27
|
-
helperMessage:
|
|
28
|
-
symbol:
|
|
25
|
+
controlWidth: T,
|
|
26
|
+
mandatory: b,
|
|
27
|
+
mandatoryMessage: g,
|
|
28
|
+
helperMessage: I,
|
|
29
|
+
symbol: V,
|
|
29
30
|
semanticWidth: a = "fullWidth",
|
|
30
|
-
propertyWidth:
|
|
31
|
-
size:
|
|
31
|
+
propertyWidth: _ = 200,
|
|
32
|
+
size: R = "medium",
|
|
32
33
|
direction: c,
|
|
33
|
-
valueHeight:
|
|
34
|
-
iconVariant:
|
|
35
|
-
iconColor:
|
|
36
|
-
borderStyle:
|
|
37
|
-
} =
|
|
38
|
-
propertyWidth:
|
|
39
|
-
controlWidth:
|
|
34
|
+
valueHeight: A,
|
|
35
|
+
iconVariant: C = "outlined",
|
|
36
|
+
iconColor: z = "primary",
|
|
37
|
+
borderStyle: L = "none"
|
|
38
|
+
} = E, s = `property-value-${W()}`, f = n && m === "responsive", y = f ? "wrap" : N, { currentSize: l } = Z(R), r = {
|
|
39
|
+
propertyWidth: _,
|
|
40
|
+
controlWidth: T,
|
|
41
|
+
formLayout: f ? m : void 0,
|
|
40
42
|
disabled: n && u ? u : !1,
|
|
41
43
|
isForm: !!n,
|
|
42
|
-
labelOverflow:
|
|
43
|
-
labelWidth:
|
|
44
|
+
labelOverflow: y,
|
|
45
|
+
labelWidth: O,
|
|
44
46
|
semanticWidth: a,
|
|
45
|
-
valueHeight:
|
|
46
|
-
size:
|
|
47
|
+
valueHeight: A,
|
|
48
|
+
size: l,
|
|
47
49
|
direction: n && c === void 0 ? "column" : c ?? "row",
|
|
48
|
-
iconVariant:
|
|
49
|
-
iconColor:
|
|
50
|
-
borderStyle:
|
|
51
|
-
},
|
|
52
|
-
|
|
50
|
+
iconVariant: C,
|
|
51
|
+
iconColor: z,
|
|
52
|
+
borderStyle: L
|
|
53
|
+
}, w = () => t ? typeof t == "string" ? /* @__PURE__ */ o(
|
|
54
|
+
U,
|
|
53
55
|
{
|
|
54
|
-
src:
|
|
56
|
+
src: t,
|
|
55
57
|
color: "text.secondary"
|
|
56
58
|
}
|
|
57
|
-
) :
|
|
58
|
-
|
|
59
|
+
) : t : null, D = () => typeof e == "string" || typeof e == "number" || e === null || e === void 0 ? /* @__PURE__ */ o(
|
|
60
|
+
k,
|
|
59
61
|
{
|
|
60
|
-
id:
|
|
61
|
-
size:
|
|
62
|
+
id: s,
|
|
63
|
+
size: l,
|
|
62
64
|
variant: "bodyDens",
|
|
63
65
|
ownerState: r,
|
|
64
|
-
children:
|
|
66
|
+
children: B(e)
|
|
65
67
|
}
|
|
66
|
-
) :
|
|
68
|
+
) : v.isValidElement(e) ? v.cloneElement(
|
|
67
69
|
e,
|
|
68
|
-
{ size:
|
|
70
|
+
{ size: l, id: s }
|
|
69
71
|
) : e;
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
72
|
+
return /* @__PURE__ */ S(
|
|
73
|
+
G,
|
|
72
74
|
{
|
|
73
75
|
role: n ? "property-value-form-role" : "property-value-role",
|
|
74
|
-
className:
|
|
75
|
-
|
|
76
|
-
a && `${
|
|
77
|
-
|
|
76
|
+
className: x(
|
|
77
|
+
h(d),
|
|
78
|
+
a && `${h(d)}-semanticWidth-${a}`,
|
|
79
|
+
P
|
|
78
80
|
),
|
|
79
|
-
...
|
|
81
|
+
...j(d, "root", p),
|
|
80
82
|
ownerState: r,
|
|
81
83
|
...process.env.NODE_ENV !== "production" ? {
|
|
82
|
-
[
|
|
83
|
-
{ property: !!
|
|
84
|
+
[q]: JSON.stringify([
|
|
85
|
+
{ property: !!i, value: !!e }
|
|
84
86
|
]),
|
|
85
|
-
[
|
|
86
|
-
|
|
87
|
+
[M]: $(
|
|
88
|
+
Y,
|
|
87
89
|
"root",
|
|
88
90
|
p
|
|
89
91
|
)
|
|
90
92
|
} : {},
|
|
91
93
|
children: [
|
|
92
|
-
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
94
|
+
t && /* @__PURE__ */ o(H, { ownerState: r, children: w() }),
|
|
95
|
+
/* @__PURE__ */ S(J, { ownerState: r, children: [
|
|
96
|
+
/* @__PURE__ */ o(K, { ownerState: r, className: F.name, children: i && /* @__PURE__ */ o(
|
|
97
|
+
Q,
|
|
96
98
|
{
|
|
97
|
-
size:
|
|
98
|
-
label:
|
|
99
|
-
labelOverflow:
|
|
100
|
-
mandatory:
|
|
101
|
-
mandatoryMessage:
|
|
102
|
-
helperMessage:
|
|
103
|
-
symbol:
|
|
104
|
-
htmlFor:
|
|
99
|
+
size: l,
|
|
100
|
+
label: i,
|
|
101
|
+
labelOverflow: y,
|
|
102
|
+
mandatory: b,
|
|
103
|
+
mandatoryMessage: g,
|
|
104
|
+
helperMessage: I,
|
|
105
|
+
symbol: V,
|
|
106
|
+
htmlFor: s
|
|
105
107
|
}
|
|
106
108
|
) }),
|
|
107
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ o(X, { role: "property-value-value-role", ownerState: r, children: D() })
|
|
108
110
|
] })
|
|
109
111
|
]
|
|
110
112
|
}
|
|
111
113
|
);
|
|
112
114
|
}
|
|
113
115
|
export {
|
|
114
|
-
|
|
116
|
+
ce as PropertyValue
|
|
115
117
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValue.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/PropertyValue.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertyValue.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/PropertyValue.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAW9C,eAAO,MAAM,mBAAmB,EAAE,mBAgSjC,CAAC"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { getPropertyByString as
|
|
1
|
+
import { getPropertyByString as t } from "@m4l/core";
|
|
2
2
|
import { ICON_SVG_SHAPE_SELECTOR as s } from "@m4l/base";
|
|
3
|
-
import { getSizeStyles as
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { getSizeStyles as p } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
4
|
+
import { classHelperErrorRoot as b } from "../HelperError/constant.js";
|
|
5
|
+
import { resolveSemanticWidthPx as l, isFullRowSemanticWidth as m } from "./semanticWidth.js";
|
|
6
|
+
const c = "container", h = {
|
|
6
7
|
/**
|
|
7
8
|
* Property Value Root Styles
|
|
8
9
|
*/
|
|
9
10
|
Root: ({ theme: o, ownerState: i }) => {
|
|
10
|
-
const
|
|
11
|
-
maxWidth: `${
|
|
12
|
-
minWidth: `${
|
|
13
|
-
[`@container ${
|
|
11
|
+
const e = (n) => ({
|
|
12
|
+
maxWidth: `${n}px`,
|
|
13
|
+
minWidth: `${n}px`,
|
|
14
|
+
[`@container ${c} (max-width: ${n - 1}px)`]: {
|
|
14
15
|
minWidth: "100px",
|
|
15
16
|
maxWidth: "100%",
|
|
16
17
|
width: "100%"
|
|
17
18
|
}
|
|
18
|
-
}),
|
|
19
|
+
}), r = l(i?.semanticWidth), a = i?.semanticWidth && typeof r == "number" ? e(r) : {}, d = i?.semanticWidth && m(i.semanticWidth) ? {
|
|
19
20
|
maxWidth: "100%",
|
|
20
21
|
width: "100%",
|
|
21
22
|
minWidth: i.semanticWidth === "bigDescription" ? "100px" : "0"
|
|
22
23
|
} : {};
|
|
23
24
|
return {
|
|
24
|
-
containerName:
|
|
25
|
+
containerName: c,
|
|
25
26
|
containerType: "inline-size",
|
|
26
27
|
display: "flex",
|
|
27
28
|
flexDirection: "row",
|
|
@@ -78,36 +79,34 @@ const l = "container", h = {
|
|
|
78
79
|
border: "unset"
|
|
79
80
|
},
|
|
80
81
|
minHeight: o.vars.size.baseSpacings.sp5,
|
|
81
|
-
...
|
|
82
|
-
...c
|
|
82
|
+
...i?.formLayout === "responsive" ? { inlineSize: "100%", minInlineSize: 0 } : { ...a, ...d }
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
85
|
/**
|
|
86
86
|
* Property Styles
|
|
87
87
|
*/
|
|
88
88
|
name: ({ theme: o, ownerState: i }) => {
|
|
89
|
-
const
|
|
89
|
+
const e = typeof i?.labelWidth == "number" ? `${i.labelWidth}px` : i?.labelWidth;
|
|
90
90
|
return {
|
|
91
91
|
display: "flex",
|
|
92
92
|
alignItems: "center",
|
|
93
93
|
fontSize: o.typography.body2.fontSize,
|
|
94
94
|
color: o.vars.palette.text.primary,
|
|
95
95
|
gap: o.vars.size.baseSpacings.sp1,
|
|
96
|
-
overflow: i?.labelOverflow === "
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
width: "fit-content"
|
|
96
|
+
overflow: i?.labelOverflow === "ellipsis" || !i?.labelOverflow ? "hidden" : "visible",
|
|
97
|
+
// Keep the intrinsic width used by DynamicForm measurements. Responsive paper forms
|
|
98
|
+
// have an assigned cell and can give that width to the label.
|
|
99
|
+
maxWidth: e ?? "100%",
|
|
100
|
+
width: i?.formLayout === "responsive" ? "100%" : "fit-content"
|
|
102
101
|
};
|
|
103
102
|
},
|
|
104
103
|
/**
|
|
105
104
|
* Value Styles (Form and No Form Combined)
|
|
106
105
|
*/
|
|
107
106
|
value: ({ theme: o, ownerState: i }) => {
|
|
108
|
-
const r =
|
|
107
|
+
const e = i?.formLayout === "responsive", r = e ? l(i.semanticWidth) : i?.controlWidth, a = typeof r == "number" ? `${r}px` : void 0;
|
|
109
108
|
return {
|
|
110
|
-
width:
|
|
109
|
+
width: a ?? (i?.direction === "column" ? "100%" : "fit-content"),
|
|
111
110
|
display: "flex",
|
|
112
111
|
justifyContent: "flex-start",
|
|
113
112
|
alignItems: "flex-start",
|
|
@@ -117,7 +116,23 @@ const l = "container", h = {
|
|
|
117
116
|
gap: o.vars.size.baseSpacings["sp0-5"],
|
|
118
117
|
flexDirection: "column"
|
|
119
118
|
},
|
|
120
|
-
...
|
|
119
|
+
...e && {
|
|
120
|
+
"--m4l-form-control-block-size": "auto",
|
|
121
|
+
"--m4l-form-control-max-block-size": "none",
|
|
122
|
+
"--m4l-form-stepper-min-height-ratio": "1",
|
|
123
|
+
maxInlineSize: "100%",
|
|
124
|
+
minInlineSize: 0,
|
|
125
|
+
whiteSpace: "normal",
|
|
126
|
+
overflowWrap: "anywhere",
|
|
127
|
+
// Inline errors can use the field cell's width even when the control is compact.
|
|
128
|
+
[`& .${b}`]: {
|
|
129
|
+
inlineSize: "max-content",
|
|
130
|
+
maxInlineSize: "100cqi",
|
|
131
|
+
whiteSpace: "normal",
|
|
132
|
+
overflowWrap: "anywhere"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
...a && {
|
|
121
136
|
maxWidth: "100%",
|
|
122
137
|
"& > *": {
|
|
123
138
|
width: "100%",
|
|
@@ -131,7 +146,7 @@ const l = "container", h = {
|
|
|
131
146
|
* Container Start Adornment Styles
|
|
132
147
|
*/
|
|
133
148
|
containerStartAdornment: ({ theme: o, ownerState: i }) => {
|
|
134
|
-
const
|
|
149
|
+
const e = i?.iconColor === "text.primary" || i?.iconColor === "text.secondary" || i?.iconColor === "text.disabled", r = e ? t(o.vars.palette, String(i?.iconColor), o.vars.palette.text.primary) : t(o.vars.palette.chips, String(i?.iconColor), o.vars.palette.chips.primary)?.contained;
|
|
135
150
|
return {
|
|
136
151
|
"&&&": {
|
|
137
152
|
display: "flex",
|
|
@@ -139,34 +154,34 @@ const l = "container", h = {
|
|
|
139
154
|
justifyContent: "center",
|
|
140
155
|
overflow: "hidden",
|
|
141
156
|
borderRadius: o.vars.size.borderRadius["r1-5"],
|
|
142
|
-
...
|
|
157
|
+
...p(
|
|
143
158
|
o,
|
|
144
159
|
i?.size || "medium",
|
|
145
160
|
"base",
|
|
146
|
-
(
|
|
147
|
-
height: `calc(${
|
|
148
|
-
width: `calc(${
|
|
149
|
-
minHeight: `calc(${
|
|
150
|
-
minWidth: `calc(${
|
|
161
|
+
(a) => ({
|
|
162
|
+
height: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`,
|
|
163
|
+
width: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`,
|
|
164
|
+
minHeight: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`,
|
|
165
|
+
minWidth: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`
|
|
151
166
|
})
|
|
152
167
|
),
|
|
153
168
|
// variente de icono en modalidad outlined o containedOpacity
|
|
154
169
|
...(i?.iconVariant === "containedOpacity" || i?.iconVariant === "outlined") && {
|
|
155
170
|
...i?.iconVariant === "outlined" && {
|
|
156
171
|
border: o.vars.size.borderStroke.container,
|
|
157
|
-
borderColor:
|
|
172
|
+
borderColor: e ? o.vars.palette.border.disabled : r?.backgroundColor,
|
|
158
173
|
backgroundColor: "transparent"
|
|
159
174
|
},
|
|
160
175
|
...i?.iconVariant === "containedOpacity" && {
|
|
161
|
-
backgroundColor:
|
|
176
|
+
backgroundColor: e ? o.vars.palette.border.disabled : r?.backgroundColor
|
|
162
177
|
},
|
|
163
178
|
// icon mask strategy
|
|
164
179
|
"& .M4LIcon-icon": {
|
|
165
|
-
backgroundColor:
|
|
180
|
+
backgroundColor: e ? r : r?.color
|
|
166
181
|
},
|
|
167
182
|
// 🧪 Experimental m4l/icons strategy
|
|
168
183
|
[s]: {
|
|
169
|
-
fill:
|
|
184
|
+
fill: e ? r : r?.color,
|
|
170
185
|
stroke: "none"
|
|
171
186
|
}
|
|
172
187
|
},
|
|
@@ -174,11 +189,11 @@ const l = "container", h = {
|
|
|
174
189
|
backgroundColor: "transparent",
|
|
175
190
|
// icon mask strategy
|
|
176
191
|
"& .M4LIcon-icon": {
|
|
177
|
-
backgroundColor:
|
|
192
|
+
backgroundColor: e ? r : r?.color
|
|
178
193
|
},
|
|
179
194
|
// 🧪 Experimental m4l/icons strategy
|
|
180
195
|
[s]: {
|
|
181
|
-
fill:
|
|
196
|
+
fill: e ? r : r?.color,
|
|
182
197
|
stroke: "none"
|
|
183
198
|
}
|
|
184
199
|
}
|
|
@@ -191,7 +206,8 @@ const l = "container", h = {
|
|
|
191
206
|
containerPropertyAndValue: ({ theme: o, ownerState: i }) => ({
|
|
192
207
|
display: "flex",
|
|
193
208
|
justifyContent: "space-between",
|
|
194
|
-
overflow: i?.labelOverflow === "
|
|
209
|
+
overflow: i?.labelOverflow === "ellipsis" || !i?.labelOverflow ? "hidden" : "visible",
|
|
210
|
+
...i?.formLayout === "responsive" && { flex: "1 1 0", minInlineSize: 0 },
|
|
195
211
|
flexDirection: i?.direction || "row",
|
|
196
212
|
borderColor: o.vars.palette.border.secondary,
|
|
197
213
|
width: "100%",
|
|
@@ -212,7 +228,11 @@ const l = "container", h = {
|
|
|
212
228
|
*/
|
|
213
229
|
typographyValue: ({ ownerState: o }) => ({
|
|
214
230
|
wordBreak: "break-word",
|
|
215
|
-
whiteSpace: o?.direction === "column" ? "normal" : "nowrap"
|
|
231
|
+
whiteSpace: o?.direction === "column" ? "normal" : "nowrap",
|
|
232
|
+
...o?.formLayout === "responsive" && {
|
|
233
|
+
maxInlineSize: "100%",
|
|
234
|
+
overflowWrap: "anywhere"
|
|
235
|
+
}
|
|
216
236
|
})
|
|
217
237
|
};
|
|
218
238
|
export {
|
|
@@ -80,6 +80,8 @@ interface PropertyValueBaseProps extends PropertyProps, ValueProps, Omit<LabelPr
|
|
|
80
80
|
* Define el ancho semántico del componente según el contenido.
|
|
81
81
|
*/
|
|
82
82
|
semanticWidth?: SemanticWidthOptions;
|
|
83
|
+
/** Use the assigned form cell for text and apply the semantic width to the control. */
|
|
84
|
+
formLayout?: 'responsive';
|
|
83
85
|
/** Optional width used by adaptive form labels without changing the control width. */
|
|
84
86
|
labelWidth?: number | string;
|
|
85
87
|
/** Optional width used to keep form controls fixed to their backend semantic width. */
|
|
@@ -193,7 +195,7 @@ export type PropertyValueProps = PropertyValueWithStartAdornment | PropertyValue
|
|
|
193
195
|
/**
|
|
194
196
|
* Estado del propietario para el componente `PropertyValue`, utilizado para personalizar estilos y comportamientos.
|
|
195
197
|
*/
|
|
196
|
-
export interface PropertyVaLueOwnerState extends Pick<PropertyValueBaseProps, 'controlWidth' | 'disabled' | 'labelOverflow' | 'labelWidth' | 'propertyWidth' | 'semanticWidth' | 'valueHeight'> {
|
|
198
|
+
export interface PropertyVaLueOwnerState extends Pick<PropertyValueBaseProps, 'controlWidth' | 'disabled' | 'formLayout' | 'labelOverflow' | 'labelWidth' | 'propertyWidth' | 'semanticWidth' | 'valueHeight'> {
|
|
197
199
|
/**
|
|
198
200
|
* Indica si el componente está en modo formulario.
|
|
199
201
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACv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;;GAEG;AACH,UAAU,kCAAmC,SAAQ,sBAAsB;IACzE;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,kBAAkB,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;AACtG;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,sBAAsB,EACpB,cAAc,GACd,UAAU,GACV,eAAe,GACf,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,CAChB;IACD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAChD;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC7B,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CACzF"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EA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,CAAC,EAAE,KAAK,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,kBAAkB,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;AACtG;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,sBAAsB,EACpB,cAAc,GACd,UAAU,GACV,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,CAChB;IACD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAChD;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC7B,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CACzF"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { SideBarProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* Este componente se encarga de renderizar el menú de opciones y representar su estado
|
|
5
|
-
* de selección y activación. Además, permite alternar la visibilidad y el anclaje de la barra lateral.
|
|
6
|
-
* ### Dependencias:
|
|
7
|
-
* - **`useMobile:`** Hook que devuelve un valor booleano indicando si la aplicación se está ejecutando en un entorno de escritorio.
|
|
8
|
-
* - **`useFirstRender:`** Hook que devuelve un valor booleano indicando si el componente se está renderizando por primera vez.
|
|
3
|
+
* Render the menu and its selection in the configured desktop sidebar or mobile drawer.
|
|
9
4
|
*/
|
|
10
|
-
export declare const SideBar: import('react').
|
|
5
|
+
export declare const SideBar: import('react').NamedExoticComponent<SideBarProps>;
|
|
11
6
|
//# sourceMappingURL=SideBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideBar.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/SideBar.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SideBar.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/SideBar.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAUvC;;GAEG;AACH,eAAO,MAAM,OAAO,oDAIlB,CAAC"}
|
|
@@ -1,56 +1,62 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { SideBarProvider as
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { SideBarProvider as d } from "./context/sideBarContext/index.js";
|
|
3
3
|
import { SideBarMobile as x } from "./subcomponents/SideBarMobile/index.js";
|
|
4
|
-
import { SideBarDesktop as
|
|
5
|
-
import { memo as
|
|
6
|
-
import { getMenuDataWithState as
|
|
7
|
-
import { useIsMobile as
|
|
8
|
-
import { getDataToSkeleton as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
import { SideBarDesktop as g } from "./subcomponents/SideBarDesktop/index.js";
|
|
5
|
+
import { memo as k, useMemo as l } from "react";
|
|
6
|
+
import { getMenuDataWithState as v } from "./helpers/getMenuDataWithState/index.js";
|
|
7
|
+
import { useIsMobile as W } from "@m4l/graphics";
|
|
8
|
+
import { getDataToSkeleton as j } from "./helpers/getDataToSkeleton/index.js";
|
|
9
|
+
import { SideBarNavigation as N } from "./subcomponents/SideBarNavigation/SideBarNavigation.js";
|
|
10
|
+
const G = k(function({ navigation: o, ...t }) {
|
|
11
|
+
return o ? /* @__PURE__ */ r(N, { ...t, navigation: o }) : /* @__PURE__ */ r(P, { ...t });
|
|
12
|
+
});
|
|
13
|
+
function P({
|
|
14
|
+
anchored: e,
|
|
15
|
+
visible: o,
|
|
16
|
+
onToggleAnchored: t,
|
|
17
|
+
onToggleVisible: a,
|
|
18
|
+
menuData: m,
|
|
19
|
+
onMenuItemClick: n,
|
|
20
|
+
companyLogoUrl: f,
|
|
21
|
+
companyLogoSmallUrl: p,
|
|
22
|
+
moduleSelectedId: i,
|
|
23
|
+
expandedWidth: s = "230px",
|
|
24
|
+
companyName: u,
|
|
25
|
+
companySlogan: S,
|
|
26
|
+
urlIconPrefix: B = "",
|
|
27
|
+
headerComponent: M,
|
|
28
|
+
footerComponent: D,
|
|
29
|
+
variant: c = "host"
|
|
30
|
+
}) {
|
|
31
|
+
const h = l(
|
|
32
|
+
() => v({ menuData: m ?? j(), moduleSelectedId: i }),
|
|
33
|
+
[m, i]
|
|
34
|
+
), b = W();
|
|
35
|
+
return /* @__PURE__ */ r(
|
|
36
|
+
d,
|
|
30
37
|
{
|
|
31
38
|
value: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
footerComponent: g
|
|
39
|
+
anchored: e,
|
|
40
|
+
visible: o,
|
|
41
|
+
onToggleAnchored: t,
|
|
42
|
+
onToggleVisible: a,
|
|
43
|
+
menuData: h,
|
|
44
|
+
onMenuItemClick: n,
|
|
45
|
+
companyLogoUrl: f,
|
|
46
|
+
companyLogoSmallUrl: p,
|
|
47
|
+
moduleSelectedId: i,
|
|
48
|
+
expandedWidth: s,
|
|
49
|
+
companyName: u,
|
|
50
|
+
companySlogan: S,
|
|
51
|
+
urlIconPrefix: B,
|
|
52
|
+
variant: c,
|
|
53
|
+
headerComponent: M,
|
|
54
|
+
footerComponent: D
|
|
49
55
|
},
|
|
50
|
-
children:
|
|
56
|
+
children: b ? /* @__PURE__ */ r(x, {}) : /* @__PURE__ */ r(g, {})
|
|
51
57
|
}
|
|
52
58
|
);
|
|
53
|
-
}
|
|
59
|
+
}
|
|
54
60
|
export {
|
|
55
|
-
|
|
61
|
+
G as SideBar
|
|
56
62
|
};
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { HeaderSidebarSlots, ContentGroupsSlots, SideBarDesktopSlots, SideBarFooterSlots, SideBarMobileSlots, ContentComponentSlots } from './slots/SideBarEnum';
|
|
2
|
+
import { SideBarPreferences } from './types';
|
|
2
3
|
export declare const SIDEBAR_KEY_COMPONENT = "M4LSideBar";
|
|
3
4
|
export declare const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
|
|
4
5
|
export declare const LIST_MENU_ITEM = "M4LListMenuItem";
|
|
5
6
|
export declare const PATH_ICONS = "/frontend/domain/microfrontends/";
|
|
7
|
+
export declare const SIDEBAR_WIDTH: {
|
|
8
|
+
readonly default: 240;
|
|
9
|
+
readonly min: 180;
|
|
10
|
+
readonly max: 310;
|
|
11
|
+
};
|
|
12
|
+
export declare const SIDEBAR_INITIAL_PREFERENCES_WAIT_MS = 1500;
|
|
13
|
+
export declare const DEFAULT_SIDEBAR_PREFERENCES: SideBarPreferences;
|
|
14
|
+
export declare const SIDEBAR_DICTIONARY: {
|
|
15
|
+
readonly navigation: "platform_sidebar.navigation";
|
|
16
|
+
readonly search: "platform_sidebar.search";
|
|
17
|
+
readonly resize: "platform_sidebar.resize";
|
|
18
|
+
readonly favorites: "platform_sidebar.favorites";
|
|
19
|
+
readonly pin: "platform_sidebar.pin";
|
|
20
|
+
readonly unpin: "platform_sidebar.unpin";
|
|
21
|
+
readonly addInstance: "platform_sidebar.add_instance";
|
|
22
|
+
readonly closeInstance: "platform_sidebar.close_instance";
|
|
23
|
+
readonly instances: "platform_sidebar.instances";
|
|
24
|
+
readonly noResults: "platform_sidebar.no_results";
|
|
25
|
+
readonly attribution: "label_powerby";
|
|
26
|
+
};
|
|
6
27
|
export declare const ALL_SIDEBAR_SLOTS: {
|
|
7
28
|
contentComponentRoot: ContentComponentSlots.contentComponentRoot;
|
|
8
29
|
containerTreeItemsHeaderFooter: ContentComponentSlots.containerTreeItemsHeaderFooter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE1I,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/SideBar/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE1I,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,UAAU,qCAAqC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;CAAgD,CAAC;AAC3E,eAAO,MAAM,mCAAmC,OAAQ,CAAC;AACzD,eAAO,MAAM,2BAA2B,EAAE,kBAIzC,CAAC;AACF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAYrB,CAAC;AAGX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAO7B,CAAC;AAGF,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AAEpE,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,gBAAgB,CAAC"}
|