@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.
@@ -98,7 +98,7 @@ function Form(props) {
98
98
  type: component2 ? void 0 : data.type,
99
99
  error: (_a = errors[data.name]) == null ? void 0 : _a.message,
100
100
  register,
101
- setValue
101
+ setValue: data.type === "InputCustom" ? setValue : void 0
102
102
  }
103
103
  );
104
104
  };
@@ -64,7 +64,7 @@ function Form(props) {
64
64
  type: component2 ? void 0 : data.type,
65
65
  error: (_a = errors[data.name]) == null ? void 0 : _a.message,
66
66
  register,
67
- setValue
67
+ setValue: data.type === "InputCustom" ? setValue : void 0
68
68
  }
69
69
  );
70
70
  };
@@ -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(((_h = option.column) == null ? void 0 : _h.name) || option.column) ? ((_i = option.column) == null ? void 0 : _i.name) || option.column : ""
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(((_h = option.column) == null ? void 0 : _h.name) || option.column) ? ((_i = option.column) == null ? void 0 : _i.name) || option.column : ""
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.22",
3
+ "version": "1.4.24",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",