@mxtommy/kip 3.3.0-beta.2 → 3.3.0-beta.5
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/.github/instructions/angular.instructions.md +101 -0
- package/eslint.config.js +45 -0
- package/package.json +21 -20
- package/public/3rdpartylicenses.txt +26 -26
- package/public/assets/help-docs/img/general-layout.png +0 -0
- package/public/assets/steelseries-min.js +1 -1
- package/public/chunk-2JKG3JHE.js +5 -0
- package/public/chunk-324DNPFV.js +1 -0
- package/public/chunk-3HDDBXQX.js +2 -0
- package/public/{chunk-RRAVS5O5.js → chunk-44YUY7UC.js} +1 -1
- package/public/chunk-4ABEQDMW.js +6 -0
- package/public/chunk-5XWOQAVH.js +2 -0
- package/public/{chunk-FT5BOMBZ.js → chunk-7MAW5JUV.js} +1 -1
- package/public/chunk-A4RVRW7Y.js +1 -0
- package/public/chunk-DJMN2BA2.js +8 -0
- package/public/chunk-FQDAP2B5.js +3 -0
- package/public/chunk-GCRU2MQN.js +3 -0
- package/public/chunk-IVRB7SCZ.js +4 -0
- package/public/chunk-KE4K4LGZ.js +2 -0
- package/public/chunk-KS5NMMLP.js +1 -0
- package/public/chunk-N3ZYD6JG.js +4 -0
- package/public/chunk-OFKNWTWQ.js +3 -0
- package/public/chunk-PXPF4DU3.js +1 -0
- package/public/chunk-PZYJK4ZI.js +5 -0
- package/public/chunk-S3ZVIKLY.js +3 -0
- package/public/chunk-SFNSRKY4.js +18 -0
- package/public/chunk-SG7QU6WS.js +60 -0
- package/public/chunk-SYJ5N5RJ.js +1 -0
- package/public/{chunk-BX746I2R.js → chunk-VAU2IWBY.js} +2 -2
- package/public/chunk-YJMRAZSJ.js +6 -0
- package/public/chunk-YMMPLVIB.js +2 -0
- package/public/chunk-Z45CVP62.js +2 -0
- package/public/index.html +2 -2
- package/public/main-BEJKQTKO.js +236 -0
- package/public/polyfills-QVNLPVFF.js +2 -0
- package/public/styles-IMZWSNV6.css +1 -0
- package/public/assets/google-fonts/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2 +0 -0
- package/public/assets/steelseries-min.js.map +0 -8
- package/public/chunk-2HWSXOJH.js +0 -7
- package/public/chunk-4SES32DD.js +0 -1
- package/public/chunk-6UG4Q6L3.js +0 -2
- package/public/chunk-74Q7ESW3.js +0 -3
- package/public/chunk-7JU2L4ZQ.js +0 -3
- package/public/chunk-BOSMFL6Q.js +0 -1
- package/public/chunk-DHPOFP3B.js +0 -2
- package/public/chunk-EALAVNM5.js +0 -1
- package/public/chunk-GJTSOHIS.js +0 -2
- package/public/chunk-GSG3ZXVY.js +0 -4
- package/public/chunk-HG6A25MG.js +0 -6
- package/public/chunk-I6I4BVGS.js +0 -3
- package/public/chunk-JZ455OYD.js +0 -18
- package/public/chunk-L52GBBZB.js +0 -5
- package/public/chunk-MDIAFVAX.js +0 -8
- package/public/chunk-OHBCNLIU.js +0 -1
- package/public/chunk-PZFXKRRN.js +0 -60
- package/public/chunk-R4UCKYVW.js +0 -2
- package/public/chunk-SD22YSTB.js +0 -5
- package/public/chunk-SGYCFQGT.js +0 -0
- package/public/chunk-U7Y5P5XP.js +0 -6
- package/public/chunk-UNIQOPO4.js +0 -1
- package/public/chunk-UXHQY4AJ.js +0 -3
- package/public/chunk-ZA2YAX23.js +0 -2
- package/public/main-5V5K76CH.js +0 -234
- package/public/media/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY-GP27JHDZ.woff2 +0 -0
- package/public/polyfills-2DK6FBPF.js +0 -2
- package/public/styles-ILFVF6BG.css +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Persona
|
|
2
|
+
You are a dedicated Angular developer who thrives on leveraging the absolute latest features of the framework to build cutting-edge applications. You are currently immersed in Angular v20+, passionately adopting signals for reactive state management, embracing standalone components for streamlined architecture, and utilizing the new control flow for more intuitive template logic. Performance is paramount to you, who constantly seeks to optimize change detection and improve user experience through these modern Angular paradigms. When prompted, assume You are familiar with all the newest APIs and best practices, valuing clean, efficient, and maintainable code.
|
|
3
|
+
|
|
4
|
+
## Examples
|
|
5
|
+
These are modern examples of how to write an Angular 20 component with signals
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: '{{tag-name}}-root',
|
|
13
|
+
templateUrl: '{{tag-name}}.html',
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
})
|
|
16
|
+
export class {{ClassName}} {
|
|
17
|
+
protected readonly isServerRunning = signal(true);
|
|
18
|
+
toggleServerStatus() {
|
|
19
|
+
this.isServerRunning.update(isServerRunning => !isServerRunning);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```css
|
|
25
|
+
.container {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
height: 100vh;
|
|
31
|
+
|
|
32
|
+
button {
|
|
33
|
+
margin-top: 10px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<section class="container">
|
|
40
|
+
@if (isServerRunning()) {
|
|
41
|
+
<span>Yes, the server is running</span>
|
|
42
|
+
} @else {
|
|
43
|
+
<span>No, the server is not running</span>
|
|
44
|
+
}
|
|
45
|
+
<button (click)="toggleServerStatus()">Toggle Server Status</button>
|
|
46
|
+
</section>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
When you update a component, be sure to put the logic in the ts file, the styles in the css file and the html template in the html file.
|
|
50
|
+
|
|
51
|
+
## Resources
|
|
52
|
+
Here are some links to the essentials for building Angular applications. Use these to get an understanding of how some of the core functionality works
|
|
53
|
+
https://angular.dev/essentials/components
|
|
54
|
+
https://angular.dev/essentials/signals
|
|
55
|
+
https://angular.dev/essentials/templates
|
|
56
|
+
https://angular.dev/essentials/dependency-injection
|
|
57
|
+
|
|
58
|
+
## Best practices & Style guide
|
|
59
|
+
Here are the best practices and the style guide information.
|
|
60
|
+
|
|
61
|
+
### Coding Style guide
|
|
62
|
+
Here is a link to the most recent Angular style guide https://angular.dev/style-guide
|
|
63
|
+
|
|
64
|
+
### TypeScript Best Practices
|
|
65
|
+
- Use strict type checking
|
|
66
|
+
- Prefer type inference when the type is obvious
|
|
67
|
+
- Avoid the `any` type; use `unknown` when type is uncertain
|
|
68
|
+
|
|
69
|
+
### Angular Best Practices
|
|
70
|
+
- Always use standalone components over `NgModules`
|
|
71
|
+
- Don't use explicit `standalone: true` (it is implied by default)
|
|
72
|
+
- Use signals for state management
|
|
73
|
+
- Implement lazy loading for feature routes
|
|
74
|
+
- Use `NgOptimizedImage` for all static images.
|
|
75
|
+
|
|
76
|
+
### Components
|
|
77
|
+
- Keep components small and focused on a single responsibility
|
|
78
|
+
- Use `input()` signal instead of decorators, learn more here https://angular.dev/guide/components/inputs
|
|
79
|
+
- Use `output()` function instead of decorators, learn more here https://angular.dev/guide/components/outputs
|
|
80
|
+
- Use `computed()` for derived state learn more about signals here https://angular.dev/guide/signals.
|
|
81
|
+
- Set `changeDetection: ChangeDetectionStrategy.OnPush` in `@Component` decorator
|
|
82
|
+
- Prefer inline templates for small components
|
|
83
|
+
- Prefer Reactive forms instead of Template-driven ones
|
|
84
|
+
- Do NOT use `ngClass`, use `class` bindings instead, for context: https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings
|
|
85
|
+
- DO NOT use `ngStyle`, use `style` bindings instead, for context: https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings
|
|
86
|
+
|
|
87
|
+
### State Management
|
|
88
|
+
- Use signals for local component state
|
|
89
|
+
- Use `computed()` for derived state
|
|
90
|
+
- Keep state transformations pure and predictable
|
|
91
|
+
|
|
92
|
+
### Templates
|
|
93
|
+
- Keep templates simple and avoid complex logic
|
|
94
|
+
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
|
|
95
|
+
- Use the async pipe to handle observables
|
|
96
|
+
- Use built in pipes and import pipes when being used in a template, learn more https://angular.dev/guide/templates/pipes#
|
|
97
|
+
|
|
98
|
+
### Services
|
|
99
|
+
- Design services around a single responsibility
|
|
100
|
+
- Use the `providedIn: 'root'` option for singleton services
|
|
101
|
+
- Use the `inject()` function instead of constructor injection
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const eslint = require("@eslint/js");
|
|
3
|
+
const tseslint = require("typescript-eslint");
|
|
4
|
+
const angular = require("angular-eslint");
|
|
5
|
+
|
|
6
|
+
module.exports = tseslint.config(
|
|
7
|
+
{
|
|
8
|
+
files: ["**/*.ts"],
|
|
9
|
+
extends: [
|
|
10
|
+
eslint.configs.recommended,
|
|
11
|
+
...tseslint.configs.recommended,
|
|
12
|
+
...tseslint.configs.stylistic,
|
|
13
|
+
...angular.configs.tsRecommended,
|
|
14
|
+
],
|
|
15
|
+
processor: angular.processInlineTemplates,
|
|
16
|
+
rules: {
|
|
17
|
+
"@typescript-eslint/no-empty-function": ["off"],
|
|
18
|
+
"@angular-eslint/directive-selector": [
|
|
19
|
+
"off",
|
|
20
|
+
{
|
|
21
|
+
type: "attribute",
|
|
22
|
+
prefix: "app",
|
|
23
|
+
style: "camelCase",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
"@angular-eslint/component-selector": [
|
|
27
|
+
"off",
|
|
28
|
+
{
|
|
29
|
+
type: "element",
|
|
30
|
+
prefix: "app",
|
|
31
|
+
style: "kebab-case",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'@typescript-eslint/no-explicit-any': 'error', // Forbid usage of 'any'
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
files: ["**/*.html"],
|
|
39
|
+
extends: [
|
|
40
|
+
...angular.configs.templateRecommended,
|
|
41
|
+
...angular.configs.templateAccessibility,
|
|
42
|
+
],
|
|
43
|
+
rules: {},
|
|
44
|
+
}
|
|
45
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxtommy/kip",
|
|
3
|
-
"version": "3.3.0-beta.
|
|
3
|
+
"version": "3.3.0-beta.5",
|
|
4
4
|
"description": "An advanced and versatile marine instrumentation package to display Signal K data.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"e2e": "ng e2e"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@angular-devkit/build-angular": "^
|
|
49
|
-
"@angular/animations": "
|
|
50
|
-
"@angular/cdk": "
|
|
51
|
-
"@angular/cli": "^
|
|
52
|
-
"@angular/common": "
|
|
53
|
-
"@angular/compiler": "
|
|
54
|
-
"@angular/compiler-cli": "
|
|
55
|
-
"@angular/core": "
|
|
56
|
-
"@angular/forms": "
|
|
57
|
-
"@angular/language-service": "
|
|
58
|
-
"@angular/material": "
|
|
59
|
-
"@angular/platform-browser": "
|
|
60
|
-
"@angular/platform-browser-dynamic": "
|
|
61
|
-
"@angular/router": "
|
|
48
|
+
"@angular-devkit/build-angular": "^20.0.5",
|
|
49
|
+
"@angular/animations": "20.0.6",
|
|
50
|
+
"@angular/cdk": "20.0.5",
|
|
51
|
+
"@angular/cli": "^20.0.5",
|
|
52
|
+
"@angular/common": "20.0.6",
|
|
53
|
+
"@angular/compiler": "20.0.6",
|
|
54
|
+
"@angular/compiler-cli": "20.0.6",
|
|
55
|
+
"@angular/core": "20.0.6",
|
|
56
|
+
"@angular/forms": "20.0.6",
|
|
57
|
+
"@angular/language-service": "20.0.6",
|
|
58
|
+
"@angular/material": "20.0.5",
|
|
59
|
+
"@angular/platform-browser": "20.0.6",
|
|
60
|
+
"@angular/platform-browser-dynamic": "20.0.6",
|
|
61
|
+
"@angular/router": "20.0.6",
|
|
62
62
|
"@godind/ng-canvas-gauges": "^6.2.1",
|
|
63
63
|
"@robloche/chartjs-plugin-streaming": "^3.1.0",
|
|
64
64
|
"@types/canvas-gauges": "^2.1.8",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"@types/js-quantities": "^1.6.6",
|
|
70
70
|
"@types/lodash-es": "^4.17.9",
|
|
71
71
|
"@types/node": "^18.19.30",
|
|
72
|
+
"angular-eslint": "20.1.1",
|
|
72
73
|
"chart.js": "^4.4.9",
|
|
73
74
|
"chartjs-adapter-date-fns": "^3.0.0",
|
|
74
75
|
"chartjs-plugin-annotation": "^3.1.0",
|
|
@@ -76,6 +77,7 @@
|
|
|
76
77
|
"compare-versions": "^6.1.1",
|
|
77
78
|
"core-js": "^3.13.1",
|
|
78
79
|
"date-fns": "^2.30.0",
|
|
80
|
+
"eslint": "^9.29.0",
|
|
79
81
|
"gridstack": "^11.4.0",
|
|
80
82
|
"hammerjs": "^2.0.8",
|
|
81
83
|
"howler": "^2.2.4",
|
|
@@ -89,9 +91,9 @@
|
|
|
89
91
|
"karma-jasmine": "~4.0.0",
|
|
90
92
|
"karma-jasmine-html-reporter": "^1.6.0",
|
|
91
93
|
"lodash-es": "^4.17.21",
|
|
92
|
-
"ng-packagr": "^
|
|
93
|
-
"ngx-markdown": "^
|
|
94
|
-
"ngx-resize-observer": "^3.
|
|
94
|
+
"ng-packagr": "^20.0.1",
|
|
95
|
+
"ngx-markdown": "^20.0.0",
|
|
96
|
+
"ngx-resize-observer": "^3.1.0",
|
|
95
97
|
"protractor": "~7.0.0",
|
|
96
98
|
"pwa-asset-generator": "^8.0.4",
|
|
97
99
|
"rxjs": "^7.5.7",
|
|
@@ -99,8 +101,7 @@
|
|
|
99
101
|
"screenfull": "^6.0.2",
|
|
100
102
|
"ts-node": "^8.10.2",
|
|
101
103
|
"tslib": "^2.6.2",
|
|
102
|
-
"
|
|
103
|
-
"typescript": "^5.8.2",
|
|
104
|
+
"typescript": "^5.8.3",
|
|
104
105
|
"zone.js": "~0.15.0"
|
|
105
106
|
}
|
|
106
107
|
}
|
|
@@ -583,32 +583,6 @@ maintained libraries used by this software which have their own
|
|
|
583
583
|
licenses; we recommend you read them, as their terms may differ from the
|
|
584
584
|
terms above.
|
|
585
585
|
|
|
586
|
-
--------------------------------------------------------------------------------
|
|
587
|
-
Package: @angular/core
|
|
588
|
-
License: "MIT"
|
|
589
|
-
|
|
590
|
-
The MIT License
|
|
591
|
-
|
|
592
|
-
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
593
|
-
|
|
594
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
595
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
596
|
-
in the Software without restriction, including without limitation the rights
|
|
597
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
598
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
599
|
-
furnished to do so, subject to the following conditions:
|
|
600
|
-
|
|
601
|
-
The above copyright notice and this permission notice shall be included in
|
|
602
|
-
all copies or substantial portions of the Software.
|
|
603
|
-
|
|
604
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
605
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
606
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
607
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
608
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
609
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
610
|
-
THE SOFTWARE.
|
|
611
|
-
|
|
612
586
|
--------------------------------------------------------------------------------
|
|
613
587
|
Package: rxjs
|
|
614
588
|
License: "Apache-2.0"
|
|
@@ -832,6 +806,32 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
832
806
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
833
807
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
834
808
|
PERFORMANCE OF THIS SOFTWARE.
|
|
809
|
+
--------------------------------------------------------------------------------
|
|
810
|
+
Package: @angular/core
|
|
811
|
+
License: "MIT"
|
|
812
|
+
|
|
813
|
+
The MIT License
|
|
814
|
+
|
|
815
|
+
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
816
|
+
|
|
817
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
818
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
819
|
+
in the Software without restriction, including without limitation the rights
|
|
820
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
821
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
822
|
+
furnished to do so, subject to the following conditions:
|
|
823
|
+
|
|
824
|
+
The above copyright notice and this permission notice shall be included in
|
|
825
|
+
all copies or substantial portions of the Software.
|
|
826
|
+
|
|
827
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
828
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
829
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
830
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
831
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
832
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
833
|
+
THE SOFTWARE.
|
|
834
|
+
|
|
835
835
|
--------------------------------------------------------------------------------
|
|
836
836
|
Package: @angular/common
|
|
837
837
|
License: "MIT"
|
|
Binary file
|