@charlesgomes/leafcode-shared-lib-react 1.0.25 → 1.0.26
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +32 -3
- package/dist/index.mjs +29 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -100,6 +100,10 @@ declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean) =>
|
|
|
100
100
|
label: string;
|
|
101
101
|
value: string;
|
|
102
102
|
}[];
|
|
103
|
+
declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean) => {
|
|
104
|
+
label: string;
|
|
105
|
+
value: FilterMatchMode;
|
|
106
|
+
}[];
|
|
103
107
|
declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean) => {
|
|
104
108
|
label: string;
|
|
105
109
|
value: FilterMatchMode;
|
|
@@ -108,5 +112,9 @@ declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean) => {
|
|
|
108
112
|
label: string;
|
|
109
113
|
value: string;
|
|
110
114
|
}[];
|
|
115
|
+
declare const getDefaultFilterMatchOptionsEnumNotNullable: (isLanguagePtBr: boolean) => {
|
|
116
|
+
label: string;
|
|
117
|
+
value: FilterMatchMode;
|
|
118
|
+
}[];
|
|
111
119
|
|
|
112
|
-
export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsString };
|
|
120
|
+
export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsEnumNotNullable, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray };
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,10 @@ declare const getDefaultFilterMatchOptionsString: (isLanguagePtBr?: boolean) =>
|
|
|
100
100
|
label: string;
|
|
101
101
|
value: string;
|
|
102
102
|
}[];
|
|
103
|
+
declare const getDefaultFilterMatchOptionsStringArray: (isLanguagePtBr?: boolean) => {
|
|
104
|
+
label: string;
|
|
105
|
+
value: FilterMatchMode;
|
|
106
|
+
}[];
|
|
103
107
|
declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean) => {
|
|
104
108
|
label: string;
|
|
105
109
|
value: FilterMatchMode;
|
|
@@ -108,5 +112,9 @@ declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean) => {
|
|
|
108
112
|
label: string;
|
|
109
113
|
value: string;
|
|
110
114
|
}[];
|
|
115
|
+
declare const getDefaultFilterMatchOptionsEnumNotNullable: (isLanguagePtBr: boolean) => {
|
|
116
|
+
label: string;
|
|
117
|
+
value: FilterMatchMode;
|
|
118
|
+
}[];
|
|
111
119
|
|
|
112
|
-
export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsString };
|
|
120
|
+
export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsEnumNotNullable, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray };
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,9 @@ __export(index_exports, {
|
|
|
41
41
|
ValueFilterTemplate: () => ValueFilterTemplate,
|
|
42
42
|
getDefaultFilterMatchOptionsDate: () => getDefaultFilterMatchOptionsDate,
|
|
43
43
|
getDefaultFilterMatchOptionsEnum: () => getDefaultFilterMatchOptionsEnum,
|
|
44
|
-
|
|
44
|
+
getDefaultFilterMatchOptionsEnumNotNullable: () => getDefaultFilterMatchOptionsEnumNotNullable,
|
|
45
|
+
getDefaultFilterMatchOptionsString: () => getDefaultFilterMatchOptionsString,
|
|
46
|
+
getDefaultFilterMatchOptionsStringArray: () => getDefaultFilterMatchOptionsStringArray
|
|
45
47
|
});
|
|
46
48
|
module.exports = __toCommonJS(index_exports);
|
|
47
49
|
|
|
@@ -1131,7 +1133,8 @@ var import_api3 = require("primereact/api");
|
|
|
1131
1133
|
var customMatchModes = {
|
|
1132
1134
|
notStartsWith: "notStartsWith",
|
|
1133
1135
|
notEndsWith: "notEndsWith",
|
|
1134
|
-
empty: "empty"
|
|
1136
|
+
empty: "empty",
|
|
1137
|
+
notEmpty: "notEmpty"
|
|
1135
1138
|
};
|
|
1136
1139
|
var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
|
|
1137
1140
|
{
|
|
@@ -1171,6 +1174,16 @@ var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
|
|
|
1171
1174
|
value: customMatchModes.empty
|
|
1172
1175
|
}
|
|
1173
1176
|
];
|
|
1177
|
+
var getDefaultFilterMatchOptionsStringArray = (isLanguagePtBr = true) => [
|
|
1178
|
+
{
|
|
1179
|
+
label: isLanguagePtBr ? "Cont\xE9m" : "Contains",
|
|
1180
|
+
value: import_api3.FilterMatchMode.CONTAINS
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
|
|
1184
|
+
value: import_api3.FilterMatchMode.NOT_CONTAINS
|
|
1185
|
+
}
|
|
1186
|
+
];
|
|
1174
1187
|
var getDefaultFilterMatchOptionsDate = (isLanguagePtBr) => [
|
|
1175
1188
|
{
|
|
1176
1189
|
label: isLanguagePtBr ? "Data antes de" : "Date before",
|
|
@@ -1193,6 +1206,20 @@ var getDefaultFilterMatchOptionsEnum = (isLanguagePtBr) => [
|
|
|
1193
1206
|
{
|
|
1194
1207
|
label: isLanguagePtBr ? "Vazio" : "Empty",
|
|
1195
1208
|
value: customMatchModes.empty
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
label: isLanguagePtBr ? "N\xE3o Vazio" : "NotEmpty",
|
|
1212
|
+
value: customMatchModes.notEmpty
|
|
1213
|
+
}
|
|
1214
|
+
];
|
|
1215
|
+
var getDefaultFilterMatchOptionsEnumNotNullable = (isLanguagePtBr) => [
|
|
1216
|
+
{
|
|
1217
|
+
label: isLanguagePtBr ? "Igual" : "Equals",
|
|
1218
|
+
value: import_api3.FilterMatchMode.EQUALS
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
label: isLanguagePtBr ? "Diferente" : "Not equals",
|
|
1222
|
+
value: import_api3.FilterMatchMode.NOT_EQUALS
|
|
1196
1223
|
}
|
|
1197
1224
|
];
|
|
1198
1225
|
|
|
@@ -1211,5 +1238,7 @@ var import_api4 = require("primereact/api");
|
|
|
1211
1238
|
ValueFilterTemplate,
|
|
1212
1239
|
getDefaultFilterMatchOptionsDate,
|
|
1213
1240
|
getDefaultFilterMatchOptionsEnum,
|
|
1214
|
-
|
|
1241
|
+
getDefaultFilterMatchOptionsEnumNotNullable,
|
|
1242
|
+
getDefaultFilterMatchOptionsString,
|
|
1243
|
+
getDefaultFilterMatchOptionsStringArray
|
|
1215
1244
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1084,7 +1084,8 @@ import { FilterMatchMode as FilterMatchMode3 } from "primereact/api";
|
|
|
1084
1084
|
var customMatchModes = {
|
|
1085
1085
|
notStartsWith: "notStartsWith",
|
|
1086
1086
|
notEndsWith: "notEndsWith",
|
|
1087
|
-
empty: "empty"
|
|
1087
|
+
empty: "empty",
|
|
1088
|
+
notEmpty: "notEmpty"
|
|
1088
1089
|
};
|
|
1089
1090
|
var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
|
|
1090
1091
|
{
|
|
@@ -1124,6 +1125,16 @@ var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
|
|
|
1124
1125
|
value: customMatchModes.empty
|
|
1125
1126
|
}
|
|
1126
1127
|
];
|
|
1128
|
+
var getDefaultFilterMatchOptionsStringArray = (isLanguagePtBr = true) => [
|
|
1129
|
+
{
|
|
1130
|
+
label: isLanguagePtBr ? "Cont\xE9m" : "Contains",
|
|
1131
|
+
value: FilterMatchMode3.CONTAINS
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
|
|
1135
|
+
value: FilterMatchMode3.NOT_CONTAINS
|
|
1136
|
+
}
|
|
1137
|
+
];
|
|
1127
1138
|
var getDefaultFilterMatchOptionsDate = (isLanguagePtBr) => [
|
|
1128
1139
|
{
|
|
1129
1140
|
label: isLanguagePtBr ? "Data antes de" : "Date before",
|
|
@@ -1146,6 +1157,20 @@ var getDefaultFilterMatchOptionsEnum = (isLanguagePtBr) => [
|
|
|
1146
1157
|
{
|
|
1147
1158
|
label: isLanguagePtBr ? "Vazio" : "Empty",
|
|
1148
1159
|
value: customMatchModes.empty
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
label: isLanguagePtBr ? "N\xE3o Vazio" : "NotEmpty",
|
|
1163
|
+
value: customMatchModes.notEmpty
|
|
1164
|
+
}
|
|
1165
|
+
];
|
|
1166
|
+
var getDefaultFilterMatchOptionsEnumNotNullable = (isLanguagePtBr) => [
|
|
1167
|
+
{
|
|
1168
|
+
label: isLanguagePtBr ? "Igual" : "Equals",
|
|
1169
|
+
value: FilterMatchMode3.EQUALS
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
label: isLanguagePtBr ? "Diferente" : "Not equals",
|
|
1173
|
+
value: FilterMatchMode3.NOT_EQUALS
|
|
1149
1174
|
}
|
|
1150
1175
|
];
|
|
1151
1176
|
|
|
@@ -1163,5 +1188,7 @@ export {
|
|
|
1163
1188
|
ValueFilterTemplate,
|
|
1164
1189
|
getDefaultFilterMatchOptionsDate,
|
|
1165
1190
|
getDefaultFilterMatchOptionsEnum,
|
|
1166
|
-
|
|
1191
|
+
getDefaultFilterMatchOptionsEnumNotNullable,
|
|
1192
|
+
getDefaultFilterMatchOptionsString,
|
|
1193
|
+
getDefaultFilterMatchOptionsStringArray
|
|
1167
1194
|
};
|