@charlesgomes/leafcode-shared-lib-react 1.0.85 → 1.0.86

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
@@ -1918,11 +1918,11 @@ var mapPrimeToBackendFilters = (filters, globalFilterFields) => {
1918
1918
  return;
1919
1919
  }
1920
1920
  const constraints = Array.isArray(config.constraints) ? config.constraints.filter((c) => {
1921
- if (isSpecialMatchMode(c.matchMode)) {
1921
+ const normalized = normalizeFilterValue(c.value);
1922
+ if (normalized === "__NULL__") {
1922
1923
  return true;
1923
1924
  }
1924
- const normalized = normalizeFilterValue(c.value);
1925
- return normalized !== null || normalized === "__NULL__";
1925
+ return normalized !== null;
1926
1926
  }) : [];
1927
1927
  if (!constraints.length) return;
1928
1928
  const colOperator = config.operator === "or" ? "or" : "and";
@@ -2139,7 +2139,7 @@ var DateFilterTemplate = (options, mask) => {
2139
2139
  const isSpecial = isSpecialMatchMode(matchMode);
2140
2140
  if (!isSpecial && value === true) {
2141
2141
  options.filterCallback(
2142
- "",
2142
+ null,
2143
2143
  options.index
2144
2144
  );
2145
2145
  }
@@ -2210,7 +2210,7 @@ var ValueFilterTemplate = (options, mask) => {
2210
2210
  const isSpecial = isSpecialMatchMode(matchMode);
2211
2211
  if (!isSpecial && value === true) {
2212
2212
  options.filterCallback(
2213
- "",
2213
+ null,
2214
2214
  options.index
2215
2215
  );
2216
2216
  }
@@ -2237,7 +2237,7 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
2237
2237
  const isSpecial = isSpecialMatchMode(matchMode);
2238
2238
  if (!isSpecial && value === true) {
2239
2239
  options.filterCallback(
2240
- "",
2240
+ null,
2241
2241
  options.index
2242
2242
  );
2243
2243
  }
@@ -2269,7 +2269,7 @@ var CustomFilterElement = (options, isLanguagePtBr = true) => {
2269
2269
  const isSpecial = isSpecialMatchMode(matchMode);
2270
2270
  if (!isSpecial && value === true) {
2271
2271
  options.filterCallback(
2272
- "",
2272
+ null,
2273
2273
  options.index
2274
2274
  );
2275
2275
  }
package/dist/index.mjs CHANGED
@@ -1866,11 +1866,11 @@ var mapPrimeToBackendFilters = (filters, globalFilterFields) => {
1866
1866
  return;
1867
1867
  }
1868
1868
  const constraints = Array.isArray(config.constraints) ? config.constraints.filter((c) => {
1869
- if (isSpecialMatchMode(c.matchMode)) {
1869
+ const normalized = normalizeFilterValue(c.value);
1870
+ if (normalized === "__NULL__") {
1870
1871
  return true;
1871
1872
  }
1872
- const normalized = normalizeFilterValue(c.value);
1873
- return normalized !== null || normalized === "__NULL__";
1873
+ return normalized !== null;
1874
1874
  }) : [];
1875
1875
  if (!constraints.length) return;
1876
1876
  const colOperator = config.operator === "or" ? "or" : "and";
@@ -2087,7 +2087,7 @@ var DateFilterTemplate = (options, mask) => {
2087
2087
  const isSpecial = isSpecialMatchMode(matchMode);
2088
2088
  if (!isSpecial && value === true) {
2089
2089
  options.filterCallback(
2090
- "",
2090
+ null,
2091
2091
  options.index
2092
2092
  );
2093
2093
  }
@@ -2158,7 +2158,7 @@ var ValueFilterTemplate = (options, mask) => {
2158
2158
  const isSpecial = isSpecialMatchMode(matchMode);
2159
2159
  if (!isSpecial && value === true) {
2160
2160
  options.filterCallback(
2161
- "",
2161
+ null,
2162
2162
  options.index
2163
2163
  );
2164
2164
  }
@@ -2185,7 +2185,7 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
2185
2185
  const isSpecial = isSpecialMatchMode(matchMode);
2186
2186
  if (!isSpecial && value === true) {
2187
2187
  options.filterCallback(
2188
- "",
2188
+ null,
2189
2189
  options.index
2190
2190
  );
2191
2191
  }
@@ -2217,7 +2217,7 @@ var CustomFilterElement = (options, isLanguagePtBr = true) => {
2217
2217
  const isSpecial = isSpecialMatchMode(matchMode);
2218
2218
  if (!isSpecial && value === true) {
2219
2219
  options.filterCallback(
2220
- "",
2220
+ null,
2221
2221
  options.index
2222
2222
  );
2223
2223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",