@acorex/core 21.0.0-next.3 → 21.0.0-next.30

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 (43) hide show
  1. package/components/index.d.ts +14 -0
  2. package/date-time/index.d.ts +71 -0
  3. package/fesm2022/acorex-core-components.mjs +17 -3
  4. package/fesm2022/acorex-core-components.mjs.map +1 -1
  5. package/fesm2022/acorex-core-config.mjs +3 -3
  6. package/fesm2022/acorex-core-config.mjs.map +1 -1
  7. package/fesm2022/acorex-core-date-time.mjs +89 -67
  8. package/fesm2022/acorex-core-date-time.mjs.map +1 -1
  9. package/fesm2022/acorex-core-events.mjs +3 -3
  10. package/fesm2022/acorex-core-events.mjs.map +1 -1
  11. package/fesm2022/acorex-core-file.mjs +53 -10
  12. package/fesm2022/acorex-core-file.mjs.map +1 -1
  13. package/fesm2022/acorex-core-format.mjs +82 -32
  14. package/fesm2022/acorex-core-format.mjs.map +1 -1
  15. package/fesm2022/acorex-core-icon.mjs +3 -3
  16. package/fesm2022/acorex-core-icon.mjs.map +1 -1
  17. package/fesm2022/acorex-core-image.mjs +11 -3
  18. package/fesm2022/acorex-core-image.mjs.map +1 -1
  19. package/fesm2022/acorex-core-locale.mjs +43 -10
  20. package/fesm2022/acorex-core-locale.mjs.map +1 -1
  21. package/fesm2022/acorex-core-network.mjs +3 -3
  22. package/fesm2022/acorex-core-network.mjs.map +1 -1
  23. package/fesm2022/acorex-core-pipes.mjs +9 -3
  24. package/fesm2022/acorex-core-pipes.mjs.map +1 -1
  25. package/fesm2022/acorex-core-platform.mjs +24 -3
  26. package/fesm2022/acorex-core-platform.mjs.map +1 -1
  27. package/fesm2022/acorex-core-storage.mjs +40 -9
  28. package/fesm2022/acorex-core-storage.mjs.map +1 -1
  29. package/fesm2022/acorex-core-translation.mjs +16 -16
  30. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  31. package/fesm2022/acorex-core-utils.mjs +3 -3
  32. package/fesm2022/acorex-core-utils.mjs.map +1 -1
  33. package/fesm2022/acorex-core-validation.mjs +44 -40
  34. package/fesm2022/acorex-core-validation.mjs.map +1 -1
  35. package/file/index.d.ts +43 -0
  36. package/format/index.d.ts +54 -3
  37. package/image/index.d.ts +8 -0
  38. package/locale/index.d.ts +66 -0
  39. package/package.json +1 -1
  40. package/pipes/index.d.ts +6 -0
  41. package/platform/index.d.ts +21 -0
  42. package/storage/index.d.ts +31 -0
  43. package/validation/index.d.ts +4 -0
@@ -13,7 +13,21 @@ interface AXComponentOptions {
13
13
  declare class AXComponentService {
14
14
  private appRef;
15
15
  private getRootViewContainerRef;
16
+ /**
17
+ * Creates and inserts a component instance into the application's root ViewContainerRef.
18
+ *
19
+ * @typeParam T - Component class type
20
+ * @param content - Component type to instantiate
21
+ * @returns Promise<ComponentRef<T>> - Reference to the created component
22
+ */
16
23
  createFromComponent<T>(content: AXComponentType<T>): Promise<ComponentRef<T>>;
24
+ /**
25
+ * Creates and inserts an embedded view from a TemplateRef into the application's root ViewContainerRef.
26
+ *
27
+ * @typeParam T - Template context type
28
+ * @param content - TemplateRef to render
29
+ * @returns Promise<EmbeddedViewRef<T>> - Reference to the created embedded view
30
+ */
17
31
  createFromTemplate<T>(content: TemplateRef<T>): Promise<EmbeddedViewRef<T>>;
18
32
  static ɵfac: i0.ɵɵFactoryDeclaration<AXComponentService, never>;
19
33
  static ɵprov: i0.ɵɵInjectableDeclaration<AXComponentService>;
@@ -60,18 +60,88 @@ declare abstract class AXCalendar {
60
60
  constructor(config: AXCalendarConfig);
61
61
  get weekend(): number[];
62
62
  get weekdays(): number[];
63
+ /**
64
+ * Returns the name of the calendar system.
65
+ * @returns The calendar system name (e.g., 'gregorian', 'persian', 'islamic').
66
+ */
63
67
  abstract name(): string;
68
+ /**
69
+ * Returns the day of the month for the given date.
70
+ * @param date - The date to get the day of month from.
71
+ * @returns The day of the month (1-31).
72
+ */
64
73
  abstract dayOfMonth(date: Date): number;
74
+ /**
75
+ * Returns the day of the year for the given date.
76
+ * @param date - The date to get the day of year from.
77
+ * @returns The day of the year (1-365/366).
78
+ */
65
79
  abstract dayOfYear(date: Date): number;
80
+ /**
81
+ * Returns the day of the week for the given date.
82
+ * @param date - The date to get the day of week from.
83
+ * @returns The day of the week (1-7).
84
+ */
66
85
  abstract dayOfWeek(date: Date): number;
86
+ /**
87
+ * Returns the month of the year for the given date.
88
+ * @param date - The date to get the month from.
89
+ * @returns The month of the year (1-12).
90
+ */
67
91
  abstract monthOfYear(date: Date): number;
92
+ /**
93
+ * Returns the week of the year for the given date.
94
+ * @param date - The date to get the week from.
95
+ * @returns The week of the year (1-52/53).
96
+ */
68
97
  abstract weekOfYear(date: Date): number;
98
+ /**
99
+ * Returns the year for the given date.
100
+ * @param date - The date to get the year from.
101
+ * @returns The year.
102
+ */
69
103
  abstract year(date: Date): number;
104
+ /**
105
+ * Adds a specified amount of time units to the given date.
106
+ * @param date - The base date.
107
+ * @param unit - The time unit to add (day, month, year, etc.).
108
+ * @param amount - The amount to add.
109
+ * @returns A new AXDateTime instance with the added time.
110
+ */
70
111
  abstract add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
112
+ /**
113
+ * Sets a specific time unit to a given value.
114
+ * @param date - The base date.
115
+ * @param unit - The time unit to set (day, month, year, etc.).
116
+ * @param value - The new value for the time unit.
117
+ * @returns A new AXDateTime instance with the set time unit.
118
+ */
71
119
  abstract set(date: Date, unit: TimeUnit, value: number): AXDateTime;
120
+ /**
121
+ * Returns the start of the specified time unit for the given date.
122
+ * @param date - The base date.
123
+ * @param unit - The time unit to get the start of (day, month, year, etc.).
124
+ * @returns A new AXDateTime instance representing the start of the time unit.
125
+ */
72
126
  abstract startOf(date: Date, unit: TimeUnit): AXDateTime;
127
+ /**
128
+ * Returns the end of the specified time unit for the given date.
129
+ * @param date - The base date.
130
+ * @param unit - The time unit to get the end of (day, month, year, etc.).
131
+ * @returns A new AXDateTime instance representing the end of the time unit.
132
+ */
73
133
  abstract endOf(date: Date, unit: TimeUnit): AXDateTime;
134
+ /**
135
+ * Creates a new AXDateTime instance from an AXDateValue object.
136
+ * @param value - The date value object containing date information.
137
+ * @returns A new AXDateTime instance.
138
+ */
74
139
  abstract create(value: AXDateValue): AXDateTime;
140
+ /**
141
+ * Parses a date string and returns a new AXDateTime instance.
142
+ * @param value - The date string to parse.
143
+ * @returns A new AXDateTime instance.
144
+ */
75
145
  abstract parse(value: string): AXDateTime;
76
146
  }
77
147
  declare class AXDateTime {
@@ -294,6 +364,7 @@ declare module '@acorex/core/format' {
294
364
  declare class AXTimeLeftFormatter implements AXFormatter {
295
365
  private translateService;
296
366
  get name(): string;
367
+ updateInterval: number;
297
368
  format(value: number | string | Date, options?: AXTimeLeftFormatterOptions): string;
298
369
  static ɵfac: i0.ɵɵFactoryDeclaration<AXTimeLeftFormatter, never>;
299
370
  static ɵprov: i0.ɵɵInjectableDeclaration<AXTimeLeftFormatter>;
@@ -14,16 +14,30 @@ class AXComponentService {
14
14
  }
15
15
  return null;
16
16
  }
17
+ /**
18
+ * Creates and inserts a component instance into the application's root ViewContainerRef.
19
+ *
20
+ * @typeParam T - Component class type
21
+ * @param content - Component type to instantiate
22
+ * @returns Promise<ComponentRef<T>> - Reference to the created component
23
+ */
17
24
  async createFromComponent(content) {
18
25
  return this.getRootViewContainerRef().createComponent(content);
19
26
  }
27
+ /**
28
+ * Creates and inserts an embedded view from a TemplateRef into the application's root ViewContainerRef.
29
+ *
30
+ * @typeParam T - Template context type
31
+ * @param content - TemplateRef to render
32
+ * @returns Promise<EmbeddedViewRef<T>> - Reference to the created embedded view
33
+ */
20
34
  async createFromTemplate(content) {
21
35
  return this.getRootViewContainerRef().createEmbeddedView(content);
22
36
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
38
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }
25
39
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXComponentService, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXComponentService, decorators: [{
27
41
  type: Injectable,
28
42
  args: [{
29
43
  providedIn: 'root',
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-core-components.mjs","sources":["../tmp-esm2022/components/lib/component.service.js","../tmp-esm2022/components/acorex-core-components.js"],"sourcesContent":["import { ApplicationRef, inject, Injectable, ViewContainerRef, } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXComponentService {\n constructor() {\n this.appRef = inject(ApplicationRef);\n }\n getRootViewContainerRef() {\n // Get all components in the application\n const components = this.appRef.components;\n if (components.length > 0) {\n const rootComponentRef = components[0];\n return rootComponentRef.injector.get(ViewContainerRef, null);\n }\n return null;\n }\n async createFromComponent(content) {\n return this.getRootViewContainerRef().createComponent(content);\n }\n async createFromTemplate(content) {\n return this.getRootViewContainerRef().createEmbeddedView(content);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.3\", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.3\", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.3\", ngImport: i0, type: AXCompon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Y3Rvci5nZXQoVmlld0NvbnRhaW5lclJlZiwgbnVsbCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICBhc3luYyBjcmVhdGVGcm9tQ29tcG9uZW50PFQ+KGNvbnRlbnQ6IEFYQ29tcG9uZW50VHlwZTxUPik6IFByb21pc2U8Q29tcG9uZW50UmVmPFQ+PiB7XG4gICAgcmV0dXJuIHRoaXMuZ2V0Um9vdFZpZXdDb250YWluZXJSZWYoKS5jcmVhdGVDb21wb25lbnQ8VD4oY29udGVudCk7XG4gIH1cblxuICBhc3luYyBjcmVhdGVGcm9tVGVtcGxhdGU8VD4oY29udGVudDogVGVtcGxhdGVSZWY8VD4pOiBQcm9taXNlPEVtYmVkZGVkVmlld1JlZjxUPj4ge1xuICAgIHJldHVybiB0aGlzLmdldFJvb3RWaWV3Q29udGFpbmVyUmVmKCkuY3JlYXRlRW1iZWRkZWRWaWV3KGNvbnRlbnQpO1xuICB9XG59XG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29tcG9uZW50cy9zcmMvYWNvcmV4LWNvcmUtY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ=="],"names":[],"mappings":";;;AAEO,MAAM,kBAAkB,CAAC;AAChC,IAAI,WAAW,GAAG;AAClB,QAAQ,IA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E,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC;AAC5H,YAAY,IAAI,EAAE,UAAU;AAC5B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,UAAU,EAAE,MAAM;AACtC,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;AC7Bb;AACA;AACA;;;;"}
1
+ {"version":3,"file":"acorex-core-components.mjs","sources":["../tmp-esm2022/components/lib/component.service.js","../tmp-esm2022/components/acorex-core-components.js"],"sourcesContent":["import { ApplicationRef, inject, Injectable, ViewContainerRef, } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXComponentService {\n constructor() {\n this.appRef = inject(ApplicationRef);\n }\n getRootViewContainerRef() {\n // Get all components in the application\n const components = this.appRef.components;\n if (components.length > 0) {\n const rootComponentRef = components[0];\n return rootComponentRef.injector.get(ViewContainerRef, null);\n }\n return null;\n }\n /**\n * Creates and inserts a component instance into the application's root ViewContainerRef.\n *\n * @typeParam T - Component class type\n * @param content - Component type to instantiate\n * @returns Promise<ComponentRef<T>> - Reference to the created component\n */\n async createFromComponent(content) {\n return this.getRootViewContainerRef().createComponent(content);\n }\n /**\n * Creates and inserts an embedded view from a TemplateRef into the application's root ViewContainerRef.\n *\n * @typeParam T - Template context type\n * @param content - TemplateRef to render\n * @returns Promise<EmbeddedViewRef<T>> - Reference to the created embedded view\n */\n async createFromTemplate(content) {\n return this.getRootViewContainerRef().createEmbeddedView(content);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.9\", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.9\", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.9\", ngImport: i0, type: AXComponentService, dec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5jZSB0byB0aGUgY3JlYXRlZCBlbWJlZGRlZCB2aWV3XG4gICAqL1xuICBhc3luYyBjcmVhdGVGcm9tVGVtcGxhdGU8VD4oY29udGVudDogVGVtcGxhdGVSZWY8VD4pOiBQcm9taXNlPEVtYmVkZGVkVmlld1JlZjxUPj4ge1xuICAgIHJldHVybiB0aGlzLmdldFJvb3RWaWV3Q29udGFpbmVyUmVmKCkuY3JlYXRlRW1iZWRkZWRWaWV3KGNvbnRlbnQpO1xuICB9XG59XG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29tcG9uZW50cy9zcmMvYWNvcmV4LWNvcmUtY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ=="],"names":[],"mappings":";;;AAEO,MAAM,kBAAkB,CAAC;AAChC,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC;AAC5C,IAAI;AACJ,IAAI,uBAAuB,GAAG;AAC9B;AACA,QAAQ,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU;AACjD,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;AACnC,YAAY,MAAM,gBAAgB,GAAG,UAAU,CAAC,CAAC,CAAC;AAClD,YAAY,OAAO,gBAAgB,CAA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ACA;;;;"}
@@ -20,10 +20,10 @@ class AXConfigService {
20
20
  const v2 = this.injector.get(providerToken);
21
21
  return get(v2, parts[parts.length - 1], defaultValue);
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXConfigService, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXConfigService, decorators: [{
27
27
  type: Injectable,
28
28
  args: [{ providedIn: 'root' }]
29
29
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-core-config.mjs","sources":["../tmp-esm2022/config/lib/configs.js","../tmp-esm2022/config/lib/configs.service.js","../tmp-esm2022/config/acorex-core-config.js"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nexport const AXGlobalDefaultConfig = {};\nexport const AX_GLOBAL_CONFIG = new InjectionToken('AX_GLOBAL_CONFIG', {\n providedIn: 'root',\n factory: () => AXGlobalDefaultConfig,\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29uZmlnL3NyYy9saWIvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBTS9DLE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUFtQixFQUFFLENBQUM7QUFFeEQsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxjQUFjLENBQWlCLGtCQUFrQixFQUFFO0lBQ3JGLFVBQVUsRUFBRSxNQUFNO0lBQ2xCLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyxxQkFBcUI7Q0FDckMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IHR5cGUgQVhHbG9iYWxDb25maWcgPSB7XG4gIFtrZXk6IHN0cmluZ106IHVua25vd247XG59O1xuXG5leHBvcnQgY29uc3QgQVhHbG9iYWxEZWZhdWx0Q29uZmlnOiBBWEdsb2JhbENvbmZpZyA9IHt9O1xuXG5leHBvcnQgY29uc3QgQVhfR0xPQkFMX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxBWEdsb2JhbENvbmZpZz4oJ0FYX0dMT0JBTF9DT05GSUcnLCB7XG4gIHByb3ZpZGVkSW46ICdyb290JyxcbiAgZmFjdG9yeTogKCkgPT4gQVhHbG9iYWxEZWZhdWx0Q29uZmlnLFxufSk7XG4iXX0=","import { Injectable, Injector, inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AX_GLOBAL_CONFIG } from './configs';\nimport * as i0 from \"@angular/core\";\nexport class AXConfigService {\n constructor() {\n this.injector = inject(Injector);\n }\n get(key, defaultValue) {\n const v1 = this.injector.get(AX_GLOBAL_CONFIG);\n const parts = key.split('.');\n const tokenName = parts.slice(0, parts.length - 1).join('.');\n const providerToken = get(v1, tokenName);\n const v2 = this.injector.get(providerToken);\n return get(v2, parts[parts.length - 1], defaultValue);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.3\", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.3\", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.3\", ngImport: i0, type: AXConfigService, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9jb25maWcvc3JjL2xpYi9jb25maWdzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBa0IsUUFBUSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RSxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ2hDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLFdBQVcsQ0FBQzs7QUFHN0MsTUFBTSxPQUFPLGVBQWU7SUFENUI7UUFFVSxhQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0tBVXJDO0lBUlEsR0FBRyxDQUFhLEdBQVcsRUFBRSxZQUFnQjtRQUNsRCxNQUFNLEVBQUUsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQy9DLE1BQU0sS0FBSyxH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x0VmFsdWU/OiBUKSB7XG4gICAgY29uc3QgdjEgPSB0aGlzLmluamVjdG9yLmdldChBWF9HTE9CQUxfQ09ORklHKTtcbiAgICBjb25zdCBwYXJ0cyA9IGtleS5zcGxpdCgnLicpO1xuICAgIGNvbnN0IHRva2VuTmFtZSA9IHBhcnRzLnNsaWNlKDAsIHBhcnRzLmxlbmd0aCAtIDEpLmpvaW4oJy4nKTtcbiAgICBjb25zdCBwcm92aWRlclRva2VuID0gZ2V0KHYxLCB0b2tlbk5hbWUpO1xuICAgIGNvbnN0IHYyID0gdGhpcy5pbmplY3Rvci5nZXQocHJvdmlkZXJUb2tlbiBhcyBJbmplY3Rpb25Ub2tlbjx1bmtub3duPik7XG4gICAgcmV0dXJuIGdldCh2MiwgcGFydHNbcGFydHMubGVuZ3RoIC0gMV0sIGRlZmF1bHRWYWx1ZSk7XG4gIH1cbn1cbiJdfQ==","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9jb25maWcvc3JjL2Fjb3JleC1jb3JlLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ=="],"names":[],"mappings":";;;;AACY,MAAC,qBAAqB,GAAG;AACzB,MAAC,gBAAgB,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;AACvE,IAAI,UAAU,EAAE,MAAM;AACtB,IAAI,OAAO,EAAE,MAAM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,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AACzH,YAAY,IAAI,EAAE,UAAU;AAC5B,YAAY,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE;AACzC,SAAS,CAAC,EAAE,CAAC;;ACtBb;AACA;AACA;;;;"}
1
+ {"version":3,"file":"acorex-core-config.mjs","sources":["../tmp-esm2022/config/lib/configs.js","../tmp-esm2022/config/lib/configs.service.js","../tmp-esm2022/config/acorex-core-config.js"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nexport const AXGlobalDefaultConfig = {};\nexport const AX_GLOBAL_CONFIG = new InjectionToken('AX_GLOBAL_CONFIG', {\n providedIn: 'root',\n factory: () => AXGlobalDefaultConfig,\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29uZmlnL3NyYy9saWIvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBTS9DLE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUFtQixFQUFFLENBQUM7QUFFeEQsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxjQUFjLENBQWlCLGtCQUFrQixFQUFFO0lBQ3JGLFVBQVUsRUFBRSxNQUFNO0lBQ2xCLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyxxQkFBcUI7Q0FDckMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IHR5cGUgQVhHbG9iYWxDb25maWcgPSB7XG4gIFtrZXk6IHN0cmluZ106IHVua25vd247XG59O1xuXG5leHBvcnQgY29uc3QgQVhHbG9iYWxEZWZhdWx0Q29uZmlnOiBBWEdsb2JhbENvbmZpZyA9IHt9O1xuXG5leHBvcnQgY29uc3QgQVhfR0xPQkFMX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxBWEdsb2JhbENvbmZpZz4oJ0FYX0dMT0JBTF9DT05GSUcnLCB7XG4gIHByb3ZpZGVkSW46ICdyb290JyxcbiAgZmFjdG9yeTogKCkgPT4gQVhHbG9iYWxEZWZhdWx0Q29uZmlnLFxufSk7XG4iXX0=","import { Injectable, Injector, inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AX_GLOBAL_CONFIG } from './configs';\nimport * as i0 from \"@angular/core\";\nexport class AXConfigService {\n constructor() {\n this.injector = inject(Injector);\n }\n get(key, defaultValue) {\n const v1 = this.injector.get(AX_GLOBAL_CONFIG);\n const parts = key.split('.');\n const tokenName = parts.slice(0, parts.length - 1).join('.');\n const providerToken = get(v1, tokenName);\n const v2 = this.injector.get(providerToken);\n return get(v2, parts[parts.length - 1], defaultValue);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.9\", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.9\", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.9\", ngImport: i0, type: AXConfigService, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5zZXJ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IC0gMV0sIGRlZmF1bHRWYWx1ZSk7XG4gIH1cbn1cbiJdfQ==","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9jb25maWcvc3JjL2Fjb3JleC1jb3JlLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ=="],"names":[],"mappings":";;;;AACY,MAAC,qBAAqB,GAAG;AACzB,MAAC,gBAAgB,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;AACvE,IAAI,UAAU,EAAE,MAAM;AACtB,IAAI,OAAO,EAAE,MAAM,qBAAqB;AACxC,CAAC;;ACDM,MAAM,eAAe,CAAC;AAC7B,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AACxC,IAAI;AACJ,IAAI,GAAG,CAAC,GAAG,EAAE,YAAY,EAAE;AAC3B,QAAQ,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC;AACtD,QAAQ,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;AACpC,QAAQ,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AACpE,QAAQ,MAAM,aAAa,GAAG,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC;AAChD,QAAQ,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC;AACnD,QAAQ,OAAO,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC;AAC7D,IAAI;AACJ,IAAI,SAAS,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC;AAClL,IAAI,SAAS,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,qBAAqB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AACzJ;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AACzH,YAAY,IAAI,EAAE,UAAU;AAC5B,YAAY,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE;AACzC,SAAS,CAAC,EAAE,CAAC;;ACtBb;AACA;AACA;;;;"}
@@ -1239,10 +1239,10 @@ class AXCalendarService {
1239
1239
  calendar: calendar.name(),
1240
1240
  });
1241
1241
  }
1242
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1243
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
1242
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1243
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
1244
1244
  }
1245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXCalendarService, decorators: [{
1245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXCalendarService, decorators: [{
1246
1246
  type: Injectable,
1247
1247
  args: [{ providedIn: 'root' }]
1248
1248
  }], ctorParameters: () => [] });
@@ -1266,10 +1266,10 @@ class AXDateTimePipe {
1266
1266
  const val = this._calendarService.convert(value, calendar.name());
1267
1267
  return this.formatService.format(val, 'datetime', format);
1268
1268
  }
1269
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1270
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
1269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1270
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
1271
1271
  }
1272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimePipe, decorators: [{
1272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimePipe, decorators: [{
1273
1273
  type: Pipe,
1274
1274
  args: [{ name: 'axDate' }]
1275
1275
  }] });
@@ -1314,10 +1314,10 @@ class AXDateFormatter {
1314
1314
  .convert(value, effectiveOptions.calendar)
1315
1315
  .format(format, { locale: effectiveOptions.locale });
1316
1316
  }
1317
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1318
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateFormatter }); }
1317
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1318
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateFormatter }); }
1319
1319
  }
1320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateFormatter, decorators: [{
1320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateFormatter, decorators: [{
1321
1321
  type: Injectable
1322
1322
  }] });
1323
1323
 
@@ -1371,10 +1371,10 @@ class AXDateTimeFormatter {
1371
1371
  .convert(value, effectiveOptions.calendar)
1372
1372
  .format(format, { locale: effectiveOptions.locale });
1373
1373
  }
1374
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1375
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeFormatter }); }
1374
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1375
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeFormatter }); }
1376
1376
  }
1377
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
1377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
1378
1378
  type: Injectable
1379
1379
  }] });
1380
1380
 
@@ -1497,10 +1497,10 @@ class AXTimeDurationFormatter {
1497
1497
  return result.join(separator);
1498
1498
  }
1499
1499
  }
1500
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1501
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeDurationFormatter }); }
1500
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1501
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeDurationFormatter }); }
1502
1502
  }
1503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
1503
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
1504
1504
  type: Injectable
1505
1505
  }] });
1506
1506
 
@@ -1544,16 +1544,17 @@ class AXTimeFormatter {
1544
1544
  .convert(value, effectiveOptions.calendar)
1545
1545
  .format(format, { locale: effectiveOptions.locale });
1546
1546
  }
1547
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1548
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeFormatter }); }
1547
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1548
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeFormatter }); }
1549
1549
  }
1550
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeFormatter, decorators: [{
1550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeFormatter, decorators: [{
1551
1551
  type: Injectable
1552
1552
  }] });
1553
1553
 
1554
1554
  class AXTimeLeftFormatter {
1555
1555
  constructor() {
1556
1556
  this.translateService = inject(AXTranslationService);
1557
+ this.updateInterval = 1000; // Update every second
1557
1558
  }
1558
1559
  get name() {
1559
1560
  return 'timeleft';
@@ -1569,24 +1570,30 @@ class AXTimeLeftFormatter {
1569
1570
  else {
1570
1571
  valueNumber = Number(value);
1571
1572
  }
1573
+ const isPast = valueNumber < 0;
1572
1574
  const sign = this.translateService.translateSync(`@acorex:time.${valueNumber >= 0 ? 'left' : 'ago'}`);
1573
1575
  const milliseconds = Math.abs(valueNumber);
1574
1576
  const durationInSeconds = Math.round(milliseconds / 1000);
1575
1577
  let format = options?.format;
1576
- // Determine the best format if format is null
1578
+ // Determine the best format if format is null (following standard conventions)
1579
+ // Standard time thresholds based on common social media platforms
1577
1580
  if (isNil(format)) {
1578
- if (durationInSeconds < 45)
1579
- format = 's';
1580
- else if (durationInSeconds < 2700)
1581
- format = 'm';
1582
- else if (durationInSeconds < 79200)
1583
- format = 'h';
1584
- else if (durationInSeconds < 2246400)
1585
- format = 'd';
1586
- else if (durationInSeconds < 27648000)
1587
- format = 'M';
1581
+ if (durationInSeconds < 10)
1582
+ format = 'now'; // 0-10s: "just now"
1583
+ else if (durationInSeconds < 60)
1584
+ format = 's'; // 10-60s: "X seconds ago"
1585
+ else if (durationInSeconds < 3600)
1586
+ format = 'm'; // 1-60 min: "X minutes ago"
1587
+ else if (durationInSeconds < 86400)
1588
+ format = 'h'; // 1-24 hours: "X hours ago"
1589
+ else if (durationInSeconds < 604800)
1590
+ format = 'd'; // 1-7 days: "X days ago"
1591
+ else if (durationInSeconds < 2592000)
1592
+ format = 'w'; // 1-4 weeks: "X weeks ago"
1593
+ else if (durationInSeconds < 31536000)
1594
+ format = 'M'; // 1-12 months: "X months ago"
1588
1595
  else
1589
- format = 'y';
1596
+ format = 'y'; // 1+ years: "X years ago"
1590
1597
  }
1591
1598
  // Helper function for zero-padding
1592
1599
  const pad = (num) => num.toString().padStart(2, '0');
@@ -1595,74 +1602,89 @@ class AXTimeLeftFormatter {
1595
1602
  return useSign ? `${translated} ${sign}` : translated;
1596
1603
  };
1597
1604
  switch (format) {
1605
+ case 'now':
1606
+ // Just now (0-10 seconds) - Standard: immediate time
1607
+ if (isPast) {
1608
+ return translate('just-now', false);
1609
+ }
1610
+ return translate('right-now', false);
1598
1611
  case 's':
1599
- return `${durationInSeconds} ${translate('seconds')}`;
1612
+ // Seconds (10-59 seconds) - Standard: show exact seconds
1613
+ return `${durationInSeconds} ${translate(durationInSeconds === 1 ? 'second' : 'seconds')}`;
1600
1614
  case 'ss':
1601
1615
  return `${pad(durationInSeconds)} ${translate('seconds')}`;
1602
- case 'm':
1603
- return `${Math.round(durationInSeconds / 60)} ${translate(durationInSeconds >= 120 ? 'minutes' : 'minute')}`;
1616
+ case 'm': {
1617
+ // Minutes (1-59 minutes) - Standard: show exact minutes
1618
+ const minutes = Math.round(durationInSeconds / 60);
1619
+ return `${minutes} ${translate(minutes === 1 ? 'minute' : 'minutes')}`;
1620
+ }
1604
1621
  case 'mm':
1605
1622
  return `${pad(Math.round(durationInSeconds / 60))} ${translate('minutes')}`;
1606
1623
  case 'h':
1607
- case 'H':
1608
- if (durationInSeconds < 5340)
1609
- return translate('an-hour');
1610
- return `${Math.round(durationInSeconds / 3600)} ${translate(durationInSeconds >= 10800 ? 'hours' : 'hour')}`;
1624
+ case 'H': {
1625
+ // Hours (1-23 hours) - Standard: show exact hours
1626
+ const hours = Math.round(durationInSeconds / 3600);
1627
+ return `${hours} ${translate(hours === 1 ? 'hour' : 'hours')}`;
1628
+ }
1611
1629
  case 'hh':
1612
1630
  case 'HH':
1613
- if (durationInSeconds < 5340)
1614
- return `01 ${translate('hour')}`;
1615
1631
  return `${pad(Math.round(durationInSeconds / 3600))} ${translate('hours')}`;
1616
1632
  case 'd':
1617
- case 'D':
1618
- if (durationInSeconds < 126000)
1619
- return translate('a-day');
1620
- return `${Math.round(durationInSeconds / (3600 * 24))} ${translate(durationInSeconds >= 252000 ? 'days' : 'day')}`;
1633
+ case 'D': {
1634
+ // Days (1-6 days) - Standard: show exact days
1635
+ const days = Math.round(durationInSeconds / 86400);
1636
+ return `${days} ${translate(days === 1 ? 'day' : 'days')}`;
1637
+ }
1621
1638
  case 'dd':
1622
1639
  case 'DD':
1623
- if (durationInSeconds < 126000)
1624
- return `01 ${translate('day')}`;
1625
- return `${pad(Math.round(durationInSeconds / (3600 * 24)))} ${translate('days')}`;
1626
- case 'M':
1627
- if (durationInSeconds < 3888000)
1628
- return translate('a-month');
1629
- return `${Math.round(durationInSeconds / (3600 * 24 * 30))} ${translate(durationInSeconds >= 7776000 ? 'months' : 'month')}`;
1640
+ return `${pad(Math.round(durationInSeconds / 86400))} ${translate('days')}`;
1641
+ case 'w':
1642
+ case 'W': {
1643
+ // Weeks (1-4 weeks) - Standard: show weeks for 7-30 days
1644
+ const weeks = Math.round(durationInSeconds / 604800);
1645
+ return `${weeks} ${translate(weeks === 1 ? 'week' : 'weeks')}`;
1646
+ }
1647
+ case 'ww':
1648
+ case 'WW':
1649
+ return `${pad(Math.round(durationInSeconds / 604800))} ${translate('weeks')}`;
1650
+ case 'M': {
1651
+ // Months (1-11 months) - Standard: show months
1652
+ const months = Math.round(durationInSeconds / 2592000);
1653
+ return `${months} ${translate(months === 1 ? 'month' : 'months')}`;
1654
+ }
1630
1655
  case 'MM':
1631
- if (durationInSeconds < 3888000)
1632
- return `01 ${translate('month')}`;
1633
- return `${pad(Math.round(durationInSeconds / (3600 * 24 * 30)))} ${translate('months')}`;
1656
+ return `${pad(Math.round(durationInSeconds / 2592000))} ${translate('months')}`;
1634
1657
  case 'y':
1635
- case 'Y':
1636
- if (durationInSeconds < 47260800)
1637
- return translate('a-year');
1638
- return `${Math.round(durationInSeconds / (3600 * 24 * 365))} ${translate(durationInSeconds >= 63072000 ? 'years' : 'year')}`;
1658
+ case 'Y': {
1659
+ // Years (1+ years) - Standard: show years
1660
+ const years = Math.round(durationInSeconds / 31536000);
1661
+ return `${years} ${translate(years === 1 ? 'year' : 'years')}`;
1662
+ }
1639
1663
  case 'yy':
1640
1664
  case 'YY':
1641
1665
  case 'yyyy':
1642
1666
  case 'YYYY':
1643
- if (durationInSeconds < 47260800)
1644
- return `01 ${translate('year')}`;
1645
- return `${pad(Math.round(durationInSeconds / (3600 * 24 * 365)))} ${translate('years')}`;
1667
+ return `${pad(Math.round(durationInSeconds / 31536000))} ${translate('years')}`;
1646
1668
  default:
1647
1669
  console.error('Invalid format for timeleft formatter pipe');
1648
1670
  return 'Invalid format';
1649
1671
  }
1650
1672
  }
1651
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1652
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeLeftFormatter }); }
1673
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1674
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeLeftFormatter }); }
1653
1675
  }
1654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
1676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
1655
1677
  type: Injectable
1656
1678
  }] });
1657
1679
 
1658
1680
  class AXDateTimeModule {
1659
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1660
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
1661
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
1681
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1682
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
1683
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
1662
1684
  formatters: [AXDateTimeFormatter, AXDateFormatter, AXTimeFormatter, AXTimeLeftFormatter, AXTimeDurationFormatter],
1663
1685
  })] }); }
1664
1686
  }
1665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDateTimeModule, decorators: [{
1687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AXDateTimeModule, decorators: [{
1666
1688
  type: NgModule,
1667
1689
  args: [{
1668
1690
  imports: [