@acorex-platform/module-locale-management-client 0.0.38 → 0.0.46
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/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-languages.mjs +15 -0
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-languages.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-locales.mjs +15 -0
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-locales.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-timezones.mjs +14 -0
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-timezones.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-DOzoxwbc.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs.map → acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-DOzoxwbc.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-DRZszos9.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-IOvg246r.mjs} +17 -2
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-IOvg246r.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-DZFu6qeI.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-TQnEUIIO.mjs} +17 -2
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-TQnEUIIO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-CpQC5lS7.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-BLNew12v.mjs} +16 -2
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-BLNew12v.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-locale-management-client-contracts.mjs +21 -1
- package/fesm2022/acorex-platform-module-locale-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-locale-management-client.mjs +14 -47
- package/fesm2022/acorex-platform-module-locale-management-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-locale-management-client-contracts.d.ts +8 -2
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-DRZszos9.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-DZFu6qeI.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-CpQC5lS7.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-BLNew12v.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/entities/timezones/timezones.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function timezonesFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.timezones.name,\n title: RootConfig.entities.timezones.title,\n icon: RootConfig.entities.timezones.icon,\n searchTags: [\n 'locale',\n 'timezone',\n 'utc-offset',\n 'dst',\n 'daylight-saving',\n 'regional-settings',\n 'time-zone',\n 'abbreviation',\n 'منطقه زمانی',\n 'مناطق زمانی',\n 'اختلاف با UTC',\n 'مدیریت محلیسازی',\n ],\n formats: {\n individual: RootConfig.entities.timezones.title,\n plural: RootConfig.entities.timezones.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n {\n id: 'settings',\n title: '@general:terms.interface.settings',\n },\n ],\n properties: [\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., America/New_York',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., Eastern Standard Time',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'abbreviation',\n title: '@locale-management:timezones.entities.timezone.fields.abbreviation',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., EST, PST',\n },\n },\n },\n },\n {\n name: 'standardOffset',\n title: '@locale-management:timezones.entities.timezone.fields.standard-offset',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n placeholder: 'Offset in minutes from UTC',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'region',\n title: '@locale-management:timezones.entities.timezone.fields.region',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., Americas, Europe',\n },\n },\n },\n },\n {\n name: 'supportsDST',\n title: '@locale-management:timezones.entities.timezone.fields.supports-dst',\n groupId: 'settings',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsCatalog.toggle,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '200px', order: 1 } },\n { name: 'title', options: { width: '250px', order: 2 } },\n { name: 'abbreviation', options: { width: '100px', order: 3 } },\n { name: 'standardOffset', options: { width: '120px', order: 4 } },\n { name: 'supportsDST', options: { width: '80px', order: 5 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n single: {\n title: RootConfig.entities.timezones.title,\n sections: [{ id: 'basic-info' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n actions: [\n ...entityMasterRecordActions(),\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'region', dir: 'asc' }, { name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}"],"names":[],"mappings":";;;;AAIO,eAAe,gBAAgB,GAAA;AAElC,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK;AAC1C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,UAAU,EAAE;YACR,QAAQ;YACR,UAAU;YACV,YAAY;YACZ,KAAK;YACL,iBAAiB;YACjB,mBAAmB;YACnB,WAAW;YACX,cAAc;YACd,aAAa;YACb,aAAa;YACb,eAAe;YACf,kBAAkB;AACrB,SAAA;AACD,QAAA,OAAO,EAAE;AACL,YAAA,UAAU,EAAE,UAAU,CAA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A;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;;"}
|
package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { l as localeManagementLocalEntityCatalog } from './acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-
|
|
1
|
+
export { l as localeManagementLocalEntityCatalog } from './acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-DOzoxwbc.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -139,11 +139,31 @@ const RootConfig = {
|
|
|
139
139
|
},
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
+
//#region ---- Imports ----
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region ---- Manifest Definition ----
|
|
145
|
+
/**
|
|
146
|
+
* Locale Management Module Manifest.
|
|
147
|
+
* Defines module metadata, features, and provider references.
|
|
148
|
+
*/
|
|
149
|
+
const LocaleManagementManifest = {
|
|
150
|
+
name: RootConfig.module.name,
|
|
151
|
+
version: '1.0.0',
|
|
152
|
+
title: RootConfig.module.title,
|
|
153
|
+
icon: RootConfig.module.icon,
|
|
154
|
+
i18n: RootConfig.config.i18n,
|
|
155
|
+
type: 'platform',
|
|
156
|
+
domain: 'platform',
|
|
157
|
+
required: true,
|
|
158
|
+
// Module dependencies (optional)
|
|
159
|
+
};
|
|
160
|
+
//#endregion
|
|
161
|
+
|
|
142
162
|
//#region ---- Contracts barrel ----
|
|
143
163
|
|
|
144
164
|
/**
|
|
145
165
|
* Generated bundle index. Do not edit.
|
|
146
166
|
*/
|
|
147
167
|
|
|
148
|
-
export { AXMPermissionsKeys, AXM_LOCALE_CONTEXT_DEFINITIONS, AXPApplicationsPlatformPermissionKeys, AXPLocaleManagementMenuKeys, RootConfig, configureLocaleProfileCatalogCodes, getLocaleProfileCatalogCodes };
|
|
168
|
+
export { AXMPermissionsKeys, AXM_LOCALE_CONTEXT_DEFINITIONS, AXPApplicationsPlatformPermissionKeys, AXPLocaleManagementMenuKeys, LocaleManagementManifest, RootConfig, configureLocaleProfileCatalogCodes, getLocaleProfileCatalogCodes };
|
|
149
169
|
//# sourceMappingURL=acorex-platform-module-locale-management-client-contracts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-locale-management-client-contracts.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/lib/context.definitions.ts","../../../../libs/modules/locale-management/contracts/src/menu.keys.ts","../../../../libs/modules/locale-management/contracts/src/permission.keys.ts","../../../../libs/modules/locale-management/contracts/src/locale-profile-catalog.configure.ts","../../../../libs/modules/locale-management/contracts/src/root-config.ts","../../../../libs/modules/locale-management/contracts/src/index.ts","../../../../libs/modules/locale-management/contracts/src/acorex-platform-module-locale-management-client-contracts.ts"],"sourcesContent":["import type { AXPContextDefinition } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Locale & regional context definitions ----\n\nexport const AXM_LOCALE_CONTEXT_DEFINITIONS: AXPContextDefinition[] = [\n {\n name: 'locale',\n title: 'UI locale',\n description:\n 'Active UI language code from the translation service (e.g. en-US, fa-IR). Controls labels and locale-aware explanations.',\n order: 40,\n capabilities: ['ai'],\n },\n {\n name: 'calendarSystem',\n title: 'Calendar system',\n description:\n 'User regional setting for calendar system (e.g. Gregorian, Jalali). Used for date interpretation and scheduling answers.',\n order: 50,\n capabilities: ['ai'],\n },\n {\n name: 'timeZone',\n title: 'Time zone',\n description: 'IANA time zone from user regional settings. Used with current local date/time for scheduling context.',\n order: 60,\n capabilities: ['ai'],\n },\n {\n name: 'country',\n title: 'Country',\n description: 'User regional country setting. Informs locale-specific conventions and regional defaults.',\n order: 70,\n capabilities: ['ai'],\n },\n];\n\n//#endregion\n","export const AXPLocaleManagementMenuKeys = {\n Root: 'locale-management:menu',\n Languages: 'locale-management:menu:languages',\n Divider1: 'locale-management:menu:divider-1',\n Timezones: 'locale-management:menu:timezones',\n} as const;\n\n","/**\n * Applications & Platform capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPApplicationsPlatformPermissionKeys = {\n Access: 'ApplicationsPlatform:Permission:Access',\n MaintainApplications: 'ApplicationsPlatform:Permission:MaintainApplications',\n MaintainTenants: 'ApplicationsPlatform:Permission:MaintainTenants',\n MaintainPlatformShell: 'ApplicationsPlatform:Permission:MaintainPlatformShell',\n MaintainLandingPages: 'ApplicationsPlatform:Permission:MaintainLandingPages',\n MaintainIdentifiers: 'ApplicationsPlatform:Permission:MaintainIdentifiers',\n MaintainTenantSettings: 'ApplicationsPlatform:Permission:MaintainTenantSettings',\n MaintainPlatformSettings: 'ApplicationsPlatform:Permission:MaintainPlatformSettings',\n MaintainLocales: 'ApplicationsPlatform:Permission:MaintainLocales',\n UseDevTools: 'ApplicationsPlatform:Permission:UseDevTools',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPApplicationsPlatformPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n LocaleManagement: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Language: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n Timezone: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n },\n} as const;\n","//#region ----- Locale profile catalog (Available Languages picker) -----\n\n/**\n * Optional allow-list of built-in locale profile codes for the Available Languages\n * picker (`getLocaleProfiles`). Empty default (`null`) = all built-in profiles.\n *\n * Product/deploy apps may call {@link configureLocaleProfileCatalogCodes} at boot.\n * Prefer tenant `AvailableLanguages` when only some tenants should hide a locale.\n */\nlet localeProfileCatalogCodes: readonly string[] | null = null;\n\n/**\n * Restrict which built-in locale profiles appear in the Available Languages picker.\n * Pass `null` or an empty list to restore the full built-in catalog.\n */\nexport function configureLocaleProfileCatalogCodes(codes: readonly string[] | null): void {\n if (!Array.isArray(codes) || codes.length === 0) {\n localeProfileCatalogCodes = null;\n return;\n }\n localeProfileCatalogCodes = codes.map((code) => String(code).trim()).filter(Boolean);\n if (localeProfileCatalogCodes.length === 0) {\n localeProfileCatalogCodes = null;\n }\n}\n\n/** Configured catalog allow-list, or `null` when the full built-in catalog is used. */\nexport function getLocaleProfileCatalogCodes(): readonly string[] | null {\n return localeProfileCatalogCodes;\n}\n\n//#endregion\n","const config = {\n i18n: 'locale-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: 'LocaleManagement',\n title: '@locale-management:module.title',\n icon: 'fa-light fa-globe',\n },\n entities: {\n languages: {\n name: 'Languages',\n title: '@locale-management:languages.entities.language.title',\n titlePlural: '@locale-management:languages.entities.language.plural',\n icon: 'fa-light fa-language',\n },\n locales: {\n name: 'Locales',\n title: '@locale-management:locales.entities.locale.title',\n titlePlural: '@locale-management:locales.entities.locale.plural',\n icon: 'fa-light fa-globe',\n },\n timezones: {\n name: 'Timezones',\n title: '@locale-management:timezones.entities.timezone.title',\n titlePlural: '@locale-management:timezones.entities.timezone.plural',\n icon: 'fa-light fa-clock',\n },\n },\n} as const;\n","//#region ---- Contracts barrel ----\n\nexport * from './lib/context.definitions';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './locale-profile-catalog.configure';\n\nexport * from './root-config';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Gener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AC1C,IAAA,OAAO,yBAAyB;AAClC;AAEA;;AC/BA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;CAC1B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,kBAAkB;AACxB,QAAA,KAAK,EAAE,iCAAiC;AACxC,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,sDAAsD;AAC7D,YAAA,WAAW,EAAE,uDAAuD;AACpE,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,kDAAkD;AACzD,YAAA,WAAW,EAAE,mDAAmD;AAChE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,sDAAsD;AAC7D,YAAA,WAAW,EAAE,uDAAuD;AACpE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACF,KAAA;;;AC9BH;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-locale-management-client-contracts.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/lib/context.definitions.ts","../../../../libs/modules/locale-management/contracts/src/menu.keys.ts","../../../../libs/modules/locale-management/contracts/src/permission.keys.ts","../../../../libs/modules/locale-management/contracts/src/locale-profile-catalog.configure.ts","../../../../libs/modules/locale-management/contracts/src/root-config.ts","../../../../libs/modules/locale-management/contracts/src/manifest.ts","../../../../libs/modules/locale-management/contracts/src/index.ts","../../../../libs/modules/locale-management/contracts/src/acorex-platform-module-locale-management-client-contracts.ts"],"sourcesContent":["import type { AXPContextDefinition } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Locale & regional context definitions ----\n\nexport const AXM_LOCALE_CONTEXT_DEFINITIONS: AXPContextDefinition[] = [\n {\n name: 'locale',\n title: 'UI locale',\n description:\n 'Active UI language code from the translation service (e.g. en-US, fa-IR). Controls labels and locale-aware explanations.',\n order: 40,\n capabilities: ['ai'],\n },\n {\n name: 'calendarSystem',\n title: 'Calendar system',\n description:\n 'User regional setting for calendar system (e.g. Gregorian, Jalali). Used for date interpretation and scheduling answers.',\n order: 50,\n capabilities: ['ai'],\n },\n {\n name: 'timeZone',\n title: 'Time zone',\n description: 'IANA time zone from user regional settings. Used with current local date/time for scheduling context.',\n order: 60,\n capabilities: ['ai'],\n },\n {\n name: 'country',\n title: 'Country',\n description: 'User regional country setting. Informs locale-specific conventions and regional defaults.',\n order: 70,\n capabilities: ['ai'],\n },\n];\n\n//#endregion\n","export const AXPLocaleManagementMenuKeys = {\n Root: 'locale-management:menu',\n Languages: 'locale-management:menu:languages',\n Divider1: 'locale-management:menu:divider-1',\n Timezones: 'locale-management:menu:timezones',\n} as const;\n\n","/**\n * Applications & Platform capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPApplicationsPlatformPermissionKeys = {\n Access: 'ApplicationsPlatform:Permission:Access',\n MaintainApplications: 'ApplicationsPlatform:Permission:MaintainApplications',\n MaintainTenants: 'ApplicationsPlatform:Permission:MaintainTenants',\n MaintainPlatformShell: 'ApplicationsPlatform:Permission:MaintainPlatformShell',\n MaintainLandingPages: 'ApplicationsPlatform:Permission:MaintainLandingPages',\n MaintainIdentifiers: 'ApplicationsPlatform:Permission:MaintainIdentifiers',\n MaintainTenantSettings: 'ApplicationsPlatform:Permission:MaintainTenantSettings',\n MaintainPlatformSettings: 'ApplicationsPlatform:Permission:MaintainPlatformSettings',\n MaintainLocales: 'ApplicationsPlatform:Permission:MaintainLocales',\n UseDevTools: 'ApplicationsPlatform:Permission:UseDevTools',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPApplicationsPlatformPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n LocaleManagement: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Language: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n Timezone: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n },\n} as const;\n","//#region ----- Locale profile catalog (Available Languages picker) -----\n\n/**\n * Optional allow-list of built-in locale profile codes for the Available Languages\n * picker (`getLocaleProfiles`). Empty default (`null`) = all built-in profiles.\n *\n * Product/deploy apps may call {@link configureLocaleProfileCatalogCodes} at boot.\n * Prefer tenant `AvailableLanguages` when only some tenants should hide a locale.\n */\nlet localeProfileCatalogCodes: readonly string[] | null = null;\n\n/**\n * Restrict which built-in locale profiles appear in the Available Languages picker.\n * Pass `null` or an empty list to restore the full built-in catalog.\n */\nexport function configureLocaleProfileCatalogCodes(codes: readonly string[] | null): void {\n if (!Array.isArray(codes) || codes.length === 0) {\n localeProfileCatalogCodes = null;\n return;\n }\n localeProfileCatalogCodes = codes.map((code) => String(code).trim()).filter(Boolean);\n if (localeProfileCatalogCodes.length === 0) {\n localeProfileCatalogCodes = null;\n }\n}\n\n/** Configured catalog allow-list, or `null` when the full built-in catalog is used. */\nexport function getLocaleProfileCatalogCodes(): readonly string[] | null {\n return localeProfileCatalogCodes;\n}\n\n//#endregion\n","const config = {\n i18n: 'locale-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: 'LocaleManagement',\n title: '@locale-management:module.title',\n icon: 'fa-light fa-globe',\n },\n entities: {\n languages: {\n name: 'Languages',\n title: '@locale-management:languages.entities.language.title',\n titlePlural: '@locale-management:languages.entities.language.plural',\n icon: 'fa-light fa-language',\n },\n locales: {\n name: 'Locales',\n title: '@locale-management:locales.entities.locale.title',\n titlePlural: '@locale-management:locales.entities.locale.plural',\n icon: 'fa-light fa-globe',\n },\n timezones: {\n name: 'Timezones',\n title: '@locale-management:timezones.entities.timezone.title',\n titlePlural: '@locale-management:timezones.entities.timezone.plural',\n icon: 'fa-light fa-clock',\n },\n },\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Locale Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const LocaleManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n required: true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Contracts barrel ----\n\nexport * from './lib/context.definitions';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './locale-profile-catalog.configure';\n\nexport * from './root-config';\nexport * from './manifest';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAEA;AAEO,MAAM,8BAA8B,GAA2B;AACpE,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,KAAK,EAAE,WAAW;AAClB,QAAA,WAAW,EACT,0HAA0H;AAC5H,QAAA,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC,IAAI,CAAC;AACrB,KAAA;AACD,IAAA;AACE,QAAA,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AQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,sDAAsD;AAC7D,YAAA,WAAW,EAAE,uDAAuD;AACpE,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,kDAAkD;AACzD,YAAA,WAAW,EAAE,mDAAmD;AAChE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,sDAAsD;AAC7D,YAAA,WAAW,EAAE,uDAAuD;AACpE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACF,KAAA;;;AC9BH;AAKA;AAEA;AAEA;;;AAGG;AACI,MAAM,wBAAwB,GAAsB;AACzD,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,QAAQ,EAAE,IAAI;;;AAKhB;;AC1BA;;ACAA;;AAEG;;"}
|
|
@@ -2,9 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, Injectable, signal, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1$1 from '@acorex-platform/framework-client/core';
|
|
5
|
-
import { objectKeyValueTransforms, AXP_APP_STARTUP_PRIORITY, AXPComponentSlotModule,
|
|
5
|
+
import { AXPDeviceService, objectKeyValueTransforms, AXP_APP_STARTUP_PRIORITY, AXPComponentSlotModule, AXP_CONTEXT_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';
|
|
6
6
|
import { provideQuerySetups } from '@acorex-platform/framework-client/runtime';
|
|
7
|
-
import { RootConfig, getLocaleProfileCatalogCodes, AXPApplicationsPlatformPermissionKeys, AXPLocaleManagementMenuKeys } from '@acorex-platform/module-locale-management-client/contracts';
|
|
8
7
|
import * as i3 from '@acorex/components/button';
|
|
9
8
|
import { AXButtonModule } from '@acorex/components/button';
|
|
10
9
|
import * as i2 from '@acorex/components/decorators';
|
|
@@ -20,30 +19,11 @@ import { AXLocaleService, AX_LOCALE_PROFILE_PROVIDERS } from '@acorex/core/local
|
|
|
20
19
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
21
20
|
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
22
21
|
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
22
|
+
import { RootConfig, getLocaleProfileCatalogCodes, AXPApplicationsPlatformPermissionKeys, AXPLocaleManagementMenuKeys } from '@acorex-platform/module-locale-management-client/contracts';
|
|
23
23
|
import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
|
|
24
24
|
import { AXPCommonPermissionGroupKeys, AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';
|
|
25
25
|
import { AXM_LOCALE_CONTEXT_DEFINITIONS } from '@acorex-platform/module-locale-management-client/contracts';
|
|
26
26
|
|
|
27
|
-
//#region ---- Imports ----
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region ---- Manifest Definition ----
|
|
30
|
-
/**
|
|
31
|
-
* Locale Management Module Manifest.
|
|
32
|
-
* Defines module metadata, features, and provider references.
|
|
33
|
-
*/
|
|
34
|
-
const LocaleManagementManifest = {
|
|
35
|
-
name: RootConfig.module.name,
|
|
36
|
-
version: '1.0.0',
|
|
37
|
-
title: RootConfig.module.title,
|
|
38
|
-
icon: RootConfig.module.icon,
|
|
39
|
-
i18n: RootConfig.config.i18n,
|
|
40
|
-
type: 'platform',
|
|
41
|
-
domain: 'platform',
|
|
42
|
-
required: true,
|
|
43
|
-
// Module dependencies (optional)
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
|
|
47
27
|
const REGIONAL_SETTING_KEYS = [
|
|
48
28
|
AXPRegionalSetting.LocaleProfile,
|
|
49
29
|
AXPRegionalSetting.Language,
|
|
@@ -111,18 +91,24 @@ withMethods((store, settingsService = inject(AXPSettingsService), localeService
|
|
|
111
91
|
async loadSetting() {
|
|
112
92
|
const profileCode = (await settingsService.get(AXPRegionalSetting.LocaleProfile)) || 'en-US';
|
|
113
93
|
patchState(store, { profile: profileCode });
|
|
114
|
-
|
|
94
|
+
const currentProfileCode = localeService.activeProfile()?.localeInfo?.code;
|
|
95
|
+
if (profileCode && profileCode !== currentProfileCode) {
|
|
115
96
|
await localeService.setProfile(profileCode);
|
|
116
97
|
}
|
|
117
98
|
const calendar = (await settingsService.get(AXPRegionalSetting.Calendar));
|
|
118
99
|
if (calendar) {
|
|
100
|
+
const calendarChanged = store.calendar() !== calendar;
|
|
119
101
|
patchState(store, { calendar });
|
|
120
|
-
|
|
102
|
+
if (calendarChanged) {
|
|
103
|
+
calendarService.setActiveCalendar(calendar);
|
|
104
|
+
}
|
|
121
105
|
}
|
|
122
106
|
const language = (await settingsService.get(AXPRegionalSetting.Language));
|
|
123
107
|
if (language) {
|
|
124
108
|
patchState(store, { language });
|
|
125
|
-
translateService.
|
|
109
|
+
if (translateService.getActiveLang() !== language) {
|
|
110
|
+
translateService.setActiveLang(language);
|
|
111
|
+
}
|
|
126
112
|
}
|
|
127
113
|
await applyChanges();
|
|
128
114
|
},
|
|
@@ -292,6 +278,7 @@ class AXMLanguageSlotComponent {
|
|
|
292
278
|
this.localeManagementService = inject(AXMLocaleManagementService);
|
|
293
279
|
this.store = inject(AXPRegionalStoreService);
|
|
294
280
|
this.themeStore = inject(AXPLayoutThemeService);
|
|
281
|
+
this.deviceService = inject(AXPDeviceService);
|
|
295
282
|
this.items = signal([], /* @ts-ignore */
|
|
296
283
|
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
297
284
|
}
|
|
@@ -300,11 +287,11 @@ class AXMLanguageSlotComponent {
|
|
|
300
287
|
this.items.set(items);
|
|
301
288
|
}
|
|
302
289
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
303
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button [color]=\"themeStore.headerButtonColor()\" [look]=\"themeStore.headerButtonLook()\">\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\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\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>\n", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_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-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "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", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
290
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "@if (!deviceService.isSmall()) {\n<ax-button [color]=\"themeStore.headerButtonColor()\" [look]=\"themeStore.headerButtonLook()\">\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\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\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>\n}\n", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_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-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "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", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
304
291
|
}
|
|
305
292
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
|
|
306
293
|
type: Component,
|
|
307
|
-
args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-button [color]=\"themeStore.headerButtonColor()\" [look]=\"themeStore.headerButtonLook()\">\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\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\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>\n" }]
|
|
294
|
+
args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!deviceService.isSmall()) {\n<ax-button [color]=\"themeStore.headerButtonColor()\" [look]=\"themeStore.headerButtonLook()\">\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\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\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>\n}\n" }]
|
|
308
295
|
}] });
|
|
309
296
|
|
|
310
297
|
/**
|
|
@@ -661,14 +648,6 @@ class AXMRegionalSettingProvider {
|
|
|
661
648
|
value: 1,
|
|
662
649
|
},
|
|
663
650
|
],
|
|
664
|
-
triggers: [
|
|
665
|
-
{
|
|
666
|
-
event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,
|
|
667
|
-
action: [
|
|
668
|
-
`{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.week.startsOn) }}`,
|
|
669
|
-
],
|
|
670
|
-
},
|
|
671
|
-
],
|
|
672
651
|
},
|
|
673
652
|
},
|
|
674
653
|
description: i18n('region.firstday.description'),
|
|
@@ -1116,12 +1095,6 @@ class AXMLocaleManagementModule {
|
|
|
1116
1095
|
provide: AXCalendarService,
|
|
1117
1096
|
useClass: AXPRegionalCalendarService,
|
|
1118
1097
|
},
|
|
1119
|
-
// Module Manifest Provider
|
|
1120
|
-
{
|
|
1121
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1122
|
-
useValue: LocaleManagementManifest,
|
|
1123
|
-
multi: true,
|
|
1124
|
-
},
|
|
1125
1098
|
// Provider references (now using tokens)
|
|
1126
1099
|
{
|
|
1127
1100
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
@@ -1199,12 +1172,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1199
1172
|
provide: AXCalendarService,
|
|
1200
1173
|
useClass: AXPRegionalCalendarService,
|
|
1201
1174
|
},
|
|
1202
|
-
// Module Manifest Provider
|
|
1203
|
-
{
|
|
1204
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1205
|
-
useValue: LocaleManagementManifest,
|
|
1206
|
-
multi: true,
|
|
1207
|
-
},
|
|
1208
1175
|
// Provider references (now using tokens)
|
|
1209
1176
|
{
|
|
1210
1177
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|