@acorex/platform 19.2.0 → 19.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-layout-entity.mjs +9 -28
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-theme-palette-preview.page-D7Y93deN.mjs → acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +5 -11
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/entity/lib/entity-middleware.d.ts +3 -4
- package/layout/entity/lib/index.d.ts +1 -0
- package/package.json +5 -5
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-D7Y93deN.mjs.map +0 -1
|
@@ -82,9 +82,9 @@ 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>
|
|
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:
|
|
86
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.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:
|
|
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
|
//
|
|
89
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-suffix, axp-layout-prefix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs " }, { 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
90
|
}
|
|
@@ -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>
|
|
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>" }]
|
|
115
115
|
}] });
|
|
116
116
|
|
|
117
117
|
export { AXPThemePalettePreviewPageComponent };
|
|
118
|
-
//# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-
|
|
118
|
+
//# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.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\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>"],"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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,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACP,OAAA,EAAA;wBACL,YAAY;wBACZ,WAAW;wBACX,YAAY;;wBAEZ,iBAAiB;wBACjB,iBAAiB;wBACjB,gBAAgB;wBAChB,mBAAmB;wBACnB,mBAAmB;wBACnB,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,sBAAsB;;wBAEtB,mBAAmB;wBACnB,4BAA4B;wBAC5B,qCAAqC;wBACrC,8BAA8B;wBAC9B,yCAAyC;qBAC5C,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,oBAAoB,EAAE,cAAc,CAAC,EAAA,QAAA,EAAA,4lLAAA,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-
|
|
429
|
+
loadComponent: () => import('./acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs').then((c) => c.AXPThemePalettePreviewPageComponent),
|
|
430
430
|
},
|
|
431
431
|
],
|
|
432
432
|
},
|
|
@@ -4766,7 +4766,9 @@ class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
|
4766
4766
|
}
|
|
4767
4767
|
clear() {
|
|
4768
4768
|
this.selectbox?.reset(true);
|
|
4769
|
-
|
|
4769
|
+
setTimeout(() => {
|
|
4770
|
+
this.selectbox?.refresh();
|
|
4771
|
+
}, 0);
|
|
4770
4772
|
}
|
|
4771
4773
|
get __class() {
|
|
4772
4774
|
const cls = {};
|
|
@@ -4792,11 +4794,7 @@ class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
|
4792
4794
|
} @if(hasClearButton()) {
|
|
4793
4795
|
<ax-clear-button></ax-clear-button>
|
|
4794
4796
|
} @for (validation of validationRules(); track $index) {
|
|
4795
|
-
<ax-validation-rule
|
|
4796
|
-
[rule]="validation.rule"
|
|
4797
|
-
[message]="validation.options?.message"
|
|
4798
|
-
[options]="validation.options"
|
|
4799
|
-
></ax-validation-rule>
|
|
4797
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
4800
4798
|
}
|
|
4801
4799
|
</ax-select-box>
|
|
4802
4800
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i3$2.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "textTemplate", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i3$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i5$2.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -4822,11 +4820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
4822
4820
|
} @if(hasClearButton()) {
|
|
4823
4821
|
<ax-clear-button></ax-clear-button>
|
|
4824
4822
|
} @for (validation of validationRules(); track $index) {
|
|
4825
|
-
<ax-validation-rule
|
|
4826
|
-
[rule]="validation.rule"
|
|
4827
|
-
[message]="validation.options?.message"
|
|
4828
|
-
[options]="validation.options"
|
|
4829
|
-
></ax-validation-rule>
|
|
4823
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
4830
4824
|
}
|
|
4831
4825
|
</ax-select-box>
|
|
4832
4826
|
`,
|