@gustavo-valsechi/client 1.4.297 → 1.4.299
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.
|
@@ -65,7 +65,7 @@ function Table(props) {
|
|
|
65
65
|
modal.setProps("table", { content });
|
|
66
66
|
};
|
|
67
67
|
const renderRowContainer = (data, option) => {
|
|
68
|
-
var _a2, _b2, _c2, _d2;
|
|
68
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g;
|
|
69
69
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
@@ -75,6 +75,8 @@ function Table(props) {
|
|
|
75
75
|
${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "table-identifier" : ""}
|
|
76
76
|
`,
|
|
77
77
|
style: import_lodash.default.isFunction((_c2 = option.row) == null ? void 0 : _c2.style) ? option.row.style(data, option) : (_d2 = option.row) == null ? void 0 : _d2.style,
|
|
78
|
+
"data-tooltip": !((_e2 = option.row) == null ? void 0 : _e2.actions) ? import_lodash.default.isFunction((_f2 = option.row) == null ? void 0 : _f2.info) ? option.row.info(data, option) : (_g = option.row) == null ? void 0 : _g.info : "",
|
|
79
|
+
"data-tooltip-props": '{"position":"bottom"}',
|
|
78
80
|
children: renderRowContent(data, option)
|
|
79
81
|
}
|
|
80
82
|
);
|
|
@@ -126,7 +128,7 @@ function Table(props) {
|
|
|
126
128
|
"div",
|
|
127
129
|
{
|
|
128
130
|
className: "table-content-elipse",
|
|
129
|
-
"data-tooltip": import_lodash.default.isString(body) ? body : "",
|
|
131
|
+
"data-tooltip": import_lodash.default.isString(body) && !row.info ? body : "",
|
|
130
132
|
"data-tooltip-props": '{"position":"bottom"}',
|
|
131
133
|
children: body
|
|
132
134
|
}
|
|
@@ -31,7 +31,7 @@ function Table(props) {
|
|
|
31
31
|
modal.setProps("table", { content });
|
|
32
32
|
};
|
|
33
33
|
const renderRowContainer = (data, option) => {
|
|
34
|
-
var _a2, _b2, _c2, _d2;
|
|
34
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g;
|
|
35
35
|
return /* @__PURE__ */ jsx(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
@@ -41,6 +41,8 @@ function Table(props) {
|
|
|
41
41
|
${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "table-identifier" : ""}
|
|
42
42
|
`,
|
|
43
43
|
style: _.isFunction((_c2 = option.row) == null ? void 0 : _c2.style) ? option.row.style(data, option) : (_d2 = option.row) == null ? void 0 : _d2.style,
|
|
44
|
+
"data-tooltip": !((_e2 = option.row) == null ? void 0 : _e2.actions) ? _.isFunction((_f2 = option.row) == null ? void 0 : _f2.info) ? option.row.info(data, option) : (_g = option.row) == null ? void 0 : _g.info : "",
|
|
45
|
+
"data-tooltip-props": '{"position":"bottom"}',
|
|
44
46
|
children: renderRowContent(data, option)
|
|
45
47
|
}
|
|
46
48
|
);
|
|
@@ -92,7 +94,7 @@ function Table(props) {
|
|
|
92
94
|
"div",
|
|
93
95
|
{
|
|
94
96
|
className: "table-content-elipse",
|
|
95
|
-
"data-tooltip": _.isString(body) ? body : "",
|
|
97
|
+
"data-tooltip": _.isString(body) && !row.info ? body : "",
|
|
96
98
|
"data-tooltip-props": '{"position":"bottom"}',
|
|
97
99
|
children: body
|
|
98
100
|
}
|
|
@@ -111,7 +111,7 @@ const TooltipProviderContainer = ({ children }) => {
|
|
|
111
111
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipContext.Provider, { value: {}, children: [
|
|
112
112
|
import_lodash.default.map(
|
|
113
113
|
tooltips,
|
|
114
|
-
(data, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
114
|
+
(data, index) => !!data.content && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
115
|
import_components.Tooltip,
|
|
116
116
|
{
|
|
117
117
|
style: {
|
|
@@ -77,7 +77,7 @@ const TooltipProviderContainer = ({ children }) => {
|
|
|
77
77
|
return /* @__PURE__ */ jsxs(TooltipContext.Provider, { value: {}, children: [
|
|
78
78
|
_.map(
|
|
79
79
|
tooltips,
|
|
80
|
-
(data, index) => /* @__PURE__ */ jsx(
|
|
80
|
+
(data, index) => !!data.content && /* @__PURE__ */ jsx(
|
|
81
81
|
Tooltip,
|
|
82
82
|
{
|
|
83
83
|
style: {
|