@acorex/modules 19.0.1 → 19.1.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.
- package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +1 -0
- package/auth/lib/menu.provider.d.ts +1 -0
- package/auth/lib/setting.provider.d.ts +4 -0
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs → acorex-modules-auth-acorex-modules-auth-D8WcF6Jp.mjs} +80 -9
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D8WcF6Jp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BK4Hs5OP.mjs → acorex-modules-auth-app-chooser.component-0TpgRa-v.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BK4Hs5OP.mjs.map → acorex-modules-auth-app-chooser.component-0TpgRa-v.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-Cvr3l9wl.mjs → acorex-modules-auth-login.module-CziF_sE7.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-Cvr3l9wl.mjs.map → acorex-modules-auth-login.module-CziF_sE7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-4jTF1Xhx.mjs → acorex-modules-auth-master.layout-Ds4LxKSf.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-4jTF1Xhx.mjs.map → acorex-modules-auth-master.layout-Ds4LxKSf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-DeCK_glZ.mjs → acorex-modules-auth-password.component-9TFb-AHn.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-DeCK_glZ.mjs.map → acorex-modules-auth-password.component-9TFb-AHn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-C5soTmv9.mjs → acorex-modules-auth-password.component-BVVvl8So.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-C5soTmv9.mjs.map → acorex-modules-auth-password.component-BVVvl8So.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-DqgtVe9G.mjs → acorex-modules-auth-routes-TdAn72Pa.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-DqgtVe9G.mjs.map → acorex-modules-auth-routes-TdAn72Pa.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-C99NYq3o.mjs → acorex-modules-auth-two-factor.module-BE2uEne7.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-C99NYq3o.mjs.map → acorex-modules-auth-two-factor.module-BE2uEne7.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs → acorex-modules-form-template-management-template-picker.component-BXOyKuAt.mjs} +3 -3
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-BXOyKuAt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs → acorex-modules-form-template-management-template-widget-edit.component-DQw5qvib.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-DQw5qvib.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +76 -11
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management-countries-CuJVdPLt.mjs +19 -0
- package/fesm2022/acorex-modules-platform-management-countries-CuJVdPLt.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management-currencies-vgPg4Hj3.mjs +13 -0
- package/fesm2022/acorex-modules-platform-management-currencies-vgPg4Hj3.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management-regional-formats-BSMV12dQ.mjs +14 -0
- package/fesm2022/acorex-modules-platform-management-regional-formats-BSMV12dQ.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +355 -1456
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-text-template-management.mjs +3 -305
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/form-template-management/lib/components/widgets/template/template-widget-designer.component.d.ts +2 -2
- package/form-template-management/lib/menu.provider.d.ts +1 -1
- package/form-template-management/lib/setting.provider.d.ts +4 -0
- package/package.json +6 -10
- package/platform-management/lib/common/common.module.d.ts +5 -1
- package/platform-management/lib/common/index.d.ts +0 -2
- package/platform-management/lib/common/regional/data/countries.d.ts +2 -0
- package/platform-management/lib/common/regional/data/currencies.d.ts +2 -0
- package/platform-management/lib/common/regional/data/regional-formats.d.ts +2 -0
- package/platform-management/lib/common/regional/data/timezones.d.ts +2 -0
- package/{localization-management/lib/language → platform-management/lib/common/regional}/language-slot/language-slot.component.d.ts +8 -6
- package/platform-management/lib/common/regional/regional-store.service.d.ts +14 -0
- package/platform-management/lib/common/regional/regional.types.d.ts +37 -0
- package/platform-management/lib/common/regional/setting.keys.d.ts +13 -0
- package/platform-management/lib/common/regional/setting.provider.d.ts +17 -0
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs.map +0 -1
- package/fesm2022/acorex-modules-localization-management.mjs +0 -1023
- package/fesm2022/acorex-modules-localization-management.mjs.map +0 -1
- package/localization-management/README.md +0 -4
- package/localization-management/index.d.ts +0 -8
- package/localization-management/lib/const.d.ts +0 -8
- package/localization-management/lib/culture/culture.entity.d.ts +0 -3
- package/localization-management/lib/culture/culture.service.d.ts +0 -10
- package/localization-management/lib/culture/culture.types.d.ts +0 -12
- package/localization-management/lib/culture/index.d.ts +0 -3
- package/localization-management/lib/entity.loader.d.ts +0 -9
- package/localization-management/lib/language/index.d.ts +0 -3
- package/localization-management/lib/language/language.entity.d.ts +0 -3
- package/localization-management/lib/language/language.service.d.ts +0 -10
- package/localization-management/lib/language/language.types.d.ts +0 -5
- package/localization-management/lib/localization-management.module.d.ts +0 -10
- package/localization-management/lib/localization-management.source.d.ts +0 -3
- package/localization-management/lib/localization-store.service.d.ts +0 -7
- package/localization-management/lib/menu.provider.d.ts +0 -5
- package/localization-management/lib/time-zone/index.d.ts +0 -3
- package/localization-management/lib/time-zone/time-zone.entity.d.ts +0 -3
- package/localization-management/lib/time-zone/time-zone.service.d.ts +0 -10
- package/localization-management/lib/time-zone/time-zone.types.d.ts +0 -9
- package/platform-management/lib/common/country/country-datasource.provider.d.ts +0 -5
- package/platform-management/lib/common/country/country.entity.d.ts +0 -3
- package/platform-management/lib/common/country/country.service.d.ts +0 -10
- package/platform-management/lib/common/country/country.types.d.ts +0 -18
- package/platform-management/lib/common/country/index.d.ts +0 -3
- package/platform-management/lib/common/currency/currency.entity.d.ts +0 -3
- package/platform-management/lib/common/currency/currency.service.d.ts +0 -10
- package/platform-management/lib/common/currency/currency.types.d.ts +0 -6
- package/platform-management/lib/common/currency/index.d.ts +0 -3
- package/platform-management/lib/common/province/index.d.ts +0 -3
- package/platform-management/lib/common/province/province.entity.d.ts +0 -3
- package/platform-management/lib/common/province/province.service.d.ts +0 -10
- package/platform-management/lib/common/province/province.types.d.ts +0 -7
@@ -1,1023 +0,0 @@
|
|
1
|
-
import * as i1$1 from '@acorex/platform/common';
|
2
|
-
import { AXMEntityCrudServiceImpl, AXPDataGenerator, AXPEntityQueryType, AXPEntityCommandScope, AXPSettingsService, AXP_MENU_PROVIDER, AXPComponentSlotModule } from '@acorex/platform/common';
|
3
|
-
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
4
|
-
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, inject, Injector, signal, Component, NgModule } from '@angular/core';
|
6
|
-
import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
7
|
-
import * as i3 from '@acorex/components/button';
|
8
|
-
import { AXButtonModule } from '@acorex/components/button';
|
9
|
-
import * as i2 from '@acorex/components/decorators';
|
10
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
11
|
-
import * as i1 from '@acorex/components/dropdown';
|
12
|
-
import { AXDropdownModule } from '@acorex/components/dropdown';
|
13
|
-
import { AXPopoverModule } from '@acorex/components/popover';
|
14
|
-
import { CommonModule } from '@angular/common';
|
15
|
-
import { AXTranslationService } from '@acorex/core/translation';
|
16
|
-
import { signalStore, withState, withMethods, patchState } from '@ngrx/signals';
|
17
|
-
|
18
|
-
const AXMLocalizationManagementModuleConst = {
|
19
|
-
moduleName: 'LocalizationManagement',
|
20
|
-
moduleRoute: 'localization-management',
|
21
|
-
i18n: 'localization-management',
|
22
|
-
languageEntity: 'languages',
|
23
|
-
timeZoneEntity: 'time-zone',
|
24
|
-
cultureEntity: 'culture',
|
25
|
-
};
|
26
|
-
|
27
|
-
const LANGUAGE_SOURCE_NAME = 'localization-management.language';
|
28
|
-
const TIMEZONE_SOURCE_NAME = 'localization-management.timeZone';
|
29
|
-
const CULTURE_SOURCE_NAME = 'localization-management.culture';
|
30
|
-
|
31
|
-
class AXMCultureService extends AXMEntityCrudServiceImpl {
|
32
|
-
}
|
33
|
-
class AXMCultureServiceImpl extends AXMEntityCrudServiceImpl {
|
34
|
-
constructor() {
|
35
|
-
super(CULTURE_SOURCE_NAME);
|
36
|
-
}
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCultureServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
38
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCultureServiceImpl }); }
|
39
|
-
}
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCultureServiceImpl, decorators: [{
|
41
|
-
type: Injectable
|
42
|
-
}], ctorParameters: () => [] });
|
43
|
-
|
44
|
-
async function cultureEntityFactory(injector) {
|
45
|
-
const dataService = injector.get(AXMCultureService);
|
46
|
-
const entityDef = {
|
47
|
-
module: 'localization-management',
|
48
|
-
name: 'culture',
|
49
|
-
source: 'localizationManagement.culture',
|
50
|
-
title: 'Culture',
|
51
|
-
formats: {
|
52
|
-
individual: 'Culture',
|
53
|
-
plural: 'Cultures',
|
54
|
-
},
|
55
|
-
relatedEntities: [],
|
56
|
-
groups: [
|
57
|
-
{
|
58
|
-
id: 'culture',
|
59
|
-
title: 'Culture',
|
60
|
-
},
|
61
|
-
],
|
62
|
-
properties: [
|
63
|
-
{
|
64
|
-
name: 'title',
|
65
|
-
title: 'Title',
|
66
|
-
groupId: 'language',
|
67
|
-
schema: {
|
68
|
-
dataType: 'string',
|
69
|
-
interface: {
|
70
|
-
type: AXPWidgetsCatalog.text,
|
71
|
-
},
|
72
|
-
},
|
73
|
-
validations: [
|
74
|
-
{
|
75
|
-
rule: 'required',
|
76
|
-
},
|
77
|
-
],
|
78
|
-
},
|
79
|
-
{
|
80
|
-
name: 'code',
|
81
|
-
title: 'Code',
|
82
|
-
groupId: 'language',
|
83
|
-
schema: {
|
84
|
-
dataType: 'string',
|
85
|
-
interface: {
|
86
|
-
type: AXPWidgetsCatalog.text,
|
87
|
-
},
|
88
|
-
},
|
89
|
-
validations: [
|
90
|
-
{
|
91
|
-
rule: 'required',
|
92
|
-
},
|
93
|
-
],
|
94
|
-
},
|
95
|
-
],
|
96
|
-
columns: [{ name: 'title' }, { name: 'code' }],
|
97
|
-
commands: {
|
98
|
-
create: {
|
99
|
-
execute: async (data) => {
|
100
|
-
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
101
|
-
dataService.insertOne(entity);
|
102
|
-
return Promise.resolve(entity);
|
103
|
-
},
|
104
|
-
},
|
105
|
-
delete: {
|
106
|
-
execute: async (id) => {
|
107
|
-
await await dataService.deleteOne(id);
|
108
|
-
return Promise.resolve();
|
109
|
-
},
|
110
|
-
},
|
111
|
-
update: {
|
112
|
-
execute: async (data) => {
|
113
|
-
return new Promise((resolve) => {
|
114
|
-
setTimeout(async () => {
|
115
|
-
await dataService.updateOne(data.id, data);
|
116
|
-
resolve(data);
|
117
|
-
}, 1000);
|
118
|
-
});
|
119
|
-
},
|
120
|
-
},
|
121
|
-
},
|
122
|
-
queries: {
|
123
|
-
byKey: {
|
124
|
-
execute: async (id) => {
|
125
|
-
return new Promise((resolve) => {
|
126
|
-
setTimeout(async () => {
|
127
|
-
const entity = await dataService.getOne(id);
|
128
|
-
resolve(entity);
|
129
|
-
}, 500);
|
130
|
-
});
|
131
|
-
},
|
132
|
-
type: AXPEntityQueryType.Single,
|
133
|
-
},
|
134
|
-
list: {
|
135
|
-
execute: async (e) => {
|
136
|
-
return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
137
|
-
},
|
138
|
-
type: AXPEntityQueryType.List,
|
139
|
-
},
|
140
|
-
},
|
141
|
-
interfaces: {
|
142
|
-
master: {
|
143
|
-
create: {
|
144
|
-
sections: [
|
145
|
-
{
|
146
|
-
id: 'language',
|
147
|
-
},
|
148
|
-
],
|
149
|
-
properties: [
|
150
|
-
{
|
151
|
-
name: 'title',
|
152
|
-
layout: {
|
153
|
-
positions: {
|
154
|
-
lg: {
|
155
|
-
colSpan: 6,
|
156
|
-
},
|
157
|
-
},
|
158
|
-
},
|
159
|
-
},
|
160
|
-
{
|
161
|
-
name: 'code',
|
162
|
-
layout: {
|
163
|
-
positions: {
|
164
|
-
lg: {
|
165
|
-
colSpan: 6,
|
166
|
-
},
|
167
|
-
},
|
168
|
-
},
|
169
|
-
},
|
170
|
-
],
|
171
|
-
},
|
172
|
-
update: {
|
173
|
-
sections: [
|
174
|
-
{
|
175
|
-
id: 'language',
|
176
|
-
},
|
177
|
-
],
|
178
|
-
properties: [
|
179
|
-
{
|
180
|
-
name: 'title',
|
181
|
-
layout: {
|
182
|
-
positions: {
|
183
|
-
lg: {
|
184
|
-
colSpan: 6,
|
185
|
-
},
|
186
|
-
},
|
187
|
-
},
|
188
|
-
},
|
189
|
-
{
|
190
|
-
name: 'code',
|
191
|
-
layout: {
|
192
|
-
positions: {
|
193
|
-
lg: {
|
194
|
-
colSpan: 6,
|
195
|
-
},
|
196
|
-
},
|
197
|
-
},
|
198
|
-
},
|
199
|
-
],
|
200
|
-
},
|
201
|
-
single: {
|
202
|
-
title: '{{title}}',
|
203
|
-
sections: [
|
204
|
-
{
|
205
|
-
id: 'language',
|
206
|
-
},
|
207
|
-
],
|
208
|
-
properties: [
|
209
|
-
{
|
210
|
-
name: 'title',
|
211
|
-
layout: {
|
212
|
-
positions: {
|
213
|
-
lg: {
|
214
|
-
colSpan: 6,
|
215
|
-
},
|
216
|
-
},
|
217
|
-
},
|
218
|
-
},
|
219
|
-
{
|
220
|
-
name: 'code',
|
221
|
-
layout: {
|
222
|
-
positions: {
|
223
|
-
lg: {
|
224
|
-
colSpan: 6,
|
225
|
-
},
|
226
|
-
},
|
227
|
-
},
|
228
|
-
},
|
229
|
-
],
|
230
|
-
actions: [],
|
231
|
-
},
|
232
|
-
list: {
|
233
|
-
actions: [
|
234
|
-
{
|
235
|
-
title: 'Create New',
|
236
|
-
command: 'create-entity',
|
237
|
-
priority: 'primary',
|
238
|
-
type: 'create',
|
239
|
-
scope: AXPEntityCommandScope.TypeLevel,
|
240
|
-
},
|
241
|
-
{
|
242
|
-
title: 'Delete Items',
|
243
|
-
command: 'delete-entity',
|
244
|
-
priority: 'primary',
|
245
|
-
type: 'delete',
|
246
|
-
scope: AXPEntityCommandScope.Selected,
|
247
|
-
},
|
248
|
-
{
|
249
|
-
title: 'Details',
|
250
|
-
command: 'open-entity',
|
251
|
-
priority: 'secondary',
|
252
|
-
type: 'view',
|
253
|
-
scope: AXPEntityCommandScope.Individual,
|
254
|
-
},
|
255
|
-
{
|
256
|
-
title: 'Delete',
|
257
|
-
command: 'delete-entity',
|
258
|
-
priority: 'secondary',
|
259
|
-
type: 'delete',
|
260
|
-
scope: AXPEntityCommandScope.Individual,
|
261
|
-
},
|
262
|
-
],
|
263
|
-
views: [
|
264
|
-
{
|
265
|
-
name: 'all',
|
266
|
-
title: 'All Items',
|
267
|
-
fixed: true,
|
268
|
-
columns: [],
|
269
|
-
conditions: [],
|
270
|
-
sorts: [],
|
271
|
-
},
|
272
|
-
],
|
273
|
-
},
|
274
|
-
},
|
275
|
-
},
|
276
|
-
};
|
277
|
-
return entityDef;
|
278
|
-
}
|
279
|
-
|
280
|
-
var culture_entity = /*#__PURE__*/Object.freeze({
|
281
|
-
__proto__: null,
|
282
|
-
cultureEntityFactory: cultureEntityFactory
|
283
|
-
});
|
284
|
-
|
285
|
-
class AXMLocalizationManagementModuleEntityLoader {
|
286
|
-
constructor() {
|
287
|
-
this.injector = inject(Injector);
|
288
|
-
}
|
289
|
-
async get(moduleName, entityName) {
|
290
|
-
return new Promise(async (resolve) => {
|
291
|
-
switch (entityName) {
|
292
|
-
case AXMLocalizationManagementModuleConst.languageEntity: {
|
293
|
-
const entity = (await Promise.resolve().then(function () { return language_entity; })).languageEntityFactory;
|
294
|
-
resolve(entity(this.injector));
|
295
|
-
break;
|
296
|
-
}
|
297
|
-
case AXMLocalizationManagementModuleConst.timeZoneEntity: {
|
298
|
-
const entity = (await Promise.resolve().then(function () { return timeZone_entity; })).timeZoneEntityFactory;
|
299
|
-
resolve(entity(this.injector));
|
300
|
-
break;
|
301
|
-
}
|
302
|
-
case AXMLocalizationManagementModuleConst.cultureEntity: {
|
303
|
-
const entity = (await Promise.resolve().then(function () { return culture_entity; })).cultureEntityFactory;
|
304
|
-
resolve(entity(this.injector));
|
305
|
-
break;
|
306
|
-
}
|
307
|
-
default:
|
308
|
-
resolve(null);
|
309
|
-
}
|
310
|
-
});
|
311
|
-
}
|
312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
313
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModuleEntityLoader }); }
|
314
|
-
}
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModuleEntityLoader, decorators: [{
|
316
|
-
type: Injectable
|
317
|
-
}] });
|
318
|
-
|
319
|
-
class AXMLanguageService extends AXMEntityCrudServiceImpl {
|
320
|
-
}
|
321
|
-
class AXMLanguageServiceImpl extends AXMEntityCrudServiceImpl {
|
322
|
-
constructor() {
|
323
|
-
super(`${AXMLocalizationManagementModuleConst.moduleName}.${AXMLocalizationManagementModuleConst.languageEntity}`);
|
324
|
-
}
|
325
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
326
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageServiceImpl }); }
|
327
|
-
}
|
328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageServiceImpl, decorators: [{
|
329
|
-
type: Injectable
|
330
|
-
}], ctorParameters: () => [] });
|
331
|
-
|
332
|
-
async function languageEntityFactory(injector) {
|
333
|
-
const dataService = injector.get(AXMLanguageService);
|
334
|
-
const entityDef = {
|
335
|
-
module: 'localization-management',
|
336
|
-
name: 'language',
|
337
|
-
source: 'localizationManagement.language',
|
338
|
-
title: 'Language',
|
339
|
-
formats: {
|
340
|
-
individual: 'Language',
|
341
|
-
plural: 'Languages',
|
342
|
-
},
|
343
|
-
relatedEntities: [],
|
344
|
-
groups: [
|
345
|
-
{
|
346
|
-
id: 'language',
|
347
|
-
title: 'Language',
|
348
|
-
},
|
349
|
-
],
|
350
|
-
properties: [
|
351
|
-
{
|
352
|
-
name: 'title',
|
353
|
-
title: 'Title',
|
354
|
-
groupId: 'language',
|
355
|
-
schema: {
|
356
|
-
dataType: 'string',
|
357
|
-
interface: {
|
358
|
-
type: AXPWidgetsCatalog.text,
|
359
|
-
},
|
360
|
-
},
|
361
|
-
validations: [
|
362
|
-
{
|
363
|
-
rule: 'required',
|
364
|
-
},
|
365
|
-
],
|
366
|
-
},
|
367
|
-
{
|
368
|
-
name: 'code',
|
369
|
-
title: 'Code',
|
370
|
-
groupId: 'language',
|
371
|
-
schema: {
|
372
|
-
dataType: 'string',
|
373
|
-
interface: {
|
374
|
-
type: AXPWidgetsCatalog.text,
|
375
|
-
},
|
376
|
-
},
|
377
|
-
validations: [
|
378
|
-
{
|
379
|
-
rule: 'required',
|
380
|
-
},
|
381
|
-
],
|
382
|
-
},
|
383
|
-
],
|
384
|
-
columns: [{ name: 'title' }, { name: 'code' }],
|
385
|
-
commands: {
|
386
|
-
create: {
|
387
|
-
execute: async (data) => {
|
388
|
-
return Promise.resolve(dataService.insertOne(data));
|
389
|
-
},
|
390
|
-
},
|
391
|
-
delete: {
|
392
|
-
execute: async (id) => {
|
393
|
-
await await dataService.deleteOne(id);
|
394
|
-
return Promise.resolve();
|
395
|
-
},
|
396
|
-
},
|
397
|
-
update: {
|
398
|
-
execute: async (data) => {
|
399
|
-
return new Promise((resolve) => {
|
400
|
-
setTimeout(async () => {
|
401
|
-
await dataService.updateOne(data.id, data);
|
402
|
-
resolve(data);
|
403
|
-
}, 1000);
|
404
|
-
});
|
405
|
-
},
|
406
|
-
},
|
407
|
-
},
|
408
|
-
queries: {
|
409
|
-
byKey: {
|
410
|
-
execute: async (id) => {
|
411
|
-
return new Promise((resolve) => {
|
412
|
-
setTimeout(async () => {
|
413
|
-
const entity = await dataService.getOne(id);
|
414
|
-
resolve(entity);
|
415
|
-
}, 500);
|
416
|
-
});
|
417
|
-
},
|
418
|
-
type: AXPEntityQueryType.Single,
|
419
|
-
},
|
420
|
-
list: {
|
421
|
-
execute: async (e) => {
|
422
|
-
return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
423
|
-
},
|
424
|
-
type: AXPEntityQueryType.List,
|
425
|
-
},
|
426
|
-
},
|
427
|
-
interfaces: {
|
428
|
-
master: {
|
429
|
-
create: {
|
430
|
-
sections: [
|
431
|
-
{
|
432
|
-
id: 'language',
|
433
|
-
},
|
434
|
-
],
|
435
|
-
properties: [
|
436
|
-
{
|
437
|
-
name: 'title',
|
438
|
-
layout: {
|
439
|
-
positions: {
|
440
|
-
lg: {
|
441
|
-
colSpan: 6,
|
442
|
-
},
|
443
|
-
},
|
444
|
-
},
|
445
|
-
},
|
446
|
-
{
|
447
|
-
name: 'code',
|
448
|
-
layout: {
|
449
|
-
positions: {
|
450
|
-
lg: {
|
451
|
-
colSpan: 6,
|
452
|
-
},
|
453
|
-
},
|
454
|
-
},
|
455
|
-
},
|
456
|
-
],
|
457
|
-
},
|
458
|
-
update: {
|
459
|
-
sections: [
|
460
|
-
{
|
461
|
-
id: 'language',
|
462
|
-
},
|
463
|
-
],
|
464
|
-
properties: [
|
465
|
-
{
|
466
|
-
name: 'title',
|
467
|
-
layout: {
|
468
|
-
positions: {
|
469
|
-
lg: {
|
470
|
-
colSpan: 6,
|
471
|
-
},
|
472
|
-
},
|
473
|
-
},
|
474
|
-
},
|
475
|
-
{
|
476
|
-
name: 'code',
|
477
|
-
layout: {
|
478
|
-
positions: {
|
479
|
-
lg: {
|
480
|
-
colSpan: 6,
|
481
|
-
},
|
482
|
-
},
|
483
|
-
},
|
484
|
-
},
|
485
|
-
],
|
486
|
-
},
|
487
|
-
single: {
|
488
|
-
title: '{{title}}',
|
489
|
-
sections: [
|
490
|
-
{
|
491
|
-
id: 'language',
|
492
|
-
},
|
493
|
-
],
|
494
|
-
properties: [
|
495
|
-
{
|
496
|
-
name: 'title',
|
497
|
-
layout: {
|
498
|
-
positions: {
|
499
|
-
lg: {
|
500
|
-
colSpan: 6,
|
501
|
-
},
|
502
|
-
},
|
503
|
-
},
|
504
|
-
},
|
505
|
-
{
|
506
|
-
name: 'code',
|
507
|
-
layout: {
|
508
|
-
positions: {
|
509
|
-
lg: {
|
510
|
-
colSpan: 6,
|
511
|
-
},
|
512
|
-
},
|
513
|
-
},
|
514
|
-
},
|
515
|
-
],
|
516
|
-
actions: [],
|
517
|
-
},
|
518
|
-
list: {
|
519
|
-
actions: [
|
520
|
-
{
|
521
|
-
title: 'Create New',
|
522
|
-
command: 'create-entity',
|
523
|
-
priority: 'primary',
|
524
|
-
type: 'create',
|
525
|
-
scope: AXPEntityCommandScope.TypeLevel,
|
526
|
-
},
|
527
|
-
{
|
528
|
-
title: 'Delete Items',
|
529
|
-
command: 'delete-entity',
|
530
|
-
priority: 'primary',
|
531
|
-
type: 'delete',
|
532
|
-
scope: AXPEntityCommandScope.Selected,
|
533
|
-
},
|
534
|
-
{
|
535
|
-
title: 'Details',
|
536
|
-
command: 'open-entity',
|
537
|
-
priority: 'secondary',
|
538
|
-
type: 'view',
|
539
|
-
scope: AXPEntityCommandScope.Individual,
|
540
|
-
},
|
541
|
-
{
|
542
|
-
title: 'Delete',
|
543
|
-
command: 'delete-entity',
|
544
|
-
priority: 'secondary',
|
545
|
-
type: 'delete',
|
546
|
-
scope: AXPEntityCommandScope.Individual,
|
547
|
-
},
|
548
|
-
],
|
549
|
-
views: [
|
550
|
-
{
|
551
|
-
name: 'all',
|
552
|
-
title: 'All Items',
|
553
|
-
fixed: true,
|
554
|
-
columns: [],
|
555
|
-
conditions: [],
|
556
|
-
sorts: [],
|
557
|
-
},
|
558
|
-
],
|
559
|
-
},
|
560
|
-
},
|
561
|
-
},
|
562
|
-
};
|
563
|
-
return entityDef;
|
564
|
-
}
|
565
|
-
|
566
|
-
var language_entity = /*#__PURE__*/Object.freeze({
|
567
|
-
__proto__: null,
|
568
|
-
languageEntityFactory: languageEntityFactory
|
569
|
-
});
|
570
|
-
|
571
|
-
const LANGUAGE_VARIANT_KEY = 'localization:language';
|
572
|
-
// ThemeStore - Manages theme settings and system changes
|
573
|
-
const AXPLocalizationStoreService = signalStore({ providedIn: 'root' },
|
574
|
-
// Initial State
|
575
|
-
withState((translationService = inject(AXTranslationService)) => {
|
576
|
-
const state = {
|
577
|
-
language: translationService.getDefaultLang(),
|
578
|
-
};
|
579
|
-
return state;
|
580
|
-
}),
|
581
|
-
// Computed Signals
|
582
|
-
// withComputed(({ }) => ({
|
583
|
-
// })),
|
584
|
-
// Methods for State Management
|
585
|
-
withMethods((store, settingService = inject(AXPSettingsService), translationService = inject(AXTranslationService)) => {
|
586
|
-
return {
|
587
|
-
changeLanguage(lang) {
|
588
|
-
settingService.set(LANGUAGE_VARIANT_KEY, lang);
|
589
|
-
translationService.setActiveLang(lang);
|
590
|
-
patchState(store, { language: lang });
|
591
|
-
},
|
592
|
-
async loadSetting() {
|
593
|
-
const lang = (await settingService.get(LANGUAGE_VARIANT_KEY)) ?? translationService.getDefaultLang();
|
594
|
-
settingService.set(LANGUAGE_VARIANT_KEY, lang);
|
595
|
-
translationService.setActiveLang(lang);
|
596
|
-
patchState(store, { language: lang });
|
597
|
-
},
|
598
|
-
};
|
599
|
-
}));
|
600
|
-
|
601
|
-
class AXMLanguageSlotComponent {
|
602
|
-
constructor() {
|
603
|
-
this.languageService = inject(AXMLanguageService);
|
604
|
-
this.store = inject(AXPLocalizationStoreService);
|
605
|
-
this.items = signal([]);
|
606
|
-
}
|
607
|
-
async ngOnInit() {
|
608
|
-
const items = (await this.languageService.query()).items.map(c => ({ code: c.code, title: c.title }));
|
609
|
-
this.items.set(items);
|
610
|
-
}
|
611
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
612
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button look=\"blank\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: CommonModule }] }); }
|
613
|
-
}
|
614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
|
615
|
-
type: Component,
|
616
|
-
args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule, CommonModule], template: "<ax-button look=\"blank\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>" }]
|
617
|
-
}] });
|
618
|
-
|
619
|
-
class AXMLocalizationManagementModuleMenuProvider {
|
620
|
-
constructor() {
|
621
|
-
this.entityService = inject(AXPEntityService);
|
622
|
-
}
|
623
|
-
async provide(context) {
|
624
|
-
const scope = AXMLocalizationManagementModuleConst.i18n;
|
625
|
-
const moduleName = AXMLocalizationManagementModuleConst.moduleName;
|
626
|
-
context.addItems([
|
627
|
-
{
|
628
|
-
text: `t('module-name', {scope: "${scope}"})`,
|
629
|
-
icon: 'fa-solid fa-globe-stand',
|
630
|
-
type: 'menu',
|
631
|
-
priority: 9100,
|
632
|
-
data: {
|
633
|
-
// requiredPermission: 'demo.admin.settings',
|
634
|
-
},
|
635
|
-
children: [
|
636
|
-
{
|
637
|
-
priority: 9001,
|
638
|
-
icon: 'fa-solid fa-language',
|
639
|
-
text: `t('language-definition', {scope: "${scope}"})`,
|
640
|
-
path: this.entityService.createPath(moduleName, AXMLocalizationManagementModuleConst.languageEntity),
|
641
|
-
},
|
642
|
-
{
|
643
|
-
priority: 9003,
|
644
|
-
icon: 'fa-solid fa-clock-one-thirty',
|
645
|
-
text: `t('time-zone', {scope: "${scope}"})`,
|
646
|
-
path: this.entityService.createPath(moduleName, AXMLocalizationManagementModuleConst.timeZoneEntity),
|
647
|
-
},
|
648
|
-
{
|
649
|
-
priority: 9003,
|
650
|
-
icon: 'fa-solid fa-mountain-sun',
|
651
|
-
text: `t('culture', {scope: "${scope}"})`,
|
652
|
-
path: this.entityService.createPath(moduleName, AXMLocalizationManagementModuleConst.cultureEntity),
|
653
|
-
},
|
654
|
-
],
|
655
|
-
},
|
656
|
-
]);
|
657
|
-
}
|
658
|
-
}
|
659
|
-
|
660
|
-
class AXMTimeZoneService extends AXMEntityCrudServiceImpl {
|
661
|
-
}
|
662
|
-
class AXMTimeZoneServiceImpl extends AXMEntityCrudServiceImpl {
|
663
|
-
constructor() {
|
664
|
-
super(TIMEZONE_SOURCE_NAME);
|
665
|
-
}
|
666
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTimeZoneServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
667
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTimeZoneServiceImpl }); }
|
668
|
-
}
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTimeZoneServiceImpl, decorators: [{
|
670
|
-
type: Injectable
|
671
|
-
}], ctorParameters: () => [] });
|
672
|
-
|
673
|
-
async function timeZoneEntityFactory(injector) {
|
674
|
-
const dataService = injector.get(AXMTimeZoneService);
|
675
|
-
const entityDef = {
|
676
|
-
module: 'localization-management',
|
677
|
-
name: 'time-zone',
|
678
|
-
source: 'localizationManagement.timeZone',
|
679
|
-
title: 'Time Zone',
|
680
|
-
formats: {
|
681
|
-
individual: 'Time Zone',
|
682
|
-
plural: 'Time Zones',
|
683
|
-
},
|
684
|
-
relatedEntities: [],
|
685
|
-
groups: [
|
686
|
-
{
|
687
|
-
id: 'section',
|
688
|
-
title: 'Time Zone',
|
689
|
-
},
|
690
|
-
],
|
691
|
-
properties: [
|
692
|
-
{
|
693
|
-
name: 'title',
|
694
|
-
title: 'Title',
|
695
|
-
groupId: 'section',
|
696
|
-
schema: {
|
697
|
-
dataType: 'string',
|
698
|
-
interface: {
|
699
|
-
type: AXPWidgetsCatalog.text,
|
700
|
-
},
|
701
|
-
},
|
702
|
-
validations: [
|
703
|
-
{
|
704
|
-
rule: 'required',
|
705
|
-
},
|
706
|
-
],
|
707
|
-
},
|
708
|
-
{
|
709
|
-
name: 'name',
|
710
|
-
title: 'Name',
|
711
|
-
groupId: 'section',
|
712
|
-
schema: {
|
713
|
-
dataType: 'string',
|
714
|
-
interface: {
|
715
|
-
type: AXPWidgetsCatalog.text,
|
716
|
-
},
|
717
|
-
},
|
718
|
-
validations: [
|
719
|
-
{
|
720
|
-
rule: 'required',
|
721
|
-
},
|
722
|
-
],
|
723
|
-
},
|
724
|
-
{
|
725
|
-
name: 'gmtOffset',
|
726
|
-
title: 'GMT Offset',
|
727
|
-
groupId: 'section',
|
728
|
-
schema: {
|
729
|
-
dataType: 'integer',
|
730
|
-
interface: {
|
731
|
-
type: AXPWidgetsCatalog.text,
|
732
|
-
},
|
733
|
-
},
|
734
|
-
validations: [
|
735
|
-
{
|
736
|
-
rule: 'required',
|
737
|
-
},
|
738
|
-
],
|
739
|
-
},
|
740
|
-
{
|
741
|
-
name: 'gmtOffsetName',
|
742
|
-
title: 'GMT',
|
743
|
-
groupId: 'section',
|
744
|
-
schema: {
|
745
|
-
dataType: 'string',
|
746
|
-
interface: {
|
747
|
-
type: AXPWidgetsCatalog.text,
|
748
|
-
},
|
749
|
-
},
|
750
|
-
validations: [
|
751
|
-
{
|
752
|
-
rule: 'required',
|
753
|
-
},
|
754
|
-
],
|
755
|
-
},
|
756
|
-
{
|
757
|
-
name: 'abbreviation',
|
758
|
-
title: 'Abbreviation',
|
759
|
-
groupId: 'section',
|
760
|
-
schema: {
|
761
|
-
dataType: 'string',
|
762
|
-
interface: {
|
763
|
-
type: AXPWidgetsCatalog.text,
|
764
|
-
},
|
765
|
-
},
|
766
|
-
validations: [
|
767
|
-
{
|
768
|
-
rule: 'required',
|
769
|
-
},
|
770
|
-
],
|
771
|
-
},
|
772
|
-
{
|
773
|
-
name: 'tzName',
|
774
|
-
title: 'TZ',
|
775
|
-
groupId: 'section',
|
776
|
-
schema: {
|
777
|
-
dataType: 'string',
|
778
|
-
interface: {
|
779
|
-
type: AXPWidgetsCatalog.text,
|
780
|
-
},
|
781
|
-
},
|
782
|
-
validations: [
|
783
|
-
{
|
784
|
-
rule: 'required',
|
785
|
-
},
|
786
|
-
],
|
787
|
-
},
|
788
|
-
],
|
789
|
-
columns: [{ name: 'title' }, { name: 'gmtOffsetName' }, { name: 'abbreviation' }, { name: 'tzName' }],
|
790
|
-
commands: {
|
791
|
-
create: {
|
792
|
-
execute: async (data) => {
|
793
|
-
return Promise.resolve({});
|
794
|
-
},
|
795
|
-
},
|
796
|
-
delete: {
|
797
|
-
execute: async (id) => {
|
798
|
-
return Promise.resolve();
|
799
|
-
},
|
800
|
-
},
|
801
|
-
update: {
|
802
|
-
execute: async (data) => {
|
803
|
-
return Promise.resolve();
|
804
|
-
},
|
805
|
-
},
|
806
|
-
},
|
807
|
-
queries: {
|
808
|
-
byKey: {
|
809
|
-
execute: async (id) => {
|
810
|
-
return new Promise((resolve) => {
|
811
|
-
setTimeout(async () => {
|
812
|
-
const entity = await dataService.getOne(id);
|
813
|
-
resolve(entity);
|
814
|
-
}, 500);
|
815
|
-
});
|
816
|
-
},
|
817
|
-
type: AXPEntityQueryType.Single,
|
818
|
-
},
|
819
|
-
list: {
|
820
|
-
execute: async (e) => {
|
821
|
-
return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
822
|
-
},
|
823
|
-
type: AXPEntityQueryType.List,
|
824
|
-
},
|
825
|
-
},
|
826
|
-
interfaces: {
|
827
|
-
master: {
|
828
|
-
single: {
|
829
|
-
title: '{{title}}',
|
830
|
-
sections: [
|
831
|
-
{
|
832
|
-
id: 'section',
|
833
|
-
},
|
834
|
-
],
|
835
|
-
properties: [
|
836
|
-
{
|
837
|
-
name: 'name',
|
838
|
-
layout: {
|
839
|
-
positions: {
|
840
|
-
lg: {
|
841
|
-
colSpan: 6,
|
842
|
-
},
|
843
|
-
},
|
844
|
-
},
|
845
|
-
},
|
846
|
-
{
|
847
|
-
name: 'title',
|
848
|
-
layout: {
|
849
|
-
positions: {
|
850
|
-
lg: {
|
851
|
-
colSpan: 6,
|
852
|
-
},
|
853
|
-
},
|
854
|
-
},
|
855
|
-
},
|
856
|
-
{
|
857
|
-
name: 'gmtOffset',
|
858
|
-
layout: {
|
859
|
-
positions: {
|
860
|
-
lg: {
|
861
|
-
colSpan: 6,
|
862
|
-
},
|
863
|
-
},
|
864
|
-
},
|
865
|
-
},
|
866
|
-
{
|
867
|
-
name: 'gmtOffsetName',
|
868
|
-
layout: {
|
869
|
-
positions: {
|
870
|
-
lg: {
|
871
|
-
colSpan: 6,
|
872
|
-
},
|
873
|
-
},
|
874
|
-
},
|
875
|
-
},
|
876
|
-
{
|
877
|
-
name: 'abbreviation',
|
878
|
-
layout: {
|
879
|
-
positions: {
|
880
|
-
lg: {
|
881
|
-
colSpan: 6,
|
882
|
-
},
|
883
|
-
},
|
884
|
-
},
|
885
|
-
},
|
886
|
-
{
|
887
|
-
name: 'tzName',
|
888
|
-
layout: {
|
889
|
-
positions: {
|
890
|
-
lg: {
|
891
|
-
colSpan: 6,
|
892
|
-
},
|
893
|
-
},
|
894
|
-
},
|
895
|
-
},
|
896
|
-
],
|
897
|
-
actions: [],
|
898
|
-
},
|
899
|
-
list: {
|
900
|
-
actions: [
|
901
|
-
{
|
902
|
-
title: 'Details',
|
903
|
-
command: 'open-entity',
|
904
|
-
priority: 'secondary',
|
905
|
-
type: 'view',
|
906
|
-
scope: AXPEntityCommandScope.Individual,
|
907
|
-
},
|
908
|
-
],
|
909
|
-
views: [
|
910
|
-
{
|
911
|
-
name: 'all',
|
912
|
-
title: 'All Items',
|
913
|
-
fixed: true,
|
914
|
-
columns: [],
|
915
|
-
conditions: [],
|
916
|
-
sorts: [],
|
917
|
-
},
|
918
|
-
],
|
919
|
-
},
|
920
|
-
},
|
921
|
-
},
|
922
|
-
};
|
923
|
-
return entityDef;
|
924
|
-
}
|
925
|
-
|
926
|
-
var timeZone_entity = /*#__PURE__*/Object.freeze({
|
927
|
-
__proto__: null,
|
928
|
-
timeZoneEntityFactory: timeZoneEntityFactory
|
929
|
-
});
|
930
|
-
|
931
|
-
class AXMLocalizationManagementModule {
|
932
|
-
constructor(appInitService, injector) {
|
933
|
-
const service = injector.get(AXPLocalizationStoreService);
|
934
|
-
appInitService.registerTask({
|
935
|
-
name: 'Settings',
|
936
|
-
statusText: 'Loading Settings ...',
|
937
|
-
run: async () => {
|
938
|
-
await service.loadSetting();
|
939
|
-
}
|
940
|
-
});
|
941
|
-
}
|
942
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModule, deps: [{ token: i1$1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
943
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModule, imports: [i1$1.AXPComponentSlotModule] }); }
|
944
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModule, providers: [
|
945
|
-
{
|
946
|
-
provide: AXP_MENU_PROVIDER,
|
947
|
-
useClass: AXMLocalizationManagementModuleMenuProvider,
|
948
|
-
multi: true
|
949
|
-
},
|
950
|
-
{
|
951
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
952
|
-
useClass: AXMLocalizationManagementModuleEntityLoader,
|
953
|
-
multi: true
|
954
|
-
},
|
955
|
-
{
|
956
|
-
provide: AXMLanguageService,
|
957
|
-
useClass: AXMLanguageServiceImpl
|
958
|
-
},
|
959
|
-
{
|
960
|
-
provide: AXMTimeZoneService,
|
961
|
-
useClass: AXMTimeZoneServiceImpl
|
962
|
-
},
|
963
|
-
{
|
964
|
-
provide: AXMCultureService,
|
965
|
-
useClass: AXMCultureServiceImpl
|
966
|
-
}
|
967
|
-
], imports: [AXPComponentSlotModule.forChild({
|
968
|
-
'header-end': [
|
969
|
-
{
|
970
|
-
name: 'language',
|
971
|
-
component: AXMLanguageSlotComponent
|
972
|
-
}
|
973
|
-
]
|
974
|
-
})] }); }
|
975
|
-
}
|
976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLocalizationManagementModule, decorators: [{
|
977
|
-
type: NgModule,
|
978
|
-
args: [{
|
979
|
-
imports: [
|
980
|
-
AXPComponentSlotModule.forChild({
|
981
|
-
'header-end': [
|
982
|
-
{
|
983
|
-
name: 'language',
|
984
|
-
component: AXMLanguageSlotComponent
|
985
|
-
}
|
986
|
-
]
|
987
|
-
})
|
988
|
-
],
|
989
|
-
exports: [],
|
990
|
-
declarations: [],
|
991
|
-
providers: [
|
992
|
-
{
|
993
|
-
provide: AXP_MENU_PROVIDER,
|
994
|
-
useClass: AXMLocalizationManagementModuleMenuProvider,
|
995
|
-
multi: true
|
996
|
-
},
|
997
|
-
{
|
998
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
999
|
-
useClass: AXMLocalizationManagementModuleEntityLoader,
|
1000
|
-
multi: true
|
1001
|
-
},
|
1002
|
-
{
|
1003
|
-
provide: AXMLanguageService,
|
1004
|
-
useClass: AXMLanguageServiceImpl
|
1005
|
-
},
|
1006
|
-
{
|
1007
|
-
provide: AXMTimeZoneService,
|
1008
|
-
useClass: AXMTimeZoneServiceImpl
|
1009
|
-
},
|
1010
|
-
{
|
1011
|
-
provide: AXMCultureService,
|
1012
|
-
useClass: AXMCultureServiceImpl
|
1013
|
-
}
|
1014
|
-
]
|
1015
|
-
}]
|
1016
|
-
}], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
|
1017
|
-
|
1018
|
-
/**
|
1019
|
-
* Generated bundle index. Do not edit.
|
1020
|
-
*/
|
1021
|
-
|
1022
|
-
export { AXMCultureService, AXMCultureServiceImpl, AXMLanguageService, AXMLanguageServiceImpl, AXMLocalizationManagementModule, AXMLocalizationManagementModuleConst, AXMLocalizationManagementModuleEntityLoader, AXMLocalizationManagementModuleMenuProvider, AXMTimeZoneService, AXMTimeZoneServiceImpl, CULTURE_SOURCE_NAME, LANGUAGE_SOURCE_NAME, TIMEZONE_SOURCE_NAME, cultureEntityFactory, languageEntityFactory, timeZoneEntityFactory };
|
1023
|
-
//# sourceMappingURL=acorex-modules-localization-management.mjs.map
|