@edsis/angular 22.0.55 → 22.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/edsis-angular-block-shell.mjs +348 -69
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-block-themes.mjs +115 -25
- package/fesm2022/edsis-angular-block-themes.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +35 -4
|
@@ -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,80 @@ 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
|
+
: typeMode === 'default' && navigationState.collapsed !== this.defaultNavigationCollapsed()
|
|
157
|
+
? { collapsed: this.defaultNavigationCollapsed() }
|
|
158
|
+
: {}),
|
|
159
|
+
...(isNavigationDockbarMode(typeMode) && navigationState.dockbarMode !== typeMode
|
|
160
|
+
? { dockbarMode: typeMode }
|
|
161
|
+
: typeMode === 'default' && navigationState.dockbarMode !== this.defaultNavigationDockbarMode()
|
|
162
|
+
? { dockbarMode: this.defaultNavigationDockbarMode() }
|
|
163
|
+
: {}),
|
|
164
|
+
};
|
|
165
|
+
const hasLockedNavigationValue = [orientation, navigationType, position, typeMode].some((value) => value !== null);
|
|
166
|
+
if (Object.keys(navigationUpdate).length > 0 ||
|
|
167
|
+
(currentNavigationState === null && hasLockedNavigationValue)) {
|
|
168
|
+
this.navigation.update(PRIMARY_NAVIGATION_ID$2, navigationUpdate);
|
|
98
169
|
}
|
|
99
170
|
}
|
|
171
|
+
lockedValueFor(style, key) {
|
|
172
|
+
const entry = themeStylePresetEntry(style, key);
|
|
173
|
+
return entry.control === 'fix' ? entry.value : null;
|
|
174
|
+
}
|
|
100
175
|
valueFor(style, key, fallback) {
|
|
101
176
|
const value = themeStylePresetEntry(style, key).value;
|
|
102
177
|
return value === 'default' ? fallback : value;
|
|
@@ -104,6 +179,12 @@ class ThemeStylePresetService {
|
|
|
104
179
|
defaultMode() {
|
|
105
180
|
return this.config?.defaults?.theme.mode ?? DEFAULT_THEME_MODE;
|
|
106
181
|
}
|
|
182
|
+
defaultSpace() {
|
|
183
|
+
return this.config?.defaults?.theme.space ?? 'normal';
|
|
184
|
+
}
|
|
185
|
+
defaultRadius() {
|
|
186
|
+
return this.config?.defaults?.theme.radius ?? 'medium';
|
|
187
|
+
}
|
|
107
188
|
defaultColor() {
|
|
108
189
|
return this.config?.defaults?.theme.color ?? DEFAULT_THEME_COLOR;
|
|
109
190
|
}
|
|
@@ -144,16 +225,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
144
225
|
type: Service
|
|
145
226
|
}], ctorParameters: () => [] });
|
|
146
227
|
function isNavigationType(value) {
|
|
147
|
-
return NAVIGATION_TYPES.includes(value);
|
|
228
|
+
return value !== null && NAVIGATION_TYPES.includes(value);
|
|
148
229
|
}
|
|
149
230
|
function isNavigationOrientation(value) {
|
|
150
|
-
return NAVIGATION_ORIENTATIONS.includes(value);
|
|
231
|
+
return value !== null && NAVIGATION_ORIENTATIONS.includes(value);
|
|
151
232
|
}
|
|
152
233
|
function isNavigationPosition(value) {
|
|
153
|
-
return NAVIGATION_POSITIONS.includes(value);
|
|
234
|
+
return value !== null && NAVIGATION_POSITIONS.includes(value);
|
|
154
235
|
}
|
|
155
236
|
function isNavigationDockbarMode(value) {
|
|
156
|
-
return NAVIGATION_DOCKBAR_MODES.includes(value);
|
|
237
|
+
return value !== null && NAVIGATION_DOCKBAR_MODES.includes(value);
|
|
157
238
|
}
|
|
158
239
|
|
|
159
240
|
const APP_PREFERENCES_CONFIG = new InjectionToken('APP_PREFERENCES_CONFIG');
|
|
@@ -392,6 +473,7 @@ const THEME_STYLE_OPTIONS = {
|
|
|
392
473
|
rail: { label: 'Rail', icon: 'view_sidebar' },
|
|
393
474
|
ala: { label: 'Ala', icon: 'palette' },
|
|
394
475
|
aye: { label: 'Aye', icon: 'visibility' },
|
|
476
|
+
desktop: { label: 'Desktop', icon: 'desktop_windows' },
|
|
395
477
|
};
|
|
396
478
|
const THEME_MODE_OPTIONS = {
|
|
397
479
|
light: { label: 'Terang', icon: 'light_mode' },
|
|
@@ -418,8 +500,10 @@ const LAYOUT_APPEARANCE_OPTIONS = {
|
|
|
418
500
|
base: { label: 'Dasar', icon: 'crop_square' },
|
|
419
501
|
'border-rail': { label: 'Border rail', icon: 'border_outer' },
|
|
420
502
|
ala: { label: 'Ala', icon: 'space_dashboard' },
|
|
503
|
+
desktop: { label: 'Desktop', icon: 'desktop_windows' },
|
|
421
504
|
};
|
|
422
505
|
const LAYOUT_SURFACE_OPTIONS = {
|
|
506
|
+
base: { label: 'Dasar', icon: 'crop_square' },
|
|
423
507
|
flat: { label: 'Datar', icon: 'crop_16_9' },
|
|
424
508
|
grid: { label: 'Grid', icon: 'grid_4x4' },
|
|
425
509
|
};
|
|
@@ -459,6 +543,7 @@ function toOptions(values, options) {
|
|
|
459
543
|
}
|
|
460
544
|
class AppPreferencesSurfaceComponent {
|
|
461
545
|
config = inject(APP_PREFERENCES_CONFIG, { optional: true });
|
|
546
|
+
preferences = inject(AppPreferencesPanelService);
|
|
462
547
|
themeMode = inject(ThemeModeService);
|
|
463
548
|
themeSpace = inject(ThemeSpaceService);
|
|
464
549
|
themeRadius = inject(ThemeRadiusService);
|
|
@@ -499,8 +584,8 @@ class AppPreferencesSurfaceComponent {
|
|
|
499
584
|
brandOptions = toOptions(THEME_BRANDS, THEME_BRAND_OPTIONS);
|
|
500
585
|
spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);
|
|
501
586
|
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);
|
|
587
|
+
appearanceOptions = toOptions(['base', 'border-rail', 'ala', 'desktop'], LAYOUT_APPEARANCE_OPTIONS);
|
|
588
|
+
surfaceOptions = toOptions(['base', 'flat', 'grid'], LAYOUT_SURFACE_OPTIONS);
|
|
504
589
|
widthOptions = toOptions(['full', 'wide', 'container', 'fluid'], LAYOUT_WIDTH_OPTIONS);
|
|
505
590
|
layoutTypeOptions = toOptions(NAVIGATION_LAYOUT_TYPES, LAYOUT_TYPE_OPTIONS);
|
|
506
591
|
navigationTypeOptions = computed(() => toOptions(this.navigationState().orientation === 'vertical'
|
|
@@ -552,8 +637,13 @@ class AppPreferencesSurfaceComponent {
|
|
|
552
637
|
});
|
|
553
638
|
}
|
|
554
639
|
selectStyle(value) {
|
|
555
|
-
if (isThemeStyle(value))
|
|
556
|
-
|
|
640
|
+
if (!isThemeStyle(value))
|
|
641
|
+
return;
|
|
642
|
+
// A style may switch the shell between sidebar and dockbar. Close the
|
|
643
|
+
// currently projected panel first so the navigation tree and preferences
|
|
644
|
+
// surface do not transition at the same time.
|
|
645
|
+
this.preferences.close();
|
|
646
|
+
this.themeStyle.setStyle(value);
|
|
557
647
|
}
|
|
558
648
|
selectMode(value) {
|
|
559
649
|
if (!this.isLocked('theme-mode') && isThemeMode(value))
|
|
@@ -568,11 +658,11 @@ class AppPreferencesSurfaceComponent {
|
|
|
568
658
|
this.themeBrand.setBrand(value);
|
|
569
659
|
}
|
|
570
660
|
selectSpace(value) {
|
|
571
|
-
if (isThemeSpace(value))
|
|
661
|
+
if (!this.isLocked('theme-space') && isThemeSpace(value))
|
|
572
662
|
this.themeSpace.setSpace(value);
|
|
573
663
|
}
|
|
574
664
|
selectRadius(value) {
|
|
575
|
-
if (isThemeRadius(value))
|
|
665
|
+
if (!this.isLocked('theme-radius') && isThemeRadius(value))
|
|
576
666
|
this.themeRadius.setRadius(value);
|
|
577
667
|
}
|
|
578
668
|
selectAppearance(value) {
|
|
@@ -641,23 +731,23 @@ class AppPreferencesSurfaceComponent {
|
|
|
641
731
|
if (!defaults)
|
|
642
732
|
return;
|
|
643
733
|
let changed = false;
|
|
644
|
-
if (this.mode() !== defaults.theme.mode) {
|
|
734
|
+
if (!this.isLocked('theme-mode') && this.mode() !== defaults.theme.mode) {
|
|
645
735
|
this.themeMode.setMode(defaults.theme.mode);
|
|
646
736
|
changed = true;
|
|
647
737
|
}
|
|
648
|
-
if (this.color() !== defaults.theme.color) {
|
|
738
|
+
if (!this.isLocked('theme-color') && this.color() !== defaults.theme.color) {
|
|
649
739
|
this.themeColor.setColor(defaults.theme.color);
|
|
650
740
|
changed = true;
|
|
651
741
|
}
|
|
652
|
-
if (this.brand() !== defaults.theme.brand) {
|
|
742
|
+
if (!this.isLocked('theme-brand') && this.brand() !== defaults.theme.brand) {
|
|
653
743
|
this.themeBrand.setBrand(defaults.theme.brand);
|
|
654
744
|
changed = true;
|
|
655
745
|
}
|
|
656
|
-
if (this.space() !== defaults.theme.space) {
|
|
746
|
+
if (!this.isLocked('theme-space') && this.space() !== defaults.theme.space) {
|
|
657
747
|
this.themeSpace.setSpace(defaults.theme.space);
|
|
658
748
|
changed = true;
|
|
659
749
|
}
|
|
660
|
-
if (this.radius() !== defaults.theme.radius) {
|
|
750
|
+
if (!this.isLocked('theme-radius') && this.radius() !== defaults.theme.radius) {
|
|
661
751
|
this.themeRadius.setRadius(defaults.theme.radius);
|
|
662
752
|
changed = true;
|
|
663
753
|
}
|
|
@@ -669,11 +759,11 @@ class AppPreferencesSurfaceComponent {
|
|
|
669
759
|
this.layout.setAppearance(defaults.layout.appearance);
|
|
670
760
|
changed = true;
|
|
671
761
|
}
|
|
672
|
-
if (this.surface() !== defaults.layout.surface) {
|
|
762
|
+
if (!this.isLocked('layout-surface') && this.surface() !== defaults.layout.surface) {
|
|
673
763
|
this.layout.setSurface(defaults.layout.surface);
|
|
674
764
|
changed = true;
|
|
675
765
|
}
|
|
676
|
-
if (this.width() !== defaults.layout.width) {
|
|
766
|
+
if (!this.isLocked('layout-width') && this.width() !== defaults.layout.width) {
|
|
677
767
|
this.layout.setWidth(defaults.layout.width);
|
|
678
768
|
changed = true;
|
|
679
769
|
}
|
|
@@ -716,7 +806,7 @@ class AppPreferencesSurfaceComponent {
|
|
|
716
806
|
return this.isLocked('layout-type') || this.isLocked('nav-orientation');
|
|
717
807
|
}
|
|
718
808
|
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"] }] });
|
|
809
|
+
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", "page-appearance", "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
810
|
}
|
|
721
811
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AppPreferencesSurfaceComponent, decorators: [{
|
|
722
812
|
type: Component,
|
|
@@ -730,7 +820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
730
820
|
PageHeaderComponent,
|
|
731
821
|
], host: {
|
|
732
822
|
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" }]
|
|
823
|
+
}, 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
824
|
}], ctorParameters: () => [], propDecorators: { closeRequested: [{ type: i0.Output, args: ["closeRequested"] }] } });
|
|
735
825
|
function isNavigationTypeForOrientation(value, orientation) {
|
|
736
826
|
return orientation === 'vertical'
|