@acorex-platform/framework-client 0.0.30 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-framework-client-common-common-settings.provider-CLm2BVk-.mjs → acorex-platform-framework-client-common-common-settings.provider-CzBr0cRi.mjs} +23 -2
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CzBr0cRi.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs +673 -110
- package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-core.mjs +76 -7
- package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +3 -6
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +505 -111
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-CJemNxCu.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-D1prdDvf.mjs} +3404 -2157
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-D1prdDvf.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-DQXGk8nF.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-CeVGNzup.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-DQXGk8nF.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-CeVGNzup.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-DSLUUXfQ.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-CFScb-L4.mjs} +43 -15
- package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-CFScb-L4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-B3__csKW.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs.map → acorex-platform-framework-client-layout-entity-file-list-popup.component-B3__csKW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-uf51NO5m.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-B17l6mbm.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-uf51NO5m.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-B17l6mbm.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs +37 -6
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +148 -130
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-3CO4xJB3.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-4mX8aYzA.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-3CO4xJB3.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-4mX8aYzA.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1214 -860
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-realtime.mjs +70 -5
- package/fesm2022/acorex-platform-framework-client-realtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-runtime.mjs +121 -6
- package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-C2Abf7Lb.mjs → acorex-platform-framework-client-themes-default-entity-master-single-view.component-DCpl6AXq.mjs} +51 -12
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-DCpl6AXq.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +770 -679
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs → acorex-platform-framework-client-themes-shared-settings.provider-CpsAIsxj.mjs} +76 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-CpsAIsxj.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +345 -54
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
- package/package.json +7 -7
- package/types/acorex-platform-framework-client-common.d.ts +137 -9
- package/types/acorex-platform-framework-client-core.d.ts +4 -1
- package/types/acorex-platform-framework-client-layout-components.d.ts +141 -22
- package/types/acorex-platform-framework-client-layout-entity.d.ts +532 -255
- package/types/acorex-platform-framework-client-layout-views.d.ts +48 -0
- package/types/acorex-platform-framework-client-layout-widget-core.d.ts +2 -2
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +143 -92
- package/types/acorex-platform-framework-client-realtime.d.ts +39 -2
- package/types/acorex-platform-framework-client-runtime.d.ts +56 -5
- package/types/acorex-platform-framework-client-themes-default.d.ts +144 -14
- package/types/acorex-platform-framework-client-themes-shared.d.ts +36 -3
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CLm2BVk-.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-CJemNxCu.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-DSLUUXfQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-C2Abf7Lb.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs.map +0 -1
|
@@ -9,17 +9,17 @@ import { CommonModule } from '@angular/common';
|
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { Injectable, computed, inject, Injector, effect, ChangeDetectionStrategy, Component, InjectionToken, Input, signal, input, ElementRef, Directive, DestroyRef, NgModule } from '@angular/core';
|
|
11
11
|
import { primaryLanguageSubtag, resolveEffectiveAvailableLanguageCodes, AXPSettingsService, AXP_LOCALE_MANAGEMENT_PORT, AXPPlatformSettingsLoadState, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
12
|
-
import {
|
|
12
|
+
import { AXPRegionalSetting, AXPPlatformScope } from '@acorex-platform/framework-shared/core';
|
|
13
13
|
import * as i1$3 from '@acorex-platform/framework-client/core';
|
|
14
14
|
import { AXPScreenSize, AXPDeviceService, AXPDebugService, OVERLAY_LAYOUT_TRACE_NS, AXP_APP_STARTUP_PRIORITY, AXPComponentSlotModule, AXP_LOGO_THEME_RESOLVER } from '@acorex-platform/framework-client/core';
|
|
15
15
|
import { HttpClient } from '@angular/common/http';
|
|
16
16
|
import { signalStore, withState, withComputed, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
17
17
|
import { timer, firstValueFrom, timeout, filter } from 'rxjs';
|
|
18
|
-
import * as
|
|
18
|
+
import * as i2$1 from '@acorex/core/translation';
|
|
19
19
|
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
|
20
20
|
import { AXPValueWidgetComponent, AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY, AXP_WIDGETS_LAYOUT_CATEGORY, AXPWidgetCoreModule, AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/layout/widget-core';
|
|
21
21
|
import { AXPopupService } from '@acorex/components/popup';
|
|
22
|
-
import * as i2$
|
|
22
|
+
import * as i2$2 from '@acorex/components/button-group';
|
|
23
23
|
import { AXButtonGroupModule } from '@acorex/components/button-group';
|
|
24
24
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
25
25
|
import * as i1$1 from '@acorex/components/search-box';
|
|
@@ -30,10 +30,9 @@ import { FormsModule } from '@angular/forms';
|
|
|
30
30
|
import * as i3$1 from '@acorex/components/text-box';
|
|
31
31
|
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
32
32
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
33
|
-
import * as
|
|
33
|
+
import * as i1$2 from '@acorex/components/form';
|
|
34
34
|
import { AXFormModule } from '@acorex/components/form';
|
|
35
|
-
import
|
|
36
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
35
|
+
import { AXLookupComponent } from '@acorex/components/lookup';
|
|
37
36
|
|
|
38
37
|
var AXPThemeLayoutSetting;
|
|
39
38
|
(function (AXPThemeLayoutSetting) {
|
|
@@ -49,6 +48,9 @@ var AXPThemeLayoutSetting;
|
|
|
49
48
|
AXPThemeLayoutSetting["MenuOrientation"] = "Common:Setting:Layout.RootMenu.Direction";
|
|
50
49
|
AXPThemeLayoutSetting["MenuVerticalMode"] = "Common:Setting:Layout.RootMenu.VerticalMode";
|
|
51
50
|
AXPThemeLayoutSetting["MenuBadgeVisible"] = "Common:Setting:Layout.RootMenu.Badge";
|
|
51
|
+
AXPThemeLayoutSetting["MenuDark"] = "Common:Setting:Layout.RootMenu.Dark";
|
|
52
|
+
AXPThemeLayoutSetting["MenuFooterFullWidth"] = "Common:Setting:Layout.RootMenu.Footer.FullWidth";
|
|
53
|
+
AXPThemeLayoutSetting["HeaderAppearance"] = "Common:Setting:Layout.Header.Appearance";
|
|
52
54
|
})(AXPThemeLayoutSetting || (AXPThemeLayoutSetting = {}));
|
|
53
55
|
|
|
54
56
|
// Theme Enum
|
|
@@ -78,6 +80,28 @@ var AXPMenuVerticalMode;
|
|
|
78
80
|
})(AXPMenuVerticalMode || (AXPMenuVerticalMode = {}));
|
|
79
81
|
const AXP_SIDE_MENU_FULL_DEFAULT_WIDTH = 300;
|
|
80
82
|
const AXP_SIDE_MENU_COMPACT_WIDTH = 80;
|
|
83
|
+
function normalizeMenuAppearance(value, fallback = 'dark') {
|
|
84
|
+
if (value === 'dark' ||
|
|
85
|
+
value === 'light' ||
|
|
86
|
+
value === 'brand-light' ||
|
|
87
|
+
value === 'brand-dark') {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
// Legacy persisted value before brand light/dark split.
|
|
91
|
+
if (value === 'brand') {
|
|
92
|
+
return 'brand-light';
|
|
93
|
+
}
|
|
94
|
+
if (typeof value === 'boolean') {
|
|
95
|
+
return value ? 'dark' : 'light';
|
|
96
|
+
}
|
|
97
|
+
return fallback;
|
|
98
|
+
}
|
|
99
|
+
function normalizeHeaderAppearance(value, fallback = 'brand') {
|
|
100
|
+
if (value === 'brand' || value === 'simple') {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
return fallback;
|
|
104
|
+
}
|
|
81
105
|
|
|
82
106
|
//#endregion
|
|
83
107
|
//#region ----- Constants -----
|
|
@@ -283,11 +307,24 @@ function filterFontsForRegionalContext(options, context) {
|
|
|
283
307
|
function resolveRegionalFontOptions(context) {
|
|
284
308
|
return filterFontsForRegionalContext(AXP_FONT_STYLE_OPTIONS, context);
|
|
285
309
|
}
|
|
286
|
-
function
|
|
287
|
-
const
|
|
310
|
+
function resolveRegionalDefaultFontId(availableFonts, languageCode) {
|
|
311
|
+
const language = languageCode ? primaryLanguageSubtag(languageCode) : null;
|
|
312
|
+
if (language === 'fa') {
|
|
313
|
+
const iranYekan = availableFonts.find((font) => font.id === 'iranyekanx');
|
|
314
|
+
if (iranYekan) {
|
|
315
|
+
return iranYekan.id;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return availableFonts[0]?.id ?? 'system-ui';
|
|
319
|
+
}
|
|
320
|
+
function resolveEffectiveFontId(fontId, availableFonts, languageCode) {
|
|
321
|
+
const fallback = resolveRegionalDefaultFontId(availableFonts, languageCode);
|
|
288
322
|
if (!fontId) {
|
|
289
323
|
return fallback;
|
|
290
324
|
}
|
|
325
|
+
if (fontId === 'system-ui' && languageCode && primaryLanguageSubtag(languageCode) === 'fa') {
|
|
326
|
+
return fallback;
|
|
327
|
+
}
|
|
291
328
|
return availableFonts.some((font) => font.id === fontId) ? fontId : fallback;
|
|
292
329
|
}
|
|
293
330
|
//#endregion
|
|
@@ -397,13 +434,16 @@ withState(() => {
|
|
|
397
434
|
sideMenuCompactWidth: AXP_SIDE_MENU_COMPACT_WIDTH,
|
|
398
435
|
menuVerticalMode: AXPMenuVerticalMode.Full,
|
|
399
436
|
menuOrientation: 'vertical',
|
|
437
|
+
menuAppearance: 'dark',
|
|
438
|
+
headerAppearance: 'brand',
|
|
439
|
+
mainFooterFullWidth: false,
|
|
400
440
|
_listener: null,
|
|
401
441
|
isPrinting: false,
|
|
402
442
|
};
|
|
403
443
|
return state;
|
|
404
444
|
}),
|
|
405
445
|
// Computed Signals
|
|
406
|
-
withComputed(({ currentMode: currentTheme, systemThemeMode: systemTheme, sideMenuState, overlaySideMenuOpen, overlayLoading, navigationLoading, overlayLoadingTaskCount, menuOrientation, menuVerticalMode, sideMenuWidth, sideMenuCompactWidth, isPrinting, }, deviceService = inject(AXPDeviceService)) => {
|
|
446
|
+
withComputed(({ currentMode: currentTheme, systemThemeMode: systemTheme, sideMenuState, overlaySideMenuOpen, overlayLoading, navigationLoading, overlayLoadingTaskCount, menuOrientation, menuVerticalMode, menuAppearance, headerAppearance, mainFooterFullWidth, sideMenuWidth, sideMenuCompactWidth, isPrinting, }, deviceService = inject(AXPDeviceService)) => {
|
|
407
447
|
const effectiveMenuVerticalMode = computed(() => {
|
|
408
448
|
if (!deviceService.isLarge()) {
|
|
409
449
|
return AXPMenuVerticalMode.Full;
|
|
@@ -431,6 +471,19 @@ withComputed(({ currentMode: currentTheme, systemThemeMode: systemTheme, sideMen
|
|
|
431
471
|
isMenuHorizontal: computed(() => menuOrientation() === AXPMenuOrientation.Horizontal),
|
|
432
472
|
effectiveMenuVerticalMode,
|
|
433
473
|
sideMenuDrawerWidth: computed(() => effectiveMenuVerticalMode() === AXPMenuVerticalMode.Compact ? sideMenuCompactWidth() : sideMenuWidth()),
|
|
474
|
+
menuDarkEnabled: computed(() => {
|
|
475
|
+
const appearance = menuAppearance();
|
|
476
|
+
return appearance === 'dark' || appearance === 'brand-dark';
|
|
477
|
+
}),
|
|
478
|
+
menuBrandEnabled: computed(() => {
|
|
479
|
+
const appearance = menuAppearance();
|
|
480
|
+
return appearance === 'brand-light' || appearance === 'brand-dark';
|
|
481
|
+
}),
|
|
482
|
+
/** Full-width footer applies only to vertical layout. */
|
|
483
|
+
effectiveMainFooterFullWidth: computed(() => menuOrientation() !== AXPMenuOrientation.Horizontal && mainFooterFullWidth()),
|
|
484
|
+
headerBrandEnabled: computed(() => headerAppearance() === 'brand'),
|
|
485
|
+
headerButtonColor: computed(() => headerAppearance() === 'simple' ? 'default' : 'primary'),
|
|
486
|
+
headerButtonLook: computed(() => headerAppearance() === 'simple' ? 'blank' : 'default'),
|
|
434
487
|
};
|
|
435
488
|
}),
|
|
436
489
|
// Methods for State Management
|
|
@@ -453,11 +506,42 @@ withMethods((store, http = inject(HttpClient), settingsService = inject(AXPSetti
|
|
|
453
506
|
const settingMenuVerticalMode = normalizeMenuVerticalMode(await settingsService.get(AXPThemeLayoutSetting.MenuVerticalMode), store.menuVerticalMode());
|
|
454
507
|
patchState(store, { menuVerticalMode: settingMenuVerticalMode });
|
|
455
508
|
//
|
|
509
|
+
let rawMenuAppearance;
|
|
510
|
+
try {
|
|
511
|
+
rawMenuAppearance = await settingsService.get(AXPThemeLayoutSetting.MenuDark);
|
|
512
|
+
}
|
|
513
|
+
catch {
|
|
514
|
+
rawMenuAppearance = undefined;
|
|
515
|
+
}
|
|
516
|
+
patchState(store, {
|
|
517
|
+
menuAppearance: normalizeMenuAppearance(rawMenuAppearance, 'brand-dark'),
|
|
518
|
+
});
|
|
519
|
+
let rawHeaderAppearance;
|
|
520
|
+
try {
|
|
521
|
+
rawHeaderAppearance = await settingsService.get(AXPThemeLayoutSetting.HeaderAppearance);
|
|
522
|
+
}
|
|
523
|
+
catch {
|
|
524
|
+
rawHeaderAppearance = undefined;
|
|
525
|
+
}
|
|
526
|
+
patchState(store, {
|
|
527
|
+
headerAppearance: normalizeHeaderAppearance(rawHeaderAppearance, 'simple'),
|
|
528
|
+
});
|
|
529
|
+
let mainFooterFullWidth = false;
|
|
530
|
+
try {
|
|
531
|
+
mainFooterFullWidth =
|
|
532
|
+
(await settingsService.get(AXPThemeLayoutSetting.MenuFooterFullWidth)) ?? false;
|
|
533
|
+
}
|
|
534
|
+
catch {
|
|
535
|
+
mainFooterFullWidth = false;
|
|
536
|
+
}
|
|
537
|
+
patchState(store, { mainFooterFullWidth });
|
|
538
|
+
//
|
|
456
539
|
const fontFamily = await settingsService.get(AXPThemeLayoutSetting.Font);
|
|
457
540
|
const fontSize = await settingsService.get(AXPThemeLayoutSetting.FontSize);
|
|
541
|
+
const language = (await settingsService.get(AXPRegionalSetting.Language));
|
|
458
542
|
const regionalContext = await resolveRegionalFontScriptContextFromInjector(injector);
|
|
459
543
|
const availableFonts = resolveRegionalFontOptions(regionalContext);
|
|
460
|
-
const effectiveFontFamily = resolveEffectiveFontId(fontFamily, availableFonts);
|
|
544
|
+
const effectiveFontFamily = resolveEffectiveFontId(fontFamily, availableFonts, language);
|
|
461
545
|
await injector.get(AXPRegionalFontStyleLoaderService).ensureFontStylesLoaded(effectiveFontFamily);
|
|
462
546
|
patchState(store, { font: { family: effectiveFontFamily, size: fontSize } });
|
|
463
547
|
//
|
|
@@ -684,7 +768,13 @@ withHooks((store, settingsService = inject(AXPSettingsService), deviceService =
|
|
|
684
768
|
.pipe(filter((c) => [AXPPlatformScope.Platform, AXPPlatformScope.Tenant, AXPPlatformScope.User].includes(c.scope)))
|
|
685
769
|
.subscribe(async (changes) => {
|
|
686
770
|
const keys = Object.values(AXPThemeLayoutSetting);
|
|
687
|
-
|
|
771
|
+
const layoutKeysChanged = changes.keys.some((key) => keys.includes(key));
|
|
772
|
+
const languageChanged = changes.keys.includes(AXPRegionalSetting.Language);
|
|
773
|
+
if (!layoutKeysChanged && !languageChanged) {
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
if (languageChanged) {
|
|
777
|
+
await store['loadSettings']();
|
|
688
778
|
return;
|
|
689
779
|
}
|
|
690
780
|
if (changes.keys.includes(AXPThemeLayoutSetting.MenuVerticalMode)) {
|
|
@@ -692,8 +782,28 @@ withHooks((store, settingsService = inject(AXPSettingsService), deviceService =
|
|
|
692
782
|
menuVerticalMode: normalizeMenuVerticalMode(changes.values[AXPThemeLayoutSetting.MenuVerticalMode], store.menuVerticalMode()),
|
|
693
783
|
});
|
|
694
784
|
}
|
|
785
|
+
if (changes.keys.includes(AXPThemeLayoutSetting.MenuDark)) {
|
|
786
|
+
const rawMenuAppearance = changes.values[AXPThemeLayoutSetting.MenuDark];
|
|
787
|
+
patchState(store, {
|
|
788
|
+
menuAppearance: normalizeMenuAppearance(rawMenuAppearance, store.menuAppearance()),
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
if (changes.keys.includes(AXPThemeLayoutSetting.HeaderAppearance)) {
|
|
792
|
+
const rawHeaderAppearance = changes.values[AXPThemeLayoutSetting.HeaderAppearance];
|
|
793
|
+
patchState(store, {
|
|
794
|
+
headerAppearance: normalizeHeaderAppearance(rawHeaderAppearance, store.headerAppearance()),
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
if (changes.keys.includes(AXPThemeLayoutSetting.MenuFooterFullWidth)) {
|
|
798
|
+
patchState(store, {
|
|
799
|
+
mainFooterFullWidth: changes.values[AXPThemeLayoutSetting.MenuFooterFullWidth] ?? false,
|
|
800
|
+
});
|
|
801
|
+
}
|
|
695
802
|
const shouldReloadSettings = changes.keys.some((key) => keys.includes(key) &&
|
|
696
|
-
key !== AXPThemeLayoutSetting.MenuVerticalMode
|
|
803
|
+
key !== AXPThemeLayoutSetting.MenuVerticalMode &&
|
|
804
|
+
key !== AXPThemeLayoutSetting.MenuDark &&
|
|
805
|
+
key !== AXPThemeLayoutSetting.HeaderAppearance &&
|
|
806
|
+
key !== AXPThemeLayoutSetting.MenuFooterFullWidth);
|
|
697
807
|
if (shouldReloadSettings) {
|
|
698
808
|
await store['loadSettings']();
|
|
699
809
|
}
|
|
@@ -730,7 +840,7 @@ class AXPThemeSlotComponent {
|
|
|
730
840
|
}
|
|
731
841
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPThemeSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
732
842
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPThemeSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
733
|
-
<ax-button [iconOnly]="true" color="
|
|
843
|
+
<ax-button [iconOnly]="true" [color]="store.headerButtonColor()" [look]="store.headerButtonLook()">
|
|
734
844
|
<ax-icon>
|
|
735
845
|
<i
|
|
736
846
|
class="fa-regular"
|
|
@@ -773,13 +883,13 @@ class AXPThemeSlotComponent {
|
|
|
773
883
|
</ax-button-item-list>
|
|
774
884
|
</ax-dropdown-panel>
|
|
775
885
|
</ax-button>
|
|
776
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type:
|
|
886
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i2$1.AXTranslatorDirective, selector: "[translate]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
777
887
|
}
|
|
778
888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPThemeSlotComponent, decorators: [{
|
|
779
889
|
type: Component,
|
|
780
890
|
args: [{
|
|
781
891
|
template: `
|
|
782
|
-
<ax-button [iconOnly]="true" color="
|
|
892
|
+
<ax-button [iconOnly]="true" [color]="store.headerButtonColor()" [look]="store.headerButtonLook()">
|
|
783
893
|
<ax-icon>
|
|
784
894
|
<i
|
|
785
895
|
class="fa-regular"
|
|
@@ -1078,7 +1188,7 @@ class AXPIconChooserPopupComponent extends AXBasePageComponent {
|
|
|
1078
1188
|
</div>
|
|
1079
1189
|
</div>
|
|
1080
1190
|
</div>
|
|
1081
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i1$1.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonGroupModule }, { kind: "component", type: i2$
|
|
1191
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i1$1.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonGroupModule }, { kind: "component", type: i2$2.AXButtonGroupComponent, selector: "ax-button-group", inputs: ["disabled", "fitParent", "color", "look", "class", "selection"], outputs: ["onBlur", "onFocus", "disabledChange", "colorChange", "lookChange", "onClick", "selectionChange", "selectedButtonChange"] }, { kind: "component", type: i2$2.AXButtonGroupItemComponent, selector: "ax-button-group-item", inputs: ["disabled", "color", "text", "class", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange", "classChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1082
1192
|
}
|
|
1083
1193
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPIconChooserPopupComponent, decorators: [{
|
|
1084
1194
|
type: Component,
|
|
@@ -1869,7 +1979,7 @@ class AXPFontSizeChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
1869
1979
|
</div>
|
|
1870
1980
|
</div>
|
|
1871
1981
|
}
|
|
1872
|
-
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div>div{display:flex;align-items:center;justify-content:center}:host>div>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type:
|
|
1982
|
+
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div>div{display:flex;align-items:center;justify-content:center}:host>div>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1873
1983
|
}
|
|
1874
1984
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFontSizeChooserWidgetComponent, decorators: [{
|
|
1875
1985
|
type: Component,
|
|
@@ -1967,11 +2077,11 @@ class AXPFontStyleChooserPopupComponent extends AXBasePageComponent {
|
|
|
1967
2077
|
this.close({ fontId: font.id });
|
|
1968
2078
|
}
|
|
1969
2079
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFontStyleChooserPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1970
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPFontStyleChooserPopupComponent, isStandalone: true, selector: "ng-component", inputs: { fonts: "fonts", selectedFontId: "selectedFontId" }, usesInheritance: true, ngImport: i0, template: "<div class=\"axp-font-style-chooser-popup flex h-full flex-col bg-lightest\">\n <!-- ----- Scrollable font list filtered by regional language settings ----- -->\n <div class=\"flex-1 overflow-y-auto p-2\">\n <div class=\"flex flex-col gap-1\">\n @for (font of fonts; track font.id) {\n <button\n type=\"button\"\n class=\"axp-font-style-chooser-popup__item\"\n [class.--selected]=\"font.id === selectedFontId\"\n [axpFontStyleLazyLoad]=\"font.id\"\n (click)=\"selectFont(font)\"\n >\n <div class=\"axp-font-style-option\">\n <span\n class=\"axp-font-style-option__sample\"\n [style.font-family]=\"font.cssFamily\"\n [style.font-variation-settings]=\"fontVariation(font.id)\"\n >\n {{ font.title }}\n </span>\n </div>\n </button>\n }\n </div>\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%}.axp-font-style-chooser__input{width:100%;cursor:pointer}.axp-font-style-chooser__suffix-btn{padding-inline:var(--spacing, .25rem);color:var(--color-neutral-500, oklch(55.6% 0 none))}.axp-font-style-option{display:flex;width:100%;align-items:center;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 2.5)}.axp-font-style-option__sample{width:100%;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-neutral-700, oklch(37.1% 0 none))}.axp-font-style-option__sample:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){color:var(--color-neutral-200, oklch(92.2% 0 none))}.axp-font-style-chooser-popup__item{width:100%;cursor:pointer;border-radius:var(--radius-md, .375rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent;background-color:transparent;text-align:start;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s))}.axp-font-style-chooser-popup__item:hover{background-color:rgb(var(--ax-sys-color-primary-lighter-surface) / .55);border-color:rgb(var(--ax-sys-color-border-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter);border-color:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected .axp-font-style-option__sample{color:inherit}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial;--tw-font-weight: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: AXPFontStyleLazyLoadDirective, selector: "[axpFontStyleLazyLoad]", inputs: ["axpFontStyleLazyLoad"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2080
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPFontStyleChooserPopupComponent, isStandalone: true, selector: "ng-component", inputs: { fonts: "fonts", selectedFontId: "selectedFontId" }, usesInheritance: true, ngImport: i0, template: "<div class=\"axp-font-style-chooser-popup flex h-full flex-col bg-lightest\">\n <!-- ----- Scrollable font list filtered by regional language settings ----- -->\n <div class=\"flex-1 overflow-y-auto p-2\">\n <div class=\"flex flex-col gap-1\">\n @for (font of fonts; track font.id) {\n <button\n type=\"button\"\n class=\"axp-font-style-chooser-popup__item\"\n [class.--selected]=\"font.id === selectedFontId\"\n [axpFontStyleLazyLoad]=\"font.id\"\n (click)=\"selectFont(font)\"\n >\n <div class=\"axp-font-style-option\">\n <span\n class=\"axp-font-style-option__sample\"\n [style.font-family]=\"font.cssFamily\"\n [style.font-variation-settings]=\"fontVariation(font.id)\"\n >\n {{ font.title }}\n </span>\n </div>\n </button>\n }\n </div>\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%}.axp-font-style-chooser__input{width:100%;cursor:pointer}.axp-font-style-chooser__suffix-btn{pointer-events:none;padding-inline:var(--spacing, .25rem);color:var(--color-neutral-500, oklch(55.6% 0 none))}.axp-font-style-option{display:flex;width:100%;align-items:center;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 2.5)}.axp-font-style-option__sample{width:100%;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-neutral-700, oklch(37.1% 0 none))}.axp-font-style-option__sample:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){color:var(--color-neutral-200, oklch(92.2% 0 none))}.axp-font-style-chooser-popup__item{width:100%;cursor:pointer;border-radius:var(--radius-md, .375rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent;background-color:transparent;text-align:start;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s))}.axp-font-style-chooser-popup__item:hover{background-color:rgb(var(--ax-sys-color-primary-lighter-surface) / .55);border-color:rgb(var(--ax-sys-color-border-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter);border-color:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected .axp-font-style-option__sample{color:inherit}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial;--tw-font-weight: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: AXPFontStyleLazyLoadDirective, selector: "[axpFontStyleLazyLoad]", inputs: ["axpFontStyleLazyLoad"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1971
2081
|
}
|
|
1972
2082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFontStyleChooserPopupComponent, decorators: [{
|
|
1973
2083
|
type: Component,
|
|
1974
|
-
args: [{ standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXPFontStyleLazyLoadDirective], template: "<div class=\"axp-font-style-chooser-popup flex h-full flex-col bg-lightest\">\n <!-- ----- Scrollable font list filtered by regional language settings ----- -->\n <div class=\"flex-1 overflow-y-auto p-2\">\n <div class=\"flex flex-col gap-1\">\n @for (font of fonts; track font.id) {\n <button\n type=\"button\"\n class=\"axp-font-style-chooser-popup__item\"\n [class.--selected]=\"font.id === selectedFontId\"\n [axpFontStyleLazyLoad]=\"font.id\"\n (click)=\"selectFont(font)\"\n >\n <div class=\"axp-font-style-option\">\n <span\n class=\"axp-font-style-option__sample\"\n [style.font-family]=\"font.cssFamily\"\n [style.font-variation-settings]=\"fontVariation(font.id)\"\n >\n {{ font.title }}\n </span>\n </div>\n </button>\n }\n </div>\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%}.axp-font-style-chooser__input{width:100%;cursor:pointer}.axp-font-style-chooser__suffix-btn{padding-inline:var(--spacing, .25rem);color:var(--color-neutral-500, oklch(55.6% 0 none))}.axp-font-style-option{display:flex;width:100%;align-items:center;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 2.5)}.axp-font-style-option__sample{width:100%;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-neutral-700, oklch(37.1% 0 none))}.axp-font-style-option__sample:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){color:var(--color-neutral-200, oklch(92.2% 0 none))}.axp-font-style-chooser-popup__item{width:100%;cursor:pointer;border-radius:var(--radius-md, .375rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent;background-color:transparent;text-align:start;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s))}.axp-font-style-chooser-popup__item:hover{background-color:rgb(var(--ax-sys-color-primary-lighter-surface) / .55);border-color:rgb(var(--ax-sys-color-border-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter);border-color:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected .axp-font-style-option__sample{color:inherit}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial;--tw-font-weight: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
2084
|
+
args: [{ standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXPFontStyleLazyLoadDirective], template: "<div class=\"axp-font-style-chooser-popup flex h-full flex-col bg-lightest\">\n <!-- ----- Scrollable font list filtered by regional language settings ----- -->\n <div class=\"flex-1 overflow-y-auto p-2\">\n <div class=\"flex flex-col gap-1\">\n @for (font of fonts; track font.id) {\n <button\n type=\"button\"\n class=\"axp-font-style-chooser-popup__item\"\n [class.--selected]=\"font.id === selectedFontId\"\n [axpFontStyleLazyLoad]=\"font.id\"\n (click)=\"selectFont(font)\"\n >\n <div class=\"axp-font-style-option\">\n <span\n class=\"axp-font-style-option__sample\"\n [style.font-family]=\"font.cssFamily\"\n [style.font-variation-settings]=\"fontVariation(font.id)\"\n >\n {{ font.title }}\n </span>\n </div>\n </button>\n }\n </div>\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%}.axp-font-style-chooser__input{width:100%;cursor:pointer}.axp-font-style-chooser__suffix-btn{pointer-events:none;padding-inline:var(--spacing, .25rem);color:var(--color-neutral-500, oklch(55.6% 0 none))}.axp-font-style-option{display:flex;width:100%;align-items:center;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 2.5)}.axp-font-style-option__sample{width:100%;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-neutral-700, oklch(37.1% 0 none))}.axp-font-style-option__sample:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){color:var(--color-neutral-200, oklch(92.2% 0 none))}.axp-font-style-chooser-popup__item{width:100%;cursor:pointer;border-radius:var(--radius-md, .375rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent;background-color:transparent;text-align:start;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s))}.axp-font-style-chooser-popup__item:hover{background-color:rgb(var(--ax-sys-color-primary-lighter-surface) / .55);border-color:rgb(var(--ax-sys-color-border-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter);border-color:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected .axp-font-style-option__sample{color:inherit}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial;--tw-font-weight: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
1975
2085
|
}], propDecorators: { fonts: [{
|
|
1976
2086
|
type: Input
|
|
1977
2087
|
}], selectedFontId: [{
|
|
@@ -1995,9 +2105,11 @@ class AXPFontStyleChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
1995
2105
|
//#region ----- State Signals -----
|
|
1996
2106
|
this.fonts = signal(AXP_FONT_STYLE_OPTIONS.filter((font) => font.script === 'universal'), /* @ts-ignore */
|
|
1997
2107
|
...(ngDevMode ? [{ debugName: "fonts" }] : /* istanbul ignore next */ []));
|
|
2108
|
+
this.languageCode = signal(undefined, /* @ts-ignore */
|
|
2109
|
+
...(ngDevMode ? [{ debugName: "languageCode" }] : /* istanbul ignore next */ []));
|
|
1998
2110
|
this.selectedFontId = computed(() => {
|
|
1999
2111
|
const available = this.fonts();
|
|
2000
|
-
return resolveEffectiveFontId(this.getValue(), available);
|
|
2112
|
+
return resolveEffectiveFontId(this.getValue(), available, this.languageCode());
|
|
2001
2113
|
}, /* @ts-ignore */
|
|
2002
2114
|
...(ngDevMode ? [{ debugName: "selectedFontId" }] : /* istanbul ignore next */ []));
|
|
2003
2115
|
this.selectedFont = computed(() => {
|
|
@@ -2023,7 +2135,8 @@ class AXPFontStyleChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
2023
2135
|
void this.refreshFonts();
|
|
2024
2136
|
});
|
|
2025
2137
|
this.settingsService.onChanged
|
|
2026
|
-
.pipe(filter((change) => change.keys.includes(AXPRegionalSetting.AvailableLanguages)
|
|
2138
|
+
.pipe(filter((change) => change.keys.includes(AXPRegionalSetting.AvailableLanguages) ||
|
|
2139
|
+
change.keys.includes(AXPRegionalSetting.Language)), takeUntilDestroyed(this.destroyRef))
|
|
2027
2140
|
.subscribe(() => {
|
|
2028
2141
|
void this.refreshFonts();
|
|
2029
2142
|
});
|
|
@@ -2045,7 +2158,7 @@ class AXPFontStyleChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
2045
2158
|
});
|
|
2046
2159
|
const fontId = result?.data?.fontId;
|
|
2047
2160
|
if (fontId) {
|
|
2048
|
-
this.setValue(resolveEffectiveFontId(fontId, this.fonts()));
|
|
2161
|
+
this.setValue(resolveEffectiveFontId(fontId, this.fonts(), this.languageCode()));
|
|
2049
2162
|
}
|
|
2050
2163
|
}
|
|
2051
2164
|
//#endregion
|
|
@@ -2053,21 +2166,23 @@ class AXPFontStyleChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
2053
2166
|
async refreshFonts() {
|
|
2054
2167
|
const context = await resolveRegionalFontScriptContext(this.settingsService, this.localePort);
|
|
2055
2168
|
const available = resolveRegionalFontOptions(context);
|
|
2169
|
+
const language = (await this.settingsService.get(AXPRegionalSetting.Language));
|
|
2170
|
+
this.languageCode.set(language);
|
|
2056
2171
|
this.fonts.set(available);
|
|
2057
|
-
const effectiveId = resolveEffectiveFontId(this.getValue(), available);
|
|
2172
|
+
const effectiveId = resolveEffectiveFontId(this.getValue(), available, language);
|
|
2058
2173
|
this.regionalFontLoader.ensureFontStylesLoaded(effectiveId);
|
|
2059
2174
|
if (effectiveId !== this.getValue()) {
|
|
2060
2175
|
this.setValue(effectiveId);
|
|
2061
2176
|
}
|
|
2062
2177
|
}
|
|
2063
2178
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFontStyleChooserWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2064
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPFontStyleChooserWidgetComponent, isStandalone: true, selector: "ng-component", host: { classAttribute: "axp-font-style-chooser block w-full" }, usesInheritance: true, ngImport: i0, template: "<ax-text-box\n class=\"axp-font-style-chooser__input\"\n look=\"fill\"\n [ngModel]=\"selectedFontLabel()\"\n [readonly]=\"true\"\n [disabled]=\"isInteractionDisabled()\"\n [style.font-family]=\"selectedFontFamily()\"\n [style.font-variation-settings]=\"selectedFontVariation()\"\n (click)=\"openPopup()\"\n>\n <ax-suffix>\n <ax-button\n look=\"none\"\n class=\"axp-font-style-chooser__suffix-btn\"\n [disabled]=\"isInteractionDisabled()\"\n
|
|
2179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPFontStyleChooserWidgetComponent, isStandalone: true, selector: "ng-component", host: { classAttribute: "axp-font-style-chooser block w-full" }, usesInheritance: true, ngImport: i0, template: "<ax-text-box\n class=\"axp-font-style-chooser__input\"\n look=\"fill\"\n [ngModel]=\"selectedFontLabel()\"\n [readonly]=\"true\"\n [disabled]=\"isInteractionDisabled()\"\n [style.font-family]=\"selectedFontFamily()\"\n [style.font-variation-settings]=\"selectedFontVariation()\"\n (click)=\"openPopup()\"\n>\n <ax-suffix>\n <ax-button\n look=\"none\"\n class=\"axp-font-style-chooser__suffix-btn\"\n [disabled]=\"isInteractionDisabled()\"\n >\n <ax-icon icon=\"fa-light fa-up-right-from-square\"></ax-icon>\n </ax-button>\n </ax-suffix>\n</ax-text-box>\n", styles: ["@layer properties;:host{display:block;width:100%}.axp-font-style-chooser__input{width:100%;cursor:pointer}.axp-font-style-chooser__suffix-btn{pointer-events:none;padding-inline:var(--spacing, .25rem);color:var(--color-neutral-500, oklch(55.6% 0 none))}.axp-font-style-option{display:flex;width:100%;align-items:center;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 2.5)}.axp-font-style-option__sample{width:100%;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-neutral-700, oklch(37.1% 0 none))}.axp-font-style-option__sample:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){color:var(--color-neutral-200, oklch(92.2% 0 none))}.axp-font-style-chooser-popup__item{width:100%;cursor:pointer;border-radius:var(--radius-md, .375rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent;background-color:transparent;text-align:start;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s))}.axp-font-style-chooser-popup__item:hover{background-color:rgb(var(--ax-sys-color-primary-lighter-surface) / .55);border-color:rgb(var(--ax-sys-color-border-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter);border-color:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected .axp-font-style-option__sample{color:inherit}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial;--tw-font-weight: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i3$1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2065
2180
|
}
|
|
2066
2181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFontStyleChooserWidgetComponent, decorators: [{
|
|
2067
2182
|
type: Component,
|
|
2068
2183
|
args: [{ host: {
|
|
2069
2184
|
class: 'axp-font-style-chooser block w-full',
|
|
2070
|
-
}, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXButtonModule, AXDecoratorModule, AXTextBoxModule, FormsModule], template: "<ax-text-box\n class=\"axp-font-style-chooser__input\"\n look=\"fill\"\n [ngModel]=\"selectedFontLabel()\"\n [readonly]=\"true\"\n [disabled]=\"isInteractionDisabled()\"\n [style.font-family]=\"selectedFontFamily()\"\n [style.font-variation-settings]=\"selectedFontVariation()\"\n (click)=\"openPopup()\"\n>\n <ax-suffix>\n <ax-button\n look=\"none\"\n class=\"axp-font-style-chooser__suffix-btn\"\n [disabled]=\"isInteractionDisabled()\"\n
|
|
2185
|
+
}, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXButtonModule, AXDecoratorModule, AXTextBoxModule, FormsModule], template: "<ax-text-box\n class=\"axp-font-style-chooser__input\"\n look=\"fill\"\n [ngModel]=\"selectedFontLabel()\"\n [readonly]=\"true\"\n [disabled]=\"isInteractionDisabled()\"\n [style.font-family]=\"selectedFontFamily()\"\n [style.font-variation-settings]=\"selectedFontVariation()\"\n (click)=\"openPopup()\"\n>\n <ax-suffix>\n <ax-button\n look=\"none\"\n class=\"axp-font-style-chooser__suffix-btn\"\n [disabled]=\"isInteractionDisabled()\"\n >\n <ax-icon icon=\"fa-light fa-up-right-from-square\"></ax-icon>\n </ax-button>\n </ax-suffix>\n</ax-text-box>\n", styles: ["@layer properties;:host{display:block;width:100%}.axp-font-style-chooser__input{width:100%;cursor:pointer}.axp-font-style-chooser__suffix-btn{pointer-events:none;padding-inline:var(--spacing, .25rem);color:var(--color-neutral-500, oklch(55.6% 0 none))}.axp-font-style-option{display:flex;width:100%;align-items:center;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 2.5)}.axp-font-style-option__sample{width:100%;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-neutral-700, oklch(37.1% 0 none))}.axp-font-style-option__sample:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){color:var(--color-neutral-200, oklch(92.2% 0 none))}.axp-font-style-chooser-popup__item{width:100%;cursor:pointer;border-radius:var(--radius-md, .375rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent;background-color:transparent;text-align:start;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s))}.axp-font-style-chooser-popup__item:hover{background-color:rgb(var(--ax-sys-color-primary-lighter-surface) / .55);border-color:rgb(var(--ax-sys-color-border-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter);border-color:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-lighter-surface))}.axp-font-style-chooser-popup__item.--selected .axp-font-style-option__sample{color:inherit}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading: initial;--tw-font-weight: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
2071
2186
|
}] });
|
|
2072
2187
|
|
|
2073
2188
|
var fontStyleChooserWidget_component = /*#__PURE__*/Object.freeze({
|
|
@@ -2171,7 +2286,7 @@ class AXPMenuOrientationChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
2171
2286
|
}
|
|
2172
2287
|
</div>
|
|
2173
2288
|
}
|
|
2174
|
-
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div.--visual{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 3)}:host>div.--visual img{display:block;height:auto;width:100%}:host>div.--visual>span{text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}:host>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type:
|
|
2289
|
+
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div.--visual{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 3)}:host>div.--visual img{display:block;height:auto;width:100%}:host>div.--visual>span{text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}:host>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2175
2290
|
}
|
|
2176
2291
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPMenuOrientationChooserWidgetComponent, decorators: [{
|
|
2177
2292
|
type: Component,
|
|
@@ -2353,6 +2468,8 @@ class AXPColorChooserWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2353
2468
|
this.colorService = inject(AXPColorChooserService);
|
|
2354
2469
|
this.colors = signal([], /* @ts-ignore */
|
|
2355
2470
|
...(ngDevMode ? [{ debugName: "colors" }] : /* istanbul ignore next */ []));
|
|
2471
|
+
this.lastSelectedColor = signal(undefined, /* @ts-ignore */
|
|
2472
|
+
...(ngDevMode ? [{ debugName: "lastSelectedColor" }] : /* istanbul ignore next */ []));
|
|
2356
2473
|
this.placeholder = computed(() => this.options()['placeholder'] ?? '', /* @ts-ignore */
|
|
2357
2474
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
2358
2475
|
this.selectedColor = computed(() => {
|
|
@@ -2377,14 +2494,20 @@ class AXPColorChooserWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2377
2494
|
this.colors.set(allColors);
|
|
2378
2495
|
super.ngOnInit();
|
|
2379
2496
|
}
|
|
2497
|
+
handleSelectionChanged(event) {
|
|
2498
|
+
const item = (event.items ?? [])[0];
|
|
2499
|
+
this.lastSelectedColor.set(item);
|
|
2500
|
+
}
|
|
2380
2501
|
handleValueChange(event) {
|
|
2381
2502
|
if (event.isUserInteraction) {
|
|
2382
2503
|
if (!event.value) {
|
|
2383
2504
|
this.setValue(undefined);
|
|
2384
2505
|
return;
|
|
2385
2506
|
}
|
|
2386
|
-
const color = event.
|
|
2387
|
-
|
|
2507
|
+
const color = this.lastSelectedColor() ?? this.colors().find((entry) => entry.name === event.value);
|
|
2508
|
+
if (!color) {
|
|
2509
|
+
return;
|
|
2510
|
+
}
|
|
2388
2511
|
const stringValue = `${color.color} ${color.background} ${color.border}`;
|
|
2389
2512
|
this.setValue(stringValue);
|
|
2390
2513
|
}
|
|
@@ -2414,43 +2537,45 @@ class AXPColorChooserWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2414
2537
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPColorChooserWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2415
2538
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPColorChooserWidgetEditComponent, isStandalone: true, selector: "ax-color-chooser-widget", host: { classAttribute: "block flex-1 w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
2416
2539
|
<ax-form-field>
|
|
2417
|
-
<ax-
|
|
2540
|
+
<ax-lookup
|
|
2541
|
+
mode="drop-down-list"
|
|
2418
2542
|
[dataSource]="colors()"
|
|
2419
2543
|
textField="title"
|
|
2420
2544
|
valueField="name"
|
|
2545
|
+
[searchable]="true"
|
|
2421
2546
|
[placeholder]="placeholder()"
|
|
2422
2547
|
[itemTemplate]="customItemTemplate"
|
|
2423
2548
|
[ngModel]="selectedColor()"
|
|
2424
2549
|
(onValueChanged)="handleValueChange($event)"
|
|
2550
|
+
(onSelectionChanged)="handleSelectionChanged($event)"
|
|
2425
2551
|
[selectedTemplate]="customItemTemplate"
|
|
2426
2552
|
>
|
|
2427
2553
|
<ng-template #customItemTemplate let-item>
|
|
2428
2554
|
<div class="flex items-center gap-2 p-2">
|
|
2429
|
-
@if (isHexSwatch(item
|
|
2555
|
+
@if (isHexSwatch(item)) {
|
|
2430
2556
|
<div
|
|
2431
2557
|
class="w-6 h-6 rounded flex items-center justify-center border border-solid"
|
|
2432
|
-
[style.background-color]="item.
|
|
2433
|
-
[style.border-color]="item.
|
|
2434
|
-
[style.color]="item.
|
|
2558
|
+
[style.background-color]="item.background"
|
|
2559
|
+
[style.border-color]="item.border"
|
|
2560
|
+
[style.color]="item.color"
|
|
2435
2561
|
>
|
|
2436
2562
|
<span>Aa</span>
|
|
2437
2563
|
</div>
|
|
2438
2564
|
} @else {
|
|
2439
2565
|
<div
|
|
2440
2566
|
class="w-6 h-6 rounded flex items-center justify-center border border-dashed border-black dark:border-white"
|
|
2441
|
-
[class]="item.
|
|
2567
|
+
[class]="item.background"
|
|
2442
2568
|
>
|
|
2443
|
-
<span [class]="item.
|
|
2569
|
+
<span [class]="item.color">Aa</span>
|
|
2444
2570
|
</div>
|
|
2445
2571
|
}
|
|
2446
|
-
<span>{{ item.
|
|
2572
|
+
<span>{{ item.title }}</span>
|
|
2447
2573
|
</div>
|
|
2448
2574
|
</ng-template>
|
|
2449
|
-
<ax-search-box look="fill"></ax-search-box>
|
|
2450
2575
|
<ax-validation-rule message="field can't be empty" rule="required"></ax-validation-rule>
|
|
2451
|
-
</ax-
|
|
2576
|
+
</ax-lookup>
|
|
2452
2577
|
</ax-form-field>
|
|
2453
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
2578
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AXLookupComponent, selector: "ax-lookup", inputs: ["name", "mode", "dataSource", "treeDataSource", "valueField", "textField", "disabledField", "columns", "treeParentField", "hasChildrenField", "searchable", "adaptivityEnabled", "caption", "alternate", "searchPlaceholder", "placeholder", "disabled", "readonly", "look", "itemHeight", "maxVisibleItems", "treeSelectionBehavior", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "value", "valueItems"], outputs: ["lookChange", "valueChange", "onValueChanged", "onSelectionChanged", "onFocus", "onBlur", "onItemClick", "onItemSelected", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1$2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "directive", type: i1$2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2454
2579
|
}
|
|
2455
2580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPColorChooserWidgetEditComponent, decorators: [{
|
|
2456
2581
|
type: Component,
|
|
@@ -2458,47 +2583,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2458
2583
|
selector: 'ax-color-chooser-widget',
|
|
2459
2584
|
template: `
|
|
2460
2585
|
<ax-form-field>
|
|
2461
|
-
<ax-
|
|
2586
|
+
<ax-lookup
|
|
2587
|
+
mode="drop-down-list"
|
|
2462
2588
|
[dataSource]="colors()"
|
|
2463
2589
|
textField="title"
|
|
2464
2590
|
valueField="name"
|
|
2591
|
+
[searchable]="true"
|
|
2465
2592
|
[placeholder]="placeholder()"
|
|
2466
2593
|
[itemTemplate]="customItemTemplate"
|
|
2467
2594
|
[ngModel]="selectedColor()"
|
|
2468
2595
|
(onValueChanged)="handleValueChange($event)"
|
|
2596
|
+
(onSelectionChanged)="handleSelectionChanged($event)"
|
|
2469
2597
|
[selectedTemplate]="customItemTemplate"
|
|
2470
2598
|
>
|
|
2471
2599
|
<ng-template #customItemTemplate let-item>
|
|
2472
2600
|
<div class="flex items-center gap-2 p-2">
|
|
2473
|
-
@if (isHexSwatch(item
|
|
2601
|
+
@if (isHexSwatch(item)) {
|
|
2474
2602
|
<div
|
|
2475
2603
|
class="w-6 h-6 rounded flex items-center justify-center border border-solid"
|
|
2476
|
-
[style.background-color]="item.
|
|
2477
|
-
[style.border-color]="item.
|
|
2478
|
-
[style.color]="item.
|
|
2604
|
+
[style.background-color]="item.background"
|
|
2605
|
+
[style.border-color]="item.border"
|
|
2606
|
+
[style.color]="item.color"
|
|
2479
2607
|
>
|
|
2480
2608
|
<span>Aa</span>
|
|
2481
2609
|
</div>
|
|
2482
2610
|
} @else {
|
|
2483
2611
|
<div
|
|
2484
2612
|
class="w-6 h-6 rounded flex items-center justify-center border border-dashed border-black dark:border-white"
|
|
2485
|
-
[class]="item.
|
|
2613
|
+
[class]="item.background"
|
|
2486
2614
|
>
|
|
2487
|
-
<span [class]="item.
|
|
2615
|
+
<span [class]="item.color">Aa</span>
|
|
2488
2616
|
</div>
|
|
2489
2617
|
}
|
|
2490
|
-
<span>{{ item.
|
|
2618
|
+
<span>{{ item.title }}</span>
|
|
2491
2619
|
</div>
|
|
2492
2620
|
</ng-template>
|
|
2493
|
-
<ax-search-box look="fill"></ax-search-box>
|
|
2494
2621
|
<ax-validation-rule message="field can't be empty" rule="required"></ax-validation-rule>
|
|
2495
|
-
</ax-
|
|
2622
|
+
</ax-lookup>
|
|
2496
2623
|
</ax-form-field>
|
|
2497
2624
|
`,
|
|
2498
2625
|
host: {
|
|
2499
2626
|
class: 'block flex-1 w-full',
|
|
2500
2627
|
},
|
|
2501
|
-
imports: [
|
|
2628
|
+
imports: [AXLookupComponent, AXFormModule, CommonModule, FormsModule],
|
|
2502
2629
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2503
2630
|
}]
|
|
2504
2631
|
}] });
|
|
@@ -2560,7 +2687,7 @@ class AXPThemeModeChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
2560
2687
|
<span>{{ '@layout:terms.theme-modes.' + mode.id | translate | async }}</span>
|
|
2561
2688
|
</div>
|
|
2562
2689
|
}
|
|
2563
|
-
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:var(--spacing, .25rem);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div>div{display:flex;align-items:center;justify-content:center}:host>div>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type:
|
|
2690
|
+
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:var(--spacing, .25rem);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div>div{display:flex;align-items:center;justify-content:center}:host>div>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2564
2691
|
}
|
|
2565
2692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPThemeModeChooserWidgetComponent, decorators: [{
|
|
2566
2693
|
type: Component,
|
|
@@ -2678,11 +2805,175 @@ const AXPThemePaletteChooserWidget = {
|
|
|
2678
2805
|
}
|
|
2679
2806
|
};
|
|
2680
2807
|
|
|
2808
|
+
class AXPMenuAppearanceChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
2809
|
+
constructor() {
|
|
2810
|
+
super(...arguments);
|
|
2811
|
+
this.modes = signal([
|
|
2812
|
+
{
|
|
2813
|
+
id: 'dark',
|
|
2814
|
+
icon: 'fa-light fa-moon',
|
|
2815
|
+
labelKey: '@layout:settings.appearance.items.root-menu.dark.options.dark',
|
|
2816
|
+
},
|
|
2817
|
+
{
|
|
2818
|
+
id: 'light',
|
|
2819
|
+
icon: 'fa-light fa-sun',
|
|
2820
|
+
labelKey: '@layout:settings.appearance.items.root-menu.dark.options.light',
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
id: 'brand-light',
|
|
2824
|
+
icon: 'fa-light fa-palette',
|
|
2825
|
+
labelKey: '@layout:settings.appearance.items.root-menu.dark.options.brand-light',
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
id: 'brand-dark',
|
|
2829
|
+
icon: 'fa-light fa-moon-stars',
|
|
2830
|
+
labelKey: '@layout:settings.appearance.items.root-menu.dark.options.brand-dark',
|
|
2831
|
+
},
|
|
2832
|
+
], /* @ts-ignore */
|
|
2833
|
+
...(ngDevMode ? [{ debugName: "modes" }] : /* istanbul ignore next */ []));
|
|
2834
|
+
this.selectedMode = signal(null, /* @ts-ignore */
|
|
2835
|
+
...(ngDevMode ? [{ debugName: "selectedMode" }] : /* istanbul ignore next */ []));
|
|
2836
|
+
this.#eff = effect(() => {
|
|
2837
|
+
const value = this.getValue();
|
|
2838
|
+
const normalized = normalizeMenuAppearance(value, 'dark');
|
|
2839
|
+
this.selectedMode.set(this.modes().find((m) => m.id === normalized) ?? this.modes()[0]);
|
|
2840
|
+
}, /* @ts-ignore */
|
|
2841
|
+
...(ngDevMode ? [{ debugName: "#eff" }] : /* istanbul ignore next */ []));
|
|
2842
|
+
}
|
|
2843
|
+
#eff;
|
|
2844
|
+
onModeClick(mode) {
|
|
2845
|
+
this.setValue(mode.id);
|
|
2846
|
+
}
|
|
2847
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPMenuAppearanceChooserWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2848
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPMenuAppearanceChooserWidgetComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
2849
|
+
@for (mode of modes(); track mode.id) {
|
|
2850
|
+
<div (click)="onModeClick(mode)" [class.--selected]="mode.id === selectedMode()?.id">
|
|
2851
|
+
<div>
|
|
2852
|
+
<i [class]="mode.icon"></i>
|
|
2853
|
+
</div>
|
|
2854
|
+
<span>{{ mode.labelKey | translate | async }}</span>
|
|
2855
|
+
</div>
|
|
2856
|
+
}
|
|
2857
|
+
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div>div{display:flex;align-items:center;justify-content:center}:host>div>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2858
|
+
}
|
|
2859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPMenuAppearanceChooserWidgetComponent, decorators: [{
|
|
2860
|
+
type: Component,
|
|
2861
|
+
args: [{ template: `
|
|
2862
|
+
@for (mode of modes(); track mode.id) {
|
|
2863
|
+
<div (click)="onModeClick(mode)" [class.--selected]="mode.id === selectedMode()?.id">
|
|
2864
|
+
<div>
|
|
2865
|
+
<i [class]="mode.icon"></i>
|
|
2866
|
+
</div>
|
|
2867
|
+
<span>{{ mode.labelKey | translate | async }}</span>
|
|
2868
|
+
</div>
|
|
2869
|
+
}
|
|
2870
|
+
`, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AXSelectionCdkModule, AXTranslationModule], styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host>div{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 2);background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host>div:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface)}:host>div:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}:host>div.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host>div>div{display:flex;align-items:center;justify-content:center}:host>div>div i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host>div>span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
2871
|
+
}] });
|
|
2872
|
+
|
|
2873
|
+
var menuAppearanceChooserWidget_component = /*#__PURE__*/Object.freeze({
|
|
2874
|
+
__proto__: null,
|
|
2875
|
+
AXPMenuAppearanceChooserWidgetComponent: AXPMenuAppearanceChooserWidgetComponent
|
|
2876
|
+
});
|
|
2877
|
+
|
|
2878
|
+
const AXPMenuAppearanceChooserWidget = {
|
|
2879
|
+
name: 'menu-appearance-chooser',
|
|
2880
|
+
title: 'Menu Appearance Chooser',
|
|
2881
|
+
icon: 'fa-light fa-paintbrush',
|
|
2882
|
+
type: 'editor',
|
|
2883
|
+
categories: AXP_WIDGETS_LAYOUT_CATEGORY,
|
|
2884
|
+
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],
|
|
2885
|
+
components: {
|
|
2886
|
+
edit: {
|
|
2887
|
+
component: () => Promise.resolve().then(function () { return menuAppearanceChooserWidget_component; }).then((c) => c.AXPMenuAppearanceChooserWidgetComponent),
|
|
2888
|
+
},
|
|
2889
|
+
},
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
class AXPHeaderAppearanceChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
2893
|
+
constructor() {
|
|
2894
|
+
super(...arguments);
|
|
2895
|
+
this.modes = signal([
|
|
2896
|
+
{
|
|
2897
|
+
id: 'brand',
|
|
2898
|
+
icon: 'fa-light fa-palette',
|
|
2899
|
+
labelKey: '@layout:settings.appearance.items.header.appearance.options.brand',
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
id: 'simple',
|
|
2903
|
+
icon: 'fa-light fa-window-maximize',
|
|
2904
|
+
labelKey: '@layout:settings.appearance.items.header.appearance.options.simple',
|
|
2905
|
+
},
|
|
2906
|
+
], /* @ts-ignore */
|
|
2907
|
+
...(ngDevMode ? [{ debugName: "modes" }] : /* istanbul ignore next */ []));
|
|
2908
|
+
this.selectedMode = signal(null, /* @ts-ignore */
|
|
2909
|
+
...(ngDevMode ? [{ debugName: "selectedMode" }] : /* istanbul ignore next */ []));
|
|
2910
|
+
this.#eff = effect(() => {
|
|
2911
|
+
const value = this.getValue();
|
|
2912
|
+
const normalized = normalizeHeaderAppearance(value, 'brand');
|
|
2913
|
+
this.selectedMode.set(this.modes().find((m) => m.id === normalized) ?? this.modes()[0]);
|
|
2914
|
+
}, /* @ts-ignore */
|
|
2915
|
+
...(ngDevMode ? [{ debugName: "#eff" }] : /* istanbul ignore next */ []));
|
|
2916
|
+
}
|
|
2917
|
+
#eff;
|
|
2918
|
+
onModeClick(mode) {
|
|
2919
|
+
this.setValue(mode.id);
|
|
2920
|
+
}
|
|
2921
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPHeaderAppearanceChooserWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2922
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPHeaderAppearanceChooserWidgetComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
2923
|
+
@for (mode of modes(); track mode.id) {
|
|
2924
|
+
<div
|
|
2925
|
+
(click)="onModeClick(mode)"
|
|
2926
|
+
[class.--selected]="mode.id === selectedMode()?.id"
|
|
2927
|
+
class="axp-header-appearance-chooser__option"
|
|
2928
|
+
>
|
|
2929
|
+
<i [class]="mode.icon"></i>
|
|
2930
|
+
<span>{{ mode.labelKey | translate | async }}</span>
|
|
2931
|
+
</div>
|
|
2932
|
+
}
|
|
2933
|
+
`, isInline: true, styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host .axp-header-appearance-chooser__option{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:var(--spacing, .25rem);background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host .axp-header-appearance-chooser__option i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host .axp-header-appearance-chooser__option span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}:host .axp-header-appearance-chooser__option.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host .axp-header-appearance-chooser__option:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2934
|
+
}
|
|
2935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPHeaderAppearanceChooserWidgetComponent, decorators: [{
|
|
2936
|
+
type: Component,
|
|
2937
|
+
args: [{ template: `
|
|
2938
|
+
@for (mode of modes(); track mode.id) {
|
|
2939
|
+
<div
|
|
2940
|
+
(click)="onModeClick(mode)"
|
|
2941
|
+
[class.--selected]="mode.id === selectedMode()?.id"
|
|
2942
|
+
class="axp-header-appearance-chooser__option"
|
|
2943
|
+
>
|
|
2944
|
+
<i [class]="mode.icon"></i>
|
|
2945
|
+
<span>{{ mode.labelKey | translate | async }}</span>
|
|
2946
|
+
</div>
|
|
2947
|
+
}
|
|
2948
|
+
`, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AXSelectionCdkModule, AXTranslationModule], styles: ["@layer properties;:host{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--spacing, .25rem) * 2)}:host .axp-header-appearance-chooser__option{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:var(--spacing, .25rem);background-color:var(--color-surface);color:var(--color-on-surface);border-color:var(--color-border-surface);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s}:host .axp-header-appearance-chooser__option i{font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)))}:host .axp-header-appearance-chooser__option span{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}:host .axp-header-appearance-chooser__option.--selected{background-color:var(--color-primary-lighter);color:var(--color-on-primary-lighter);border-color:var(--color-border-primary-lighter)}:host .axp-header-appearance-chooser__option:hover{background-color:var(--color-dark);color:var(--color-on-dark);border-color:var(--color-border-dark)}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
2949
|
+
}] });
|
|
2950
|
+
|
|
2951
|
+
var headerAppearanceChooserWidget_component = /*#__PURE__*/Object.freeze({
|
|
2952
|
+
__proto__: null,
|
|
2953
|
+
AXPHeaderAppearanceChooserWidgetComponent: AXPHeaderAppearanceChooserWidgetComponent
|
|
2954
|
+
});
|
|
2955
|
+
|
|
2956
|
+
const AXPHeaderAppearanceChooserWidget = {
|
|
2957
|
+
name: 'header-appearance-chooser',
|
|
2958
|
+
title: 'Header Appearance Chooser',
|
|
2959
|
+
icon: 'fa-light fa-window-maximize',
|
|
2960
|
+
type: 'editor',
|
|
2961
|
+
categories: AXP_WIDGETS_LAYOUT_CATEGORY,
|
|
2962
|
+
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],
|
|
2963
|
+
components: {
|
|
2964
|
+
edit: {
|
|
2965
|
+
component: () => Promise.resolve().then(function () { return headerAppearanceChooserWidget_component; }).then((c) => c.AXPHeaderAppearanceChooserWidgetComponent),
|
|
2966
|
+
},
|
|
2967
|
+
},
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2681
2970
|
//#endregion
|
|
2682
2971
|
//#region ---- Theme Widgets Provider ----
|
|
2683
2972
|
const WIDGETS = [
|
|
2684
2973
|
AXPThemePaletteChooserWidget,
|
|
2685
2974
|
AXPThemeModeChooserWidget,
|
|
2975
|
+
AXPMenuAppearanceChooserWidget,
|
|
2976
|
+
AXPHeaderAppearanceChooserWidget,
|
|
2686
2977
|
AXPMenuOrientationChooserWidget,
|
|
2687
2978
|
AXPFontSizeChooserWidget,
|
|
2688
2979
|
AXPFontStyleChooserWidget,
|
|
@@ -2738,7 +3029,7 @@ class AXPThemesSharedModule {
|
|
|
2738
3029
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
2739
3030
|
useFactory: async () => {
|
|
2740
3031
|
const injector = inject(Injector);
|
|
2741
|
-
const provider = (await import('./acorex-platform-framework-client-themes-shared-settings.provider-
|
|
3032
|
+
const provider = (await import('./acorex-platform-framework-client-themes-shared-settings.provider-CpsAIsxj.mjs')).AXPThemeSettingProvider;
|
|
2742
3033
|
return new provider(injector);
|
|
2743
3034
|
},
|
|
2744
3035
|
multi: true,
|
|
@@ -2782,7 +3073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2782
3073
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
2783
3074
|
useFactory: async () => {
|
|
2784
3075
|
const injector = inject(Injector);
|
|
2785
|
-
const provider = (await import('./acorex-platform-framework-client-themes-shared-settings.provider-
|
|
3076
|
+
const provider = (await import('./acorex-platform-framework-client-themes-shared-settings.provider-CpsAIsxj.mjs')).AXPThemeSettingProvider;
|
|
2786
3077
|
return new provider(injector);
|
|
2787
3078
|
},
|
|
2788
3079
|
multi: true,
|
|
@@ -2796,5 +3087,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2796
3087
|
* Generated bundle index. Do not edit.
|
|
2797
3088
|
*/
|
|
2798
3089
|
|
|
2799
|
-
export { AXPLayoutThemeService, AXPMenuOrientation, AXPMenuVerticalMode, AXPSideMenuState, AXPThemeLayoutSetting, AXPThemeMode, AXPThemePaletteProviderDefault, AXPThemeSlotComponent, AXPThemesSharedModule, AXP_SIDE_MENU_COMPACT_WIDTH, AXP_SIDE_MENU_FULL_DEFAULT_WIDTH, AXP_THEME_PALETTE_PROVIDER, configureRegionalFontStylesheets, getRegionalFontStylesheet };
|
|
3090
|
+
export { AXPLayoutThemeService, AXPMenuOrientation, AXPMenuVerticalMode, AXPSideMenuState, AXPThemeLayoutSetting, AXPThemeMode, AXPThemePaletteProviderDefault, AXPThemeSlotComponent, AXPThemesSharedModule, AXP_SIDE_MENU_COMPACT_WIDTH, AXP_SIDE_MENU_FULL_DEFAULT_WIDTH, AXP_THEME_PALETTE_PROVIDER, configureRegionalFontStylesheets, getRegionalFontStylesheet, normalizeHeaderAppearance, normalizeMenuAppearance };
|
|
2800
3091
|
//# sourceMappingURL=acorex-platform-framework-client-themes-shared.mjs.map
|