@edsis/angular 22.0.55 → 22.0.56
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.
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, effect, Service, InjectionToken, makeEnvironmentProviders, provideEnvironmentInitializer, Injector, linkedSignal, computed, afterNextRender, input, output, Component, ElementRef, signal, DestroyRef, Directive } from '@angular/core';
|
|
3
3
|
import { NavigationService } from '@edsis/navigation/service';
|
|
4
4
|
import { LayoutService, isUiLayoutType, isUiLayoutWidth, isUiLayoutSurface, isUiLayoutStyle } from '@edsis/theme/layout';
|
|
5
|
-
import { ThemeStyleService, ThemeModeService, ThemeColorService, ThemeBrandService, isThemeMode, isThemeColor, isThemeBrand, themeStylePresetEntry, DEFAULT_THEME_MODE, DEFAULT_THEME_COLOR, DEFAULT_THEME_BRAND,
|
|
5
|
+
import { ThemeStyleService, ThemeModeService, ThemeSpaceService, ThemeRadiusService, ThemeColorService, ThemeBrandService, isThemeMode, isThemeSpace, isThemeRadius, isThemeColor, isThemeBrand, themeStylePresetEntry, DEFAULT_THEME_MODE, DEFAULT_THEME_COLOR, DEFAULT_THEME_BRAND, THEME_STYLES, THEME_MODES, THEME_COLORS, THEME_BRANDS, THEME_SPACES, THEME_RADII, isThemeStyle, isThemeStyleSettingLocked } from '@edsis/theme/styles';
|
|
6
6
|
import { LAYOUT_DEFAULT_TYPE, LAYOUT_DEFAULT_WIDTH, LAYOUT_DEFAULT_SURFACE, LAYOUT_DEFAULT_STYLE } from '@edsis/theme/layout/types';
|
|
7
7
|
import { DOCUMENT } from '@angular/common';
|
|
8
8
|
import { SheetComponent } from '@edsis/component/sheet';
|
|
@@ -22,6 +22,8 @@ class ThemeStylePresetService {
|
|
|
22
22
|
config = inject(APP_PREFERENCES_CONFIG, { optional: true });
|
|
23
23
|
themeStyle = inject(ThemeStyleService);
|
|
24
24
|
themeMode = inject(ThemeModeService);
|
|
25
|
+
themeSpace = inject(ThemeSpaceService);
|
|
26
|
+
themeRadius = inject(ThemeRadiusService);
|
|
25
27
|
themeColor = inject(ThemeColorService);
|
|
26
28
|
themeBrand = inject(ThemeBrandService);
|
|
27
29
|
layout = inject(LayoutService);
|
|
@@ -47,6 +49,12 @@ class ThemeStylePresetService {
|
|
|
47
49
|
const mode = this.valueFor(style, 'theme-mode', this.defaultMode());
|
|
48
50
|
if (isThemeMode(mode))
|
|
49
51
|
this.themeMode.setMode(mode);
|
|
52
|
+
const space = this.valueFor(style, 'theme-space', this.defaultSpace());
|
|
53
|
+
if (isThemeSpace(space))
|
|
54
|
+
this.themeSpace.setSpace(space);
|
|
55
|
+
const radius = this.valueFor(style, 'theme-radius', this.defaultRadius());
|
|
56
|
+
if (isThemeRadius(radius))
|
|
57
|
+
this.themeRadius.setRadius(radius);
|
|
50
58
|
const color = this.valueFor(style, 'theme-color', this.defaultColor());
|
|
51
59
|
if (isThemeColor(color))
|
|
52
60
|
this.themeColor.setColor(color);
|
|
@@ -90,13 +98,76 @@ class ThemeStylePresetService {
|
|
|
90
98
|
});
|
|
91
99
|
}
|
|
92
100
|
enforceLockedValues(style) {
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
101
|
+
const mode = this.lockedValueFor(style, 'theme-mode');
|
|
102
|
+
if (isThemeMode(mode) && this.themeMode.mode() !== mode)
|
|
103
|
+
this.themeMode.setMode(mode);
|
|
104
|
+
const space = this.lockedValueFor(style, 'theme-space');
|
|
105
|
+
if (isThemeSpace(space) && this.themeSpace.space() !== space)
|
|
106
|
+
this.themeSpace.setSpace(space);
|
|
107
|
+
const radius = this.lockedValueFor(style, 'theme-radius');
|
|
108
|
+
if (isThemeRadius(radius) && this.themeRadius.radius() !== radius)
|
|
109
|
+
this.themeRadius.setRadius(radius);
|
|
110
|
+
const color = this.lockedValueFor(style, 'theme-color');
|
|
111
|
+
if (isThemeColor(color) && this.themeColor.color() !== color)
|
|
112
|
+
this.themeColor.setColor(color);
|
|
113
|
+
const brand = this.lockedValueFor(style, 'theme-brand');
|
|
114
|
+
if (isThemeBrand(brand) && this.themeBrand.brand() !== brand)
|
|
115
|
+
this.themeBrand.setBrand(brand);
|
|
116
|
+
const type = this.lockedValueFor(style, 'layout-type');
|
|
117
|
+
if (isUiLayoutType(type) && this.layout.type() !== type)
|
|
118
|
+
this.layout.setType(type);
|
|
119
|
+
const width = this.lockedValueFor(style, 'layout-width');
|
|
120
|
+
if (isUiLayoutWidth(width) && this.layout.width() !== width)
|
|
121
|
+
this.layout.setWidth(width);
|
|
122
|
+
const surface = this.lockedValueFor(style, 'layout-surface');
|
|
123
|
+
if (isUiLayoutSurface(surface) && this.layout.surface() !== surface)
|
|
124
|
+
this.layout.setSurface(surface);
|
|
125
|
+
const appearance = this.lockedValueFor(style, 'layout-appearance');
|
|
126
|
+
if (isUiLayoutStyle(appearance) && this.layout.appearance() !== appearance) {
|
|
127
|
+
this.layout.setAppearance(appearance);
|
|
128
|
+
}
|
|
129
|
+
const orientation = this.lockedValueFor(style, 'nav-orientation');
|
|
130
|
+
const navigationType = this.lockedValueFor(style, 'nav-type');
|
|
131
|
+
const position = this.lockedValueFor(style, 'nav-position');
|
|
132
|
+
const typeMode = this.lockedValueFor(style, 'nav-type-mode');
|
|
133
|
+
const currentNavigationState = this.navigation.currentState(PRIMARY_NAVIGATION_ID$2);
|
|
134
|
+
const navigationState = currentNavigationState ?? {
|
|
135
|
+
id: PRIMARY_NAVIGATION_ID$2,
|
|
136
|
+
orientation: 'vertical',
|
|
137
|
+
type: 'sidebar',
|
|
138
|
+
position: 'left',
|
|
139
|
+
collapsed: false,
|
|
140
|
+
dockbarMode: 'default',
|
|
141
|
+
};
|
|
142
|
+
const navigationUpdate = {
|
|
143
|
+
...(isNavigationOrientation(orientation) && navigationState.orientation !== orientation
|
|
144
|
+
? { orientation }
|
|
145
|
+
: {}),
|
|
146
|
+
...(isNavigationType(navigationType) && navigationState.type !== navigationType
|
|
147
|
+
? { type: navigationType }
|
|
148
|
+
: {}),
|
|
149
|
+
...(isNavigationPosition(position) && navigationState.position !== position
|
|
150
|
+
? { position }
|
|
151
|
+
: {}),
|
|
152
|
+
...(typeMode === 'collapsed' && !navigationState.collapsed
|
|
153
|
+
? { collapsed: true }
|
|
154
|
+
: typeMode === 'expanded' && navigationState.collapsed
|
|
155
|
+
? { collapsed: false }
|
|
156
|
+
: {}),
|
|
157
|
+
...(isNavigationDockbarMode(typeMode) && navigationState.dockbarMode !== typeMode
|
|
158
|
+
? { dockbarMode: typeMode }
|
|
159
|
+
: {}),
|
|
160
|
+
};
|
|
161
|
+
const hasLockedNavigationValue = [orientation, navigationType, position, typeMode].some((value) => value !== null);
|
|
162
|
+
if (Object.keys(navigationUpdate).length > 0 ||
|
|
163
|
+
(currentNavigationState === null && hasLockedNavigationValue)) {
|
|
164
|
+
this.navigation.update(PRIMARY_NAVIGATION_ID$2, navigationUpdate);
|
|
98
165
|
}
|
|
99
166
|
}
|
|
167
|
+
lockedValueFor(style, key) {
|
|
168
|
+
const entry = themeStylePresetEntry(style, key);
|
|
169
|
+
return entry.control === 'fix' ? entry.value : null;
|
|
170
|
+
}
|
|
100
171
|
valueFor(style, key, fallback) {
|
|
101
172
|
const value = themeStylePresetEntry(style, key).value;
|
|
102
173
|
return value === 'default' ? fallback : value;
|
|
@@ -104,6 +175,12 @@ class ThemeStylePresetService {
|
|
|
104
175
|
defaultMode() {
|
|
105
176
|
return this.config?.defaults?.theme.mode ?? DEFAULT_THEME_MODE;
|
|
106
177
|
}
|
|
178
|
+
defaultSpace() {
|
|
179
|
+
return this.config?.defaults?.theme.space ?? 'normal';
|
|
180
|
+
}
|
|
181
|
+
defaultRadius() {
|
|
182
|
+
return this.config?.defaults?.theme.radius ?? 'medium';
|
|
183
|
+
}
|
|
107
184
|
defaultColor() {
|
|
108
185
|
return this.config?.defaults?.theme.color ?? DEFAULT_THEME_COLOR;
|
|
109
186
|
}
|
|
@@ -144,16 +221,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
144
221
|
type: Service
|
|
145
222
|
}], ctorParameters: () => [] });
|
|
146
223
|
function isNavigationType(value) {
|
|
147
|
-
return NAVIGATION_TYPES.includes(value);
|
|
224
|
+
return value !== null && NAVIGATION_TYPES.includes(value);
|
|
148
225
|
}
|
|
149
226
|
function isNavigationOrientation(value) {
|
|
150
|
-
return NAVIGATION_ORIENTATIONS.includes(value);
|
|
227
|
+
return value !== null && NAVIGATION_ORIENTATIONS.includes(value);
|
|
151
228
|
}
|
|
152
229
|
function isNavigationPosition(value) {
|
|
153
|
-
return NAVIGATION_POSITIONS.includes(value);
|
|
230
|
+
return value !== null && NAVIGATION_POSITIONS.includes(value);
|
|
154
231
|
}
|
|
155
232
|
function isNavigationDockbarMode(value) {
|
|
156
|
-
return NAVIGATION_DOCKBAR_MODES.includes(value);
|
|
233
|
+
return value !== null && NAVIGATION_DOCKBAR_MODES.includes(value);
|
|
157
234
|
}
|
|
158
235
|
|
|
159
236
|
const APP_PREFERENCES_CONFIG = new InjectionToken('APP_PREFERENCES_CONFIG');
|
|
@@ -392,6 +469,7 @@ const THEME_STYLE_OPTIONS = {
|
|
|
392
469
|
rail: { label: 'Rail', icon: 'view_sidebar' },
|
|
393
470
|
ala: { label: 'Ala', icon: 'palette' },
|
|
394
471
|
aye: { label: 'Aye', icon: 'visibility' },
|
|
472
|
+
desktop: { label: 'Desktop', icon: 'desktop_windows' },
|
|
395
473
|
};
|
|
396
474
|
const THEME_MODE_OPTIONS = {
|
|
397
475
|
light: { label: 'Terang', icon: 'light_mode' },
|
|
@@ -418,8 +496,10 @@ const LAYOUT_APPEARANCE_OPTIONS = {
|
|
|
418
496
|
base: { label: 'Dasar', icon: 'crop_square' },
|
|
419
497
|
'border-rail': { label: 'Border rail', icon: 'border_outer' },
|
|
420
498
|
ala: { label: 'Ala', icon: 'space_dashboard' },
|
|
499
|
+
desktop: { label: 'Desktop', icon: 'desktop_windows' },
|
|
421
500
|
};
|
|
422
501
|
const LAYOUT_SURFACE_OPTIONS = {
|
|
502
|
+
base: { label: 'Dasar', icon: 'crop_square' },
|
|
423
503
|
flat: { label: 'Datar', icon: 'crop_16_9' },
|
|
424
504
|
grid: { label: 'Grid', icon: 'grid_4x4' },
|
|
425
505
|
};
|
|
@@ -459,6 +539,7 @@ function toOptions(values, options) {
|
|
|
459
539
|
}
|
|
460
540
|
class AppPreferencesSurfaceComponent {
|
|
461
541
|
config = inject(APP_PREFERENCES_CONFIG, { optional: true });
|
|
542
|
+
preferences = inject(AppPreferencesPanelService);
|
|
462
543
|
themeMode = inject(ThemeModeService);
|
|
463
544
|
themeSpace = inject(ThemeSpaceService);
|
|
464
545
|
themeRadius = inject(ThemeRadiusService);
|
|
@@ -499,8 +580,8 @@ class AppPreferencesSurfaceComponent {
|
|
|
499
580
|
brandOptions = toOptions(THEME_BRANDS, THEME_BRAND_OPTIONS);
|
|
500
581
|
spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);
|
|
501
582
|
radiusOptions = toOptions(THEME_RADII, THEME_RADIUS_OPTIONS);
|
|
502
|
-
appearanceOptions = toOptions(['base', 'border-rail', 'ala'], LAYOUT_APPEARANCE_OPTIONS);
|
|
503
|
-
surfaceOptions = toOptions(['flat', 'grid'], LAYOUT_SURFACE_OPTIONS);
|
|
583
|
+
appearanceOptions = toOptions(['base', 'border-rail', 'ala', 'desktop'], LAYOUT_APPEARANCE_OPTIONS);
|
|
584
|
+
surfaceOptions = toOptions(['base', 'flat', 'grid'], LAYOUT_SURFACE_OPTIONS);
|
|
504
585
|
widthOptions = toOptions(['full', 'wide', 'container', 'fluid'], LAYOUT_WIDTH_OPTIONS);
|
|
505
586
|
layoutTypeOptions = toOptions(NAVIGATION_LAYOUT_TYPES, LAYOUT_TYPE_OPTIONS);
|
|
506
587
|
navigationTypeOptions = computed(() => toOptions(this.navigationState().orientation === 'vertical'
|
|
@@ -552,8 +633,13 @@ class AppPreferencesSurfaceComponent {
|
|
|
552
633
|
});
|
|
553
634
|
}
|
|
554
635
|
selectStyle(value) {
|
|
555
|
-
if (isThemeStyle(value))
|
|
556
|
-
|
|
636
|
+
if (!isThemeStyle(value))
|
|
637
|
+
return;
|
|
638
|
+
// A style may switch the shell between sidebar and dockbar. Close the
|
|
639
|
+
// currently projected panel first so the navigation tree and preferences
|
|
640
|
+
// surface do not transition at the same time.
|
|
641
|
+
this.preferences.close();
|
|
642
|
+
this.themeStyle.setStyle(value);
|
|
557
643
|
}
|
|
558
644
|
selectMode(value) {
|
|
559
645
|
if (!this.isLocked('theme-mode') && isThemeMode(value))
|
|
@@ -568,11 +654,11 @@ class AppPreferencesSurfaceComponent {
|
|
|
568
654
|
this.themeBrand.setBrand(value);
|
|
569
655
|
}
|
|
570
656
|
selectSpace(value) {
|
|
571
|
-
if (isThemeSpace(value))
|
|
657
|
+
if (!this.isLocked('theme-space') && isThemeSpace(value))
|
|
572
658
|
this.themeSpace.setSpace(value);
|
|
573
659
|
}
|
|
574
660
|
selectRadius(value) {
|
|
575
|
-
if (isThemeRadius(value))
|
|
661
|
+
if (!this.isLocked('theme-radius') && isThemeRadius(value))
|
|
576
662
|
this.themeRadius.setRadius(value);
|
|
577
663
|
}
|
|
578
664
|
selectAppearance(value) {
|
|
@@ -641,23 +727,23 @@ class AppPreferencesSurfaceComponent {
|
|
|
641
727
|
if (!defaults)
|
|
642
728
|
return;
|
|
643
729
|
let changed = false;
|
|
644
|
-
if (this.mode() !== defaults.theme.mode) {
|
|
730
|
+
if (!this.isLocked('theme-mode') && this.mode() !== defaults.theme.mode) {
|
|
645
731
|
this.themeMode.setMode(defaults.theme.mode);
|
|
646
732
|
changed = true;
|
|
647
733
|
}
|
|
648
|
-
if (this.color() !== defaults.theme.color) {
|
|
734
|
+
if (!this.isLocked('theme-color') && this.color() !== defaults.theme.color) {
|
|
649
735
|
this.themeColor.setColor(defaults.theme.color);
|
|
650
736
|
changed = true;
|
|
651
737
|
}
|
|
652
|
-
if (this.brand() !== defaults.theme.brand) {
|
|
738
|
+
if (!this.isLocked('theme-brand') && this.brand() !== defaults.theme.brand) {
|
|
653
739
|
this.themeBrand.setBrand(defaults.theme.brand);
|
|
654
740
|
changed = true;
|
|
655
741
|
}
|
|
656
|
-
if (this.space() !== defaults.theme.space) {
|
|
742
|
+
if (!this.isLocked('theme-space') && this.space() !== defaults.theme.space) {
|
|
657
743
|
this.themeSpace.setSpace(defaults.theme.space);
|
|
658
744
|
changed = true;
|
|
659
745
|
}
|
|
660
|
-
if (this.radius() !== defaults.theme.radius) {
|
|
746
|
+
if (!this.isLocked('theme-radius') && this.radius() !== defaults.theme.radius) {
|
|
661
747
|
this.themeRadius.setRadius(defaults.theme.radius);
|
|
662
748
|
changed = true;
|
|
663
749
|
}
|
|
@@ -669,11 +755,11 @@ class AppPreferencesSurfaceComponent {
|
|
|
669
755
|
this.layout.setAppearance(defaults.layout.appearance);
|
|
670
756
|
changed = true;
|
|
671
757
|
}
|
|
672
|
-
if (this.surface() !== defaults.layout.surface) {
|
|
758
|
+
if (!this.isLocked('layout-surface') && this.surface() !== defaults.layout.surface) {
|
|
673
759
|
this.layout.setSurface(defaults.layout.surface);
|
|
674
760
|
changed = true;
|
|
675
761
|
}
|
|
676
|
-
if (this.width() !== defaults.layout.width) {
|
|
762
|
+
if (!this.isLocked('layout-width') && this.width() !== defaults.layout.width) {
|
|
677
763
|
this.layout.setWidth(defaults.layout.width);
|
|
678
764
|
changed = true;
|
|
679
765
|
}
|
|
@@ -716,7 +802,7 @@ class AppPreferencesSurfaceComponent {
|
|
|
716
802
|
return this.isLocked('layout-type') || this.isLocked('nav-orientation');
|
|
717
803
|
}
|
|
718
804
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AppPreferencesSurfaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
719
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AppPreferencesSurfaceComponent, isStandalone: true, selector: "app-preferences-surface", outputs: { closeRequested: "closeRequested" }, host: { classAttribute: "block h-full min-h-0 w-full" }, ngImport: i0, template: "<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n [locked]=\"isLocked('layout-appearance')\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n [locked]=\"isLocked('layout-width')\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n", dependencies: [{ kind: "component", type: AppPreferenceSettingGroupComponent, selector: "app-preference-setting-group", inputs: ["title", "description", "activeLabel", "options", "selected", "headingId", "locked"], outputs: ["optionSelected"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }, { kind: "component", type: IconComponent, selector: "Icon", inputs: ["name", "class", "size", "fill", "weight", "grade", "opticalSize"] }, { kind: "component", type: PageComponent, selector: "Page", inputs: ["variant", "height", "scroll", "position", "sideMode", "sideOpen", "sideWidth", "class"], outputs: ["sideOpenChange"] }, { kind: "component", type: PageContentComponent, selector: "PageContent", inputs: ["class"] }, { kind: "component", type: PageFooterComponent, selector: "PageFooter", inputs: ["class"] }, { kind: "component", type: PageHeaderComponent, selector: "PageHeader", inputs: ["class"] }] });
|
|
805
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AppPreferencesSurfaceComponent, isStandalone: true, selector: "app-preferences-surface", outputs: { closeRequested: "closeRequested" }, host: { classAttribute: "block h-full min-h-0 w-full" }, ngImport: i0, template: "<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n [locked]=\"isLocked('theme-space')\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n [locked]=\"isLocked('theme-radius')\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n [locked]=\"isLocked('layout-appearance')\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n [locked]=\"isLocked('layout-width')\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n", dependencies: [{ kind: "component", type: AppPreferenceSettingGroupComponent, selector: "app-preference-setting-group", inputs: ["title", "description", "activeLabel", "options", "selected", "headingId", "locked"], outputs: ["optionSelected"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }, { kind: "component", type: IconComponent, selector: "Icon", inputs: ["name", "class", "size", "fill", "weight", "grade", "opticalSize"] }, { kind: "component", type: PageComponent, selector: "Page", inputs: ["variant", "height", "scroll", "position", "sideMode", "sideOpen", "sideWidth", "class"], outputs: ["sideOpenChange"] }, { kind: "component", type: PageContentComponent, selector: "PageContent", inputs: ["class"] }, { kind: "component", type: PageFooterComponent, selector: "PageFooter", inputs: ["class"] }, { kind: "component", type: PageHeaderComponent, selector: "PageHeader", inputs: ["class"] }] });
|
|
720
806
|
}
|
|
721
807
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AppPreferencesSurfaceComponent, decorators: [{
|
|
722
808
|
type: Component,
|
|
@@ -730,7 +816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
730
816
|
PageHeaderComponent,
|
|
731
817
|
], host: {
|
|
732
818
|
class: 'block h-full min-h-0 w-full',
|
|
733
|
-
}, template: "<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n [locked]=\"isLocked('layout-appearance')\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n [locked]=\"isLocked('layout-width')\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n" }]
|
|
819
|
+
}, template: "<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n [locked]=\"isLocked('theme-space')\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n [locked]=\"isLocked('theme-radius')\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n [locked]=\"isLocked('layout-appearance')\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n [locked]=\"isLocked('layout-width')\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n" }]
|
|
734
820
|
}], ctorParameters: () => [], propDecorators: { closeRequested: [{ type: i0.Output, args: ["closeRequested"] }] } });
|
|
735
821
|
function isNavigationTypeForOrientation(value, orientation) {
|
|
736
822
|
return orientation === 'vertical'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edsis-angular-block-themes.mjs","sources":["../../../library/angular/block/themes/theme-style-preset.service.ts","../../../library/angular/block/themes/app-preferences.config.ts","../../../library/angular/block/themes/app-preferences-panel.service.ts","../../../library/angular/block/themes/app-preference-setting-group.component.ts","../../../library/angular/block/themes/app-preferences-surface.component.ts","../../../library/angular/block/themes/app-preferences-surface.component.html","../../../library/angular/block/themes/app-preferences.component.ts","../../../library/angular/block/themes/app-preferences-trigger.directive.ts","../../../library/angular/block/themes/edsis-angular-block-themes.ts"],"sourcesContent":["import { effect, inject, Service } from '@angular/core';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationOrientation,\n type NavigationPosition,\n type NavigationType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutStyle,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n DEFAULT_THEME_BRAND,\n DEFAULT_THEME_COLOR,\n DEFAULT_THEME_MODE,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeStyleService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n themeStylePresetEntry,\n type ThemeStyle,\n} from '@edsis/theme/styles';\nimport {\n LAYOUT_DEFAULT_SURFACE,\n LAYOUT_DEFAULT_STYLE,\n LAYOUT_DEFAULT_TYPE,\n LAYOUT_DEFAULT_WIDTH,\n} from '@edsis/theme/layout/types';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NAVIGATION_TYPES = ['sidebar', 'dockbar', 'navbar', 'flyout'] as const;\nconst NAVIGATION_ORIENTATIONS = ['vertical', 'horizontal'] as const;\nconst NAVIGATION_POSITIONS = ['left', 'right', 'top', 'bottom'] as const;\nconst NAVIGATION_DOCKBAR_MODES = ['default', 'drawer', 'sticky'] as const;\n\n@Service()\nexport class ThemeStylePresetService {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly themeStyle = inject(ThemeStyleService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n\n constructor() {\n let previousStyle = this.themeStyle.style();\n\n this.enforceLockedValues(previousStyle);\n\n effect(() => {\n const style = this.themeStyle.style();\n\n if (style === previousStyle) return;\n\n previousStyle = style;\n this.applyPreset(style);\n });\n\n effect(() => this.enforceLockedValues(this.themeStyle.style()));\n }\n\n private applyPreset(style: ThemeStyle): void {\n this.applyThemeValues(style);\n this.applyLayoutValues(style);\n this.applyNavigationValues(style);\n }\n\n private applyThemeValues(style: ThemeStyle): void {\n const mode = this.valueFor(style, 'theme-mode', this.defaultMode());\n if (isThemeMode(mode)) this.themeMode.setMode(mode);\n\n const color = this.valueFor(style, 'theme-color', this.defaultColor());\n if (isThemeColor(color)) this.themeColor.setColor(color);\n\n const brand = this.valueFor(style, 'theme-brand', this.defaultBrand());\n if (isThemeBrand(brand)) this.themeBrand.setBrand(brand);\n }\n\n private applyLayoutValues(style: ThemeStyle): void {\n const type = this.valueFor(style, 'layout-type', this.defaultLayoutType());\n if (isUiLayoutType(type)) this.layout.setType(type);\n\n const width = this.valueFor(style, 'layout-width', this.defaultLayoutWidth());\n if (isUiLayoutWidth(width)) this.layout.setWidth(width);\n\n const surface = this.valueFor(style, 'layout-surface', this.defaultLayoutSurface());\n if (isUiLayoutSurface(surface)) this.layout.setSurface(surface);\n\n const appearance = this.valueFor(style, 'layout-appearance', this.defaultLayoutAppearance());\n if (isUiLayoutStyle(appearance)) this.layout.setAppearance(appearance);\n }\n\n private applyNavigationValues(style: ThemeStyle): void {\n const orientation = this.valueFor(\n style,\n 'nav-orientation',\n this.defaultNavigationOrientation(),\n );\n const type = this.valueFor(style, 'nav-type', this.defaultNavigationType());\n const position = this.valueFor(style, 'nav-position', this.defaultNavigationPosition());\n const typeMode = this.valueFor(style, 'nav-type-mode', 'default');\n\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n orientation: isNavigationOrientation(orientation)\n ? orientation\n : this.defaultNavigationOrientation(),\n type: isNavigationType(type) ? type : this.defaultNavigationType(),\n position: isNavigationPosition(position) ? position : this.defaultNavigationPosition(),\n collapsed:\n typeMode === 'collapsed'\n ? true\n : typeMode === 'expanded'\n ? false\n : this.defaultNavigationCollapsed(),\n dockbarMode: isNavigationDockbarMode(typeMode)\n ? typeMode\n : this.defaultNavigationDockbarMode(),\n });\n }\n\n private enforceLockedValues(style: ThemeStyle): void {\n const appearance = themeStylePresetEntry(style, 'layout-appearance');\n\n if (\n appearance.control === 'fix' &&\n isUiLayoutStyle(appearance.value) &&\n this.layout.appearance() !== appearance.value\n ) {\n this.layout.setAppearance(appearance.value);\n }\n }\n\n private valueFor(\n style: ThemeStyle,\n key: Parameters<typeof themeStylePresetEntry>[1],\n fallback: string,\n ): string {\n const value = themeStylePresetEntry(style, key).value;\n\n return value === 'default' ? fallback : value;\n }\n\n private defaultMode(): string {\n return this.config?.defaults?.theme.mode ?? DEFAULT_THEME_MODE;\n }\n\n private defaultColor(): string {\n return this.config?.defaults?.theme.color ?? DEFAULT_THEME_COLOR;\n }\n\n private defaultBrand(): string {\n return this.config?.defaults?.theme.brand ?? DEFAULT_THEME_BRAND;\n }\n\n private defaultLayoutType(): string {\n return this.config?.defaults?.layout.type ?? LAYOUT_DEFAULT_TYPE;\n }\n\n private defaultLayoutWidth(): string {\n return this.config?.defaults?.layout.width ?? LAYOUT_DEFAULT_WIDTH;\n }\n\n private defaultLayoutSurface(): string {\n return this.config?.defaults?.layout.surface ?? LAYOUT_DEFAULT_SURFACE;\n }\n\n private defaultLayoutAppearance(): string {\n return this.config?.defaults?.layout.appearance ?? LAYOUT_DEFAULT_STYLE;\n }\n\n private defaultNavigationOrientation(): NavigationOrientation {\n return this.config?.defaults?.navigation.orientation ?? 'vertical';\n }\n\n private defaultNavigationType(): NavigationType {\n return this.config?.defaults?.navigation.type ?? 'sidebar';\n }\n\n private defaultNavigationPosition(): NavigationPosition {\n return this.config?.defaults?.navigation.position ?? 'left';\n }\n\n private defaultNavigationCollapsed(): boolean {\n return this.config?.defaults?.navigation.collapsed ?? false;\n }\n\n private defaultNavigationDockbarMode(): NavigationDockbarMode {\n return this.config?.defaults?.navigation.dockbarMode ?? 'default';\n }\n}\n\nfunction isNavigationType(value: string): value is NavigationType {\n return (NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationOrientation(value: string): value is NavigationOrientation {\n return (NAVIGATION_ORIENTATIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationPosition(value: string): value is NavigationPosition {\n return (NAVIGATION_POSITIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationDockbarMode(value: string): value is NavigationDockbarMode {\n return (NAVIGATION_DOCKBAR_MODES as readonly string[]).includes(value);\n}\n","import {\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport type {\n NavigationDockbarMode,\n NavigationOrientation,\n NavigationPosition,\n NavigationType,\n} from '@edsis/navigation/service';\nimport type {\n LayoutSurface,\n LayoutStyle,\n LayoutType,\n LayoutWidth,\n} from '@edsis/theme/layout/types';\nimport type {\n ThemeBrand,\n ThemeColor,\n ThemeMode,\n ThemeRadius,\n ThemeSpace,\n ThemeStyle,\n} from '@edsis/theme/styles';\n\nimport { ThemeStylePresetService } from './theme-style-preset.service';\n\nexport interface AppPreferencesDefaults {\n readonly theme: {\n readonly mode: ThemeMode;\n readonly space: ThemeSpace;\n readonly radius: ThemeRadius;\n readonly style: ThemeStyle;\n readonly color: ThemeColor;\n readonly brand: ThemeBrand;\n };\n readonly layout: {\n readonly appearance: LayoutStyle;\n readonly surface: LayoutSurface;\n readonly width: LayoutWidth;\n readonly type: LayoutType;\n };\n readonly navigation: {\n readonly orientation: NavigationOrientation;\n readonly type: NavigationType;\n readonly position: NavigationPosition;\n readonly collapsed: boolean;\n readonly dockbarMode: NavigationDockbarMode;\n };\n}\n\nexport interface AppPreferencesConfig {\n readonly defaults?: AppPreferencesDefaults;\n}\n\nexport const APP_PREFERENCES_CONFIG = new InjectionToken<AppPreferencesConfig>(\n 'APP_PREFERENCES_CONFIG',\n);\n\nexport function provideAppPreferences(config: AppPreferencesConfig = {}) {\n return makeEnvironmentProviders([\n { provide: APP_PREFERENCES_CONFIG, useValue: config },\n provideEnvironmentInitializer(() => {\n inject(ThemeStylePresetService);\n }),\n ]);\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Injector,\n Service,\n afterNextRender,\n computed,\n effect,\n inject,\n linkedSignal,\n} from '@angular/core';\nimport { LayoutService } from '@edsis/theme/layout/services';\n\nconst NAVIGATION_FOCUS_SELECTOR =\n '[data-navigation-id=\"main\"] a[href]:not([aria-disabled=\"true\"]), [data-navigation-id=\"main\"] button:not(:disabled):not([aria-disabled=\"true\"])';\nconst CONTENT_FOCUS_SELECTOR = '[data-block-shell-content][tabindex=\"-1\"]';\n\n@Service()\nexport class AppPreferencesPanelService {\n private readonly document = inject(DOCUMENT, { optional: true });\n private readonly injector = inject(Injector);\n private readonly layout = inject(LayoutService);\n private readonly openedState = linkedSignal({\n source: this.layout.type,\n computation: () => false,\n });\n private origin: HTMLElement | null = null;\n private previouslyOpened = false;\n private finalizationPending = false;\n\n readonly supported = computed(() => this.layout.type() === 'vertical');\n readonly opened = this.openedState.asReadonly();\n\n constructor() {\n effect(() => {\n const opened = this.openedState();\n\n if (this.previouslyOpened && !opened) {\n this.finalizeClose();\n }\n\n this.previouslyOpened = opened;\n });\n }\n\n open(trigger?: HTMLElement): boolean {\n if (!this.supported()) {\n return false;\n }\n\n if (!this.openedState() && !this.origin) {\n this.origin = trigger ?? this.activeElement();\n }\n\n this.openedState.set(true);\n return true;\n }\n\n close(): void {\n this.openedState.set(false);\n }\n\n toggle(trigger?: HTMLElement): boolean {\n if (this.openedState()) {\n this.close();\n return false;\n }\n\n return this.open(trigger);\n }\n\n private finalizeClose(): void {\n if (this.finalizationPending) {\n return;\n }\n\n this.finalizationPending = true;\n afterNextRender(\n () => {\n this.finalizationPending = false;\n this.restoreFocus();\n this.origin = null;\n },\n { injector: this.injector },\n );\n }\n\n private restoreFocus(): void {\n const document = this.document;\n if (!document) {\n return;\n }\n\n const candidates = [\n this.origin,\n ...Array.from(document.querySelectorAll<HTMLElement>(NAVIGATION_FOCUS_SELECTOR)),\n document.querySelector<HTMLElement>(CONTENT_FOCUS_SELECTOR),\n ];\n\n for (const candidate of candidates) {\n if (!this.canFocus(candidate)) {\n continue;\n }\n\n candidate.focus({ preventScroll: true });\n if (document.activeElement === candidate) {\n return;\n }\n }\n }\n\n private activeElement(): HTMLElement | null {\n const activeElement = this.document?.activeElement;\n return activeElement instanceof HTMLElement ? activeElement : null;\n }\n\n private canFocus(element: HTMLElement | null): element is HTMLElement {\n if (!element?.isConnected || element.matches(':disabled, [aria-disabled=\"true\"]')) {\n return false;\n }\n\n if (element.closest('[hidden], [inert], [aria-hidden=\"true\"]')) {\n return false;\n }\n\n const view = this.document?.defaultView;\n return !view || element.getClientRects().length > 0;\n }\n}\n","import { Component, input, output } from '@angular/core';\nimport { IconComponent } from '@edsis/component/icon';\nimport { ToggleGroupComponent, ToggleGroupItemDirective } from '@edsis/component/toggle-group';\nimport { TooltipDirective } from '@edsis/component/tooltip';\n\nexport interface AppPreferenceOption {\n readonly value: string;\n readonly label: string;\n readonly icon: string;\n}\n\n@Component({\n selector: 'app-preference-setting-group',\n imports: [IconComponent, ToggleGroupComponent, ToggleGroupItemDirective, TooltipDirective],\n template: `\n <section class=\"border-b border-border/65 px-3 py-2.5 last:border-b-0\">\n <div class=\"flex items-start justify-between gap-3\">\n <div class=\"min-w-0\">\n <h3 [id]=\"headingId()\" class=\"text-sm font-medium text-foreground\">{{ title() }}</h3>\n @if (description()) {\n <p class=\"mt-1 text-xs leading-4 text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n\n <span\n class=\"flex shrink-0 items-center gap-1 font-mono text-xs text-muted-foreground\"\n [attr.aria-label]=\"locked() ? activeLabel() + ', dikunci oleh gaya tema' : null\"\n >\n {{ activeLabel() }}\n @if (locked()) {\n <Icon name=\"lock\" [size]=\"14\" aria-hidden=\"true\" />\n }\n </span>\n </div>\n\n <ToggleGroup\n type=\"single\"\n variant=\"segmented\"\n [value]=\"selected()\"\n [disabled]=\"locked()\"\n [attr.aria-labelledby]=\"headingId()\"\n class=\"mt-2 grid w-full grid-flow-col auto-cols-fr gap-0\"\n (valueChange)=\"onValueChange($event)\"\n >\n @for (option of options(); track option.value) {\n <button\n ToggleGroupItem\n [value]=\"option.value\"\n [Tooltip]=\"option.label\"\n [attr.aria-label]=\"option.label\"\n [attr.title]=\"option.label\"\n class=\"min-h-8 min-w-0 px-1.5 py-1\"\n >\n <Icon [name]=\"option.icon\" [size]=\"16\" />\n </button>\n }\n </ToggleGroup>\n </section>\n `,\n})\nexport class AppPreferenceSettingGroupComponent {\n readonly title = input.required<string>();\n readonly description = input<string | null>(null);\n readonly activeLabel = input.required<string>();\n readonly options = input.required<readonly AppPreferenceOption[]>();\n readonly selected = input.required<string>();\n readonly headingId = input.required<string>();\n readonly locked = input(false);\n readonly optionSelected = output<string>();\n\n protected onValueChange(value: string | null): void {\n if (value !== null && !this.locked()) {\n this.optionSelected.emit(value);\n }\n }\n}\n","import {\n Component,\n ElementRef,\n afterNextRender,\n computed,\n inject,\n output,\n signal,\n} from '@angular/core';\nimport { ButtonComponent } from '@edsis/component/button';\nimport { IconComponent } from '@edsis/component/icon';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n type NavigationVerticalType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutStyle,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n} from '@edsis/theme/page';\nimport {\n THEME_BRANDS,\n THEME_COLORS,\n THEME_MODES,\n THEME_RADII,\n THEME_SPACES,\n THEME_STYLES,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeStyleService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n isThemeStyle,\n isThemeStyleSettingLocked,\n type ThemeStyleSettingKey,\n} from '@edsis/theme/styles';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\nimport {\n AppPreferenceSettingGroupComponent,\n type AppPreferenceOption,\n} from './app-preference-setting-group.component';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst VERTICAL_NAVIGATION_TYPES = ['sidebar', 'dockbar'] as const;\nconst HORIZONTAL_NAVIGATION_TYPES = ['navbar', 'flyout'] as const;\nconst NAVIGATION_LAYOUT_TYPES = ['vertical', 'horizontal'] as const;\nconst DOCKBAR_MODES = ['default', 'sticky', 'drawer'] as const;\n\nconst THEME_STYLE_OPTIONS = {\n dinamic: { label: 'Dinamis', icon: 'auto_awesome' },\n rail: { label: 'Rail', icon: 'view_sidebar' },\n ala: { label: 'Ala', icon: 'palette' },\n aye: { label: 'Aye', icon: 'visibility' },\n} as const;\nconst THEME_MODE_OPTIONS = {\n light: { label: 'Terang', icon: 'light_mode' },\n dark: { label: 'Gelap', icon: 'dark_mode' },\n system: { label: 'Sistem', icon: 'contrast' },\n} as const;\nconst THEME_COLOR_OPTIONS = {\n default: { label: 'Default', icon: 'format_color_fill' },\n} as const;\nconst THEME_BRAND_OPTIONS = {\n default: { label: 'Default', icon: 'branding_watermark' },\n} as const;\nconst THEME_SPACE_OPTIONS = {\n normal: { label: 'Normal', icon: 'density_large' },\n compact: { label: 'Ringkas', icon: 'density_small' },\n} as const;\nconst THEME_RADIUS_OPTIONS = {\n none: { label: 'Tanpa radius', icon: 'crop_square' },\n small: { label: 'Kecil', icon: 'rounded_corner' },\n medium: { label: 'Sedang', icon: 'rounded_corner' },\n large: { label: 'Besar', icon: 'rounded_corner' },\n} as const;\nconst LAYOUT_APPEARANCE_OPTIONS = {\n base: { label: 'Dasar', icon: 'crop_square' },\n 'border-rail': { label: 'Border rail', icon: 'border_outer' },\n ala: { label: 'Ala', icon: 'space_dashboard' },\n} as const;\nconst LAYOUT_SURFACE_OPTIONS = {\n flat: { label: 'Datar', icon: 'crop_16_9' },\n grid: { label: 'Grid', icon: 'grid_4x4' },\n} as const;\nconst LAYOUT_WIDTH_OPTIONS = {\n full: { label: 'Penuh', icon: 'width_full' },\n wide: { label: 'Lebar', icon: 'width_wide' },\n container: { label: 'Container', icon: 'width_normal' },\n fluid: { label: 'Fluid', icon: 'fit_screen' },\n} as const;\nconst LAYOUT_TYPE_OPTIONS = {\n vertical: { label: 'Vertikal', icon: 'view_sidebar' },\n horizontal: { label: 'Horizontal', icon: 'view_stream' },\n} as const;\nconst NAVIGATION_TYPE_OPTIONS = {\n sidebar: { label: 'Sidebar', icon: 'left_panel_open' },\n dockbar: { label: 'Dockbar', icon: 'dock_to_left' },\n navbar: { label: 'Navbar', icon: 'top_panel_open' },\n flyout: { label: 'Flyout', icon: 'menu_open' },\n} as const;\nconst NAVIGATION_POSITION_OPTIONS = {\n left: { label: 'Kiri', icon: 'align_horizontal_left' },\n right: { label: 'Kanan', icon: 'align_horizontal_right' },\n top: { label: 'Atas', icon: 'vertical_align_top' },\n bottom: { label: 'Bawah', icon: 'vertical_align_bottom' },\n} as const;\nconst DOCKBAR_MODE_OPTIONS = {\n default: { label: 'Default', icon: 'vertical_align_center' },\n sticky: { label: 'Melekat', icon: 'push_pin' },\n drawer: { label: 'Drawer', icon: 'left_panel_open' },\n} as const;\n\nfunction toOptions(\n values: readonly string[],\n options: Record<string, { readonly label: string; readonly icon: string }>,\n): readonly AppPreferenceOption[] {\n return values.map((value) => ({\n value,\n label: options[value]?.label ?? value,\n icon: options[value]?.icon ?? 'tune',\n }));\n}\n\n@Component({\n selector: 'app-preferences-surface',\n imports: [\n AppPreferenceSettingGroupComponent,\n ButtonComponent,\n IconComponent,\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n ],\n host: {\n class: 'block h-full min-h-0 w-full',\n },\n templateUrl: './app-preferences-surface.component.html',\n})\nexport class AppPreferencesSurfaceComponent {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeStyle = inject(ThemeStyleService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly closeRequested = output<void>();\n protected readonly announcement = signal('');\n protected readonly defaults = this.config?.defaults ?? null;\n protected readonly hasDefaults = computed(() => this.defaults !== null);\n protected readonly mode = this.themeMode.mode;\n protected readonly space = this.themeSpace.space;\n protected readonly radius = this.themeRadius.radius;\n protected readonly style = this.themeStyle.style;\n protected readonly color = this.themeColor.color;\n protected readonly brand = this.themeBrand.brand;\n protected readonly appearance = this.layout.appearance;\n protected readonly surface = this.layout.surface;\n protected readonly width = this.layout.width;\n protected readonly layoutType = this.layout.type;\n protected readonly navigationState = computed<NavigationState>(\n () =>\n this.navigation.state(PRIMARY_NAVIGATION_ID)() ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n },\n );\n\n protected readonly styleOptions = toOptions(THEME_STYLES, THEME_STYLE_OPTIONS);\n protected readonly modeOptions = toOptions(THEME_MODES, THEME_MODE_OPTIONS);\n protected readonly colorOptions = toOptions(THEME_COLORS, THEME_COLOR_OPTIONS);\n protected readonly brandOptions = toOptions(THEME_BRANDS, THEME_BRAND_OPTIONS);\n protected readonly spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);\n protected readonly radiusOptions = toOptions(THEME_RADII, THEME_RADIUS_OPTIONS);\n protected readonly appearanceOptions = toOptions(\n ['base', 'border-rail', 'ala'],\n LAYOUT_APPEARANCE_OPTIONS,\n );\n protected readonly surfaceOptions = toOptions(['flat', 'grid'], LAYOUT_SURFACE_OPTIONS);\n protected readonly widthOptions = toOptions(\n ['full', 'wide', 'container', 'fluid'],\n LAYOUT_WIDTH_OPTIONS,\n );\n protected readonly layoutTypeOptions = toOptions(NAVIGATION_LAYOUT_TYPES, LAYOUT_TYPE_OPTIONS);\n protected readonly navigationTypeOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical'\n ? VERTICAL_NAVIGATION_TYPES\n : HORIZONTAL_NAVIGATION_TYPES,\n NAVIGATION_TYPE_OPTIONS,\n ),\n );\n protected readonly navigationPositionOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical' ? ['left', 'right'] : ['top', 'bottom'],\n NAVIGATION_POSITION_OPTIONS,\n ),\n );\n protected readonly navigationModeOptions = computed<readonly AppPreferenceOption[]>(() =>\n this.navigationState().orientation === 'horizontal'\n ? []\n : this.navigationState().type === 'sidebar'\n ? [\n { value: 'expanded', label: 'Diperluas', icon: 'unfold_more' },\n { value: 'collapsed', label: 'Dipadatkan', icon: 'compress' },\n ]\n : toOptions(DOCKBAR_MODES, DOCKBAR_MODE_OPTIONS),\n );\n protected readonly navigationMode = computed(() => {\n const state = this.navigationState();\n\n if (state.orientation === 'horizontal') return 'default';\n\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'collapsed'\n : 'expanded'\n : state.dockbarMode;\n });\n protected readonly navigationModeLabel = computed(() => {\n const state = this.navigationState();\n\n if (state.orientation === 'horizontal') return 'Default';\n\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'Dipadatkan'\n : 'Diperluas'\n : DOCKBAR_MODE_OPTIONS[state.dockbarMode].label;\n });\n protected readonly navigationTypeLabel = computed(\n () => NAVIGATION_TYPE_OPTIONS[this.navigationState().type].label,\n );\n protected readonly navigationPositionLabel = computed(\n () => NAVIGATION_POSITION_OPTIONS[this.navigationState().position].label,\n );\n\n constructor() {\n const host = this.host.nativeElement as HTMLElement;\n afterNextRender(() => {\n const closeButton = host.querySelector(\n '[data-app-preferences-close]',\n ) as HTMLButtonElement | null;\n closeButton?.focus({ preventScroll: true });\n });\n }\n\n protected selectStyle(value: string): void {\n if (isThemeStyle(value)) this.themeStyle.setStyle(value);\n }\n\n protected selectMode(value: string): void {\n if (!this.isLocked('theme-mode') && isThemeMode(value)) this.themeMode.setMode(value);\n }\n\n protected selectColor(value: string): void {\n if (!this.isLocked('theme-color') && isThemeColor(value)) this.themeColor.setColor(value);\n }\n\n protected selectBrand(value: string): void {\n if (!this.isLocked('theme-brand') && isThemeBrand(value)) this.themeBrand.setBrand(value);\n }\n\n protected selectSpace(value: string): void {\n if (isThemeSpace(value)) this.themeSpace.setSpace(value);\n }\n\n protected selectRadius(value: string): void {\n if (isThemeRadius(value)) this.themeRadius.setRadius(value);\n }\n\n protected selectAppearance(value: string): void {\n if (!this.isLocked('layout-appearance') && isUiLayoutStyle(value)) {\n this.layout.setAppearance(value);\n }\n }\n\n protected selectSurface(value: string): void {\n if (!this.isLocked('layout-surface') && isUiLayoutSurface(value)) {\n this.layout.setSurface(value);\n }\n }\n\n protected selectWidth(value: string): void {\n if (!this.isLocked('layout-width') && isUiLayoutWidth(value)) this.layout.setWidth(value);\n }\n\n protected selectLayoutType(value: string): void {\n if (\n this.isLayoutTypeLocked() ||\n !isUiLayoutType(value) ||\n !(NAVIGATION_LAYOUT_TYPES as readonly string[]).includes(value)\n ) {\n return;\n }\n\n const orientation = value as NavigationOrientation;\n const state = this.navigationState();\n const type = isNavigationTypeForOrientation(state.type, orientation)\n ? state.type\n : orientation === 'vertical'\n ? 'sidebar'\n : 'navbar';\n const position = isNavigationPositionForOrientation(state.position, orientation)\n ? state.position\n : orientation === 'vertical'\n ? 'left'\n : 'top';\n\n this.layout.setType(value);\n this.navigation.update(PRIMARY_NAVIGATION_ID, { orientation, type, position });\n }\n\n protected selectNavigationType(value: string): void {\n const state = this.navigationState();\n\n if (!this.isLocked('nav-type') && isNavigationTypeForOrientation(value, state.orientation)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { type: value });\n }\n }\n\n protected selectNavigationMode(value: string): void {\n const state = this.navigationState();\n\n if (this.isLocked('nav-type-mode')) return;\n\n if (state.type === 'sidebar' && (value === 'expanded' || value === 'collapsed')) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { collapsed: value === 'collapsed' });\n }\n\n if (state.type === 'dockbar' && (DOCKBAR_MODES as readonly string[]).includes(value)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n dockbarMode: value as NavigationDockbarMode,\n });\n }\n }\n\n protected selectNavigationPosition(value: string): void {\n const state = this.navigationState();\n\n if (\n !this.isLocked('nav-position') &&\n isNavigationPositionForOrientation(value, state.orientation)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { position: value });\n }\n }\n\n protected resetToDefaults(): void {\n const defaults = this.defaults;\n if (!defaults) return;\n\n let changed = false;\n if (this.mode() !== defaults.theme.mode) {\n this.themeMode.setMode(defaults.theme.mode);\n changed = true;\n }\n if (this.color() !== defaults.theme.color) {\n this.themeColor.setColor(defaults.theme.color);\n changed = true;\n }\n if (this.brand() !== defaults.theme.brand) {\n this.themeBrand.setBrand(defaults.theme.brand);\n changed = true;\n }\n if (this.space() !== defaults.theme.space) {\n this.themeSpace.setSpace(defaults.theme.space);\n changed = true;\n }\n if (this.radius() !== defaults.theme.radius) {\n this.themeRadius.setRadius(defaults.theme.radius);\n changed = true;\n }\n if (this.style() !== defaults.theme.style) {\n this.themeStyle.setStyle(defaults.theme.style);\n changed = true;\n }\n if (!this.isLocked('layout-appearance') && this.appearance() !== defaults.layout.appearance) {\n this.layout.setAppearance(defaults.layout.appearance);\n changed = true;\n }\n if (this.surface() !== defaults.layout.surface) {\n this.layout.setSurface(defaults.layout.surface);\n changed = true;\n }\n if (this.width() !== defaults.layout.width) {\n this.layout.setWidth(defaults.layout.width);\n changed = true;\n }\n if (!this.isLayoutTypeLocked() && this.layoutType() !== defaults.layout.type) {\n this.selectLayoutType(defaults.layout.type);\n changed = true;\n }\n\n const navigation = this.navigationState();\n const nextNavigation = {\n orientation: this.isLocked('nav-orientation')\n ? navigation.orientation\n : defaults.navigation.orientation,\n type: this.isLocked('nav-type') ? navigation.type : defaults.navigation.type,\n position: this.isLocked('nav-position') ? navigation.position : defaults.navigation.position,\n collapsed: this.isLocked('nav-type-mode')\n ? navigation.collapsed\n : defaults.navigation.collapsed,\n dockbarMode: this.isLocked('nav-type-mode')\n ? navigation.dockbarMode\n : defaults.navigation.dockbarMode,\n };\n if (\n navigation.orientation !== nextNavigation.orientation ||\n navigation.type !== nextNavigation.type ||\n navigation.position !== nextNavigation.position ||\n navigation.collapsed !== nextNavigation.collapsed ||\n navigation.dockbarMode !== nextNavigation.dockbarMode\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, nextNavigation);\n changed = true;\n }\n\n this.announce(\n changed ? 'Preferensi dikembalikan ke default.' : 'Preferensi sudah menggunakan default.',\n );\n }\n\n private announce(message: string): void {\n this.announcement.set('');\n queueMicrotask(() => this.announcement.set(message));\n }\n\n protected isLocked(key: ThemeStyleSettingKey): boolean {\n return isThemeStyleSettingLocked(this.style(), key);\n }\n\n protected isLayoutTypeLocked(): boolean {\n return this.isLocked('layout-type') || this.isLocked('nav-orientation');\n }\n}\n\nfunction isNavigationTypeForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationType {\n return orientation === 'vertical'\n ? (VERTICAL_NAVIGATION_TYPES as readonly string[]).includes(value)\n : (HORIZONTAL_NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationPositionForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationPosition {\n return orientation === 'vertical'\n ? value === 'left' || value === 'right'\n : value === 'top' || value === 'bottom';\n}\n","<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n [locked]=\"isLocked('layout-appearance')\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n [locked]=\"isLocked('layout-width')\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n","import { DOCUMENT } from '@angular/common';\nimport { Component, DestroyRef, computed, effect, inject, signal } from '@angular/core';\nimport { SheetComponent } from '@edsis/component/sheet';\nimport { NavigationService, type NavigationState } from '@edsis/navigation/service';\n\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\nimport { AppPreferencesSurfaceComponent } from './app-preferences-surface.component';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NARROW_VIEWPORT_QUERY = '(max-width: 767.98px)';\n\n@Component({\n selector: 'app-preferences',\n imports: [AppPreferencesSurfaceComponent, SheetComponent],\n host: {\n '[class]': 'hostClass()',\n '[attr.role]': 'inline() ? \"region\" : null',\n '[attr.aria-labelledby]': 'inline() ? \"app-preferences-title\" : null',\n },\n template: `\n @if (inline()) {\n <section\n id=\"app-preferences-panel\"\n class=\"h-full min-h-0 w-full\"\n aria-labelledby=\"app-preferences-title\"\n >\n <app-preferences-surface (closeRequested)=\"preferences.close()\" />\n </section>\n } @else {\n <Sheet\n [open]=\"preferences.opened()\"\n side=\"left\"\n [showCloseButton]=\"false\"\n [restoreFocus]=\"false\"\n aria-labelledby=\"app-preferences-title\"\n class=\"w-[min(19rem,calc(100dvw-2rem))]! max-w-none! gap-0! p-0!\"\n (openedChange)=\"onSheetOpenChange($event)\"\n >\n <app-preferences-surface\n id=\"app-preferences-panel\"\n (closeRequested)=\"preferences.close()\"\n />\n </Sheet>\n }\n `,\n})\nexport class AppPreferencesComponent {\n private readonly document = inject(DOCUMENT, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n private readonly navigation = inject(NavigationService);\n protected readonly preferences = inject(AppPreferencesPanelService);\n private readonly narrowState = signal(this.mediaQuery()?.matches ?? false);\n private readonly navigationState = computed<NavigationState>(\n () =>\n this.navigation.state(PRIMARY_NAVIGATION_ID)() ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n },\n );\n\n protected readonly inline = computed(\n () =>\n !this.narrowState() &&\n this.navigationState().type === 'sidebar' &&\n !this.navigationState().collapsed,\n );\n protected readonly hostClass = computed(() =>\n this.inline() ? 'block h-full w-76 border-r border-border' : 'relative block h-full w-16',\n );\n\n constructor() {\n const mediaQuery = this.mediaQuery();\n const onChange = (event: MediaQueryListEvent) => this.narrowState.set(event.matches);\n\n mediaQuery?.addEventListener('change', onChange);\n effect((onCleanup) => {\n if (!this.inline() || !this.preferences.opened()) {\n return;\n }\n\n const onKeydown = (event: KeyboardEvent) => {\n if (event.key === 'Escape' && !event.defaultPrevented) {\n this.preferences.close();\n }\n };\n\n this.document?.addEventListener('keydown', onKeydown);\n onCleanup(() => this.document?.removeEventListener('keydown', onKeydown));\n });\n this.destroyRef.onDestroy(() => {\n mediaQuery?.removeEventListener('change', onChange);\n if (this.preferences.opened()) this.preferences.close();\n });\n }\n\n protected onSheetOpenChange(open: boolean): void {\n if (!open) this.preferences.close();\n }\n\n private mediaQuery(): MediaQueryList | null {\n return this.document?.defaultView?.matchMedia?.(NARROW_VIEWPORT_QUERY) ?? null;\n }\n}\n","import { Directive, ElementRef, computed, inject } from '@angular/core';\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\n\n@Directive({\n selector: '[appPreferencesTrigger]',\n host: {\n '[attr.aria-expanded]': 'preferences.opened()',\n '[attr.aria-controls]': 'preferences.opened() ? \"app-preferences-panel\" : null',\n '[attr.aria-disabled]': 'isButton() && !preferences.supported() ? \"true\" : null',\n '[attr.disabled]': 'isButton() && !preferences.supported() ? \"\" : null',\n '(click)': 'onClick($event)',\n },\n})\nexport class AppPreferencesTriggerDirective {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n protected readonly preferences = inject(AppPreferencesPanelService);\n protected readonly isButton = computed(\n () => this.elementRef.nativeElement.localName === 'button',\n );\n\n protected onClick(event: MouseEvent): void {\n if (this.preferences.open(this.elementRef.nativeElement)) {\n event.preventDefault();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PRIMARY_NAVIGATION_ID","LayoutService"],"mappings":";;;;;;;;;;;;;;;AAsCA,MAAMA,uBAAqB,GAAG,MAAM;AACpC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;AAC5E,MAAM,uBAAuB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU;AACnE,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU;AACxE,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;MAG5D,uBAAuB,CAAA;IACjB,MAAM,GAAG,MAAM,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;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,UAAA,EAAA,CAAA;kBAV1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,sBAAsB;AAC9C,wBAAA,sBAAsB,EAAE,uDAAuD;AAC/E,wBAAA,sBAAsB,EAAE,wDAAwD;AAChF,wBAAA,iBAAiB,EAAE,oDAAoD;AACvE,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"edsis-angular-block-themes.mjs","sources":["../../../library/angular/block/themes/theme-style-preset.service.ts","../../../library/angular/block/themes/app-preferences.config.ts","../../../library/angular/block/themes/app-preferences-panel.service.ts","../../../library/angular/block/themes/app-preference-setting-group.component.ts","../../../library/angular/block/themes/app-preferences-surface.component.ts","../../../library/angular/block/themes/app-preferences-surface.component.html","../../../library/angular/block/themes/app-preferences.component.ts","../../../library/angular/block/themes/app-preferences-trigger.directive.ts","../../../library/angular/block/themes/edsis-angular-block-themes.ts"],"sourcesContent":["import { effect, inject, Service } from '@angular/core';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutStyle,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n DEFAULT_THEME_BRAND,\n DEFAULT_THEME_COLOR,\n DEFAULT_THEME_MODE,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeStyleService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n themeStylePresetEntry,\n type ThemeStyle,\n} from '@edsis/theme/styles';\nimport {\n LAYOUT_DEFAULT_SURFACE,\n LAYOUT_DEFAULT_STYLE,\n LAYOUT_DEFAULT_TYPE,\n LAYOUT_DEFAULT_WIDTH,\n} from '@edsis/theme/layout/types';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NAVIGATION_TYPES = ['sidebar', 'dockbar', 'navbar', 'flyout'] as const;\nconst NAVIGATION_ORIENTATIONS = ['vertical', 'horizontal'] as const;\nconst NAVIGATION_POSITIONS = ['left', 'right', 'top', 'bottom'] as const;\nconst NAVIGATION_DOCKBAR_MODES = ['default', 'drawer', 'sticky'] as const;\n\n@Service()\nexport class ThemeStylePresetService {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly themeStyle = inject(ThemeStyleService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n\n constructor() {\n let previousStyle = this.themeStyle.style();\n\n this.enforceLockedValues(previousStyle);\n\n effect(() => {\n const style = this.themeStyle.style();\n\n if (style === previousStyle) return;\n\n previousStyle = style;\n this.applyPreset(style);\n });\n\n effect(() => this.enforceLockedValues(this.themeStyle.style()));\n }\n\n private applyPreset(style: ThemeStyle): void {\n this.applyThemeValues(style);\n this.applyLayoutValues(style);\n this.applyNavigationValues(style);\n }\n\n private applyThemeValues(style: ThemeStyle): void {\n const mode = this.valueFor(style, 'theme-mode', this.defaultMode());\n if (isThemeMode(mode)) this.themeMode.setMode(mode);\n\n const space = this.valueFor(style, 'theme-space', this.defaultSpace());\n if (isThemeSpace(space)) this.themeSpace.setSpace(space);\n\n const radius = this.valueFor(style, 'theme-radius', this.defaultRadius());\n if (isThemeRadius(radius)) this.themeRadius.setRadius(radius);\n\n const color = this.valueFor(style, 'theme-color', this.defaultColor());\n if (isThemeColor(color)) this.themeColor.setColor(color);\n\n const brand = this.valueFor(style, 'theme-brand', this.defaultBrand());\n if (isThemeBrand(brand)) this.themeBrand.setBrand(brand);\n }\n\n private applyLayoutValues(style: ThemeStyle): void {\n const type = this.valueFor(style, 'layout-type', this.defaultLayoutType());\n if (isUiLayoutType(type)) this.layout.setType(type);\n\n const width = this.valueFor(style, 'layout-width', this.defaultLayoutWidth());\n if (isUiLayoutWidth(width)) this.layout.setWidth(width);\n\n const surface = this.valueFor(style, 'layout-surface', this.defaultLayoutSurface());\n if (isUiLayoutSurface(surface)) this.layout.setSurface(surface);\n\n const appearance = this.valueFor(style, 'layout-appearance', this.defaultLayoutAppearance());\n if (isUiLayoutStyle(appearance)) this.layout.setAppearance(appearance);\n }\n\n private applyNavigationValues(style: ThemeStyle): void {\n const orientation = this.valueFor(\n style,\n 'nav-orientation',\n this.defaultNavigationOrientation(),\n );\n const type = this.valueFor(style, 'nav-type', this.defaultNavigationType());\n const position = this.valueFor(style, 'nav-position', this.defaultNavigationPosition());\n const typeMode = this.valueFor(style, 'nav-type-mode', 'default');\n\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n orientation: isNavigationOrientation(orientation)\n ? orientation\n : this.defaultNavigationOrientation(),\n type: isNavigationType(type) ? type : this.defaultNavigationType(),\n position: isNavigationPosition(position) ? position : this.defaultNavigationPosition(),\n collapsed:\n typeMode === 'collapsed'\n ? true\n : typeMode === 'expanded'\n ? false\n : this.defaultNavigationCollapsed(),\n dockbarMode: isNavigationDockbarMode(typeMode)\n ? typeMode\n : this.defaultNavigationDockbarMode(),\n });\n }\n\n private enforceLockedValues(style: ThemeStyle): void {\n const mode = this.lockedValueFor(style, 'theme-mode');\n if (isThemeMode(mode) && this.themeMode.mode() !== mode) this.themeMode.setMode(mode);\n\n const space = this.lockedValueFor(style, 'theme-space');\n if (isThemeSpace(space) && this.themeSpace.space() !== space) this.themeSpace.setSpace(space);\n\n const radius = this.lockedValueFor(style, 'theme-radius');\n if (isThemeRadius(radius) && this.themeRadius.radius() !== radius)\n this.themeRadius.setRadius(radius);\n\n const color = this.lockedValueFor(style, 'theme-color');\n if (isThemeColor(color) && this.themeColor.color() !== color) this.themeColor.setColor(color);\n\n const brand = this.lockedValueFor(style, 'theme-brand');\n if (isThemeBrand(brand) && this.themeBrand.brand() !== brand) this.themeBrand.setBrand(brand);\n\n const type = this.lockedValueFor(style, 'layout-type');\n if (isUiLayoutType(type) && this.layout.type() !== type) this.layout.setType(type);\n\n const width = this.lockedValueFor(style, 'layout-width');\n if (isUiLayoutWidth(width) && this.layout.width() !== width) this.layout.setWidth(width);\n\n const surface = this.lockedValueFor(style, 'layout-surface');\n if (isUiLayoutSurface(surface) && this.layout.surface() !== surface)\n this.layout.setSurface(surface);\n\n const appearance = this.lockedValueFor(style, 'layout-appearance');\n if (isUiLayoutStyle(appearance) && this.layout.appearance() !== appearance) {\n this.layout.setAppearance(appearance);\n }\n\n const orientation = this.lockedValueFor(style, 'nav-orientation');\n const navigationType = this.lockedValueFor(style, 'nav-type');\n const position = this.lockedValueFor(style, 'nav-position');\n const typeMode = this.lockedValueFor(style, 'nav-type-mode');\n const currentNavigationState = this.navigation.currentState(PRIMARY_NAVIGATION_ID);\n const navigationState: NavigationState = currentNavigationState ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n };\n const navigationUpdate = {\n ...(isNavigationOrientation(orientation) && navigationState.orientation !== orientation\n ? { orientation }\n : {}),\n ...(isNavigationType(navigationType) && navigationState.type !== navigationType\n ? { type: navigationType }\n : {}),\n ...(isNavigationPosition(position) && navigationState.position !== position\n ? { position }\n : {}),\n ...(typeMode === 'collapsed' && !navigationState.collapsed\n ? { collapsed: true }\n : typeMode === 'expanded' && navigationState.collapsed\n ? { collapsed: false }\n : {}),\n ...(isNavigationDockbarMode(typeMode) && navigationState.dockbarMode !== typeMode\n ? { dockbarMode: typeMode }\n : {}),\n };\n\n const hasLockedNavigationValue = [orientation, navigationType, position, typeMode].some(\n (value) => value !== null,\n );\n\n if (\n Object.keys(navigationUpdate).length > 0 ||\n (currentNavigationState === null && hasLockedNavigationValue)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, navigationUpdate);\n }\n }\n\n private lockedValueFor(\n style: ThemeStyle,\n key: Parameters<typeof themeStylePresetEntry>[1],\n ): string | null {\n const entry = themeStylePresetEntry(style, key);\n\n return entry.control === 'fix' ? entry.value : null;\n }\n\n private valueFor(\n style: ThemeStyle,\n key: Parameters<typeof themeStylePresetEntry>[1],\n fallback: string,\n ): string {\n const value = themeStylePresetEntry(style, key).value;\n\n return value === 'default' ? fallback : value;\n }\n\n private defaultMode(): string {\n return this.config?.defaults?.theme.mode ?? DEFAULT_THEME_MODE;\n }\n\n private defaultSpace(): string {\n return this.config?.defaults?.theme.space ?? 'normal';\n }\n\n private defaultRadius(): string {\n return this.config?.defaults?.theme.radius ?? 'medium';\n }\n\n private defaultColor(): string {\n return this.config?.defaults?.theme.color ?? DEFAULT_THEME_COLOR;\n }\n\n private defaultBrand(): string {\n return this.config?.defaults?.theme.brand ?? DEFAULT_THEME_BRAND;\n }\n\n private defaultLayoutType(): string {\n return this.config?.defaults?.layout.type ?? LAYOUT_DEFAULT_TYPE;\n }\n\n private defaultLayoutWidth(): string {\n return this.config?.defaults?.layout.width ?? LAYOUT_DEFAULT_WIDTH;\n }\n\n private defaultLayoutSurface(): string {\n return this.config?.defaults?.layout.surface ?? LAYOUT_DEFAULT_SURFACE;\n }\n\n private defaultLayoutAppearance(): string {\n return this.config?.defaults?.layout.appearance ?? LAYOUT_DEFAULT_STYLE;\n }\n\n private defaultNavigationOrientation(): NavigationOrientation {\n return this.config?.defaults?.navigation.orientation ?? 'vertical';\n }\n\n private defaultNavigationType(): NavigationType {\n return this.config?.defaults?.navigation.type ?? 'sidebar';\n }\n\n private defaultNavigationPosition(): NavigationPosition {\n return this.config?.defaults?.navigation.position ?? 'left';\n }\n\n private defaultNavigationCollapsed(): boolean {\n return this.config?.defaults?.navigation.collapsed ?? false;\n }\n\n private defaultNavigationDockbarMode(): NavigationDockbarMode {\n return this.config?.defaults?.navigation.dockbarMode ?? 'default';\n }\n}\n\nfunction isNavigationType(value: string | null): value is NavigationType {\n return value !== null && (NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationOrientation(value: string | null): value is NavigationOrientation {\n return value !== null && (NAVIGATION_ORIENTATIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationPosition(value: string | null): value is NavigationPosition {\n return value !== null && (NAVIGATION_POSITIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationDockbarMode(value: string | null): value is NavigationDockbarMode {\n return value !== null && (NAVIGATION_DOCKBAR_MODES as readonly string[]).includes(value);\n}\n","import {\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport type {\n NavigationDockbarMode,\n NavigationOrientation,\n NavigationPosition,\n NavigationType,\n} from '@edsis/navigation/service';\nimport type {\n LayoutSurface,\n LayoutStyle,\n LayoutType,\n LayoutWidth,\n} from '@edsis/theme/layout/types';\nimport type {\n ThemeBrand,\n ThemeColor,\n ThemeMode,\n ThemeRadius,\n ThemeSpace,\n ThemeStyle,\n} from '@edsis/theme/styles';\n\nimport { ThemeStylePresetService } from './theme-style-preset.service';\n\nexport interface AppPreferencesDefaults {\n readonly theme: {\n readonly mode: ThemeMode;\n readonly space: ThemeSpace;\n readonly radius: ThemeRadius;\n readonly style: ThemeStyle;\n readonly color: ThemeColor;\n readonly brand: ThemeBrand;\n };\n readonly layout: {\n readonly appearance: LayoutStyle;\n readonly surface: LayoutSurface;\n readonly width: LayoutWidth;\n readonly type: LayoutType;\n };\n readonly navigation: {\n readonly orientation: NavigationOrientation;\n readonly type: NavigationType;\n readonly position: NavigationPosition;\n readonly collapsed: boolean;\n readonly dockbarMode: NavigationDockbarMode;\n };\n}\n\nexport interface AppPreferencesConfig {\n readonly defaults?: AppPreferencesDefaults;\n}\n\nexport const APP_PREFERENCES_CONFIG = new InjectionToken<AppPreferencesConfig>(\n 'APP_PREFERENCES_CONFIG',\n);\n\nexport function provideAppPreferences(config: AppPreferencesConfig = {}) {\n return makeEnvironmentProviders([\n { provide: APP_PREFERENCES_CONFIG, useValue: config },\n provideEnvironmentInitializer(() => {\n inject(ThemeStylePresetService);\n }),\n ]);\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Injector,\n Service,\n afterNextRender,\n computed,\n effect,\n inject,\n linkedSignal,\n} from '@angular/core';\nimport { LayoutService } from '@edsis/theme/layout/services';\n\nconst NAVIGATION_FOCUS_SELECTOR =\n '[data-navigation-id=\"main\"] a[href]:not([aria-disabled=\"true\"]), [data-navigation-id=\"main\"] button:not(:disabled):not([aria-disabled=\"true\"])';\nconst CONTENT_FOCUS_SELECTOR = '[data-block-shell-content][tabindex=\"-1\"]';\n\n@Service()\nexport class AppPreferencesPanelService {\n private readonly document = inject(DOCUMENT, { optional: true });\n private readonly injector = inject(Injector);\n private readonly layout = inject(LayoutService);\n private readonly openedState = linkedSignal({\n source: this.layout.type,\n computation: () => false,\n });\n private origin: HTMLElement | null = null;\n private previouslyOpened = false;\n private finalizationPending = false;\n\n readonly supported = computed(() => this.layout.type() === 'vertical');\n readonly opened = this.openedState.asReadonly();\n\n constructor() {\n effect(() => {\n const opened = this.openedState();\n\n if (this.previouslyOpened && !opened) {\n this.finalizeClose();\n }\n\n this.previouslyOpened = opened;\n });\n }\n\n open(trigger?: HTMLElement): boolean {\n if (!this.supported()) {\n return false;\n }\n\n if (!this.openedState() && !this.origin) {\n this.origin = trigger ?? this.activeElement();\n }\n\n this.openedState.set(true);\n return true;\n }\n\n close(): void {\n this.openedState.set(false);\n }\n\n toggle(trigger?: HTMLElement): boolean {\n if (this.openedState()) {\n this.close();\n return false;\n }\n\n return this.open(trigger);\n }\n\n private finalizeClose(): void {\n if (this.finalizationPending) {\n return;\n }\n\n this.finalizationPending = true;\n afterNextRender(\n () => {\n this.finalizationPending = false;\n this.restoreFocus();\n this.origin = null;\n },\n { injector: this.injector },\n );\n }\n\n private restoreFocus(): void {\n const document = this.document;\n if (!document) {\n return;\n }\n\n const candidates = [\n this.origin,\n ...Array.from(document.querySelectorAll<HTMLElement>(NAVIGATION_FOCUS_SELECTOR)),\n document.querySelector<HTMLElement>(CONTENT_FOCUS_SELECTOR),\n ];\n\n for (const candidate of candidates) {\n if (!this.canFocus(candidate)) {\n continue;\n }\n\n candidate.focus({ preventScroll: true });\n if (document.activeElement === candidate) {\n return;\n }\n }\n }\n\n private activeElement(): HTMLElement | null {\n const activeElement = this.document?.activeElement;\n return activeElement instanceof HTMLElement ? activeElement : null;\n }\n\n private canFocus(element: HTMLElement | null): element is HTMLElement {\n if (!element?.isConnected || element.matches(':disabled, [aria-disabled=\"true\"]')) {\n return false;\n }\n\n if (element.closest('[hidden], [inert], [aria-hidden=\"true\"]')) {\n return false;\n }\n\n const view = this.document?.defaultView;\n return !view || element.getClientRects().length > 0;\n }\n}\n","import { Component, input, output } from '@angular/core';\nimport { IconComponent } from '@edsis/component/icon';\nimport { ToggleGroupComponent, ToggleGroupItemDirective } from '@edsis/component/toggle-group';\nimport { TooltipDirective } from '@edsis/component/tooltip';\n\nexport interface AppPreferenceOption {\n readonly value: string;\n readonly label: string;\n readonly icon: string;\n}\n\n@Component({\n selector: 'app-preference-setting-group',\n imports: [IconComponent, ToggleGroupComponent, ToggleGroupItemDirective, TooltipDirective],\n template: `\n <section class=\"border-b border-border/65 px-3 py-2.5 last:border-b-0\">\n <div class=\"flex items-start justify-between gap-3\">\n <div class=\"min-w-0\">\n <h3 [id]=\"headingId()\" class=\"text-sm font-medium text-foreground\">{{ title() }}</h3>\n @if (description()) {\n <p class=\"mt-1 text-xs leading-4 text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n\n <span\n class=\"flex shrink-0 items-center gap-1 font-mono text-xs text-muted-foreground\"\n [attr.aria-label]=\"locked() ? activeLabel() + ', dikunci oleh gaya tema' : null\"\n >\n {{ activeLabel() }}\n @if (locked()) {\n <Icon name=\"lock\" [size]=\"14\" aria-hidden=\"true\" />\n }\n </span>\n </div>\n\n <ToggleGroup\n type=\"single\"\n variant=\"segmented\"\n [value]=\"selected()\"\n [disabled]=\"locked()\"\n [attr.aria-labelledby]=\"headingId()\"\n class=\"mt-2 grid w-full grid-flow-col auto-cols-fr gap-0\"\n (valueChange)=\"onValueChange($event)\"\n >\n @for (option of options(); track option.value) {\n <button\n ToggleGroupItem\n [value]=\"option.value\"\n [Tooltip]=\"option.label\"\n [attr.aria-label]=\"option.label\"\n [attr.title]=\"option.label\"\n class=\"min-h-8 min-w-0 px-1.5 py-1\"\n >\n <Icon [name]=\"option.icon\" [size]=\"16\" />\n </button>\n }\n </ToggleGroup>\n </section>\n `,\n})\nexport class AppPreferenceSettingGroupComponent {\n readonly title = input.required<string>();\n readonly description = input<string | null>(null);\n readonly activeLabel = input.required<string>();\n readonly options = input.required<readonly AppPreferenceOption[]>();\n readonly selected = input.required<string>();\n readonly headingId = input.required<string>();\n readonly locked = input(false);\n readonly optionSelected = output<string>();\n\n protected onValueChange(value: string | null): void {\n if (value !== null && !this.locked()) {\n this.optionSelected.emit(value);\n }\n }\n}\n","import {\n Component,\n ElementRef,\n afterNextRender,\n computed,\n inject,\n output,\n signal,\n} from '@angular/core';\nimport { ButtonComponent } from '@edsis/component/button';\nimport { IconComponent } from '@edsis/component/icon';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n type NavigationVerticalType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutStyle,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n} from '@edsis/theme/page';\nimport {\n THEME_BRANDS,\n THEME_COLORS,\n THEME_MODES,\n THEME_RADII,\n THEME_SPACES,\n THEME_STYLES,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeStyleService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n isThemeStyle,\n isThemeStyleSettingLocked,\n type ThemeStyleSettingKey,\n} from '@edsis/theme/styles';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\nimport {\n AppPreferenceSettingGroupComponent,\n type AppPreferenceOption,\n} from './app-preference-setting-group.component';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst VERTICAL_NAVIGATION_TYPES = ['sidebar', 'dockbar'] as const;\nconst HORIZONTAL_NAVIGATION_TYPES = ['navbar', 'flyout'] as const;\nconst NAVIGATION_LAYOUT_TYPES = ['vertical', 'horizontal'] as const;\nconst DOCKBAR_MODES = ['default', 'sticky', 'drawer'] as const;\n\nconst THEME_STYLE_OPTIONS = {\n dinamic: { label: 'Dinamis', icon: 'auto_awesome' },\n rail: { label: 'Rail', icon: 'view_sidebar' },\n ala: { label: 'Ala', icon: 'palette' },\n aye: { label: 'Aye', icon: 'visibility' },\n desktop: { label: 'Desktop', icon: 'desktop_windows' },\n} as const;\nconst THEME_MODE_OPTIONS = {\n light: { label: 'Terang', icon: 'light_mode' },\n dark: { label: 'Gelap', icon: 'dark_mode' },\n system: { label: 'Sistem', icon: 'contrast' },\n} as const;\nconst THEME_COLOR_OPTIONS = {\n default: { label: 'Default', icon: 'format_color_fill' },\n} as const;\nconst THEME_BRAND_OPTIONS = {\n default: { label: 'Default', icon: 'branding_watermark' },\n} as const;\nconst THEME_SPACE_OPTIONS = {\n normal: { label: 'Normal', icon: 'density_large' },\n compact: { label: 'Ringkas', icon: 'density_small' },\n} as const;\nconst THEME_RADIUS_OPTIONS = {\n none: { label: 'Tanpa radius', icon: 'crop_square' },\n small: { label: 'Kecil', icon: 'rounded_corner' },\n medium: { label: 'Sedang', icon: 'rounded_corner' },\n large: { label: 'Besar', icon: 'rounded_corner' },\n} as const;\nconst LAYOUT_APPEARANCE_OPTIONS = {\n base: { label: 'Dasar', icon: 'crop_square' },\n 'border-rail': { label: 'Border rail', icon: 'border_outer' },\n ala: { label: 'Ala', icon: 'space_dashboard' },\n desktop: { label: 'Desktop', icon: 'desktop_windows' },\n} as const;\nconst LAYOUT_SURFACE_OPTIONS = {\n base: { label: 'Dasar', icon: 'crop_square' },\n flat: { label: 'Datar', icon: 'crop_16_9' },\n grid: { label: 'Grid', icon: 'grid_4x4' },\n} as const;\nconst LAYOUT_WIDTH_OPTIONS = {\n full: { label: 'Penuh', icon: 'width_full' },\n wide: { label: 'Lebar', icon: 'width_wide' },\n container: { label: 'Container', icon: 'width_normal' },\n fluid: { label: 'Fluid', icon: 'fit_screen' },\n} as const;\nconst LAYOUT_TYPE_OPTIONS = {\n vertical: { label: 'Vertikal', icon: 'view_sidebar' },\n horizontal: { label: 'Horizontal', icon: 'view_stream' },\n} as const;\nconst NAVIGATION_TYPE_OPTIONS = {\n sidebar: { label: 'Sidebar', icon: 'left_panel_open' },\n dockbar: { label: 'Dockbar', icon: 'dock_to_left' },\n navbar: { label: 'Navbar', icon: 'top_panel_open' },\n flyout: { label: 'Flyout', icon: 'menu_open' },\n} as const;\nconst NAVIGATION_POSITION_OPTIONS = {\n left: { label: 'Kiri', icon: 'align_horizontal_left' },\n right: { label: 'Kanan', icon: 'align_horizontal_right' },\n top: { label: 'Atas', icon: 'vertical_align_top' },\n bottom: { label: 'Bawah', icon: 'vertical_align_bottom' },\n} as const;\nconst DOCKBAR_MODE_OPTIONS = {\n default: { label: 'Default', icon: 'vertical_align_center' },\n sticky: { label: 'Melekat', icon: 'push_pin' },\n drawer: { label: 'Drawer', icon: 'left_panel_open' },\n} as const;\n\nfunction toOptions(\n values: readonly string[],\n options: Record<string, { readonly label: string; readonly icon: string }>,\n): readonly AppPreferenceOption[] {\n return values.map((value) => ({\n value,\n label: options[value]?.label ?? value,\n icon: options[value]?.icon ?? 'tune',\n }));\n}\n\n@Component({\n selector: 'app-preferences-surface',\n imports: [\n AppPreferenceSettingGroupComponent,\n ButtonComponent,\n IconComponent,\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n ],\n host: {\n class: 'block h-full min-h-0 w-full',\n },\n templateUrl: './app-preferences-surface.component.html',\n})\nexport class AppPreferencesSurfaceComponent {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly preferences = inject(AppPreferencesPanelService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeStyle = inject(ThemeStyleService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly closeRequested = output<void>();\n protected readonly announcement = signal('');\n protected readonly defaults = this.config?.defaults ?? null;\n protected readonly hasDefaults = computed(() => this.defaults !== null);\n protected readonly mode = this.themeMode.mode;\n protected readonly space = this.themeSpace.space;\n protected readonly radius = this.themeRadius.radius;\n protected readonly style = this.themeStyle.style;\n protected readonly color = this.themeColor.color;\n protected readonly brand = this.themeBrand.brand;\n protected readonly appearance = this.layout.appearance;\n protected readonly surface = this.layout.surface;\n protected readonly width = this.layout.width;\n protected readonly layoutType = this.layout.type;\n protected readonly navigationState = computed<NavigationState>(\n () =>\n this.navigation.state(PRIMARY_NAVIGATION_ID)() ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n },\n );\n\n protected readonly styleOptions = toOptions(THEME_STYLES, THEME_STYLE_OPTIONS);\n protected readonly modeOptions = toOptions(THEME_MODES, THEME_MODE_OPTIONS);\n protected readonly colorOptions = toOptions(THEME_COLORS, THEME_COLOR_OPTIONS);\n protected readonly brandOptions = toOptions(THEME_BRANDS, THEME_BRAND_OPTIONS);\n protected readonly spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);\n protected readonly radiusOptions = toOptions(THEME_RADII, THEME_RADIUS_OPTIONS);\n protected readonly appearanceOptions = toOptions(\n ['base', 'border-rail', 'ala', 'desktop'],\n LAYOUT_APPEARANCE_OPTIONS,\n );\n protected readonly surfaceOptions = toOptions(['base', 'flat', 'grid'], LAYOUT_SURFACE_OPTIONS);\n protected readonly widthOptions = toOptions(\n ['full', 'wide', 'container', 'fluid'],\n LAYOUT_WIDTH_OPTIONS,\n );\n protected readonly layoutTypeOptions = toOptions(NAVIGATION_LAYOUT_TYPES, LAYOUT_TYPE_OPTIONS);\n protected readonly navigationTypeOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical'\n ? VERTICAL_NAVIGATION_TYPES\n : HORIZONTAL_NAVIGATION_TYPES,\n NAVIGATION_TYPE_OPTIONS,\n ),\n );\n protected readonly navigationPositionOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical' ? ['left', 'right'] : ['top', 'bottom'],\n NAVIGATION_POSITION_OPTIONS,\n ),\n );\n protected readonly navigationModeOptions = computed<readonly AppPreferenceOption[]>(() =>\n this.navigationState().orientation === 'horizontal'\n ? []\n : this.navigationState().type === 'sidebar'\n ? [\n { value: 'expanded', label: 'Diperluas', icon: 'unfold_more' },\n { value: 'collapsed', label: 'Dipadatkan', icon: 'compress' },\n ]\n : toOptions(DOCKBAR_MODES, DOCKBAR_MODE_OPTIONS),\n );\n protected readonly navigationMode = computed(() => {\n const state = this.navigationState();\n\n if (state.orientation === 'horizontal') return 'default';\n\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'collapsed'\n : 'expanded'\n : state.dockbarMode;\n });\n protected readonly navigationModeLabel = computed(() => {\n const state = this.navigationState();\n\n if (state.orientation === 'horizontal') return 'Default';\n\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'Dipadatkan'\n : 'Diperluas'\n : DOCKBAR_MODE_OPTIONS[state.dockbarMode].label;\n });\n protected readonly navigationTypeLabel = computed(\n () => NAVIGATION_TYPE_OPTIONS[this.navigationState().type].label,\n );\n protected readonly navigationPositionLabel = computed(\n () => NAVIGATION_POSITION_OPTIONS[this.navigationState().position].label,\n );\n\n constructor() {\n const host = this.host.nativeElement as HTMLElement;\n afterNextRender(() => {\n const closeButton = host.querySelector(\n '[data-app-preferences-close]',\n ) as HTMLButtonElement | null;\n closeButton?.focus({ preventScroll: true });\n });\n }\n\n protected selectStyle(value: string): void {\n if (!isThemeStyle(value)) return;\n\n // A style may switch the shell between sidebar and dockbar. Close the\n // currently projected panel first so the navigation tree and preferences\n // surface do not transition at the same time.\n this.preferences.close();\n this.themeStyle.setStyle(value);\n }\n\n protected selectMode(value: string): void {\n if (!this.isLocked('theme-mode') && isThemeMode(value)) this.themeMode.setMode(value);\n }\n\n protected selectColor(value: string): void {\n if (!this.isLocked('theme-color') && isThemeColor(value)) this.themeColor.setColor(value);\n }\n\n protected selectBrand(value: string): void {\n if (!this.isLocked('theme-brand') && isThemeBrand(value)) this.themeBrand.setBrand(value);\n }\n\n protected selectSpace(value: string): void {\n if (!this.isLocked('theme-space') && isThemeSpace(value)) this.themeSpace.setSpace(value);\n }\n\n protected selectRadius(value: string): void {\n if (!this.isLocked('theme-radius') && isThemeRadius(value)) this.themeRadius.setRadius(value);\n }\n\n protected selectAppearance(value: string): void {\n if (!this.isLocked('layout-appearance') && isUiLayoutStyle(value)) {\n this.layout.setAppearance(value);\n }\n }\n\n protected selectSurface(value: string): void {\n if (!this.isLocked('layout-surface') && isUiLayoutSurface(value)) {\n this.layout.setSurface(value);\n }\n }\n\n protected selectWidth(value: string): void {\n if (!this.isLocked('layout-width') && isUiLayoutWidth(value)) this.layout.setWidth(value);\n }\n\n protected selectLayoutType(value: string): void {\n if (\n this.isLayoutTypeLocked() ||\n !isUiLayoutType(value) ||\n !(NAVIGATION_LAYOUT_TYPES as readonly string[]).includes(value)\n ) {\n return;\n }\n\n const orientation = value as NavigationOrientation;\n const state = this.navigationState();\n const type = isNavigationTypeForOrientation(state.type, orientation)\n ? state.type\n : orientation === 'vertical'\n ? 'sidebar'\n : 'navbar';\n const position = isNavigationPositionForOrientation(state.position, orientation)\n ? state.position\n : orientation === 'vertical'\n ? 'left'\n : 'top';\n\n this.layout.setType(value);\n this.navigation.update(PRIMARY_NAVIGATION_ID, { orientation, type, position });\n }\n\n protected selectNavigationType(value: string): void {\n const state = this.navigationState();\n\n if (!this.isLocked('nav-type') && isNavigationTypeForOrientation(value, state.orientation)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { type: value });\n }\n }\n\n protected selectNavigationMode(value: string): void {\n const state = this.navigationState();\n\n if (this.isLocked('nav-type-mode')) return;\n\n if (state.type === 'sidebar' && (value === 'expanded' || value === 'collapsed')) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { collapsed: value === 'collapsed' });\n }\n\n if (state.type === 'dockbar' && (DOCKBAR_MODES as readonly string[]).includes(value)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n dockbarMode: value as NavigationDockbarMode,\n });\n }\n }\n\n protected selectNavigationPosition(value: string): void {\n const state = this.navigationState();\n\n if (\n !this.isLocked('nav-position') &&\n isNavigationPositionForOrientation(value, state.orientation)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { position: value });\n }\n }\n\n protected resetToDefaults(): void {\n const defaults = this.defaults;\n if (!defaults) return;\n\n let changed = false;\n if (!this.isLocked('theme-mode') && this.mode() !== defaults.theme.mode) {\n this.themeMode.setMode(defaults.theme.mode);\n changed = true;\n }\n if (!this.isLocked('theme-color') && this.color() !== defaults.theme.color) {\n this.themeColor.setColor(defaults.theme.color);\n changed = true;\n }\n if (!this.isLocked('theme-brand') && this.brand() !== defaults.theme.brand) {\n this.themeBrand.setBrand(defaults.theme.brand);\n changed = true;\n }\n if (!this.isLocked('theme-space') && this.space() !== defaults.theme.space) {\n this.themeSpace.setSpace(defaults.theme.space);\n changed = true;\n }\n if (!this.isLocked('theme-radius') && this.radius() !== defaults.theme.radius) {\n this.themeRadius.setRadius(defaults.theme.radius);\n changed = true;\n }\n if (this.style() !== defaults.theme.style) {\n this.themeStyle.setStyle(defaults.theme.style);\n changed = true;\n }\n if (!this.isLocked('layout-appearance') && this.appearance() !== defaults.layout.appearance) {\n this.layout.setAppearance(defaults.layout.appearance);\n changed = true;\n }\n if (!this.isLocked('layout-surface') && this.surface() !== defaults.layout.surface) {\n this.layout.setSurface(defaults.layout.surface);\n changed = true;\n }\n if (!this.isLocked('layout-width') && this.width() !== defaults.layout.width) {\n this.layout.setWidth(defaults.layout.width);\n changed = true;\n }\n if (!this.isLayoutTypeLocked() && this.layoutType() !== defaults.layout.type) {\n this.selectLayoutType(defaults.layout.type);\n changed = true;\n }\n\n const navigation = this.navigationState();\n const nextNavigation = {\n orientation: this.isLocked('nav-orientation')\n ? navigation.orientation\n : defaults.navigation.orientation,\n type: this.isLocked('nav-type') ? navigation.type : defaults.navigation.type,\n position: this.isLocked('nav-position') ? navigation.position : defaults.navigation.position,\n collapsed: this.isLocked('nav-type-mode')\n ? navigation.collapsed\n : defaults.navigation.collapsed,\n dockbarMode: this.isLocked('nav-type-mode')\n ? navigation.dockbarMode\n : defaults.navigation.dockbarMode,\n };\n if (\n navigation.orientation !== nextNavigation.orientation ||\n navigation.type !== nextNavigation.type ||\n navigation.position !== nextNavigation.position ||\n navigation.collapsed !== nextNavigation.collapsed ||\n navigation.dockbarMode !== nextNavigation.dockbarMode\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, nextNavigation);\n changed = true;\n }\n\n this.announce(\n changed ? 'Preferensi dikembalikan ke default.' : 'Preferensi sudah menggunakan default.',\n );\n }\n\n private announce(message: string): void {\n this.announcement.set('');\n queueMicrotask(() => this.announcement.set(message));\n }\n\n protected isLocked(key: ThemeStyleSettingKey): boolean {\n return isThemeStyleSettingLocked(this.style(), key);\n }\n\n protected isLayoutTypeLocked(): boolean {\n return this.isLocked('layout-type') || this.isLocked('nav-orientation');\n }\n}\n\nfunction isNavigationTypeForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationType {\n return orientation === 'vertical'\n ? (VERTICAL_NAVIGATION_TYPES as readonly string[]).includes(value)\n : (HORIZONTAL_NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationPositionForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationPosition {\n return orientation === 'vertical'\n ? value === 'left' || value === 'right'\n : value === 'top' || value === 'bottom';\n}\n","<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n [locked]=\"isLocked('theme-space')\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n [locked]=\"isLocked('theme-radius')\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n [locked]=\"isLocked('layout-appearance')\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n [locked]=\"isLocked('layout-width')\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n","import { DOCUMENT } from '@angular/common';\nimport { Component, DestroyRef, computed, effect, inject, signal } from '@angular/core';\nimport { SheetComponent } from '@edsis/component/sheet';\nimport { NavigationService, type NavigationState } from '@edsis/navigation/service';\n\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\nimport { AppPreferencesSurfaceComponent } from './app-preferences-surface.component';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NARROW_VIEWPORT_QUERY = '(max-width: 767.98px)';\n\n@Component({\n selector: 'app-preferences',\n imports: [AppPreferencesSurfaceComponent, SheetComponent],\n host: {\n '[class]': 'hostClass()',\n '[attr.role]': 'inline() ? \"region\" : null',\n '[attr.aria-labelledby]': 'inline() ? \"app-preferences-title\" : null',\n },\n template: `\n @if (inline()) {\n <section\n id=\"app-preferences-panel\"\n class=\"h-full min-h-0 w-full\"\n aria-labelledby=\"app-preferences-title\"\n >\n <app-preferences-surface (closeRequested)=\"preferences.close()\" />\n </section>\n } @else {\n <Sheet\n [open]=\"preferences.opened()\"\n side=\"left\"\n [showCloseButton]=\"false\"\n [restoreFocus]=\"false\"\n aria-labelledby=\"app-preferences-title\"\n class=\"w-[min(19rem,calc(100dvw-2rem))]! max-w-none! gap-0! p-0!\"\n (openedChange)=\"onSheetOpenChange($event)\"\n >\n <app-preferences-surface\n id=\"app-preferences-panel\"\n (closeRequested)=\"preferences.close()\"\n />\n </Sheet>\n }\n `,\n})\nexport class AppPreferencesComponent {\n private readonly document = inject(DOCUMENT, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n private readonly navigation = inject(NavigationService);\n protected readonly preferences = inject(AppPreferencesPanelService);\n private readonly narrowState = signal(this.mediaQuery()?.matches ?? false);\n private readonly navigationState = computed<NavigationState>(\n () =>\n this.navigation.state(PRIMARY_NAVIGATION_ID)() ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n },\n );\n\n protected readonly inline = computed(\n () =>\n !this.narrowState() &&\n this.navigationState().type === 'sidebar' &&\n !this.navigationState().collapsed,\n );\n protected readonly hostClass = computed(() =>\n this.inline() ? 'block h-full w-76 border-r border-border' : 'relative block h-full w-16',\n );\n\n constructor() {\n const mediaQuery = this.mediaQuery();\n const onChange = (event: MediaQueryListEvent) => this.narrowState.set(event.matches);\n\n mediaQuery?.addEventListener('change', onChange);\n effect((onCleanup) => {\n if (!this.inline() || !this.preferences.opened()) {\n return;\n }\n\n const onKeydown = (event: KeyboardEvent) => {\n if (event.key === 'Escape' && !event.defaultPrevented) {\n this.preferences.close();\n }\n };\n\n this.document?.addEventListener('keydown', onKeydown);\n onCleanup(() => this.document?.removeEventListener('keydown', onKeydown));\n });\n this.destroyRef.onDestroy(() => {\n mediaQuery?.removeEventListener('change', onChange);\n if (this.preferences.opened()) this.preferences.close();\n });\n }\n\n protected onSheetOpenChange(open: boolean): void {\n if (!open) this.preferences.close();\n }\n\n private mediaQuery(): MediaQueryList | null {\n return this.document?.defaultView?.matchMedia?.(NARROW_VIEWPORT_QUERY) ?? null;\n }\n}\n","import { Directive, ElementRef, computed, inject } from '@angular/core';\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\n\n@Directive({\n selector: '[appPreferencesTrigger]',\n host: {\n '[attr.aria-expanded]': 'preferences.opened()',\n '[attr.aria-controls]': 'preferences.opened() ? \"app-preferences-panel\" : null',\n '[attr.aria-disabled]': 'isButton() && !preferences.supported() ? \"true\" : null',\n '[attr.disabled]': 'isButton() && !preferences.supported() ? \"\" : null',\n '(click)': 'onClick($event)',\n },\n})\nexport class AppPreferencesTriggerDirective {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n protected readonly preferences = inject(AppPreferencesPanelService);\n protected readonly isButton = computed(\n () => this.elementRef.nativeElement.localName === 'button',\n );\n\n protected onClick(event: MouseEvent): void {\n if (this.preferences.open(this.elementRef.nativeElement)) {\n event.preventDefault();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PRIMARY_NAVIGATION_ID","LayoutService"],"mappings":";;;;;;;;;;;;;;;AA2CA,MAAMA,uBAAqB,GAAG,MAAM;AACpC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;AAC5E,MAAM,uBAAuB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU;AACnE,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU;AACxE,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;MAG5D,uBAAuB,CAAA;IACjB,MAAM,GAAG,MAAM,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC3D,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACpC,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC,IAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACxC,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC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AAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAV1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,sBAAsB;AAC9C,wBAAA,sBAAsB,EAAE,uDAAuD;AAC/E,wBAAA,sBAAsB,EAAE,wDAAwD;AAChF,wBAAA,iBAAiB,EAAE,oDAAoD;AACvE,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;;;ACZD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edsis/angular",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.56",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=22.0.0",
|
|
6
6
|
"@angular/core": ">=22.0.0",
|
|
7
7
|
"@angular/forms": ">=22.0.0",
|
|
8
8
|
"@angular/router": ">=22.0.0",
|
|
9
|
-
"@edsis/navigation": "^22.0.
|
|
10
|
-
"@edsis/sdk": "^22.0.
|
|
11
|
-
"@edsis/theme": "^22.0.
|
|
12
|
-
"@edsis/component": "^22.0.
|
|
9
|
+
"@edsis/navigation": "^22.0.56",
|
|
10
|
+
"@edsis/sdk": "^22.0.56",
|
|
11
|
+
"@edsis/theme": "^22.0.56",
|
|
12
|
+
"@edsis/component": "^22.0.56",
|
|
13
13
|
"rxjs": ">=7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependenciesMeta": {
|