@charlesgomes/leafcode-shared-lib-react 1.0.70 → 1.0.71

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.d.mts CHANGED
@@ -202,8 +202,8 @@ declare const FilterMatchModeSelect: ({ options, items, placeholder, }: FilterMa
202
202
  declare const DateFilterTemplate: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, items?: any[], mask?: (value: Date) => string) => react_jsx_runtime.JSX.Element;
203
203
  declare const DateTimeFilterTemplate: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, mask?: (date: Date) => string) => react_jsx_runtime.JSX.Element;
204
204
  declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
205
- declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
206
- declare const CustomFilterElement: (options: any, isLanguagePtBr?: boolean, items?: any[]) => react_jsx_runtime.JSX.Element;
205
+ declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
206
+ declare const CustomFilterElement: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, items?: any[]) => react_jsx_runtime.JSX.Element;
207
207
 
208
208
  declare const customMatchModes: {
209
209
  notStartsWith: string;
package/dist/index.d.ts CHANGED
@@ -202,8 +202,8 @@ declare const FilterMatchModeSelect: ({ options, items, placeholder, }: FilterMa
202
202
  declare const DateFilterTemplate: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, items?: any[], mask?: (value: Date) => string) => react_jsx_runtime.JSX.Element;
203
203
  declare const DateTimeFilterTemplate: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, mask?: (date: Date) => string) => react_jsx_runtime.JSX.Element;
204
204
  declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
205
- declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
206
- declare const CustomFilterElement: (options: any, isLanguagePtBr?: boolean, items?: any[]) => react_jsx_runtime.JSX.Element;
205
+ declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
206
+ declare const CustomFilterElement: (options: any, isLanguagePtBr?: boolean, isNullable?: boolean, items?: any[]) => react_jsx_runtime.JSX.Element;
207
207
 
208
208
  declare const customMatchModes: {
209
209
  notStartsWith: string;
package/dist/index.js CHANGED
@@ -1876,8 +1876,8 @@ var ValueFilterTemplate = (options, mask) => {
1876
1876
  }
1877
1877
  );
1878
1878
  };
1879
- var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1880
- const matchModeItems = getDefaultFilterMatchOptionsEnum(isLanguagePtBr);
1879
+ var SelectFilterTemplate = (options, isLanguagePtBr = true, isNullable = true, items = []) => {
1880
+ const matchModeItems = getDefaultFilterMatchOptionsEnum(isLanguagePtBr, isNullable);
1881
1881
  const selectOptions = items.length > 0 ? items : [
1882
1882
  { label: isLanguagePtBr ? "Sim" : "Yes", value: true },
1883
1883
  { label: isLanguagePtBr ? "N\xE3o" : "No", value: false }
@@ -1955,8 +1955,8 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1955
1955
  )
1956
1956
  ] });
1957
1957
  };
1958
- var CustomFilterElement = (options, isLanguagePtBr = true, items) => {
1959
- const resolvedItems = items ?? getDefaultFilterMatchOptionsString(isLanguagePtBr);
1958
+ var CustomFilterElement = (options, isLanguagePtBr = true, isNullable = true, items) => {
1959
+ const resolvedItems = items ?? getDefaultFilterMatchOptionsString(isLanguagePtBr, isNullable);
1960
1960
  const rawFilter = options.value ?? {};
1961
1961
  const currentMatchMode = rawFilter.matchMode ?? "contains";
1962
1962
  const currentValue = typeof rawFilter.text === "string" ? rawFilter.text : "";
package/dist/index.mjs CHANGED
@@ -1826,8 +1826,8 @@ var ValueFilterTemplate = (options, mask) => {
1826
1826
  }
1827
1827
  );
1828
1828
  };
1829
- var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1830
- const matchModeItems = getDefaultFilterMatchOptionsEnum(isLanguagePtBr);
1829
+ var SelectFilterTemplate = (options, isLanguagePtBr = true, isNullable = true, items = []) => {
1830
+ const matchModeItems = getDefaultFilterMatchOptionsEnum(isLanguagePtBr, isNullable);
1831
1831
  const selectOptions = items.length > 0 ? items : [
1832
1832
  { label: isLanguagePtBr ? "Sim" : "Yes", value: true },
1833
1833
  { label: isLanguagePtBr ? "N\xE3o" : "No", value: false }
@@ -1905,8 +1905,8 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1905
1905
  )
1906
1906
  ] });
1907
1907
  };
1908
- var CustomFilterElement = (options, isLanguagePtBr = true, items) => {
1909
- const resolvedItems = items ?? getDefaultFilterMatchOptionsString(isLanguagePtBr);
1908
+ var CustomFilterElement = (options, isLanguagePtBr = true, isNullable = true, items) => {
1909
+ const resolvedItems = items ?? getDefaultFilterMatchOptionsString(isLanguagePtBr, isNullable);
1910
1910
  const rawFilter = options.value ?? {};
1911
1911
  const currentMatchMode = rawFilter.matchMode ?? "contains";
1912
1912
  const currentValue = typeof rawFilter.text === "string" ? rawFilter.text : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",