@gustavo-valsechi/client 1.4.22 → 1.4.24
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.
|
@@ -136,12 +136,12 @@ function Table(props) {
|
|
|
136
136
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { children: import_lodash.default.map(
|
|
137
137
|
props.options,
|
|
138
138
|
(option, index) => {
|
|
139
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
|
|
139
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j;
|
|
140
140
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { style: (_a2 = option.column) == null ? void 0 : _a2.style, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
141
141
|
"div",
|
|
142
142
|
{
|
|
143
143
|
className: `iz-table-content ${((_b2 = option.column) == null ? void 0 : _b2.action) ? `iz-table-action ${((_d2 = (_c2 = option.column) == null ? void 0 : _c2.action) == null ? void 0 : _d2.position) ? (_f2 = (_e2 = option.column) == null ? void 0 : _e2.action) == null ? void 0 : _f2.position : ""}` : ""}`,
|
|
144
|
-
children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : import_lodash.default.isString(((
|
|
144
|
+
children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : !((_h = props.content) == null ? void 0 : _h.length) && !props.loading ? "" : import_lodash.default.isString(((_i = option.column) == null ? void 0 : _i.name) || option.column) ? ((_j = option.column) == null ? void 0 : _j.name) || option.column : ""
|
|
145
145
|
}
|
|
146
146
|
) }, index);
|
|
147
147
|
}
|
|
@@ -102,12 +102,12 @@ function Table(props) {
|
|
|
102
102
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: _.map(
|
|
103
103
|
props.options,
|
|
104
104
|
(option, index) => {
|
|
105
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
|
|
105
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j;
|
|
106
106
|
return /* @__PURE__ */ jsx("th", { style: (_a2 = option.column) == null ? void 0 : _a2.style, children: /* @__PURE__ */ jsx(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
109
|
className: `iz-table-content ${((_b2 = option.column) == null ? void 0 : _b2.action) ? `iz-table-action ${((_d2 = (_c2 = option.column) == null ? void 0 : _c2.action) == null ? void 0 : _d2.position) ? (_f2 = (_e2 = option.column) == null ? void 0 : _e2.action) == null ? void 0 : _f2.position : ""}` : ""}`,
|
|
110
|
-
children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : _.isString(((
|
|
110
|
+
children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : !((_h = props.content) == null ? void 0 : _h.length) && !props.loading ? "" : _.isString(((_i = option.column) == null ? void 0 : _i.name) || option.column) ? ((_j = option.column) == null ? void 0 : _j.name) || option.column : ""
|
|
111
111
|
}
|
|
112
112
|
) }, index);
|
|
113
113
|
}
|