@3sc/common-component 0.0.230 → 0.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +63 -35
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -38779,7 +38779,9 @@ const v_ = ({ options: e, isDraggable: t }) => {
|
|
|
38779
38779
|
var A;
|
|
38780
38780
|
R.preventDefault(), E(), a && ((A = l == null ? void 0 : l.onChange) == null || A.call(l, d, "closed")), !v.current && u((L) => !L);
|
|
38781
38781
|
},
|
|
38782
|
-
...l != null && l.placeholder ?
|
|
38782
|
+
...l != null && l.placeholder ? {} : {
|
|
38783
|
+
value: Array.isArray(o) ? Array.isArray(n) && o.length === n.length ? "All Selected" : o.map((R) => R == null ? void 0 : R.label).filter(Boolean).join(", ") : (o == null ? void 0 : o.label) || o || ""
|
|
38784
|
+
},
|
|
38783
38785
|
...l
|
|
38784
38786
|
}
|
|
38785
38787
|
)
|
|
@@ -38857,7 +38859,7 @@ const v_ = ({ options: e, isDraggable: t }) => {
|
|
|
38857
38859
|
Qc,
|
|
38858
38860
|
{
|
|
38859
38861
|
sx: { p: 0 },
|
|
38860
|
-
checked: n.length > 0 && o.length === n.length
|
|
38862
|
+
checked: (n == null ? void 0 : n.length) > 0 && (o == null ? void 0 : o.length) === (n == null ? void 0 : n.length)
|
|
38861
38863
|
}
|
|
38862
38864
|
),
|
|
38863
38865
|
/* @__PURE__ */ m.jsx(
|
|
@@ -38895,39 +38897,65 @@ const v_ = ({ options: e, isDraggable: t }) => {
|
|
|
38895
38897
|
var U;
|
|
38896
38898
|
_.stopPropagation(), (!((U = R == null ? void 0 : R.children) != null && U.length) || R != null && R.showCheckbox) && B(R);
|
|
38897
38899
|
},
|
|
38898
|
-
children: /* @__PURE__ */ m.jsxs(
|
|
38899
|
-
|
|
38900
|
-
|
|
38901
|
-
|
|
38902
|
-
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
|
|
38907
|
-
|
|
38908
|
-
|
|
38909
|
-
|
|
38910
|
-
|
|
38911
|
-
|
|
38912
|
-
|
|
38913
|
-
|
|
38914
|
-
|
|
38915
|
-
|
|
38916
|
-
|
|
38917
|
-
|
|
38918
|
-
|
|
38919
|
-
|
|
38920
|
-
|
|
38921
|
-
|
|
38922
|
-
|
|
38923
|
-
|
|
38924
|
-
|
|
38925
|
-
|
|
38926
|
-
|
|
38927
|
-
|
|
38928
|
-
|
|
38929
|
-
|
|
38930
|
-
|
|
38900
|
+
children: /* @__PURE__ */ m.jsxs(
|
|
38901
|
+
lt,
|
|
38902
|
+
{
|
|
38903
|
+
direction: "row",
|
|
38904
|
+
alignItems: "center",
|
|
38905
|
+
justifyContent: "space-between",
|
|
38906
|
+
gap: "1rem",
|
|
38907
|
+
width: "100%",
|
|
38908
|
+
children: [
|
|
38909
|
+
/* @__PURE__ */ m.jsxs(
|
|
38910
|
+
lt,
|
|
38911
|
+
{
|
|
38912
|
+
direction: "row",
|
|
38913
|
+
alignItems: "center",
|
|
38914
|
+
gap: "1rem",
|
|
38915
|
+
sx: { minWidth: 0, flex: 1 },
|
|
38916
|
+
children: [
|
|
38917
|
+
s && (!((L = R == null ? void 0 : R.children) != null && L.length) || (R == null ? void 0 : R.showCheckbox)) && /* @__PURE__ */ m.jsx(
|
|
38918
|
+
Qc,
|
|
38919
|
+
{
|
|
38920
|
+
sx: { p: 0 },
|
|
38921
|
+
checked: o == null ? void 0 : o.some((_) => _.id === R.id)
|
|
38922
|
+
}
|
|
38923
|
+
),
|
|
38924
|
+
/* @__PURE__ */ m.jsx(
|
|
38925
|
+
et,
|
|
38926
|
+
{
|
|
38927
|
+
component: "h3",
|
|
38928
|
+
noWrap: !0,
|
|
38929
|
+
sx: {
|
|
38930
|
+
color: (_) => {
|
|
38931
|
+
var U;
|
|
38932
|
+
return (U = R == null ? void 0 : R.children) != null && U.length && !(R != null && R.showCheckbox) ? _.palette.primary.notifyActiveText : _.palette.primary.notifyTextColor;
|
|
38933
|
+
},
|
|
38934
|
+
fontWeight: (P = R == null ? void 0 : R.children) != null && P.length && !(R != null && R.showCheckbox) ? "500" : "300",
|
|
38935
|
+
fontSize: "1.1rem",
|
|
38936
|
+
overflow: "hidden",
|
|
38937
|
+
textOverflow: "ellipsis",
|
|
38938
|
+
whiteSpace: "nowrap",
|
|
38939
|
+
minWidth: 0,
|
|
38940
|
+
flex: 1
|
|
38941
|
+
},
|
|
38942
|
+
children: R.label
|
|
38943
|
+
}
|
|
38944
|
+
)
|
|
38945
|
+
]
|
|
38946
|
+
}
|
|
38947
|
+
),
|
|
38948
|
+
!(R != null && R.isMandatory) && e && /* @__PURE__ */ m.jsx(
|
|
38949
|
+
be,
|
|
38950
|
+
{
|
|
38951
|
+
component: "img",
|
|
38952
|
+
src: Xe.Drag,
|
|
38953
|
+
draggable: !1
|
|
38954
|
+
}
|
|
38955
|
+
)
|
|
38956
|
+
]
|
|
38957
|
+
}
|
|
38958
|
+
)
|
|
38931
38959
|
}
|
|
38932
38960
|
),
|
|
38933
38961
|
(D = R.children) == null ? void 0 : D.map((_, U) => /* @__PURE__ */ m.jsx(
|