@solcre-org/core-ui 2.15.45 → 2.16.0

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.
@@ -19,20 +19,20 @@
19
19
  "SUCCESS": "Success",
20
20
  "ERROR": "Error",
21
21
  "WARNING": "Warning",
22
- "INFO": "Info",
23
- "SUCCESS_CREATE": "Success create",
24
- "SUCCESS_UPDATE": "Success update",
25
- "SUCCESS_DELETE": "Success delete",
26
- "SUCCESS_CLOSE": "Success close",
27
- "SUCCESS_SAVE": "Success save",
28
- "SUCCESS_CANCEL": "Success cancel",
29
- "ERROR_CREATE": "Error create",
30
- "ERROR_UPDATE": "Error update",
31
- "ERROR_DELETE": "Error delete",
32
- "ERROR_CLOSE": "Error close",
33
- "ERROR_SAVE": "Error save",
34
- "ERROR_CANCEL": "Error cancel",
35
- "ERROR_FETCH": "Error fetch"
22
+ "INFO": "Information",
23
+ "SUCCESS_CREATE": "Successfully created",
24
+ "SUCCESS_UPDATE": "Successfully updated",
25
+ "SUCCESS_DELETE": "Successfully deactivated",
26
+ "SUCCESS_CLOSE": "Successfully closed",
27
+ "SUCCESS_SAVE": "Successfully saved",
28
+ "SUCCESS_CANCEL": "Successfully cancelled",
29
+ "ERROR_CREATE": "An error occurred while creating",
30
+ "ERROR_UPDATE": "An error occurred while updating",
31
+ "ERROR_DELETE": "An error occurred while deactivating",
32
+ "ERROR_CLOSE": "An error occurred while closing",
33
+ "ERROR_SAVE": "An error occurred while saving",
34
+ "ERROR_CANCEL": "An error occurred while cancelling",
35
+ "ERROR_FETCH": "An error occurred while fetching the data"
36
36
  },
37
37
  "select": {
38
38
  "placeholder": "Select an option"
@@ -8045,7 +8045,18 @@ class DateUtility {
8045
8045
  const yyyy = d.getUTCFullYear();
8046
8046
  const HH = this.pad2(d.getUTCHours());
8047
8047
  const MM = this.pad2(d.getUTCMinutes());
8048
+ const SS = this.pad2(d.getUTCSeconds());
8048
8049
  switch (pattern) {
8050
+ case 'YYYY-MM-DDTHH:mm:ssZ':
8051
+ const offsetMinutes = d.getTimezoneOffset();
8052
+ const offSign = offsetMinutes <= 0 ? '+' : '-';
8053
+ const abs = Math.abs(offsetMinutes);
8054
+ const offHH = this.pad2(Math.floor(abs / 60));
8055
+ const offMM = this.pad2(abs % 60);
8056
+ const offset = `${offSign}${offHH}:${offMM}`;
8057
+ return `${yyyy}-${mm}-${dd}T${HH}:${MM}:${SS}${offset}`;
8058
+ case 'YYYY-MM-DDTHH:mm:ss':
8059
+ return `${yyyy}-${mm}-${dd} ${HH}:${MM}:${SS}`;
8049
8060
  case 'DD/MM/YYYY HH:mm':
8050
8061
  return `${dd}/${mm}/${yyyy} ${HH}:${MM}`;
8051
8062
  case 'YYYY-MM-DD HH:mm':
@@ -13322,7 +13333,17 @@ class GenericTableComponent {
13322
13333
  }
13323
13334
  getFormattedValue(row, column) {
13324
13335
  const value = row[column.key];
13325
- return column.format ? column.format(value, row) : (value?.toString() || '');
13336
+ if (column.format) {
13337
+ const formatted = column.format(value, row);
13338
+ return this.isEmptyValue(formatted) ? '-' : formatted;
13339
+ }
13340
+ return this.isEmptyValue(value) ? '-' : value.toString();
13341
+ }
13342
+ isEmptyValue(value) {
13343
+ return value === null ||
13344
+ value === undefined ||
13345
+ value === '' ||
13346
+ (typeof value === 'string' && value.trim() === '');
13326
13347
  }
13327
13348
  hasAction(action) {
13328
13349
  return this.actions().some(config => config.action === action);
@@ -16389,12 +16410,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
16389
16410
  // Este archivo es generado automáticamente por scripts/update-version.js
16390
16411
  // No edites manualmente este archivo
16391
16412
  const VERSION = {
16392
- full: '2.15.45',
16413
+ full: '2.16.0',
16393
16414
  major: 2,
16394
- minor: 15,
16395
- patch: 45,
16396
- timestamp: '2025-12-02T13:27:03.712Z',
16397
- buildDate: '2/12/2025'
16415
+ minor: 16,
16416
+ patch: 0,
16417
+ timestamp: '2025-12-04T12:05:49.777Z',
16418
+ buildDate: '4/12/2025'
16398
16419
  };
16399
16420
 
16400
16421
  class MainNavComponent {