@acorex/platform 19.1.16 → 19.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/fesm2022/acorex-platform-layout-designer.mjs +12 -12
  2. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-layout-entity.mjs +58 -23
  4. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-layout-search.mjs +14 -12
  6. package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
  7. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-Cpzt0cCT.mjs → acorex-platform-themes-default-entity-master-list-view.component-DarhCaO1.mjs} +5 -5
  8. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DarhCaO1.mjs.map +1 -0
  9. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Cpdymm-f.mjs → acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs} +3 -3
  10. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Cpdymm-f.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs.map} +1 -1
  11. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-D7Y93deN.mjs +118 -0
  12. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-D7Y93deN.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-themes-default.mjs +29 -17
  14. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-themes-shared.mjs +1 -1
  16. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  17. package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs → acorex-platform-widgets-checkbox-widget-column.component-C8NRF4BO.mjs} +9 -9
  18. package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-C8NRF4BO.mjs.map +1 -0
  19. package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs → acorex-platform-widgets-checkbox-widget-view.component-bf272Wuo.mjs} +9 -9
  20. package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-bf272Wuo.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-widgets.mjs +14 -22
  22. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  23. package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +1 -0
  24. package/layout/entity/lib/entity-middleware.d.ts +11 -0
  25. package/layout/entity/lib/entity-registery.service.d.ts +1 -0
  26. package/package.json +9 -9
  27. package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +6 -0
  28. package/themes/default/lib/pages/theme-palette-preview/theme-palette-preview.page.d.ts +77 -0
  29. package/themes/shared/index.d.ts +1 -0
  30. package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +0 -1
  31. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cpzt0cCT.mjs.map +0 -1
  32. package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs.map +0 -1
  33. package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { AXActionSheetModule } from '@acorex/components/action-sheet';
2
- import * as i8$1 from '@acorex/components/breadcrumbs';
2
+ import * as i1$1 from '@acorex/components/breadcrumbs';
3
3
  import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
4
4
  import * as i4 from '@acorex/components/button';
5
5
  import { AXButtonModule } from '@acorex/components/button';
@@ -90,7 +90,7 @@ class AXPEntityMasterSingleViewComponent {
90
90
  this.vm.destroy();
91
91
  }
92
92
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMasterSingleViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
93
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPEntityMasterSingleViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface-lowest ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface-lowest ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\"\n [class.ax-hidden]=\"store.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\" [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(action of vm.primaryActions();track $index) {\n <ax-button [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"store.isSmall() ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(action of vm.secondaryActions();track $index) {\n <ng-container>\n @if(action.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\" [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\" [class.ax-hidden]=\"sticky.isSticky\">\n <ax-tab-item [key]=\"'overview'\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item *feature=\"'entity-history'\" [key]=\"'history'\"\n [text]=\"('history' | translate | async) ?? 'History'\">\n </ax-tab-item>\n <ax-tab-item *feature=\"'entity-comment'\" [key]=\"'comments'\"\n [text]=\"('comments' | translate | async) ?? 'Comments'\">\n </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case('history'){\n <div></div>\n } @case('comments'){\n <div></div>\n <!-- <axm-comment-list-view vm=\"vm\"></axm-comment-list-view> -->\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "component", type: i2$1.AXDrawerContainerComponent, selector: "ax-drawer-container" }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i8.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i8.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { 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: AXBreadcrumbsModule }, { kind: "component", type: i8$1.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i8$1.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type:
93
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPEntityMasterSingleViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface-lowest ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface-lowest ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\"\n [class.ax-hidden]=\"store.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\" [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(action of vm.primaryActions();track $index) {\n <ax-button [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"store.isSmall() ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(action of vm.secondaryActions();track $index) {\n <ng-container>\n @if(action.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\" [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\" [class.ax-hidden]=\"sticky.isSticky\">\n <ax-tab-item [key]=\"'overview'\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item *feature=\"'entity-history'\" [key]=\"'history'\"\n [text]=\"('history' | translate | async) ?? 'History'\">\n </ax-tab-item>\n <ax-tab-item *feature=\"'entity-comment'\" [key]=\"'comments'\"\n [text]=\"('comments' | translate | async) ?? 'Comments'\">\n </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case('history'){\n <div></div>\n } @case('comments'){\n <div></div>\n <!-- <axm-comment-list-view vm=\"vm\"></axm-comment-list-view> -->\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "component", type: i2$1.AXDrawerContainerComponent, selector: "ax-drawer-container" }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i8.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i8.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { 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: AXBreadcrumbsModule }, { kind: "component", type: i1$1.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i1$1.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type:
94
94
  //
95
95
  AXPLayoutBuilderModule }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPStickyDirective, selector: "[axpSticky]", inputs: ["axpSticky", "stickyOffset", "stickyParent", "stickyTarget"], outputs: ["isStickyChange"], exportAs: ["axpSticky"] }, { kind: "component", type: AXPEntitySingleOverviewComponent, selector: "axp-entity-single-overview" }, { kind: "ngmodule", type:
96
96
  // AXMCommentModule,
@@ -127,4 +127,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
127
127
  }] });
128
128
 
129
129
  export { AXPEntityMasterSingleViewComponent };
130
- //# sourceMappingURL=acorex-platform-themes-default-entity-master-single-view.component-Cpdymm-f.mjs.map
130
+ //# sourceMappingURL=acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-themes-default-entity-master-single-view.component-Cpdymm-f.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.html","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.html"],"sourcesContent":["import { AXActionSheetModule } from '@acorex/components/action-sheet';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDrawerModule } from '@acorex/components/drawer';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPGridLayoutDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterSingleViewModel } from '@acorex/platform/layout/entity';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { AXPEntityDetailListViewComponent } from '../../entity-detail-list-view/entity-detail-list-view.component';\n\n@Component({\n templateUrl: './entity-single-overview.component.html',\n selector: 'axp-entity-single-overview',\n imports: [\n CommonModule,\n RouterModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXPopoverModule,\n AXFormModule,\n AXActionSheetModule,\n AXDrawerModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXButtonModule,\n AXBreadcrumbsModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPGridLayoutDirective,\n AXPEntityDetailListViewComponent,\n //\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntitySingleOverviewComponent {\n private activeRoute = inject(ActivatedRoute);\n protected readonly vm = this.activeRoute.snapshot.data['vm'] as AXPEntityMasterSingleViewModel;\n\n protected selectedRelatedIEntityTabIndex = signal(0);\n\n handleActiveRelatedEntityChanged(e: AXTabStripChangedEvent) {\n this.selectedRelatedIEntityTabIndex.set(e.index);\n }\n}\n","<div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-2\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() | translate | async }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button class=\"ax-xs\" color=\"ghost\" [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\">\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n @if(attr.showLabel()) {\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n }\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n</div>\n\n@if(vm.relatedEntities().length) {\n<ax-tabs [look]=\"'classic'\" class=\"ax-mt-4 ax-font-semibold\" #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\">\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n</ax-tabs>\n@for(e of vm.relatedEntities();track $index;let index= $index){\n<div [class.ax-hidden]=\"$index != selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n</div>\n} }","import { AXActionSheetModule } from '@acorex/components/action-sheet';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDrawerModule } from '@acorex/components/drawer';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPAuthModule } from '@acorex/platform/auth';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterSingleViewModel } from '@acorex/platform/layout/entity';\nimport { AXPLayoutThemeService } from '@acorex/platform/themes/shared';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { AXPEntitySingleOverviewComponent } from './overview/entity-single-overview.component';\n\n@Component({\n templateUrl: './entity-master-single-view.component.html',\n imports: [\n CommonModule,\n RouterModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXPopoverModule,\n AXFormModule,\n AXActionSheetModule,\n AXDrawerModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXButtonModule,\n AXBreadcrumbsModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPStickyDirective,\n AXPEntitySingleOverviewComponent,\n // AXMCommentModule,\n AXPAuthModule,\n //\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityMasterSingleViewComponent {\n private activeRoute = inject(ActivatedRoute);\n protected readonly vm = this.activeRoute.snapshot.data['vm'] as AXPEntityMasterSingleViewModel;\n //\n protected store = inject(AXPLayoutThemeService);\n\n protected selectedDetailTabIndex = signal('Overview');\n\n handleActiveDetailTabChanged(e: AXTabStripChangedEvent) {\n this.selectedDetailTabIndex.set(e.tab.key);\n }\n\n ngOnDestroy(): void {\n this.vm.destroy();\n }\n}\n","<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface-lowest ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface-lowest ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\"\n [class.ax-hidden]=\"store.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\" [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(action of vm.primaryActions();track $index) {\n <ax-button [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"store.isSmall() ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(action of vm.secondaryActions();track $index) {\n <ng-container>\n @if(action.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\" [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\" [class.ax-hidden]=\"sticky.isSticky\">\n <ax-tab-item [key]=\"'overview'\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item *feature=\"'entity-history'\" [key]=\"'history'\"\n [text]=\"('history' | translate | async) ?? 'History'\">\n </ax-tab-item>\n <ax-tab-item *feature=\"'entity-comment'\" [key]=\"'comments'\"\n [text]=\"('comments' | translate | async) ?? 'Comments'\">\n </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case('history'){\n <div></div>\n } @case('comments'){\n <div></div>\n <!-- <axm-comment-list-view vm=\"vm\"></axm-comment-list-view> -->\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>"],"names":["i2","i3","i4","i5","i7","i6","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgDa,gCAAgC,CAAA;AA3B7C,IAAA,WAAA,GAAA;AA4BU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC;QACzB,IAAE,CAAA,EAAA,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAmC;AAEpF,QAAA,IAAA,C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A,CAAA;;2FAIV,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBA5B9C,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,cAAc;wBACd,mBAAmB;;wBAEnB,sBAAsB;wBACtB,gBAAgB;wBAChB,kBAAkB;wBAClB,gCAAgC;;wBAEhC,aAAa;;wBAEb,mBAAmB;qBACpB,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,yiLAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.html","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.html"],"sourcesContent":["import { AXActionSheetModule } from '@acorex/components/action-sheet';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDrawerModule } from '@acorex/components/drawer';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPGridLayoutDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterSingleViewModel } from '@acorex/platform/layout/entity';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { AXPEntityDetailListViewComponent } from '../../entity-detail-list-view/entity-detail-list-view.component';\n\n@Component({\n templateUrl: './entity-single-overview.component.html',\n selector: 'axp-entity-single-overview',\n imports: [\n CommonModule,\n RouterModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXPopoverModule,\n AXFormModule,\n AXActionSheetModule,\n AXDrawerModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXButtonModule,\n AXBreadcrumbsModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPGridLayoutDirective,\n AXPEntityDetailListViewComponent,\n //\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntitySingleOverviewComponent {\n private activeRoute = inject(ActivatedRoute);\n protected readonly vm = this.activeRoute.snapshot.data['vm'] as AXPEntityMasterSingleViewModel;\n\n protected selectedRelatedIEntityTabIndex = signal(0);\n\n handleActiveRelatedEntityChanged(e: AXTabStripChangedEvent) {\n this.selectedRelatedIEntityTabIndex.set(e.index);\n }\n}\n","<div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-2\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() | translate | async }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button class=\"ax-xs\" color=\"ghost\" [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\">\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n @if(attr.showLabel()) {\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n }\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n</div>\n\n@if(vm.relatedEntities().length) {\n<ax-tabs [look]=\"'classic'\" class=\"ax-mt-4 ax-font-semibold\" #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\">\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n</ax-tabs>\n@for(e of vm.relatedEntities();track $index;let index= $index){\n<div [class.ax-hidden]=\"$index != selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n</div>\n} }","import { AXActionSheetModule } from '@acorex/components/action-sheet';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDrawerModule } from '@acorex/components/drawer';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPAuthModule } from '@acorex/platform/auth';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterSingleViewModel } from '@acorex/platform/layout/entity';\nimport { AXPLayoutThemeService } from '@acorex/platform/themes/shared';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { AXPEntitySingleOverviewComponent } from './overview/entity-single-overview.component';\n\n@Component({\n templateUrl: './entity-master-single-view.component.html',\n imports: [\n CommonModule,\n RouterModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXPopoverModule,\n AXFormModule,\n AXActionSheetModule,\n AXDrawerModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXButtonModule,\n AXBreadcrumbsModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPStickyDirective,\n AXPEntitySingleOverviewComponent,\n // AXMCommentModule,\n AXPAuthModule,\n //\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityMasterSingleViewComponent {\n private activeRoute = inject(ActivatedRoute);\n protected readonly vm = this.activeRoute.snapshot.data['vm'] as AXPEntityMasterSingleViewModel;\n //\n protected store = inject(AXPLayoutThemeService);\n\n protected selectedDetailTabIndex = signal('Overview');\n\n handleActiveDetailTabChanged(e: AXTabStripChangedEvent) {\n this.selectedDetailTabIndex.set(e.tab.key);\n }\n\n ngOnDestroy(): void {\n this.vm.destroy();\n }\n}\n","<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface-lowest ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface-lowest ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\"\n [class.ax-hidden]=\"store.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\" [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(action of vm.primaryActions();track $index) {\n <ax-button [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"store.isSmall() ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(action of vm.secondaryActions();track $index) {\n <ng-container>\n @if(action.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\" [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\" [class.ax-hidden]=\"sticky.isSticky\">\n <ax-tab-item [key]=\"'overview'\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item *feature=\"'entity-history'\" [key]=\"'history'\"\n [text]=\"('history' | translate | async) ?? 'History'\">\n </ax-tab-item>\n <ax-tab-item *feature=\"'entity-comment'\" [key]=\"'comments'\"\n [text]=\"('comments' | translate | async) ?? 'Comments'\">\n </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case('history'){\n <div></div>\n } @case('comments'){\n <div></div>\n <!-- <axm-comment-list-view vm=\"vm\"></axm-comment-list-view> -->\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>"],"names":["i2","i3","i4","i5","i7","i6","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgDa,gCAAgC,CAAA;AA3B7C,IAAA,WAAA,GAAA;AA4BU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC;QACzB,IAAE,CAAA,EAAA,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAmC;AAEpF,QAAA,IAAA,CAAA,8BAA8B,GAAG,MAAM,CAAC,CAAC,CAAC;AAKrD;AAHC,IAAA,gCAAgC,CAAC,CAAyB,EAAA;QACxD,IAAI,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;;8GAPvC,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhC,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChD7C,8vEAqDG,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED5BC,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,U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AA,UAAA,EAAA,IAAA,EAAA,gBAAgB,EAChB,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,qLAClB,gCAAgC,EAAA,QAAA,EAAA,4BAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA;;gBAEhC,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA;;gBAEb,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIV,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBA5B9C,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,cAAc;wBACd,mBAAmB;;wBAEnB,sBAAsB;wBACtB,gBAAgB;wBAChB,kBAAkB;wBAClB,gCAAgC;;wBAEhC,aAAa;;wBAEb,mBAAmB;qBACpB,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,yiLAAA,EAAA;;;;;"}
@@ -0,0 +1,118 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import * as i0 from '@angular/core';
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 = ['ghost', 'primary', 'secondary', 'success', 'warning', 'danger', 'accent1', 'accent2', 'accent3'];
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\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> (layout.isDarkMode() ? 500: 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-12 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 </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
+ //
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:
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-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
+ }
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\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> (layout.isDarkMode() ? 500: 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-12 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 </axp-layout-content>\n\n</axp-layout-simple-page>" }]
115
+ }] });
116
+
117
+ export { AXPThemePalettePreviewPageComponent };
118
+ //# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-D7Y93deN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-themes-default-theme-palette-preview.page-D7Y93deN.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> (layout.isDarkMode() ? 500: 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-12 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 </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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