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

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
@@ -207,7 +207,7 @@ interface IItemProps {
207
207
 
208
208
  declare const DateFilterTemplate: (options: any, mask?: (value: Date) => string) => react_jsx_runtime.JSX.Element;
209
209
  declare const DateTimeFilterTemplate: (options: any, mask?: (date: Date) => string) => react_jsx_runtime.JSX.Element;
210
- declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
210
+ declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => false | react_jsx_runtime.JSX.Element;
211
211
  declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
212
212
  declare const CustomFilterElement: (options: any, isLanguagePtBr?: boolean) => false | react_jsx_runtime.JSX.Element;
213
213
 
@@ -218,24 +218,26 @@ declare const customMatchModes: {
218
218
  notEmpty: string;
219
219
  dateBeforeAndEquals: string;
220
220
  dateAfterAndEquals: string;
221
+ any: string;
222
+ none: string;
221
223
  };
222
- declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
224
+ declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean, isNullable?: boolean, isCollection?: boolean) => {
223
225
  label: string;
224
226
  value: string;
225
227
  }[];
226
- declare const getDefaultFilterMatchOptionsNumber: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
228
+ declare const getDefaultFilterMatchOptionsNumber: (isLanguagePtBr?: boolean, isNullable?: boolean, isCollection?: boolean) => {
227
229
  label: string;
228
230
  value: string;
229
231
  }[];
230
- declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
232
+ declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean, isNullable?: boolean, isCollection?: boolean) => {
231
233
  label: string;
232
234
  value: string;
233
235
  }[];
234
- declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean, isNullable?: boolean) => {
236
+ declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean, isNullable?: boolean, isCollection?: boolean) => {
235
237
  label: string;
236
238
  value: string;
237
239
  }[];
238
- declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean, isNullable?: boolean) => {
240
+ declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean, isNullable?: boolean, isCollection?: boolean) => {
239
241
  label: string;
240
242
  value: string;
241
243
  }[];
@@ -243,6 +245,10 @@ declare const getNullable: (isLanguagePtBr: boolean) => {
243
245
  label: string;
244
246
  value: string;
245
247
  }[];
248
+ declare const getNullableCollection: (isLanguagePtBr: boolean) => {
249
+ label: string;
250
+ value: string;
251
+ }[];
246
252
 
247
253
  declare const mapPrimeToBackendFilters: (filters: any, globalFilterFields: string[]) => {
248
254
  and: any[];
@@ -261,6 +267,7 @@ declare const getUrlParams: (sortFieldInitial: string, sortOrderInitial: 1 | -1)
261
267
  };
262
268
  type SortingResult = any[];
263
269
  declare function buildSortingWithFilters(filters: Record<string, any>, sortField?: string, order?: number): SortingResult;
270
+ declare const isSpecialMatchMode: (matchMode?: string) => boolean;
264
271
 
265
272
  interface LeafcodeTheme {
266
273
  colors: {
@@ -353,4 +360,4 @@ declare const LeafcodeThemeProvider: ({ children, theme, }: LeafcodeThemeProvide
353
360
 
354
361
  declare const defaultTheme: LeafcodeTheme;
355
362
 
356
- export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, Input, InputAutoComplete, type InputAutoCompleteProps, InputSelect, LeafcodeThemeProvider, ModalBase, type PaginatedResponse$1 as PaginatedResponse, SelectFilterTemplate, type ServiceParams, TextArea, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, defaultTheme, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsNumber, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getNullable, getUrlParams, mapPrimeToBackendFilters };
363
+ export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, Input, InputAutoComplete, type InputAutoCompleteProps, InputSelect, LeafcodeThemeProvider, ModalBase, type PaginatedResponse$1 as PaginatedResponse, SelectFilterTemplate, type ServiceParams, TextArea, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, defaultTheme, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsNumber, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getNullable, getNullableCollection, getUrlParams, isSpecialMatchMode, mapPrimeToBackendFilters };
package/dist/index.d.ts CHANGED
@@ -207,7 +207,7 @@ interface IItemProps {
207
207
 
208
208
  declare const DateFilterTemplate: (options: any, mask?: (value: Date) => string) => react_jsx_runtime.JSX.Element;
209
209
  declare const DateTimeFilterTemplate: (options: any, mask?: (date: Date) => string) => react_jsx_runtime.JSX.Element;
210
- declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
210
+ declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => false | react_jsx_runtime.JSX.Element;
211
211
  declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
212
212
  declare const CustomFilterElement: (options: any, isLanguagePtBr?: boolean) => false | react_jsx_runtime.JSX.Element;
213
213
 
@@ -218,24 +218,26 @@ declare const customMatchModes: {
218
218
  notEmpty: string;
219
219
  dateBeforeAndEquals: string;
220
220
  dateAfterAndEquals: string;
221
+ any: string;
222
+ none: string;
221
223
  };
222
- declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
224
+ declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean, isNullable?: boolean, isCollection?: boolean) => {
223
225
  label: string;
224
226
  value: string;
225
227
  }[];
226
- declare const getDefaultFilterMatchOptionsNumber: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
228
+ declare const getDefaultFilterMatchOptionsNumber: (isLanguagePtBr?: boolean, isNullable?: boolean, isCollection?: boolean) => {
227
229
  label: string;
228
230
  value: string;
229
231
  }[];
230
- declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean, isNullable?: boolean) => {
232
+ declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean, isNullable?: boolean, isCollection?: boolean) => {
231
233
  label: string;
232
234
  value: string;
233
235
  }[];
234
- declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean, isNullable?: boolean) => {
236
+ declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean, isNullable?: boolean, isCollection?: boolean) => {
235
237
  label: string;
236
238
  value: string;
237
239
  }[];
238
- declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean, isNullable?: boolean) => {
240
+ declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean, isNullable?: boolean, isCollection?: boolean) => {
239
241
  label: string;
240
242
  value: string;
241
243
  }[];
@@ -243,6 +245,10 @@ declare const getNullable: (isLanguagePtBr: boolean) => {
243
245
  label: string;
244
246
  value: string;
245
247
  }[];
248
+ declare const getNullableCollection: (isLanguagePtBr: boolean) => {
249
+ label: string;
250
+ value: string;
251
+ }[];
246
252
 
247
253
  declare const mapPrimeToBackendFilters: (filters: any, globalFilterFields: string[]) => {
248
254
  and: any[];
@@ -261,6 +267,7 @@ declare const getUrlParams: (sortFieldInitial: string, sortOrderInitial: 1 | -1)
261
267
  };
262
268
  type SortingResult = any[];
263
269
  declare function buildSortingWithFilters(filters: Record<string, any>, sortField?: string, order?: number): SortingResult;
270
+ declare const isSpecialMatchMode: (matchMode?: string) => boolean;
264
271
 
265
272
  interface LeafcodeTheme {
266
273
  colors: {
@@ -353,4 +360,4 @@ declare const LeafcodeThemeProvider: ({ children, theme, }: LeafcodeThemeProvide
353
360
 
354
361
  declare const defaultTheme: LeafcodeTheme;
355
362
 
356
- export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, Input, InputAutoComplete, type InputAutoCompleteProps, InputSelect, LeafcodeThemeProvider, ModalBase, type PaginatedResponse$1 as PaginatedResponse, SelectFilterTemplate, type ServiceParams, TextArea, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, defaultTheme, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsNumber, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getNullable, getUrlParams, mapPrimeToBackendFilters };
363
+ export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, Input, InputAutoComplete, type InputAutoCompleteProps, InputSelect, LeafcodeThemeProvider, ModalBase, type PaginatedResponse$1 as PaginatedResponse, SelectFilterTemplate, type ServiceParams, TextArea, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, defaultTheme, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsNumber, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getNullable, getNullableCollection, getUrlParams, isSpecialMatchMode, mapPrimeToBackendFilters };