@acorex/core 22.1.8 → 22.2.0-next.1

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.
Files changed (65) hide show
  1. package/constants/README.md +7 -1
  2. package/fesm2022/acorex-core-components.mjs +3 -3
  3. package/fesm2022/acorex-core-components.mjs.map +1 -1
  4. package/fesm2022/acorex-core-config.mjs +3 -3
  5. package/fesm2022/acorex-core-config.mjs.map +1 -1
  6. package/fesm2022/acorex-core-constants.mjs +27809 -1
  7. package/fesm2022/acorex-core-constants.mjs.map +1 -1
  8. package/fesm2022/acorex-core-date-time.mjs +37 -31
  9. package/fesm2022/acorex-core-date-time.mjs.map +1 -1
  10. package/fesm2022/acorex-core-events.mjs +3 -3
  11. package/fesm2022/acorex-core-events.mjs.map +1 -1
  12. package/fesm2022/acorex-core-file.mjs +53 -46
  13. package/fesm2022/acorex-core-file.mjs.map +1 -1
  14. package/fesm2022/acorex-core-format.mjs +19 -19
  15. package/fesm2022/acorex-core-format.mjs.map +1 -1
  16. package/fesm2022/acorex-core-full-screen.mjs +232 -59
  17. package/fesm2022/acorex-core-full-screen.mjs.map +1 -1
  18. package/fesm2022/acorex-core-icon.mjs +3 -3
  19. package/fesm2022/acorex-core-icon.mjs.map +1 -1
  20. package/fesm2022/acorex-core-image.mjs +3 -3
  21. package/fesm2022/acorex-core-image.mjs.map +1 -1
  22. package/fesm2022/acorex-core-locale.mjs +10 -10
  23. package/fesm2022/acorex-core-locale.mjs.map +1 -1
  24. package/fesm2022/acorex-core-memoize.mjs.map +1 -1
  25. package/fesm2022/acorex-core-network.mjs +3 -3
  26. package/fesm2022/acorex-core-network.mjs.map +1 -1
  27. package/fesm2022/acorex-core-pipes.mjs +3 -3
  28. package/fesm2022/acorex-core-pipes.mjs.map +1 -1
  29. package/fesm2022/acorex-core-platform.mjs +4 -3
  30. package/fesm2022/acorex-core-platform.mjs.map +1 -1
  31. package/fesm2022/acorex-core-storage.mjs +9 -9
  32. package/fesm2022/acorex-core-storage.mjs.map +1 -1
  33. package/fesm2022/acorex-core-theme-builder.mjs +10 -3
  34. package/fesm2022/acorex-core-theme-builder.mjs.map +1 -1
  35. package/fesm2022/acorex-core-translation.mjs +16 -16
  36. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  37. package/fesm2022/acorex-core-utils.mjs +6 -6
  38. package/fesm2022/acorex-core-utils.mjs.map +1 -1
  39. package/fesm2022/acorex-core-validation.mjs +40 -40
  40. package/fesm2022/acorex-core-validation.mjs.map +1 -1
  41. package/fesm2022/acorex-core-z-index.mjs +3 -3
  42. package/fesm2022/acorex-core-z-index.mjs.map +1 -1
  43. package/fesm2022/acorex-core.mjs.map +1 -1
  44. package/i18n/en-AU/acorex.json +149 -4
  45. package/i18n/en-US/acorex.json +168 -4
  46. package/i18n/fa-IR/acorex.json +168 -4
  47. package/package.json +2 -1
  48. package/types/acorex-core-components.d.ts +1 -1
  49. package/types/acorex-core-config.d.ts +1 -1
  50. package/types/acorex-core-constants.d.ts +58 -2
  51. package/types/acorex-core-date-time.d.ts +6 -5
  52. package/types/acorex-core-events.d.ts +1 -1
  53. package/types/acorex-core-file.d.ts +12 -11
  54. package/types/acorex-core-format.d.ts +3 -3
  55. package/types/acorex-core-full-screen.d.ts +67 -18
  56. package/types/acorex-core-icon.d.ts +1 -1
  57. package/types/acorex-core-image.d.ts +1 -1
  58. package/types/acorex-core-locale.d.ts +2 -2
  59. package/types/acorex-core-network.d.ts +1 -1
  60. package/types/acorex-core-platform.d.ts +1 -1
  61. package/types/acorex-core-storage.d.ts +3 -3
  62. package/types/acorex-core-translation.d.ts +1 -1
  63. package/types/acorex-core-utils.d.ts +2 -2
  64. package/types/acorex-core-validation.d.ts +12 -12
  65. package/types/acorex-core-z-index.d.ts +1 -1
@@ -1273,10 +1273,10 @@ class AXCalendarService {
1273
1273
  calendar: calendar.name(),
1274
1274
  });
1275
1275
  }
1276
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1277
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
1276
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1277
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
1278
1278
  }
1279
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXCalendarService, decorators: [{
1279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXCalendarService, decorators: [{
1280
1280
  type: Injectable,
1281
1281
  args: [{ providedIn: 'root' }]
1282
1282
  }], ctorParameters: () => [] });
@@ -1300,10 +1300,10 @@ class AXDateTimePipe {
1300
1300
  const val = this._calendarService.convert(value, calendar.name());
1301
1301
  return this.formatService.format(val, 'datetime', format);
1302
1302
  }
1303
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1304
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
1303
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1304
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
1305
1305
  }
1306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimePipe, decorators: [{
1306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimePipe, decorators: [{
1307
1307
  type: Pipe,
1308
1308
  args: [{ name: 'axDate' }]
1309
1309
  }] });
@@ -1348,10 +1348,10 @@ class AXDateFormatter {
1348
1348
  .convert(value, effectiveOptions.calendar)
1349
1349
  .format(format, { locale: effectiveOptions.locale });
1350
1350
  }
1351
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1352
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateFormatter }); }
1351
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1352
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateFormatter }); }
1353
1353
  }
1354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateFormatter, decorators: [{
1354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateFormatter, decorators: [{
1355
1355
  type: Injectable
1356
1356
  }] });
1357
1357
 
@@ -1405,10 +1405,10 @@ class AXDateTimeFormatter {
1405
1405
  .convert(value, effectiveOptions.calendar)
1406
1406
  .format(format, { locale: effectiveOptions.locale });
1407
1407
  }
1408
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1409
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeFormatter }); }
1408
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1409
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeFormatter }); }
1410
1410
  }
1411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
1411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
1412
1412
  type: Injectable
1413
1413
  }] });
1414
1414
 
@@ -1458,7 +1458,7 @@ class AXTimeDurationFormatter {
1458
1458
  // Join the parts according to the format
1459
1459
  return formattedTime.join(format.includes('ms') || format.includes('MS') ? ':' : ':');
1460
1460
  }
1461
- async millisecondsToMask(ms, startUnit = 'YEAR', endUnit = 'MILLISECOND', label = false, maskDigits = '00:00:00:00:00:00:00:000', padZero = false) {
1461
+ async millisecondsToMask(ms, startUnit = 'YEAR', endUnit = 'MILLISECOND', label = false, maskDigits = '00:00:00:00:00:00:00:000', padZero = false, sequence = 'descending') {
1462
1462
  if (ms <= 0)
1463
1463
  return '';
1464
1464
  const yearDigits = maskDigits.split(':')[0];
@@ -1496,10 +1496,12 @@ class AXTimeDurationFormatter {
1496
1496
  ];
1497
1497
  const startIndex = units.findIndex((u) => u.key === startUnit.toUpperCase());
1498
1498
  const endIndex = units.findIndex((u) => u.key === endUnit.toUpperCase());
1499
- if (startIndex === -1 || endIndex === -1 || startIndex > endIndex) {
1499
+ if (startIndex === -1 || endIndex === -1) {
1500
1500
  throw new Error('Invalid time unit range');
1501
1501
  }
1502
- const limitedUnits = units.slice(startIndex, endIndex + 1);
1502
+ const from = Math.min(startIndex, endIndex);
1503
+ const to = Math.max(startIndex, endIndex);
1504
+ const limitedUnits = units.slice(from, to + 1);
1503
1505
  let remainingMs = ms;
1504
1506
  const result = [];
1505
1507
  for (let i = 0; i < limitedUnits.length; i++) {
@@ -1517,24 +1519,28 @@ class AXTimeDurationFormatter {
1517
1519
  : `${padZero ? unitValue.toString().padStart(unit.digits.length, '0') : unitValue}`;
1518
1520
  result.push(displayValue);
1519
1521
  }
1522
+ let orderedResult = result;
1523
+ if (sequence === 'ascending') {
1524
+ orderedResult = [...result].reverse();
1525
+ }
1520
1526
  const separator = label ? ' : ' : ':';
1521
1527
  const reverseSeparator = label ? ' : ' : ':';
1522
1528
  if (label) {
1523
1529
  if (this.translationService.getActiveLang() === 'fa-IR') {
1524
- return result.reverse().join(reverseSeparator);
1530
+ return orderedResult.reverse().join(reverseSeparator);
1525
1531
  }
1526
1532
  else {
1527
- return result.join(separator);
1533
+ return orderedResult.join(separator);
1528
1534
  }
1529
1535
  }
1530
1536
  else {
1531
- return result.join(separator);
1537
+ return orderedResult.join(separator);
1532
1538
  }
1533
1539
  }
1534
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1535
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeDurationFormatter }); }
1540
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1541
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeDurationFormatter }); }
1536
1542
  }
1537
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
1543
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
1538
1544
  type: Injectable
1539
1545
  }] });
1540
1546
 
@@ -1578,10 +1584,10 @@ class AXTimeFormatter {
1578
1584
  .convert(value, effectiveOptions.calendar)
1579
1585
  .format(format, { locale: effectiveOptions.locale });
1580
1586
  }
1581
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1582
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeFormatter }); }
1587
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1588
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeFormatter }); }
1583
1589
  }
1584
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeFormatter, decorators: [{
1590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeFormatter, decorators: [{
1585
1591
  type: Injectable
1586
1592
  }] });
1587
1593
 
@@ -1703,21 +1709,21 @@ class AXTimeLeftFormatter {
1703
1709
  return 'Invalid format';
1704
1710
  }
1705
1711
  }
1706
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1707
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeLeftFormatter }); }
1712
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1713
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeLeftFormatter }); }
1708
1714
  }
1709
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
1715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
1710
1716
  type: Injectable
1711
1717
  }] });
1712
1718
 
1713
1719
  class AXDateTimeModule {
1714
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1715
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
1716
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
1720
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1721
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
1722
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
1717
1723
  formatters: [AXDateTimeFormatter, AXDateFormatter, AXTimeFormatter, AXTimeLeftFormatter, AXTimeDurationFormatter],
1718
1724
  })] }); }
1719
1725
  }
1720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXDateTimeModule, decorators: [{
1726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, decorators: [{
1721
1727
  type: NgModule,
1722
1728
  args: [{
1723
1729
  imports: [