@acorex-platform/module-settings-management-client 0.0.53 → 0.0.56
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-settings-management-client.mjs","sources":["../../../../libs/modules/settings-management/client/src/lib/features/settings/settings-row-visibility.util.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/convert-setting-data.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/settings.viewmodel.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/search-definition.provider.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/search.provider.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/settings-page-can-deactivate.guard.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/settings-scope.guard.ts","../../../../libs/modules/settings-management/client/src/lib/menu.provider.ts","../../../../libs/modules/settings-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/settings-management/client/src/lib/features/profile-page/settings-management-profile-sections.hook.ts","../../../../libs/modules/settings-management/client/src/lib/profile-slot-settings-menu.hook.ts","../../../../libs/modules/settings-management/client/src/lib/settings-management.module.ts","../../../../libs/modules/settings-management/client/src/acorex-platform-module-settings-management-client.ts"],"sourcesContent":["import type {\n AXPSettingDefinition,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionSection,\n} from '@acorex-platform/framework-client/common';\n\n/** Settings with `widget.options.visibility === false` are registered but omitted from the settings UI. */\nexport function isSettingStaticallyHidden(setting: AXPSettingDefinition): boolean {\n return setting.widget.options?.['visibility'] === false;\n}\n\nexport function filterSettingsPageVisibleSettings(settings: AXPSettingDefinition[]): AXPSettingDefinition[] {\n return settings.filter((setting) => !isSettingStaticallyHidden(setting));\n}\n\nexport function sectionHasSettingsPageVisibleRows(section: AXPSettingDefinitionSection): boolean {\n return filterSettingsPageVisibleSettings(section.settings).length > 0;\n}\n\n/** Drop statically hidden rows, then omit sections/groups that have nothing left to render. */\nexport function filterSettingsPageVisibleGroups(groups: AXPSettingDefinitionGroup[]): AXPSettingDefinitionGroup[] {\n return groups\n .map((group) => ({\n ...group,\n sections: group.sections\n .map((section) => ({\n ...section,\n settings: filterSettingsPageVisibleSettings(section.settings),\n }))\n .filter((section) => section.settings.length > 0),\n groups: filterSettingsPageVisibleGroups(group.groups),\n }))\n .filter((group) => group.sections.length > 0 || group.groups.length > 0);\n}\n","import { AXPSettingDefinition, AXPSettingDefinitionGroup, AXPSettingDefinitionSection } from '@acorex-platform/framework-client/common';\nimport {\n filterSettingsPageVisibleSettings,\n sectionHasSettingsPageVisibleRows,\n} from './settings-row-visibility.util';\n\n/**\n * Filters setting groups for in-page search. When `settingSearchTextByKey` is provided (lowercased\n * translated blobs keyed by setting name), setting matches use it; otherwise a raw key fallback is used.\n */\nexport function searchSettings(\n groups: AXPSettingDefinitionGroup[],\n search: string,\n settingSearchTextByKey?: Record<string, string>,\n): AXPSettingDefinitionGroup[] {\n const trimmed = search?.trim() ?? '';\n if (!trimmed) {\n return [];\n }\n\n const normalizedSearch = trimmed.toLowerCase();\n const sectionMatchResult: AXPSettingDefinitionGroup[] = [];\n const settingMatchResult: AXPSettingDefinitionGroup[] = [];\n const processedGroups = new Set<string>();\n\n const createGroupIdentifier = (group: AXPSettingDefinitionGroup): string => `${group.name}-${group.title}`;\n\n const addGroupToResult = (\n group: AXPSettingDefinitionGroup,\n sections: AXPSettingDefinitionSection[],\n resultArray: AXPSettingDefinitionGroup[]\n ) => {\n const groupId = createGroupIdentifier(group);\n if (!processedGroups.has(groupId)) {\n resultArray.push({\n ...group,\n sections,\n groups: [], // Exclude nested groups\n });\n processedGroups.add(groupId);\n }\n };\n\n const processSections = (\n group: AXPSettingDefinitionGroup,\n filterFn: (section: AXPSettingDefinitionSection) => boolean\n ) => {\n const matchedSections = group.sections.filter(filterFn);\n if (matchedSections.length > 0) {\n addGroupToResult(group, matchedSections, sectionMatchResult);\n }\n };\n\n const processSettings = (\n group: AXPSettingDefinitionGroup,\n filterFn: (section: AXPSettingDefinitionSection) => AXPSettingDefinitionSection | null\n ) => {\n const matchedSections = group.sections\n .map(filterFn)\n .filter((section): section is AXPSettingDefinitionSection => section !== null);\n if (matchedSections.length > 0) {\n addGroupToResult(group, matchedSections, settingMatchResult);\n }\n };\n\n const sectionMatches = (section: AXPSettingDefinitionSection): boolean =>\n sectionHasSettingsPageVisibleRows(section) &&\n (section.name.toLowerCase().includes(normalizedSearch) ||\n section.title.toLowerCase().includes(normalizedSearch));\n\n const settingSearchBlob = (setting: AXPSettingDefinition): string => {\n const fromIndex = settingSearchTextByKey?.[setting.name];\n if (fromIndex) {\n return fromIndex;\n }\n return [setting.name, setting.title, setting.description ?? '', ...(setting.searchTagKeys ?? [])]\n .join(' ')\n .toLowerCase();\n };\n\n const filterSettings = (section: AXPSettingDefinitionSection): AXPSettingDefinitionSection | null => {\n const matchedSettings = filterSettingsPageVisibleSettings(section.settings).filter((setting) => {\n const blob = settingSearchBlob(setting);\n return (\n setting.name.toLowerCase().includes(normalizedSearch) ||\n blob.includes(normalizedSearch)\n );\n });\n return matchedSettings.length > 0 ? { ...section, settings: matchedSettings } : null;\n };\n\n const processGroupRecursively = (group: AXPSettingDefinitionGroup) => {\n processSections(group, sectionMatches); // Match sections with all settings\n processSettings(group, filterSettings); // Match settings within sections\n group.groups.forEach(processGroupRecursively); // Recurse into nested groups\n };\n\n groups.forEach(processGroupRecursively);\n\n return [...sectionMatchResult, ...settingMatchResult];\n}\n","import { AXPPageStatus } from '@acorex-platform/framework-shared/widget-core';\nimport { AXFormComponent } from '@acorex/components/form';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n AXPSettingDefinitionSection,\n AXPSettingsService,\n traceSettingsPageLoadComplete,\n traceSettingsPageLoadStarted,\n} from '@acorex-platform/framework-client/common';\nimport {\n AXPPlatformScope,\n AXPPlatformScopeKey,\n getSmart,\n resolvePlatformScopeName,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPDeviceService } from '@acorex-platform/framework-client/core';\n\nimport { computed, inject } from '@angular/core';\nimport { patchState, signalStore, withComputed, withHooks, withMethods, withState } from '@ngrx/signals';\nimport { cloneDeep, get, isEmpty, isEqual, isNil } from 'lodash';\nimport { filter, merge } from 'rxjs';\nimport { searchSettings } from './convert-setting-data';\nimport { filterSettingsPageVisibleGroups, isSettingStaticallyHidden } from './settings-row-visibility.util';\n\n/** Delay before reload so the success toast is visible. */\nconst PAGE_REFRESH_DELAY_MS = 500;\n\n/** Setting keys are flat (may contain dots). Prefer own-property, then smart path. */\nfunction readFlatSettingValue(context: Record<string, unknown>, key: string): unknown {\n if (Object.prototype.hasOwnProperty.call(context, key)) {\n return context[key];\n }\n return getSmart(context, key);\n}\n\nfunction collectSettingKeys(groups: AXPSettingDefinitionGroup[]): string[] {\n const keys: string[] = [];\n const walkSections = (sections: AXPSettingDefinitionSection[]) => {\n for (const section of sections) {\n for (const setting of section.settings) {\n keys.push(setting.name);\n }\n }\n };\n const walkGroups = (gs: AXPSettingDefinitionGroup[]) => {\n for (const group of gs) {\n walkSections(group.sections);\n walkGroups(group.groups);\n }\n };\n walkGroups(groups);\n return keys;\n}\n\nexport const AXPSettingsViewModel = signalStore(\n withState(() => ({\n groups: [] as AXPSettingDefinitionGroup[],\n activateGroup: undefined as AXPSettingDefinitionGroup | undefined,\n scope: 'U' as AXPPlatformScopeKey,\n //\n searchExpression: null as string | null,\n settingSearchTextByKey: {} as Record<string, string>,\n //\n previousContext: {} as Record<string, any>,\n context: {} as Record<string, any>,\n /** Synced from {@link AXPWidgetContainerComponent.isFormDirty}. */\n formDirty: false,\n /** Bumped after apply so the settings view can commit the container saved baseline. */\n applySyncNonce: 0,\n /** Suppresses container→VM dirty echo while post-save baseline sync runs. */\n syncingBaseline: false,\n /** Bumped after discard so the settings view can revert the container to saved. */\n discardSyncNonce: 0,\n //\n status: AXPPageStatus.Processing,\n form: null as AXFormComponent | null,\n })),\n withComputed((store, deviceService = inject(AXPDeviceService)) => ({\n searchResults: computed(() => {\n const q = store.searchExpression();\n if (q == null || !q.trim()) {\n return [];\n }\n return searchSettings(store.groups(), q, store.settingSearchTextByKey());\n }),\n hasActivateGroup: computed(() => store.activateGroup() != null),\n showGroups: computed(() => store.activateGroup() != null && deviceService.isLarge()),\n scopeTitle: computed(() => {\n return `${resolvePlatformScopeName(store.scope())}.title`;\n }),\n scopeDescription: computed(() => {\n return `${resolvePlatformScopeName(store.scope())}.description`;\n }),\n isSearching: computed(() => store.searchExpression() != null),\n isBusy: computed(() => store.status() == AXPPageStatus.Processing),\n isSaving: computed(() => store.status() == AXPPageStatus.Submitting),\n isLoaded: computed(() => store.groups().length > 0),\n isDirty: computed(() => store.formDirty()),\n })),\n withMethods(\n (\n store,\n settingDefinitionService = inject(AXPSettingDefinitionProviderService),\n settingValueService = inject(AXPSettingsService),\n toastService = inject(AXToastService),\n translateService = inject(AXTranslationService),\n ) => ({\n registerForm(form: AXFormComponent) {\n patchState(store, {\n form: form,\n });\n },\n async load(scope: AXPPlatformScopeKey) {\n traceSettingsPageLoadStarted(scope, 'settings-page-vm-load');\n const startedAt = Date.now();\n patchState(store, {\n scope: scope,\n status: AXPPageStatus.Processing,\n });\n try {\n const groups = filterSettingsPageVisibleGroups(await settingDefinitionService.getListAsync(scope));\n patchState(store, {\n groups: groups,\n });\n await this.rebuildSettingSearchIndex();\n // Settings admin must bind server partition values. `all()` alone can reuse a warm\n // IndexedDB/memory snapshot that omits non-cacheable keys (e.g. SMTP).\n await settingValueService.reload(scope as AXPPlatformScope, 'settings-page-open');\n const currentContext = await settingValueService.scope(scope as AXPPlatformScope).all();\n const defaults = await settingValueService.scope(scope as AXPPlatformScope).defaultValues();\n const context = { ...defaults, ...currentContext };\n patchState(store, {\n context,\n previousContext: cloneDeep(context),\n formDirty: false,\n });\n traceSettingsPageLoadComplete({\n scope,\n groupCount: groups.length,\n valueKeyCount: Object.keys(store.context()).length,\n durationMs: Date.now() - startedAt,\n });\n } catch (error) {\n console.error('Settings page load failed', error);\n } finally {\n // Always leave Processing so Apply/Discard are not stuck disabled after a partial load.\n patchState(store, {\n status: AXPPageStatus.Rendered,\n });\n }\n },\n async reload() {\n await settingDefinitionService.reload();\n const groups = filterSettingsPageVisibleGroups(await settingDefinitionService.getListAsync(store.scope()));\n const oldActivateGroupName = store.activateGroup()?.name;\n patchState(store, {\n groups: groups,\n activateGroup: undefined,\n });\n if (oldActivateGroupName) {\n this.setActivateGroupByName(oldActivateGroupName);\n }\n await this.rebuildSettingSearchIndex();\n },\n async rebuildSettingSearchIndex() {\n const groups = store.groups();\n const map: Record<string, string> = {};\n const walkSections = async (sections: AXPSettingDefinitionSection[]) => {\n for (const section of sections) {\n for (const setting of section.settings) {\n if (isSettingStaticallyHidden(setting)) {\n continue;\n }\n const parts: string[] = [await translateService.translateAsync(setting.title)];\n if (setting.description) {\n parts.push(await translateService.translateAsync(setting.description));\n }\n if (setting.searchTagKeys?.length) {\n for (const key of setting.searchTagKeys) {\n parts.push(await translateService.translateAsync(key));\n }\n }\n map[setting.name] = parts.join(' ').toLowerCase();\n }\n }\n };\n const walkGroups = async (gs: AXPSettingDefinitionGroup[]) => {\n for (const g of gs) {\n await walkSections(g.sections);\n await walkGroups(g.groups);\n }\n };\n await walkGroups(groups);\n patchState(store, { settingSearchTextByKey: map });\n },\n updateContext(context: Record<string, any>) {\n patchState(store, {\n context,\n });\n },\n setFormDirty(dirty: boolean) {\n if (store.syncingBaseline() || store.formDirty() === dirty) {\n return;\n }\n patchState(store, {\n formDirty: dirty,\n });\n },\n setSyncingBaseline(syncing: boolean) {\n if (store.syncingBaseline() === syncing) {\n return;\n }\n patchState(store, {\n syncingBaseline: syncing,\n });\n },\n setActivateGroup(group: AXPSettingDefinitionGroup) {\n patchState(store, {\n activateGroup: group,\n formDirty: false,\n });\n },\n unloadActivateGroup() {\n patchState(store, {\n activateGroup: undefined,\n formDirty: false,\n });\n },\n setActivateGroupByName(name: string) {\n const group = store.groups().find((g) => g.name === name);\n if (group) {\n patchState(store, {\n activateGroup: group,\n formDirty: false,\n });\n }\n },\n //\n async search(expression: string) {\n if (!isNil(expression) && !isEmpty(expression)) {\n patchState(store, {\n searchExpression: expression,\n formDirty: false,\n });\n } else {\n patchState(store, {\n searchExpression: null,\n formDirty: false,\n });\n }\n },\n clearSearch() {\n patchState(store, {\n searchExpression: null,\n formDirty: false,\n });\n },\n async apply(): Promise<boolean> {\n const form = store.form();\n if (!form || !store.isDirty()) {\n return false;\n }\n\n form.resetErrors();\n patchState(store, {\n status: AXPPageStatus.Submitting,\n });\n\n try {\n const formResult = await form.validate();\n if (!formResult.result) {\n patchState(store, {\n status: AXPPageStatus.Rendered,\n });\n toastService.show({\n color: 'danger',\n title: await translateService.translateAsync('@general:actions.apply.messages.invalid.title'),\n content: await translateService.translateAsync('@general:actions.apply.messages.invalid.message'),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n return false;\n }\n\n // Persist only known flat setting keys. Context may contain nested parent objects\n // created by path-based writes (e.g. Common:Setting:Offline → { AllowWorkingOffline }).\n const settingKeys = collectSettingKeys(store.groups());\n const context = store.context();\n const previous = store.previousContext();\n const changedValues: Record<string, unknown> = {};\n for (const key of settingKeys) {\n const value = readFlatSettingValue(context, key);\n const previousValue = readFlatSettingValue(previous, key);\n if (!isEqual(value, previousValue)) {\n changedValues[key] = value;\n }\n }\n await settingValueService.scope(store.scope() as AXPPlatformScope).set(changedValues, { flush: true });\n\n const refreshByKey = await settingDefinitionService.requiresPageRefreshByKey();\n const needsPageRefresh = Object.keys(changedValues).some((key) => refreshByKey[key]);\n\n // Keep VM context flat for the next edit session (drop accidental nested parents).\n const nextContext: Record<string, unknown> = {};\n for (const key of settingKeys) {\n const value = Object.prototype.hasOwnProperty.call(changedValues, key)\n ? changedValues[key]\n : readFlatSettingValue(context, key);\n if (value !== undefined) {\n nextContext[key] = value;\n }\n }\n\n patchState(store, {\n status: AXPPageStatus.Rendered,\n context: nextContext,\n previousContext: cloneDeep(nextContext),\n formDirty: false,\n applySyncNonce: store.applySyncNonce() + 1,\n });\n\n const successTitleKey = needsPageRefresh\n ? '@settings-management:settings.actions.apply.reload.success.title'\n : '@settings-management:settings.actions.apply.success.title';\n const successMessageKey = needsPageRefresh\n ? '@settings-management:settings.actions.apply.reload.success.message'\n : '@settings-management:settings.actions.apply.success.message';\n\n toastService.show({\n color: 'success',\n title: await translateService.translateAsync(successTitleKey),\n content: await translateService.translateAsync(successMessageKey),\n location: 'bottom-center',\n closeButton: true,\n timeOut: needsPageRefresh ? PAGE_REFRESH_DELAY_MS : 3000,\n timeOutProgress: true,\n });\n\n if (needsPageRefresh) {\n setTimeout(() => location.reload(), PAGE_REFRESH_DELAY_MS);\n }\n\n return true;\n } catch {\n patchState(store, {\n status: AXPPageStatus.Rendered,\n });\n toastService.show({\n color: 'danger',\n title: await translateService.translateAsync('@settings-management:settings.actions.apply.error.title'),\n content: await translateService.translateAsync('@settings-management:settings.actions.apply.error.message'),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n return false;\n }\n },\n applySavedState(context: Record<string, unknown>) {\n const snapshot = cloneDeep(context);\n patchState(store, {\n context: snapshot,\n previousContext: snapshot,\n formDirty: false,\n });\n },\n\n async discard() {\n const form = store.form();\n form?.resetErrors();\n\n const snapshot = cloneDeep(store.previousContext());\n patchState(store, {\n status: AXPPageStatus.Rendered,\n context: snapshot,\n previousContext: snapshot,\n formDirty: false,\n syncingBaseline: true,\n discardSyncNonce: store.discardSyncNonce() + 1,\n });\n },\n async resetToDefault() {\n const defaults = await settingValueService.scope(store.scope() as AXPPlatformScope).defaultValues();\n patchState(store, {\n context: defaults,\n });\n //\n const result = await this.apply();\n if (!result) {\n this.discard();\n }\n },\n }),\n ),\n withHooks(\n (\n store,\n settingValueService = inject(AXPSettingsService),\n translationService = inject(AXTranslationService),\n localeService = inject(AXLocaleService),\n ) => ({\n async onInit() {\n //\n settingValueService.onChanged.pipe(filter((c) => c.scope == store.scope())).subscribe((e) => {\n e.keys.forEach((k) => {\n const currentValue = e.values[k];\n const contextValue = get(store.context(), k);\n const previousValue = get(store.previousContext(), k);\n if (!isEqual(previousValue, currentValue) || !isEqual(currentValue, contextValue)) {\n patchState(store, {\n previousContext: {\n ...store.previousContext(),\n [k]: currentValue,\n },\n context: {\n ...store.context(),\n [k]: currentValue,\n },\n formDirty: false,\n });\n }\n });\n });\n //\n merge(translationService.langChanges$, localeService.profileChanged$).subscribe(async () => {\n if (store.isLoaded()) {\n await store.reload();\n }\n });\n },\n onDestroy() {},\n }),\n ),\n);\n","import { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '@acorex-platform/framework-client/common';\n\nexport class AXPSettingSearchDefinitionProvider implements AXPSearchDefinitionProvider {\n async provide(context: AXPSearchDefinitionProviderContext): Promise<void> {\n context.addDefinition('setting', 'Setting', 'setting', 'fa-solid fa-gear', 3, {\n format: {\n id: '{{data.name}}',\n },\n actions: [\n {\n name: 'navigate',\n type: 'view',\n priority: 'primary',\n },\n ],\n });\n }\n}\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPSearchProvider,\n AXPSearchResult,\n AXPSettingDefinition,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n} from '@acorex-platform/framework-client/common';\nimport { AXPPlatformScope } from '@acorex-platform/framework-shared/core';\nimport { inject } from '@angular/core';\nimport { sortBy } from 'lodash';\nimport { isSettingStaticallyHidden } from './settings-row-visibility.util';\n\nexport interface AXPSettingDefinitionSearch extends AXPSettingDefinition {\n group: AXPSettingDefinitionGroup;\n}\n\nexport class AXPSettingSearchProvider implements AXPSearchProvider {\n private settingsService = inject(AXPSettingDefinitionProviderService);\n private sessionService = inject(AXPSessionService);\n private translateService = inject(AXTranslationService);\n\n async search(text: string): Promise<AXPSearchResult[]> {\n const groupsSetting = this.settingsService.getList(AXPPlatformScope.User);\n if (groupsSetting.length == 0) {\n groupsSetting.push(...(await this.settingsService.getListAsync(AXPPlatformScope.User)));\n }\n\n // Step 2: Flatten settings from groups\n const allSettings: AXPSettingDefinitionSearch[] = [];\n const extractSettings = (group: AXPSettingDefinitionGroup) => {\n for (const section of group.sections) {\n allSettings.push(...section.settings.map((x) => ({ ...x, group } as AXPSettingDefinitionSearch)));\n }\n for (const subGroup of group.groups) {\n extractSettings(subGroup); // Recursive extraction\n }\n };\n\n for (const group of groupsSetting) {\n extractSettings(group);\n }\n\n const needle = text.trim().toLowerCase();\n if (!needle) {\n return [];\n }\n\n const translatedBlobs = await Promise.all(\n allSettings.map(async (setting) => {\n const parts: string[] = [await this.translateService.translateAsync(setting.title)];\n if (setting.description) {\n parts.push(await this.translateService.translateAsync(setting.description));\n }\n if (setting.searchTagKeys?.length) {\n for (const key of setting.searchTagKeys) {\n parts.push(await this.translateService.translateAsync(key));\n }\n }\n return parts.join(' ').toLowerCase();\n }),\n );\n\n const searchResults = allSettings.filter(\n (setting, i) =>\n !isSettingStaticallyHidden(setting) &&\n (translatedBlobs[i].includes(needle) || setting.name.toLowerCase().includes(needle)),\n );\n\n return sortBy(\n searchResults.map<AXPSearchResult>((setting) => ({\n title: setting.title,\n description: setting.description,\n group: 'setting',\n data: setting,\n command: {\n name: 'navigate',\n options: {\n type: 'router',\n options: {\n path: `/${this.sessionService.application?.name}/settings/user/${setting.group.name}#${setting.title}`,\n },\n }\n },\n parent: setting.group\n ? {\n title: setting.group.title,\n data: setting.group as AXPSettingDefinitionGroup,\n }\n : undefined,\n })),\n ['title']\n );\n }\n}\n","import { createUnsavedChangesCanDeactivateGuard } from '@acorex-platform/framework-client/common';\nimport { AXPSettingPageComponent } from './setting-page/setting-page.component';\n\n//#region ---- Settings Page Can Deactivate Guard ----\n\nexport const axpSettingsPageCanDeactivateGuard = createUnsavedChangesCanDeactivateGuard<AXPSettingPageComponent>();\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXP_UNAUTHORIZED_ROUTE } from '@acorex-platform/framework-client/common';\nimport { AXPApplicationsPlatformPermissionKeys } from '@acorex-platform/module-settings-management-client/contracts';\nimport { resolvePlatformScopeKey } from '@acorex-platform/framework-shared/core';\nimport { inject } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivateFn, Router, UrlTree } from '@angular/router';\nimport { first, map } from 'rxjs';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst SCOPE_PERMISSIONS: Record<string, string | null> = {\n P: AXPApplicationsPlatformPermissionKeys.MaintainPlatformSettings,\n T: AXPApplicationsPlatformPermissionKeys.MaintainTenantSettings,\n // Own user settings — always allowed once authenticated.\n U: null,\n};\n\n//#endregion\n\n//#region ----- Guard -----\n\n/**\n * Enforces settings-scope capabilities on direct URL navigation.\n * Menu visibility alone is not enough — hidden Platform Settings items are not\n * menu-matched, so {@link AXPMenuRouteGuard} would otherwise allow the route.\n */\nexport const axpSettingsScopeCanActivateGuard: CanActivateFn = (route: ActivatedRouteSnapshot) => {\n const sessionService = inject(AXPSessionService);\n const router = inject(Router);\n\n return sessionService.isAuthorizedWithLoading$.pipe(\n first(),\n map((): boolean | UrlTree => {\n const scopeParam = resolveScopeParam(route);\n const scopeKey = resolvePlatformScopeKey(scopeParam);\n const requiredPermission = SCOPE_PERMISSIONS[scopeKey];\n\n if (!requiredPermission) {\n return true;\n }\n\n if (sessionService.authorize(requiredPermission)) {\n return true;\n }\n\n return router.parseUrl(AXP_UNAUTHORIZED_ROUTE);\n }),\n );\n};\n\nfunction resolveScopeParam(route: ActivatedRouteSnapshot): string {\n let current: ActivatedRouteSnapshot | null = route;\n while (current) {\n const scope = current.paramMap.get('scope');\n if (scope) {\n return scope;\n }\n current = current.parent;\n }\n return '';\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { inject } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\nimport {\n AXPApplicationsPlatformPermissionKeys,\n AXPSettingsManagementMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-settings-management-client/contracts';\n\nexport class AXMMenuProvider implements AXPMenuProvider {\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const appName = this.sessionService.application?.name;\n\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n\n // Platform Settings — platform console only (not tenant admins).\n context.find(AXPCommonMenuKeys.Platform).addItems([\n {\n name: AXPSettingsManagementMenuKeys.PlatformSettings,\n priority: 999,\n text: '@settings-management:module.terms.scopes.platform.title',\n type: 'menu',\n icon: 'fa-light fa-gear',\n path: `/${appName}/settings/platform`,\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXPApplicationsPlatformPermissionKeys.MaintainPlatformSettings],\n },\n },\n ]);\n\n // Tenant Settings — under Administration; own user settings are profile-only (no menu policy).\n context.find(AXPCommonMenuKeys.Administration).addItems([\n { name: `${AXPSettingsManagementMenuKeys.TenantApplicationSettings}:divider`, text: '', type: 'break', priority: 998 },\n {\n name: AXPSettingsManagementMenuKeys.TenantApplicationSettings,\n priority: 999,\n text: '@settings-management:module.terms.scopes.tenant.title',\n type: 'menu',\n icon: 'fa-light fa-gear',\n path: `/${appName}/settings/tenant`,\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXPApplicationsPlatformPermissionKeys.MaintainTenantSettings],\n },\n },\n ]);\n }\n}\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPApplicationsPlatformPermissionKeys\n} from '@acorex-platform/module-settings-management-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers tenant settings under Administration and platform settings under\n * Applications & Platform. Own user settings are not registered — always available\n * to the signed-in user.\n */\n@Injectable()\nexport class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPApplicationsPlatformPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:applications-platform.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.Administration.Root, `${G}.administration.title`, `${G}.administration.description`, {\n order: 120,\n });\n context.addGroup(groups.ApplicationsPlatform.Root, `${G}.applications-platform.title`, `${G}.applications-platform.description`, {\n order: 110,\n });\n\n context\n .addGroup(\n groups.Administration.Settings,\n `${G}.administration-settings.title`,\n `${G}.administration-settings.description`,\n { parent: groups.Administration.Root, order: 15 },\n )\n .addPermission(keys.MaintainTenantSettings, `${P}.maintain-tenant-settings.title`, `${P}.maintain-tenant-settings.description`, {\n modules: ['SettingsManagement'],\n })\n .endPermission()\n .endGroup();\n\n context\n .addGroup(\n groups.ApplicationsPlatform.Configuration,\n `${G}.applications-platform-configuration.title`,\n `${G}.applications-platform-configuration.description`,\n { parent: groups.ApplicationsPlatform.Root, order: 30 },\n )\n .addPermission(keys.MaintainPlatformSettings, `${P}.maintain-platform-settings.title`, `${P}.maintain-platform-settings.description`, {\n modules: ['PlatformManagement'],\n requiredFeatures: ['PlatformManagement'],\n })\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXMSettingsManagementCommandKeys } from '@acorex-platform/module-settings-management-client/contracts';\r\nimport { inject } from '@angular/core';\r\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\r\nimport { AXPHookProvider } from '@acorex-platform/framework-client/core';\r\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\r\n\r\n//#region ---- Types ----\r\n\r\ntype ProfileSectionsPayload = {\r\n sections: Record<string, unknown>[];\r\n groupId?: string;\r\n};\r\n\r\n//#endregion\r\n\r\n//#region ---- Settings management profile sections ----\r\n\r\n/** Contributes settings-related sections to the user profile hub. */\r\nexport const SettingsManagementProfileSectionsHookProvider: AXPHookProvider<\r\n ProfileSectionsPayload,\r\n ProfileSectionsPayload\r\n> = {\r\n key: 'profile-page.sections',\r\n priority: 10,\r\n execute: (payload) => {\r\n if (payload.groupId && payload.groupId !== 'account') {\r\n return payload;\r\n }\r\n\r\n const commandService = inject(AXPCommandService);\r\n const sessionService = inject(AXPSessionService);\r\n const appName = sessionService.application?.name;\r\n\r\n const sections: Record<string, unknown>[] = [];\r\n\r\n if (commandService.exists(AXMSettingsManagementCommandKeys.Client.Export)) {\r\n sections.push({\r\n id: 'export-data',\r\n groupId: 'account',\r\n title: '@settings-management:profile-page.sections.export-data.title',\r\n description: '@settings-management:profile-page.sections.export-data.description',\r\n icon: 'far fa-file-export',\r\n priority: 30,\r\n layout: { colSpan: 6 },\r\n actions: [\r\n {\r\n name: 'export-local-data',\r\n title: '@settings-management:profile-page.sections.export-data.actions.manage',\r\n icon: 'far fa-download',\r\n command: { name: AXMSettingsManagementCommandKeys.Client.Export },\r\n },\r\n ],\r\n });\r\n }\r\n\r\n if (appName) {\r\n sections.push({\r\n id: 'all-preferences',\r\n groupId: 'account',\r\n title: '@settings-management:profile-page.sections.all-preferences.title',\r\n description: '@settings-management:profile-page.sections.all-preferences.description',\r\n icon: 'far fa-sliders',\r\n priority: 40,\r\n layout: { colSpan: 6 },\r\n actions: [\r\n {\r\n name: 'view-all-preferences',\r\n title: '@settings-management:profile-page.sections.all-preferences.actions.manage',\r\n icon: 'far fa-arrow-right',\r\n command: {\r\n name: 'navigate',\r\n options: { path: `/${appName}/settings/user` },\r\n },\r\n },\r\n ],\r\n });\r\n }\r\n\r\n if (!sections.length) {\r\n return payload;\r\n }\r\n\r\n return {\r\n ...payload,\r\n sections: [...payload.sections, ...sections],\r\n };\r\n },\r\n};\r\n\r\n//#endregion\r\n","import { AXPActionMenuItem } from '@acorex-platform/framework-shared/core';\r\nimport { inject } from '@angular/core';\r\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\r\nimport { AXPHookProvider } from '@acorex-platform/framework-client/core';\r\n\r\n//#region ---- Profile slot settings menu hook ----\r\n\r\n/** Registers the user settings entry in the profile dropdown (always available; no permission). */\r\nexport const ProfileSlotSettingsMenuHookProvider: AXPHookProvider<\r\n { items: AXPActionMenuItem[] },\r\n { items: AXPActionMenuItem[] }\r\n> = {\r\n key: 'profile-slot.menu-items',\r\n priority: 0,\r\n execute: (payload) => {\r\n const sessionService = inject(AXPSessionService);\r\n const appName = sessionService.application?.name;\r\n\r\n if (!appName) {\r\n return payload;\r\n }\r\n\r\n return {\r\n ...payload,\r\n items: [\r\n ...payload.items,\r\n {\r\n name: 'settings',\r\n title: '@auth:profile.settings',\r\n icon: 'fa-light fa-gear',\r\n shortcuts: [{ keys: 'ctrl+shift+u', allowInEditableFields: true }],\r\n command: {\r\n name: 'navigate',\r\n options: {\r\n path: `/${appName}/settings/user`,\r\n },\r\n },\r\n } satisfies AXPActionMenuItem,\r\n ],\r\n };\r\n },\r\n};\r\n\r\n//#endregion\r\n","import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport {\n AXP_MENU_PROVIDER,\n AXP_PROTECTED_ROUTE_GUARDS,\n AXP_SEARCH_DEFINITION_PROVIDER,\n AXP_SEARCH_PROVIDER,\n AXP_SETTINGS_SYNC_KEYS,\n AXPPlatformSettingsLoadState,\n AXPPlatformSettingsOfflineBootstrapService,\n AXPSettingsService,\n traceSettingsAppStartupLoadComplete,\n traceSettingsAppStartupLoadStarted,\n} from '@acorex-platform/framework-client/common';\nimport {\n AXPAppStartUpService,\n AXP_APP_STARTUP_PRIORITY,\n AXP_HOOK_PROVIDER,\n} from '@acorex-platform/framework-client/core';\nimport { AXPRootLayoutComponent } from '@acorex-platform/framework-client/themes/default';\nimport { NgModule } from '@angular/core';\nimport { Routes, ROUTES } from '@angular/router';\nimport { AXPSettingSearchDefinitionProvider } from './features/settings/search-definition.provider';\nimport { AXPSettingSearchProvider } from './features/settings/search.provider';\nimport { axpSettingsPageCanDeactivateGuard } from './features/settings/settings-page-can-deactivate.guard';\nimport { axpSettingsScopeCanActivateGuard } from './features/settings/settings-scope.guard';\nimport { AXMMenuProvider } from './menu.provider';\nimport { AXMPermissionDefinitionProvider } from './permission-definition.provider';\nimport { SettingsManagementProfileSectionsHookProvider } from './features/profile-page/settings-management-profile-sections.hook';\nimport { ProfileSlotSettingsMenuHookProvider } from './profile-slot-settings-menu.hook';\nimport { axmSettingsSyncKeys } from '@acorex-platform/module-settings-management-client/contracts';\nimport { AXCRuntimeRemoteApiModule } from '@acorex-platform/client-connectivity-api';\n\r\n//#region ----- Constants -----\r\n\r\nconst PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS = 5;\r\nconst PLATFORM_SETTINGS_STARTUP_RETRY_DELAY_MS = 2_000;\r\n\r\n//#endregion\r\n\r\nfunction sleep(ms: number): Promise<void> {\r\n return new Promise((resolve) => setTimeout(resolve, ms));\r\n}\r\n\r\nasync function loadPlatformSettingsWithRetry(\r\n settingsService: AXPSettingsService,\r\n offlineBootstrap: AXPPlatformSettingsOfflineBootstrapService,\r\n): Promise<void> {\r\n // Device offline — skip retries and go straight to offline / unavailable handling.\r\n if (offlineBootstrap.isDeviceOffline()) {\r\n throw new Error('Device is offline');\r\n }\r\n\r\n let lastError: unknown;\r\n for (let attempt = 1; attempt <= PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS; attempt++) {\r\n try {\r\n await settingsService.ensurePlatformSettingsLoaded();\r\n return;\r\n } catch (error) {\r\n lastError = error;\r\n console.error(\r\n `Platform settings bootstrap failed (attempt ${attempt}/${PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS})`,\r\n error,\r\n );\r\n if (offlineBootstrap.isDeviceOffline()) {\r\n throw error;\r\n }\r\n if (attempt < PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS) {\r\n await sleep(PLATFORM_SETTINGS_STARTUP_RETRY_DELAY_MS);\r\n }\r\n }\r\n }\r\n throw lastError;\r\n}\r\n\r\nfunction routesFacory() {\r\n let routes: Routes = [\r\n {\r\n path: ':app/settings/:scope',\r\n canActivate: [...AXP_PROTECTED_ROUTE_GUARDS, axpSettingsScopeCanActivateGuard],\r\n data: { tab: true, rootLayout: true },\r\n loadComponent: () => {\r\n return AXPRootLayoutComponent;\r\n },\r\n children: [\r\n {\r\n path: '',\r\n loadComponent: () =>\r\n import('./features/settings/setting-page/setting-page.component').then((c) => c.AXPSettingPageComponent),\r\n canDeactivate: [axpSettingsPageCanDeactivateGuard],\r\n data: { reuse: true },\r\n children: [\r\n {\r\n path: ':group',\r\n loadComponent: () =>\r\n import('./features/settings/setting-view/setting-view.component').then(\r\n (c) => c.AXPSettingsViewComponent,\r\n ),\r\n data: { reuse: false },\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n ];\r\n return routes;\r\n}\r\n\r\n@NgModule({\r\n imports: [AXCRuntimeRemoteApiModule],\r\n exports: [],\r\n declarations: [],\r\n providers: [\r\n {\r\n provide: AXP_SETTINGS_SYNC_KEYS,\r\n useValue: axmSettingsSyncKeys,\r\n },\r\n {\r\n provide: AXP_SEARCH_PROVIDER,\r\n useClass: AXPSettingSearchProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_SEARCH_DEFINITION_PROVIDER,\r\n useClass: AXPSettingSearchDefinitionProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: ROUTES,\r\n multi: true,\r\n useFactory: routesFacory,\r\n },\r\n {\r\n provide: AXP_MENU_PROVIDER,\r\n useClass: AXMMenuProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\r\n useClass: AXMPermissionDefinitionProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_HOOK_PROVIDER,\r\n useValue: ProfileSlotSettingsMenuHookProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_HOOK_PROVIDER,\r\n useValue: SettingsManagementProfileSectionsHookProvider,\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class AXMSettingsManagementModule {\r\n constructor(\r\n appInitService: AXPAppStartUpService,\r\n settingsService: AXPSettingsService,\r\n platformSettingsLoadState: AXPPlatformSettingsLoadState,\r\n offlineBootstrap: AXPPlatformSettingsOfflineBootstrapService,\r\n ) {\r\n appInitService.registerTask({\r\n name: 'platform-settings',\r\n priority: AXP_APP_STARTUP_PRIORITY.platformSettings,\r\n run: async () => {\r\n try {\r\n await loadPlatformSettingsWithRetry(settingsService, offlineBootstrap);\r\n platformSettingsLoadState.clear();\r\n } catch (error) {\r\n console.error('Platform settings bootstrap failed after retries', error);\r\n // Never open dialogs here (APP_INITIALIZER — overlay host is null).\r\n // Only inspect IndexedDB; confirm runs later after the app is stable.\r\n let canOfferOffline = false;\r\n try {\r\n canOfferOffline = await offlineBootstrap.canOfferOfflineContinue();\r\n } catch (offlineError) {\r\n console.error('Offline continue cache check failed', offlineError);\r\n }\r\n if (canOfferOffline) {\r\n platformSettingsLoadState.setPendingOfflineContinue(error);\r\n } else {\r\n platformSettingsLoadState.setFailure(error);\r\n }\r\n // Keep only platform-settings-failure-redirect; skip Settings/regional/theme (they hang on API).\r\n appInitService.abortRemainingStartupTasks();\r\n }\r\n },\r\n });\r\n\r\n appInitService.registerTask({\r\n name: 'Settings',\r\n statusText: '@settings-management:app-startup.loading-settings',\r\n priority: AXP_APP_STARTUP_PRIORITY.settings,\r\n run: async () => {\r\n if (\r\n platformSettingsLoadState.hasFailure() ||\r\n platformSettingsLoadState.hasPendingOfflineContinue() ||\r\n platformSettingsLoadState.isOfflineMode()\r\n ) {\r\n return;\r\n }\r\n traceSettingsAppStartupLoadStarted();\r\n const startedAt = Date.now();\r\n const settings = await settingsService.load('app-startup');\r\n traceSettingsAppStartupLoadComplete({\r\n totalKeys: settings.length,\r\n keysByScope: {},\r\n durationMs: Date.now() - startedAt,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMA;AACM,SAAU,yBAAyB,CAAC,OAA6B,EAAA;IACrE,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC,KAAK,KAAK;AACzD;AAEM,SAAU,iCAAiC,CAAC,QAAgC,EAAA;AAChF,IAAA,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;AAC1E;AAEM,SAAU,iCAAiC,CAAC,OAAoC,EAAA;IACpF,OAAO,iCAAiC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC;AACvE;AAEA;AACM,SAAU,+BAA+B,CAAC,MAAmC,EAAA;AACjF,IAAA,OAAO;AACJ,SAAA,GAAG,CAAC,CAAC,KAAK,MAAM;AACf,QAAA,GAAG,KAAK;QACR,QAAQ,EAAE,KAAK,CAAC;AACb,aAAA,GAAG,CAAC,CAAC,OAAO,MAAM;AACjB,YAAA,GAAG,OAAO;AACV,YAAA,QAAQ,EAAE,iCAAiC,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC9D,SAAA,CAAC;AACD,aAAA,MAAM,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;AACnD,QAAA,MAAM,EAAE,+BAA+B,CAAC,KAAK,CAAC,MAAM,CAAC;AACtD,KAAA,CAAC;SACD,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AAC5E;;AC3BA;;;AAGG;SACa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AE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,eAAe;AACzB,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,kCAAkC;AAC3C,4BAAA,QAAQ,EAAE,+BAA+B;AACzC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,mCAAmC;AAC7C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,6CAA6C;AACvD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACxJD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-settings-management-client.mjs","sources":["../../../../libs/modules/settings-management/client/src/lib/features/settings/settings-row-visibility.util.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/convert-setting-data.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/settings.viewmodel.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/search-definition.provider.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/search.provider.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/settings-page-can-deactivate.guard.ts","../../../../libs/modules/settings-management/client/src/lib/features/settings/settings-scope.guard.ts","../../../../libs/modules/settings-management/client/src/lib/menu.provider.ts","../../../../libs/modules/settings-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/settings-management/client/src/lib/features/profile-page/settings-management-profile-sections.hook.ts","../../../../libs/modules/settings-management/client/src/lib/profile-slot-settings-menu.hook.ts","../../../../libs/modules/settings-management/client/src/lib/settings-management.module.ts","../../../../libs/modules/settings-management/client/src/acorex-platform-module-settings-management-client.ts"],"sourcesContent":["import type {\n AXPSettingDefinition,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionSection,\n} from '@acorex-platform/framework-client/common';\n\n/** Settings with `widget.options.visibility === false` are registered but omitted from the settings UI. */\nexport function isSettingStaticallyHidden(setting: AXPSettingDefinition): boolean {\n return setting.widget.options?.['visibility'] === false;\n}\n\nexport function filterSettingsPageVisibleSettings(settings: AXPSettingDefinition[]): AXPSettingDefinition[] {\n return settings.filter((setting) => !isSettingStaticallyHidden(setting));\n}\n\nexport function sectionHasSettingsPageVisibleRows(section: AXPSettingDefinitionSection): boolean {\n return filterSettingsPageVisibleSettings(section.settings).length > 0;\n}\n\n/** Drop statically hidden rows, then omit sections/groups that have nothing left to render. */\nexport function filterSettingsPageVisibleGroups(groups: AXPSettingDefinitionGroup[]): AXPSettingDefinitionGroup[] {\n return groups\n .map((group) => ({\n ...group,\n sections: group.sections\n .map((section) => ({\n ...section,\n settings: filterSettingsPageVisibleSettings(section.settings),\n }))\n .filter((section) => section.settings.length > 0),\n groups: filterSettingsPageVisibleGroups(group.groups),\n }))\n .filter((group) => group.sections.length > 0 || group.groups.length > 0);\n}\n","import { AXPSettingDefinition, AXPSettingDefinitionGroup, AXPSettingDefinitionSection } from '@acorex-platform/framework-client/common';\nimport {\n filterSettingsPageVisibleSettings,\n sectionHasSettingsPageVisibleRows,\n} from './settings-row-visibility.util';\n\n/**\n * Filters setting groups for in-page search. When `settingSearchTextByKey` is provided (lowercased\n * translated blobs keyed by setting name), setting matches use it; otherwise a raw key fallback is used.\n */\nexport function searchSettings(\n groups: AXPSettingDefinitionGroup[],\n search: string,\n settingSearchTextByKey?: Record<string, string>,\n): AXPSettingDefinitionGroup[] {\n const trimmed = search?.trim() ?? '';\n if (!trimmed) {\n return [];\n }\n\n const normalizedSearch = trimmed.toLowerCase();\n const sectionMatchResult: AXPSettingDefinitionGroup[] = [];\n const settingMatchResult: AXPSettingDefinitionGroup[] = [];\n const processedGroups = new Set<string>();\n\n const createGroupIdentifier = (group: AXPSettingDefinitionGroup): string => `${group.name}-${group.title}`;\n\n const addGroupToResult = (\n group: AXPSettingDefinitionGroup,\n sections: AXPSettingDefinitionSection[],\n resultArray: AXPSettingDefinitionGroup[]\n ) => {\n const groupId = createGroupIdentifier(group);\n if (!processedGroups.has(groupId)) {\n resultArray.push({\n ...group,\n sections,\n groups: [], // Exclude nested groups\n });\n processedGroups.add(groupId);\n }\n };\n\n const processSections = (\n group: AXPSettingDefinitionGroup,\n filterFn: (section: AXPSettingDefinitionSection) => boolean\n ) => {\n const matchedSections = group.sections.filter(filterFn);\n if (matchedSections.length > 0) {\n addGroupToResult(group, matchedSections, sectionMatchResult);\n }\n };\n\n const processSettings = (\n group: AXPSettingDefinitionGroup,\n filterFn: (section: AXPSettingDefinitionSection) => AXPSettingDefinitionSection | null\n ) => {\n const matchedSections = group.sections\n .map(filterFn)\n .filter((section): section is AXPSettingDefinitionSection => section !== null);\n if (matchedSections.length > 0) {\n addGroupToResult(group, matchedSections, settingMatchResult);\n }\n };\n\n const sectionMatches = (section: AXPSettingDefinitionSection): boolean =>\n sectionHasSettingsPageVisibleRows(section) &&\n (section.name.toLowerCase().includes(normalizedSearch) ||\n section.title.toLowerCase().includes(normalizedSearch));\n\n const settingSearchBlob = (setting: AXPSettingDefinition): string => {\n const fromIndex = settingSearchTextByKey?.[setting.name];\n if (fromIndex) {\n return fromIndex;\n }\n return [setting.name, setting.title, setting.description ?? '', ...(setting.searchTagKeys ?? [])]\n .join(' ')\n .toLowerCase();\n };\n\n const filterSettings = (section: AXPSettingDefinitionSection): AXPSettingDefinitionSection | null => {\n const matchedSettings = filterSettingsPageVisibleSettings(section.settings).filter((setting) => {\n const blob = settingSearchBlob(setting);\n return (\n setting.name.toLowerCase().includes(normalizedSearch) ||\n blob.includes(normalizedSearch)\n );\n });\n return matchedSettings.length > 0 ? { ...section, settings: matchedSettings } : null;\n };\n\n const processGroupRecursively = (group: AXPSettingDefinitionGroup) => {\n processSections(group, sectionMatches); // Match sections with all settings\n processSettings(group, filterSettings); // Match settings within sections\n group.groups.forEach(processGroupRecursively); // Recurse into nested groups\n };\n\n groups.forEach(processGroupRecursively);\n\n return [...sectionMatchResult, ...settingMatchResult];\n}\n","import { AXPPageStatus } from '@acorex-platform/framework-shared/widget-core';\nimport { AXFormComponent } from '@acorex/components/form';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n AXPSettingDefinitionSection,\n AXPSettingsService,\n traceSettingsPageLoadComplete,\n traceSettingsPageLoadStarted,\n} from '@acorex-platform/framework-client/common';\nimport {\n AXPPlatformScope,\n AXPPlatformScopeKey,\n getSmart,\n resolvePlatformScopeName,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPDeviceService } from '@acorex-platform/framework-client/core';\n\nimport { computed, inject } from '@angular/core';\nimport { patchState, signalStore, withComputed, withHooks, withMethods, withState } from '@ngrx/signals';\nimport { cloneDeep, get, isEmpty, isEqual, isNil } from 'lodash';\nimport { filter, merge } from 'rxjs';\nimport { searchSettings } from './convert-setting-data';\nimport { filterSettingsPageVisibleGroups, isSettingStaticallyHidden } from './settings-row-visibility.util';\n\n/** Delay before reload so the success toast is visible. */\nconst PAGE_REFRESH_DELAY_MS = 500;\n\n/** Setting keys are flat (may contain dots). Prefer own-property, then smart path. */\nfunction readFlatSettingValue(context: Record<string, unknown>, key: string): unknown {\n if (Object.prototype.hasOwnProperty.call(context, key)) {\n return context[key];\n }\n return getSmart(context, key);\n}\n\nfunction collectSettingKeys(groups: AXPSettingDefinitionGroup[]): string[] {\n const keys: string[] = [];\n const walkSections = (sections: AXPSettingDefinitionSection[]) => {\n for (const section of sections) {\n for (const setting of section.settings) {\n keys.push(setting.name);\n }\n }\n };\n const walkGroups = (gs: AXPSettingDefinitionGroup[]) => {\n for (const group of gs) {\n walkSections(group.sections);\n walkGroups(group.groups);\n }\n };\n walkGroups(groups);\n return keys;\n}\n\nexport const AXPSettingsViewModel = signalStore(\n withState(() => ({\n groups: [] as AXPSettingDefinitionGroup[],\n activateGroup: undefined as AXPSettingDefinitionGroup | undefined,\n scope: 'U' as AXPPlatformScopeKey,\n //\n searchExpression: null as string | null,\n settingSearchTextByKey: {} as Record<string, string>,\n //\n previousContext: {} as Record<string, any>,\n context: {} as Record<string, any>,\n /** Synced from {@link AXPWidgetContainerComponent.isFormDirty}. */\n formDirty: false,\n /** Bumped after apply so the settings view can commit the container saved baseline. */\n applySyncNonce: 0,\n /** Suppresses container→VM dirty echo while post-save baseline sync runs. */\n syncingBaseline: false,\n /** Bumped after discard so the settings view can revert the container to saved. */\n discardSyncNonce: 0,\n //\n status: AXPPageStatus.Processing,\n form: null as AXFormComponent | null,\n })),\n withComputed((store, deviceService = inject(AXPDeviceService)) => ({\n searchResults: computed(() => {\n const q = store.searchExpression();\n if (q == null || !q.trim()) {\n return [];\n }\n return searchSettings(store.groups(), q, store.settingSearchTextByKey());\n }),\n hasActivateGroup: computed(() => store.activateGroup() != null),\n showGroups: computed(() => store.activateGroup() != null && deviceService.isLarge()),\n scopeTitle: computed(() => {\n return `${resolvePlatformScopeName(store.scope())}.title`;\n }),\n scopeDescription: computed(() => {\n return `${resolvePlatformScopeName(store.scope())}.description`;\n }),\n isSearching: computed(() => store.searchExpression() != null),\n isBusy: computed(() => store.status() == AXPPageStatus.Processing),\n isSaving: computed(() => store.status() == AXPPageStatus.Submitting),\n isLoaded: computed(() => store.groups().length > 0),\n isDirty: computed(() => store.formDirty()),\n })),\n withMethods(\n (\n store,\n settingDefinitionService = inject(AXPSettingDefinitionProviderService),\n settingValueService = inject(AXPSettingsService),\n toastService = inject(AXToastService),\n translateService = inject(AXTranslationService),\n ) => ({\n registerForm(form: AXFormComponent) {\n patchState(store, {\n form: form,\n });\n },\n async load(scope: AXPPlatformScopeKey) {\n traceSettingsPageLoadStarted(scope, 'settings-page-vm-load');\n const startedAt = Date.now();\n patchState(store, {\n scope: scope,\n status: AXPPageStatus.Processing,\n });\n try {\n const groups = filterSettingsPageVisibleGroups(await settingDefinitionService.getListAsync(scope));\n patchState(store, {\n groups: groups,\n });\n await this.rebuildSettingSearchIndex();\n // Settings admin must bind server partition values. `all()` alone can reuse a warm\n // IndexedDB/memory snapshot that omits non-cacheable keys (e.g. SMTP).\n await settingValueService.reload(scope as AXPPlatformScope, 'settings-page-open');\n const currentContext = await settingValueService.scope(scope as AXPPlatformScope).all();\n const defaults = await settingValueService.scope(scope as AXPPlatformScope).defaultValues();\n const context = { ...defaults, ...currentContext };\n patchState(store, {\n context,\n previousContext: cloneDeep(context),\n formDirty: false,\n });\n traceSettingsPageLoadComplete({\n scope,\n groupCount: groups.length,\n valueKeyCount: Object.keys(store.context()).length,\n durationMs: Date.now() - startedAt,\n });\n } catch (error) {\n console.error('Settings page load failed', error);\n } finally {\n // Always leave Processing so Apply/Discard are not stuck disabled after a partial load.\n patchState(store, {\n status: AXPPageStatus.Rendered,\n });\n }\n },\n async reload() {\n await settingDefinitionService.reload();\n const groups = filterSettingsPageVisibleGroups(await settingDefinitionService.getListAsync(store.scope()));\n const oldActivateGroupName = store.activateGroup()?.name;\n patchState(store, {\n groups: groups,\n activateGroup: undefined,\n });\n if (oldActivateGroupName) {\n this.setActivateGroupByName(oldActivateGroupName);\n }\n await this.rebuildSettingSearchIndex();\n },\n async rebuildSettingSearchIndex() {\n const groups = store.groups();\n const map: Record<string, string> = {};\n const walkSections = async (sections: AXPSettingDefinitionSection[]) => {\n for (const section of sections) {\n for (const setting of section.settings) {\n if (isSettingStaticallyHidden(setting)) {\n continue;\n }\n const parts: string[] = [await translateService.translateAsync(setting.title)];\n if (setting.description) {\n parts.push(await translateService.translateAsync(setting.description));\n }\n if (setting.searchTagKeys?.length) {\n for (const key of setting.searchTagKeys) {\n parts.push(await translateService.translateAsync(key));\n }\n }\n map[setting.name] = parts.join(' ').toLowerCase();\n }\n }\n };\n const walkGroups = async (gs: AXPSettingDefinitionGroup[]) => {\n for (const g of gs) {\n await walkSections(g.sections);\n await walkGroups(g.groups);\n }\n };\n await walkGroups(groups);\n patchState(store, { settingSearchTextByKey: map });\n },\n updateContext(context: Record<string, any>) {\n patchState(store, {\n context,\n });\n },\n setFormDirty(dirty: boolean) {\n if (store.syncingBaseline() || store.formDirty() === dirty) {\n return;\n }\n patchState(store, {\n formDirty: dirty,\n });\n },\n setSyncingBaseline(syncing: boolean) {\n if (store.syncingBaseline() === syncing) {\n return;\n }\n patchState(store, {\n syncingBaseline: syncing,\n });\n },\n setActivateGroup(group: AXPSettingDefinitionGroup) {\n patchState(store, {\n activateGroup: group,\n formDirty: false,\n });\n },\n unloadActivateGroup() {\n patchState(store, {\n activateGroup: undefined,\n formDirty: false,\n });\n },\n setActivateGroupByName(name: string) {\n const group = store.groups().find((g) => g.name === name);\n if (group) {\n patchState(store, {\n activateGroup: group,\n formDirty: false,\n });\n }\n },\n //\n async search(expression: string) {\n if (!isNil(expression) && !isEmpty(expression)) {\n patchState(store, {\n searchExpression: expression,\n formDirty: false,\n });\n } else {\n patchState(store, {\n searchExpression: null,\n formDirty: false,\n });\n }\n },\n clearSearch() {\n patchState(store, {\n searchExpression: null,\n formDirty: false,\n });\n },\n async apply(): Promise<boolean> {\n const form = store.form();\n if (!form || !store.isDirty()) {\n return false;\n }\n\n form.resetErrors();\n patchState(store, {\n status: AXPPageStatus.Submitting,\n });\n\n try {\n const formResult = await form.validate();\n if (!formResult.result) {\n patchState(store, {\n status: AXPPageStatus.Rendered,\n });\n toastService.show({\n color: 'danger',\n title: await translateService.translateAsync('@general:actions.apply.messages.invalid.title'),\n content: await translateService.translateAsync('@general:actions.apply.messages.invalid.message'),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n return false;\n }\n\n // Persist only known flat setting keys. Context may contain nested parent objects\n // created by path-based writes (e.g. Common:Setting:Offline → { AllowWorkingOffline }).\n const settingKeys = collectSettingKeys(store.groups());\n const context = store.context();\n const previous = store.previousContext();\n const changedValues: Record<string, unknown> = {};\n for (const key of settingKeys) {\n const value = readFlatSettingValue(context, key);\n const previousValue = readFlatSettingValue(previous, key);\n if (!isEqual(value, previousValue)) {\n changedValues[key] = value;\n }\n }\n await settingValueService.scope(store.scope() as AXPPlatformScope).set(changedValues, { flush: true });\n\n const refreshByKey = await settingDefinitionService.requiresPageRefreshByKey();\n const needsPageRefresh = Object.keys(changedValues).some((key) => refreshByKey[key]);\n\n // Keep VM context flat for the next edit session (drop accidental nested parents).\n const nextContext: Record<string, unknown> = {};\n for (const key of settingKeys) {\n const value = Object.prototype.hasOwnProperty.call(changedValues, key)\n ? changedValues[key]\n : readFlatSettingValue(context, key);\n if (value !== undefined) {\n nextContext[key] = value;\n }\n }\n\n patchState(store, {\n status: AXPPageStatus.Rendered,\n context: nextContext,\n previousContext: cloneDeep(nextContext),\n formDirty: false,\n applySyncNonce: store.applySyncNonce() + 1,\n });\n\n const successTitleKey = needsPageRefresh\n ? '@settings-management:settings.actions.apply.reload.success.title'\n : '@settings-management:settings.actions.apply.success.title';\n const successMessageKey = needsPageRefresh\n ? '@settings-management:settings.actions.apply.reload.success.message'\n : '@settings-management:settings.actions.apply.success.message';\n\n toastService.show({\n color: 'success',\n title: await translateService.translateAsync(successTitleKey),\n content: await translateService.translateAsync(successMessageKey),\n location: 'bottom-center',\n closeButton: true,\n timeOut: needsPageRefresh ? PAGE_REFRESH_DELAY_MS : 3000,\n timeOutProgress: true,\n });\n\n if (needsPageRefresh) {\n setTimeout(() => location.reload(), PAGE_REFRESH_DELAY_MS);\n }\n\n return true;\n } catch {\n patchState(store, {\n status: AXPPageStatus.Rendered,\n });\n toastService.show({\n color: 'danger',\n title: await translateService.translateAsync('@settings-management:settings.actions.apply.error.title'),\n content: await translateService.translateAsync('@settings-management:settings.actions.apply.error.message'),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n return false;\n }\n },\n applySavedState(context: Record<string, unknown>) {\n const snapshot = cloneDeep(context);\n patchState(store, {\n context: snapshot,\n previousContext: snapshot,\n formDirty: false,\n });\n },\n\n async discard() {\n const form = store.form();\n form?.resetErrors();\n\n const snapshot = cloneDeep(store.previousContext());\n patchState(store, {\n status: AXPPageStatus.Rendered,\n context: snapshot,\n previousContext: snapshot,\n formDirty: false,\n syncingBaseline: true,\n discardSyncNonce: store.discardSyncNonce() + 1,\n });\n },\n async resetToDefault() {\n const defaults = await settingValueService.scope(store.scope() as AXPPlatformScope).defaultValues();\n patchState(store, {\n context: defaults,\n });\n //\n const result = await this.apply();\n if (!result) {\n this.discard();\n }\n },\n }),\n ),\n withHooks(\n (\n store,\n settingValueService = inject(AXPSettingsService),\n translationService = inject(AXTranslationService),\n localeService = inject(AXLocaleService),\n ) => ({\n async onInit() {\n //\n settingValueService.onChanged.pipe(filter((c) => c.scope == store.scope())).subscribe((e) => {\n e.keys.forEach((k) => {\n const currentValue = e.values[k];\n const contextValue = get(store.context(), k);\n const previousValue = get(store.previousContext(), k);\n if (!isEqual(previousValue, currentValue) || !isEqual(currentValue, contextValue)) {\n patchState(store, {\n previousContext: {\n ...store.previousContext(),\n [k]: currentValue,\n },\n context: {\n ...store.context(),\n [k]: currentValue,\n },\n formDirty: false,\n });\n }\n });\n });\n //\n merge(translationService.langChanges$, localeService.profileChanged$).subscribe(async () => {\n if (store.isLoaded()) {\n await store.reload();\n }\n });\n },\n onDestroy() {},\n }),\n ),\n);\n","import { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '@acorex-platform/framework-client/common';\n\nexport class AXPSettingSearchDefinitionProvider implements AXPSearchDefinitionProvider {\n async provide(context: AXPSearchDefinitionProviderContext): Promise<void> {\n context.addDefinition('setting', 'Setting', 'setting', 'fa-solid fa-gear', 3, {\n format: {\n id: '{{data.name}}',\n },\n actions: [\n {\n name: 'navigate',\n type: 'view',\n priority: 'primary',\n },\n ],\n });\n }\n}\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPSearchProvider,\n AXPSearchResult,\n AXPSettingDefinition,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n} from '@acorex-platform/framework-client/common';\nimport { AXPPlatformScope } from '@acorex-platform/framework-shared/core';\nimport { inject } from '@angular/core';\nimport { sortBy } from 'lodash';\nimport { isSettingStaticallyHidden } from './settings-row-visibility.util';\n\nexport interface AXPSettingDefinitionSearch extends AXPSettingDefinition {\n group: AXPSettingDefinitionGroup;\n}\n\nexport class AXPSettingSearchProvider implements AXPSearchProvider {\n private settingsService = inject(AXPSettingDefinitionProviderService);\n private sessionService = inject(AXPSessionService);\n private translateService = inject(AXTranslationService);\n\n async search(text: string): Promise<AXPSearchResult[]> {\n const groupsSetting = this.settingsService.getList(AXPPlatformScope.User);\n if (groupsSetting.length == 0) {\n groupsSetting.push(...(await this.settingsService.getListAsync(AXPPlatformScope.User)));\n }\n\n // Step 2: Flatten settings from groups\n const allSettings: AXPSettingDefinitionSearch[] = [];\n const extractSettings = (group: AXPSettingDefinitionGroup) => {\n for (const section of group.sections) {\n allSettings.push(...section.settings.map((x) => ({ ...x, group } as AXPSettingDefinitionSearch)));\n }\n for (const subGroup of group.groups) {\n extractSettings(subGroup); // Recursive extraction\n }\n };\n\n for (const group of groupsSetting) {\n extractSettings(group);\n }\n\n const needle = text.trim().toLowerCase();\n if (!needle) {\n return [];\n }\n\n const translatedBlobs = await Promise.all(\n allSettings.map(async (setting) => {\n const parts: string[] = [await this.translateService.translateAsync(setting.title)];\n if (setting.description) {\n parts.push(await this.translateService.translateAsync(setting.description));\n }\n if (setting.searchTagKeys?.length) {\n for (const key of setting.searchTagKeys) {\n parts.push(await this.translateService.translateAsync(key));\n }\n }\n return parts.join(' ').toLowerCase();\n }),\n );\n\n const searchResults = allSettings.filter(\n (setting, i) =>\n !isSettingStaticallyHidden(setting) &&\n (translatedBlobs[i].includes(needle) || setting.name.toLowerCase().includes(needle)),\n );\n\n return sortBy(\n searchResults.map<AXPSearchResult>((setting) => ({\n title: setting.title,\n description: setting.description,\n group: 'setting',\n data: setting,\n command: {\n name: 'navigate',\n options: {\n type: 'router',\n options: {\n path: `/${this.sessionService.application?.name}/settings/user/${setting.group.name}#${setting.title}`,\n },\n }\n },\n parent: setting.group\n ? {\n title: setting.group.title,\n data: setting.group as AXPSettingDefinitionGroup,\n }\n : undefined,\n })),\n ['title']\n );\n }\n}\n","import { createUnsavedChangesCanDeactivateGuard } from '@acorex-platform/framework-client/common';\nimport { AXPSettingPageComponent } from './setting-page/setting-page.component';\n\n//#region ---- Settings Page Can Deactivate Guard ----\n\nexport const axpSettingsPageCanDeactivateGuard = createUnsavedChangesCanDeactivateGuard<AXPSettingPageComponent>();\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXP_UNAUTHORIZED_ROUTE } from '@acorex-platform/framework-client/common';\nimport { AXPApplicationsPlatformPermissionKeys } from '@acorex-platform/module-settings-management-client/contracts';\nimport { resolvePlatformScopeKey } from '@acorex-platform/framework-shared/core';\nimport { inject } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivateFn, Router, UrlTree } from '@angular/router';\nimport { first, map } from 'rxjs';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst SCOPE_PERMISSIONS: Record<string, string | null> = {\n P: AXPApplicationsPlatformPermissionKeys.MaintainPlatformSettings,\n T: AXPApplicationsPlatformPermissionKeys.MaintainTenantSettings,\n // Own user settings — always allowed once authenticated.\n U: null,\n};\n\n//#endregion\n\n//#region ----- Guard -----\n\n/**\n * Enforces settings-scope capabilities on direct URL navigation.\n * Menu visibility alone is not enough — hidden Platform Settings items are not\n * menu-matched, so {@link AXPMenuRouteGuard} would otherwise allow the route.\n */\nexport const axpSettingsScopeCanActivateGuard: CanActivateFn = (route: ActivatedRouteSnapshot) => {\n const sessionService = inject(AXPSessionService);\n const router = inject(Router);\n\n return sessionService.isAuthorizedWithLoading$.pipe(\n first(),\n map((): boolean | UrlTree => {\n const scopeParam = resolveScopeParam(route);\n const scopeKey = resolvePlatformScopeKey(scopeParam);\n const requiredPermission = SCOPE_PERMISSIONS[scopeKey];\n\n if (!requiredPermission) {\n return true;\n }\n\n if (sessionService.authorize(requiredPermission)) {\n return true;\n }\n\n return router.parseUrl(AXP_UNAUTHORIZED_ROUTE);\n }),\n );\n};\n\nfunction resolveScopeParam(route: ActivatedRouteSnapshot): string {\n let current: ActivatedRouteSnapshot | null = route;\n while (current) {\n const scope = current.paramMap.get('scope');\n if (scope) {\n return scope;\n }\n current = current.parent;\n }\n return '';\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { inject } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\nimport {\n AXPApplicationsPlatformPermissionKeys,\n AXPSettingsManagementMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-settings-management-client/contracts';\n\nexport class AXMMenuProvider implements AXPMenuProvider {\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const appName = this.sessionService.application?.name;\n\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n\n // Platform Settings — platform console only (not tenant admins).\n context.find(AXPCommonMenuKeys.Platform).addItems([\n {\n name: AXPSettingsManagementMenuKeys.PlatformSettings,\n priority: 999,\n text: '@settings-management:module.terms.scopes.platform.title',\n type: 'menu',\n icon: 'fa-light fa-gear',\n path: `/${appName}/settings/platform`,\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXPApplicationsPlatformPermissionKeys.MaintainPlatformSettings],\n },\n },\n ]);\n\n // Tenant Settings — under Administration; own user settings are profile-only (no menu policy).\n context.find(AXPCommonMenuKeys.Administration).addItems([\n { name: `${AXPSettingsManagementMenuKeys.TenantApplicationSettings}:divider`, text: '', type: 'break', priority: 998 },\n {\n name: AXPSettingsManagementMenuKeys.TenantApplicationSettings,\n priority: 999,\n text: '@settings-management:module.terms.scopes.tenant.title',\n type: 'menu',\n icon: 'fa-light fa-gear',\n path: `/${appName}/settings/tenant`,\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXPApplicationsPlatformPermissionKeys.MaintainTenantSettings],\n },\n },\n ]);\n }\n}\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPApplicationsPlatformPermissionKeys\n} from '@acorex-platform/module-settings-management-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers tenant settings under Administration and platform settings under\n * Applications & Platform. Own user settings are not registered — always available\n * to the signed-in user.\n */\n@Injectable()\nexport class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPApplicationsPlatformPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:applications-platform.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.Administration.Root, `${G}.administration.title`, `${G}.administration.description`, {\n order: 120,\n });\n context.addGroup(groups.ApplicationsPlatform.Root, `${G}.applications-platform.title`, `${G}.applications-platform.description`, {\n order: 110,\n });\n\n context\n .addGroup(\n groups.Administration.Settings,\n `${G}.administration-settings.title`,\n `${G}.administration-settings.description`,\n { parent: groups.Administration.Root, order: 15 },\n )\n .addPermission(keys.MaintainTenantSettings, `${P}.maintain-tenant-settings.title`, `${P}.maintain-tenant-settings.description`, {\n modules: ['SettingsManagement'],\n })\n .endPermission()\n .endGroup();\n\n context\n .addGroup(\n groups.ApplicationsPlatform.Configuration,\n `${G}.applications-platform-configuration.title`,\n `${G}.applications-platform-configuration.description`,\n { parent: groups.ApplicationsPlatform.Root, order: 30 },\n )\n .addPermission(keys.MaintainPlatformSettings, `${P}.maintain-platform-settings.title`, `${P}.maintain-platform-settings.description`, {\n modules: ['PlatformManagement'],\n requiredFeatures: ['PlatformManagement'],\n })\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXMSettingsManagementCommandKeys } from '@acorex-platform/module-settings-management-client/contracts';\r\nimport { inject } from '@angular/core';\r\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\r\nimport { AXPHookProvider } from '@acorex-platform/framework-client/core';\r\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\r\n\r\n//#region ---- Types ----\r\n\r\ntype ProfileSectionsPayload = {\r\n sections: Record<string, unknown>[];\r\n groupId?: string;\r\n};\r\n\r\n//#endregion\r\n\r\n//#region ---- Settings management profile sections ----\r\n\r\n/** Contributes settings-related sections to the user profile hub. */\r\nexport const SettingsManagementProfileSectionsHookProvider: AXPHookProvider<\r\n ProfileSectionsPayload,\r\n ProfileSectionsPayload\r\n> = {\r\n key: 'profile-page.sections',\r\n priority: 10,\r\n execute: (payload) => {\r\n if (payload.groupId && payload.groupId !== 'account') {\r\n return payload;\r\n }\r\n\r\n const commandService = inject(AXPCommandService);\r\n const sessionService = inject(AXPSessionService);\r\n const appName = sessionService.application?.name;\r\n\r\n const sections: Record<string, unknown>[] = [];\r\n\r\n if (commandService.exists(AXMSettingsManagementCommandKeys.Client.Export)) {\r\n sections.push({\r\n id: 'export-data',\r\n groupId: 'account',\r\n title: '@settings-management:profile-page.sections.export-data.title',\r\n description: '@settings-management:profile-page.sections.export-data.description',\r\n icon: 'far fa-file-export',\r\n priority: 30,\r\n layout: { colSpan: 6 },\r\n actions: [\r\n {\r\n name: 'export-local-data',\r\n title: '@settings-management:profile-page.sections.export-data.actions.manage',\r\n icon: 'far fa-download',\r\n command: { name: AXMSettingsManagementCommandKeys.Client.Export },\r\n },\r\n ],\r\n });\r\n }\r\n\r\n if (appName) {\r\n sections.push({\r\n id: 'all-preferences',\r\n groupId: 'account',\r\n title: '@settings-management:profile-page.sections.all-preferences.title',\r\n description: '@settings-management:profile-page.sections.all-preferences.description',\r\n icon: 'far fa-sliders',\r\n priority: 40,\r\n layout: { colSpan: 6 },\r\n actions: [\r\n {\r\n name: 'view-all-preferences',\r\n title: '@settings-management:profile-page.sections.all-preferences.actions.manage',\r\n icon: 'far fa-arrow-right',\r\n command: {\r\n name: 'navigate',\r\n options: { path: `/${appName}/settings/user` },\r\n },\r\n },\r\n ],\r\n });\r\n }\r\n\r\n if (!sections.length) {\r\n return payload;\r\n }\r\n\r\n return {\r\n ...payload,\r\n sections: [...payload.sections, ...sections],\r\n };\r\n },\r\n};\r\n\r\n//#endregion\r\n","import { AXPActionMenuItem } from '@acorex-platform/framework-shared/core';\r\nimport { inject } from '@angular/core';\r\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\r\nimport { AXPHookProvider } from '@acorex-platform/framework-client/core';\r\n\r\n//#region ---- Profile slot settings menu hook ----\r\n\r\n/** Registers the user settings entry in the profile dropdown (always available; no permission). */\r\nexport const ProfileSlotSettingsMenuHookProvider: AXPHookProvider<\r\n { items: AXPActionMenuItem[] },\r\n { items: AXPActionMenuItem[] }\r\n> = {\r\n key: 'profile-slot.menu-items',\r\n priority: 0,\r\n execute: (payload) => {\r\n const sessionService = inject(AXPSessionService);\r\n const appName = sessionService.application?.name;\r\n\r\n if (!appName) {\r\n return payload;\r\n }\r\n\r\n return {\r\n ...payload,\r\n items: [\r\n ...payload.items,\r\n {\r\n name: 'settings',\r\n title: '@auth:profile.settings',\r\n icon: 'fa-light fa-gear',\r\n shortcuts: [{ keys: 'ctrl+shift+u', allowInEditableFields: true }],\r\n command: {\r\n name: 'navigate',\r\n options: {\r\n path: `/${appName}/settings/user`,\r\n },\r\n },\r\n } satisfies AXPActionMenuItem,\r\n ],\r\n };\r\n },\r\n};\r\n\r\n//#endregion\r\n","import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\r\nimport {\r\n AXP_MENU_PROVIDER,\r\n AXP_PROTECTED_ROUTE_GUARDS,\r\n AXP_SEARCH_DEFINITION_PROVIDER,\r\n AXP_SEARCH_PROVIDER,\r\n AXP_SETTINGS_SYNC_KEYS,\r\n AXPPlatformSettingsLoadState,\r\n AXPPlatformSettingsOfflineBootstrapService,\r\n AXPSettingsService,\r\n traceSettingsAppStartupLoadComplete,\r\n traceSettingsAppStartupLoadStarted,\r\n} from '@acorex-platform/framework-client/common';\r\nimport {\r\n AXPAppStartUpService,\r\n AXP_APP_STARTUP_PRIORITY,\r\n AXP_HOOK_PROVIDER,\r\n} from '@acorex-platform/framework-client/core';\r\nimport { AXPRootLayoutComponent } from '@acorex-platform/framework-client/themes/default';\r\nimport { NgModule } from '@angular/core';\r\nimport { Routes, ROUTES } from '@angular/router';\r\nimport { AXPSettingSearchDefinitionProvider } from './features/settings/search-definition.provider';\r\nimport { AXPSettingSearchProvider } from './features/settings/search.provider';\r\nimport { axpSettingsPageCanDeactivateGuard } from './features/settings/settings-page-can-deactivate.guard';\r\nimport { axpSettingsScopeCanActivateGuard } from './features/settings/settings-scope.guard';\r\nimport { AXMMenuProvider } from './menu.provider';\r\nimport { AXMPermissionDefinitionProvider } from './permission-definition.provider';\r\nimport { SettingsManagementProfileSectionsHookProvider } from './features/profile-page/settings-management-profile-sections.hook';\r\nimport { ProfileSlotSettingsMenuHookProvider } from './profile-slot-settings-menu.hook';\r\nimport { axmSettingsSyncKeys } from '@acorex-platform/module-settings-management-client/contracts';\r\nimport { AXCRuntimeRemoteApiModule } from '@acorex-platform/client-connectivity-api';\r\n\r\n//#region ----- Constants -----\r\n\r\nconst PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS = 5;\r\nconst PLATFORM_SETTINGS_STARTUP_RETRY_DELAY_MS = 2_000;\r\n\r\n//#endregion\r\n\r\nfunction sleep(ms: number): Promise<void> {\r\n return new Promise((resolve) => setTimeout(resolve, ms));\r\n}\r\n\r\nasync function loadPlatformSettingsWithRetry(\r\n settingsService: AXPSettingsService,\r\n offlineBootstrap: AXPPlatformSettingsOfflineBootstrapService,\r\n): Promise<void> {\r\n // Device offline — skip retries and go straight to offline / unavailable handling.\r\n if (offlineBootstrap.isDeviceOffline()) {\r\n throw new Error('Device is offline');\r\n }\r\n\r\n let lastError: unknown;\r\n for (let attempt = 1; attempt <= PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS; attempt++) {\r\n try {\r\n await settingsService.ensurePlatformSettingsLoaded();\r\n return;\r\n } catch (error) {\r\n lastError = error;\r\n console.error(\r\n `Platform settings bootstrap failed (attempt ${attempt}/${PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS})`,\r\n error,\r\n );\r\n if (offlineBootstrap.isDeviceOffline()) {\r\n throw error;\r\n }\r\n if (attempt < PLATFORM_SETTINGS_STARTUP_MAX_ATTEMPTS) {\r\n await sleep(PLATFORM_SETTINGS_STARTUP_RETRY_DELAY_MS);\r\n }\r\n }\r\n }\r\n throw lastError;\r\n}\r\n\r\nfunction routesFacory() {\r\n let routes: Routes = [\r\n {\r\n path: ':app/settings/:scope',\r\n canActivate: [...AXP_PROTECTED_ROUTE_GUARDS, axpSettingsScopeCanActivateGuard],\r\n data: { tab: true, rootLayout: true },\r\n loadComponent: () => {\r\n return AXPRootLayoutComponent;\r\n },\r\n children: [\r\n {\r\n path: '',\r\n loadComponent: () =>\r\n import('./features/settings/setting-page/setting-page.component').then((c) => c.AXPSettingPageComponent),\r\n canDeactivate: [axpSettingsPageCanDeactivateGuard],\r\n data: { reuse: true },\r\n children: [\r\n {\r\n path: ':group',\r\n loadComponent: () =>\r\n import('./features/settings/setting-view/setting-view.component').then(\r\n (c) => c.AXPSettingsViewComponent,\r\n ),\r\n data: { reuse: false },\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n ];\r\n return routes;\r\n}\r\n\r\n@NgModule({\r\n imports: [AXCRuntimeRemoteApiModule],\r\n exports: [],\r\n declarations: [],\r\n providers: [\r\n {\r\n provide: AXP_SETTINGS_SYNC_KEYS,\r\n useValue: axmSettingsSyncKeys,\r\n },\r\n {\r\n provide: AXP_SEARCH_PROVIDER,\r\n useClass: AXPSettingSearchProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_SEARCH_DEFINITION_PROVIDER,\r\n useClass: AXPSettingSearchDefinitionProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: ROUTES,\r\n multi: true,\r\n useFactory: routesFacory,\r\n },\r\n {\r\n provide: AXP_MENU_PROVIDER,\r\n useClass: AXMMenuProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\r\n useClass: AXMPermissionDefinitionProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_HOOK_PROVIDER,\r\n useValue: ProfileSlotSettingsMenuHookProvider,\r\n multi: true,\r\n },\r\n {\r\n provide: AXP_HOOK_PROVIDER,\r\n useValue: SettingsManagementProfileSectionsHookProvider,\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class AXMSettingsManagementModule {\r\n constructor(\r\n appInitService: AXPAppStartUpService,\r\n settingsService: AXPSettingsService,\r\n platformSettingsLoadState: AXPPlatformSettingsLoadState,\r\n offlineBootstrap: AXPPlatformSettingsOfflineBootstrapService,\r\n ) {\r\n appInitService.registerTask({\r\n name: 'platform-settings',\r\n priority: AXP_APP_STARTUP_PRIORITY.platformSettings,\r\n run: async () => {\r\n try {\r\n await loadPlatformSettingsWithRetry(settingsService, offlineBootstrap);\r\n platformSettingsLoadState.clear();\r\n } catch (error) {\r\n console.error('Platform settings bootstrap failed after retries', error);\r\n // Never open dialogs here (APP_INITIALIZER — overlay host is null).\r\n // Only inspect IndexedDB; confirm runs later after the app is stable.\r\n let canOfferOffline = false;\r\n try {\r\n canOfferOffline = await offlineBootstrap.canOfferOfflineContinue();\r\n } catch (offlineError) {\r\n console.error('Offline continue cache check failed', offlineError);\r\n }\r\n if (canOfferOffline) {\r\n platformSettingsLoadState.setPendingOfflineContinue(error);\r\n } else {\r\n platformSettingsLoadState.setFailure(error);\r\n }\r\n // Keep only platform-settings-failure-redirect; skip Settings/regional/theme (they hang on API).\r\n appInitService.abortRemainingStartupTasks();\r\n }\r\n },\r\n });\r\n\r\n appInitService.registerTask({\r\n name: 'Settings',\r\n statusText: '@settings-management:app-startup.loading-settings',\r\n priority: AXP_APP_STARTUP_PRIORITY.settings,\r\n run: async () => {\r\n if (\r\n platformSettingsLoadState.hasFailure() ||\r\n platformSettingsLoadState.hasPendingOfflineContinue() ||\r\n platformSettingsLoadState.isOfflineMode()\r\n ) {\r\n return;\r\n }\r\n traceSettingsAppStartupLoadStarted();\r\n const startedAt = Date.now();\r\n const settings = await settingsService.load('app-startup');\r\n traceSettingsAppStartupLoadComplete({\r\n totalKeys: settings.length,\r\n keysByScope: {},\r\n durationMs: Date.now() - startedAt,\r\n });\r\n },\r\n });\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMA;AACM,SAAU,yBAAyB,CAAC,OAA6B,EAAA;IACrE,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC,KAAK,KAAK;AACzD;AAEM,SAAU,iCAAiC,CAAC,QAAgC,EAAA;AAChF,IAAA,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;AAC1E;AAEM,SAAU,iCAAiC,CAAC,OAAoC,EAAA;IACpF,OAAO,iCAAiC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC;AACvE;AAEA;AACM,SAAU,+BAA+B,CAAC,MAAmC,EAAA;AACjF,IAAA,OAAO;AACJ,SAAA,GAAG,CAAC,CAAC,KAAK,MAAM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Manage application, tenant, and user settings",
|
|
5
|
+
"menus": {
|
|
6
|
+
"root": {
|
|
7
|
+
"title": "Settings",
|
|
8
|
+
"description": "Application settings"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"terms": {
|
|
12
|
+
"scopes": {
|
|
13
|
+
"user": {
|
|
14
|
+
"title": "Preferences",
|
|
15
|
+
"description": "Customize your personal preferences and account-specific settings."
|
|
16
|
+
},
|
|
17
|
+
"tenant": {
|
|
18
|
+
"title": "Settings",
|
|
19
|
+
"description": "Set up and manage settings specific to your organization or tenant."
|
|
20
|
+
},
|
|
21
|
+
"platform": {
|
|
22
|
+
"title": "Platform Settings",
|
|
23
|
+
"description": "Configure global settings that apply across the entire platform."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"permissions": {
|
|
28
|
+
"title": "Settings Management",
|
|
29
|
+
"description": "Manage all settings"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"settings": {
|
|
33
|
+
"components": {
|
|
34
|
+
"search": {
|
|
35
|
+
"title": "Find a Setting",
|
|
36
|
+
"placeholder": "Search...",
|
|
37
|
+
"description": "Search for a setting by name or description.",
|
|
38
|
+
"empty-states": {
|
|
39
|
+
"not-found": {
|
|
40
|
+
"title": "No Search Results Found!",
|
|
41
|
+
"description": "Try different keywords or browse settings by category."
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"actions": {
|
|
47
|
+
"restore-defaults": {
|
|
48
|
+
"title": "Restore Defaults",
|
|
49
|
+
"description": "Restore all settings to their default values",
|
|
50
|
+
"confirm": {
|
|
51
|
+
"title": "Restore Defaults",
|
|
52
|
+
"message": "Are you sure you want to restore all settings to their default values? This action cannot be undone."
|
|
53
|
+
},
|
|
54
|
+
"error": {
|
|
55
|
+
"title": "Restore Failed",
|
|
56
|
+
"message": "Failed to restore settings to their default values. Please try again."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"client-reset": {
|
|
60
|
+
"title": "Reset Local Data",
|
|
61
|
+
"description": "Clear all local data and reload the application",
|
|
62
|
+
"confirm": {
|
|
63
|
+
"title": "Reset Local Data",
|
|
64
|
+
"message": "This will clear localStorage, sessionStorage, cookies, and IndexedDB, then reload the app. Continue?"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"client-export": {
|
|
68
|
+
"title": "Export Local Data",
|
|
69
|
+
"description": "Export local data to a file"
|
|
70
|
+
},
|
|
71
|
+
"client-import": {
|
|
72
|
+
"title": "Import Local Data",
|
|
73
|
+
"description": "Import local data from a file",
|
|
74
|
+
"confirm": {
|
|
75
|
+
"title": "Import Local Data",
|
|
76
|
+
"message": "This will overwrite local data (localStorage and IndexedDB) with the imported file. Continue?"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"apply": {
|
|
80
|
+
"title": "Apply",
|
|
81
|
+
"description": "Apply settings changes",
|
|
82
|
+
"success": {
|
|
83
|
+
"title": "Settings Applied",
|
|
84
|
+
"message": "Your settings have been successfully applied."
|
|
85
|
+
},
|
|
86
|
+
"reload": {
|
|
87
|
+
"success": {
|
|
88
|
+
"title": "Settings Applied",
|
|
89
|
+
"message": "Your settings were saved. The page will reload to apply them."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"error": {
|
|
93
|
+
"title": "Apply Failed",
|
|
94
|
+
"message": "Failed to apply your settings. Please try again."
|
|
95
|
+
},
|
|
96
|
+
"invalid": {
|
|
97
|
+
"title": "Review Needed",
|
|
98
|
+
"message": "Invalid configuration detected. Please review your inputs."
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"user-settings": {
|
|
104
|
+
"permissions": {
|
|
105
|
+
"manage": {
|
|
106
|
+
"title": "User Settings Management",
|
|
107
|
+
"description": "Manage user-level settings"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"tenant-settings": {
|
|
112
|
+
"permissions": {
|
|
113
|
+
"manage": {
|
|
114
|
+
"title": "Tenant Settings Management",
|
|
115
|
+
"description": "Manage tenant-level settings"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"platform-settings": {
|
|
120
|
+
"permissions": {
|
|
121
|
+
"manage": {
|
|
122
|
+
"title": "Platform Settings Management",
|
|
123
|
+
"description": "Manage platform-wide settings"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"app-startup": {
|
|
128
|
+
"loading-settings": "Loading settings..."
|
|
129
|
+
},
|
|
130
|
+
"profile-page": {
|
|
131
|
+
"sections": {
|
|
132
|
+
"export-data": {
|
|
133
|
+
"title": "Export Local Data",
|
|
134
|
+
"description": "Download localStorage and IndexedDB content as a JSON file.",
|
|
135
|
+
"actions": {
|
|
136
|
+
"manage": "Export Data"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"all-preferences": {
|
|
140
|
+
"title": "All Preferences",
|
|
141
|
+
"description": "Browse every personal setting in one place.",
|
|
142
|
+
"actions": {
|
|
143
|
+
"manage": "View All Settings"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": {
|
|
3
|
+
"title": "Settings Management",
|
|
4
|
+
"description": "Manage application, tenant, and user settings",
|
|
5
|
+
"menus": {
|
|
6
|
+
"root": {
|
|
7
|
+
"title": "Settings",
|
|
8
|
+
"description": "Application settings"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"terms": {
|
|
12
|
+
"scopes": {
|
|
13
|
+
"user": {
|
|
14
|
+
"title": "Preferences",
|
|
15
|
+
"description": "Customize your personal preferences and account-specific settings."
|
|
16
|
+
},
|
|
17
|
+
"tenant": {
|
|
18
|
+
"title": "Settings",
|
|
19
|
+
"description": "Set up and manage settings specific to your organization or tenant."
|
|
20
|
+
},
|
|
21
|
+
"platform": {
|
|
22
|
+
"title": "Platform Settings",
|
|
23
|
+
"description": "Configure global settings that apply across the entire platform."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"permissions": {
|
|
28
|
+
"title": "Settings Management",
|
|
29
|
+
"description": "Manage all settings"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"settings": {
|
|
33
|
+
"components": {
|
|
34
|
+
"search": {
|
|
35
|
+
"title": "Find a Setting",
|
|
36
|
+
"placeholder": "Search...",
|
|
37
|
+
"description": "Search for a setting by name or description.",
|
|
38
|
+
"empty-states": {
|
|
39
|
+
"not-found": {
|
|
40
|
+
"title": "No Search Results Found!",
|
|
41
|
+
"description": "Try different keywords or browse settings by category."
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"actions": {
|
|
47
|
+
"restore-defaults": {
|
|
48
|
+
"title": "Restore Defaults",
|
|
49
|
+
"description": "Restore all settings to their default values",
|
|
50
|
+
"confirm": {
|
|
51
|
+
"title": "Restore Defaults",
|
|
52
|
+
"message": "Are you sure you want to restore all settings to their default values? This action cannot be undone."
|
|
53
|
+
},
|
|
54
|
+
"error": {
|
|
55
|
+
"title": "Restore Failed",
|
|
56
|
+
"message": "Failed to restore settings to their default values. Please try again."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"client-reset": {
|
|
60
|
+
"title": "Reset Local Data",
|
|
61
|
+
"description": "Clear all local data and reload the application",
|
|
62
|
+
"confirm": {
|
|
63
|
+
"title": "Reset Local Data",
|
|
64
|
+
"message": "This will clear localStorage, sessionStorage, cookies, and IndexedDB, then reload the app. Continue?"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"client-export": {
|
|
68
|
+
"title": "Export Local Data",
|
|
69
|
+
"description": "Export local data to a file"
|
|
70
|
+
},
|
|
71
|
+
"client-import": {
|
|
72
|
+
"title": "Import Local Data",
|
|
73
|
+
"description": "Import local data from a file",
|
|
74
|
+
"confirm": {
|
|
75
|
+
"title": "Import Local Data",
|
|
76
|
+
"message": "This will overwrite local data (localStorage and IndexedDB) with the imported file. Continue?"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"apply": {
|
|
80
|
+
"title": "Apply",
|
|
81
|
+
"description": "Apply settings changes",
|
|
82
|
+
"success": {
|
|
83
|
+
"title": "Settings Applied",
|
|
84
|
+
"message": "Your settings have been successfully applied."
|
|
85
|
+
},
|
|
86
|
+
"reload": {
|
|
87
|
+
"success": {
|
|
88
|
+
"title": "Settings Applied",
|
|
89
|
+
"message": "Your settings were saved. The page will reload to apply them."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"error": {
|
|
93
|
+
"title": "Apply Failed",
|
|
94
|
+
"message": "Failed to apply your settings. Please try again."
|
|
95
|
+
},
|
|
96
|
+
"invalid": {
|
|
97
|
+
"title": "Review Needed",
|
|
98
|
+
"message": "Invalid configuration detected. Please review your inputs."
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"user-settings": {
|
|
104
|
+
"permissions": {
|
|
105
|
+
"manage": {
|
|
106
|
+
"title": "User Settings Management",
|
|
107
|
+
"description": "Manage user-level settings"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"tenant-settings": {
|
|
112
|
+
"permissions": {
|
|
113
|
+
"manage": {
|
|
114
|
+
"title": "Tenant Settings Management",
|
|
115
|
+
"description": "Manage tenant-level settings"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"platform-settings": {
|
|
120
|
+
"permissions": {
|
|
121
|
+
"manage": {
|
|
122
|
+
"title": "Platform Settings Management",
|
|
123
|
+
"description": "Manage platform-wide settings"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"app-startup": {
|
|
128
|
+
"loading-settings": "Loading settings..."
|
|
129
|
+
},
|
|
130
|
+
"profile-page": {
|
|
131
|
+
"sections": {
|
|
132
|
+
"export-data": {
|
|
133
|
+
"title": "Export Local Data",
|
|
134
|
+
"description": "Download localStorage and IndexedDB content as a JSON file.",
|
|
135
|
+
"actions": {
|
|
136
|
+
"manage": "Export Data"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"all-preferences": {
|
|
140
|
+
"title": "All Preferences",
|
|
141
|
+
"description": "Browse every personal setting in one place.",
|
|
142
|
+
"actions": {
|
|
143
|
+
"manage": "View All Settings"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": {
|
|
3
|
+
"title": "مدیریت تنظیمات",
|
|
4
|
+
"description": "مدیریت تنظیمات برنامه، مستاجر و کاربر",
|
|
5
|
+
"menus": {
|
|
6
|
+
"root": {
|
|
7
|
+
"title": "تنظیمات",
|
|
8
|
+
"description": "تنظیمات برنامه"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"terms": {
|
|
12
|
+
"scopes": {
|
|
13
|
+
"user": {
|
|
14
|
+
"title": "تنظیمات کاربری",
|
|
15
|
+
"description": "ترجیحات شخصی و تنظیمات مخصوص حساب خود را سفارشی کنید."
|
|
16
|
+
},
|
|
17
|
+
"tenant": {
|
|
18
|
+
"title": "تنظیمات",
|
|
19
|
+
"description": "تنظیم و مدیریت تنظیمات مخصوص سازمان یا مستاجر شما."
|
|
20
|
+
},
|
|
21
|
+
"platform": {
|
|
22
|
+
"title": "تنظیمات پلتفرم",
|
|
23
|
+
"description": "پیکربندی تنظیمات سراسری که در کل پلتفرم اعمال میشود."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"permissions": {
|
|
28
|
+
"title": "مدیریت تنظیمات",
|
|
29
|
+
"description": "مدیریت کلیه تنظیمات"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"settings": {
|
|
33
|
+
"components": {
|
|
34
|
+
"search": {
|
|
35
|
+
"title": "یافتن یک تنظیم",
|
|
36
|
+
"placeholder": "جستجو...",
|
|
37
|
+
"description": "جستجوی یک تنظیم بر اساس نام یا توضیحات.",
|
|
38
|
+
"empty-states": {
|
|
39
|
+
"not-found": {
|
|
40
|
+
"title": "هیچ نتیجهای یافت نشد!",
|
|
41
|
+
"description": "کلمات کلیدی دیگری امتحان کنید یا تنظیمات را بر اساس دستهبندی مرور کنید."
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"actions": {
|
|
47
|
+
"restore-defaults": {
|
|
48
|
+
"title": "بازگردانی پیشفرضها",
|
|
49
|
+
"description": "بازگردانی همه تنظیمات به مقادیر پیشفرض",
|
|
50
|
+
"confirm": {
|
|
51
|
+
"title": "بازگردانی پیشفرضها",
|
|
52
|
+
"message": "آیا مطمئنید میخواهید همه تنظیمات را به مقادیر پیشفرض بازگردانید؟ این عمل غیرقابل بازگشت است."
|
|
53
|
+
},
|
|
54
|
+
"error": {
|
|
55
|
+
"title": "بازگردانی ناموفق",
|
|
56
|
+
"message": "بازگردانی تنظیمات به مقادیر پیشفرض انجام نشد. لطفاً دوباره تلاش کنید."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"client-reset": {
|
|
60
|
+
"title": "بازنشانی داده محلی",
|
|
61
|
+
"description": "پاک کردن همه دادههای محلی و بارگذاری مجدد برنامه",
|
|
62
|
+
"confirm": {
|
|
63
|
+
"title": "بازنشانی داده محلی",
|
|
64
|
+
"message": "این کار localStorage، sessionStorage، کوکیها و IndexedDB را پاک کرده و برنامه را مجدداً بارگذاری میکند. ادامه میدهید؟"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"client-export": {
|
|
68
|
+
"title": "برونبری داده محلی",
|
|
69
|
+
"description": "برونبری داده محلی به فایل"
|
|
70
|
+
},
|
|
71
|
+
"client-import": {
|
|
72
|
+
"title": "درونریزی داده محلی",
|
|
73
|
+
"description": "درونریزی داده محلی از فایل",
|
|
74
|
+
"confirm": {
|
|
75
|
+
"title": "درونریزی داده محلی",
|
|
76
|
+
"message": "این کار دادههای محلی (localStorage و IndexedDB) را با فایل واردشده بازنویسی میکند. ادامه میدهید؟"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"apply": {
|
|
80
|
+
"title": "اعمال",
|
|
81
|
+
"description": "اعمال تغییرات تنظیمات",
|
|
82
|
+
"success": {
|
|
83
|
+
"title": "تنظیمات اعمال شد",
|
|
84
|
+
"message": "تنظیمات شما با موفقیت اعمال شد."
|
|
85
|
+
},
|
|
86
|
+
"reload": {
|
|
87
|
+
"success": {
|
|
88
|
+
"title": "تنظیمات اعمال شد",
|
|
89
|
+
"message": "تنظیمات ذخیره شد. برای اعمال، صفحه دوباره بارگذاری میشود."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"error": {
|
|
93
|
+
"title": "اعمال ناموفق",
|
|
94
|
+
"message": "اعمال تنظیمات شما انجام نشد. لطفاً دوباره تلاش کنید."
|
|
95
|
+
},
|
|
96
|
+
"invalid": {
|
|
97
|
+
"title": "نیاز به بررسی",
|
|
98
|
+
"message": "پیکربندی نامعتبر شناسایی شد. لطفاً ورودیهای خود را بررسی کنید."
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"user-settings": {
|
|
104
|
+
"permissions": {
|
|
105
|
+
"manage": {
|
|
106
|
+
"title": "مدیریت تنظیمات کاربری",
|
|
107
|
+
"description": "مدیریت تنظیمات سطح کاربر"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"tenant-settings": {
|
|
112
|
+
"permissions": {
|
|
113
|
+
"manage": {
|
|
114
|
+
"title": "مدیریت تنظیمات سازمانی",
|
|
115
|
+
"description": "مدیریت تنظیمات سطح سازمان"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"platform-settings": {
|
|
120
|
+
"permissions": {
|
|
121
|
+
"manage": {
|
|
122
|
+
"title": "مدیریت تنظیمات پلتفرم",
|
|
123
|
+
"description": "مدیریت تنظیمات سراسری پلتفرم"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"app-startup": {
|
|
128
|
+
"loading-settings": "در حال بارگذاری تنظیمات..."
|
|
129
|
+
},
|
|
130
|
+
"profile-page": {
|
|
131
|
+
"sections": {
|
|
132
|
+
"export-data": {
|
|
133
|
+
"title": "برونبری داده محلی",
|
|
134
|
+
"description": "محتوای localStorage و IndexedDB را بهصورت فایل JSON دانلود کنید.",
|
|
135
|
+
"actions": {
|
|
136
|
+
"manage": "برونبری داده"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"all-preferences": {
|
|
140
|
+
"title": "همه ترجیحات",
|
|
141
|
+
"description": "همه تنظیمات شخصی را در یک جا ببینید.",
|
|
142
|
+
"actions": {
|
|
143
|
+
"manage": "مشاهده همه تنظیمات"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-settings-management-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0 || ^22.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@acorex-platform/client-connectivity-api": "0.0.
|
|
10
|
+
"@acorex-platform/client-connectivity-api": "0.0.56",
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"module": "fesm2022/acorex-platform-module-settings-management-client.mjs",
|