@charlesgomes/leafcode-shared-lib-react 1.0.20 → 1.0.21

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
@@ -104,5 +104,9 @@ declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean) => {
104
104
  label: string;
105
105
  value: FilterMatchMode;
106
106
  }[];
107
+ declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean) => {
108
+ label: string;
109
+ value: string;
110
+ }[];
107
111
 
108
- export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsString };
112
+ export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsString };
package/dist/index.d.ts CHANGED
@@ -104,5 +104,9 @@ declare const getDefaultFilterMatchOptionsDate: (isLanguagePtBr: boolean) => {
104
104
  label: string;
105
105
  value: FilterMatchMode;
106
106
  }[];
107
+ declare const getDefaultFilterMatchOptionsEnum: (isLanguagePtBr: boolean) => {
108
+ label: string;
109
+ value: string;
110
+ }[];
107
111
 
108
- export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsString };
112
+ export { Button, type ColumnCustom, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsString };
package/dist/index.js CHANGED
@@ -40,6 +40,7 @@ __export(index_exports, {
40
40
  SelectFilterTemplate: () => SelectFilterTemplate,
41
41
  ValueFilterTemplate: () => ValueFilterTemplate,
42
42
  getDefaultFilterMatchOptionsDate: () => getDefaultFilterMatchOptionsDate,
43
+ getDefaultFilterMatchOptionsEnum: () => getDefaultFilterMatchOptionsEnum,
43
44
  getDefaultFilterMatchOptionsString: () => getDefaultFilterMatchOptionsString
44
45
  });
45
46
  module.exports = __toCommonJS(index_exports);
@@ -1118,7 +1119,8 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1118
1119
  var import_api3 = require("primereact/api");
1119
1120
  var customMatchModes = {
1120
1121
  notStartsWith: "notStartsWith",
1121
- notEndsWith: "notEndsWith"
1122
+ notEndsWith: "notEndsWith",
1123
+ empty: "empty"
1122
1124
  };
1123
1125
  var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
1124
1126
  {
@@ -1152,6 +1154,10 @@ var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
1152
1154
  {
1153
1155
  label: isLanguagePtBr ? "N\xE3o termina com" : "Does not end with",
1154
1156
  value: customMatchModes.notEndsWith
1157
+ },
1158
+ {
1159
+ label: isLanguagePtBr ? "Vazio" : "Empty",
1160
+ value: customMatchModes.empty
1155
1161
  }
1156
1162
  ];
1157
1163
  var getDefaultFilterMatchOptionsDate = (isLanguagePtBr) => [
@@ -1164,6 +1170,20 @@ var getDefaultFilterMatchOptionsDate = (isLanguagePtBr) => [
1164
1170
  value: import_api3.FilterMatchMode.DATE_AFTER
1165
1171
  }
1166
1172
  ];
1173
+ var getDefaultFilterMatchOptionsEnum = (isLanguagePtBr) => [
1174
+ {
1175
+ label: isLanguagePtBr ? "Igual" : "Equals",
1176
+ value: import_api3.FilterMatchMode.EQUALS
1177
+ },
1178
+ {
1179
+ label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
1180
+ value: import_api3.FilterMatchMode.NOT_CONTAINS
1181
+ },
1182
+ {
1183
+ label: isLanguagePtBr ? "Vazio" : "Empty",
1184
+ value: customMatchModes.empty
1185
+ }
1186
+ ];
1167
1187
 
1168
1188
  // src/index.tsx
1169
1189
  var import_api4 = require("primereact/api");
@@ -1179,5 +1199,6 @@ var import_api4 = require("primereact/api");
1179
1199
  SelectFilterTemplate,
1180
1200
  ValueFilterTemplate,
1181
1201
  getDefaultFilterMatchOptionsDate,
1202
+ getDefaultFilterMatchOptionsEnum,
1182
1203
  getDefaultFilterMatchOptionsString
1183
1204
  });
package/dist/index.mjs CHANGED
@@ -1072,7 +1072,8 @@ var SelectFilterTemplate = (options, isLanguagePtBr = true, items = []) => {
1072
1072
  import { FilterMatchMode as FilterMatchMode3 } from "primereact/api";
1073
1073
  var customMatchModes = {
1074
1074
  notStartsWith: "notStartsWith",
1075
- notEndsWith: "notEndsWith"
1075
+ notEndsWith: "notEndsWith",
1076
+ empty: "empty"
1076
1077
  };
1077
1078
  var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
1078
1079
  {
@@ -1106,6 +1107,10 @@ var getDefaultFilterMatchOptionsString = (isLanguagePtBr = true) => [
1106
1107
  {
1107
1108
  label: isLanguagePtBr ? "N\xE3o termina com" : "Does not end with",
1108
1109
  value: customMatchModes.notEndsWith
1110
+ },
1111
+ {
1112
+ label: isLanguagePtBr ? "Vazio" : "Empty",
1113
+ value: customMatchModes.empty
1109
1114
  }
1110
1115
  ];
1111
1116
  var getDefaultFilterMatchOptionsDate = (isLanguagePtBr) => [
@@ -1118,6 +1123,20 @@ var getDefaultFilterMatchOptionsDate = (isLanguagePtBr) => [
1118
1123
  value: FilterMatchMode3.DATE_AFTER
1119
1124
  }
1120
1125
  ];
1126
+ var getDefaultFilterMatchOptionsEnum = (isLanguagePtBr) => [
1127
+ {
1128
+ label: isLanguagePtBr ? "Igual" : "Equals",
1129
+ value: FilterMatchMode3.EQUALS
1130
+ },
1131
+ {
1132
+ label: isLanguagePtBr ? "N\xE3o cont\xE9m" : "Does not contain",
1133
+ value: FilterMatchMode3.NOT_CONTAINS
1134
+ },
1135
+ {
1136
+ label: isLanguagePtBr ? "Vazio" : "Empty",
1137
+ value: customMatchModes.empty
1138
+ }
1139
+ ];
1121
1140
 
1122
1141
  // src/index.tsx
1123
1142
  import { FilterMatchMode as FilterMatchMode4, FilterOperator } from "primereact/api";
@@ -1132,5 +1151,6 @@ export {
1132
1151
  SelectFilterTemplate,
1133
1152
  ValueFilterTemplate,
1134
1153
  getDefaultFilterMatchOptionsDate,
1154
+ getDefaultFilterMatchOptionsEnum,
1135
1155
  getDefaultFilterMatchOptionsString
1136
1156
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",