@acorex/platform 19.2.3 → 19.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/common/lib/search/search-definition.builder.d.ts +1 -1
  2. package/common/lib/search/search-definition.provider.d.ts +1 -0
  3. package/common/lib/search/search.types.d.ts +1 -0
  4. package/core/lib/types.d.ts +2 -2
  5. package/fesm2022/acorex-platform-common.mjs +12 -20
  6. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  8. package/fesm2022/acorex-platform-layout-builder.mjs +23 -7
  9. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-layout-entity.mjs +39 -64
  11. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-layout-setting.mjs +1 -1
  13. package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
  14. package/fesm2022/{acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs → acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs} +3 -3
  15. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs.map +1 -0
  16. package/fesm2022/acorex-platform-themes-default.mjs +1 -1
  17. package/fesm2022/acorex-platform-widgets.mjs +1215 -38
  18. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  19. package/layout/builder/lib/builder/widget-groups.d.ts +2 -1
  20. package/layout/builder/lib/builder/widget-map.d.ts +9 -0
  21. package/layout/builder/lib/builder/widget.types.d.ts +1 -1
  22. package/package.json +5 -5
  23. package/widgets/lib/properties/groups.d.ts +2 -1
  24. package/widgets/lib/properties/validation.props.d.ts +10 -0
  25. package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -0
  26. package/widgets/lib/widgets/editors/text/text-box-widget-edit.component.d.ts +1 -0
  27. package/widgets/lib/widgets/filters/boolean-filter/boolean-filter-widget-edit.component.d.ts +1 -0
  28. package/widgets/lib/widgets/index.d.ts +9 -0
  29. package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget-designer.component.d.ts +0 -1
  30. package/widgets/lib/widgets/validations/base-validation/base-validation.component.d.ts +13 -0
  31. package/widgets/lib/widgets/validations/base-validation/base-validation.d.ts +8 -0
  32. package/widgets/lib/widgets/validations/between-validation/between-validation-widget-edit.component.d.ts +25 -0
  33. package/widgets/lib/widgets/validations/between-validation/between-validation-widget.config.d.ts +7 -0
  34. package/widgets/lib/widgets/validations/between-validation/index.d.ts +2 -0
  35. package/widgets/lib/widgets/validations/callback-validation/callback-validation-widget-edit.component.d.ts +23 -0
  36. package/widgets/lib/widgets/validations/callback-validation/callback-validation-widget.config.d.ts +7 -0
  37. package/widgets/lib/widgets/validations/callback-validation/index.d.ts +2 -0
  38. package/widgets/lib/widgets/validations/equal-validation/equal-validation-widget-edit.component.d.ts +23 -0
  39. package/widgets/lib/widgets/validations/equal-validation/equal-validation-widget.config.d.ts +7 -0
  40. package/widgets/lib/widgets/validations/equal-validation/index.d.ts +2 -0
  41. package/widgets/lib/widgets/validations/greater-than-validation/greater-than-validation-widget-edit.component.d.ts +24 -0
  42. package/widgets/lib/widgets/validations/greater-than-validation/greater-than-validation-widget.config.d.ts +7 -0
  43. package/widgets/lib/widgets/validations/greater-than-validation/index.d.ts +2 -0
  44. package/widgets/lib/widgets/validations/less-than-validation/index.d.ts +2 -0
  45. package/widgets/lib/widgets/validations/less-than-validation/less-than-validation-widget-edit.component.d.ts +24 -0
  46. package/widgets/lib/widgets/validations/less-than-validation/less-than-validation-widget.config.d.ts +7 -0
  47. package/widgets/lib/widgets/validations/max-length-validation/index.d.ts +2 -0
  48. package/widgets/lib/widgets/validations/max-length-validation/max-length-validation-widget-edit.component.d.ts +23 -0
  49. package/widgets/lib/widgets/validations/max-length-validation/max-length-validation-widget.config.d.ts +7 -0
  50. package/widgets/lib/widgets/validations/min-length-validation/index.d.ts +2 -0
  51. package/widgets/lib/widgets/validations/min-length-validation/min-length-validation-widget-edit.component.d.ts +23 -0
  52. package/widgets/lib/widgets/validations/min-length-validation/min-length-validation-widget.config.d.ts +7 -0
  53. package/widgets/lib/widgets/validations/regular-expression-validation/index.d.ts +2 -0
  54. package/widgets/lib/widgets/validations/regular-expression-validation/regular-expression-validation-widget-edit.component.d.ts +23 -0
  55. package/widgets/lib/widgets/validations/regular-expression-validation/regular-expression-validation-widget.config.d.ts +7 -0
  56. package/widgets/lib/widgets/validations/required-validation/index.d.ts +2 -0
  57. package/widgets/lib/widgets/validations/required-validation/required-validation-widget-edit.component.d.ts +21 -0
  58. package/widgets/lib/widgets/validations/required-validation/required-validation-widget.config.d.ts +7 -0
  59. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs.map +0 -1
@@ -409,7 +409,7 @@ class AXPSettingSearchProvider {
409
409
 
410
410
  class AXPSettingSearchDefinitionProvider {
411
411
  async provide(context) {
412
- context.addDefinition('setting', 'Setting', 'fa-solid fa-gear', 3, {
412
+ context.addDefinition('setting', 'Setting', 'setting', 'fa-solid fa-gear', 3, {
413
413
  format: {
414
414
  id: '{{data.name}}',
415
415
  },
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-layout-setting.mjs","sources":["../../../../libs/platform/layout/setting/src/lib/convert-setting-data.ts","../../../../libs/platform/layout/setting/src/lib/setting.viewmodel.ts","../../../../libs/platform/layout/setting/src/lib/search.provider.ts","../../../../libs/platform/layout/setting/src/lib/search-definition.provider.ts","../../../../libs/platform/layout/setting/src/lib/settings.module.ts","../../../../libs/platform/layout/setting/src/acorex-platform-layout-setting.ts"],"sourcesContent":["import { AXPSettingDefinitionGroup, AXPSettingDefinitionSection } from '@acorex/platform/common';\n\n\nexport function searchSettings(groups: AXPSettingDefinitionGroup[], search: string): AXPSettingDefinitionGroup[] {\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 section.name.toLowerCase().includes(search.toLowerCase()) ||\n section.title.toLowerCase().includes(search.toLowerCase());\n\n const filterSettings = (section: AXPSettingDefinitionSection): AXPSettingDefinitionSection | null => {\n const matchedSettings = section.settings.filter(\n (setting) =>\n setting.name.toLowerCase().includes(search.toLowerCase()) ||\n setting.title.toLowerCase().includes(search.toLowerCase())\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 { AXDialogService } from '@acorex/components/dialog';\nimport { AXFormComponent } from '@acorex/components/form';\nimport { AXToastService } from '@acorex/components/toast';\nimport {\n AXPGroupSearchResult,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n AXPSettingDefinitionSection,\n AXPSettingScope,\n AXPSettingScopeKey,\n AXPSettingService,\n} from '@acorex/platform/common';\nimport { AXHighlightService } from '@acorex/platform/core';\nimport { AXPLayoutBuilderService, AXPLayoutContextChangeEvent, AXPPageStatus } from '@acorex/platform/layout/builder';\nimport { AXPLayoutThemeService } from '@acorex/platform/themes/shared';\nimport { computed, effect, inject, Injectable, signal } from '@angular/core';\nimport { ActivatedRoute, NavigationEnd, Router } from '@angular/router';\nimport { get, isEmpty, isEqual, isNil } from 'lodash-es';\nimport { filter, take } from 'rxjs';\nimport { searchSettings } from './convert-setting-data';\n\n@Injectable()\nexport class AXPSettingsViewModel {\n private readonly router = inject(Router);\n private readonly settingDefinitionService = inject(AXPSettingDefinitionProviderService);\n private readonly settingValueService = inject(AXPSettingService);\n private readonly toastService = inject(AXToastService);\n private readonly dialogService = inject(AXDialogService);\n private readonly highlightService = inject(AXHighlightService);\n public readonly layout = inject(AXPLayoutThemeService);\n private activatedRoute = inject(ActivatedRoute);\n\n public form: AXFormComponent;\n public builder: AXPLayoutBuilderService;\n\n public searchExpression = signal('');\n private isValidQuery = (expression: string) => !isNil(expression) && !isEmpty(expression);\n public isSearching = computed(() => this.isValidQuery(this.searchExpression()));\n\n public searchResult = signal<AXPSettingDefinitionGroup[]>([]);\n public isSaving = signal(false);\n\n public isBusy = signal(false);\n\n public activateGroup = signal<string | undefined>(undefined);\n private activeScope = signal<AXPSettingScopeKey>('U');\n\n public loadedItems = signal<AXPSettingDefinitionGroup[] | null>(null);\n\n private scopeName = () => {\n return this.activatedRoute?.snapshot?.paramMap?.get('scope')?.trim().toLowerCase() ?? 'user';\n };\n\n private resolveScopeKey(name: string): AXPSettingScopeKey {\n const scopeMap: Record<string, AXPSettingScopeKey> = {\n environment: AXPSettingScope.Environment,\n global: AXPSettingScope.Global,\n tenant: AXPSettingScope.Tenant,\n user: AXPSettingScope.User,\n };\n return scopeMap[name.toLowerCase()] ?? AXPSettingScope.User;\n }\n\n private resolveScope(): AXPSettingScope {\n return this.resolveScopeKey(this.scopeName()) as AXPSettingScope;\n }\n\n public title = computed(() => {\n // fake change detect simulate\n this.activeScope();\n //\n return `settings.${this.scopeName()}.title`;\n });\n\n groups = computed<AXPGroupSearchResult | null>(() => {\n if (this.activateGroup()) {\n return this.settingDefinitionService.findGroup(this.activeScope(), this.activateGroup()!);\n } else {\n return null;\n }\n });\n\n public hasGroup = computed(() => this.activateGroup() != null);\n public showSide = computed(() => this.layout.isLarge() && this.hasGroup());\n\n #effect2 = effect(() => {\n if (this.searchExpression()) {\n this.searchResult.set(searchSettings(this.loadedItems()!, this.searchExpression()));\n }\n });\n\n /**\n * @ignore\n */\n constructor() {\n this.settingValueService.onChanged.pipe(filter((c) => c.scope == this.resolveScope())).subscribe((e) => {\n e.keys.forEach((k) => {\n const currentValue = e.values[k];\n const contextValue = get(this.context(), k);\n const previousValue = get(this.previousContext(), k);\n // Update only if there are actual changes\n if (!isEqual(previousValue, currentValue) || !isEqual(currentValue, contextValue)) {\n this.previousContext.update((prev) => ({\n ...prev,\n [k]: currentValue, // Use backend-provided value\n }));\n this.context.update((ctx) => ({\n ...ctx,\n [k]: currentValue,\n }));\n }\n });\n });\n this.load();\n //\n this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(async (event) => {\n await this.updateGroupParam();\n });\n }\n\n async load() {\n //\n this.activeScope.set(this.resolveScope());\n //\n const items = await this.settingDefinitionService.getListAsync(this.activeScope());\n this.loadedItems.set(items);\n const currentContext = await this.settingValueService.scope(this.resolveScope()).all();\n const defaults = await this.settingValueService.scope(this.resolveScope()).defaultValues();\n this.context.set({ ...defaults, ...currentContext });\n this.previousContext.set(this.context());\n //\n await this.updateGroupParam();\n if (!this.activateGroup() && this.layout.isLarge() && !this.isSearching()) {\n await this.redirectToFirstGroup();\n }\n }\n\n private async updateGroupParam(): Promise<void> {\n const query = this.activatedRoute.snapshot.queryParams['q'];\n const scope = this.resolveScope();\n const group = this.activatedRoute.snapshot.paramMap.get('group');\n\n if ((this.activeScope() && this.activeScope() != scope) || this.activateGroup() != group) {\n this.activateGroup.set(undefined);\n await this.load();\n return;\n }\n\n if (this.isValidQuery(query)) {\n this.searchExpression.set(query);\n }\n if (this.isSearching()) {\n setTimeout(() => {\n this.highlightService.highlight('#ax-settings', this.searchExpression());\n }, 100);\n } else {\n this.highlightService.clear();\n }\n\n // If no child routes exist, set activateGroup to undefined\n if (this.activatedRoute.children.length === 0) {\n this.activateGroup.set(undefined);\n return;\n }\n // Traverse child routes to check for the group parameter\n for (const childRoute of this.activatedRoute.children) {\n const params = await childRoute.paramMap.pipe(take(1)).toPromise();\n const group = params?.get('group');\n if (group) {\n this.activateGroup.set(group);\n }\n }\n }\n\n public async redirectToFirstGroup(): Promise<void> {\n const firstGroup = this.determineFirstGroup();\n if (firstGroup) {\n const app = this.activatedRoute.snapshot.params['app'];\n const scope = this.activatedRoute.snapshot.params['scope'];\n await this.router.navigate([app, 'settings', scope, firstGroup], { replaceUrl: true });\n }\n }\n\n public async navigateUpLevel(): Promise<void> {\n const func = async () => {\n const app = this.activatedRoute.snapshot.params['app'];\n const scope = this.activatedRoute.snapshot.params['scope'];\n await this.router.navigate([app, 'settings', scope]);\n };\n\n if (this.isDirty()) {\n const dialogResult = await this.dialogService.confirm(\n 'Unsaved Changes',\n 'You have unsaved changes. Are you sure you want to go back without saving?',\n 'warning'\n );\n if (dialogResult.result) {\n await func();\n }\n } else {\n await func();\n }\n }\n\n private determineFirstGroup(): string | null {\n const groups = this.loadedItems();\n return groups && groups.length > 0 ? groups[0].name : null;\n }\n\n public handleSelectGroup(item: AXPSettingDefinitionGroup) {\n this.router.navigate([`${item.name}`], { relativeTo: this.activatedRoute });\n this.searchExpression.set('');\n }\n\n context = signal<Record<any, any>>({});\n private previousContext = signal<Record<any, any>>({});\n\n async handleContextChanged(e: AXPLayoutContextChangeEvent) {\n if (e.state == 'initiated') {\n this.previousContext.set(e.data);\n } else {\n this.context.set(e.data);\n }\n //this.apply();\n }\n\n isDirty(section?: AXPSettingDefinitionSection): boolean {\n if (section) {\n // Check for changes in the specific section\n return section.settings.some((c) => !isEqual(get(this.context(), c.name), get(this.previousContext(), c.name)));\n } else {\n // Check for changes globally based on loadedItems keys\n return (\n this.loadedItems()?.some((group) =>\n group.sections.some((sec) =>\n sec.settings.some((setting) => {\n const currentValue = get(this.context(), setting.name);\n const previousValue = get(this.previousContext(), setting.name);\n return !isEqual(currentValue, previousValue);\n })\n )\n ) || false\n );\n }\n }\n\n // Save settings logic\n public async apply(section?: AXPSettingDefinitionSection): Promise<void> {\n try {\n this.isSaving.set(true);\n this.builder.setStatus(AXPPageStatus.Submitting);\n\n const formResult = await this.form.validate();\n if (!formResult.result) {\n this.toastService.show({\n color: 'danger',\n title: 'Review Needed',\n content: 'Invalid configuration detected. Please review your inputs.',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n this.isSaving.set(false);\n this.builder.setStatus(AXPPageStatus.Error);\n return;\n }\n\n if (section) {\n // Apply changes for the specific section\n const changes: Record<string, any> = {};\n section.settings.forEach((c) => {\n changes[c.name] = get(this.context(), c.name);\n });\n if (!isEmpty(changes)) {\n await this.settingValueService.scope(this.resolveScope()).set(changes);\n }\n } else {\n // Save the settings\n await this.settingValueService.scope(this.resolveScope()).set(this.context());\n }\n this.builder.setStatus(AXPPageStatus.Submitted);\n // Show success notification\n this.toastService.show({\n color: 'success',\n title: 'Settings Saved',\n content: 'Your changes have been saved successfully.',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n } catch (error: any) {\n // Handle and show errors\n this.builder.setStatus(AXPPageStatus.Error);\n console.error('Error saving settings:', error);\n this.toastService.show({\n color: 'danger',\n title: 'Save Failed',\n content: error?.['message'] || 'An error occurred while saving your settings. Please try again.',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 5000,\n timeOutProgress: true,\n });\n } finally {\n this.isSaving.set(false);\n }\n }\n\n // discard settings logic\n public async discard(section?: AXPSettingDefinitionSection): Promise<void> {\n this.form.resetErrors();\n if (section) {\n // Discard changes for the specific section\n section.settings.forEach((c) => {\n const previousValue = get(this.previousContext(), c.name);\n this.context.update((ctx) => ({\n ...ctx,\n [c.name]: previousValue,\n }));\n });\n } else {\n // Discard changes for all sections\n this.context.set(this.previousContext());\n }\n }\n\n // Cancel settings logic\n public async resetToDefault(): Promise<void> {\n const defaults = await this.settingValueService.scope(this.resolveScope()).defaultValues();\n // Update the context with the defaults\n this.context.set(defaults);\n //\n await this.apply();\n }\n\n public async search(expression: string) {\n this.searchExpression.set(expression);\n const app = this.activatedRoute.snapshot.params['app'];\n const scope = this.activatedRoute.snapshot.params['scope'];\n //\n if (this.isValidQuery(expression)) {\n await this.router.navigate([app, 'settings', scope, this.activateGroup() ?? ''], {\n queryParams: { q: expression },\n });\n } else {\n await this.router.navigate([app, 'settings', scope, this.activateGroup() ?? '']);\n }\n }\n}\n","import { AXPSessionService } from '@acorex/platform/auth';\nimport {\n AXPSearchProvider,\n AXPSearchResult,\n AXPSettingDefinition,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n AXPSettingScope,\n} from '@acorex/platform/common';\nimport { inject } from '@angular/core';\nimport { sortBy } from 'lodash-es';\n\nexport interface AXPSettingDefinitionSearch extends AXPSettingDefinition {\n group: AXPSettingDefinitionGroup;\n}\n\nexport class AXPSettingSearchProvider implements AXPSearchProvider {\n private settingService = inject(AXPSettingDefinitionProviderService);\n private sessionService = inject(AXPSessionService);\n\n async search(text: string): Promise<AXPSearchResult[]> {\n const groupsSetting = this.settingService.getList(AXPSettingScope.User);\n if (groupsSetting.length == 0) {\n groupsSetting.push(...(await this.settingService.getListAsync(AXPSettingScope.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 // Step 3: Search settings by title\n const searchResults = allSettings.filter((setting) => setting.title.toLowerCase().includes(text.toLowerCase()));\n\n return sortBy(\n searchResults.map<AXPSearchResult>((setting) => ({\n title: setting.title,\n description: setting.description,\n group: 'setting',\n data: setting,\n commands: {\n navigate: {\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 { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '@acorex/platform/common';\n\nexport class AXPSettingSearchDefinitionProvider implements AXPSearchDefinitionProvider {\n async provide(context: AXPSearchDefinitionProviderContext): Promise<void> {\n context.addDefinition('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 { AXP_SEARCH_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER, AXPAppStartUpService } from '@acorex/platform/common';\nimport { Injector, NgModule } from '@angular/core';\nimport { AXPSettingSearchProvider } from './search.provider';\nimport { AXPSettingSearchDefinitionProvider } from './search-definition.provider';\n\n@NgModule({\n imports: [\n ],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXPSettingSearchProvider,\n multi: true,\n },\n {\n provide: AXP_SEARCH_DEFINITION_PROVIDER,\n useClass: AXPSettingSearchDefinitionProvider,\n multi: true,\n },\n ]\n})\nexport class AXPSettingsModule {\n constructor(\n appInitService: AXPAppStartUpService,\n injector: Injector\n ) {\n\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGgB,SAAA,cAAc,CAAC,MAAmC,EAAE,MAAc,EAAA;IAChF,MAAM,kBAAkB,GAAgC,EAAE;IAC1D,MAAM,kBAAkB,GAAgC,EAAE;AAC1D,IAAA,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU;AAEzC,IAAA,MAAM,qBAAqB,GAAG,CAAC,KAAgC,KAAa,CAAA,EAAG,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,KAAK,CAAC,KAAK,EAAE;IAE1G,MAAM,gBAAgB,GAAG,CACvB,KAAgC,EAChC,QAAuC,EACvC,WAAwC,KACtC;AACF,QAAA,MAAM,OAAO,GAAG,qBAAqB,CAAC,KAAK,CAAC;QAC5C,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACjC,WAAW,CAAC,IAAI,CAAC;AACf,gBAAA,GAAG,KAAK;gBACR,QAAQ;gBACR,MAAM,EAAE,EAAE;AACX,aAAA,CAAC;AACF,YAAA,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC;;AAEhC,KAAC;AAED,IAAA,MAAM,eAAe,GAAG,CACtB,KAAgC,EAChC,QAA2D,KACzD;QACF,MAAM,eAAe,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;AACvD,QAAA,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;AAC9B,YAAA,gBAAgB,CAAC,KAAK,EAAE,eAAe,EAAE,kBAAkB,CAAC;;AAEhE,KAAC;AAED,IAAA,MAAM,eAAe,GAAG,CACtB,KAAgC,EAChC,QAAsF,KACpF;AACF,QAAA,MAAM,eAAe,GAAG,KAAK,CAAC;aAC3B,GAAG,CAAC,QAAQ;aACZ,MAAM,CAAC,CAAC,OAAO,KAA6C,OAAO,KAAK,IAAI,CAAC;AAChF,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wB;AAClC,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACD,wBAAA;AACI,4BAAA,OAAO,EAAE,8BAA8B;AACvC,4BAAA,QAAQ,EAAE,kCAAkC;AAC5C,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ;AACJ,iBAAA;;;ACtBD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-layout-setting.mjs","sources":["../../../../libs/platform/layout/setting/src/lib/convert-setting-data.ts","../../../../libs/platform/layout/setting/src/lib/setting.viewmodel.ts","../../../../libs/platform/layout/setting/src/lib/search.provider.ts","../../../../libs/platform/layout/setting/src/lib/search-definition.provider.ts","../../../../libs/platform/layout/setting/src/lib/settings.module.ts","../../../../libs/platform/layout/setting/src/acorex-platform-layout-setting.ts"],"sourcesContent":["import { AXPSettingDefinitionGroup, AXPSettingDefinitionSection } from '@acorex/platform/common';\n\n\nexport function searchSettings(groups: AXPSettingDefinitionGroup[], search: string): AXPSettingDefinitionGroup[] {\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 section.name.toLowerCase().includes(search.toLowerCase()) ||\n section.title.toLowerCase().includes(search.toLowerCase());\n\n const filterSettings = (section: AXPSettingDefinitionSection): AXPSettingDefinitionSection | null => {\n const matchedSettings = section.settings.filter(\n (setting) =>\n setting.name.toLowerCase().includes(search.toLowerCase()) ||\n setting.title.toLowerCase().includes(search.toLowerCase())\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 { AXDialogService } from '@acorex/components/dialog';\nimport { AXFormComponent } from '@acorex/components/form';\nimport { AXToastService } from '@acorex/components/toast';\nimport {\n AXPGroupSearchResult,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n AXPSettingDefinitionSection,\n AXPSettingScope,\n AXPSettingScopeKey,\n AXPSettingService,\n} from '@acorex/platform/common';\nimport { AXHighlightService } from '@acorex/platform/core';\nimport { AXPLayoutBuilderService, AXPLayoutContextChangeEvent, AXPPageStatus } from '@acorex/platform/layout/builder';\nimport { AXPLayoutThemeService } from '@acorex/platform/themes/shared';\nimport { computed, effect, inject, Injectable, signal } from '@angular/core';\nimport { ActivatedRoute, NavigationEnd, Router } from '@angular/router';\nimport { get, isEmpty, isEqual, isNil } from 'lodash-es';\nimport { filter, take } from 'rxjs';\nimport { searchSettings } from './convert-setting-data';\n\n@Injectable()\nexport class AXPSettingsViewModel {\n private readonly router = inject(Router);\n private readonly settingDefinitionService = inject(AXPSettingDefinitionProviderService);\n private readonly settingValueService = inject(AXPSettingService);\n private readonly toastService = inject(AXToastService);\n private readonly dialogService = inject(AXDialogService);\n private readonly highlightService = inject(AXHighlightService);\n public readonly layout = inject(AXPLayoutThemeService);\n private activatedRoute = inject(ActivatedRoute);\n\n public form: AXFormComponent;\n public builder: AXPLayoutBuilderService;\n\n public searchExpression = signal('');\n private isValidQuery = (expression: string) => !isNil(expression) && !isEmpty(expression);\n public isSearching = computed(() => this.isValidQuery(this.searchExpression()));\n\n public searchResult = signal<AXPSettingDefinitionGroup[]>([]);\n public isSaving = signal(false);\n\n public isBusy = signal(false);\n\n public activateGroup = signal<string | undefined>(undefined);\n private activeScope = signal<AXPSettingScopeKey>('U');\n\n public loadedItems = signal<AXPSettingDefinitionGroup[] | null>(null);\n\n private scopeName = () => {\n return this.activatedRoute?.snapshot?.paramMap?.get('scope')?.trim().toLowerCase() ?? 'user';\n };\n\n private resolveScopeKey(name: string): AXPSettingScopeKey {\n const scopeMap: Record<string, AXPSettingScopeKey> = {\n environment: AXPSettingScope.Environment,\n global: AXPSettingScope.Global,\n tenant: AXPSettingScope.Tenant,\n user: AXPSettingScope.User,\n };\n return scopeMap[name.toLowerCase()] ?? AXPSettingScope.User;\n }\n\n private resolveScope(): AXPSettingScope {\n return this.resolveScopeKey(this.scopeName()) as AXPSettingScope;\n }\n\n public title = computed(() => {\n // fake change detect simulate\n this.activeScope();\n //\n return `settings.${this.scopeName()}.title`;\n });\n\n groups = computed<AXPGroupSearchResult | null>(() => {\n if (this.activateGroup()) {\n return this.settingDefinitionService.findGroup(this.activeScope(), this.activateGroup()!);\n } else {\n return null;\n }\n });\n\n public hasGroup = computed(() => this.activateGroup() != null);\n public showSide = computed(() => this.layout.isLarge() && this.hasGroup());\n\n #effect2 = effect(() => {\n if (this.searchExpression()) {\n this.searchResult.set(searchSettings(this.loadedItems()!, this.searchExpression()));\n }\n });\n\n /**\n * @ignore\n */\n constructor() {\n this.settingValueService.onChanged.pipe(filter((c) => c.scope == this.resolveScope())).subscribe((e) => {\n e.keys.forEach((k) => {\n const currentValue = e.values[k];\n const contextValue = get(this.context(), k);\n const previousValue = get(this.previousContext(), k);\n // Update only if there are actual changes\n if (!isEqual(previousValue, currentValue) || !isEqual(currentValue, contextValue)) {\n this.previousContext.update((prev) => ({\n ...prev,\n [k]: currentValue, // Use backend-provided value\n }));\n this.context.update((ctx) => ({\n ...ctx,\n [k]: currentValue,\n }));\n }\n });\n });\n this.load();\n //\n this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(async (event) => {\n await this.updateGroupParam();\n });\n }\n\n async load() {\n //\n this.activeScope.set(this.resolveScope());\n //\n const items = await this.settingDefinitionService.getListAsync(this.activeScope());\n this.loadedItems.set(items);\n const currentContext = await this.settingValueService.scope(this.resolveScope()).all();\n const defaults = await this.settingValueService.scope(this.resolveScope()).defaultValues();\n this.context.set({ ...defaults, ...currentContext });\n this.previousContext.set(this.context());\n //\n await this.updateGroupParam();\n if (!this.activateGroup() && this.layout.isLarge() && !this.isSearching()) {\n await this.redirectToFirstGroup();\n }\n }\n\n private async updateGroupParam(): Promise<void> {\n const query = this.activatedRoute.snapshot.queryParams['q'];\n const scope = this.resolveScope();\n const group = this.activatedRoute.snapshot.paramMap.get('group');\n\n if ((this.activeScope() && this.activeScope() != scope) || this.activateGroup() != group) {\n this.activateGroup.set(undefined);\n await this.load();\n return;\n }\n\n if (this.isValidQuery(query)) {\n this.searchExpression.set(query);\n }\n if (this.isSearching()) {\n setTimeout(() => {\n this.highlightService.highlight('#ax-settings', this.searchExpression());\n }, 100);\n } else {\n this.highlightService.clear();\n }\n\n // If no child routes exist, set activateGroup to undefined\n if (this.activatedRoute.children.length === 0) {\n this.activateGroup.set(undefined);\n return;\n }\n // Traverse child routes to check for the group parameter\n for (const childRoute of this.activatedRoute.children) {\n const params = await childRoute.paramMap.pipe(take(1)).toPromise();\n const group = params?.get('group');\n if (group) {\n this.activateGroup.set(group);\n }\n }\n }\n\n public async redirectToFirstGroup(): Promise<void> {\n const firstGroup = this.determineFirstGroup();\n if (firstGroup) {\n const app = this.activatedRoute.snapshot.params['app'];\n const scope = this.activatedRoute.snapshot.params['scope'];\n await this.router.navigate([app, 'settings', scope, firstGroup], { replaceUrl: true });\n }\n }\n\n public async navigateUpLevel(): Promise<void> {\n const func = async () => {\n const app = this.activatedRoute.snapshot.params['app'];\n const scope = this.activatedRoute.snapshot.params['scope'];\n await this.router.navigate([app, 'settings', scope]);\n };\n\n if (this.isDirty()) {\n const dialogResult = await this.dialogService.confirm(\n 'Unsaved Changes',\n 'You have unsaved changes. Are you sure you want to go back without saving?',\n 'warning'\n );\n if (dialogResult.result) {\n await func();\n }\n } else {\n await func();\n }\n }\n\n private determineFirstGroup(): string | null {\n const groups = this.loadedItems();\n return groups && groups.length > 0 ? groups[0].name : null;\n }\n\n public handleSelectGroup(item: AXPSettingDefinitionGroup) {\n this.router.navigate([`${item.name}`], { relativeTo: this.activatedRoute });\n this.searchExpression.set('');\n }\n\n context = signal<Record<any, any>>({});\n private previousContext = signal<Record<any, any>>({});\n\n async handleContextChanged(e: AXPLayoutContextChangeEvent) {\n if (e.state == 'initiated') {\n this.previousContext.set(e.data);\n } else {\n this.context.set(e.data);\n }\n //this.apply();\n }\n\n isDirty(section?: AXPSettingDefinitionSection): boolean {\n if (section) {\n // Check for changes in the specific section\n return section.settings.some((c) => !isEqual(get(this.context(), c.name), get(this.previousContext(), c.name)));\n } else {\n // Check for changes globally based on loadedItems keys\n return (\n this.loadedItems()?.some((group) =>\n group.sections.some((sec) =>\n sec.settings.some((setting) => {\n const currentValue = get(this.context(), setting.name);\n const previousValue = get(this.previousContext(), setting.name);\n return !isEqual(currentValue, previousValue);\n })\n )\n ) || false\n );\n }\n }\n\n // Save settings logic\n public async apply(section?: AXPSettingDefinitionSection): Promise<void> {\n try {\n this.isSaving.set(true);\n this.builder.setStatus(AXPPageStatus.Submitting);\n\n const formResult = await this.form.validate();\n if (!formResult.result) {\n this.toastService.show({\n color: 'danger',\n title: 'Review Needed',\n content: 'Invalid configuration detected. Please review your inputs.',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n this.isSaving.set(false);\n this.builder.setStatus(AXPPageStatus.Error);\n return;\n }\n\n if (section) {\n // Apply changes for the specific section\n const changes: Record<string, any> = {};\n section.settings.forEach((c) => {\n changes[c.name] = get(this.context(), c.name);\n });\n if (!isEmpty(changes)) {\n await this.settingValueService.scope(this.resolveScope()).set(changes);\n }\n } else {\n // Save the settings\n await this.settingValueService.scope(this.resolveScope()).set(this.context());\n }\n this.builder.setStatus(AXPPageStatus.Submitted);\n // Show success notification\n this.toastService.show({\n color: 'success',\n title: 'Settings Saved',\n content: 'Your changes have been saved successfully.',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n } catch (error: any) {\n // Handle and show errors\n this.builder.setStatus(AXPPageStatus.Error);\n console.error('Error saving settings:', error);\n this.toastService.show({\n color: 'danger',\n title: 'Save Failed',\n content: error?.['message'] || 'An error occurred while saving your settings. Please try again.',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 5000,\n timeOutProgress: true,\n });\n } finally {\n this.isSaving.set(false);\n }\n }\n\n // discard settings logic\n public async discard(section?: AXPSettingDefinitionSection): Promise<void> {\n this.form.resetErrors();\n if (section) {\n // Discard changes for the specific section\n section.settings.forEach((c) => {\n const previousValue = get(this.previousContext(), c.name);\n this.context.update((ctx) => ({\n ...ctx,\n [c.name]: previousValue,\n }));\n });\n } else {\n // Discard changes for all sections\n this.context.set(this.previousContext());\n }\n }\n\n // Cancel settings logic\n public async resetToDefault(): Promise<void> {\n const defaults = await this.settingValueService.scope(this.resolveScope()).defaultValues();\n // Update the context with the defaults\n this.context.set(defaults);\n //\n await this.apply();\n }\n\n public async search(expression: string) {\n this.searchExpression.set(expression);\n const app = this.activatedRoute.snapshot.params['app'];\n const scope = this.activatedRoute.snapshot.params['scope'];\n //\n if (this.isValidQuery(expression)) {\n await this.router.navigate([app, 'settings', scope, this.activateGroup() ?? ''], {\n queryParams: { q: expression },\n });\n } else {\n await this.router.navigate([app, 'settings', scope, this.activateGroup() ?? '']);\n }\n }\n}\n","import { AXPSessionService } from '@acorex/platform/auth';\nimport {\n AXPSearchProvider,\n AXPSearchResult,\n AXPSettingDefinition,\n AXPSettingDefinitionGroup,\n AXPSettingDefinitionProviderService,\n AXPSettingScope,\n} from '@acorex/platform/common';\nimport { inject } from '@angular/core';\nimport { sortBy } from 'lodash-es';\n\nexport interface AXPSettingDefinitionSearch extends AXPSettingDefinition {\n group: AXPSettingDefinitionGroup;\n}\n\nexport class AXPSettingSearchProvider implements AXPSearchProvider {\n private settingService = inject(AXPSettingDefinitionProviderService);\n private sessionService = inject(AXPSessionService);\n\n async search(text: string): Promise<AXPSearchResult[]> {\n const groupsSetting = this.settingService.getList(AXPSettingScope.User);\n if (groupsSetting.length == 0) {\n groupsSetting.push(...(await this.settingService.getListAsync(AXPSettingScope.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 // Step 3: Search settings by title\n const searchResults = allSettings.filter((setting) => setting.title.toLowerCase().includes(text.toLowerCase()));\n\n return sortBy(\n searchResults.map<AXPSearchResult>((setting) => ({\n title: setting.title,\n description: setting.description,\n group: 'setting',\n data: setting,\n commands: {\n navigate: {\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 { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '@acorex/platform/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 { AXP_SEARCH_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER, AXPAppStartUpService } from '@acorex/platform/common';\nimport { Injector, NgModule } from '@angular/core';\nimport { AXPSettingSearchProvider } from './search.provider';\nimport { AXPSettingSearchDefinitionProvider } from './search-definition.provider';\n\n@NgModule({\n imports: [\n ],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXPSettingSearchProvider,\n multi: true,\n },\n {\n provide: AXP_SEARCH_DEFINITION_PROVIDER,\n useClass: AXPSettingSearchDefinitionProvider,\n multi: true,\n },\n ]\n})\nexport class AXPSettingsModule {\n constructor(\n appInitService: AXPAppStartUpService,\n injector: Injector\n ) {\n\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGgB,SAAA,cAAc,CAAC,MAAmC,EAAE,MAAc,EAAA;IAChF,MAAM,kBAAkB,GAAgC,EAAE;IAC1D,MAAM,kBAAkB,GAAgC,EAAE;AAC1D,IAAA,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU;AAEzC,IAAA,MAAM,qBAAqB,GAAG,CAAC,KAAgC,KAAa,CAAA,EAAG,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,KAAK,CAAC,KAAK,EAAE;IAE1G,MAAM,gBAAgB,GAAG,CACvB,KAAgC,EAChC,QAAuC,EACvC,WAAwC,KACtC;AACF,QAAA,MAAM,OAAO,GAAG,qBAAqB,CAAC,KAAK,CAAC;QAC5C,IA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AAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAbf,SAAA,EAAA;AACP,YAAA;AACI,gBAAA,OAAO,EAAE,mBAAmB;AAC5B,gBAAA,QAAQ,EAAE,wBAAwB;AAClC,gBAAA,KAAK,EAAE,IAAI;AACd,aAAA;AACD,YAAA;AACI,gBAAA,OAAO,EAAE,8BAA8B;AACvC,gBAAA,QAAQ,EAAE,kCAAkC;AAC5C,gBAAA,KAAK,EAAE,IAAI;AACd,aAAA;AACJ,SAAA,EAAA,CAAA,CAAA;;2FAEQ,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,mBAAmB;AAC5B,4BAAA,QAAQ,EAAE,wBAAwB;AAClC,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACD,wBAAA;AACI,4BAAA,OAAO,EAAE,8BAA8B;AACvC,4BAAA,QAAQ,EAAE,kCAAkC;AAC5C,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ;AACJ,iBAAA;;;ACtBD;;AAEG;;;;"}
@@ -82,7 +82,7 @@ class AXPThemePalettePreviewPageComponent {
82
82
  return rgb; // Fallback if parsing fails
83
83
  }
84
84
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemePalettePreviewPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
85
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPThemePalettePreviewPageComponent, isStandalone: true, selector: "ng-component", providers: [AXPSettingsViewModel, AXUnsubscriber], ngImport: i0, template: "<axp-layout-simple-page *translate=\"let t\">\n\n <axp-layout-header>\n <axp-layout-title>\n {{currentPallete().title}} Palette Colors\n </axp-layout-title>\n\n <axp-layout-description>\n Preview of The Theme Colors\n </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward \"></i>\n </ng-template>\n <ax-breadcrumbs-item>\n Theme\n </ax-breadcrumbs-item>\n <ax-breadcrumbs-item>\n Preview\n </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n <!-- @if(!isLoading())\n {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10 \"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n @for (range of ranges; track $index) {\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md\"\n [style.background-color]=\"'rgb(var(--ax-sys-color-' + color + '-' + range + '))'\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + (range> 400 ?'on-':'on-contrast-') + color + '))'\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' +\n range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div\n class=\"ax-grid ax-grid-cols-1 xl:ax-grid-cols-5 3xl:ax-grid-cols-5 ax-gap-4 child:ax-border child:ax-rounded child:ax-flex child:ax-justify-center child:ax-items-center ax-text-3xl child:ax-py-10 child:ax-px-10 child:ax-text-center\">\n <div class=\"ax-bg-surface-light ax-border-input ax-text-surface-light \">\n Surface Light\n </div>\n <div class=\"ax-bg-surface-dark ax-border-input ax-text-surface-dark\">\n Surface Dark\n </div>\n <div class=\"ax-bg-surface-lowest ax-text-surface-lowest ax-border-surface-lowest ax-col-start-1\">\n Surface Lowest\n </div>\n <div class=\"ax-bg-surface-low ax-text-surface-low ax-border-surface-low\">\n Surface Low\n </div>\n <div class=\"ax-bg-surface ax-text-surface ax-border-surface \">\n Surface\n </div>\n <div class=\"ax-bg-surface-high ax-text-surface-high ax-border-surface-high \">\n Surface High\n </div>\n <div class=\"ax-bg-surface-highest ax-text-surface-highest ax-border-surface-highest\">\n Surface Highest\n </div>\n <div class=\"ax-bg-surface-input ax-border-input ax-col-start-1\">\n Surface Input\n </div>\n\n </div>\n } -->\n\n\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center \">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <!-- <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button> -->\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <!-- <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button> -->\n </div>\n }\n </div>\n\n </axp-layout-content>\n\n</axp-layout-simple-page>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
85
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPThemePalettePreviewPageComponent, isStandalone: true, selector: "ng-component", providers: [AXPSettingsViewModel, AXUnsubscriber], ngImport: i0, template: "<axp-layout-simple-page *translate=\"let t\">\n\n <axp-layout-header>\n <axp-layout-title>\n {{currentPallete().title}} Palette Colors\n </axp-layout-title>\n\n <axp-layout-description>\n Preview of The Theme Colors\n </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward \"></i>\n </ng-template>\n <ax-breadcrumbs-item>\n Theme\n </ax-breadcrumbs-item>\n <ax-breadcrumbs-item>\n Preview\n </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n @if(!isLoading())\n {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10 \"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n @for (range of ranges; track $index) {\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md\"\n [style.background-color]=\"'rgb(var(--ax-sys-color-' + color + '-' + range + '))'\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + (range> 400 ?'on-':'on-contrast-') + color + '))'\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' +\n range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div\n class=\"ax-grid ax-grid-cols-1 xl:ax-grid-cols-5 3xl:ax-grid-cols-5 ax-gap-4 child:ax-border child:ax-rounded child:ax-flex child:ax-justify-center child:ax-items-center ax-text-3xl child:ax-py-10 child:ax-px-10 child:ax-text-center\">\n <div class=\"ax-bg-surface-light ax-border-input ax-text-surface-light \">\n Surface Light\n </div>\n <div class=\"ax-bg-surface-dark ax-border-input ax-text-surface-dark\">\n Surface Dark\n </div>\n <div class=\"ax-bg-surface-lowest ax-text-surface-lowest ax-border-surface-lowest ax-col-start-1\">\n Surface Lowest\n </div>\n <div class=\"ax-bg-surface-low ax-text-surface-low ax-border-surface-low\">\n Surface Low\n </div>\n <div class=\"ax-bg-surface ax-text-surface ax-border-surface \">\n Surface\n </div>\n <div class=\"ax-bg-surface-high ax-text-surface-high ax-border-surface-high \">\n Surface High\n </div>\n <div class=\"ax-bg-surface-highest ax-text-surface-highest ax-border-surface-highest\">\n Surface Highest\n </div>\n <div class=\"ax-bg-surface-input ax-border-input ax-col-start-1\">\n Surface Input\n </div>\n\n </div>\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center \">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'link'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n\n </axp-layout-content>\n\n</axp-layout-simple-page>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
86
86
  //
87
87
  AXSearchBoxModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXTreeViewModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: i1.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i1.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i7.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type:
88
88
  //
@@ -111,8 +111,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
111
111
  AXPThemeLayoutHeaderTemplateComponent,
112
112
  AXPThemeLayoutActionsComponent,
113
113
  AXPThemeLayoutPagePrimaryActionsComponent,
114
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPSettingsViewModel, AXUnsubscriber], template: "<axp-layout-simple-page *translate=\"let t\">\n\n <axp-layout-header>\n <axp-layout-title>\n {{currentPallete().title}} Palette Colors\n </axp-layout-title>\n\n <axp-layout-description>\n Preview of The Theme Colors\n </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward \"></i>\n </ng-template>\n <ax-breadcrumbs-item>\n Theme\n </ax-breadcrumbs-item>\n <ax-breadcrumbs-item>\n Preview\n </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n <!-- @if(!isLoading())\n {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10 \"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n @for (range of ranges; track $index) {\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md\"\n [style.background-color]=\"'rgb(var(--ax-sys-color-' + color + '-' + range + '))'\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + (range> 400 ?'on-':'on-contrast-') + color + '))'\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' +\n range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div\n class=\"ax-grid ax-grid-cols-1 xl:ax-grid-cols-5 3xl:ax-grid-cols-5 ax-gap-4 child:ax-border child:ax-rounded child:ax-flex child:ax-justify-center child:ax-items-center ax-text-3xl child:ax-py-10 child:ax-px-10 child:ax-text-center\">\n <div class=\"ax-bg-surface-light ax-border-input ax-text-surface-light \">\n Surface Light\n </div>\n <div class=\"ax-bg-surface-dark ax-border-input ax-text-surface-dark\">\n Surface Dark\n </div>\n <div class=\"ax-bg-surface-lowest ax-text-surface-lowest ax-border-surface-lowest ax-col-start-1\">\n Surface Lowest\n </div>\n <div class=\"ax-bg-surface-low ax-text-surface-low ax-border-surface-low\">\n Surface Low\n </div>\n <div class=\"ax-bg-surface ax-text-surface ax-border-surface \">\n Surface\n </div>\n <div class=\"ax-bg-surface-high ax-text-surface-high ax-border-surface-high \">\n Surface High\n </div>\n <div class=\"ax-bg-surface-highest ax-text-surface-highest ax-border-surface-highest\">\n Surface Highest\n </div>\n <div class=\"ax-bg-surface-input ax-border-input ax-col-start-1\">\n Surface Input\n </div>\n\n </div>\n } -->\n\n\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center \">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <!-- <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button> -->\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <!-- <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button> -->\n </div>\n }\n </div>\n\n </axp-layout-content>\n\n</axp-layout-simple-page>" }]
114
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPSettingsViewModel, AXUnsubscriber], template: "<axp-layout-simple-page *translate=\"let t\">\n\n <axp-layout-header>\n <axp-layout-title>\n {{currentPallete().title}} Palette Colors\n </axp-layout-title>\n\n <axp-layout-description>\n Preview of The Theme Colors\n </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward \"></i>\n </ng-template>\n <ax-breadcrumbs-item>\n Theme\n </ax-breadcrumbs-item>\n <ax-breadcrumbs-item>\n Preview\n </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n @if(!isLoading())\n {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10 \"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n @for (range of ranges; track $index) {\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md\"\n [style.background-color]=\"'rgb(var(--ax-sys-color-' + color + '-' + range + '))'\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + (range> 400 ?'on-':'on-contrast-') + color + '))'\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' +\n range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div\n class=\"ax-grid ax-grid-cols-1 xl:ax-grid-cols-5 3xl:ax-grid-cols-5 ax-gap-4 child:ax-border child:ax-rounded child:ax-flex child:ax-justify-center child:ax-items-center ax-text-3xl child:ax-py-10 child:ax-px-10 child:ax-text-center\">\n <div class=\"ax-bg-surface-light ax-border-input ax-text-surface-light \">\n Surface Light\n </div>\n <div class=\"ax-bg-surface-dark ax-border-input ax-text-surface-dark\">\n Surface Dark\n </div>\n <div class=\"ax-bg-surface-lowest ax-text-surface-lowest ax-border-surface-lowest ax-col-start-1\">\n Surface Lowest\n </div>\n <div class=\"ax-bg-surface-low ax-text-surface-low ax-border-surface-low\">\n Surface Low\n </div>\n <div class=\"ax-bg-surface ax-text-surface ax-border-surface \">\n Surface\n </div>\n <div class=\"ax-bg-surface-high ax-text-surface-high ax-border-surface-high \">\n Surface High\n </div>\n <div class=\"ax-bg-surface-highest ax-text-surface-highest ax-border-surface-highest\">\n Surface Highest\n </div>\n <div class=\"ax-bg-surface-input ax-border-input ax-col-start-1\">\n Surface Input\n </div>\n\n </div>\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center \">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'link'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n\n </axp-layout-content>\n\n</axp-layout-simple-page>" }]
115
115
  }] });
116
116
 
117
117
  export { AXPThemePalettePreviewPageComponent };
118
- //# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs.map
118
+ //# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs","sources":["../../../../libs/platform/themes/default/src/lib/pages/theme-palette-preview/theme-palette-preview.page.ts","../../../../libs/platform/themes/default/src/lib/pages/theme-palette-preview/theme-palette-preview.page.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutPagePrimaryActionsComponent,\n AXPLayoutThemeService,\n AXP_THEME_PALETTE_PROVIDER,\n AXPThemePalette,\n AXPThemeLayoutSetting,\n} from '@acorex/platform/themes/shared';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPSettingsViewModel } from '@acorex/platform/layout/setting';\nimport { FormsModule } from '@angular/forms';\nimport { AXTreeViewModule } from '@acorex/components/tree-view';\nimport { RouterModule } from '@angular/router';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXBadgeModule } from '@acorex/components/badge';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXPSimplePageLayout } from '../../layouts/base';\nimport { AXPSettingScope, AXPSettingService } from '@acorex/platform/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n //\n AXSearchBoxModule,\n AXDecoratorModule,\n AXTreeViewModule,\n AXBreadcrumbsModule,\n AXTranslationModule,\n AXButtonModule,\n AXTabsModule,\n AXBadgeModule,\n AXLoadingModule,\n AXDropdownButtonModule,\n //\n AXPSimplePageLayout,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutPagePrimaryActionsComponent,\n ],\n templateUrl: './theme-palette-preview.page.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPSettingsViewModel, AXUnsubscriber]\n})\n\nexport class AXPThemePalettePreviewPageComponent {\n\n protected readonly layout = inject(AXPLayoutThemeService);\n protected readonly settingService = inject(AXPSettingService);\n private themePalleteProvider = inject(AXP_THEME_PALETTE_PROVIDER);\n\n private readonly unsubscriber = inject(AXUnsubscriber);\n\n private defaultPalette: AXPThemePalette = { name: 'default', title: 'Default', path: 'fake', colors: [] };\n\n protected readonly palettes = signal<AXPThemePalette[]>([]);\n protected currentPalleteName = signal<string>('default');\n protected currentPallete = computed<AXPThemePalette>(() => {\n return this.palettes().find(c => c.name == this.currentPalleteName()) ?? this.defaultPalette;\n });\n\n\n protected hexColors = signal<{ [key: string]: string }>({});\n\n protected isLoading = signal(true);\n\n protected readonly ranges = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];\n protected readonly colors = ['ghost', 'primary', 'secondary', 'success', 'warning', 'danger', 'accent1', 'accent2', 'accent3'];\n\n async ngOnInit() {\n const list = await this.themePalleteProvider.getList()\n this.palettes.set(list);\n await this.updateView();\n //\n this.settingService.onChanged.pipe(this.unsubscriber.takeUntilDestroy).subscribe(async () => {\n await this.updateView();\n });\n }\n\n private async updateView() {\n this.isLoading.set(true);\n this.currentPalleteName.set(await this.settingService.get(AXPThemeLayoutSetting.Palette));\n //\n setTimeout(() => {\n const root = document.documentElement; // Select the root element\n const colors: { [key: string]: string } = {};\n this.colors.forEach((color) => {\n this.ranges.forEach((range) => {\n const colorValue = getComputedStyle(root).getPropertyValue(`--ax-sys-color-${color}-${range}`);\n colors[`${color}-${range}`] = this.rgbToHex(colorValue);\n });\n });\n //\n this.hexColors.set(colors);\n //\n this.isLoading.set(false);\n }, 100);\n }\n\n protected async handleChangeTheme(palette: AXPThemePalette) {\n await this.settingService.scope(AXPSettingScope.User).set(AXPThemeLayoutSetting.Palette, palette.name);\n }\n\n private rgbToHex(rgb: string): string {\n const match = rgb.match(/\\d+/g);\n if (match && match.length >= 3) {\n const r = parseInt(match[0], 10);\n const g = parseInt(match[1], 10);\n const b = parseInt(match[2], 10);\n return `#${((1 << 24) | (r << 16) | (g << 8) | b).toString(16).slice(1).toUpperCase()}`;\n }\n return rgb; // Fallback if parsing fails\n }\n\n\n}","<axp-layout-simple-page *translate=\"let t\">\n\n <axp-layout-header>\n <axp-layout-title>\n {{currentPallete().title}} Palette Colors\n </axp-layout-title>\n\n <axp-layout-description>\n Preview of The Theme Colors\n </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward \"></i>\n </ng-template>\n <ax-breadcrumbs-item>\n Theme\n </ax-breadcrumbs-item>\n <ax-breadcrumbs-item>\n Preview\n </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n @if(!isLoading())\n {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10 \"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n @for (range of ranges; track $index) {\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md\"\n [style.background-color]=\"'rgb(var(--ax-sys-color-' + color + '-' + range + '))'\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + (range> 400 ?'on-':'on-contrast-') + color + '))'\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' +\n range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div\n class=\"ax-grid ax-grid-cols-1 xl:ax-grid-cols-5 3xl:ax-grid-cols-5 ax-gap-4 child:ax-border child:ax-rounded child:ax-flex child:ax-justify-center child:ax-items-center ax-text-3xl child:ax-py-10 child:ax-px-10 child:ax-text-center\">\n <div class=\"ax-bg-surface-light ax-border-input ax-text-surface-light \">\n Surface Light\n </div>\n <div class=\"ax-bg-surface-dark ax-border-input ax-text-surface-dark\">\n Surface Dark\n </div>\n <div class=\"ax-bg-surface-lowest ax-text-surface-lowest ax-border-surface-lowest ax-col-start-1\">\n Surface Lowest\n </div>\n <div class=\"ax-bg-surface-low ax-text-surface-low ax-border-surface-low\">\n Surface Low\n </div>\n <div class=\"ax-bg-surface ax-text-surface ax-border-surface \">\n Surface\n </div>\n <div class=\"ax-bg-surface-high ax-text-surface-high ax-border-surface-high \">\n Surface High\n </div>\n <div class=\"ax-bg-surface-highest ax-text-surface-highest ax-border-surface-highest\">\n Surface Highest\n </div>\n <div class=\"ax-bg-surface-input ax-border-input ax-col-start-1\">\n Surface Input\n </div>\n\n </div>\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center \">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3 \">\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n <ax-button class=\"custom-button\" [text]=\"color\" [look]=\"'link'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n\n </axp-layout-content>\n\n</axp-layout-simple-page>"],"names":["i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAyDa,mCAAmC,CAAA;AA7BhD,IAAA,WAAA,GAAA;AA+BuB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACtC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACrD,QAAA,IAAA,CAAA,oBAAoB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAEhD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AAE9C,QAAA,IAAA,CAAA,cAAc,GAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;AAEtF,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAoB,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAS,SAAS,CAAC;AAC9C,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAkB,MAAK;YACtD,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC,IAAI,IAAI,CAAC,cAAc;AAChG,SAAC,CAAC;AAGQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA4B,EAAE,CAAC;AAEjD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;QAEf,IAAM,CAAA,MAAA,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,G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AC,EAAA,QAAA,EAAA,wuLAAA,EAAA;;;;;"}
@@ -426,7 +426,7 @@ function routesFacory() {
426
426
  children: [
427
427
  {
428
428
  path: 'palette',
429
- loadComponent: () => import('./acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs').then((c) => c.AXPThemePalettePreviewPageComponent),
429
+ loadComponent: () => import('./acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs').then((c) => c.AXPThemePalettePreviewPageComponent),
430
430
  },
431
431
  ],
432
432
  },