@acorex/platform 19.2.4 → 19.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/lib/layout/menu/menu.types.d.ts +2 -1
- package/common/lib/utils/export-popup.d.ts +19 -0
- package/common/lib/utils/export.service.d.ts +21 -0
- package/common/lib/utils/index.d.ts +1 -1
- package/common/lib/workflows/common.workflow.d.ts +2 -0
- package/fesm2022/acorex-platform-common.mjs +236 -84
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +12 -8
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +15 -15
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +69 -17
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +10 -6
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs +108 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-ClNKQnoc.mjs +376 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-ClNKQnoc.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-U8aBv1Ql.mjs +87 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-U8aBv1Ql.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs +130 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-BPQ1z42t.mjs → acorex-platform-themes-default-error-401.component-Brx-zHqH.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-error-401.component-BPQ1z42t.mjs.map → acorex-platform-themes-default-error-401.component-Brx-zHqH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CGgD5C7q.mjs → acorex-platform-themes-default-error-404.component-C8mJP9D8.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CGgD5C7q.mjs.map → acorex-platform-themes-default-error-404.component-C8mJP9D8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-CkVGS1HQ.mjs → acorex-platform-themes-default-error-offline.component-CwBClgcf.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-CkVGS1HQ.mjs.map → acorex-platform-themes-default-error-offline.component-CwBClgcf.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-search-popup.component-BZJTLnlM.mjs +129 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-BZJTLnlM.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-oA4kM_-3.mjs +74 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-oA4kM_-3.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CJZBhtKE.mjs +71 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CJZBhtKE.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-D_AK8uVB.mjs +118 -0
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-D_AK8uVB.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +29 -29
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +13 -8
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-B53z9A_A.mjs → acorex-platform-widgets-button-widget-designer.component-2iWPztWW.mjs} +2 -2
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-B53z9A_A.mjs.map → acorex-platform-widgets-button-widget-designer.component-2iWPztWW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-CHDMlorX.mjs → acorex-platform-widgets-rich-text-popup.component-DYExfz5U.mjs} +2 -2
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-CHDMlorX.mjs.map → acorex-platform-widgets-rich-text-popup.component-DYExfz5U.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +54 -40
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget-column-renderer.d.ts +3 -1
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +1 -0
- package/layout/search/lib/search.viewmodel.d.ts +2 -1
- package/package.json +6 -6
- package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +2 -1
- package/themes/shared/lib/components/layout-elements/layout-blocks.component.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/layout-header.component.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/layout-list.component.d.ts +1 -1
- package/themes/shared/lib/palette.provider.d.ts +2 -2
- package/widgets/lib/widgets/advance/file/file-box-widget-edit.component.d.ts +4 -1
- package/common/lib/utils/pdf.service.d.ts +0 -25
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Yq3pzh9K.mjs +0 -108
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Yq3pzh9K.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DarhCaO1.mjs +0 -369
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DarhCaO1.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-CPG4i72f.mjs +0 -87
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-CPG4i72f.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs +0 -130
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-search-popup.component-ChZHzvG4.mjs +0 -122
- package/fesm2022/acorex-platform-themes-default-search-popup.component-ChZHzvG4.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-CGjDwlvq.mjs +0 -74
- package/fesm2022/acorex-platform-themes-default-setting-page.component-CGjDwlvq.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-view.component-DK9j13yV.mjs +0 -71
- package/fesm2022/acorex-platform-themes-default-setting-view.component-DK9j13yV.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs +0 -118
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-C3RJdApv.mjs.map +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { AXBadgeModule } from '@acorex/components/badge';
|
|
2
|
+
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
3
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
4
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
6
|
+
import * as i2 from '@acorex/components/form';
|
|
7
|
+
import { AXFormComponent, AXFormModule } from '@acorex/components/form';
|
|
8
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
|
9
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
10
|
+
import * as i6 from '@acorex/core/translation';
|
|
11
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
12
|
+
import { AXValidationModule } from '@acorex/core/validation';
|
|
13
|
+
import * as i6$1 from '@acorex/platform/layout/builder';
|
|
14
|
+
import { AXPWidgetContainerComponent, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
15
|
+
import { AXPSettingsViewModel } from '@acorex/platform/layout/setting';
|
|
16
|
+
import { AXPLayoutThemeService, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';
|
|
17
|
+
import * as i1 from '@angular/common';
|
|
18
|
+
import { CommonModule } from '@angular/common';
|
|
19
|
+
import * as i0 from '@angular/core';
|
|
20
|
+
import { inject, Injector, viewChild, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
21
|
+
import { FormsModule } from '@angular/forms';
|
|
22
|
+
|
|
23
|
+
class AXPSettingsViewComponent {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.vm = inject(AXPSettingsViewModel);
|
|
26
|
+
this.injector = inject(Injector);
|
|
27
|
+
this.layoutService = inject(AXPLayoutThemeService);
|
|
28
|
+
this.from = viewChild(AXFormComponent);
|
|
29
|
+
this.container = viewChild(AXPWidgetContainerComponent);
|
|
30
|
+
this.#effect1 = effect(() => {
|
|
31
|
+
this.vm.isBusy.set(this.container()?.isBusy() ?? false);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
#effect1;
|
|
35
|
+
ngAfterViewInit() {
|
|
36
|
+
this.vm.form = this.from();
|
|
37
|
+
this.vm.builder = this.container().builderService;
|
|
38
|
+
}
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSettingsViewComponent, isStandalone: true, selector: "ng-component", host: { classAttribute: "ax-w-full" }, viewQueries: [{ propertyName: "from", first: true, predicate: AXFormComponent, descendants: true, isSignal: true }, { propertyName: "container", first: true, predicate: AXPWidgetContainerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type:
|
|
41
|
+
//
|
|
42
|
+
AXDecoratorModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type:
|
|
43
|
+
//
|
|
44
|
+
AXPLayoutBuilderModule }, { kind: "component", type: i6$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-footer-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingsViewComponent, decorators: [{
|
|
47
|
+
type: Component,
|
|
48
|
+
args: [{ imports: [
|
|
49
|
+
CommonModule,
|
|
50
|
+
FormsModule,
|
|
51
|
+
//
|
|
52
|
+
AXDecoratorModule,
|
|
53
|
+
AXBreadcrumbsModule,
|
|
54
|
+
AXButtonModule,
|
|
55
|
+
AXBadgeModule,
|
|
56
|
+
AXTranslationModule,
|
|
57
|
+
AXSearchBoxModule,
|
|
58
|
+
AXDropdownButtonModule,
|
|
59
|
+
AXLoadingModule,
|
|
60
|
+
AXFormModule,
|
|
61
|
+
AXValidationModule,
|
|
62
|
+
//
|
|
63
|
+
AXPLayoutBuilderModule,
|
|
64
|
+
AXPThemeLayoutBlockComponent
|
|
65
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
66
|
+
class: 'ax-w-full',
|
|
67
|
+
}, template: "<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n" }]
|
|
68
|
+
}] });
|
|
69
|
+
|
|
70
|
+
export { AXPSettingsViewComponent };
|
|
71
|
+
//# sourceMappingURL=acorex-platform-themes-default-setting-view.component-CJZBhtKE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-setting-view.component-CJZBhtKE.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-view/setting-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-view/setting-view.component.html"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPLayoutBuilderModule, AXPWidgetContainerComponent } from '@acorex/platform/layout/builder';\nimport { AXPSettingsViewModel } from '@acorex/platform/layout/setting';\nimport { AXPLayoutThemeService, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, inject, Injector, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n templateUrl: 'setting-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n //\n AXDecoratorModule,\n AXBreadcrumbsModule,\n AXButtonModule,\n AXBadgeModule,\n AXTranslationModule,\n AXSearchBoxModule,\n AXDropdownButtonModule,\n AXLoadingModule,\n AXFormModule,\n AXValidationModule,\n //\n AXPLayoutBuilderModule,\n AXPThemeLayoutBlockComponent\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ax-w-full',\n }\n})\nexport class AXPSettingsViewComponent {\n protected vm = inject(AXPSettingsViewModel);\n protected injector = inject(Injector);\n protected layoutService = inject(AXPLayoutThemeService);\n private from = viewChild(AXFormComponent);\n private container = viewChild(AXPWidgetContainerComponent);\n\n #effect1 = effect(() => {\n this.vm.isBusy.set(this.container()?.isBusy() ?? false)\n });\n\n ngAfterViewInit() {\n this.vm.form = this.from()!;\n this.vm.builder = this.container()!.builderService;\n }\n}\n","<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MA0Ca,wBAAwB,CAAA;AAzBrC,IAAA,WAAA,GAAA;AA0Bc,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAC/C,QAAA,IAAA,CAAA,IAAI,GAAG,SAAS,CAAC,eAAe,CAAC;AACjC,QAAA,IAAA,CAAA,SAAS,GAAG,SAAS,CAAC,2BAA2B,CAAC;AAE1D,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,MAAK;AACnB,YAAA,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,KAAK,CAAC;AAC3D,SAAC,CAAC;AAML;AARG,IAAA,QAAQ;IAIR,eAAe,GAAA;QACX,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAG;QAC3B,IAAI,CAAC,EAAE,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
|
3
|
+
import { inject, signal, computed, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
4
|
+
import { AXPLayoutThemeService, AXP_THEME_PALETTE_PROVIDER, AXPThemeLayoutSetting, AXPThemeLayoutBlockComponent, AXPThemeLayoutHeaderTemplateComponent, AXPThemeLayoutActionsComponent, AXPThemeLayoutPagePrimaryActionsComponent } from '@acorex/platform/themes/shared';
|
|
5
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
6
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
7
|
+
import { AXPSettingsViewModel } from '@acorex/platform/layout/setting';
|
|
8
|
+
import { FormsModule } from '@angular/forms';
|
|
9
|
+
import { AXTreeViewModule } from '@acorex/components/tree-view';
|
|
10
|
+
import { RouterModule } from '@angular/router';
|
|
11
|
+
import * as i1 from '@acorex/components/breadcrumbs';
|
|
12
|
+
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
13
|
+
import * as i6 from '@acorex/core/translation';
|
|
14
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
+
import * as i4 from '@acorex/components/button';
|
|
16
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
17
|
+
import { AXTabsModule } from '@acorex/components/tabs';
|
|
18
|
+
import { AXBadgeModule } from '@acorex/components/badge';
|
|
19
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
|
20
|
+
import * as i7 from '@acorex/components/dropdown-button';
|
|
21
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
22
|
+
import { AXPSimplePageLayout } from './acorex-platform-themes-default.mjs';
|
|
23
|
+
import { AXPSettingService, AXPSettingScope } from '@acorex/platform/common';
|
|
24
|
+
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
25
|
+
|
|
26
|
+
class AXPThemePalettePreviewPageComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.layout = inject(AXPLayoutThemeService);
|
|
29
|
+
this.settingService = inject(AXPSettingService);
|
|
30
|
+
this.themePalleteProvider = inject(AXP_THEME_PALETTE_PROVIDER);
|
|
31
|
+
this.unsubscriber = inject(AXUnsubscriber);
|
|
32
|
+
this.defaultPalette = { name: 'default', title: 'Default', path: 'fake', colors: [] };
|
|
33
|
+
this.palettes = signal([]);
|
|
34
|
+
this.currentPalleteName = signal('default');
|
|
35
|
+
this.currentPallete = computed(() => {
|
|
36
|
+
return this.palettes().find(c => c.name == this.currentPalleteName()) ?? this.defaultPalette;
|
|
37
|
+
});
|
|
38
|
+
this.hexColors = signal({});
|
|
39
|
+
this.isLoading = signal(true);
|
|
40
|
+
this.ranges = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
41
|
+
this.colors = ['default', 'primary', 'secondary', 'success', 'warning', 'danger'];
|
|
42
|
+
}
|
|
43
|
+
async ngOnInit() {
|
|
44
|
+
const list = await this.themePalleteProvider.getList();
|
|
45
|
+
this.palettes.set(list);
|
|
46
|
+
await this.updateView();
|
|
47
|
+
//
|
|
48
|
+
this.settingService.onChanged.pipe(this.unsubscriber.takeUntilDestroy).subscribe(async () => {
|
|
49
|
+
await this.updateView();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
async updateView() {
|
|
53
|
+
this.isLoading.set(true);
|
|
54
|
+
this.currentPalleteName.set(await this.settingService.get(AXPThemeLayoutSetting.Palette));
|
|
55
|
+
//
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
const root = document.documentElement; // Select the root element
|
|
58
|
+
const colors = {};
|
|
59
|
+
this.colors.forEach((color) => {
|
|
60
|
+
this.ranges.forEach((range) => {
|
|
61
|
+
const colorValue = getComputedStyle(root).getPropertyValue(`--ax-sys-color-${color}-${range}`);
|
|
62
|
+
colors[`${color}-${range}`] = this.rgbToHex(colorValue);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
//
|
|
66
|
+
this.hexColors.set(colors);
|
|
67
|
+
//
|
|
68
|
+
this.isLoading.set(false);
|
|
69
|
+
}, 100);
|
|
70
|
+
}
|
|
71
|
+
async handleChangeTheme(palette) {
|
|
72
|
+
await this.settingService.scope(AXPSettingScope.User).set(AXPThemeLayoutSetting.Palette, palette.name);
|
|
73
|
+
}
|
|
74
|
+
rgbToHex(rgb) {
|
|
75
|
+
const match = rgb.match(/\d+/g);
|
|
76
|
+
if (match && match.length >= 3) {
|
|
77
|
+
const r = parseInt(match[0], 10);
|
|
78
|
+
const g = parseInt(match[1], 10);
|
|
79
|
+
const b = parseInt(match[2], 10);
|
|
80
|
+
return `#${((1 << 24) | (r << 16) | (g << 8) | b).toString(16).slice(1).toUpperCase()}`;
|
|
81
|
+
}
|
|
82
|
+
return rgb; // Fallback if parsing fails
|
|
83
|
+
}
|
|
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 <axp-layout-header>\n <axp-layout-title> {{currentPallete().title}} Palette Colors </axp-layout-title>\n\n <axp-layout-description> Preview of The Theme Colors </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> Theme </ax-breadcrumbs-item>\n <ax-breadcrumbs-item> Preview </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 <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.slice(1); 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 + '-' + range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"surface-container\">\n <div class=\"ax-border-lightest ax-bg-lightest ax-text-on-lightest\">Lightest</div>\n <div class=\"ax-border-lighter ax-bg-lighter ax-text-on-lighter\">Lighter</div>\n <div class=\"ax-border-light ax-bg-light ax-text-on-light\">Light</div>\n <div class=\"!ax-col-span-12 ax-border-surface ax-bg-surface ax-text-on-surface\">Surface</div>\n <div class=\"ax-border-dark ax-bg-dark ax-text-on-dark\">Dark</div>\n <div class=\"ax-border-darker ax-bg-darker ax-text-on-darker\">Darker</div>\n <div class=\"ax-border-darkest ax-bg-darkest ax-text-on-darkest\">Darkest</div>\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Color Surfaces</h2>\n @for(color of colors.slice(1);track $index){\n <h6 class=\"!ax-mb-4 !ax-text-sm ax-capitalize\">{{color}}</h6>\n <div class=\"surface-container\">\n <div class=\" ax-border-{{color}}-lightest ax-bg-{{color}}-lightest ax-text-{{color}}-on-lightest\">Surface Lightest\n </div>\n <div class=\" ax-border-{{color}}-lighter ax-bg-{{color}}-lighter ax-text-{{color}}-on-lighter\">Surface Lighter\n </div>\n <div class=\" ax-border-{{color}}-light ax-bg-{{color}}-light ax-text-{{color}}-on-light\">Surface Light</div>\n <div class=\"!ax-col-span-12 ax-border-{{color}}-surface ax-bg-{{color}}-surface ax-text-{{color}}-on-surface \">\n Surface</div>\n <div class=\" ax-border-{{color}}-dark ax-bg-{{color}}-dark ax-text-{{color}}-on-dark\">Surface Dark</div>\n <div class=\" ax-border-{{color}}-darker ax-bg-{{color}}-darker ax-text-{{color}}-on-darker\">Surface Darker</div>\n <div class=\" ax-border-{{color}}-darkest ax-bg-{{color}}-darkest ax-text-{{color}}-on-darkest\">Surface Darkest\n </div>\n </div>\n }\n\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Components</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 [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n </axp-layout-content>\n</axp-layout-simple-page>", styles: [".surface-container{margin-bottom:2rem;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.75rem;border-radius:.75rem}.surface-container>*{display:flex;min-height:3rem;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;grid-column:span 4 / span 4;border-radius:.375rem;border-width:1px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
|
|
86
|
+
//
|
|
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
|
+
//
|
|
89
|
+
AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-footer-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPThemeLayoutHeaderTemplateComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutActionsComponent, selector: "axp-layout-actions" }, { kind: "component", type: AXPThemeLayoutPagePrimaryActionsComponent, selector: "axp-layout-actions-primary" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemePalettePreviewPageComponent, decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{ standalone: true, imports: [
|
|
94
|
+
CommonModule,
|
|
95
|
+
FormsModule,
|
|
96
|
+
RouterModule,
|
|
97
|
+
//
|
|
98
|
+
AXSearchBoxModule,
|
|
99
|
+
AXDecoratorModule,
|
|
100
|
+
AXTreeViewModule,
|
|
101
|
+
AXBreadcrumbsModule,
|
|
102
|
+
AXTranslationModule,
|
|
103
|
+
AXButtonModule,
|
|
104
|
+
AXTabsModule,
|
|
105
|
+
AXBadgeModule,
|
|
106
|
+
AXLoadingModule,
|
|
107
|
+
AXDropdownButtonModule,
|
|
108
|
+
//
|
|
109
|
+
AXPSimplePageLayout,
|
|
110
|
+
AXPThemeLayoutBlockComponent,
|
|
111
|
+
AXPThemeLayoutHeaderTemplateComponent,
|
|
112
|
+
AXPThemeLayoutActionsComponent,
|
|
113
|
+
AXPThemeLayoutPagePrimaryActionsComponent,
|
|
114
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPSettingsViewModel, AXUnsubscriber], template: "<axp-layout-simple-page *translate=\"let t\">\n <axp-layout-header>\n <axp-layout-title> {{currentPallete().title}} Palette Colors </axp-layout-title>\n\n <axp-layout-description> Preview of The Theme Colors </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> Theme </ax-breadcrumbs-item>\n <ax-breadcrumbs-item> Preview </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 <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.slice(1); 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 + '-' + range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"surface-container\">\n <div class=\"ax-border-lightest ax-bg-lightest ax-text-on-lightest\">Lightest</div>\n <div class=\"ax-border-lighter ax-bg-lighter ax-text-on-lighter\">Lighter</div>\n <div class=\"ax-border-light ax-bg-light ax-text-on-light\">Light</div>\n <div class=\"!ax-col-span-12 ax-border-surface ax-bg-surface ax-text-on-surface\">Surface</div>\n <div class=\"ax-border-dark ax-bg-dark ax-text-on-dark\">Dark</div>\n <div class=\"ax-border-darker ax-bg-darker ax-text-on-darker\">Darker</div>\n <div class=\"ax-border-darkest ax-bg-darkest ax-text-on-darkest\">Darkest</div>\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Color Surfaces</h2>\n @for(color of colors.slice(1);track $index){\n <h6 class=\"!ax-mb-4 !ax-text-sm ax-capitalize\">{{color}}</h6>\n <div class=\"surface-container\">\n <div class=\" ax-border-{{color}}-lightest ax-bg-{{color}}-lightest ax-text-{{color}}-on-lightest\">Surface Lightest\n </div>\n <div class=\" ax-border-{{color}}-lighter ax-bg-{{color}}-lighter ax-text-{{color}}-on-lighter\">Surface Lighter\n </div>\n <div class=\" ax-border-{{color}}-light ax-bg-{{color}}-light ax-text-{{color}}-on-light\">Surface Light</div>\n <div class=\"!ax-col-span-12 ax-border-{{color}}-surface ax-bg-{{color}}-surface ax-text-{{color}}-on-surface \">\n Surface</div>\n <div class=\" ax-border-{{color}}-dark ax-bg-{{color}}-dark ax-text-{{color}}-on-dark\">Surface Dark</div>\n <div class=\" ax-border-{{color}}-darker ax-bg-{{color}}-darker ax-text-{{color}}-on-darker\">Surface Darker</div>\n <div class=\" ax-border-{{color}}-darkest ax-bg-{{color}}-darkest ax-text-{{color}}-on-darkest\">Surface Darkest\n </div>\n </div>\n }\n\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Components</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 [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n </axp-layout-content>\n</axp-layout-simple-page>", styles: [".surface-container{margin-bottom:2rem;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.75rem;border-radius:.75rem}.surface-container>*{display:flex;min-height:3rem;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;grid-column:span 4 / span 4;border-radius:.375rem;border-width:1px}\n"] }]
|
|
115
|
+
}] });
|
|
116
|
+
|
|
117
|
+
export { AXPThemePalettePreviewPageComponent };
|
|
118
|
+
//# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-D_AK8uVB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-theme-palette-preview.page-D_AK8uVB.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 styleUrl: './theme-palette-preview.page.scss',\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 = ['default', 'primary', 'secondary', 'success', 'warning', 'danger'];\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 <axp-layout-header>\n <axp-layout-title> {{currentPallete().title}} Palette Colors </axp-layout-title>\n\n <axp-layout-description> Preview of The Theme Colors </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> Theme </ax-breadcrumbs-item>\n <ax-breadcrumbs-item> Preview </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 <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.slice(1); 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 + '-' + range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"surface-container\">\n <div class=\"ax-border-lightest ax-bg-lightest ax-text-on-lightest\">Lightest</div>\n <div class=\"ax-border-lighter ax-bg-lighter ax-text-on-lighter\">Lighter</div>\n <div class=\"ax-border-light ax-bg-light ax-text-on-light\">Light</div>\n <div class=\"!ax-col-span-12 ax-border-surface ax-bg-surface ax-text-on-surface\">Surface</div>\n <div class=\"ax-border-dark ax-bg-dark ax-text-on-dark\">Dark</div>\n <div class=\"ax-border-darker ax-bg-darker ax-text-on-darker\">Darker</div>\n <div class=\"ax-border-darkest ax-bg-darkest ax-text-on-darkest\">Darkest</div>\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Color Surfaces</h2>\n @for(color of colors.slice(1);track $index){\n <h6 class=\"!ax-mb-4 !ax-text-sm ax-capitalize\">{{color}}</h6>\n <div class=\"surface-container\">\n <div class=\" ax-border-{{color}}-lightest ax-bg-{{color}}-lightest ax-text-{{color}}-on-lightest\">Surface Lightest\n </div>\n <div class=\" ax-border-{{color}}-lighter ax-bg-{{color}}-lighter ax-text-{{color}}-on-lighter\">Surface Lighter\n </div>\n <div class=\" ax-border-{{color}}-light ax-bg-{{color}}-light ax-text-{{color}}-on-light\">Surface Light</div>\n <div class=\"!ax-col-span-12 ax-border-{{color}}-surface ax-bg-{{color}}-surface ax-text-{{color}}-on-surface \">\n Surface</div>\n <div class=\" ax-border-{{color}}-dark ax-bg-{{color}}-dark ax-text-{{color}}-on-dark\">Surface Dark</div>\n <div class=\" ax-border-{{color}}-darker ax-bg-{{color}}-darker ax-text-{{color}}-on-darker\">Surface Darker</div>\n <div class=\" ax-border-{{color}}-darkest ax-bg-{{color}}-darkest ax-text-{{color}}-on-darkest\">Surface Darkest\n </div>\n </div>\n }\n\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Components</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 [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n </axp-layout-content>\n</axp-layout-simple-page>"],"names":["i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MA0Da,mCAAmC,CAAA;AA9BhD,IAAA,WAAA,GAAA;AAgCuB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACtC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC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