@ojiepermana/angular 22.2.14 → 22.2.18
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 +2 -2
- package/SUPPORT.md +23 -9
- package/component/composer/README.md +3 -0
- package/component/editor/README.md +3 -0
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +9 -1
- package/fesm2022/ojiepermana-angular-component-alert.mjs +4 -2
- package/fesm2022/ojiepermana-angular-component-button.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-composer.mjs +68 -19
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-editor.mjs +68 -12
- package/fesm2022/ojiepermana-angular-component-form.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-input.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-select.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +7 -1
- package/fesm2022/{ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs → ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs} +28 -18
- package/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-B2o_omfJ.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dl7VAyfV.mjs} +3 -3
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-CJGBKA8c.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-2Jw-868m.mjs} +6 -4
- package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-CHVjP7ew.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-QHUdqD1N.mjs} +8 -8
- package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-znRwi38r.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-CoX6X3C2.mjs} +5 -5
- package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs → ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs} +15 -5
- package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-BIQM2uf1.mjs → ojiepermana-angular-navigation-navigation-list.component-CRRaXJz4.mjs} +1 -1
- package/fesm2022/ojiepermana-angular-navigation.mjs +45 -23
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +17 -5
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +72 -18
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +160 -92
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +9 -17
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +16 -6
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +10 -18
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +2 -0
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +22 -3
- package/navigation/README.md +17 -0
- package/package.json +5 -5
- package/sdk/README.md +15 -4
- package/sdk/schematics/sdk/index.js +84 -12
- package/theme/layout/README.md +2 -1
- package/theme/page/README.md +5 -3
- package/theme/styles/css/base/components.css +90 -0
- package/theme/styles/css/base/prefers-dark.css +1 -0
- package/theme/styles/css/base/tailwind.css +6 -0
- package/theme/styles/css/base/theme.css +3 -0
- package/theme/styles/css/base/tokens.css +13 -0
- package/theme/styles/css/color/brand.css +16 -0
- package/types/ojiepermana-angular-component-composer.d.ts +5 -1
- package/types/ojiepermana-angular-component-editor.d.ts +4 -0
- package/types/ojiepermana-angular-navigation-types.d.ts +6 -0
- package/types/ojiepermana-angular-navigation.d.ts +13 -3
- package/types/ojiepermana-angular-theme-component-settings.d.ts +10 -0
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +24 -1
- package/types/ojiepermana-angular-theme-page-core.d.ts +8 -9
- package/types/ojiepermana-angular-theme-page-root.d.ts +1 -0
- package/types/ojiepermana-angular-theme-styles.d.ts +3 -2
|
@@ -297,6 +297,9 @@
|
|
|
297
297
|
[data-mode='dark'] {
|
|
298
298
|
--destructive: 0 62% 45%;
|
|
299
299
|
--destructive-foreground: 0 0% 95%;
|
|
300
|
+
/* Destructive as text and icons (spec 0014): 4.5:1 or more on background,
|
|
301
|
+
card and muted for every neutral. The fill above is unchanged. */
|
|
302
|
+
--destructive-ink: 0 72% 64%;
|
|
300
303
|
|
|
301
304
|
--overlay-backdrop: 0 0% 0% / 0.64;
|
|
302
305
|
--overlay-backdrop-strong: 0 0% 0% / 0.5;
|
|
@@ -152,6 +152,19 @@
|
|
|
152
152
|
--nav-count-padding: var(--spacing-base);
|
|
153
153
|
--nav-count-offset: calc(var(--spacing-base) * -2);
|
|
154
154
|
--nav-count-font-size: calc(var(--font-size-base) * 0.625);
|
|
155
|
+
/* Navigation[badge-indicator='dot']: the open/closed dot pinned to the count
|
|
156
|
+
* badge's bottom-right corner. Size and offset ride --spacing-base so the dot
|
|
157
|
+
* keeps its place on the badge at every density; ring and stroke are hairlines.
|
|
158
|
+
* The color is the item's own text color in its current state (currentColor
|
|
159
|
+
* resolves where the dot is painted, inside the item). The ring is a
|
|
160
|
+
* transparent cutout, so it always shows the item's own surface; a ring
|
|
161
|
+
* color paints over that cutout when a consumer sets one. */
|
|
162
|
+
--nav-badge-dot-size: calc(var(--spacing-base) * 1.75); /* 7px @ normal */
|
|
163
|
+
--nav-badge-dot-offset: calc(var(--spacing-base) * -0.5); /* -2px @ normal */
|
|
164
|
+
--nav-badge-dot-color: currentColor;
|
|
165
|
+
--nav-badge-dot-ring: 1.5px;
|
|
166
|
+
--nav-badge-dot-ring-color: transparent;
|
|
167
|
+
--nav-badge-dot-stroke: 1.5px;
|
|
155
168
|
/* Item subtitles/descriptions — a quiet 12px tier under labels. */
|
|
156
169
|
--nav-subtitle-size: calc(var(--font-size-base) * 0.75);
|
|
157
170
|
--nav-subtitle-line-height: 1.35;
|
|
@@ -18,14 +18,29 @@
|
|
|
18
18
|
* clear 3 to 1 against the background. ThemeBrandService solves that value once
|
|
19
19
|
* per mode (--brand-ring-light / --brand-ring-dark); without it the ring simply
|
|
20
20
|
* falls back to the brand.
|
|
21
|
+
*
|
|
22
|
+
* --primary-ink is the brand as text and icons (spec 0013). The fill keeps one
|
|
23
|
+
* lightness for both modes, so text in that colour can vanish on the dark
|
|
24
|
+
* ground; ThemeBrandService solves --brand-ink-light / --brand-ink-dark at 4.5
|
|
25
|
+
* to 1 and this file picks the one the mode needs.
|
|
21
26
|
*/
|
|
22
27
|
@layer tokens {
|
|
23
28
|
html[theme-color='brand'][data-mode='light'] {
|
|
24
29
|
--brand-ring: var(--brand-ring-light, var(--brand));
|
|
30
|
+
--brand-ink: var(--brand-ink-light, var(--brand));
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
html[theme-color='brand'][data-mode='dark'] {
|
|
28
34
|
--brand-ring: var(--brand-ring-dark, var(--brand));
|
|
35
|
+
--brand-ink: var(--brand-ink-dark, var(--brand));
|
|
36
|
+
/* The first chart series is the primary; on the dark ground it takes the ink,
|
|
37
|
+
which clears 4.5 to 1, so the series always clears the 3 to 1 graphics
|
|
38
|
+
minimum. A consumer --theme-chart-1 still wins. */
|
|
39
|
+
--chart-1: var(--theme-chart-1, var(--brand-ink));
|
|
40
|
+
--chart-1-foreground: var(
|
|
41
|
+
--theme-chart-1-foreground,
|
|
42
|
+
var(--brand-ink-dark-foreground, var(--brand-foreground))
|
|
43
|
+
);
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
html[theme-color='brand'][data-mode='light'],
|
|
@@ -34,5 +49,6 @@
|
|
|
34
49
|
--primary-foreground: var(--brand-foreground);
|
|
35
50
|
--ring: var(--brand-ring, var(--brand));
|
|
36
51
|
--highlight: var(--brand);
|
|
52
|
+
--primary-ink: var(--brand-ink, var(--brand));
|
|
37
53
|
}
|
|
38
54
|
}
|
|
@@ -137,17 +137,21 @@ export declare class ComposerInputComponent {
|
|
|
137
137
|
export declare class ComposerTextareaComponent implements AfterViewInit, ControlValueAccessor {
|
|
138
138
|
private readonly el;
|
|
139
139
|
private readonly composer;
|
|
140
|
+
private readonly destroyRef;
|
|
141
|
+
protected readonly nativeAutosize: boolean;
|
|
140
142
|
readonly rows: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
141
143
|
readonly maxRows: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
142
144
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
143
145
|
readonly invalidInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
144
146
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
147
|
+
protected readonly maxBlockSize: import("@angular/core").Signal<string | null>;
|
|
145
148
|
private readonly disabledState;
|
|
146
149
|
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
147
150
|
protected readonly invalid: import("@angular/core").Signal<boolean>;
|
|
148
151
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
149
152
|
private onChange;
|
|
150
153
|
private onTouched;
|
|
154
|
+
constructor();
|
|
151
155
|
ngAfterViewInit(): void;
|
|
152
156
|
writeValue(value: string | null): void;
|
|
153
157
|
registerOnChange(fn: (value: string) => void): void;
|
|
@@ -158,7 +162,7 @@ export declare class ComposerTextareaComponent implements AfterViewInit, Control
|
|
|
158
162
|
protected handleInput(): void;
|
|
159
163
|
protected handleBlur(): void;
|
|
160
164
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
161
|
-
private
|
|
165
|
+
private observeSize;
|
|
162
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComposerTextareaComponent, never>;
|
|
163
167
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComposerTextareaComponent, "textarea[ComposerInput]", never, {
|
|
164
168
|
"rows": {
|
|
@@ -166,6 +166,7 @@ export declare class EditorContentComponent implements AfterViewInit, OnDestroy,
|
|
|
166
166
|
private readonly editor;
|
|
167
167
|
private readonly document;
|
|
168
168
|
private readonly sanitizeHtml;
|
|
169
|
+
private readonly htmlParser;
|
|
169
170
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
170
171
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
171
172
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -177,6 +178,7 @@ export declare class EditorContentComponent implements AfterViewInit, OnDestroy,
|
|
|
177
178
|
protected readonly invalid: import("@angular/core").Signal<boolean>;
|
|
178
179
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
179
180
|
private lastKnownValue;
|
|
181
|
+
private pendingValue;
|
|
180
182
|
private onChange;
|
|
181
183
|
private onTouched;
|
|
182
184
|
ngAfterViewInit(): void;
|
|
@@ -189,6 +191,8 @@ export declare class EditorContentComponent implements AfterViewInit, OnDestroy,
|
|
|
189
191
|
focus(): void;
|
|
190
192
|
protected handleInput(): void;
|
|
191
193
|
private setSanitizedValue;
|
|
194
|
+
private renderHtml;
|
|
195
|
+
private serializeContent;
|
|
192
196
|
protected handleBlur(): void;
|
|
193
197
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
194
198
|
private exec;
|
|
@@ -8,6 +8,12 @@ export type NavigationType = NavigationVerticalType | NavigationHorizontalType;
|
|
|
8
8
|
export type NavigationCollapseTree = 'stairs' | 'straight';
|
|
9
9
|
/** Jangkauan konektor parent ke child, tanpa mengubah bentuk collapse tree. */
|
|
10
10
|
export type NavigationRail = 'default' | 'rail-active';
|
|
11
|
+
/**
|
|
12
|
+
* Penanda buka/tutup pada item collapsible yang sedang menampilkan count badge.
|
|
13
|
+
* `chevron` (default) mempertahankan chevron; `dot` menggantinya dengan titik kecil
|
|
14
|
+
* di sudut badge, dan chevron kembali begitu badge hilang.
|
|
15
|
+
*/
|
|
16
|
+
export type NavigationBadgeIndicator = 'chevron' | 'dot';
|
|
11
17
|
export type NavigationAppearance = 'flat' | 'border-rail';
|
|
12
18
|
export type NavigationVerticalPosition = 'left' | 'right';
|
|
13
19
|
export type NavigationHorizontalPosition = 'top' | 'bottom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationIconDirective, NavigationIconDirective as NavigationIconDirective$1 } from "@ojiepermana/angular/navigation/icon";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Signal, TemplateRef } from "@angular/core";
|
|
4
|
-
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationActionHandler, NavigationAppearance, NavigationAppearance as NavigationAppearance$1, NavigationBadgeAriaLabel, NavigationBadgeContext, NavigationBadgeContext as NavigationBadgeContext$1, NavigationBadgeCount, NavigationBadgeSource, NavigationBadgeSource as NavigationBadgeSource$1, NavigationBadgeValueSource, NavigationCollapseTree, NavigationCollapseTree as NavigationCollapseTree$1, NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationDockbarRouteConfig, NavigationDockbarRouteContext, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationFlyoutIconPosition, NavigationFlyoutIconPosition as NavigationFlyoutIconPosition$1, NavigationFlyoutTriggerVariant, NavigationFlyoutTriggerVariant as NavigationFlyoutTriggerVariant$1, NavigationHorizontalPosition, NavigationHorizontalPosition as NavigationHorizontalPosition$1, NavigationHorizontalType, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationItemBadge, NavigationItemClasses, NavigationItemType, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationNormalizedItemType, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRail, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationResolvedRouteContext as NavigationResolvedRouteContext$1, NavigationRouteData, NavigationSelection, NavigationSelection as NavigationSelection$1, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1, NavigationVerticalPosition, NavigationVerticalPosition as NavigationVerticalPosition$1, NavigationVerticalType, NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems } from "@ojiepermana/angular/navigation/types";
|
|
4
|
+
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationActionHandler, NavigationAppearance, NavigationAppearance as NavigationAppearance$1, NavigationBadgeAriaLabel, NavigationBadgeContext, NavigationBadgeContext as NavigationBadgeContext$1, NavigationBadgeCount, NavigationBadgeIndicator, NavigationBadgeIndicator as NavigationBadgeIndicator$1, NavigationBadgeSource, NavigationBadgeSource as NavigationBadgeSource$1, NavigationBadgeValueSource, NavigationCollapseTree, NavigationCollapseTree as NavigationCollapseTree$1, NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationDockbarRouteConfig, NavigationDockbarRouteContext, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationFlyoutIconPosition, NavigationFlyoutIconPosition as NavigationFlyoutIconPosition$1, NavigationFlyoutTriggerVariant, NavigationFlyoutTriggerVariant as NavigationFlyoutTriggerVariant$1, NavigationHorizontalPosition, NavigationHorizontalPosition as NavigationHorizontalPosition$1, NavigationHorizontalType, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationItemBadge, NavigationItemClasses, NavigationItemType, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationNormalizedItemType, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRail, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationResolvedRouteContext as NavigationResolvedRouteContext$1, NavigationRouteData, NavigationSelection, NavigationSelection as NavigationSelection$1, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1, NavigationVerticalPosition, NavigationVerticalPosition as NavigationVerticalPosition$1, NavigationVerticalType, NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems } from "@ojiepermana/angular/navigation/types";
|
|
5
5
|
export * from "@ojiepermana/angular/navigation/core";
|
|
6
6
|
/**
|
|
7
7
|
* Konfigurasi yang didaftarkan komponen type (`<NavigationSidebar>`,
|
|
@@ -86,6 +86,11 @@ export declare class NavigationContainerComponent implements NavigationShellCont
|
|
|
86
86
|
readonly compact: import("@angular/core").InputSignal<boolean>;
|
|
87
87
|
readonly collapseTree: import("@angular/core").InputSignal<NavigationCollapseTree$1>;
|
|
88
88
|
readonly rail: import("@angular/core").InputSignal<NavigationRail>;
|
|
89
|
+
/**
|
|
90
|
+
* `dot` mengganti chevron item collapsible yang count badge-nya tampil dengan titik
|
|
91
|
+
* di sudut badge (penuh saat tertutup, kosong saat terbuka). Default `chevron`.
|
|
92
|
+
*/
|
|
93
|
+
readonly badgeIndicator: import("@angular/core").InputSignal<NavigationBadgeIndicator$1>;
|
|
89
94
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
90
95
|
readonly itemClass: import("@angular/core").InputSignal<string>;
|
|
91
96
|
/** Kelas Tailwind untuk container `<li>` group horizontal (flyout tab / navbar group). */
|
|
@@ -223,6 +228,11 @@ export declare class NavigationContainerComponent implements NavigationShellCont
|
|
|
223
228
|
"required": false;
|
|
224
229
|
"isSignal": true;
|
|
225
230
|
};
|
|
231
|
+
"badgeIndicator": {
|
|
232
|
+
"alias": "badge-indicator";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
226
236
|
"class": {
|
|
227
237
|
"alias": "class";
|
|
228
238
|
"required": false;
|
|
@@ -317,7 +327,7 @@ export declare class NavigationHeaderComponent {
|
|
|
317
327
|
* dengan padding `px-3`.
|
|
318
328
|
*/
|
|
319
329
|
protected readonly rowClasses: import("@angular/core").Signal<string>;
|
|
320
|
-
protected readonly contentClasses: import("@angular/core").Signal<"flex min-w-0 items-center gap-3" | "flex min-w-0 items-center justify-center" | "flex min-w-0 flex-1 items-center gap-3">;
|
|
330
|
+
protected readonly contentClasses: import("@angular/core").Signal<"flex min-w-0 items-center gap-3" | "hidden" | "flex min-w-0 items-center justify-center" | "flex min-w-0 flex-1 items-center gap-3">;
|
|
321
331
|
protected readonly hostClasses: import("@angular/core").Signal<string>;
|
|
322
332
|
protected toggleCollapsed(): void;
|
|
323
333
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationHeaderComponent, never>;
|
|
@@ -866,4 +876,4 @@ export declare class NavigationHeaderTitleComponent {
|
|
|
866
876
|
* memakai dua huruf pertamanya.
|
|
867
877
|
*/
|
|
868
878
|
export declare function deriveNavigationInitials(name: string): string;
|
|
869
|
-
export { NAVIGATION_DOCKBAR_FALLBACK_ICON, type NavigationActionHandler, type NavigationAppearance, type NavigationBadgeAriaLabel, type NavigationBadgeContext, type NavigationBadgeCount, type NavigationBadgeSource, type NavigationBadgeValueSource, type NavigationCollapseTree, type NavigationDockbarMode, type NavigationDockbarRouteConfig, type NavigationDockbarRouteContext, type NavigationFlyoutIconPosition, type NavigationFlyoutTriggerVariant, type NavigationHorizontalPosition, type NavigationHorizontalType, type NavigationIconContext, NavigationIconDirective, type NavigationItem, type NavigationItemBadge, type NavigationItemClasses, type NavigationItemType, type NavigationLink, type NavigationNormalizedItem, type NavigationNormalizedItemType, type NavigationOrientation, type NavigationPosition, type NavigationRegisterInput, type NavigationResolvedRouteContext, type NavigationRouteData, type NavigationSelection, type NavigationState, type NavigationType, type NavigationVerticalPosition, type NavigationVerticalType, type NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };
|
|
879
|
+
export { NAVIGATION_DOCKBAR_FALLBACK_ICON, type NavigationActionHandler, type NavigationAppearance, type NavigationBadgeAriaLabel, type NavigationBadgeContext, type NavigationBadgeCount, type NavigationBadgeIndicator, type NavigationBadgeSource, type NavigationBadgeValueSource, type NavigationCollapseTree, type NavigationDockbarMode, type NavigationDockbarRouteConfig, type NavigationDockbarRouteContext, type NavigationFlyoutIconPosition, type NavigationFlyoutTriggerVariant, type NavigationHorizontalPosition, type NavigationHorizontalType, type NavigationIconContext, NavigationIconDirective, type NavigationItem, type NavigationItemBadge, type NavigationItemClasses, type NavigationItemType, type NavigationLink, type NavigationNormalizedItem, type NavigationNormalizedItemType, type NavigationOrientation, type NavigationPosition, type NavigationRegisterInput, type NavigationResolvedRouteContext, type NavigationRouteData, type NavigationSelection, type NavigationState, type NavigationType, type NavigationVerticalPosition, type NavigationVerticalType, type NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };
|
|
@@ -178,6 +178,15 @@ export declare class ThemeSettingsDefaultAdapter implements ThemeSettingsAdapter
|
|
|
178
178
|
/** Shell mode the nav-type constraints are resolved against. */
|
|
179
179
|
readonly shellMode: import("@angular/core").Signal<"tablet" | "desktop" | "web" | "mobile">;
|
|
180
180
|
constructor();
|
|
181
|
+
/**
|
|
182
|
+
* Seed the navigation axes with app defaults, unless the user already stored a
|
|
183
|
+
* choice — that one always wins. Like `LayoutService.registerDefaults`, seeding
|
|
184
|
+
* never persists, and an incoherent seed is corrected the same way a user pick is.
|
|
185
|
+
*/
|
|
186
|
+
registerDefaults(defaults: {
|
|
187
|
+
navType?: ThemeSettingsNavigationType;
|
|
188
|
+
navTypeMode?: ThemeSettingsNavigationMode;
|
|
189
|
+
}): this;
|
|
181
190
|
setSurface(surface: LayoutSurface): void;
|
|
182
191
|
setAppearance(appearance: LayoutAppearance): void;
|
|
183
192
|
setWidth(width: LayoutWidth): void;
|
|
@@ -192,6 +201,7 @@ export declare class ThemeSettingsDefaultAdapter implements ThemeSettingsAdapter
|
|
|
192
201
|
*/
|
|
193
202
|
private enforceConstraints;
|
|
194
203
|
private enforceNavTypeMode;
|
|
204
|
+
private isStored;
|
|
195
205
|
private readStoredNavType;
|
|
196
206
|
private readStoredNavTypeMode;
|
|
197
207
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeSettingsDefaultAdapter, never>;
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { ElementRef, InjectionToken, Provider } from "@angular/core";
|
|
3
3
|
import { ThemeSettingsNavigationMode, ThemeSettingsNavigationType } from "@ojiepermana/angular/theme/component/settings";
|
|
4
4
|
import { NavigationDockbarRouteContext } from "@ojiepermana/angular/navigation";
|
|
5
|
-
import { NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationItem, NavigationRail, NavigationType } from "@ojiepermana/angular/navigation/types";
|
|
5
|
+
import { NavigationBadgeIndicator, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationItem, NavigationRail, NavigationType } from "@ojiepermana/angular/navigation/types";
|
|
6
6
|
/**
|
|
7
7
|
* The identity shape the layout wrappers consume. The library defines the structure
|
|
8
8
|
* only; the concrete brand and user values come from the consumer as inputs.
|
|
@@ -67,6 +67,11 @@ export interface LayoutUserOptions {
|
|
|
67
67
|
* off when the application offers the settings on a page of its own.
|
|
68
68
|
*/
|
|
69
69
|
readonly showThemeSettings?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Render the logout control. Default `true`; turn it off when the application
|
|
72
|
+
* has no session to end, such as a public documentation site.
|
|
73
|
+
*/
|
|
74
|
+
readonly showLogout?: boolean;
|
|
70
75
|
/** Accessible name of the logout control. Default `'Logout'`. */
|
|
71
76
|
readonly logoutLabel?: string;
|
|
72
77
|
/**
|
|
@@ -161,6 +166,8 @@ export declare class LayoutUser {
|
|
|
161
166
|
readonly showEmail: import("@angular/core").InputSignalWithTransform<boolean | null, unknown>;
|
|
162
167
|
/** Render the ThemeSettings shortcut; unset falls back to the options, then `true`. */
|
|
163
168
|
readonly showThemeSettings: import("@angular/core").InputSignalWithTransform<boolean | null, unknown>;
|
|
169
|
+
/** Render the logout button; unset falls back to the options, then `true`. */
|
|
170
|
+
readonly showLogout: import("@angular/core").InputSignalWithTransform<boolean | null, unknown>;
|
|
164
171
|
/** Accessible name for the logout button; unset falls back to the options, then `Logout`. */
|
|
165
172
|
readonly logoutLabel: import("@angular/core").InputSignal<string | null>;
|
|
166
173
|
/**
|
|
@@ -173,6 +180,7 @@ export declare class LayoutUser {
|
|
|
173
180
|
protected readonly showsIdentity: import("@angular/core").Signal<boolean>;
|
|
174
181
|
protected readonly showsEmail: import("@angular/core").Signal<boolean>;
|
|
175
182
|
protected readonly showsThemeSettings: import("@angular/core").Signal<boolean>;
|
|
183
|
+
protected readonly showsLogout: import("@angular/core").Signal<boolean>;
|
|
176
184
|
protected readonly resolvedLogoutLabel: import("@angular/core").Signal<string>;
|
|
177
185
|
protected readonly resolvedLogoutIcon: import("@angular/core").Signal<string>;
|
|
178
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutUser, never>;
|
|
@@ -202,6 +210,11 @@ export declare class LayoutUser {
|
|
|
202
210
|
"required": false;
|
|
203
211
|
"isSignal": true;
|
|
204
212
|
};
|
|
213
|
+
"showLogout": {
|
|
214
|
+
"alias": "show-logout";
|
|
215
|
+
"required": false;
|
|
216
|
+
"isSignal": true;
|
|
217
|
+
};
|
|
205
218
|
"logoutLabel": {
|
|
206
219
|
"alias": "logoutLabel";
|
|
207
220
|
"required": false;
|
|
@@ -508,6 +521,11 @@ export declare class LayoutWrapperDefault {
|
|
|
508
521
|
readonly navTypeMode: import("@angular/core").InputSignal<ThemeSettingsNavigationMode>;
|
|
509
522
|
/** Extent of parent to child rails in sidebar and dockbar menus. */
|
|
510
523
|
readonly navRail: import("@angular/core").InputSignal<NavigationRail>;
|
|
524
|
+
/**
|
|
525
|
+
* Forwarded to the desktop and mobile `<Navigation>` as `badge-indicator`. `dot` swaps a
|
|
526
|
+
* collapsible's chevron for a dot on its visible count badge; default `chevron`.
|
|
527
|
+
*/
|
|
528
|
+
readonly navBadgeIndicator: import("@angular/core").InputSignal<NavigationBadgeIndicator>;
|
|
511
529
|
/** Opt-in route-aware dockbar state; ignored by other navigation types. */
|
|
512
530
|
readonly dockbarRouteContext: import("@angular/core").InputSignal<NavigationDockbarRouteContext$1 | null>;
|
|
513
531
|
/** Registry badge untuk semua jenis navigasi desktop dan sidebar mobile. */
|
|
@@ -604,6 +622,11 @@ export declare class LayoutWrapperDefault {
|
|
|
604
622
|
"required": false;
|
|
605
623
|
"isSignal": true;
|
|
606
624
|
};
|
|
625
|
+
"navBadgeIndicator": {
|
|
626
|
+
"alias": "nav-badge-indicator";
|
|
627
|
+
"required": false;
|
|
628
|
+
"isSignal": true;
|
|
629
|
+
};
|
|
607
630
|
"dockbarRouteContext": {
|
|
608
631
|
"alias": "dockbar-route-context";
|
|
609
632
|
"required": false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Signal } from "@angular/core";
|
|
2
|
+
import { Provider, Signal } from "@angular/core";
|
|
3
3
|
export declare const PAGE_VARIANTS: readonly ["stacked", "side"];
|
|
4
4
|
export declare const PAGE_SIDE_POSITIONS: readonly ["left", "right"];
|
|
5
5
|
export declare const PAGE_SIDE_MODES: readonly ["sticky", "drawer", "overlay"];
|
|
@@ -132,20 +132,19 @@ export declare class PageStateService {
|
|
|
132
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageStateService, never>;
|
|
133
133
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
134
134
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Accessibility management for the Page panels.
|
|
137
|
-
*
|
|
138
|
-
* A drawer only gets initial focus and focus restoration. An overlay is a modal dialog:
|
|
139
|
-
* focus is trapped, the background is made inert, and document scrolling is locked until
|
|
140
|
-
* the panel closes. Must be called from an injection context, because it uses `effect`.
|
|
141
|
-
*/
|
|
142
135
|
/** @internal */
|
|
136
|
+
export declare function ɵisActivePageOverlay(document: Document, id: string | null): boolean;
|
|
137
|
+
/** Manage initial focus and restoration for drawers, and document modality for overlays. @internal */
|
|
143
138
|
export declare function ɵsetupOverlayFocusManagement(config: {
|
|
144
139
|
document: Document | null;
|
|
145
140
|
host: HTMLElement;
|
|
146
141
|
isOpen: Signal<boolean>;
|
|
147
142
|
isInteractive: Signal<boolean>;
|
|
148
143
|
isModal: Signal<boolean>;
|
|
144
|
+
closeOnEsc?: Signal<boolean>;
|
|
145
|
+
close?: () => void;
|
|
149
146
|
/** Optional trigger captured at the open gesture, before a modal makes it inert. */
|
|
150
147
|
takeReturnFocus?: () => HTMLElement | null;
|
|
151
|
-
}): void;
|
|
148
|
+
}): void;
|
|
149
|
+
/** @internal */
|
|
150
|
+
export declare const ɵPAGE_PANEL_OVERLAY_PROVIDERS: Provider[];
|
|
@@ -7,6 +7,7 @@ import { PageStateService } from "@ojiepermana/angular/theme/page/core";
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class PageComponent {
|
|
9
9
|
protected readonly page: PageStateService;
|
|
10
|
+
private readonly document;
|
|
10
11
|
private readonly layout;
|
|
11
12
|
private readonly navigation;
|
|
12
13
|
private readonly identity;
|
|
@@ -106,8 +106,9 @@ export interface ThemeBrand {
|
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* Consumer-configurable brand color. Writes `--brand`, `--brand-foreground`, the
|
|
109
|
-
* derived `--brand-pattern-hs` hue/saturation source,
|
|
110
|
-
*
|
|
109
|
+
* derived `--brand-pattern-hs` hue/saturation source, a `--brand-ink-light` /
|
|
110
|
+
* `--brand-ink-dark` pair for brand-coloured text (spec 0013), and a
|
|
111
|
+
* `--brand-ring-light` / `--brand-ring-dark` pair as inline custom properties on `<html>` so solid
|
|
111
112
|
* brand utilities, the focus ring, and the soft Layout pattern tiers can resolve
|
|
112
113
|
* without CSS relative-color syntax.
|
|
113
114
|
*
|