@charlesgomes/leafcode-shared-lib-react 1.0.8 → 1.0.10
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +9 -6
package/dist/index.d.mts
CHANGED
|
@@ -67,10 +67,15 @@ interface ColumnCustom<T> {
|
|
|
67
67
|
|
|
68
68
|
declare function DataTableAdvancedFilter<T extends object>({ queryKey, mutationFn, columns, initFilters, onNew, onEdit, onDelete, customActions, customActionsColums, disablePagination, sortFieldInitial, sortOrderInitial, isMultiSelectionMode, isLanguagePtBr, }: IDataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
69
69
|
|
|
70
|
+
interface IItemProps {
|
|
71
|
+
value: string;
|
|
72
|
+
label: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
declare const DateFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
|
|
71
76
|
declare const DateTimeFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
|
|
72
77
|
declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
|
|
73
|
-
declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean) => react_jsx_runtime.JSX.Element;
|
|
78
|
+
declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
|
|
74
79
|
|
|
75
80
|
declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean) => {
|
|
76
81
|
label: string;
|
|
@@ -81,9 +86,4 @@ declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean) => {
|
|
|
81
86
|
value: FilterMatchMode;
|
|
82
87
|
}[];
|
|
83
88
|
|
|
84
|
-
interface IItemProps {
|
|
85
|
-
value: string;
|
|
86
|
-
label: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
89
|
export { Botao, type BotaoProps, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsString };
|
package/dist/index.d.ts
CHANGED
|
@@ -67,10 +67,15 @@ interface ColumnCustom<T> {
|
|
|
67
67
|
|
|
68
68
|
declare function DataTableAdvancedFilter<T extends object>({ queryKey, mutationFn, columns, initFilters, onNew, onEdit, onDelete, customActions, customActionsColums, disablePagination, sortFieldInitial, sortOrderInitial, isMultiSelectionMode, isLanguagePtBr, }: IDataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
69
69
|
|
|
70
|
+
interface IItemProps {
|
|
71
|
+
value: string;
|
|
72
|
+
label: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
declare const DateFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
|
|
71
76
|
declare const DateTimeFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
|
|
72
77
|
declare const ValueFilterTemplate: (options: any, mask?: (value: any) => string | number) => react_jsx_runtime.JSX.Element;
|
|
73
|
-
declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean) => react_jsx_runtime.JSX.Element;
|
|
78
|
+
declare const SelectFilterTemplate: (options: any, isLanguagePtBr?: boolean, items?: IItemProps[]) => react_jsx_runtime.JSX.Element;
|
|
74
79
|
|
|
75
80
|
declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean) => {
|
|
76
81
|
label: string;
|
|
@@ -81,9 +86,4 @@ declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean) => {
|
|
|
81
86
|
value: FilterMatchMode;
|
|
82
87
|
}[];
|
|
83
88
|
|
|
84
|
-
interface IItemProps {
|
|
85
|
-
value: string;
|
|
86
|
-
label: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
89
|
export { Botao, type BotaoProps, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsString };
|
package/dist/index.js
CHANGED
|
@@ -934,8 +934,8 @@ var ValueFilterTemplate = (options, mask) => {
|
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
936
|
};
|
|
937
|
-
var SelectFilterTemplate = (options, isLanguagePtBr = true) => {
|
|
938
|
-
const selectOptions = [
|
|
937
|
+
var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
|
|
938
|
+
const selectOptions = items.length > 0 ? items : [
|
|
939
939
|
{ label: isLanguagePtBr ? "Todos" : "All", value: null },
|
|
940
940
|
{ label: isLanguagePtBr ? "Sim" : "Yes", value: true },
|
|
941
941
|
{ label: isLanguagePtBr ? "N\xE3o" : "No", value: false }
|
package/dist/index.mjs
CHANGED
|
@@ -889,8 +889,8 @@ var ValueFilterTemplate = (options, mask) => {
|
|
|
889
889
|
}
|
|
890
890
|
);
|
|
891
891
|
};
|
|
892
|
-
var SelectFilterTemplate = (options, isLanguagePtBr = true) => {
|
|
893
|
-
const selectOptions = [
|
|
892
|
+
var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
|
|
893
|
+
const selectOptions = items.length > 0 ? items : [
|
|
894
894
|
{ label: isLanguagePtBr ? "Todos" : "All", value: null },
|
|
895
895
|
{ label: isLanguagePtBr ? "Sim" : "Yes", value: true },
|
|
896
896
|
{ label: isLanguagePtBr ? "N\xE3o" : "No", value: false }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charlesgomes/leafcode-shared-lib-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Lib de componentes react",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.cjs"
|
|
13
13
|
},
|
|
14
|
-
"./table.css": "./dist/styles/table.css"
|
|
14
|
+
"./table.css": "./dist/styles/table.css",
|
|
15
|
+
"./button.css": "./dist/styles/button.css"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
18
|
"dist"
|
|
@@ -31,14 +32,14 @@
|
|
|
31
32
|
"access": "public"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"primereact": "^10.9.7",
|
|
35
35
|
"@tanstack/react-query": "^5.85.9",
|
|
36
|
+
"primereact": "^10.9.7",
|
|
36
37
|
"react": ">=17",
|
|
37
38
|
"react-dom": ">=17"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@tanstack/react-query": "^5.85.9",
|
|
41
41
|
"@tailwindcss/postcss": "^4.1.12",
|
|
42
|
+
"@tanstack/react-query": "^5.85.9",
|
|
42
43
|
"@types/react": "^19.1.12",
|
|
43
44
|
"@types/react-dom": "^19.1.9",
|
|
44
45
|
"@vitejs/plugin-react": "^5.0.2",
|
|
@@ -51,9 +52,11 @@
|
|
|
51
52
|
"dependencies": {
|
|
52
53
|
"@phosphor-icons/react": "^2.1.10",
|
|
53
54
|
"clsx": "^2.1.1",
|
|
55
|
+
"primereact": "^10.9.7",
|
|
56
|
+
"react": "^19.1.1",
|
|
57
|
+
"react-dom": "^19.1.1",
|
|
54
58
|
"react-select": "^5.10.2",
|
|
55
59
|
"react-tooltip": "^5.29.1",
|
|
56
|
-
"tailwind-merge": "^3.3.1"
|
|
57
|
-
"primereact": "^10.9.7"
|
|
60
|
+
"tailwind-merge": "^3.3.1"
|
|
58
61
|
}
|
|
59
62
|
}
|