@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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
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
|
|
1150
|
-
const
|
|
1151
|
-
const
|
|
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
|
|
1099
|
-
const
|
|
1100
|
-
const
|
|
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",
|