@gravionlabs/helix-shell 22.0.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/LICENSE.md +21 -0
- package/README.md +99 -0
- package/fesm2022/gravionlabs-helix-shell.mjs +1858 -0
- package/fesm2022/gravionlabs-helix-shell.mjs.map +1 -0
- package/package.json +46 -0
- package/styles.css +2179 -0
- package/types/gravionlabs-helix-shell.d.ts +1017 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GravionLabs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# @gravionlabs/helix-shell
|
|
2
|
+
|
|
3
|
+
Angular application shell for [Helix](../../README.md), extending
|
|
4
|
+
[sakai-ng](https://github.com/primefaces/sakai-ng) with
|
|
5
|
+
[NgRx Signal Store](https://ngrx.io/guide/signals) for state management.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- 🧩 **Layout** — `HelixAppLayout` with topbar, nav rail, status bar, and footer
|
|
10
|
+
- 🔀 **Routing utilities** — `helixRoutesFrom`, `helixMenuLinksFrom`, `helixBreadcrumbsFromRoutes`
|
|
11
|
+
- 🗃️ **NgRx Signal Store** — `LayoutStore` for theme, menu, and dark-mode state
|
|
12
|
+
- 🔐 **Auth & error pages** — login, error, access-denied, not-found, with lazy route config
|
|
13
|
+
- 🚀 **Landing widgets** — hero, features, highlights, pricing, footer sections
|
|
14
|
+
- 📝 **Form infrastructure** — `HelixFormField`, `HelixValidators`, `helixFormErrorMap`
|
|
15
|
+
- 🎨 **Helix + PrimeUIX theming** — Aura / Lara / Nora presets, dark mode via View Transitions
|
|
16
|
+
- 📦 **Standalone components** — no NgModule required
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @gravionlabs/helix-shell
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Peer Dependencies
|
|
25
|
+
|
|
26
|
+
`@angular/core >=22`, `@ngrx/signals >=21`, `@gravionlabs/helix-core >=22`,
|
|
27
|
+
`primeicons >=7`.
|
|
28
|
+
|
|
29
|
+
## Setup
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
// app.config.ts
|
|
33
|
+
import { auraPreset } from '@gravionlabs/helix-core/themes/aura';
|
|
34
|
+
import { provideHelix } from '@gravionlabs/helix-core/config';
|
|
35
|
+
|
|
36
|
+
export const appConfig: ApplicationConfig = {
|
|
37
|
+
providers: [
|
|
38
|
+
provideRouter(appRoutes),
|
|
39
|
+
provideHttpClient(),
|
|
40
|
+
provideHelix({ theme: { preset: auraPreset, options: { darkModeSelector: '.app-dark' } } })
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
// app.routes.ts
|
|
47
|
+
import { HelixAppLayout } from '@gravionlabs/helix-shell';
|
|
48
|
+
|
|
49
|
+
export const appRoutes: Routes = [
|
|
50
|
+
{
|
|
51
|
+
path: '',
|
|
52
|
+
component: HelixAppLayout,
|
|
53
|
+
children: [/* your routes */]
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Styles
|
|
59
|
+
|
|
60
|
+
Some components use Tailwind utility classes baked into their templates. The
|
|
61
|
+
library ships a prebuilt stylesheet covering those classes — add it to your
|
|
62
|
+
app's global styles, since Tailwind's content scanning does not look inside
|
|
63
|
+
`node_modules` by default:
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
// angular.json
|
|
67
|
+
"styles": [
|
|
68
|
+
"node_modules/@gravionlabs/helix-shell/styles.css",
|
|
69
|
+
"src/styles.scss"
|
|
70
|
+
]
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Layout Store
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import { inject } from '@angular/core';
|
|
77
|
+
import { LayoutStore } from '@gravionlabs/helix-shell';
|
|
78
|
+
|
|
79
|
+
layoutStore = inject(LayoutStore);
|
|
80
|
+
layoutStore.toggleDarkMode();
|
|
81
|
+
layoutStore.setMenuMode('overlay');
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Documentation
|
|
85
|
+
|
|
86
|
+
Full API reference — every component, input, store signal, and form utility —
|
|
87
|
+
lives in [docs/HELIX-SHELL.md](../../docs/HELIX-SHELL.md).
|
|
88
|
+
|
|
89
|
+
## Development
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
pnpm start # Serve the demo app (builds libs first)
|
|
93
|
+
ng build shell # Build the library
|
|
94
|
+
pnpm test:lib:stable # Run the shell unit tests
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
|
|
99
|
+
MIT
|