@acorex-platform/module-locale-management-client 1.0.1 → 2.0.0-beta.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.
Files changed (23) hide show
  1. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-D8vPpd6h.mjs +113 -0
  2. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-D8vPpd6h.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-IOvg246r.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-D4oQV9xH.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-IOvg246r.mjs.map → acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-D4oQV9xH.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-TQnEUIIO.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-Cvvb8v3k.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-TQnEUIIO.mjs.map → acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-Cvvb8v3k.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-BLNew12v.mjs → acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-DnsfN6rl.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-BLNew12v.mjs.map → acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-DnsfN6rl.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs +1 -1
  10. package/fesm2022/acorex-platform-module-locale-management-client-contracts.mjs +61 -41
  11. package/fesm2022/acorex-platform-module-locale-management-client-contracts.mjs.map +1 -1
  12. package/fesm2022/{acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs → acorex-platform-module-locale-management-client-list-available-locale-profiles.query-B4Beo8qH.mjs} +1 -1
  13. package/fesm2022/{acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs.map → acorex-platform-module-locale-management-client-list-available-locale-profiles.query-B4Beo8qH.mjs.map} +1 -1
  14. package/fesm2022/{acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs → acorex-platform-module-locale-management-client-list-locale-profiles.query-BkGcxtsC.mjs} +1 -1
  15. package/fesm2022/{acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs.map → acorex-platform-module-locale-management-client-list-locale-profiles.query-BkGcxtsC.mjs.map} +1 -1
  16. package/fesm2022/{acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs → acorex-platform-module-locale-management-client-profiles-DslU1Uxq.mjs} +1 -1
  17. package/fesm2022/{acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs.map → acorex-platform-module-locale-management-client-profiles-DslU1Uxq.mjs.map} +1 -1
  18. package/fesm2022/acorex-platform-module-locale-management-client.mjs +6 -7
  19. package/fesm2022/acorex-platform-module-locale-management-client.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/types/acorex-platform-module-locale-management-client-contracts.d.ts +5 -1
  22. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-DOzoxwbc.mjs +0 -56
  23. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-DOzoxwbc.mjs.map +0 -1
@@ -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/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';\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ACAA;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-contracts.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/permission.keys.ts","../../../../libs/modules/locale-management/contracts/src/reference-preparation.capabilities.ts","../../../../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/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/offline-read.capabilities.ts","../../../../libs/modules/locale-management/contracts/src/acorex-platform-module-locale-management-client-contracts.ts"],"sourcesContent":["/**\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","import { axpRegisterDataExecutionCapabilities } from '@acorex-platform/framework-shared/runtime';\nimport { AXPApplicationsPlatformPermissionKeys } from './permission.keys';\n\n// Preparation uses this module's existing read entitlements and never grants access.\nexport function registerLocaleManagementReferencePreparation(): void {\n for (const [name, permission] of [\n ['LocaleManagement.Languages', AXPApplicationsPlatformPermissionKeys.MaintainLocales],\n ['LocaleManagement.Locales', AXPApplicationsPlatformPermissionKeys.MaintainLocales],\n ['LocaleManagement.Timezones', AXPApplicationsPlatformPermissionKeys.MaintainLocales],\n ] as const) {\n axpRegisterDataExecutionCapabilities({\n targetKind: 'Entity', targetKey: name, revision: 'locale-management-reference-preparation-v1',\n operations: ['read', 'getOne', 'query'],\n readAccess: { permissions: [permission], features: [] },\n });\n }\n}\nregisterLocaleManagementReferencePreparation();\n","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","//#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","import { axpRegisterOfflineReadEntities } from '@acorex-platform/framework-shared/entity';\nexport const LOCALE_OFFLINE_READ_ENTITIES = ['LocaleManagement.Languages', 'LocaleManagement.Locales', 'LocaleManagement.Timezones'] as const;\naxpRegisterOfflineReadEntities(...LOCALE_OFFLINE_READ_ENTITIES);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AACI,MAAM,qCAAqC,GAAG;AACnD,IAAA,MAAM,EAAE,wCAAwC;AAChD,IAAA,oBAAoB,EAAE,sDAAsD;AAC5E,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,qBAAqB,EAAE,uDAAuD;AAC9E,IAAA,oBAAoB,EAAE,sDAAsD;AAC5E,IAAA,mBAAmB,EAAE,qDAAqD;AAC1E,IAAA,sBAAsB,EAAE,wDAAwD;AAChF,IAAA,wBAAwB,EAAE,0DAA0D;AACpF,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,WAAW,EAAE,6CAA6C;;AAG5D;;;AAGG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,gBAAgB,EAAE;QAChB,UAAU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AAM,EAAE,UAAU;AAClB,IAAA,QAAQ,EAAE,IAAI;;;AAKhB;;ACzBO,MAAM,4BAA4B,GAAG,CAAC,4BAA4B,EAAE,0BAA0B,EAAE,4BAA4B;AACnI,8BAA8B,CAAC,GAAG,4BAA4B,CAAC;;ACF/D;;AAEG;;"}
@@ -45,4 +45,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
45
45
  }] });
46
46
 
47
47
  export { AXMListAvailableLocaleProfilesQuery };
48
- //# sourceMappingURL=acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs.map
48
+ //# sourceMappingURL=acorex-platform-module-locale-management-client-list-available-locale-profiles.query-B4Beo8qH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/queries/list-available-locale-profiles.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\n\nimport { AXMLocaleManagementService } from '../shared/locale-management.service';\n\n//#region ---- Types ----\n\nexport type AXMListAvailableLocaleProfilesQueryInput = AXPCollectionQueryInput;\n\nexport type AXMListAvailableLocaleProfilesQueryItem = AXPLocaleProfile;\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Tenant-allowed locale profile catalog — replaces the `available-locale-profiles` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAvailableLocaleProfilesQuery\n implements\n AXPCollectionQuery<\n AXMListAvailableLocaleProfilesQueryInput,\n AXMListAvailableLocaleProfilesQueryItem\n >\n{\n //#region ---- Services & Dependencies ----\n\n private readonly localeManagement = inject(AXMLocaleManagementService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAvailableLocaleProfilesQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAvailableLocaleProfilesQueryItem> {\n try {\n let items = [...(await this.localeManagement.getAvailableLocaleProfiles())];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'code' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAwBA;AAEA;AAEA;;AAEG;MAEU,mCAAmC,CAAA;AADhD,IAAA,WAAA,GAAA;;AAUmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAkCvE,IAAA;;;IA5BC,MAAM,KAAK,CACT,KAAuD,EAAA;AAEvD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,EAAE,CAAC,CAAC;AAE3E,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,K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mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/queries/list-available-locale-profiles.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\n\nimport { AXMLocaleManagementService } from '../shared/locale-management.service';\n\n//#region ---- Types ----\n\nexport type AXMListAvailableLocaleProfilesQueryInput = AXPCollectionQueryInput;\n\nexport type AXMListAvailableLocaleProfilesQueryItem = AXPLocaleProfile;\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Tenant-allowed locale profile catalog — replaces the `available-locale-profiles` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAvailableLocaleProfilesQuery\n implements\n AXPCollectionQuery<\n AXMListAvailableLocaleProfilesQueryInput,\n AXMListAvailableLocaleProfilesQueryItem\n >\n{\n //#region ---- Services & Dependencies ----\n\n private readonly localeManagement = inject(AXMLocaleManagementService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAvailableLocaleProfilesQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAvailableLocaleProfilesQueryItem> {\n try {\n let items = [...(await this.localeManagement.getAvailableLocaleProfiles())];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'code' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAwBA;AAEA;AAEA;;AAEG;MAEU,mCAAmC,CAAA;AADhD,IAAA,WAAA,GAAA;;AAUmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAkCvE,IAAA;;;IA5BC,MAAM,KAAK,CACT,KAAuD,EAAA;AAEvD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,EAAE,CAAC,CAAC;AAE3E,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,MAAe,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AAChG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GAxCW,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mCAAmC,cADtB,MAAM,EAAA,CAAA,CAAA;;2FACnB,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAD/C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -45,4 +45,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
45
45
  }] });
46
46
 
47
47
  export { AXMListLocaleProfilesQuery };
48
- //# sourceMappingURL=acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs.map
48
+ //# sourceMappingURL=acorex-platform-module-locale-management-client-list-locale-profiles.query-BkGcxtsC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/queries/list-locale-profiles.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\n\nimport { AXMLocaleManagementService } from '../shared/locale-management.service';\n\n//#region ---- Types ----\n\nexport type AXMListLocaleProfilesQueryInput = AXPCollectionQueryInput;\n\nexport type AXMListLocaleProfilesQueryItem = AXPLocaleProfile;\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Built-in locale profile catalog — replaces the `locale-profiles` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListLocaleProfilesQuery\n implements AXPCollectionQuery<AXMListLocaleProfilesQueryInput, AXMListLocaleProfilesQueryItem>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly localeManagement = inject(AXMLocaleManagementService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListLocaleProfilesQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListLocaleProfilesQueryItem> {\n try {\n let items = [...(await this.localeManagement.getLocaleProfiles())];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'code' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAwBA;AAEA;AAEA;;AAEG;MAEU,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;;AAMmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAkCvE,IAAA;;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,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-list-locale-profiles.query-BkGcxtsC.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/queries/list-locale-profiles.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\n\nimport { AXMLocaleManagementService } from '../shared/locale-management.service';\n\n//#region ---- Types ----\n\nexport type AXMListLocaleProfilesQueryInput = AXPCollectionQueryInput;\n\nexport type AXMListLocaleProfilesQueryItem = AXPLocaleProfile;\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Built-in locale profile catalog — replaces the `locale-profiles` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListLocaleProfilesQuery\n implements AXPCollectionQuery<AXMListLocaleProfilesQueryInput, AXMListLocaleProfilesQueryItem>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly localeManagement = inject(AXMLocaleManagementService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListLocaleProfilesQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListLocaleProfilesQueryItem> {\n try {\n let items = [...(await this.localeManagement.getLocaleProfiles())];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'code' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAwBA;AAEA;AAEA;;AAEG;MAEU,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;;AAMmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAkCvE,IAAA;;;IA5BC,MAAM,KAAK,CACT,KAA8C,EAAA;AAE9C,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAElE,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,MAAe,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AAChG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GApCW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -99,4 +99,4 @@ const profiles = [
99
99
  const DEFAULT_AVAILABLE_LOCALE_PROFILE_CODES = profiles.map((p) => p.code);
100
100
 
101
101
  export { DEFAULT_AVAILABLE_LOCALE_PROFILE_CODES, profiles };
102
- //# sourceMappingURL=acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs.map
102
+ //# sourceMappingURL=acorex-platform-module-locale-management-client-profiles-DslU1Uxq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/shared/data/profiles.ts"],"sourcesContent":["import { AXAULocaleProfile, AXIRLocaleProfile, AXUSLocaleProfile } from '@acorex/core/locale';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\n/**\n * Temporary: `calendar.week.weekends` uses AXCalendarConfig.weekend indexes\n * (what ax-calendar checks as dayOfWeek - 1), not JS Date#getDay().\n * Fix properly in @acorex/core / @acorex/components later.\n */\nexport const profiles: AXPLocaleProfile[] = [\n {\n ...AXIRLocaleProfile,\n code: 'fa-IR',\n title: 'Persian (Iran)',\n nativeTitle: 'فارسی (ایران)',\n calendar: {\n ...AXIRLocaleProfile.calendar,\n system: 'solar-hijri',\n week: {\n ...AXIRLocaleProfile.calendar.week,\n startsOn: 6,\n weekends: [4, 5],\n },\n },\n },\n {\n ...AXUSLocaleProfile,\n code: 'en-US',\n title: 'English (United States)',\n nativeTitle: 'English (United States)',\n calendar: {\n ...AXUSLocaleProfile.calendar,\n },\n formats: {\n ...AXUSLocaleProfile.formats,\n date: {\n ...(AXUSLocaleProfile.formats?.date ?? {}),\n short: 'MM/DD/YYYY',\n medium: 'MMM D, YYYY',\n long: 'MMMM D, YYYY',\n },\n },\n },\n {\n ...AXAULocaleProfile,\n code: 'en-AU',\n title: 'English (Australia)',\n nativeTitle: 'English (Australia)',\n calendar: {\n ...AXAULocaleProfile.calendar,\n },\n formats: {\n ...AXAULocaleProfile.formats,\n date: {\n ...(AXAULocaleProfile.formats?.date ?? {}),\n short: 'DD/MM/YYYY',\n medium: 'D/MM/YYYY',\n long: 'D MMMM YYYY',\n },\n },\n },\n // en-NZ: same regional formats as en-AU until @acorex/core ships AXNZLocaleProfile.\n {\n ...AXAULocaleProfile,\n code: 'en-NZ',\n title: 'English (New Zealand)',\n nativeTitle: 'English (New Zealand)',\n localeInfo: {\n ...AXAULocaleProfile.localeInfo,\n code: 'en-NZ',\n region: 'NZ',\n timezone: 'Pacific/Auckland',\n },\n calendar: {\n ...AXAULocaleProfile.calendar,\n },\n formats: {\n ...AXAULocaleProfile.formats,\n date: {\n ...(AXAULocaleProfile.formats?.date ?? {}),\n short: 'DD/MM/YYYY',\n medium: 'D/MM/YYYY',\n long: 'D MMMM YYYY',\n },\n numbers: {\n ...AXAULocaleProfile.formats?.numbers,\n currency: {\n ...(AXAULocaleProfile.formats?.numbers?.currency ?? {}),\n code: 'NZD',\n },\n },\n },\n i18nMeta: {\n ...AXAULocaleProfile.i18nMeta,\n supportedLanguages: ['en-NZ'],\n fallbackLocales: ['en-US'],\n },\n },\n];\n\n/** Default platform allow-list: every built-in locale profile code. */\nexport const DEFAULT_AVAILABLE_LOCALE_PROFILE_CODES: string[] = profiles.map((p) => p.code);\n"],"names":[],"mappings":";;AAGA;;;;AAIG;AACI,MAAM,QAAQ,GAAuB;AAC1C,IAAA;AACE,QAAA,GAAG,iBAAiB;AACpB,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,KAAK,EAAE,gBAAgB;AACvB,QAAA,WAAW,EAAE,eAAe;AAC5B,QAAA,QAAQ,EAAE;YACR,GAAG,iBAAiB,CAAC,QAAQ;AAC7B,YAAA,MAAM,EAAE,aAAa;AACrB,YAAA,IAAI,EAAE;AACJ,gBAAA,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI;AAClC,gBAAA,QAAQ,EAAE,CAAC;AACX,gBAAA,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACjB,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA;AACE,QAAA,GAAG,iBAAiB;AACpB,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,KAAK,EAAE,yBAAyB;AAChC,QAAA,WAAW,EAAE,yBAAyB;AACtC,QAAA,QAAQ,EAAE;YACR,GAAG,iBAAiB,CAAC,QAAQ;AAC9B,SAAA;AACD,QAAA,OAAO,EAAE;YACP,GAAG,iBAAiB,CAAC,OAAO;AAC5B,YA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AA,MAAM,EAAE,WAAW;AACnB,gBAAA,IAAI,EAAE,aAAa;AACpB,aAAA;AACD,YAAA,OAAO,EAAE;AACP,gBAAA,GAAG,iBAAiB,CAAC,OAAO,EAAE,OAAO;AACrC,gBAAA,QAAQ,EAAE;oBACR,IAAI,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC;AACvD,oBAAA,IAAI,EAAE,KAAK;AACZ,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,QAAQ,EAAE;YACR,GAAG,iBAAiB,CAAC,QAAQ;YAC7B,kBAAkB,EAAE,CAAC,OAAO,CAAC;YAC7B,eAAe,EAAE,CAAC,OAAO,CAAC;AAC3B,SAAA;AACF,KAAA;;AAGH;AACO,MAAM,sCAAsC,GAAa,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI;;"}
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-profiles-DslU1Uxq.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/shared/data/profiles.ts"],"sourcesContent":["import { AXAULocaleProfile, AXIRLocaleProfile, AXUSLocaleProfile } from '@acorex/core/locale';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\n/**\n * Temporary: `calendar.week.weekends` uses AXCalendarConfig.weekend indexes\n * (what ax-calendar checks as dayOfWeek - 1), not JS Date#getDay().\n * Fix properly in @acorex/core / @acorex/components later.\n */\nexport const profiles: AXPLocaleProfile[] = [\n {\n ...AXIRLocaleProfile,\n code: 'fa-IR',\n title: 'Persian (Iran)',\n nativeTitle: 'فارسی (ایران)',\n calendar: {\n ...AXIRLocaleProfile.calendar,\n system: 'solar-hijri',\n week: {\n ...AXIRLocaleProfile.calendar.week,\n startsOn: 6,\n weekends: [4, 5],\n },\n },\n },\n {\n ...AXUSLocaleProfile,\n code: 'en-US',\n title: 'English (United States)',\n nativeTitle: 'English (United States)',\n calendar: {\n ...AXUSLocaleProfile.calendar,\n },\n formats: {\n ...AXUSLocaleProfile.formats,\n date: {\n ...(AXUSLocaleProfile.formats?.date ?? {}),\n short: 'MM/DD/YYYY',\n medium: 'MMM D, YYYY',\n long: 'MMMM D, YYYY',\n },\n },\n },\n {\n ...AXAULocaleProfile,\n code: 'en-AU',\n title: 'English (Australia)',\n nativeTitle: 'English (Australia)',\n calendar: {\n ...AXAULocaleProfile.calendar,\n },\n formats: {\n ...AXAULocaleProfile.formats,\n date: {\n ...(AXAULocaleProfile.formats?.date ?? {}),\n short: 'DD/MM/YYYY',\n medium: 'D/MM/YYYY',\n long: 'D MMMM YYYY',\n },\n },\n },\n // en-NZ: same regional formats as en-AU until @acorex/core ships AXNZLocaleProfile.\n {\n ...AXAULocaleProfile,\n code: 'en-NZ',\n title: 'English (New Zealand)',\n nativeTitle: 'English (New Zealand)',\n localeInfo: {\n ...AXAULocaleProfile.localeInfo,\n code: 'en-NZ',\n region: 'NZ',\n timezone: 'Pacific/Auckland',\n },\n calendar: {\n ...AXAULocaleProfile.calendar,\n },\n formats: {\n ...AXAULocaleProfile.formats,\n date: {\n ...(AXAULocaleProfile.formats?.date ?? {}),\n short: 'DD/MM/YYYY',\n medium: 'D/MM/YYYY',\n long: 'D MMMM YYYY',\n },\n numbers: {\n ...AXAULocaleProfile.formats?.numbers,\n currency: {\n ...(AXAULocaleProfile.formats?.numbers?.currency ?? {}),\n code: 'NZD',\n },\n },\n },\n i18nMeta: {\n ...AXAULocaleProfile.i18nMeta,\n supportedLanguages: ['en-NZ'],\n fallbackLocales: ['en-US'],\n },\n },\n];\n\n/** Default platform allow-list: every built-in locale profile code. */\nexport const DEFAULT_AVAILABLE_LOCALE_PROFILE_CODES: string[] = profiles.map((p) => p.code);\n"],"names":[],"mappings":";;AAGA;;;;AAIG;AACI,MAAM,QAAQ,GAAuB;AAC1C,IAAA;AACE,QAAA,GAAG,iBAAiB;AACpB,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,KAAK,EAAE,gBAAgB;AACvB,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aAAA;AACF,SAAA;AACF,KAAA;;AAED,IAAA;AACE,QAAA,GAAG,iBAAiB;AACpB,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,KAAK,EAAE,uBAAuB;AAC9B,QAAA,WAAW,EAAE,uBAAuB;AACpC,QAAA,UAAU,EAAE;YACV,GAAG,iBAAiB,CAAC,UAAU;AAC/B,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,QAAQ,EAAE,kBAAkB;AAC7B,SAAA;AACD,QAAA,QAAQ,EAAE;YACR,GAAG,iBAAiB,CAAC,QAAQ;AAC9B,SAAA;AACD,QAAA,OAAO,EAAE;YACP,GAAG,iBAAiB,CAAC,OAAO;AAC5B,YAAA,IAAI,EAAE;gBACJ,IAAI,iBAAiB,CAAC,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC;AAC1C,gBAAA,KAAK,EAAE,YAAY;AACnB,gBAAA,MAAM,EAAE,WAAW;AACnB,gBAAA,IAAI,EAAE,aAAa;AACpB,aAAA;AACD,YAAA,OAAO,EAAE;AACP,gBAAA,GAAG,iBAAiB,CAAC,OAAO,EAAE,OAAO;AACrC,gBAAA,QAAQ,EAAE;oBACR,IAAI,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC;AACvD,oBAAA,IAAI,EAAE,KAAK;AACZ,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,QAAQ,EAAE;YACR,GAAG,iBAAiB,CAAC,QAAQ;YAC7B,kBAAkB,EAAE,CAAC,OAAO,CAAC;YAC7B,eAAe,EAAE,CAAC,OAAO,CAAC;AAC3B,SAAA;AACF,KAAA;;AAGH;AACO,MAAM,sCAAsC,GAAa,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI;;"}
@@ -168,7 +168,7 @@ class AXMLocaleManagementService {
168
168
  };
169
169
  }
170
170
  async getLocaleProfiles() {
171
- const { profiles } = await import('./acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs');
171
+ const { profiles } = await import('./acorex-platform-module-locale-management-client-profiles-DslU1Uxq.mjs');
172
172
  const catalogCodes = getLocaleProfileCatalogCodes();
173
173
  if (!catalogCodes?.length) {
174
174
  return profiles;
@@ -1070,8 +1070,7 @@ class AXMLocaleManagementModule {
1070
1070
  priority: AXP_APP_STARTUP_PRIORITY.regionalSettings,
1071
1071
  run: async () => {
1072
1072
  if (platformSettingsLoadState.hasFailure() ||
1073
- platformSettingsLoadState.hasPendingOfflineContinue() ||
1074
- platformSettingsLoadState.isOfflineMode()) {
1073
+ platformSettingsLoadState.hasPendingOfflineContinue()) {
1075
1074
  return;
1076
1075
  }
1077
1076
  await service.loadSetting();
@@ -1119,11 +1118,11 @@ class AXMLocaleManagementModule {
1119
1118
  provideQuerySetups([
1120
1119
  {
1121
1120
  key: 'LocaleManagement:ListLocaleProfiles',
1122
- loader: () => import('./acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs').then((c) => c.AXMListLocaleProfilesQuery),
1121
+ loader: () => import('./acorex-platform-module-locale-management-client-list-locale-profiles.query-BkGcxtsC.mjs').then((c) => c.AXMListLocaleProfilesQuery),
1123
1122
  },
1124
1123
  {
1125
1124
  key: 'LocaleManagement:ListAvailableLocaleProfiles',
1126
- loader: () => import('./acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs').then((c) => c.AXMListAvailableLocaleProfilesQuery),
1125
+ loader: () => import('./acorex-platform-module-locale-management-client-list-available-locale-profiles.query-B4Beo8qH.mjs').then((c) => c.AXMListAvailableLocaleProfilesQuery),
1127
1126
  },
1128
1127
  ]),
1129
1128
  {
@@ -1196,11 +1195,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
1196
1195
  provideQuerySetups([
1197
1196
  {
1198
1197
  key: 'LocaleManagement:ListLocaleProfiles',
1199
- loader: () => import('./acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs').then((c) => c.AXMListLocaleProfilesQuery),
1198
+ loader: () => import('./acorex-platform-module-locale-management-client-list-locale-profiles.query-BkGcxtsC.mjs').then((c) => c.AXMListLocaleProfilesQuery),
1200
1199
  },
1201
1200
  {
1202
1201
  key: 'LocaleManagement:ListAvailableLocaleProfiles',
1203
- loader: () => import('./acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs').then((c) => c.AXMListAvailableLocaleProfilesQuery),
1202
+ loader: () => import('./acorex-platform-module-locale-management-client-list-available-locale-profiles.query-B4Beo8qH.mjs').then((c) => c.AXMListAvailableLocaleProfilesQuery),
1204
1203
  },
1205
1204
  ]),
1206
1205
  {