@acorex/platform 19.2.17-next.0 → 19.2.19

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 (140) hide show
  1. package/common/lib/file-storage/file-storage.types.d.ts +4 -0
  2. package/common/lib/layout/menu/menu.types.d.ts +2 -1
  3. package/common/lib/search/search-definition.builder.d.ts +0 -1
  4. package/common/lib/search/search.types.d.ts +12 -0
  5. package/common/lib/utils/filter-cleaner.d.ts +2 -0
  6. package/common/lib/utils/index.d.ts +1 -0
  7. package/core/lib/directives/dbl-click.directive.d.ts +11 -0
  8. package/core/lib/directives/index.d.ts +1 -0
  9. package/core/lib/types.d.ts +8 -0
  10. package/fesm2022/acorex-platform-auth.mjs +1 -1
  11. package/fesm2022/acorex-platform-common.mjs +45 -10
  12. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-core.mjs +41 -2
  14. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-layout-builder.mjs +1 -1
  16. package/fesm2022/acorex-platform-layout-designer.mjs +9 -9
  17. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-layout-entity.mjs +112 -100
  19. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-layout-search.mjs +34 -12
  21. package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
  22. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Bvwr0PVk.mjs → acorex-platform-themes-default-entity-master-create-view.component-LKhN00ob.mjs} +5 -5
  23. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Bvwr0PVk.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-LKhN00ob.mjs.map} +1 -1
  24. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CdC4eF25.mjs +400 -0
  25. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CdC4eF25.mjs.map +1 -0
  26. package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-BAU_s90_.mjs → acorex-platform-themes-default-entity-master-modify-view.component-B9TUh-2S.mjs} +5 -5
  27. package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-BAU_s90_.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-B9TUh-2S.mjs.map} +1 -1
  28. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-ZfUaIxUa.mjs +135 -0
  29. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-ZfUaIxUa.mjs.map +1 -0
  30. package/fesm2022/{acorex-platform-themes-default-error-401.component-Brx-zHqH.mjs → acorex-platform-themes-default-error-401.component-Ycz5LYvk.mjs} +2 -2
  31. package/fesm2022/{acorex-platform-themes-default-error-401.component-Brx-zHqH.mjs.map → acorex-platform-themes-default-error-401.component-Ycz5LYvk.mjs.map} +1 -1
  32. package/fesm2022/{acorex-platform-themes-default-error-404.component-C8mJP9D8.mjs → acorex-platform-themes-default-error-404.component-DvVSMoRS.mjs} +2 -2
  33. package/fesm2022/{acorex-platform-themes-default-error-404.component-C8mJP9D8.mjs.map → acorex-platform-themes-default-error-404.component-DvVSMoRS.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-themes-default-error-offline.component-CwBClgcf.mjs → acorex-platform-themes-default-error-offline.component-DU6dstng.mjs} +2 -2
  35. package/fesm2022/{acorex-platform-themes-default-error-offline.component-CwBClgcf.mjs.map → acorex-platform-themes-default-error-offline.component-DU6dstng.mjs.map} +1 -1
  36. package/fesm2022/acorex-platform-themes-default-search-popup.component-CGARdU4C.mjs +128 -0
  37. package/fesm2022/acorex-platform-themes-default-search-popup.component-CGARdU4C.mjs.map +1 -0
  38. package/fesm2022/acorex-platform-themes-default-setting-page.component-Cd2yaPEZ.mjs +74 -0
  39. package/fesm2022/acorex-platform-themes-default-setting-page.component-Cd2yaPEZ.mjs.map +1 -0
  40. package/fesm2022/{acorex-platform-themes-default-setting-view.component-fuHM7W6Y.mjs → acorex-platform-themes-default-setting-view.component-B3Aob67f.mjs} +9 -7
  41. package/fesm2022/acorex-platform-themes-default-setting-view.component-B3Aob67f.mjs.map +1 -0
  42. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-DqAngWCf.mjs +146 -0
  43. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-DqAngWCf.mjs.map +1 -0
  44. package/fesm2022/acorex-platform-themes-default.mjs +288 -143
  45. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  46. package/fesm2022/acorex-platform-themes-shared.mjs +282 -187
  47. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  48. package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-BWhqDxGH.mjs → acorex-platform-widgets-button-widget-designer.component-DVhi_mBH.mjs} +3 -3
  49. package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-BWhqDxGH.mjs.map → acorex-platform-widgets-button-widget-designer.component-DVhi_mBH.mjs.map} +1 -1
  50. package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-C8NRF4BO.mjs → acorex-platform-widgets-checkbox-widget-column.component-BfVyjSLL.mjs} +2 -2
  51. package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-C8NRF4BO.mjs.map → acorex-platform-widgets-checkbox-widget-column.component-BfVyjSLL.mjs.map} +1 -1
  52. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-D8KErkus.mjs → acorex-platform-widgets-checkbox-widget-designer.component-CrdfTgeq.mjs} +2 -2
  53. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-D8KErkus.mjs.map → acorex-platform-widgets-checkbox-widget-designer.component-CrdfTgeq.mjs.map} +1 -1
  54. package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-bf272Wuo.mjs → acorex-platform-widgets-checkbox-widget-view.component-DfSoF52n.mjs} +2 -2
  55. package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-bf272Wuo.mjs.map → acorex-platform-widgets-checkbox-widget-view.component-DfSoF52n.mjs.map} +1 -1
  56. package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-CG3HEOUD.mjs → acorex-platform-widgets-color-box-widget-designer.component-BM1G-WaN.mjs} +2 -2
  57. package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-CG3HEOUD.mjs.map → acorex-platform-widgets-color-box-widget-designer.component-BM1G-WaN.mjs.map} +1 -1
  58. package/fesm2022/{acorex-platform-widgets-contact-widget-filter.component-B1HiCGC6.mjs → acorex-platform-widgets-contact-widget-filter.component-B1cKV-TM.mjs} +2 -2
  59. package/fesm2022/{acorex-platform-widgets-contact-widget-filter.component-B1HiCGC6.mjs.map → acorex-platform-widgets-contact-widget-filter.component-B1cKV-TM.mjs.map} +1 -1
  60. package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-CITselce.mjs → acorex-platform-widgets-page-widget-designer.component-DtwyOnuO.mjs} +2 -2
  61. package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-CITselce.mjs.map → acorex-platform-widgets-page-widget-designer.component-DtwyOnuO.mjs.map} +1 -1
  62. package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-DYExfz5U.mjs → acorex-platform-widgets-rich-text-popup.component-CXLjPrFq.mjs} +3 -3
  63. package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-DYExfz5U.mjs.map → acorex-platform-widgets-rich-text-popup.component-CXLjPrFq.mjs.map} +1 -1
  64. package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-Emh145xN.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-u2RCVYRB.mjs} +3 -3
  65. package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-Emh145xN.mjs.map → acorex-platform-widgets-tabular-data-edit-popup.component-u2RCVYRB.mjs.map} +1 -1
  66. package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-Ca6Cwzez.mjs → acorex-platform-widgets-tabular-data-view-popup.component-BiO5M_eY.mjs} +3 -3
  67. package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-Ca6Cwzez.mjs.map → acorex-platform-widgets-tabular-data-view-popup.component-BiO5M_eY.mjs.map} +1 -1
  68. package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-BToPbMjj.mjs → acorex-platform-widgets-text-block-widget-designer.component-C3H0Zldz.mjs} +2 -2
  69. package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-BToPbMjj.mjs.map → acorex-platform-widgets-text-block-widget-designer.component-C3H0Zldz.mjs.map} +1 -1
  70. package/fesm2022/acorex-platform-widgets.mjs +1191 -291
  71. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  72. package/fesm2022/acorex-platform-workflow.mjs +1 -1
  73. package/layout/entity/lib/entity-master-list.viewmodel.d.ts +1 -2
  74. package/layout/entity/lib/entity-storage-service.d.ts +4 -0
  75. package/layout/entity/lib/entity.config.d.ts +1 -1
  76. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +1 -0
  77. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.d.ts +2 -1
  78. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.d.ts +3 -1
  79. package/layout/entity/lib/workflows/delete-entity.workflow.d.ts +4 -0
  80. package/layout/search/lib/search.viewmodel.d.ts +2 -0
  81. package/layout/setting/lib/setting.viewmodel.d.ts +4 -0
  82. package/package.json +1 -1
  83. package/themes/default/lib/layouts/base/base-page.component.d.ts +83 -0
  84. package/themes/default/lib/layouts/base/base-page.types.d.ts +9 -0
  85. package/themes/default/lib/layouts/base/index.d.ts +3 -1
  86. package/themes/default/lib/layouts/base/simple-page/index.d.ts +1 -0
  87. package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +16 -5
  88. package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +4 -0
  89. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +12 -2
  90. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +0 -3
  91. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.d.ts +0 -3
  92. package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +4 -0
  93. package/themes/default/lib/layouts/root-layout/components/footer/footer.component.d.ts +1 -1
  94. package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +5 -1
  95. package/themes/default/lib/layouts/root-layout/components/horizontal-menu/horizontal-menu.component.d.ts +86 -0
  96. package/themes/default/lib/layouts/root-layout/components/{menu/root-menu.component.d.ts → side-menu/side-menu.component.d.ts} +1 -2
  97. package/themes/default/lib/layouts/root-layout/horizontal/horizontal-layout.component.d.ts +79 -0
  98. package/themes/default/lib/layouts/root-layout/index.d.ts +3 -2
  99. package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +26 -19
  100. package/themes/default/lib/layouts/root-layout/vertical/vertical-layout.component.d.ts +79 -0
  101. package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +2 -1
  102. package/themes/default/lib/layouts/setting-layout/setting-page/setting-page.component.d.ts +1 -1
  103. package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +4 -0
  104. package/themes/default/lib/pages/theme-palette-preview/theme-palette-preview.page.d.ts +5 -1
  105. package/themes/shared/index.d.ts +1 -0
  106. package/themes/shared/lib/components/drawer/drawer.directive.d.ts +22 -0
  107. package/themes/shared/lib/components/drawer/index.d.ts +1 -0
  108. package/themes/shared/lib/components/layout-elements/index.d.ts +4 -4
  109. package/themes/shared/lib/components/layout-elements/layout-actions.component.d.ts +1 -1
  110. package/themes/shared/lib/components/layout-elements/layout-blocks.component.d.ts +1 -1
  111. package/themes/shared/lib/components/layout-elements/layout-footer.component.d.ts +1 -1
  112. package/themes/shared/lib/components/layout-elements/layout-header.component.d.ts +7 -3
  113. package/themes/shared/lib/components/layout-elements/layout-section.component.d.ts +3 -7
  114. package/themes/shared/lib/components/layout-elements/layout-side.component.d.ts +6 -13
  115. package/themes/shared/lib/components/slots/theme-slot.component.d.ts +4 -0
  116. package/themes/shared/lib/setting.keys.d.ts +2 -1
  117. package/themes/shared/lib/theme.service.d.ts +5 -1
  118. package/themes/shared/lib/theme.types.d.ts +4 -0
  119. package/widgets/lib/widgets/advance/gallery/gallery-widget-edit.component.d.ts +13 -0
  120. package/widgets/lib/widgets/advance/gallery/index.d.ts +2 -1
  121. package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget-edit.component.d.ts +5 -0
  122. package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget-edit.component.d.ts +32 -2
  123. package/widgets/lib/widgets/charts/donut-chart/donut-chart.type.d.ts +15 -0
  124. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget-edit.component.d.ts +16 -3
  125. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart.type.d.ts +1 -1
  126. package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget-edit.component.d.ts +2 -2
  127. package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +1 -0
  128. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BLM2kf7R.mjs +0 -405
  129. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BLM2kf7R.mjs.map +0 -1
  130. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BmBPyfQY.mjs +0 -130
  131. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BmBPyfQY.mjs.map +0 -1
  132. package/fesm2022/acorex-platform-themes-default-search-popup.component-DfeNmpS9.mjs +0 -129
  133. package/fesm2022/acorex-platform-themes-default-search-popup.component-DfeNmpS9.mjs.map +0 -1
  134. package/fesm2022/acorex-platform-themes-default-setting-page.component-DtJmPSFo.mjs +0 -75
  135. package/fesm2022/acorex-platform-themes-default-setting-page.component-DtJmPSFo.mjs.map +0 -1
  136. package/fesm2022/acorex-platform-themes-default-setting-view.component-fuHM7W6Y.mjs.map +0 -1
  137. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-DkjAgWLn.mjs +0 -138
  138. package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-DkjAgWLn.mjs.map +0 -1
  139. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-filters/list-view-option-filters.component.d.ts +0 -14
  140. package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +0 -27
@@ -1,138 +0,0 @@
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 = ['default', '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
- getTextColor(range) {
85
- switch (true) {
86
- case (range >= 50 && range <= 100):
87
- return 'lightest';
88
- case (range >= 200 && range <= 300):
89
- return 'lighter';
90
- case (range === 400):
91
- return 'light';
92
- case (range === 500):
93
- return 'surface';
94
- case (range === 600):
95
- return 'dark';
96
- case (range >= 700 && range <= 800):
97
- return 'darker';
98
- case (range >= 900 && range <= 950):
99
- return 'darkest';
100
- default:
101
- return 'unknown';
102
- }
103
- }
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemePalettePreviewPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
105
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPThemePalettePreviewPageComponent, isStandalone: true, selector: "ng-component", providers: [AXPSettingsViewModel, AXUnsubscriber], ngImport: i0, template: "<axp-layout-simple-page *translate=\"let t\">\n <axp-layout-header>\n <axp-layout-title> {{currentPallete().title}} Palette Colors </axp-layout-title>\n\n <axp-layout-description> Preview of The Theme Colors </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward\"></i>\n </ng-template>\n <ax-breadcrumbs-item> Theme </ax-breadcrumbs-item>\n <ax-breadcrumbs-item> Preview </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n @if(!isLoading()) {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors.slice(1); track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n\n @for (range of ranges; track $index) {\n <div\n class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md ax-bg-{{color}}-{{range}} ax-text-{{color}}-on-{{getTextColor(range)}}\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' + range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"surface-container\">\n <div class=\"ax-border-lightest ax-bg-lightest ax-text-on-lightest\">Lightest</div>\n <div class=\"ax-border-lighter ax-bg-lighter ax-text-on-lighter\">Lighter</div>\n <div class=\"ax-border-light ax-bg-light ax-text-on-light\">Light</div>\n <div class=\"!ax-col-span-12 ax-border-surface ax-bg-surface ax-text-on-surface\">Surface</div>\n <div class=\"ax-border-dark ax-bg-dark ax-text-on-dark\">Dark</div>\n <div class=\"ax-border-darker ax-bg-darker ax-text-on-darker\">Darker</div>\n <div class=\"ax-border-darkest ax-bg-darkest ax-text-on-darkest\">Darkest</div>\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Color Surfaces</h2>\n @for(color of colors.slice(1);track $index){\n <h6 class=\"!ax-mb-4 !ax-text-sm ax-capitalize\">{{color}}</h6>\n <div class=\"surface-container\">\n <div class=\" ax-border-{{color}}-lightest ax-bg-{{color}}-lightest ax-text-{{color}}-on-lightest\">Surface Lightest\n </div>\n <div class=\" ax-border-{{color}}-lighter ax-bg-{{color}}-lighter ax-text-{{color}}-on-lighter\">Surface Lighter\n </div>\n <div class=\" ax-border-{{color}}-light ax-bg-{{color}}-light ax-text-{{color}}-on-light\">Surface Light</div>\n <div class=\"!ax-col-span-12 ax-border-{{color}}-surface ax-bg-{{color}}-surface ax-text-{{color}}-on-surface \">\n Surface</div>\n <div class=\" ax-border-{{color}}-dark ax-bg-{{color}}-dark ax-text-{{color}}-on-dark\">Surface Dark</div>\n <div class=\" ax-border-{{color}}-darker ax-bg-{{color}}-darker ax-text-{{color}}-on-darker\">Surface Darker</div>\n <div class=\" ax-border-{{color}}-darkest ax-bg-{{color}}-darkest ax-text-{{color}}-on-darkest\">Surface Darkest\n </div>\n </div>\n }\n\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Components</h2>\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3\">\n <ax-button [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n </axp-layout-content>\n</axp-layout-simple-page>", styles: [".surface-container{margin-bottom:2rem;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.75rem;border-radius:.75rem}.surface-container>*{display:flex;min-height:3rem;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;grid-column:span 4 / span 4;border-radius:.375rem;border-width:1px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
106
- //
107
- 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:
108
- //
109
- AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPThemeLayoutHeaderTemplateComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutActionsComponent, selector: "axp-layout-actions" }, { kind: "component", type: AXPThemeLayoutPagePrimaryActionsComponent, selector: "axp-layout-actions-primary" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
110
- }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemePalettePreviewPageComponent, decorators: [{
112
- type: Component,
113
- args: [{ standalone: true, imports: [
114
- CommonModule,
115
- FormsModule,
116
- RouterModule,
117
- //
118
- AXSearchBoxModule,
119
- AXDecoratorModule,
120
- AXTreeViewModule,
121
- AXBreadcrumbsModule,
122
- AXTranslationModule,
123
- AXButtonModule,
124
- AXTabsModule,
125
- AXBadgeModule,
126
- AXLoadingModule,
127
- AXDropdownButtonModule,
128
- //
129
- AXPSimplePageLayout,
130
- AXPThemeLayoutBlockComponent,
131
- AXPThemeLayoutHeaderTemplateComponent,
132
- AXPThemeLayoutActionsComponent,
133
- AXPThemeLayoutPagePrimaryActionsComponent,
134
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPSettingsViewModel, AXUnsubscriber], template: "<axp-layout-simple-page *translate=\"let t\">\n <axp-layout-header>\n <axp-layout-title> {{currentPallete().title}} Palette Colors </axp-layout-title>\n\n <axp-layout-description> Preview of The Theme Colors </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward\"></i>\n </ng-template>\n <ax-breadcrumbs-item> Theme </ax-breadcrumbs-item>\n <ax-breadcrumbs-item> Preview </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n @if(!isLoading()) {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors.slice(1); track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n\n @for (range of ranges; track $index) {\n <div\n class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md ax-bg-{{color}}-{{range}} ax-text-{{color}}-on-{{getTextColor(range)}}\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' + range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"surface-container\">\n <div class=\"ax-border-lightest ax-bg-lightest ax-text-on-lightest\">Lightest</div>\n <div class=\"ax-border-lighter ax-bg-lighter ax-text-on-lighter\">Lighter</div>\n <div class=\"ax-border-light ax-bg-light ax-text-on-light\">Light</div>\n <div class=\"!ax-col-span-12 ax-border-surface ax-bg-surface ax-text-on-surface\">Surface</div>\n <div class=\"ax-border-dark ax-bg-dark ax-text-on-dark\">Dark</div>\n <div class=\"ax-border-darker ax-bg-darker ax-text-on-darker\">Darker</div>\n <div class=\"ax-border-darkest ax-bg-darkest ax-text-on-darkest\">Darkest</div>\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Color Surfaces</h2>\n @for(color of colors.slice(1);track $index){\n <h6 class=\"!ax-mb-4 !ax-text-sm ax-capitalize\">{{color}}</h6>\n <div class=\"surface-container\">\n <div class=\" ax-border-{{color}}-lightest ax-bg-{{color}}-lightest ax-text-{{color}}-on-lightest\">Surface Lightest\n </div>\n <div class=\" ax-border-{{color}}-lighter ax-bg-{{color}}-lighter ax-text-{{color}}-on-lighter\">Surface Lighter\n </div>\n <div class=\" ax-border-{{color}}-light ax-bg-{{color}}-light ax-text-{{color}}-on-light\">Surface Light</div>\n <div class=\"!ax-col-span-12 ax-border-{{color}}-surface ax-bg-{{color}}-surface ax-text-{{color}}-on-surface \">\n Surface</div>\n <div class=\" ax-border-{{color}}-dark ax-bg-{{color}}-dark ax-text-{{color}}-on-dark\">Surface Dark</div>\n <div class=\" ax-border-{{color}}-darker ax-bg-{{color}}-darker ax-text-{{color}}-on-darker\">Surface Darker</div>\n <div class=\" ax-border-{{color}}-darkest ax-bg-{{color}}-darkest ax-text-{{color}}-on-darkest\">Surface Darkest\n </div>\n </div>\n }\n\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Components</h2>\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3\">\n <ax-button [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n </axp-layout-content>\n</axp-layout-simple-page>", styles: [".surface-container{margin-bottom:2rem;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.75rem;border-radius:.75rem}.surface-container>*{display:flex;min-height:3rem;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;grid-column:span 4 / span 4;border-radius:.375rem;border-width:1px}\n"] }]
135
- }] });
136
-
137
- export { AXPThemePalettePreviewPageComponent };
138
- //# sourceMappingURL=acorex-platform-themes-default-theme-palette-preview.page-DkjAgWLn.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-themes-default-theme-palette-preview.page-DkjAgWLn.mjs","sources":["../../../../libs/platform/themes/default/src/lib/pages/theme-palette-preview/theme-palette-preview.page.ts","../../../../libs/platform/themes/default/src/lib/pages/theme-palette-preview/theme-palette-preview.page.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutPagePrimaryActionsComponent,\n AXPLayoutThemeService,\n AXP_THEME_PALETTE_PROVIDER,\n AXPThemePalette,\n AXPThemeLayoutSetting,\n} from '@acorex/platform/themes/shared';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPSettingsViewModel } from '@acorex/platform/layout/setting';\nimport { FormsModule } from '@angular/forms';\nimport { AXTreeViewModule } from '@acorex/components/tree-view';\nimport { RouterModule } from '@angular/router';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXBadgeModule } from '@acorex/components/badge';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXPSimplePageLayout } from '../../layouts/base';\nimport { AXPSettingScope, AXPSettingService } from '@acorex/platform/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n //\n AXSearchBoxModule,\n AXDecoratorModule,\n AXTreeViewModule,\n AXBreadcrumbsModule,\n AXTranslationModule,\n AXButtonModule,\n AXTabsModule,\n AXBadgeModule,\n AXLoadingModule,\n AXDropdownButtonModule,\n //\n AXPSimplePageLayout,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutPagePrimaryActionsComponent,\n ],\n templateUrl: './theme-palette-preview.page.html',\n styleUrl: './theme-palette-preview.page.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPSettingsViewModel, AXUnsubscriber]\n})\n\nexport class AXPThemePalettePreviewPageComponent {\n\n protected readonly layout = inject(AXPLayoutThemeService);\n protected readonly settingService = inject(AXPSettingService);\n private themePalleteProvider = inject(AXP_THEME_PALETTE_PROVIDER);\n\n private readonly unsubscriber = inject(AXUnsubscriber);\n\n private defaultPalette: AXPThemePalette = { name: 'default', title: 'Default', path: 'fake', colors: [] };\n\n protected readonly palettes = signal<AXPThemePalette[]>([]);\n protected currentPalleteName = signal<string>('default');\n protected currentPallete = computed<AXPThemePalette>(() => {\n return this.palettes().find(c => c.name == this.currentPalleteName()) ?? this.defaultPalette;\n });\n\n\n protected hexColors = signal<{ [key: string]: string }>({});\n\n protected isLoading = signal(true);\n\n protected readonly ranges = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];\n protected readonly colors = ['default', 'primary', 'secondary', 'success', 'warning', 'danger', '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 protected getTextColor(range: number): string {\n switch (true) {\n case (range >= 50 && range <= 100):\n return 'lightest';\n case (range >= 200 && range <= 300):\n return 'lighter';\n case (range === 400):\n return 'light';\n case (range === 500):\n return 'surface';\n case (range === 600):\n return 'dark';\n case (range >= 700 && range <= 800):\n return 'darker';\n case (range >= 900 && range <= 950):\n return 'darkest';\n default:\n return 'unknown';\n }\n }\n\n\n}","<axp-layout-simple-page *translate=\"let t\">\n <axp-layout-header>\n <axp-layout-title> {{currentPallete().title}} Palette Colors </axp-layout-title>\n\n <axp-layout-description> Preview of The Theme Colors </axp-layout-description>\n\n <axp-layout-breadcrumbs>\n <ax-breadcrumbs [class.ax-hidden]=\"layout.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-regular fa-slash-forward\"></i>\n </ng-template>\n <ax-breadcrumbs-item> Theme </ax-breadcrumbs-item>\n <ax-breadcrumbs-item> Preview </ax-breadcrumbs-item>\n </ax-breadcrumbs>\n </axp-layout-breadcrumbs>\n\n <axp-layout-actions>\n <axp-layout-actions-primary>\n <ax-dropdown-button [text]=\"currentPallete().title\" [color]=\"'primary'\">\n <ax-button-item-list>\n @for (palette of palettes(); track $index) {\n <ax-button-item [text]=\"palette.title\" [selected]=\"palette.name==currentPalleteName()\"\n (onClick)=\"handleChangeTheme(palette)\">\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-button>\n </axp-layout-actions-primary>\n </axp-layout-actions>\n </axp-layout-header>\n\n <axp-layout-content class=\"ax-justify-center ax-px-16 ax-py-8\">\n @if(!isLoading()) {\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Colors</h2>\n <div class=\"ax-grid ax-grid-flow-row ax-gap-4\">\n @for (color of colors.slice(1); track $index) {\n <div class=\"ax-flex ax-flex-row ax-gap-4\">\n <div class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-items-start ax-me-10\"\n [style.color]=\"'rgb(var(--ax-sys-color-' + color + '-500))'\">\n <div class=\"ax-font-semibold ax-text-xs\">\n <span class=\"ax-capitalize\">{{color}}</span>\n </div>\n <div class=\"ax-text-2xl ax-mt-2\">\n <span class=\"ax-opacity-50\">#</span><span class=\"ax-capitalize\">{{hexColors()[color +\n '-500'].slice(1)}}</span>\n </div>\n </div>\n\n @for (range of ranges; track $index) {\n <div\n class=\"ax-h-20 ax-w-20 ax-rounded-lg ax-flex ax-justify-center ax-flex-col ax-shadow-md ax-bg-{{color}}-{{range}} ax-text-{{color}}-on-{{getTextColor(range)}}\">\n <div>\n <div class=\"ax-text-center ax-text-sm ax-font-medium\">{{range}}</div>\n <div class=\"ax-text-center ax-text-xs ax-uppercase ax-opacity-90\">{{hexColors()[color + '-' + range]}}</div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Surfaces</h2>\n <div class=\"surface-container\">\n <div class=\"ax-border-lightest ax-bg-lightest ax-text-on-lightest\">Lightest</div>\n <div class=\"ax-border-lighter ax-bg-lighter ax-text-on-lighter\">Lighter</div>\n <div class=\"ax-border-light ax-bg-light ax-text-on-light\">Light</div>\n <div class=\"!ax-col-span-12 ax-border-surface ax-bg-surface ax-text-on-surface\">Surface</div>\n <div class=\"ax-border-dark ax-bg-dark ax-text-on-dark\">Dark</div>\n <div class=\"ax-border-darker ax-bg-darker ax-text-on-darker\">Darker</div>\n <div class=\"ax-border-darkest ax-bg-darkest ax-text-on-darkest\">Darkest</div>\n </div>\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mb-4\">Color Surfaces</h2>\n @for(color of colors.slice(1);track $index){\n <h6 class=\"!ax-mb-4 !ax-text-sm ax-capitalize\">{{color}}</h6>\n <div class=\"surface-container\">\n <div class=\" ax-border-{{color}}-lightest ax-bg-{{color}}-lightest ax-text-{{color}}-on-lightest\">Surface Lightest\n </div>\n <div class=\" ax-border-{{color}}-lighter ax-bg-{{color}}-lighter ax-text-{{color}}-on-lighter\">Surface Lighter\n </div>\n <div class=\" ax-border-{{color}}-light ax-bg-{{color}}-light ax-text-{{color}}-on-light\">Surface Light</div>\n <div class=\"!ax-col-span-12 ax-border-{{color}}-surface ax-bg-{{color}}-surface ax-text-{{color}}-on-surface \">\n Surface</div>\n <div class=\" ax-border-{{color}}-dark ax-bg-{{color}}-dark ax-text-{{color}}-on-dark\">Surface Dark</div>\n <div class=\" ax-border-{{color}}-darker ax-bg-{{color}}-darker ax-text-{{color}}-on-darker\">Surface Darker</div>\n <div class=\" ax-border-{{color}}-darkest ax-bg-{{color}}-darkest ax-text-{{color}}-on-darkest\">Surface Darkest\n </div>\n </div>\n }\n\n }\n\n <h2 class=\"ax-font-semibold ax-text-2xl ax-mt-8 ax-mb-4\">Components</h2>\n <div class=\"ax-grid ax-grid-cols-8 ax-gap-x-6 ax-gap-y-12 ax-justify-center\">\n @for (color of colors; track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-3\">\n <ax-button [text]=\"color\" [look]=\"'solid'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'twotone'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'outline'\" [color]=\"color\"> </ax-button>\n <ax-button [text]=\"color\" [look]=\"'blank'\" [color]=\"color\"> </ax-button>\n </div>\n }\n </div>\n </axp-layout-content>\n</axp-layout-simple-page>"],"names":["i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MA0Da,mCAAmC,CAAA;AA9BhD,IAAA,WAAA,GAAA;AAgCqB,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,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A;;;;;"}
@@ -1,14 +0,0 @@
1
- import { AXPEntityMasterListViewModel } from '@acorex/platform/layout/entity';
2
- import { EventEmitter } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class AXPListViewOptionFiltersComponent {
5
- constructor();
6
- vm: AXPEntityMasterListViewModel;
7
- onClosed: EventEmitter<void>;
8
- protected handleClose(): void;
9
- protected handleResetClick(): void;
10
- protected handleDiscardClick(): void;
11
- protected handleApplyClick(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPListViewOptionFiltersComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPListViewOptionFiltersComponent, "axp-list-view-option-filters", never, { "vm": { "alias": "viewModel"; "required": false; }; }, { "onClosed": "onClosed"; }, never, ["*"], true, never>;
14
- }
@@ -1,27 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/footer/footer.component";
3
- import * as i2 from "./components/header/header.component";
4
- import * as i3 from "./root-layout.component";
5
- import * as i4 from "./components/menu/root-menu.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/router";
8
- import * as i7 from "@acorex/components/button";
9
- import * as i8 from "@acorex/core/translation";
10
- import * as i9 from "@acorex/components/decorators";
11
- import * as i10 from "@acorex/components/dropdown";
12
- import * as i11 from "@acorex/components/avatar";
13
- import * as i12 from "@acorex/components/image";
14
- import * as i13 from "@acorex/components/popover";
15
- import * as i14 from "@acorex/components/badge";
16
- import * as i15 from "@acorex/components/tabs";
17
- import * as i16 from "@acorex/components/drawer";
18
- import * as i17 from "@acorex/components/side-menu";
19
- import * as i18 from "@acorex/components/loading";
20
- import * as i19 from "@acorex/platform/common";
21
- import * as i20 from "@acorex/platform/auth";
22
- import * as i21 from "@acorex/cdk/resizable";
23
- export declare class AXPAdminRootLayoutModule {
24
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPAdminRootLayoutModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPAdminRootLayoutModule, [typeof i1.AXPRootLayoutFooterComponent, typeof i2.AXPRootLayoutHeaderComponent, typeof i3.AXPRootLayoutComponent, typeof i4.AXPRootLayoutMenuComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.AXButtonModule, typeof i8.AXTranslationModule, typeof i9.AXDecoratorModule, typeof i10.AXDropdownModule, typeof i11.AXAvatarModule, typeof i12.AXImageModule, typeof i12.AXImageModule, typeof i13.AXPopoverModule, typeof i14.AXBadgeModule, typeof i15.AXTabsModule, typeof i16.AXDrawerModule, typeof i17.AXSideMenuModule, typeof i18.AXLoadingModule, typeof i19.AXPLogoComponent, typeof i20.AXPAuthModule, typeof i19.AXPComponentSlotModule, typeof i21.AXResizableDirective], never>;
26
- static ɵinj: i0.ɵɵInjectorDeclaration<AXPAdminRootLayoutModule>;
27
- }