monkey-front-core 0.0.147 → 0.0.148

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.
@@ -239,14 +239,14 @@ class MonkeyEcxUtils {
239
239
  }
240
240
  }
241
241
 
242
- const moment$3 = moment_;
242
+ const moment$4 = moment_;
243
243
  class MonkeyEcxFormatDateTimelapsePipe {
244
244
  transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
245
245
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
246
246
  return '';
247
- let stillUtc = moment$3.default.utc(date).toDate();
247
+ let stillUtc = moment$4.default.utc(date).toDate();
248
248
  if (!useUtc)
249
- stillUtc = moment$3.default(date).toDate();
249
+ stillUtc = moment$4.default(date).toDate();
250
250
  if (date.toString().indexOf(':') <= -1) {
251
251
  if (typeof date === 'string') {
252
252
  stillUtc = date;
@@ -255,7 +255,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
255
255
  }
256
256
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
257
257
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
258
- return `${moment$3.default(stillUtc, formatFrom).format(formatTo)}`;
258
+ return `${moment$4.default(stillUtc, formatFrom).format(formatTo)}`;
259
259
  }
260
260
  }
261
261
  MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -263,7 +263,7 @@ MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12
263
263
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
264
264
  type: Pipe,
265
265
  args: [{
266
- name: 'monkeyecxFormatDateTimelapse',
266
+ name: 'monkeyecxFormatDateTimelapse'
267
267
  }]
268
268
  }] });
269
269
 
@@ -545,7 +545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
545
545
  }]
546
546
  }] });
547
547
 
548
- const moment$2 = moment_;
548
+ const moment$3 = moment_;
549
549
  class MonkeyEcxFormatDateGroupPipe {
550
550
  constructor(injector) {
551
551
  this.injector = injector;
@@ -556,12 +556,12 @@ class MonkeyEcxFormatDateGroupPipe {
556
556
  format(date) {
557
557
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
558
558
  return '';
559
- let stillUtc = moment$2.default.utc(date).toDate();
559
+ let stillUtc = moment$3.default.utc(date).toDate();
560
560
  if (date.toString()?.indexOf(':') <= -1) {
561
561
  stillUtc = date;
562
562
  }
563
563
  const formatFrom = 'YYYY/MM/DD';
564
- const fmt = moment$2.default(stillUtc, formatFrom).locale(this.lang);
564
+ const fmt = moment$3.default(stillUtc, formatFrom).locale(this.lang);
565
565
  const dayFormated = fmt.format('DD/');
566
566
  const monthFormated = MonkeyEcxUtils.capitalize(fmt.format('MMMM'));
567
567
  const yearFormated = fmt.format('YYYY');
@@ -586,15 +586,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
586
586
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
587
587
 
588
588
  /* eslint-disable max-classes-per-file */
589
- const moment$1 = moment_;
589
+ const moment$2 = moment_;
590
590
  class DateValidator {
591
591
  static do(control) {
592
592
  if (!control.parent || !control)
593
593
  return null;
594
594
  if (control && control.value) {
595
595
  const dateFormat = 'MM-DD-YYYY';
596
- if (!moment$1
597
- .default(moment$1.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
596
+ if (!moment$2
597
+ .default(moment$2.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
598
598
  .isValid()) {
599
599
  return {
600
600
  invalidDate: true,
@@ -899,7 +899,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
899
899
  hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
900
900
  });
901
901
 
902
- const moment = moment_;
902
+ const moment$1 = moment_;
903
903
  const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
904
904
  function isEmptyInputValue(value) {
905
905
  return value == null || value.length === 0;
@@ -1041,8 +1041,8 @@ function dateValidator(control) {
1041
1041
  if (!control.parent || !control || isEmptyInputValue(control.value))
1042
1042
  return null;
1043
1043
  const dateFormat = 'MM-DD-YYYY';
1044
- if (!moment
1045
- .default(moment.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
1044
+ if (!moment$1
1045
+ .default(moment$1.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
1046
1046
  .isValid()) {
1047
1047
  return {
1048
1048
  invalidDate: true,
@@ -1127,6 +1127,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1127
1127
  }]
1128
1128
  }] });
1129
1129
 
1130
+ class MonkeyEcxFormatBeaufityJSONPipe {
1131
+ constructor() {
1132
+ // not to do
1133
+ }
1134
+ transform(value) {
1135
+ const jsonLine = /^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm;
1136
+ const replacer = (match, pIndent, pKey, pVal, pEnd) => {
1137
+ const key = '<span class="json-key" style="color: brown">';
1138
+ const val = '<span class="json-value" style="color: navy">';
1139
+ const str = '<span class="json-string" style="color: olive">';
1140
+ let r = pIndent || '';
1141
+ if (pKey) {
1142
+ r = `${r + key + pKey.replace(/[": ]/g, '')}</span>: `;
1143
+ }
1144
+ if (pVal) {
1145
+ r = `${r + (pVal[0] === '"' ? str : val) + pVal}</span>`;
1146
+ }
1147
+ return r + (pEnd || '');
1148
+ };
1149
+ return JSON.stringify(value, null, 3)
1150
+ .replace(/&/g, '&amp;')
1151
+ .replace(/\\"/g, '&quot;')
1152
+ .replace(/</g, '&lt;')
1153
+ .replace(/>/g, '&gt;')
1154
+ .replace(jsonLine, replacer);
1155
+ }
1156
+ }
1157
+ MonkeyEcxFormatBeaufityJSONPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatBeaufityJSONPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1158
+ MonkeyEcxFormatBeaufityJSONPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatBeaufityJSONPipe, name: "monkeyecxFormatBeautifyJSON" });
1159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatBeaufityJSONPipe, decorators: [{
1160
+ type: Pipe,
1161
+ args: [{
1162
+ name: 'monkeyecxFormatBeautifyJSON'
1163
+ }]
1164
+ }], ctorParameters: function () { return []; } });
1165
+
1166
+ const moment = moment_;
1167
+ class MonkeyEcxFormatDateUnixTimelapsePipe {
1168
+ transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
1169
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
1170
+ return '';
1171
+ let stillUtc = moment.default.utc(date).toDate();
1172
+ if (!useUtc)
1173
+ stillUtc = moment.default(date).toDate();
1174
+ if (moment.default
1175
+ .utc(date)
1176
+ .toDate()
1177
+ .toLocaleString()
1178
+ .indexOf(':') <= -1) {
1179
+ if (typeof date === 'string') {
1180
+ stillUtc = date;
1181
+ showTime = false;
1182
+ }
1183
+ }
1184
+ const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
1185
+ const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
1186
+ return `${moment.default(stillUtc, formatFrom).format(formatTo)}`;
1187
+ }
1188
+ }
1189
+ MonkeyEcxFormatDateUnixTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1190
+ MonkeyEcxFormatDateUnixTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, name: "monkeyecxFormatDateUnixTimelapse" });
1191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, decorators: [{
1192
+ type: Pipe,
1193
+ args: [{
1194
+ name: 'monkeyecxFormatDateUnixTimelapse'
1195
+ }]
1196
+ }] });
1197
+
1130
1198
  class MonkeyEcxPipesModule {
1131
1199
  }
1132
1200
  MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1144,7 +1212,9 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
1144
1212
  MonkeyEcxFormatValue,
1145
1213
  MonkeyEcxFormatZipCodePipe,
1146
1214
  MonkeyEcxTextTruncatePipe,
1147
- MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
1215
+ MonkeyEcxTruncateQtdPipe,
1216
+ MonkeyEcxFormatBeaufityJSONPipe,
1217
+ MonkeyEcxFormatDateUnixTimelapsePipe], exports: [MonkeyEcxDisplayFirstNamePipe,
1148
1218
  MonkeyEcxFormatAddressPipe,
1149
1219
  MonkeyEcxFormatCurrencyPipe,
1150
1220
  MonkeyEcxFormatDateTimelapsePipe,
@@ -1158,7 +1228,9 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
1158
1228
  MonkeyEcxFormatValue,
1159
1229
  MonkeyEcxFormatZipCodePipe,
1160
1230
  MonkeyEcxTextTruncatePipe,
1161
- MonkeyEcxTruncateQtdPipe] });
1231
+ MonkeyEcxTruncateQtdPipe,
1232
+ MonkeyEcxFormatBeaufityJSONPipe,
1233
+ MonkeyEcxFormatDateUnixTimelapsePipe] });
1162
1234
  MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
1163
1235
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
1164
1236
  type: NgModule,
@@ -1179,6 +1251,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1179
1251
  MonkeyEcxFormatZipCodePipe,
1180
1252
  MonkeyEcxTextTruncatePipe,
1181
1253
  MonkeyEcxTruncateQtdPipe,
1254
+ MonkeyEcxFormatBeaufityJSONPipe,
1255
+ MonkeyEcxFormatDateUnixTimelapsePipe
1182
1256
  ],
1183
1257
  exports: [
1184
1258
  MonkeyEcxDisplayFirstNamePipe,
@@ -1196,8 +1270,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1196
1270
  MonkeyEcxFormatZipCodePipe,
1197
1271
  MonkeyEcxTextTruncatePipe,
1198
1272
  MonkeyEcxTruncateQtdPipe,
1273
+ MonkeyEcxFormatBeaufityJSONPipe,
1274
+ MonkeyEcxFormatDateUnixTimelapsePipe
1199
1275
  ],
1200
- providers: [CurrencyPipe],
1276
+ providers: [CurrencyPipe]
1201
1277
  }]
1202
1278
  }] });
1203
1279
 
@@ -4309,7 +4385,11 @@ class MonkeyEcxSpecificationSearch {
4309
4385
  const filters = self[field]?.split(',')?.map((filter) => {
4310
4386
  if (!filter)
4311
4387
  return null;
4312
- return { [field]: { [op]: addSingleQuotes ? `'${filter}'` : `${filter}` } };
4388
+ return {
4389
+ [field]: {
4390
+ [op]: addSingleQuotes ? `'${filter}'` : `${filter}`
4391
+ }
4392
+ };
4313
4393
  }).filter((val) => { return val; });
4314
4394
  return filters || [];
4315
4395
  }
@@ -4372,5 +4452,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4372
4452
  * Generated bundle index. Do not edit.
4373
4453
  */
4374
4454
 
4375
- export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, 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, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, 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 };
4455
+ export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, 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 };
4376
4456
  //# sourceMappingURL=monkey-front-core.mjs.map