@charlesgomes/leafcode-shared-lib-react 1.0.81 → 1.0.83

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
@@ -2,10 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import react__default, { ReactNode as ReactNode$1, InputHTMLAttributes, JSX } from 'react';
4
4
  import { FieldError } from 'react-hook-form';
5
- import { FilterMatchMode } from 'primereact/api';
6
- export { FilterMatchMode, FilterOperator } from 'primereact/api';
7
5
  export { DataTableProps } from 'primereact/datatable';
8
6
  export { ColumnProps } from 'primereact/column';
7
+ export { FilterMatchMode, FilterOperator } from 'primereact/api';
9
8
 
10
9
  interface ButtonProps {
11
10
  disabled?: boolean;
@@ -228,9 +227,9 @@ declare const getDefaultFilterMatchOptionsNumber: (isLanguagePtBr?: boolean, isN
228
227
  label: string;
229
228
  value: string;
230
229
  }[];
231
- declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean) => {
230
+ declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
232
231
  label: string;
233
- value: FilterMatchMode;
232
+ value: string;
234
233
  }[];
235
234
  declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean, isNullable?: boolean) => {
236
235
  label: string;
package/dist/index.d.ts CHANGED
@@ -2,10 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import react__default, { ReactNode as ReactNode$1, InputHTMLAttributes, JSX } from 'react';
4
4
  import { FieldError } from 'react-hook-form';
5
- import { FilterMatchMode } from 'primereact/api';
6
- export { FilterMatchMode, FilterOperator } from 'primereact/api';
7
5
  export { DataTableProps } from 'primereact/datatable';
8
6
  export { ColumnProps } from 'primereact/column';
7
+ export { FilterMatchMode, FilterOperator } from 'primereact/api';
9
8
 
10
9
  interface ButtonProps {
11
10
  disabled?: boolean;
@@ -228,9 +227,9 @@ declare const getDefaultFilterMatchOptionsNumber: (isLanguagePtBr?: boolean, isN
228
227
  label: string;
229
228
  value: string;
230
229
  }[];
231
- declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean) => {
230
+ declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
232
231
  label: string;
233
- value: FilterMatchMode;
232
+ value: string;
234
233
  }[];
235
234
  declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean, isNullable?: boolean) => {
236
235
  label: string;
package/dist/index.js CHANGED
@@ -1960,34 +1960,23 @@ var getDefaultFilterMatchOptionsNumber = (isLanguagePtBr = true, isNullable = tr
1960
1960
  {
1961
1961
  label: isLanguagePtBr ? "Maior ou igual a" : "Greater than or equal to",
1962
1962
  value: import_api3.FilterMatchMode.GREATER_THAN_OR_EQUAL_TO
1963
- },
1964
- {
1965
- label: isLanguagePtBr ? "Entre" : "Between",
1966
- value: import_api3.FilterMatchMode.BETWEEN
1967
1963
  }
1968
1964
  ];
1969
- return isNullable ? [
1970
- ...baseOptions,
1965
+ return isNullable ? [...baseOptions, ...getNullable(isLanguagePtBr)] : baseOptions;
1966
+ };
1967
+ var getDefaultFilterMatchOptionsStringArray = (isLanguagePtBr = true, isNullable = true) => {
1968
+ const baseOptions = [
1971
1969
  {
1972
- label: isLanguagePtBr ? "\xC9 nulo" : "Is null",
1973
- value: "isNull"
1970
+ label: isLanguagePtBr ? "Cont\xE9m" : "Contains",
1971
+ value: import_api3.FilterMatchMode.CONTAINS
1974
1972
  },
1975
1973
  {
1976
- label: isLanguagePtBr ? "N\xE3o \xE9 nulo" : "Is not null",
1977
- value: "isNotNull"
1974
+ label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
1975
+ value: import_api3.FilterMatchMode.NOT_CONTAINS
1978
1976
  }
1979
- ] : baseOptions;
1977
+ ];
1978
+ return isNullable ? [...baseOptions, ...getNullable(isLanguagePtBr)] : baseOptions;
1980
1979
  };
1981
- var getDefaultFilterMatchOptionsStringArray = (isLanguagePtBr = true) => [
1982
- {
1983
- label: isLanguagePtBr ? "Cont\xE9m" : "Contains",
1984
- value: import_api3.FilterMatchMode.CONTAINS
1985
- },
1986
- {
1987
- label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
1988
- value: import_api3.FilterMatchMode.NOT_CONTAINS
1989
- }
1990
- ];
1991
1980
  var getDefaultFilterMatchOptionsDate = (isLanguagePtBr, isNullable = true) => {
1992
1981
  const baseOptions = [
1993
1982
  {
package/dist/index.mjs CHANGED
@@ -1910,34 +1910,23 @@ var getDefaultFilterMatchOptionsNumber = (isLanguagePtBr = true, isNullable = tr
1910
1910
  {
1911
1911
  label: isLanguagePtBr ? "Maior ou igual a" : "Greater than or equal to",
1912
1912
  value: FilterMatchMode3.GREATER_THAN_OR_EQUAL_TO
1913
- },
1914
- {
1915
- label: isLanguagePtBr ? "Entre" : "Between",
1916
- value: FilterMatchMode3.BETWEEN
1917
1913
  }
1918
1914
  ];
1919
- return isNullable ? [
1920
- ...baseOptions,
1915
+ return isNullable ? [...baseOptions, ...getNullable(isLanguagePtBr)] : baseOptions;
1916
+ };
1917
+ var getDefaultFilterMatchOptionsStringArray = (isLanguagePtBr = true, isNullable = true) => {
1918
+ const baseOptions = [
1921
1919
  {
1922
- label: isLanguagePtBr ? "\xC9 nulo" : "Is null",
1923
- value: "isNull"
1920
+ label: isLanguagePtBr ? "Cont\xE9m" : "Contains",
1921
+ value: FilterMatchMode3.CONTAINS
1924
1922
  },
1925
1923
  {
1926
- label: isLanguagePtBr ? "N\xE3o \xE9 nulo" : "Is not null",
1927
- value: "isNotNull"
1924
+ label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
1925
+ value: FilterMatchMode3.NOT_CONTAINS
1928
1926
  }
1929
- ] : baseOptions;
1927
+ ];
1928
+ return isNullable ? [...baseOptions, ...getNullable(isLanguagePtBr)] : baseOptions;
1930
1929
  };
1931
- var getDefaultFilterMatchOptionsStringArray = (isLanguagePtBr = true) => [
1932
- {
1933
- label: isLanguagePtBr ? "Cont\xE9m" : "Contains",
1934
- value: FilterMatchMode3.CONTAINS
1935
- },
1936
- {
1937
- label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
1938
- value: FilterMatchMode3.NOT_CONTAINS
1939
- }
1940
- ];
1941
1930
  var getDefaultFilterMatchOptionsDate = (isLanguagePtBr, isNullable = true) => {
1942
1931
  const baseOptions = [
1943
1932
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",