@edsis/angular 22.0.53 → 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.
package/README.md CHANGED
@@ -9,6 +9,21 @@ Published entry points:
9
9
 
10
10
  The generated API SDK is published separately as `@edsis/sdk`.
11
11
 
12
+ ## `module/auth`: Magic-link destination
13
+
14
+ When the login form is submitted, the auth module sends the origin derived
15
+ from `appUrl` as `frontend_url`. This lets the backend keep only the route path
16
+ in its environment configuration:
17
+
18
+ ```env
19
+ AUTH_SERVICE_MAGIC_LINK_VERIFY_URL=/verify
20
+ ```
21
+
22
+ For example, an app configured with `appUrl: 'https://edsis.dev'` submits
23
+ `frontend_url: 'https://edsis.dev'`; the backend creates the final destination
24
+ `https://edsis.dev/verify#token=...`. An absolute backend verify URL remains a
25
+ supported fallback for older deployments.
26
+
12
27
  ## `module/auth`: Google Sign-In
13
28
 
14
29
  `@edsis/angular/module/auth` ships an optional Google Sign-In using the OAuth
@@ -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, ThemeSpaceService, ThemeRadiusService, THEME_STYLES, THEME_MODES, THEME_COLORS, THEME_BRANDS, THEME_SPACES, THEME_RADII, isThemeStyle, isThemeSpace, isThemeRadius, isThemeStyleSettingLocked } from '@edsis/theme/styles';
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 appearance = themeStylePresetEntry(style, 'layout-appearance');
94
- if (appearance.control === 'fix' &&
95
- isUiLayoutStyle(appearance.value) &&
96
- this.layout.appearance() !== appearance.value) {
97
- this.layout.setAppearance(appearance.value);
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
- this.themeStyle.setStyle(value);
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'