monkey-front-core 0.0.48 → 0.0.49

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.
@@ -1167,7 +1167,7 @@ function emailValidator(control) {
1167
1167
  if (test)
1168
1168
  return null;
1169
1169
  return {
1170
- email: true
1170
+ email: true,
1171
1171
  };
1172
1172
  }
1173
1173
  function dateRangeValidator(control) {
@@ -1179,7 +1179,7 @@ function dateRangeValidator(control) {
1179
1179
  (!MonkeyEcxUtils.persistNullEmptyUndefined(dates?.startDate) ||
1180
1180
  !MonkeyEcxUtils.persistNullEmptyUndefined(dates?.endDate))) {
1181
1181
  return {
1182
- dateRange: true
1182
+ dateRange: true,
1183
1183
  };
1184
1184
  }
1185
1185
  return null;
@@ -1190,7 +1190,7 @@ function registerValidator(control, type) {
1190
1190
  }
1191
1191
  if (control && control.value !== `#MONKEY${type}`.toUpperCase()) {
1192
1192
  return {
1193
- invalidUnlockRegister: true
1193
+ invalidUnlockRegister: true,
1194
1194
  };
1195
1195
  }
1196
1196
  return null;
@@ -1214,7 +1214,7 @@ function dateStartEndValidator(control) {
1214
1214
  return null;
1215
1215
  if (dateStart > dateEnd) {
1216
1216
  return {
1217
- dateStartMustBeLessThanAnd: true
1217
+ dateStartMustBeLessThanAnd: true,
1218
1218
  };
1219
1219
  }
1220
1220
  return null;
@@ -1224,7 +1224,7 @@ function urlValidator(control) {
1224
1224
  return null;
1225
1225
  if (!MonkeyEcxUtils.isValidUrl(control.value)) {
1226
1226
  return {
1227
- url: true
1227
+ url: true,
1228
1228
  };
1229
1229
  }
1230
1230
  return null;
@@ -1240,7 +1240,7 @@ function passwordConfirmValidator(control) {
1240
1240
  if (password === passwordConfirm)
1241
1241
  return null;
1242
1242
  return {
1243
- passwordsNotMatching: true
1243
+ passwordsNotMatching: true,
1244
1244
  };
1245
1245
  }
1246
1246
  function trueValidator(control) {
@@ -1249,7 +1249,7 @@ function trueValidator(control) {
1249
1249
  if (control && control.value !== false)
1250
1250
  return null;
1251
1251
  return {
1252
- invalidTrue: true
1252
+ invalidTrue: true,
1253
1253
  };
1254
1254
  }
1255
1255
  function comboValidator(control) {
@@ -1258,7 +1258,7 @@ function comboValidator(control) {
1258
1258
  if (control && control.value !== '0')
1259
1259
  return null;
1260
1260
  return {
1261
- invalidCombo: true
1261
+ invalidCombo: true,
1262
1262
  };
1263
1263
  }
1264
1264
  function zipCodeValidator(control) {
@@ -1267,7 +1267,7 @@ function zipCodeValidator(control) {
1267
1267
  if (control && control.value) {
1268
1268
  if (!MonkeyEcxUtils.isValidZipCode(control.value)) {
1269
1269
  return {
1270
- invalidZipCode: true
1270
+ invalidZipCode: true,
1271
1271
  };
1272
1272
  }
1273
1273
  }
@@ -1279,14 +1279,14 @@ function documentValidator(control, country) {
1279
1279
  if (country === 'BR') {
1280
1280
  if (!MonkeyEcxUtils.isCPFCNPJValid(control.value)) {
1281
1281
  return {
1282
- invalidCpfCnpj: true
1282
+ invalidCpfCnpj: true,
1283
1283
  };
1284
1284
  }
1285
1285
  }
1286
1286
  else if (country === 'CL') {
1287
1287
  if (!MonkeyEcxUtils.isValidRUT(control.value)) {
1288
1288
  return {
1289
- invalidCpfCnpj: true
1289
+ invalidCpfCnpj: true,
1290
1290
  };
1291
1291
  }
1292
1292
  }
@@ -1298,7 +1298,17 @@ function dateValidator(control) {
1298
1298
  const dateFormat = 'MM-DD-YYYY';
1299
1299
  if (!moment(moment(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true).isValid()) {
1300
1300
  return {
1301
- invalidDate: true
1301
+ invalidDate: true,
1302
+ };
1303
+ }
1304
+ return null;
1305
+ }
1306
+ function valueGreaterThanZero(control) {
1307
+ if (!control.parent || !control || isEmptyInputValue(control.value))
1308
+ return null;
1309
+ if (control && `${control?.value}` === '0') {
1310
+ return {
1311
+ invalidValueGreaterThanZero: true,
1302
1312
  };
1303
1313
  }
1304
1314
  return null;
@@ -1343,6 +1353,9 @@ class Validators {
1343
1353
  static date(control) {
1344
1354
  return dateValidator(control);
1345
1355
  }
1356
+ static greaterThanZero(control) {
1357
+ return dateValidator(control);
1358
+ }
1346
1359
  }
1347
1360
 
1348
1361
  /* eslint-disable object-curly-newline */
@@ -4221,5 +4234,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4221
4234
  * Generated bundle index. Do not edit.
4222
4235
  */
4223
4236
 
4224
- export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, zipCodeValidator };
4237
+ export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
4225
4238
  //# sourceMappingURL=monkey-front-core.mjs.map