@ojiepermana/angular 22.1.14 → 22.2.0
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 +8 -6
- package/SUPPORT.md +3 -3
- package/chart/README.md +1 -1
- package/component/README.md +2 -2
- package/component/calendar/README.md +3 -15
- package/component/drawer/README.md +1 -2
- package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
- package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
- package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
- package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
- package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
- package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
- package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
- package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
- package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
- package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
- package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
- package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
- package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
- package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
- package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +2 -5
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
- package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
- package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
- package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
- package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
- package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
- package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
- package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
- package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
- package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
- package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
- package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
- package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
- package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
- package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
- package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
- package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
- package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
- package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
- package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
- package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
- package/fesm2022/ojiepermana-angular-component.mjs +0 -10
- package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-BKCeWzml.mjs +129 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DFEJK2jD.mjs +811 -0
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-COQ-60DS.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-mpK9Ar08.mjs} +387 -183
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BPgH7FJk.mjs +650 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-DMpYcD9t.mjs +662 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-Basp5SIk.mjs +1228 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-YUzHI9Pj.mjs +311 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +542 -724
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +27 -56
- package/fesm2022/ojiepermana-angular-navigation.mjs +3052 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1115 -737
- package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
- package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1719 -552
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -496
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
- package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
- package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
- package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
- package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
- package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
- package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
- package/fesm2022/ojiepermana-angular.mjs +5 -24
- package/navigation/README.md +1 -1
- package/package.json +16 -12
- package/sdk/README.md +1 -1
- package/sdk/src/writer/index.js +2 -2
- package/theme/README.md +1 -1
- package/theme/layout/README.md +2 -4
- package/theme/page/README.md +50 -0
- package/theme/styles/README.md +10 -10
- package/theme/styles/css/base/prefers-dark.css +1 -1
- package/theme/styles/css/base/status.css +1 -1
- package/theme/styles/css/color/amber.css +1 -1
- package/theme/styles/css/color/blue.css +1 -1
- package/theme/styles/css/color/cyan.css +1 -1
- package/theme/styles/css/color/emerald.css +1 -1
- package/theme/styles/css/color/fuchsia.css +1 -1
- package/theme/styles/css/color/green.css +1 -1
- package/theme/styles/css/color/indigo.css +1 -1
- package/theme/styles/css/color/lime.css +1 -1
- package/theme/styles/css/color/orange.css +1 -1
- package/theme/styles/css/color/pink.css +1 -1
- package/theme/styles/css/color/purple.css +1 -1
- package/theme/styles/css/color/red.css +1 -1
- package/theme/styles/css/color/rose.css +1 -1
- package/theme/styles/css/color/sky.css +1 -1
- package/theme/styles/css/color/teal.css +1 -1
- package/theme/styles/css/color/violet.css +1 -1
- package/theme/styles/css/color/yellow.css +1 -1
- package/theme/styles/css/neutral/gray.css +1 -1
- package/theme/styles/css/neutral/mauve.css +1 -1
- package/theme/styles/css/neutral/mist.css +1 -1
- package/theme/styles/css/neutral/neutral.css +1 -1
- package/theme/styles/css/neutral/olive.css +1 -1
- package/theme/styles/css/neutral/slate.css +1 -1
- package/theme/styles/css/neutral/stone.css +1 -1
- package/theme/styles/css/neutral/taupe.css +1 -1
- package/theme/styles/css/neutral/zinc.css +1 -1
- package/types/ojiepermana-angular-chart-area.d.ts +126 -63
- package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
- package/types/ojiepermana-angular-chart-core.d.ts +409 -398
- package/types/ojiepermana-angular-chart-line.d.ts +141 -68
- package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
- package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
- package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
- package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
- package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
- package/types/ojiepermana-angular-chart.d.ts +3 -2
- package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
- package/types/ojiepermana-angular-component-alert.d.ts +69 -39
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
- package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
- package/types/ojiepermana-angular-component-badge.d.ts +36 -24
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
- package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
- package/types/ojiepermana-angular-component-button.d.ts +44 -27
- package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
- package/types/ojiepermana-angular-component-card.d.ts +112 -63
- package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
- package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
- package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
- package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
- package/types/ojiepermana-angular-component-command.d.ts +206 -121
- package/types/ojiepermana-angular-component-composer.d.ts +184 -84
- package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
- package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
- package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
- package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
- package/types/ojiepermana-angular-component-editor.d.ts +215 -117
- package/types/ojiepermana-angular-component-empty.d.ts +80 -45
- package/types/ojiepermana-angular-component-form.d.ts +185 -121
- package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
- package/types/ojiepermana-angular-component-icon.d.ts +87 -57
- package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
- package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
- package/types/ojiepermana-angular-component-input.d.ts +27 -17
- package/types/ojiepermana-angular-component-item.d.ts +160 -84
- package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
- package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
- package/types/ojiepermana-angular-component-label.d.ts +19 -11
- package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
- package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
- package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
- package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
- package/types/ojiepermana-angular-component-popover.d.ts +94 -64
- package/types/ojiepermana-angular-component-progress.d.ts +45 -17
- package/types/ojiepermana-angular-component-radio.d.ts +129 -53
- package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
- package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
- package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
- package/types/ojiepermana-angular-component-select.d.ts +94 -77
- package/types/ojiepermana-angular-component-separator.d.ts +26 -14
- package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
- package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
- package/types/ojiepermana-angular-component-slider.d.ts +140 -75
- package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
- package/types/ojiepermana-angular-component-switch.d.ts +97 -40
- package/types/ojiepermana-angular-component-table.d.ts +102 -50
- package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
- package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
- package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
- package/types/ojiepermana-angular-component-toast.d.ts +51 -55
- package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
- package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
- package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
- package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
- package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
- package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
- package/types/ojiepermana-angular-component-utils.d.ts +2 -2
- package/types/ojiepermana-angular-component.d.ts +1 -2
- package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
- package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
- package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
- package/types/ojiepermana-angular-navigation-types.d.ts +121 -125
- package/types/ojiepermana-angular-navigation.d.ts +663 -374
- package/types/ojiepermana-angular-sdk.d.ts +69 -71
- package/types/ojiepermana-angular-theme-component-settings.d.ts +115 -83
- package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
- package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +399 -187
- package/types/ojiepermana-angular-theme-layout.d.ts +201 -113
- package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
- package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
- package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
- package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
- package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
- package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
- package/types/ojiepermana-angular-theme-page.d.ts +7 -5
- package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
- package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
- package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
- package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
- package/types/ojiepermana-angular-theme.d.ts +1 -2
- package/types/ojiepermana-angular.d.ts +5 -5
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-Be3IqzG4.mjs +0 -91
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-Bc7DWK3R.mjs +0 -522
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-DA8VPEn7.mjs +0 -404
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-U2TJTzlW.mjs +0 -466
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-CIUhmytH.mjs +0 -2668
|
@@ -1,45 +1,71 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { cn } from
|
|
4
|
-
import { ShellService } from
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { LayoutService } from '@ojiepermana/angular/theme/layout/services';
|
|
11
|
-
import { LayoutIdentityService, LAYOUT_DESKTOP_NAVIGATION_DATA_ID, LayoutBrand, LayoutUser } from '@ojiepermana/angular/theme/layout/wrapper';
|
|
12
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, booleanAttribute, computed, inject, input } from "@angular/core";
|
|
3
|
+
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
4
|
+
import { SHELL_WINDOW_BRIDGE, ShellService, ShellService as ShellService$1, WEB_SHELL_WINDOW_BRIDGE, createTauriShellWindowBridge, isTauriRuntime, provideShellWindowBridge, provideTauriShellWindowBridge } from "@ojiepermana/angular/theme/shell/services";
|
|
5
|
+
import { SHELL_COLORS, SHELL_COLOR_STORAGE_KEY, SHELL_DEFAULT_COLOR, SHELL_DEFAULT_COLOR as SHELL_DEFAULT_COLOR$1, SHELL_DEFAULT_DEVICE, SHELL_DEFAULT_DEVICE as SHELL_DEFAULT_DEVICE$1, SHELL_DEFAULT_FRAME, SHELL_DEFAULT_FRAME as SHELL_DEFAULT_FRAME$1, SHELL_DEFAULT_MODE, SHELL_DEFAULT_PLATFORM, SHELL_DEFAULT_WINDOW_STATE, SHELL_DEVICES, SHELL_DEVICE_STORAGE_KEY, SHELL_FRAMES, SHELL_FRAME_STORAGE_KEY, SHELL_MODES, SHELL_MODE_DEVICES, SHELL_MODE_STORAGE_KEY, SHELL_PLATFORMS, SHELL_WINDOW_STATES, defaultShellDeviceForMode, isShellColor, isShellDevice, isShellDeviceForMode, isShellFrame, isShellMode, isShellPlatform, isShellWindowState, normalizeShellColor, normalizeShellDevice, normalizeShellFrame, normalizeShellMode, resolveShellDeviceForMode, resolveShellDeviceForMode as resolveShellDeviceForMode$1, resolveShellFrameForMode, resolveShellFrameForMode as resolveShellFrameForMode$1, shellDevicesForMode } from "@ojiepermana/angular/theme/shell/types";
|
|
6
|
+
import { NavigationContainerComponent, NavigationFlyoutComponent, NavigationFooterComponent, NavigationHeaderComponent } from "@ojiepermana/angular/navigation";
|
|
7
|
+
import { NAVIGATION_ADAPTER } from "@ojiepermana/angular/navigation/core";
|
|
8
|
+
import { LayoutService } from "@ojiepermana/angular/theme/layout/services";
|
|
9
|
+
import { LAYOUT_DESKTOP_NAVIGATION_DATA_ID, LayoutBrand, LayoutIdentityService, LayoutUser } from "@ojiepermana/angular/theme/layout/wrapper";
|
|
13
10
|
let shellNavigationFlyoutInstanceId = 0;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
11
|
+
var ShellNavigationFlyoutComponent = class ShellNavigationFlyoutComponent {
|
|
12
|
+
navigation = inject(NAVIGATION_ADAPTER);
|
|
13
|
+
layout = inject(LayoutService, { optional: true });
|
|
14
|
+
identity = inject(LayoutIdentityService, { optional: true });
|
|
15
|
+
enabled = input(true, ...ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []);
|
|
16
|
+
icon = input("apps", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
17
|
+
label = input("Open navigation", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
18
|
+
navigationId = `__shell-navigation-${shellNavigationFlyoutInstanceId += 1}`;
|
|
19
|
+
navigationSource = this.navigation.data(LAYOUT_DESKTOP_NAVIGATION_DATA_ID);
|
|
20
|
+
navigationData = computed(() => this.navigationSource(), ...ngDevMode ? [{ debugName: "navigationData" }] : /* istanbul ignore next */ []);
|
|
21
|
+
showsFlyout = computed(() => this.enabled() && this.navigationData().length > 0, ...ngDevMode ? [{ debugName: "showsFlyout" }] : /* istanbul ignore next */ []);
|
|
22
|
+
appearance = computed(() => this.layout?.appearance() ?? "flat", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
23
|
+
brand = computed(() => this.identity?.brand() ?? null, ...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
24
|
+
user = computed(() => this.identity?.user() ?? null, ...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.0",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: ShellNavigationFlyoutComponent,
|
|
30
|
+
deps: [],
|
|
31
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
32
|
+
});
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
34
|
+
minVersion: "17.0.0",
|
|
35
|
+
version: "22.2.0",
|
|
36
|
+
type: ShellNavigationFlyoutComponent,
|
|
37
|
+
isStandalone: true,
|
|
38
|
+
selector: "ShellNavigationFlyout",
|
|
39
|
+
inputs: {
|
|
40
|
+
enabled: {
|
|
41
|
+
classPropertyName: "enabled",
|
|
42
|
+
publicName: "enabled",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
47
|
+
icon: {
|
|
48
|
+
classPropertyName: "icon",
|
|
49
|
+
publicName: "icon",
|
|
50
|
+
isSignal: true,
|
|
51
|
+
isRequired: false,
|
|
52
|
+
transformFunction: null
|
|
53
|
+
},
|
|
54
|
+
label: {
|
|
55
|
+
classPropertyName: "label",
|
|
56
|
+
publicName: "label",
|
|
57
|
+
isSignal: true,
|
|
58
|
+
isRequired: false,
|
|
59
|
+
transformFunction: null
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
host: {
|
|
63
|
+
properties: { "attr.data-shell-navigation-flyout": "showsFlyout() ? \"\" : null" },
|
|
64
|
+
styleAttribute: "--nav-flyout-floating-width: 100vw; --nav-flyout-floating-max-width: 100vw; --nav-flyout-floating-radius: 0 0 var(--shell-frame-radius) var(--shell-frame-radius);",
|
|
65
|
+
classAttribute: "contents"
|
|
66
|
+
},
|
|
67
|
+
ngImport: i0,
|
|
68
|
+
template: `
|
|
43
69
|
@if (showsFlyout()) {
|
|
44
70
|
<Navigation
|
|
45
71
|
[id]="navigationId"
|
|
@@ -71,26 +97,104 @@ class ShellNavigationFlyoutComponent {
|
|
|
71
97
|
</NavigationFlyout>
|
|
72
98
|
</Navigation>
|
|
73
99
|
}
|
|
74
|
-
`,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
`,
|
|
101
|
+
isInline: true,
|
|
102
|
+
dependencies: [
|
|
103
|
+
{
|
|
104
|
+
kind: "component",
|
|
105
|
+
type: NavigationContainerComponent,
|
|
106
|
+
selector: "Navigation",
|
|
107
|
+
inputs: [
|
|
108
|
+
"id",
|
|
109
|
+
"data-id",
|
|
110
|
+
"data",
|
|
111
|
+
"ariaLabel",
|
|
112
|
+
"compact",
|
|
113
|
+
"collapse-tree",
|
|
114
|
+
"class",
|
|
115
|
+
"itemClass",
|
|
116
|
+
"nav-group-class",
|
|
117
|
+
"activeIds",
|
|
118
|
+
"activeUrl",
|
|
119
|
+
"openedIds"
|
|
120
|
+
],
|
|
121
|
+
outputs: ["openedIdsChange", "itemSelected"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
kind: "component",
|
|
125
|
+
type: NavigationFlyoutComponent,
|
|
126
|
+
selector: "NavigationFlyout",
|
|
127
|
+
inputs: [
|
|
128
|
+
"label",
|
|
129
|
+
"icon",
|
|
130
|
+
"icon-only",
|
|
131
|
+
"icon-position",
|
|
132
|
+
"trigger-variant",
|
|
133
|
+
"trigger-floating",
|
|
134
|
+
"panel-viewport",
|
|
135
|
+
"trigger-class",
|
|
136
|
+
"trigger-button-class",
|
|
137
|
+
"nav-position",
|
|
138
|
+
"nav-type-style",
|
|
139
|
+
"class"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
kind: "component",
|
|
144
|
+
type: NavigationHeaderComponent,
|
|
145
|
+
selector: "NavigationHeader",
|
|
146
|
+
inputs: ["toggle", "class"]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
kind: "component",
|
|
150
|
+
type: NavigationFooterComponent,
|
|
151
|
+
selector: "NavigationFooter",
|
|
152
|
+
inputs: ["class"]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
kind: "component",
|
|
156
|
+
type: LayoutBrand,
|
|
157
|
+
selector: "LayoutBrand",
|
|
158
|
+
inputs: ["brand", "compact"]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
kind: "component",
|
|
162
|
+
type: LayoutUser,
|
|
163
|
+
selector: "LayoutUser",
|
|
164
|
+
inputs: [
|
|
165
|
+
"user",
|
|
166
|
+
"detailed",
|
|
167
|
+
"logoutLabel",
|
|
168
|
+
"logoutIcon"
|
|
169
|
+
],
|
|
170
|
+
outputs: ["logout"]
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
176
|
+
minVersion: "12.0.0",
|
|
177
|
+
version: "22.2.0",
|
|
178
|
+
ngImport: i0,
|
|
179
|
+
type: ShellNavigationFlyoutComponent,
|
|
180
|
+
decorators: [{
|
|
181
|
+
type: Component,
|
|
182
|
+
args: [{
|
|
183
|
+
selector: "ShellNavigationFlyout",
|
|
184
|
+
imports: [
|
|
185
|
+
NavigationContainerComponent,
|
|
186
|
+
NavigationFlyoutComponent,
|
|
187
|
+
NavigationHeaderComponent,
|
|
188
|
+
NavigationFooterComponent,
|
|
189
|
+
LayoutBrand,
|
|
190
|
+
LayoutUser
|
|
191
|
+
],
|
|
192
|
+
host: {
|
|
193
|
+
class: "contents",
|
|
194
|
+
style: "--nav-flyout-floating-width: 100vw; --nav-flyout-floating-max-width: 100vw; --nav-flyout-floating-radius: 0 0 var(--shell-frame-radius) var(--shell-frame-radius);",
|
|
195
|
+
"[attr.data-shell-navigation-flyout]": "showsFlyout() ? \"\" : null"
|
|
196
|
+
},
|
|
197
|
+
template: `
|
|
94
198
|
@if (showsFlyout()) {
|
|
95
199
|
<Navigation
|
|
96
200
|
[id]="navigationId"
|
|
@@ -122,142 +226,225 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
122
226
|
</NavigationFlyout>
|
|
123
227
|
</Navigation>
|
|
124
228
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
229
|
+
`
|
|
230
|
+
}]
|
|
231
|
+
}],
|
|
232
|
+
propDecorators: {
|
|
233
|
+
enabled: [{
|
|
234
|
+
type: i0.Input,
|
|
235
|
+
args: [{
|
|
236
|
+
isSignal: true,
|
|
237
|
+
alias: "enabled",
|
|
238
|
+
required: false
|
|
239
|
+
}]
|
|
240
|
+
}],
|
|
241
|
+
icon: [{
|
|
242
|
+
type: i0.Input,
|
|
243
|
+
args: [{
|
|
244
|
+
isSignal: true,
|
|
245
|
+
alias: "icon",
|
|
246
|
+
required: false
|
|
247
|
+
}]
|
|
248
|
+
}],
|
|
249
|
+
label: [{
|
|
250
|
+
type: i0.Input,
|
|
251
|
+
args: [{
|
|
252
|
+
isSignal: true,
|
|
253
|
+
alias: "label",
|
|
254
|
+
required: false
|
|
255
|
+
}]
|
|
256
|
+
}]
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
var ShellBarComponent = class ShellBarComponent {
|
|
260
|
+
shell = inject(ShellService$1);
|
|
261
|
+
device = input(SHELL_DEFAULT_DEVICE$1, ...ngDevMode ? [{ debugName: "device" }] : /* istanbul ignore next */ []);
|
|
262
|
+
color = input(SHELL_DEFAULT_COLOR$1, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
263
|
+
frame = input(SHELL_DEFAULT_FRAME$1, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
|
|
264
|
+
nativeWindowControls = input(false, {
|
|
265
|
+
...ngDevMode ? { debugName: "nativeWindowControls" } : /* istanbul ignore next */ {},
|
|
266
|
+
transform: booleanAttribute
|
|
267
|
+
});
|
|
268
|
+
drag = input(true, {
|
|
269
|
+
...ngDevMode ? { debugName: "drag" } : /* istanbul ignore next */ {},
|
|
270
|
+
transform: booleanAttribute
|
|
271
|
+
});
|
|
272
|
+
landmark = input(true, {
|
|
273
|
+
...ngDevMode ? { debugName: "landmark" } : /* istanbul ignore next */ {},
|
|
274
|
+
transform: booleanAttribute
|
|
275
|
+
});
|
|
276
|
+
ariaLabel = input("Application title bar", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
277
|
+
minimizeLabel = input("Minimize window", ...ngDevMode ? [{ debugName: "minimizeLabel" }] : /* istanbul ignore next */ []);
|
|
278
|
+
maximizeLabel = input("Maximize window", ...ngDevMode ? [{ debugName: "maximizeLabel" }] : /* istanbul ignore next */ []);
|
|
279
|
+
restoreLabel = input("Restore window", ...ngDevMode ? [{ debugName: "restoreLabel" }] : /* istanbul ignore next */ []);
|
|
280
|
+
closeLabel = input("Close window", ...ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []);
|
|
281
|
+
navigationFlyout = input(true, ...ngDevMode ? [{ debugName: "navigationFlyout" }] : /* istanbul ignore next */ []);
|
|
282
|
+
navigationFlyoutIcon = input("apps", ...ngDevMode ? [{ debugName: "navigationFlyoutIcon" }] : /* istanbul ignore next */ []);
|
|
283
|
+
navigationFlyoutLabel = input("Open navigation", ...ngDevMode ? [{ debugName: "navigationFlyoutLabel" }] : /* istanbul ignore next */ []);
|
|
284
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
285
|
+
maximizeToggleLabel = computed(() => this.shell.isMaximized() ? this.restoreLabel() : this.maximizeLabel(), ...ngDevMode ? [{ debugName: "maximizeToggleLabel" }] : /* istanbul ignore next */ []);
|
|
286
|
+
isMacOs = computed(() => this.device() === "macos", ...ngDevMode ? [{ debugName: "isMacOs" }] : /* istanbul ignore next */ []);
|
|
287
|
+
showsTrafficLights = computed(() => this.isMacOs() && !this.nativeWindowControls(), ...ngDevMode ? [{ debugName: "showsTrafficLights" }] : /* istanbul ignore next */ []);
|
|
288
|
+
showsWindowControls = computed(() => !this.isMacOs() && !this.nativeWindowControls(), ...ngDevMode ? [{ debugName: "showsWindowControls" }] : /* istanbul ignore next */ []);
|
|
289
|
+
reservesTrafficLights = computed(() => this.isMacOs() && this.nativeWindowControls(), ...ngDevMode ? [{ debugName: "reservesTrafficLights" }] : /* istanbul ignore next */ []);
|
|
290
|
+
classes = computed(() => cn("relative z-20 grid h-(--shell-bar-height) min-h-(--shell-bar-height) shrink-0", "grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-(--shell-bar-gap)", "bg-[hsl(var(--shell-bar-background))] px-(--shell-bar-inline)", "text-[hsl(var(--shell-bar-foreground))]", this.frame() === "classic" && "border-b border-[hsl(var(--shell-bar-border))]", this.reservesTrafficLights() && "pl-(--shell-traffic-light-inset)", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
291
|
+
startSlotClasses = computed(() => cn("shell-no-drag flex min-w-0 items-center gap-(--shell-bar-gap)"), ...ngDevMode ? [{ debugName: "startSlotClasses" }] : /* istanbul ignore next */ []);
|
|
292
|
+
endSlotClasses = computed(() => cn("shell-no-drag flex min-w-0 items-center justify-end gap-(--shell-bar-gap)"), ...ngDevMode ? [{ debugName: "endSlotClasses" }] : /* istanbul ignore next */ []);
|
|
293
|
+
titleClasses = computed(() => cn("min-w-0 truncate text-center text-xs font-medium", this.shell.focused() ? "opacity-100" : "opacity-60"), ...ngDevMode ? [{ debugName: "titleClasses" }] : /* istanbul ignore next */ []);
|
|
294
|
+
controlClasses = computed(() => cn("shell-no-drag inline-grid size-(--shell-control-size) shrink-0 place-items-center rounded-sm", "opacity-70 transition-[background-color,opacity] hover:opacity-100", "hover:bg-[hsl(var(--shell-bar-foreground)/0.12)]", "focus-visible:outline-none focus-visible:ring-2", "focus-visible:ring-[hsl(var(--shell-bar-foreground))]", "focus-visible:ring-offset-1 focus-visible:ring-offset-[hsl(var(--shell-bar-background))]"), ...ngDevMode ? [{ debugName: "controlClasses" }] : /* istanbul ignore next */ []);
|
|
295
|
+
trafficLightClasses(control) {
|
|
296
|
+
return cn("shell-no-drag group inline-grid size-(--shell-traffic-light-size) shrink-0", "cursor-pointer place-items-center rounded-full", "ring-1 ring-black/15 transition-colors", "focus-visible:outline-none focus-visible:ring-2", "focus-visible:ring-[hsl(var(--shell-bar-foreground))]", "focus-visible:ring-offset-1 focus-visible:ring-offset-[hsl(var(--shell-bar-background))]", control === "close" && "bg-[#ff5f57] hover:bg-[#e0443e]", control === "minimize" && "bg-[#febc2e] hover:bg-[#dea123]", control === "zoom" && "bg-[#28c840] hover:bg-[#1aad2b]");
|
|
297
|
+
}
|
|
298
|
+
trafficGlyphClasses() {
|
|
299
|
+
return cn("size-(--shell-traffic-light-size) opacity-0 transition-opacity", "group-hover:opacity-70 group-focus-visible:opacity-70", "stroke-black/70 [stroke-linecap:round] [stroke-width:1.5] [fill:none]");
|
|
300
|
+
}
|
|
301
|
+
closeControlClasses = computed(() => cn(this.controlClasses(), "hover:bg-destructive hover:text-destructive-foreground"), ...ngDevMode ? [{ debugName: "closeControlClasses" }] : /* istanbul ignore next */ []);
|
|
302
|
+
minimize() {
|
|
303
|
+
this.shell.minimize();
|
|
304
|
+
}
|
|
305
|
+
toggleMaximize() {
|
|
306
|
+
this.shell.toggleMaximize();
|
|
307
|
+
}
|
|
308
|
+
close() {
|
|
309
|
+
this.shell.close();
|
|
310
|
+
}
|
|
311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
312
|
+
minVersion: "12.0.0",
|
|
313
|
+
version: "22.2.0",
|
|
314
|
+
ngImport: i0,
|
|
315
|
+
type: ShellBarComponent,
|
|
316
|
+
deps: [],
|
|
317
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
318
|
+
});
|
|
319
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
320
|
+
minVersion: "17.0.0",
|
|
321
|
+
version: "22.2.0",
|
|
322
|
+
type: ShellBarComponent,
|
|
323
|
+
isStandalone: true,
|
|
324
|
+
selector: "ShellBar",
|
|
325
|
+
inputs: {
|
|
326
|
+
device: {
|
|
327
|
+
classPropertyName: "device",
|
|
328
|
+
publicName: "device",
|
|
329
|
+
isSignal: true,
|
|
330
|
+
isRequired: false,
|
|
331
|
+
transformFunction: null
|
|
332
|
+
},
|
|
333
|
+
color: {
|
|
334
|
+
classPropertyName: "color",
|
|
335
|
+
publicName: "color",
|
|
336
|
+
isSignal: true,
|
|
337
|
+
isRequired: false,
|
|
338
|
+
transformFunction: null
|
|
339
|
+
},
|
|
340
|
+
frame: {
|
|
341
|
+
classPropertyName: "frame",
|
|
342
|
+
publicName: "frame",
|
|
343
|
+
isSignal: true,
|
|
344
|
+
isRequired: false,
|
|
345
|
+
transformFunction: null
|
|
346
|
+
},
|
|
347
|
+
nativeWindowControls: {
|
|
348
|
+
classPropertyName: "nativeWindowControls",
|
|
349
|
+
publicName: "nativeWindowControls",
|
|
350
|
+
isSignal: true,
|
|
351
|
+
isRequired: false,
|
|
352
|
+
transformFunction: null
|
|
353
|
+
},
|
|
354
|
+
drag: {
|
|
355
|
+
classPropertyName: "drag",
|
|
356
|
+
publicName: "drag",
|
|
357
|
+
isSignal: true,
|
|
358
|
+
isRequired: false,
|
|
359
|
+
transformFunction: null
|
|
360
|
+
},
|
|
361
|
+
landmark: {
|
|
362
|
+
classPropertyName: "landmark",
|
|
363
|
+
publicName: "landmark",
|
|
364
|
+
isSignal: true,
|
|
365
|
+
isRequired: false,
|
|
366
|
+
transformFunction: null
|
|
367
|
+
},
|
|
368
|
+
ariaLabel: {
|
|
369
|
+
classPropertyName: "ariaLabel",
|
|
370
|
+
publicName: "ariaLabel",
|
|
371
|
+
isSignal: true,
|
|
372
|
+
isRequired: false,
|
|
373
|
+
transformFunction: null
|
|
374
|
+
},
|
|
375
|
+
minimizeLabel: {
|
|
376
|
+
classPropertyName: "minimizeLabel",
|
|
377
|
+
publicName: "minimizeLabel",
|
|
378
|
+
isSignal: true,
|
|
379
|
+
isRequired: false,
|
|
380
|
+
transformFunction: null
|
|
381
|
+
},
|
|
382
|
+
maximizeLabel: {
|
|
383
|
+
classPropertyName: "maximizeLabel",
|
|
384
|
+
publicName: "maximizeLabel",
|
|
385
|
+
isSignal: true,
|
|
386
|
+
isRequired: false,
|
|
387
|
+
transformFunction: null
|
|
388
|
+
},
|
|
389
|
+
restoreLabel: {
|
|
390
|
+
classPropertyName: "restoreLabel",
|
|
391
|
+
publicName: "restoreLabel",
|
|
392
|
+
isSignal: true,
|
|
393
|
+
isRequired: false,
|
|
394
|
+
transformFunction: null
|
|
395
|
+
},
|
|
396
|
+
closeLabel: {
|
|
397
|
+
classPropertyName: "closeLabel",
|
|
398
|
+
publicName: "closeLabel",
|
|
399
|
+
isSignal: true,
|
|
400
|
+
isRequired: false,
|
|
401
|
+
transformFunction: null
|
|
402
|
+
},
|
|
403
|
+
navigationFlyout: {
|
|
404
|
+
classPropertyName: "navigationFlyout",
|
|
405
|
+
publicName: "navigationFlyout",
|
|
406
|
+
isSignal: true,
|
|
407
|
+
isRequired: false,
|
|
408
|
+
transformFunction: null
|
|
409
|
+
},
|
|
410
|
+
navigationFlyoutIcon: {
|
|
411
|
+
classPropertyName: "navigationFlyoutIcon",
|
|
412
|
+
publicName: "navigationFlyoutIcon",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
navigationFlyoutLabel: {
|
|
418
|
+
classPropertyName: "navigationFlyoutLabel",
|
|
419
|
+
publicName: "navigationFlyoutLabel",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
class: {
|
|
425
|
+
classPropertyName: "class",
|
|
426
|
+
publicName: "class",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
host: {
|
|
433
|
+
attributes: { "data-shell-bar": "" },
|
|
434
|
+
properties: {
|
|
435
|
+
"class": "classes()",
|
|
436
|
+
"attr.data-shell-device": "device()",
|
|
437
|
+
"attr.data-shell-color": "color()",
|
|
438
|
+
"attr.data-shell-frame": "frame()",
|
|
439
|
+
"attr.data-tauri-drag-region": "drag() ? \"\" : null",
|
|
440
|
+
"attr.data-shell-window": "shell.windowState()",
|
|
441
|
+
"attr.data-shell-focused": "shell.focused()",
|
|
442
|
+
"attr.role": "landmark() ? \"banner\" : null",
|
|
443
|
+
"attr.aria-label": "landmark() ? ariaLabel() || null : null"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
ngImport: i0,
|
|
447
|
+
template: `
|
|
261
448
|
<div data-shell-bar-start [class]="startSlotClasses()">
|
|
262
449
|
@if (!isMacOs()) {
|
|
263
450
|
<ShellNavigationFlyout
|
|
@@ -412,26 +599,43 @@ class ShellBarComponent {
|
|
|
412
599
|
</button>
|
|
413
600
|
}
|
|
414
601
|
</div>
|
|
415
|
-
`,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
602
|
+
`,
|
|
603
|
+
isInline: true,
|
|
604
|
+
dependencies: [{
|
|
605
|
+
kind: "component",
|
|
606
|
+
type: ShellNavigationFlyoutComponent,
|
|
607
|
+
selector: "ShellNavigationFlyout",
|
|
608
|
+
inputs: [
|
|
609
|
+
"enabled",
|
|
610
|
+
"icon",
|
|
611
|
+
"label"
|
|
612
|
+
]
|
|
613
|
+
}]
|
|
614
|
+
});
|
|
615
|
+
};
|
|
616
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
617
|
+
minVersion: "12.0.0",
|
|
618
|
+
version: "22.2.0",
|
|
619
|
+
ngImport: i0,
|
|
620
|
+
type: ShellBarComponent,
|
|
621
|
+
decorators: [{
|
|
622
|
+
type: Component,
|
|
623
|
+
args: [{
|
|
624
|
+
selector: "ShellBar",
|
|
625
|
+
imports: [ShellNavigationFlyoutComponent],
|
|
626
|
+
host: {
|
|
627
|
+
"[class]": "classes()",
|
|
628
|
+
"data-shell-bar": "",
|
|
629
|
+
"[attr.data-shell-device]": "device()",
|
|
630
|
+
"[attr.data-shell-color]": "color()",
|
|
631
|
+
"[attr.data-shell-frame]": "frame()",
|
|
632
|
+
"[attr.data-tauri-drag-region]": "drag() ? \"\" : null",
|
|
633
|
+
"[attr.data-shell-window]": "shell.windowState()",
|
|
634
|
+
"[attr.data-shell-focused]": "shell.focused()",
|
|
635
|
+
"[attr.role]": "landmark() ? \"banner\" : null",
|
|
636
|
+
"[attr.aria-label]": "landmark() ? ariaLabel() || null : null"
|
|
637
|
+
},
|
|
638
|
+
template: `
|
|
435
639
|
<div data-shell-bar-start [class]="startSlotClasses()">
|
|
436
640
|
@if (!isMacOs()) {
|
|
437
641
|
<ShellNavigationFlyout
|
|
@@ -586,130 +790,310 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
586
790
|
</button>
|
|
587
791
|
}
|
|
588
792
|
</div>
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
793
|
+
`
|
|
794
|
+
}]
|
|
795
|
+
}],
|
|
796
|
+
propDecorators: {
|
|
797
|
+
device: [{
|
|
798
|
+
type: i0.Input,
|
|
799
|
+
args: [{
|
|
800
|
+
isSignal: true,
|
|
801
|
+
alias: "device",
|
|
802
|
+
required: false
|
|
803
|
+
}]
|
|
804
|
+
}],
|
|
805
|
+
color: [{
|
|
806
|
+
type: i0.Input,
|
|
807
|
+
args: [{
|
|
808
|
+
isSignal: true,
|
|
809
|
+
alias: "color",
|
|
810
|
+
required: false
|
|
811
|
+
}]
|
|
812
|
+
}],
|
|
813
|
+
frame: [{
|
|
814
|
+
type: i0.Input,
|
|
815
|
+
args: [{
|
|
816
|
+
isSignal: true,
|
|
817
|
+
alias: "frame",
|
|
818
|
+
required: false
|
|
819
|
+
}]
|
|
820
|
+
}],
|
|
821
|
+
nativeWindowControls: [{
|
|
822
|
+
type: i0.Input,
|
|
823
|
+
args: [{
|
|
824
|
+
isSignal: true,
|
|
825
|
+
alias: "nativeWindowControls",
|
|
826
|
+
required: false
|
|
827
|
+
}]
|
|
828
|
+
}],
|
|
829
|
+
drag: [{
|
|
830
|
+
type: i0.Input,
|
|
831
|
+
args: [{
|
|
832
|
+
isSignal: true,
|
|
833
|
+
alias: "drag",
|
|
834
|
+
required: false
|
|
835
|
+
}]
|
|
836
|
+
}],
|
|
837
|
+
landmark: [{
|
|
838
|
+
type: i0.Input,
|
|
839
|
+
args: [{
|
|
840
|
+
isSignal: true,
|
|
841
|
+
alias: "landmark",
|
|
842
|
+
required: false
|
|
843
|
+
}]
|
|
844
|
+
}],
|
|
845
|
+
ariaLabel: [{
|
|
846
|
+
type: i0.Input,
|
|
847
|
+
args: [{
|
|
848
|
+
isSignal: true,
|
|
849
|
+
alias: "ariaLabel",
|
|
850
|
+
required: false
|
|
851
|
+
}]
|
|
852
|
+
}],
|
|
853
|
+
minimizeLabel: [{
|
|
854
|
+
type: i0.Input,
|
|
855
|
+
args: [{
|
|
856
|
+
isSignal: true,
|
|
857
|
+
alias: "minimizeLabel",
|
|
858
|
+
required: false
|
|
859
|
+
}]
|
|
860
|
+
}],
|
|
861
|
+
maximizeLabel: [{
|
|
862
|
+
type: i0.Input,
|
|
863
|
+
args: [{
|
|
864
|
+
isSignal: true,
|
|
865
|
+
alias: "maximizeLabel",
|
|
866
|
+
required: false
|
|
867
|
+
}]
|
|
868
|
+
}],
|
|
869
|
+
restoreLabel: [{
|
|
870
|
+
type: i0.Input,
|
|
871
|
+
args: [{
|
|
872
|
+
isSignal: true,
|
|
873
|
+
alias: "restoreLabel",
|
|
874
|
+
required: false
|
|
875
|
+
}]
|
|
876
|
+
}],
|
|
877
|
+
closeLabel: [{
|
|
878
|
+
type: i0.Input,
|
|
879
|
+
args: [{
|
|
880
|
+
isSignal: true,
|
|
881
|
+
alias: "closeLabel",
|
|
882
|
+
required: false
|
|
883
|
+
}]
|
|
884
|
+
}],
|
|
885
|
+
navigationFlyout: [{
|
|
886
|
+
type: i0.Input,
|
|
887
|
+
args: [{
|
|
888
|
+
isSignal: true,
|
|
889
|
+
alias: "navigationFlyout",
|
|
890
|
+
required: false
|
|
891
|
+
}]
|
|
892
|
+
}],
|
|
893
|
+
navigationFlyoutIcon: [{
|
|
894
|
+
type: i0.Input,
|
|
895
|
+
args: [{
|
|
896
|
+
isSignal: true,
|
|
897
|
+
alias: "navigationFlyoutIcon",
|
|
898
|
+
required: false
|
|
899
|
+
}]
|
|
900
|
+
}],
|
|
901
|
+
navigationFlyoutLabel: [{
|
|
902
|
+
type: i0.Input,
|
|
903
|
+
args: [{
|
|
904
|
+
isSignal: true,
|
|
905
|
+
alias: "navigationFlyoutLabel",
|
|
906
|
+
required: false
|
|
907
|
+
}]
|
|
908
|
+
}],
|
|
909
|
+
class: [{
|
|
910
|
+
type: i0.Input,
|
|
911
|
+
args: [{
|
|
912
|
+
isSignal: true,
|
|
913
|
+
alias: "class",
|
|
914
|
+
required: false
|
|
915
|
+
}]
|
|
916
|
+
}]
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
var ShellComponent = class ShellComponent {
|
|
920
|
+
shell = inject(ShellService$1);
|
|
921
|
+
mode = input(null, ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
922
|
+
device = input(null, ...ngDevMode ? [{ debugName: "device" }] : /* istanbul ignore next */ []);
|
|
923
|
+
color = input(null, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
924
|
+
frame = input(null, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
|
|
925
|
+
nativeWindowControls = input(false, {
|
|
926
|
+
...ngDevMode ? { debugName: "nativeWindowControls" } : /* istanbul ignore next */ {},
|
|
927
|
+
transform: booleanAttribute
|
|
928
|
+
});
|
|
929
|
+
drag = input(true, {
|
|
930
|
+
...ngDevMode ? { debugName: "drag" } : /* istanbul ignore next */ {},
|
|
931
|
+
transform: booleanAttribute
|
|
932
|
+
});
|
|
933
|
+
landmark = input(true, {
|
|
934
|
+
...ngDevMode ? { debugName: "landmark" } : /* istanbul ignore next */ {},
|
|
935
|
+
transform: booleanAttribute
|
|
936
|
+
});
|
|
937
|
+
barAriaLabel = input("Application title bar", ...ngDevMode ? [{ debugName: "barAriaLabel" }] : /* istanbul ignore next */ []);
|
|
938
|
+
minimizeLabel = input("Minimize window", ...ngDevMode ? [{ debugName: "minimizeLabel" }] : /* istanbul ignore next */ []);
|
|
939
|
+
maximizeLabel = input("Maximize window", ...ngDevMode ? [{ debugName: "maximizeLabel" }] : /* istanbul ignore next */ []);
|
|
940
|
+
restoreLabel = input("Restore window", ...ngDevMode ? [{ debugName: "restoreLabel" }] : /* istanbul ignore next */ []);
|
|
941
|
+
closeLabel = input("Close window", ...ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []);
|
|
942
|
+
navigationFlyout = input(true, {
|
|
943
|
+
...ngDevMode ? { debugName: "navigationFlyout" } : /* istanbul ignore next */ {},
|
|
944
|
+
transform: booleanAttribute
|
|
945
|
+
});
|
|
946
|
+
navigationFlyoutIcon = input("apps", ...ngDevMode ? [{ debugName: "navigationFlyoutIcon" }] : /* istanbul ignore next */ []);
|
|
947
|
+
navigationFlyoutLabel = input("Open navigation", ...ngDevMode ? [{ debugName: "navigationFlyoutLabel" }] : /* istanbul ignore next */ []);
|
|
948
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
949
|
+
resolvedMode = computed(() => this.mode() ?? this.shell.mode(), ...ngDevMode ? [{ debugName: "resolvedMode" }] : /* istanbul ignore next */ []);
|
|
950
|
+
resolvedDevice = computed(() => resolveShellDeviceForMode$1(this.resolvedMode(), this.device() ?? this.shell.device()), ...ngDevMode ? [{ debugName: "resolvedDevice" }] : /* istanbul ignore next */ []);
|
|
951
|
+
resolvedColor = computed(() => this.color() ?? this.shell.color(), ...ngDevMode ? [{ debugName: "resolvedColor" }] : /* istanbul ignore next */ []);
|
|
952
|
+
resolvedFrame = computed(() => resolveShellFrameForMode$1(this.resolvedMode(), this.frame() ?? this.shell.frame()), ...ngDevMode ? [{ debugName: "resolvedFrame" }] : /* istanbul ignore next */ []);
|
|
953
|
+
showsBar = computed(() => this.resolvedMode() === "desktop", ...ngDevMode ? [{ debugName: "showsBar" }] : /* istanbul ignore next */ []);
|
|
954
|
+
hostClasses = computed(() => cn("relative isolate flex h-dvh w-full min-w-0 flex-col overflow-hidden text-foreground", this.showsBar() && this.drag() && "shell-drag-region", this.resolvedColor() === "sync" || this.resolvedFrame() === "modern" ? "bg-[hsl(var(--shell-bar-background))]" : "bg-layout-canvas", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
955
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
956
|
+
minVersion: "12.0.0",
|
|
957
|
+
version: "22.2.0",
|
|
958
|
+
ngImport: i0,
|
|
959
|
+
type: ShellComponent,
|
|
960
|
+
deps: [],
|
|
961
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
962
|
+
});
|
|
963
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
964
|
+
minVersion: "17.0.0",
|
|
965
|
+
version: "22.2.0",
|
|
966
|
+
type: ShellComponent,
|
|
967
|
+
isStandalone: true,
|
|
968
|
+
selector: "Shell",
|
|
969
|
+
inputs: {
|
|
970
|
+
mode: {
|
|
971
|
+
classPropertyName: "mode",
|
|
972
|
+
publicName: "mode",
|
|
973
|
+
isSignal: true,
|
|
974
|
+
isRequired: false,
|
|
975
|
+
transformFunction: null
|
|
976
|
+
},
|
|
977
|
+
device: {
|
|
978
|
+
classPropertyName: "device",
|
|
979
|
+
publicName: "device",
|
|
980
|
+
isSignal: true,
|
|
981
|
+
isRequired: false,
|
|
982
|
+
transformFunction: null
|
|
983
|
+
},
|
|
984
|
+
color: {
|
|
985
|
+
classPropertyName: "color",
|
|
986
|
+
publicName: "color",
|
|
987
|
+
isSignal: true,
|
|
988
|
+
isRequired: false,
|
|
989
|
+
transformFunction: null
|
|
990
|
+
},
|
|
991
|
+
frame: {
|
|
992
|
+
classPropertyName: "frame",
|
|
993
|
+
publicName: "frame",
|
|
994
|
+
isSignal: true,
|
|
995
|
+
isRequired: false,
|
|
996
|
+
transformFunction: null
|
|
997
|
+
},
|
|
998
|
+
nativeWindowControls: {
|
|
999
|
+
classPropertyName: "nativeWindowControls",
|
|
1000
|
+
publicName: "nativeWindowControls",
|
|
1001
|
+
isSignal: true,
|
|
1002
|
+
isRequired: false,
|
|
1003
|
+
transformFunction: null
|
|
1004
|
+
},
|
|
1005
|
+
drag: {
|
|
1006
|
+
classPropertyName: "drag",
|
|
1007
|
+
publicName: "drag",
|
|
1008
|
+
isSignal: true,
|
|
1009
|
+
isRequired: false,
|
|
1010
|
+
transformFunction: null
|
|
1011
|
+
},
|
|
1012
|
+
landmark: {
|
|
1013
|
+
classPropertyName: "landmark",
|
|
1014
|
+
publicName: "landmark",
|
|
1015
|
+
isSignal: true,
|
|
1016
|
+
isRequired: false,
|
|
1017
|
+
transformFunction: null
|
|
1018
|
+
},
|
|
1019
|
+
barAriaLabel: {
|
|
1020
|
+
classPropertyName: "barAriaLabel",
|
|
1021
|
+
publicName: "barAriaLabel",
|
|
1022
|
+
isSignal: true,
|
|
1023
|
+
isRequired: false,
|
|
1024
|
+
transformFunction: null
|
|
1025
|
+
},
|
|
1026
|
+
minimizeLabel: {
|
|
1027
|
+
classPropertyName: "minimizeLabel",
|
|
1028
|
+
publicName: "minimizeLabel",
|
|
1029
|
+
isSignal: true,
|
|
1030
|
+
isRequired: false,
|
|
1031
|
+
transformFunction: null
|
|
1032
|
+
},
|
|
1033
|
+
maximizeLabel: {
|
|
1034
|
+
classPropertyName: "maximizeLabel",
|
|
1035
|
+
publicName: "maximizeLabel",
|
|
1036
|
+
isSignal: true,
|
|
1037
|
+
isRequired: false,
|
|
1038
|
+
transformFunction: null
|
|
1039
|
+
},
|
|
1040
|
+
restoreLabel: {
|
|
1041
|
+
classPropertyName: "restoreLabel",
|
|
1042
|
+
publicName: "restoreLabel",
|
|
1043
|
+
isSignal: true,
|
|
1044
|
+
isRequired: false,
|
|
1045
|
+
transformFunction: null
|
|
1046
|
+
},
|
|
1047
|
+
closeLabel: {
|
|
1048
|
+
classPropertyName: "closeLabel",
|
|
1049
|
+
publicName: "closeLabel",
|
|
1050
|
+
isSignal: true,
|
|
1051
|
+
isRequired: false,
|
|
1052
|
+
transformFunction: null
|
|
1053
|
+
},
|
|
1054
|
+
navigationFlyout: {
|
|
1055
|
+
classPropertyName: "navigationFlyout",
|
|
1056
|
+
publicName: "navigationFlyout",
|
|
1057
|
+
isSignal: true,
|
|
1058
|
+
isRequired: false,
|
|
1059
|
+
transformFunction: null
|
|
1060
|
+
},
|
|
1061
|
+
navigationFlyoutIcon: {
|
|
1062
|
+
classPropertyName: "navigationFlyoutIcon",
|
|
1063
|
+
publicName: "navigationFlyoutIcon",
|
|
1064
|
+
isSignal: true,
|
|
1065
|
+
isRequired: false,
|
|
1066
|
+
transformFunction: null
|
|
1067
|
+
},
|
|
1068
|
+
navigationFlyoutLabel: {
|
|
1069
|
+
classPropertyName: "navigationFlyoutLabel",
|
|
1070
|
+
publicName: "navigationFlyoutLabel",
|
|
1071
|
+
isSignal: true,
|
|
1072
|
+
isRequired: false,
|
|
1073
|
+
transformFunction: null
|
|
1074
|
+
},
|
|
1075
|
+
class: {
|
|
1076
|
+
classPropertyName: "class",
|
|
1077
|
+
publicName: "class",
|
|
1078
|
+
isSignal: true,
|
|
1079
|
+
isRequired: false,
|
|
1080
|
+
transformFunction: null
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
host: {
|
|
1084
|
+
attributes: { "data-shell-root": "" },
|
|
1085
|
+
properties: {
|
|
1086
|
+
"class": "hostClasses()",
|
|
1087
|
+
"attr.data-shell-mode": "resolvedMode()",
|
|
1088
|
+
"attr.data-shell-device": "resolvedDevice()",
|
|
1089
|
+
"attr.data-shell-color": "resolvedColor()",
|
|
1090
|
+
"attr.data-shell-frame": "resolvedFrame()",
|
|
1091
|
+
"attr.data-shell-platform": "shell.platform",
|
|
1092
|
+
"attr.data-shell-window": "shell.windowState()"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
ngImport: i0,
|
|
1096
|
+
template: `
|
|
713
1097
|
@if (showsBar() && drag()) {
|
|
714
1098
|
<div
|
|
715
1099
|
aria-hidden="true"
|
|
@@ -743,24 +1127,53 @@ class ShellComponent {
|
|
|
743
1127
|
}
|
|
744
1128
|
|
|
745
1129
|
<ng-content />
|
|
746
|
-
`,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
1130
|
+
`,
|
|
1131
|
+
isInline: true,
|
|
1132
|
+
dependencies: [{
|
|
1133
|
+
kind: "component",
|
|
1134
|
+
type: ShellBarComponent,
|
|
1135
|
+
selector: "ShellBar",
|
|
1136
|
+
inputs: [
|
|
1137
|
+
"device",
|
|
1138
|
+
"color",
|
|
1139
|
+
"frame",
|
|
1140
|
+
"nativeWindowControls",
|
|
1141
|
+
"drag",
|
|
1142
|
+
"landmark",
|
|
1143
|
+
"ariaLabel",
|
|
1144
|
+
"minimizeLabel",
|
|
1145
|
+
"maximizeLabel",
|
|
1146
|
+
"restoreLabel",
|
|
1147
|
+
"closeLabel",
|
|
1148
|
+
"navigationFlyout",
|
|
1149
|
+
"navigationFlyoutIcon",
|
|
1150
|
+
"navigationFlyoutLabel",
|
|
1151
|
+
"class"
|
|
1152
|
+
]
|
|
1153
|
+
}]
|
|
1154
|
+
});
|
|
1155
|
+
};
|
|
1156
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1157
|
+
minVersion: "12.0.0",
|
|
1158
|
+
version: "22.2.0",
|
|
1159
|
+
ngImport: i0,
|
|
1160
|
+
type: ShellComponent,
|
|
1161
|
+
decorators: [{
|
|
1162
|
+
type: Component,
|
|
1163
|
+
args: [{
|
|
1164
|
+
selector: "Shell",
|
|
1165
|
+
imports: [ShellBarComponent],
|
|
1166
|
+
host: {
|
|
1167
|
+
"[class]": "hostClasses()",
|
|
1168
|
+
"data-shell-root": "",
|
|
1169
|
+
"[attr.data-shell-mode]": "resolvedMode()",
|
|
1170
|
+
"[attr.data-shell-device]": "resolvedDevice()",
|
|
1171
|
+
"[attr.data-shell-color]": "resolvedColor()",
|
|
1172
|
+
"[attr.data-shell-frame]": "resolvedFrame()",
|
|
1173
|
+
"[attr.data-shell-platform]": "shell.platform",
|
|
1174
|
+
"[attr.data-shell-window]": "shell.windowState()"
|
|
1175
|
+
},
|
|
1176
|
+
template: `
|
|
764
1177
|
@if (showsBar() && drag()) {
|
|
765
1178
|
<div
|
|
766
1179
|
aria-hidden="true"
|
|
@@ -794,22 +1207,138 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
794
1207
|
}
|
|
795
1208
|
|
|
796
1209
|
<ng-content />
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1210
|
+
`
|
|
1211
|
+
}]
|
|
1212
|
+
}],
|
|
1213
|
+
propDecorators: {
|
|
1214
|
+
mode: [{
|
|
1215
|
+
type: i0.Input,
|
|
1216
|
+
args: [{
|
|
1217
|
+
isSignal: true,
|
|
1218
|
+
alias: "mode",
|
|
1219
|
+
required: false
|
|
1220
|
+
}]
|
|
1221
|
+
}],
|
|
1222
|
+
device: [{
|
|
1223
|
+
type: i0.Input,
|
|
1224
|
+
args: [{
|
|
1225
|
+
isSignal: true,
|
|
1226
|
+
alias: "device",
|
|
1227
|
+
required: false
|
|
1228
|
+
}]
|
|
1229
|
+
}],
|
|
1230
|
+
color: [{
|
|
1231
|
+
type: i0.Input,
|
|
1232
|
+
args: [{
|
|
1233
|
+
isSignal: true,
|
|
1234
|
+
alias: "color",
|
|
1235
|
+
required: false
|
|
1236
|
+
}]
|
|
1237
|
+
}],
|
|
1238
|
+
frame: [{
|
|
1239
|
+
type: i0.Input,
|
|
1240
|
+
args: [{
|
|
1241
|
+
isSignal: true,
|
|
1242
|
+
alias: "frame",
|
|
1243
|
+
required: false
|
|
1244
|
+
}]
|
|
1245
|
+
}],
|
|
1246
|
+
nativeWindowControls: [{
|
|
1247
|
+
type: i0.Input,
|
|
1248
|
+
args: [{
|
|
1249
|
+
isSignal: true,
|
|
1250
|
+
alias: "nativeWindowControls",
|
|
1251
|
+
required: false
|
|
1252
|
+
}]
|
|
1253
|
+
}],
|
|
1254
|
+
drag: [{
|
|
1255
|
+
type: i0.Input,
|
|
1256
|
+
args: [{
|
|
1257
|
+
isSignal: true,
|
|
1258
|
+
alias: "drag",
|
|
1259
|
+
required: false
|
|
1260
|
+
}]
|
|
1261
|
+
}],
|
|
1262
|
+
landmark: [{
|
|
1263
|
+
type: i0.Input,
|
|
1264
|
+
args: [{
|
|
1265
|
+
isSignal: true,
|
|
1266
|
+
alias: "landmark",
|
|
1267
|
+
required: false
|
|
1268
|
+
}]
|
|
1269
|
+
}],
|
|
1270
|
+
barAriaLabel: [{
|
|
1271
|
+
type: i0.Input,
|
|
1272
|
+
args: [{
|
|
1273
|
+
isSignal: true,
|
|
1274
|
+
alias: "barAriaLabel",
|
|
1275
|
+
required: false
|
|
1276
|
+
}]
|
|
1277
|
+
}],
|
|
1278
|
+
minimizeLabel: [{
|
|
1279
|
+
type: i0.Input,
|
|
1280
|
+
args: [{
|
|
1281
|
+
isSignal: true,
|
|
1282
|
+
alias: "minimizeLabel",
|
|
1283
|
+
required: false
|
|
1284
|
+
}]
|
|
1285
|
+
}],
|
|
1286
|
+
maximizeLabel: [{
|
|
1287
|
+
type: i0.Input,
|
|
1288
|
+
args: [{
|
|
1289
|
+
isSignal: true,
|
|
1290
|
+
alias: "maximizeLabel",
|
|
1291
|
+
required: false
|
|
1292
|
+
}]
|
|
1293
|
+
}],
|
|
1294
|
+
restoreLabel: [{
|
|
1295
|
+
type: i0.Input,
|
|
1296
|
+
args: [{
|
|
1297
|
+
isSignal: true,
|
|
1298
|
+
alias: "restoreLabel",
|
|
1299
|
+
required: false
|
|
1300
|
+
}]
|
|
1301
|
+
}],
|
|
1302
|
+
closeLabel: [{
|
|
1303
|
+
type: i0.Input,
|
|
1304
|
+
args: [{
|
|
1305
|
+
isSignal: true,
|
|
1306
|
+
alias: "closeLabel",
|
|
1307
|
+
required: false
|
|
1308
|
+
}]
|
|
1309
|
+
}],
|
|
1310
|
+
navigationFlyout: [{
|
|
1311
|
+
type: i0.Input,
|
|
1312
|
+
args: [{
|
|
1313
|
+
isSignal: true,
|
|
1314
|
+
alias: "navigationFlyout",
|
|
1315
|
+
required: false
|
|
1316
|
+
}]
|
|
1317
|
+
}],
|
|
1318
|
+
navigationFlyoutIcon: [{
|
|
1319
|
+
type: i0.Input,
|
|
1320
|
+
args: [{
|
|
1321
|
+
isSignal: true,
|
|
1322
|
+
alias: "navigationFlyoutIcon",
|
|
1323
|
+
required: false
|
|
1324
|
+
}]
|
|
1325
|
+
}],
|
|
1326
|
+
navigationFlyoutLabel: [{
|
|
1327
|
+
type: i0.Input,
|
|
1328
|
+
args: [{
|
|
1329
|
+
isSignal: true,
|
|
1330
|
+
alias: "navigationFlyoutLabel",
|
|
1331
|
+
required: false
|
|
1332
|
+
}]
|
|
1333
|
+
}],
|
|
1334
|
+
class: [{
|
|
1335
|
+
type: i0.Input,
|
|
1336
|
+
args: [{
|
|
1337
|
+
isSignal: true,
|
|
1338
|
+
alias: "class",
|
|
1339
|
+
required: false
|
|
1340
|
+
}]
|
|
1341
|
+
}]
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
export { SHELL_COLORS, SHELL_COLOR_STORAGE_KEY, SHELL_DEFAULT_COLOR, SHELL_DEFAULT_DEVICE, SHELL_DEFAULT_FRAME, SHELL_DEFAULT_MODE, SHELL_DEFAULT_PLATFORM, SHELL_DEFAULT_WINDOW_STATE, SHELL_DEVICES, SHELL_DEVICE_STORAGE_KEY, SHELL_FRAMES, SHELL_FRAME_STORAGE_KEY, SHELL_MODES, SHELL_MODE_DEVICES, SHELL_MODE_STORAGE_KEY, SHELL_PLATFORMS, SHELL_WINDOW_BRIDGE, SHELL_WINDOW_STATES, ShellComponent, ShellService, WEB_SHELL_WINDOW_BRIDGE, createTauriShellWindowBridge, defaultShellDeviceForMode, isShellColor, isShellDevice, isShellDeviceForMode, isShellFrame, isShellMode, isShellPlatform, isShellWindowState, isTauriRuntime, normalizeShellColor, normalizeShellDevice, normalizeShellFrame, normalizeShellMode, provideShellWindowBridge, provideTauriShellWindowBridge, resolveShellDeviceForMode, resolveShellFrameForMode, shellDevicesForMode };
|