@charlesgomes/leafcode-shared-lib-react 1.0.32 → 1.0.33

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.js CHANGED
@@ -1146,9 +1146,9 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1146
1146
  };
1147
1147
  var CustomFilterElement = (options, isLanguagePtBr = true, items) => {
1148
1148
  const resolvedItems = items ?? getDefaultFilterMatchOptionsString(isLanguagePtBr);
1149
- const currentFilter = options.value ?? {};
1150
- const currentValue = currentFilter.value ?? null;
1151
- const currentMatchMode = currentFilter.matchMode ?? "contains";
1149
+ const rawFilter = options.value ?? {};
1150
+ const currentMatchMode = rawFilter.matchMode ?? "contains";
1151
+ const currentValue = typeof rawFilter.value === "string" ? rawFilter.value : "";
1152
1152
  const isSpecial = currentMatchMode === customMatchModes.empty || currentMatchMode === customMatchModes.notEmpty;
1153
1153
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1154
1154
  "div",
@@ -1190,7 +1190,7 @@ var CustomFilterElement = (options, isLanguagePtBr = true, items) => {
1190
1190
  !isSpecial && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1191
1191
  import_inputtext.InputText,
1192
1192
  {
1193
- value: currentValue ?? "",
1193
+ value: currentValue,
1194
1194
  placeholder: isLanguagePtBr ? "Pesquisar" : "Search",
1195
1195
  style: { width: "100%" },
1196
1196
  className: "p-column-filter",
package/dist/index.mjs CHANGED
@@ -1095,9 +1095,9 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1095
1095
  };
1096
1096
  var CustomFilterElement = (options, isLanguagePtBr = true, items) => {
1097
1097
  const resolvedItems = items ?? getDefaultFilterMatchOptionsString(isLanguagePtBr);
1098
- const currentFilter = options.value ?? {};
1099
- const currentValue = currentFilter.value ?? null;
1100
- const currentMatchMode = currentFilter.matchMode ?? "contains";
1098
+ const rawFilter = options.value ?? {};
1099
+ const currentMatchMode = rawFilter.matchMode ?? "contains";
1100
+ const currentValue = typeof rawFilter.value === "string" ? rawFilter.value : "";
1101
1101
  const isSpecial = currentMatchMode === customMatchModes.empty || currentMatchMode === customMatchModes.notEmpty;
1102
1102
  return /* @__PURE__ */ jsxs6(
1103
1103
  "div",
@@ -1139,7 +1139,7 @@ var CustomFilterElement = (options, isLanguagePtBr = true, items) => {
1139
1139
  !isSpecial && /* @__PURE__ */ jsx11(
1140
1140
  InputText,
1141
1141
  {
1142
- value: currentValue ?? "",
1142
+ value: currentValue,
1143
1143
  placeholder: isLanguagePtBr ? "Pesquisar" : "Search",
1144
1144
  style: { width: "100%" },
1145
1145
  className: "p-column-filter",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",