@cloudfrogger/goodui 0.0.62 → 0.0.64
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/ai/catalog/components/good-app-layout.json +2 -0
- package/ai/catalog/components/good-main-menu.json +5 -3
- package/ai/catalog/components/good-search.json +1 -1
- package/ai/catalog/index.json +3 -3
- package/ai/guides/component-discovery.md +2 -0
- package/ai/guides/layout.md +2 -0
- package/ai/manifest.json +2 -2
- package/ai/skill/goodui/SKILL.md +1 -1
- package/angular/projects/goodui/package.json +1 -1
- package/angular/projects/goodui/src/lib/actions.ts +7 -5
- package/angular/projects/goodui/src/lib/app-layout.ts +7 -2
- package/angular/projects/goodui/src/lib/topbar.ts +3 -2
- package/design.md +2 -2
- package/fesm2022/cloudfrogger-goodui.mjs +32 -18
- package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
- package/guides/components/main-menu.md +17 -5
- package/guides/components/search.md +45 -3
- package/guides/components/topbar.md +7 -1
- package/guides/contributing/design-to-code.md +4 -0
- package/guides/layout/app-layout.md +18 -1
- package/package.json +2 -2
- package/types/cloudfrogger-goodui.d.ts +2 -2
|
@@ -175,11 +175,13 @@
|
|
|
175
175
|
},
|
|
176
176
|
"composition": {
|
|
177
177
|
"projectedContent": [
|
|
178
|
+
"good-main-menu",
|
|
178
179
|
"*"
|
|
179
180
|
],
|
|
180
181
|
"relatedSelectors": [
|
|
181
182
|
"good-sidebar-container",
|
|
182
183
|
"good-topbar",
|
|
184
|
+
"good-main-menu",
|
|
183
185
|
"good-topbar-menu-container",
|
|
184
186
|
"good-notification-host"
|
|
185
187
|
],
|
|
@@ -103,7 +103,9 @@
|
|
|
103
103
|
"outputs": [],
|
|
104
104
|
"variants": {},
|
|
105
105
|
"composition": {
|
|
106
|
-
"projectedContent": [
|
|
106
|
+
"projectedContent": [
|
|
107
|
+
"*"
|
|
108
|
+
],
|
|
107
109
|
"relatedSelectors": [
|
|
108
110
|
"good-search",
|
|
109
111
|
"good-notifications",
|
|
@@ -111,7 +113,7 @@
|
|
|
111
113
|
"good-settings",
|
|
112
114
|
"good-avatar-menu"
|
|
113
115
|
],
|
|
114
|
-
"notes":
|
|
116
|
+
"notes": "See source template and component guide for projection slots."
|
|
115
117
|
},
|
|
116
118
|
"forms": {
|
|
117
119
|
"controlValueAccessor": false,
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
},
|
|
120
122
|
"usageGuide": "guides/components/main-menu.md",
|
|
121
123
|
"usage": {
|
|
122
|
-
"summary": "`
|
|
124
|
+
"summary": "`good-main-menu` is the topbar action container. It owns alignment and responsive gaps. Applications compose its children in any order without adding layout CSS.",
|
|
123
125
|
"examples": []
|
|
124
126
|
},
|
|
125
127
|
"penpot": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"usageGuide": "guides/components/search.md",
|
|
36
36
|
"usage": {
|
|
37
|
-
"summary": "`
|
|
37
|
+
"summary": "`good-search` opens a modal navigation search from a round magnifier action. It filters application-supplied link labels and descriptions locally, with automatic input focus, keyboard navigation, and an empty state. The homepage documents it at `/components/search` with a working preview and copyable examples.",
|
|
38
38
|
"examples": []
|
|
39
39
|
},
|
|
40
40
|
"penpot": [
|
package/ai/catalog/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "index.schema.json",
|
|
3
3
|
"package": "@cloudfrogger/goodui",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.64",
|
|
5
5
|
"generatedFrom": "angular/projects/goodui/src/public-api.ts",
|
|
6
6
|
"components": [
|
|
7
7
|
{
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
"symbol": "GoodMainMenuComponent"
|
|
782
782
|
},
|
|
783
783
|
"usageGuide": "guides/components/main-menu.md",
|
|
784
|
-
"summary": "`
|
|
784
|
+
"summary": "`good-main-menu` is the topbar action container. It owns alignment and responsive gaps. Applications compose its children in any order without adding layout CSS.",
|
|
785
785
|
"penpotCount": 1
|
|
786
786
|
},
|
|
787
787
|
{
|
|
@@ -1057,7 +1057,7 @@
|
|
|
1057
1057
|
"symbol": "GoodSearchComponent"
|
|
1058
1058
|
},
|
|
1059
1059
|
"usageGuide": "guides/components/search.md",
|
|
1060
|
-
"summary": "`
|
|
1060
|
+
"summary": "`good-search` opens a modal navigation search from a round magnifier action. It filters application-supplied link labels and descriptions locally, with automatic input focus, keyboard navigation, and an empty state. The homepage documents it at `/components/search` with a working preview and copyable examples.",
|
|
1061
1061
|
"penpotCount": 2
|
|
1062
1062
|
},
|
|
1063
1063
|
{
|
|
@@ -15,3 +15,5 @@ Start with `ai/catalog/index.json`. Each entry gives a selector, Angular import
|
|
|
15
15
|
For services and TypeScript types, search `angular/projects/goodui/src/public-api.ts` and its exported modules. For example, notifications use `GoodNotificationCenter`, theme preferences use `GoodThemeService`, and shared initialization uses `provideGoodUI()`. These APIs have dedicated guides and source; they do not have Angular selectors.
|
|
16
16
|
|
|
17
17
|
Before using a candidate, check its required inputs and projection selectors. A catalog description helps discovery; the detail file and guide establish the actual API. Follow each `source` and `usageGuide` path relative to the reference root. This applies equally to a source checkout, the installed npm package, and a full archive.
|
|
18
|
+
|
|
19
|
+
For configurable topbar actions, project `good-main-menu` into `good-app-layout` or `good-topbar`, then compose `good-search`, `good-notifications`, `good-theme-toggle`, and `good-avatar-menu` as its children. See `guides/components/main-menu.md`; configure each projected action directly.
|
package/ai/guides/layout.md
CHANGED
|
@@ -15,3 +15,5 @@ On mobile (640 px and below), framed Groups and Cards already reduce their inner
|
|
|
15
15
|
For a page-level Card or framed Group that still needs more horizontal room, set `[mobileBleed]="true"`. It adds a symmetric 8 px extension on each side only at mobile widths. The default is `false`, so nested bounded content does not move unexpectedly.
|
|
16
16
|
|
|
17
17
|
Read the exact catalog detail for each selected component. Required inputs are explicit there; selector names and imports come from `public-api.ts`.
|
|
18
|
+
|
|
19
|
+
For a custom action area, project `good-main-menu` directly into AppLayout or Topbar, then place action components inside it in the desired order. The container owns spacing. See `guides/components/main-menu.md`.
|
package/ai/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@cloudfrogger/goodui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"sourceRevision": "
|
|
3
|
+
"version": "0.0.64",
|
|
4
|
+
"sourceRevision": "e775bfccc74810b4452d7f976f9e9acd620ff9db",
|
|
5
5
|
"note": "References bundled with the npm package."
|
|
6
6
|
}
|
package/ai/skill/goodui/SKILL.md
CHANGED
|
@@ -16,7 +16,7 @@ For a source checkout, use its root and `angular/projects/goodui/package.json`.
|
|
|
16
16
|
1. Read `ai/catalog/index.json` to find suitable selectors and import symbols. `ai/guides/component-discovery.md` explains how to find components, services, and exported types from a task description. Read only the relevant component detail files and linked guides. Catalog files record inputs, defaults, required values, outputs, model changes, projection slots, forms integration, and Penpot ownership. Use `angular/projects/goodui/src/public-api.ts` and the referenced source files for exported types, services, and behavior that needs clarification.
|
|
17
17
|
2. Read `ai/guides/layout.md` and `ai/guides/page-patterns.md` when composing a page. Choose the shell and page layout before arranging controls. MainView owns page insets and heading alignment; Group, FormRow, Card, Columns, ActionGroup, and the workspace components own their layout. Prefer these capabilities and shared tokens when they satisfy the requested screen. Describe a missing reusable capability when the library cannot express the requested layout, and agree on the approach with the user.
|
|
18
18
|
3. Import public symbols from `@cloudfrogger/goodui` and global CSS from `@cloudfrogger/goodui/styles.css`. Check the app's root `provideGoodUI()` configuration and router. Use the catalog's exact inputs, outputs, projected slots, and Angular Forms integration. Keep domain data, persistence, and product-specific commands in the consuming application.
|
|
19
|
-
4. For notifications, read `guides/components/notifications.md`. AppLayout
|
|
19
|
+
4. For configurable topbar actions, project `good-main-menu` into AppLayout or Topbar and compose action components inside it. Read `guides/components/main-menu.md` and each child guide; configure projected children directly. For notifications, read `guides/components/notifications.md`. AppLayout includes a notification host and a bell in its default menu. A custom MainMenu chooses whether to include the bell. Use `GoodNotificationCenter` for revisitable messages, an inline Alert for nearby task/form problems, and a transient toast for immediate feedback.
|
|
20
20
|
5. Use `ai/examples/` for small form, table, and settings patterns. Guides link to complete homepage examples when useful. For a named case study, read `ai/case-studies/index.md`, then that study and its relevant screen. Keep routine component work focused on its relevant references.
|
|
21
21
|
6. Build the consuming app and exercise the requested interaction. Inspect desktop and mobile layouts, light and dark themes, and applicable keyboard, focus, and form behavior. State what was verified and what still needs a real backend, browser, or device check.
|
|
22
22
|
|
|
@@ -296,11 +296,13 @@ export class GoodAvatarMenuComponent {
|
|
|
296
296
|
imports: [GoodSearchComponent, GoodNotificationsComponent, GoodThemeToggleComponent, GoodSettingsComponent, GoodAvatarMenuComponent],
|
|
297
297
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
298
298
|
template: `
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
<ng-content>
|
|
300
|
+
@if (showSearch()) { <good-search [items]="searchItems()" /> }
|
|
301
|
+
@if (showNotifications()) { <good-notifications [items]="notifications()" /> }
|
|
302
|
+
@if (showThemeToggle()) { <good-theme-toggle /> }
|
|
303
|
+
@if (showSettings()) { <good-settings [actions]="settingsActions()" /> }
|
|
304
|
+
@if (showAvatar()) { <good-avatar-menu [user]="user()" [actions]="avatarActions()" /> }
|
|
305
|
+
</ng-content>
|
|
304
306
|
`,
|
|
305
307
|
host: { class: 'good-main-menu' },
|
|
306
308
|
})
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectionStrategy, Component, ElementRef, inject, input, signal,
|
|
|
2
2
|
import { NavigationEnd, Router } from '@angular/router';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { filter } from 'rxjs';
|
|
5
|
+
import { GoodMainMenuComponent } from './actions';
|
|
5
6
|
import { GoodSidebarContainerComponent } from './sidebar';
|
|
6
7
|
import { GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodTopbarMobileMenuMode } from './topbar';
|
|
7
8
|
import { GoodMainViewComponent } from './main-view';
|
|
@@ -11,14 +12,18 @@ import { GoodNotificationHostComponent } from './notification-host';
|
|
|
11
12
|
@Component({
|
|
12
13
|
selector: 'good-app-layout',
|
|
13
14
|
standalone: true,
|
|
14
|
-
imports: [GoodSidebarContainerComponent, GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodMainViewComponent, GoodNotificationHostComponent],
|
|
15
|
+
imports: [GoodMainMenuComponent, GoodSidebarContainerComponent, GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodMainViewComponent, GoodNotificationHostComponent],
|
|
15
16
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
17
|
template: `
|
|
17
18
|
<good-sidebar-container class="good-desktop-sidebar" [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
|
|
18
19
|
<div class="good-app-main">
|
|
19
20
|
<good-topbar [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [brandMarkSrc]="brandMarkSrc()" [brandMarkDarkSrc]="brandMarkDarkSrc()" [showBrandIcon]="showBrandIcon()" [showMobileBrand]="showMobileBrand()" [items]="topbarItems()" [activeRoute]="activeRoute()" [mobileMenuMode]="mobileTopbarMenuMode()"
|
|
20
21
|
[user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()"
|
|
21
|
-
(menuToggle)="openDrawer()"
|
|
22
|
+
(menuToggle)="openDrawer()">
|
|
23
|
+
<ng-content select="good-main-menu" ngProjectAs="good-main-menu">
|
|
24
|
+
<good-main-menu [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
25
|
+
</ng-content>
|
|
26
|
+
</good-topbar>
|
|
22
27
|
<div class="good-app-page"><ng-content /></div>
|
|
23
28
|
</div>
|
|
24
29
|
<dialog #drawer class="good-sidebar-drawer" aria-label="Navigation" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
|
|
@@ -373,8 +373,9 @@ export class GoodTopbarMenuContainerComponent {
|
|
|
373
373
|
@if (!projectedMenu()) { <good-topbar-menu-container [items]="items()" [activeRoute]="activeRoute()" [mobileMode]="mobileMenuMode()" /> }
|
|
374
374
|
<ng-content select="good-topbar-menu-container" />
|
|
375
375
|
</div>
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
<ng-content select="good-main-menu">
|
|
377
|
+
<good-main-menu [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
378
|
+
</ng-content>
|
|
378
379
|
`,
|
|
379
380
|
host: { class: 'good-topbar', '[attr.data-mobile-menu]': 'mobileMenuMode()' },
|
|
380
381
|
})
|
package/design.md
CHANGED
|
@@ -19,7 +19,7 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
|
|
|
19
19
|
| Active sidebar item | 8 px radius, neutral background | `SidebarItem` owns active state |
|
|
20
20
|
| Expanded sidebar | About 34 px parent row; 36 px child rows with 4 px gap and indentation | `SidebarItem` owns open state; `SidebarSubmenuGroup` owns guide lines and layout |
|
|
21
21
|
| Cards and panels | 12 px radius, subtle neutral border | `radius.card` and `color.border` |
|
|
22
|
-
| Topbar actions | 36 × 36 px circular hit areas | `MainMenu` owns
|
|
22
|
+
| Topbar actions | 36 × 36 px circular hit areas | `MainMenu` owns alignment and 10 px gaps between projected actions |
|
|
23
23
|
| Topbar dropdown | Help panel 220 px wide under topbar; 34 px rows, 2 px row gap, 6 px radius | `TopbarDropdownMenu` owns panel, divider, and rows |
|
|
24
24
|
| Topbar submenu | Support Forum panel 218 × 124 px; 4 px gap from parent, aligned with trigger row | `TopbarSubmenu` owns the next level and flips at the viewport edge |
|
|
25
25
|
| Avatar menu | About 250 × 384 px account panel under the avatar; 40 px rows, 36 px identity image, 8 px panel radius | `AvatarMenu` owns identity, row spacing, nested menus, appearance switch, and sign-out area |
|
|
@@ -424,7 +424,7 @@ Shell compositions use nested component instances. Keep IDs when a component ret
|
|
|
424
424
|
- The mobile sidebar opens from the topbar trigger and closes through the scrim or Escape. Desktop sidebar collapse exists as a design variant but is not yet exposed as an Angular API state.
|
|
425
425
|
- `MainView` accepts page content without imposing a card layout. The heading and actions are optional; content grows and scrolls.
|
|
426
426
|
- `Subnav` owns its horizontal viewport and child menu. Apps provide route data and do not add custom wrapping or page offsets.
|
|
427
|
-
- `MainMenu` can hide its ThemeToggle and other actions independently. ThemeToggle is shown by default; Settings is a separate optional menu. Apps may project a custom `good-main-menu` into `Topbar`; the container still owns spacing and hit areas.
|
|
427
|
+
- `MainMenu` accepts projected action components in application-defined order; AppLayout forwards a direct MainMenu child to Topbar. With no projected content it supplies the existing default actions. `MainMenu` can hide its generated ThemeToggle and other actions independently. ThemeToggle is shown by default; Settings is a separate optional menu. Apps may project a custom `good-main-menu` into `Topbar`; the container still owns spacing and hit areas.
|
|
428
428
|
- Tailwind CSS 4 theme variables provide colors; the shipped component CSS provides geometry. Apps do not add `margin-left` or `padding-top` to align the shell.
|
|
429
429
|
|
|
430
430
|
## Maintenance workflow
|
|
@@ -1492,11 +1492,13 @@ class GoodMainMenuComponent {
|
|
|
1492
1492
|
showAvatar = input(true, ...(ngDevMode ? [{ debugName: "showAvatar" }] : /* istanbul ignore next */ []));
|
|
1493
1493
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodMainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1494
1494
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodMainMenuComponent, isStandalone: true, selector: "good-main-menu", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, searchItems: { classPropertyName: "searchItems", publicName: "searchItems", isSignal: true, isRequired: false, transformFunction: null }, settingsActions: { classPropertyName: "settingsActions", publicName: "settingsActions", isSignal: true, isRequired: false, transformFunction: null }, avatarActions: { classPropertyName: "avatarActions", publicName: "avatarActions", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showNotifications: { classPropertyName: "showNotifications", publicName: "showNotifications", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, showSettings: { classPropertyName: "showSettings", publicName: "showSettings", isSignal: true, isRequired: false, transformFunction: null }, showAvatar: { classPropertyName: "showAvatar", publicName: "showAvatar", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-main-menu" }, ngImport: i0, template: `
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1495
|
+
<ng-content>
|
|
1496
|
+
@if (showSearch()) { <good-search [items]="searchItems()" /> }
|
|
1497
|
+
@if (showNotifications()) { <good-notifications [items]="notifications()" /> }
|
|
1498
|
+
@if (showThemeToggle()) { <good-theme-toggle /> }
|
|
1499
|
+
@if (showSettings()) { <good-settings [actions]="settingsActions()" /> }
|
|
1500
|
+
@if (showAvatar()) { <good-avatar-menu [user]="user()" [actions]="avatarActions()" /> }
|
|
1501
|
+
</ng-content>
|
|
1500
1502
|
`, isInline: true, dependencies: [{ kind: "component", type: GoodSearchComponent, selector: "good-search", inputs: ["items"] }, { kind: "component", type: GoodNotificationsComponent, selector: "good-notifications", inputs: ["items"] }, { kind: "component", type: GoodThemeToggleComponent, selector: "good-theme-toggle" }, { kind: "component", type: GoodSettingsComponent, selector: "good-settings", inputs: ["actions"] }, { kind: "component", type: GoodAvatarMenuComponent, selector: "good-avatar-menu", inputs: ["user", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1501
1503
|
}
|
|
1502
1504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodMainMenuComponent, decorators: [{
|
|
@@ -1507,11 +1509,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1507
1509
|
imports: [GoodSearchComponent, GoodNotificationsComponent, GoodThemeToggleComponent, GoodSettingsComponent, GoodAvatarMenuComponent],
|
|
1508
1510
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1509
1511
|
template: `
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1512
|
+
<ng-content>
|
|
1513
|
+
@if (showSearch()) { <good-search [items]="searchItems()" /> }
|
|
1514
|
+
@if (showNotifications()) { <good-notifications [items]="notifications()" /> }
|
|
1515
|
+
@if (showThemeToggle()) { <good-theme-toggle /> }
|
|
1516
|
+
@if (showSettings()) { <good-settings [actions]="settingsActions()" /> }
|
|
1517
|
+
@if (showAvatar()) { <good-avatar-menu [user]="user()" [actions]="avatarActions()" /> }
|
|
1518
|
+
</ng-content>
|
|
1515
1519
|
`,
|
|
1516
1520
|
host: { class: 'good-main-menu' },
|
|
1517
1521
|
}]
|
|
@@ -2029,8 +2033,9 @@ class GoodTopbarComponent {
|
|
|
2029
2033
|
@if (!projectedMenu()) { <good-topbar-menu-container [items]="items()" [activeRoute]="activeRoute()" [mobileMode]="mobileMenuMode()" /> }
|
|
2030
2034
|
<ng-content select="good-topbar-menu-container" />
|
|
2031
2035
|
</div>
|
|
2032
|
-
|
|
2033
|
-
|
|
2036
|
+
<ng-content select="good-main-menu">
|
|
2037
|
+
<good-main-menu [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
2038
|
+
</ng-content>
|
|
2034
2039
|
`, isInline: true, dependencies: [{ kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodBrandIconComponent, selector: "good-brand-icon", inputs: ["src", "darkSrc", "label"] }, { kind: "component", type: GoodTopbarMenuContainerComponent, selector: "good-topbar-menu-container", inputs: ["items", "activeRoute", "mobileMode"] }, { kind: "component", type: GoodMainMenuComponent, selector: "good-main-menu", inputs: ["user", "notifications", "searchItems", "settingsActions", "avatarActions", "showSearch", "showNotifications", "showThemeToggle", "showSettings", "showAvatar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2035
2040
|
}
|
|
2036
2041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarComponent, decorators: [{
|
|
@@ -2059,8 +2064,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2059
2064
|
@if (!projectedMenu()) { <good-topbar-menu-container [items]="items()" [activeRoute]="activeRoute()" [mobileMode]="mobileMenuMode()" /> }
|
|
2060
2065
|
<ng-content select="good-topbar-menu-container" />
|
|
2061
2066
|
</div>
|
|
2062
|
-
|
|
2063
|
-
|
|
2067
|
+
<ng-content select="good-main-menu">
|
|
2068
|
+
<good-main-menu [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
2069
|
+
</ng-content>
|
|
2064
2070
|
`,
|
|
2065
2071
|
host: { class: 'good-topbar', '[attr.data-mobile-menu]': 'mobileMenuMode()' },
|
|
2066
2072
|
}]
|
|
@@ -14642,7 +14648,11 @@ class GoodAppLayoutComponent {
|
|
|
14642
14648
|
<div class="good-app-main">
|
|
14643
14649
|
<good-topbar [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [brandMarkSrc]="brandMarkSrc()" [brandMarkDarkSrc]="brandMarkDarkSrc()" [showBrandIcon]="showBrandIcon()" [showMobileBrand]="showMobileBrand()" [items]="topbarItems()" [activeRoute]="activeRoute()" [mobileMenuMode]="mobileTopbarMenuMode()"
|
|
14644
14650
|
[user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()"
|
|
14645
|
-
(menuToggle)="openDrawer()"
|
|
14651
|
+
(menuToggle)="openDrawer()">
|
|
14652
|
+
<ng-content select="good-main-menu" ngProjectAs="good-main-menu">
|
|
14653
|
+
<good-main-menu [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
14654
|
+
</ng-content>
|
|
14655
|
+
</good-topbar>
|
|
14646
14656
|
<div class="good-app-page"><ng-content /></div>
|
|
14647
14657
|
</div>
|
|
14648
14658
|
<dialog #drawer class="good-sidebar-drawer" aria-label="Navigation" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
|
|
@@ -14655,21 +14665,25 @@ class GoodAppLayoutComponent {
|
|
|
14655
14665
|
<button type="button" class="good-drawer-close" aria-label="Close sidebar" (click)="closeDrawer()">Close</button>
|
|
14656
14666
|
</dialog>
|
|
14657
14667
|
<good-notification-host />
|
|
14658
|
-
`, isInline: true, dependencies: [{ kind: "component", type: GoodSidebarContainerComponent, selector: "good-sidebar-container", inputs: ["brand", "brandLogoSrc", "brandLogoDarkSrc", "sections", "activeRoute"] }, { kind: "component", type: GoodTopbarComponent, selector: "good-topbar", inputs: ["brand", "brandLogoSrc", "brandLogoDarkSrc", "brandMarkSrc", "brandMarkDarkSrc", "showBrandIcon", "showMobileBrand", "items", "activeRoute", "mobileMenuMode", "user", "notifications", "searchItems", "settingsActions", "showThemeToggle", "showSettings", "avatarActions"], outputs: ["menuToggle"] }, { kind: "component", type: GoodTopbarMenuContainerComponent, selector: "good-topbar-menu-container", inputs: ["items", "activeRoute", "mobileMode"] }, { kind: "component", type: GoodNotificationHostComponent, selector: "good-notification-host" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14668
|
+
`, isInline: true, dependencies: [{ kind: "component", type: GoodMainMenuComponent, selector: "good-main-menu", inputs: ["user", "notifications", "searchItems", "settingsActions", "avatarActions", "showSearch", "showNotifications", "showThemeToggle", "showSettings", "showAvatar"] }, { kind: "component", type: GoodSidebarContainerComponent, selector: "good-sidebar-container", inputs: ["brand", "brandLogoSrc", "brandLogoDarkSrc", "sections", "activeRoute"] }, { kind: "component", type: GoodTopbarComponent, selector: "good-topbar", inputs: ["brand", "brandLogoSrc", "brandLogoDarkSrc", "brandMarkSrc", "brandMarkDarkSrc", "showBrandIcon", "showMobileBrand", "items", "activeRoute", "mobileMenuMode", "user", "notifications", "searchItems", "settingsActions", "showThemeToggle", "showSettings", "avatarActions"], outputs: ["menuToggle"] }, { kind: "component", type: GoodTopbarMenuContainerComponent, selector: "good-topbar-menu-container", inputs: ["items", "activeRoute", "mobileMode"] }, { kind: "component", type: GoodNotificationHostComponent, selector: "good-notification-host" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14659
14669
|
}
|
|
14660
14670
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppLayoutComponent, decorators: [{
|
|
14661
14671
|
type: Component,
|
|
14662
14672
|
args: [{
|
|
14663
14673
|
selector: 'good-app-layout',
|
|
14664
14674
|
standalone: true,
|
|
14665
|
-
imports: [GoodSidebarContainerComponent, GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodMainViewComponent, GoodNotificationHostComponent],
|
|
14675
|
+
imports: [GoodMainMenuComponent, GoodSidebarContainerComponent, GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodMainViewComponent, GoodNotificationHostComponent],
|
|
14666
14676
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14667
14677
|
template: `
|
|
14668
14678
|
<good-sidebar-container class="good-desktop-sidebar" [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
|
|
14669
14679
|
<div class="good-app-main">
|
|
14670
14680
|
<good-topbar [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [brandMarkSrc]="brandMarkSrc()" [brandMarkDarkSrc]="brandMarkDarkSrc()" [showBrandIcon]="showBrandIcon()" [showMobileBrand]="showMobileBrand()" [items]="topbarItems()" [activeRoute]="activeRoute()" [mobileMenuMode]="mobileTopbarMenuMode()"
|
|
14671
14681
|
[user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()"
|
|
14672
|
-
(menuToggle)="openDrawer()"
|
|
14682
|
+
(menuToggle)="openDrawer()">
|
|
14683
|
+
<ng-content select="good-main-menu" ngProjectAs="good-main-menu">
|
|
14684
|
+
<good-main-menu [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
14685
|
+
</ng-content>
|
|
14686
|
+
</good-topbar>
|
|
14673
14687
|
<div class="good-app-page"><ng-content /></div>
|
|
14674
14688
|
</div>
|
|
14675
14689
|
<dialog #drawer class="good-sidebar-drawer" aria-label="Navigation" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
|