@acorex/core 21.0.2-next.4 → 21.0.2-next.40

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 (32) hide show
  1. package/fesm2022/acorex-core-components.mjs +3 -3
  2. package/fesm2022/acorex-core-config.mjs +3 -3
  3. package/fesm2022/acorex-core-date-time.mjs +105 -91
  4. package/fesm2022/acorex-core-date-time.mjs.map +1 -1
  5. package/fesm2022/acorex-core-events.mjs +3 -3
  6. package/fesm2022/acorex-core-file.mjs +667 -92
  7. package/fesm2022/acorex-core-file.mjs.map +1 -1
  8. package/fesm2022/acorex-core-format.mjs +19 -19
  9. package/fesm2022/acorex-core-full-screen.mjs +4 -4
  10. package/fesm2022/acorex-core-full-screen.mjs.map +1 -1
  11. package/fesm2022/acorex-core-icon.mjs +3 -3
  12. package/fesm2022/acorex-core-image.mjs +3 -3
  13. package/fesm2022/acorex-core-locale.mjs +30 -13
  14. package/fesm2022/acorex-core-locale.mjs.map +1 -1
  15. package/fesm2022/acorex-core-network.mjs +4 -4
  16. package/fesm2022/acorex-core-network.mjs.map +1 -1
  17. package/fesm2022/acorex-core-pipes.mjs +3 -3
  18. package/fesm2022/acorex-core-platform.mjs +4 -4
  19. package/fesm2022/acorex-core-platform.mjs.map +1 -1
  20. package/fesm2022/acorex-core-storage.mjs +9 -9
  21. package/fesm2022/acorex-core-translation.mjs +68 -24
  22. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  23. package/fesm2022/acorex-core-utils.mjs +3 -78
  24. package/fesm2022/acorex-core-utils.mjs.map +1 -1
  25. package/fesm2022/acorex-core-validation.mjs +40 -40
  26. package/fesm2022/acorex-core-z-index.mjs +3 -3
  27. package/package.json +3 -2
  28. package/types/acorex-core-date-time.d.ts +24 -20
  29. package/types/acorex-core-file.d.ts +268 -40
  30. package/types/acorex-core-locale.d.ts +5 -0
  31. package/types/acorex-core-translation.d.ts +8 -1
  32. package/types/acorex-core-utils.d.ts +0 -22
@@ -30,10 +30,10 @@ class AXCallbackValidationRule {
30
30
  }
31
31
  return createResult(validationResult);
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXCallbackValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
34
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXCallbackValidationRule }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCallbackValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
34
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCallbackValidationRule }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXCallbackValidationRule, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCallbackValidationRule, decorators: [{
37
37
  type: Injectable
38
38
  }] });
39
39
 
@@ -72,10 +72,10 @@ class AXRegexValidationRule {
72
72
  value: value,
73
73
  };
74
74
  }
75
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXRegexValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
76
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXRegexValidationRule }); }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXRegexValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
76
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXRegexValidationRule }); }
77
77
  }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXRegexValidationRule, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXRegexValidationRule, decorators: [{
79
79
  type: Injectable
80
80
  }] });
81
81
 
@@ -107,10 +107,10 @@ class AXRequiredValidationRule {
107
107
  value,
108
108
  };
109
109
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXRequiredValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
111
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXRequiredValidationRule }); }
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXRequiredValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
111
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXRequiredValidationRule }); }
112
112
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXRequiredValidationRule, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXRequiredValidationRule, decorators: [{
114
114
  type: Injectable
115
115
  }] });
116
116
 
@@ -130,10 +130,10 @@ class AXLengthValidationRule {
130
130
  value: value,
131
131
  };
132
132
  }
133
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXLengthValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
134
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXLengthValidationRule }); }
133
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXLengthValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
134
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXLengthValidationRule }); }
135
135
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXLengthValidationRule, decorators: [{
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXLengthValidationRule, decorators: [{
137
137
  type: Injectable
138
138
  }] });
139
139
 
@@ -151,10 +151,10 @@ class AXMaxLengthValidationRule {
151
151
  value: value,
152
152
  };
153
153
  }
154
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXMaxLengthValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
155
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXMaxLengthValidationRule }); }
154
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMaxLengthValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
155
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMaxLengthValidationRule }); }
156
156
  }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXMaxLengthValidationRule, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMaxLengthValidationRule, decorators: [{
158
158
  type: Injectable
159
159
  }] });
160
160
 
@@ -171,10 +171,10 @@ class AXMinLengthValidationRule {
171
171
  value: value,
172
172
  };
173
173
  }
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXMinLengthValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
175
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXMinLengthValidationRule }); }
174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMinLengthValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
175
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMinLengthValidationRule }); }
176
176
  }
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXMinLengthValidationRule, decorators: [{
177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMinLengthValidationRule, decorators: [{
178
178
  type: Injectable
179
179
  }] });
180
180
 
@@ -199,10 +199,10 @@ class AXBetweenValidationRule {
199
199
  value: value,
200
200
  };
201
201
  }
202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXBetweenValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
203
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXBetweenValidationRule }); }
202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXBetweenValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
203
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXBetweenValidationRule }); }
204
204
  }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXBetweenValidationRule, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXBetweenValidationRule, decorators: [{
206
206
  type: Injectable
207
207
  }] });
208
208
 
@@ -222,10 +222,10 @@ class AXEqualValidationRule {
222
222
  value: value,
223
223
  };
224
224
  }
225
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXEqualValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
226
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXEqualValidationRule }); }
225
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXEqualValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
226
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXEqualValidationRule }); }
227
227
  }
228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXEqualValidationRule, decorators: [{
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXEqualValidationRule, decorators: [{
229
229
  type: Injectable
230
230
  }] });
231
231
 
@@ -244,10 +244,10 @@ class AXGreaterThanValidationRule {
244
244
  value: value,
245
245
  };
246
246
  }
247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXGreaterThanValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
248
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXGreaterThanValidationRule }); }
247
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXGreaterThanValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
248
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXGreaterThanValidationRule }); }
249
249
  }
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXGreaterThanValidationRule, decorators: [{
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXGreaterThanValidationRule, decorators: [{
251
251
  type: Injectable
252
252
  }] });
253
253
 
@@ -266,10 +266,10 @@ class AXLessThanValidationRule {
266
266
  value: value,
267
267
  };
268
268
  }
269
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXLessThanValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
270
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXLessThanValidationRule }); }
269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXLessThanValidationRule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
270
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXLessThanValidationRule }); }
271
271
  }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXLessThanValidationRule, decorators: [{
272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXLessThanValidationRule, decorators: [{
273
273
  type: Injectable
274
274
  }] });
275
275
 
@@ -329,10 +329,10 @@ class AXValidationRegistryService {
329
329
  get(ruleName) {
330
330
  return this.plugins.find((c) => c.name == ruleName);
331
331
  }
332
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
333
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationRegistryService, providedIn: 'root' }); }
332
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
333
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationRegistryService, providedIn: 'root' }); }
334
334
  }
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationRegistryService, decorators: [{
335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationRegistryService, decorators: [{
336
336
  type: Injectable,
337
337
  args: [{
338
338
  providedIn: 'root',
@@ -373,10 +373,10 @@ class AXValidationService {
373
373
  ruleFor(value) {
374
374
  return new AXValidationRuleChain(this, value);
375
375
  }
376
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
377
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationService, providedIn: 'root' }); }
376
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
377
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationService, providedIn: 'root' }); }
378
378
  }
379
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationService, decorators: [{
379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationService, decorators: [{
380
380
  type: Injectable,
381
381
  args: [{ providedIn: 'root' }]
382
382
  }] });
@@ -461,11 +461,11 @@ class AXValidationModule {
461
461
  f();
462
462
  });
463
463
  }
464
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
465
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: AXValidationModule }); }
466
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationModule, providers: [...BUILT_IN_RULES] }); }
464
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
465
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXValidationModule }); }
466
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationModule, providers: [...BUILT_IN_RULES] }); }
467
467
  }
468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXValidationModule, decorators: [{
468
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXValidationModule, decorators: [{
469
469
  type: NgModule,
470
470
  args: [{
471
471
  imports: [],
@@ -28,10 +28,10 @@ class AXZIndexService {
28
28
  lastIndex() {
29
29
  return this.current;
30
30
  }
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXZIndexService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
32
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXZIndexService, providedIn: 'root' }); }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXZIndexService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
32
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXZIndexService, providedIn: 'root' }); }
33
33
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXZIndexService, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXZIndexService, decorators: [{
35
35
  type: Injectable,
36
36
  args: [{ providedIn: 'root' }]
37
37
  }] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/core",
3
- "version": "21.0.2-next.4",
3
+ "version": "21.0.2-next.40",
4
4
  "peerDependencies": {
5
5
  "lodash-es": ">=4.17.21",
6
6
  "memoizee": ">=0.4.15",
@@ -102,5 +102,6 @@
102
102
  "types": "./types/acorex-core-z-index.d.ts",
103
103
  "default": "./fesm2022/acorex-core-z-index.mjs"
104
104
  }
105
- }
105
+ },
106
+ "type": "module"
106
107
  }
@@ -1,10 +1,9 @@
1
- import * as rxjs from 'rxjs';
2
- import { Subject } from 'rxjs';
1
+ import { Observable, Subject } from 'rxjs';
3
2
  import * as i1 from '@acorex/core/format';
4
3
  import { AXFormatOptions, AXFormatter } from '@acorex/core/format';
5
4
  import * as i0 from '@angular/core';
6
5
  import { InjectionToken, PipeTransform } from '@angular/core';
7
- import { AXTranslationService } from '@acorex/core/translation';
6
+ import { AXMultiLanguageString, AXTranslationService } from '@acorex/core/translation';
8
7
 
9
8
  type TimeUnit = 'ms' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'week';
10
9
  interface AXDateValue {
@@ -60,6 +59,10 @@ declare abstract class AXCalendar {
60
59
  constructor(config: AXCalendarConfig);
61
60
  get weekend(): number[];
62
61
  get weekdays(): number[];
62
+ /**
63
+ * Updates week layout settings (column order and weekend days).
64
+ */
65
+ applyWeekConfig(config: Partial<AXCalendarConfig>): void;
63
66
  /**
64
67
  * Returns the name of the calendar system.
65
68
  * @returns The calendar system name (e.g., 'gregorian', 'persian', 'islamic').
@@ -83,6 +86,10 @@ declare abstract class AXCalendar {
83
86
  * @returns The day of the week (1-7).
84
87
  */
85
88
  abstract dayOfWeek(date: Date): number;
89
+ /**
90
+ * Returns the 0-based weekday index used for week layout (0 = Sunday … 6 = Saturday).
91
+ */
92
+ weekdayIndex(date: Date): number;
86
93
  /**
87
94
  * Returns the month of the year for the given date.
88
95
  * @param date - The date to get the month from.
@@ -154,6 +161,7 @@ declare class AXDateTime {
154
161
  get dayOfMonth(): number;
155
162
  get dayOfYear(): number;
156
163
  get dayOfWeek(): number;
164
+ get weekdayIndex(): number;
157
165
  get hour(): number;
158
166
  get minute(): number;
159
167
  get second(): number;
@@ -257,9 +265,11 @@ declare class AXDateTimeFormatter implements AXFormatter {
257
265
 
258
266
  interface AXHolidayDate {
259
267
  date: Date;
260
- title: string;
268
+ title: AXMultiLanguageString;
269
+ /** Hex color used to render the holiday in scheduler views (e.g. `#ef4444`). */
270
+ color?: string;
261
271
  cssClass?: string;
262
- description?: string;
272
+ description?: AXMultiLanguageString;
263
273
  [key: string]: unknown;
264
274
  }
265
275
  interface AXHolidaysLoaderOptions {
@@ -278,17 +288,21 @@ declare class AXHolidaysLoaderDefault implements AXHolidaysLoader {
278
288
  declare const AX_DATETIME_HOLIDAYS_LOADER: InjectionToken<AXHolidaysLoader>;
279
289
 
280
290
  declare class AXCalendarService {
281
- private config;
282
291
  private _holidaysLoader;
283
292
  private eventService;
284
293
  private formatService;
285
294
  private localeService;
295
+ private readonly calendars;
286
296
  get calendar(): AXCalendar;
287
297
  private activeCalendar;
288
- calendarChanges$: rxjs.Observable<AXCalendar>;
298
+ calendarChanges$: Observable<AXCalendar>;
289
299
  getDefaultCalendar(): AXCalendar;
290
300
  getActiveCalendar(): AXCalendar;
291
301
  setActiveCalendar(name: string): void;
302
+ private notifyCalendarChanged;
303
+ private buildWeekConfig;
304
+ private registerCalendars;
305
+ private applyLocaleWeekSettings;
292
306
  onHolidaysChanged: Subject<AXHolidayDate[]>;
293
307
  private _holidays;
294
308
  get holidays(): AXHolidayDate[];
@@ -307,17 +321,6 @@ declare class AXCalendarService {
307
321
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCalendarService>;
308
322
  }
309
323
 
310
- interface AXDateTimeConfig {
311
- calendar: string;
312
- calendars: {
313
- [key: string]: AXCalendar;
314
- };
315
- }
316
- declare const AX_DATETIME_CONFIG: InjectionToken<AXDateTimeConfig>;
317
- declare const AXDateTimeDefaultConfig: AXDateTimeConfig;
318
- type PartialDateTimeConfig = Partial<AXDateTimeConfig>;
319
- declare function dateTimeConfig(config?: PartialDateTimeConfig): AXDateTimeConfig;
320
-
321
324
  /**
322
325
  * @deprecated The pipe should not be used, use format instead
323
326
  */
@@ -402,6 +405,7 @@ declare class AXSolarHijriCalendar extends AXCalendar {
402
405
  dayOfMonth(date: Date): number;
403
406
  dayOfYear(date: Date): number;
404
407
  dayOfWeek(date: Date): number;
408
+ weekdayIndex(date: Date): number;
405
409
  weekOfYear(date: Date): number;
406
410
  year(date: Date): number;
407
411
  monthOfYear(date: Date): number;
@@ -431,5 +435,5 @@ declare class AXSolarHijriCalendar extends AXCalendar {
431
435
  private mod;
432
436
  }
433
437
 
434
- export { AXCalendar, AXCalendarMonth, AXCalendarService, AXDateTime, AXDateTimeDefaultConfig, AXDateTimeFormatter, AXDateTimeModule, AXDateTimePipe, AXDateTimeRange, AXGregorianCalendar, AXHolidaysLoaderDefault, AXSolarHijriCalendar, AXTimeDurationFormatter, AXTimeLeftFormatter, AX_DATETIME_CONFIG, AX_DATETIME_HOLIDAYS_LOADER, dateTimeConfig };
435
- export type { AXCalendarConfig, AXDateTimeConfig, AXDateTimeDisplayFormats, AXDateTimeFormatterOptions, AXDateTimePart, AXDateTimeParts, AXDateTimeUnitNames, AXDateValue, AXHolidayDate, AXHolidaysLoader, AXHolidaysLoaderOptions, AXTimeDurationFormatterOptions, AXTimeLeftFormatterOptions, AXTimeSpan, AXTimeSpanTotal, AXValidDateTimeValue, PartialDateTimeConfig, TimeUnit };
438
+ export { AXCalendar, AXCalendarMonth, AXCalendarService, AXDateTime, AXDateTimeFormatter, AXDateTimeModule, AXDateTimePipe, AXDateTimeRange, AXGregorianCalendar, AXHolidaysLoaderDefault, AXSolarHijriCalendar, AXTimeDurationFormatter, AXTimeLeftFormatter, AX_DATETIME_HOLIDAYS_LOADER };
439
+ export type { AXCalendarConfig, AXDateTimeDisplayFormats, AXDateTimeFormatterOptions, AXDateTimePart, AXDateTimeParts, AXDateTimeUnitNames, AXDateValue, AXHolidayDate, AXHolidaysLoader, AXHolidaysLoaderOptions, AXTimeDurationFormatterOptions, AXTimeLeftFormatterOptions, AXTimeSpan, AXTimeSpanTotal, AXValidDateTimeValue, TimeUnit };