@rijkshuisstijl-community/components-angular 1.0.0 → 1.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 +55 -0
- package/dist/README.md +55 -0
- package/dist/button/button.component.d.ts +1 -2
- package/dist/column-layout/column-layout.component.d.ts +6 -0
- package/dist/data-summary/data-summary.component.d.ts +6 -0
- package/dist/data-summary-item/data-summary-item.component.d.ts +10 -0
- package/dist/fesm2022/rijkshuisstijl-community-components-angular.mjs +534 -11
- package/dist/fesm2022/rijkshuisstijl-community-components-angular.mjs.map +1 -1
- package/dist/figure/figure.component.d.ts +9 -0
- package/dist/figure-caption/figure-caption.component.d.ts +5 -0
- package/dist/footer/footer.component.d.ts +27 -0
- package/dist/form-field/form-field.component.d.ts +12 -0
- package/dist/form-field-description/form-field-description.component.d.ts +9 -0
- package/dist/form-field-error-message/form-field-error-message.component.d.ts +5 -0
- package/dist/form-field-text-input/form-field-text-input.component.d.ts +37 -0
- package/dist/form-label/form-label.component.d.ts +8 -0
- package/dist/image/image.component.d.ts +5 -0
- package/dist/link/link.component.d.ts +2 -1
- package/dist/link-list/link-list.component.d.ts +5 -0
- package/dist/link-list-item/link-list-item.component.d.ts +5 -0
- package/dist/link-list-link/link-list-link.component.d.ts +6 -0
- package/dist/logo/logo.component.d.ts +7 -0
- package/dist/navbar/navbar.component.d.ts +6 -0
- package/dist/navbar-item/end-item.directive.d.ts +9 -0
- package/dist/navbar-item/heading-item.directive.d.ts +6 -0
- package/dist/navbar-item/navbar-item.component.d.ts +6 -0
- package/dist/public-api.d.ts +23 -0
- package/dist/text-input/text-input.component.d.ts +9 -0
- package/dist/unordered-list/unordered-list.component.d.ts +6 -0
- package/dist/unordered-list-item/unordered-list-item.component.d.ts +5 -0
- package/package.json +23 -15
- package/.eslintrc.json +0 -5
- package/CHANGELOG.md +0 -15
- package/angular.json +0 -37
- package/jest.config.js +0 -5
- package/ng-package.json +0 -7
- package/setup-jest.ts +0 -3
- package/src/action-group/action-group.component.html +0 -9
- package/src/action-group/action-group.component.spec.ts +0 -46
- package/src/action-group/action-group.component.ts +0 -10
- package/src/button/button.component.html +0 -3
- package/src/button/button.component.spec.ts +0 -41
- package/src/button/button.component.ts +0 -14
- package/src/heading/heading.component.css +0 -1
- package/src/heading/heading.component.html +0 -31
- package/src/heading/heading.component.spec.ts +0 -54
- package/src/heading/heading.component.ts +0 -19
- package/src/icon/RHCIconIDs.ts +0 -1182
- package/src/icon/dutch-map-icon/dutch-map-icon.component.html +0 -6
- package/src/icon/dutch-map-icon/dutch-map-icon.component.ts +0 -8
- package/src/icon/flag-icons/bg-flag/bg-flag.component.html +0 -5
- package/src/icon/flag-icons/bg-flag/bg-flag.component.ts +0 -8
- package/src/icon/flag-icons/de-flag/de-flag.component.html +0 -6
- package/src/icon/flag-icons/de-flag/de-flag.component.ts +0 -8
- package/src/icon/flag-icons/es-flag/es-flag.component.html +0 -2233
- package/src/icon/flag-icons/es-flag/es-flag.component.ts +0 -8
- package/src/icon/flag-icons/fr-flag/fr-flag.component.html +0 -5
- package/src/icon/flag-icons/fr-flag/fr-flag.component.ts +0 -8
- package/src/icon/flag-icons/gr-flag/gr-flag.component.html +0 -4
- package/src/icon/flag-icons/gr-flag/gr-flag.component.ts +0 -8
- package/src/icon/flag-icons/hu-flag/hu-flag.component.html +0 -5
- package/src/icon/flag-icons/hu-flag/hu-flag.component.ts +0 -8
- package/src/icon/flag-icons/it-flag/it-flag.component.html +0 -5
- package/src/icon/flag-icons/it-flag/it-flag.component.ts +0 -8
- package/src/icon/flag-icons/lv-flag/lv-flag.component.html +0 -4
- package/src/icon/flag-icons/lv-flag/lv-flag.component.ts +0 -8
- package/src/icon/flag-icons/nl-flag/nl-flag.component.html +0 -5
- package/src/icon/flag-icons/nl-flag/nl-flag.component.ts +0 -8
- package/src/icon/flag-icons/pl-flag/pl-flag.component.html +0 -4
- package/src/icon/flag-icons/pl-flag/pl-flag.component.ts +0 -8
- package/src/icon/flag-icons/pt-flag/pt-flag.component.html +0 -156
- package/src/icon/flag-icons/pt-flag/pt-flag.component.ts +0 -8
- package/src/icon/flag-icons/ro-flag/ro-flag.component.html +0 -5
- package/src/icon/flag-icons/ro-flag/ro-flag.component.ts +0 -8
- package/src/icon/flag-icons/sk-flag/sk-flag.component.html +0 -34
- package/src/icon/flag-icons/sk-flag/sk-flag.component.ts +0 -8
- package/src/icon/flag-icons/uk-flag/uk-flag.component.html +0 -15
- package/src/icon/flag-icons/uk-flag/uk-flag.component.ts +0 -8
- package/src/icon/icon.component.css +0 -3
- package/src/icon/icon.component.html +0 -6
- package/src/icon/icon.component.spec.ts +0 -61
- package/src/icon/icon.component.ts +0 -105
- package/src/icon/public-api.ts +0 -16
- package/src/link/link.component.css +0 -1
- package/src/link/link.component.html +0 -3
- package/src/link/link.component.spec.ts +0 -33
- package/src/link/link.component.ts +0 -11
- package/src/paragraph/paragraph.component.css +0 -1
- package/src/paragraph/paragraph.component.html +0 -3
- package/src/paragraph/paragraph.component.spec.ts +0 -45
- package/src/paragraph/paragraph.component.ts +0 -23
- package/src/public-api.ts +0 -9
- package/tsconfig.json +0 -28
- package/tsconfig.lib.json +0 -11
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -11
package/README.md
CHANGED
|
@@ -8,3 +8,58 @@ _Dit project wordt **niet** gesteund door het Ministerie van Algemene Zaken._
|
|
|
8
8
|
centrale overheid van Nederland.**
|
|
9
9
|
|
|
10
10
|
Deze package is onderdeel van het [Rijkshuisstijl Community](../../README.md) project.
|
|
11
|
+
|
|
12
|
+
## Aan de slag met Angular-componenten
|
|
13
|
+
|
|
14
|
+
Om de Angular-componenten van de Rijkshuisstijl-community te gebruiken, installeer je het [components-angular npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/components-angular).
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install --save-dev @rijkshuisstijl-community/components-angular
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Dit installeert de Angular-componenten. Om deze componenten te gebruiken, kun je ze importeren in jouw app.
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { ButtonComponent } from '@rijkshuisstijl-community/components-angular';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'app-root',
|
|
27
|
+
imports: [ButtonComponent],
|
|
28
|
+
templateUrl: './app.component.html',
|
|
29
|
+
styleUrl: './app.component.css',
|
|
30
|
+
})
|
|
31
|
+
export class AppComponent {
|
|
32
|
+
title = 'angular-test';
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Thema toepassen
|
|
37
|
+
|
|
38
|
+
De Angular-componenten hebben geen eigen styling. Om de Rijkshuisstijl aan je project toe te voegen, installeer je het [design-tokens npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/design-tokens) en het [components-css npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/components-css).
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install --save-dev @rijkshuisstijl-community/design-tokens
|
|
42
|
+
npm install --save-dev @rijkshuisstijl-community/components-css
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Deze pakketten bevat de CSS-variabelen van het design systeem en de CSS-classes die de componenten aan de variabelen koppelen. Importeer het `index.css`-bestand uit de `dist` mappen van de pakketten, en omring het deel van je applicatie waar je het thema wilt toepassen met het Rijkshuisstijl-thema: `rhc-theme`.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { Component } from '@angular/core';
|
|
49
|
+
import { ButtonComponent } from '@rijkshuisstijl-community/components-angular';
|
|
50
|
+
import '@rijkshuisstijl-community/design-tokens/dist/index.css'; // design tokens importeren
|
|
51
|
+
import '@rijkshuisstijl-community/components-css/dist/index.css'; // css importeren
|
|
52
|
+
|
|
53
|
+
@Component({
|
|
54
|
+
selector: 'app-root',
|
|
55
|
+
imports: [ButtonComponent],
|
|
56
|
+
template: `
|
|
57
|
+
<main class="main" class="rhc-theme">
|
|
58
|
+
<button rhc-button [appearance]="'primary-action'" [disabled]="false">hello world</button>
|
|
59
|
+
</main>
|
|
60
|
+
`,
|
|
61
|
+
})
|
|
62
|
+
export class AppComponent {}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Bekijk de [packages/font/README.md](https://github.com/nl-design-system/rijkshuisstijl-community/blob/main/packages/font/README.md) voor de meerdere manieren om de lettertypen te installeren voor jouw project.
|
package/dist/README.md
CHANGED
|
@@ -8,3 +8,58 @@ _Dit project wordt **niet** gesteund door het Ministerie van Algemene Zaken._
|
|
|
8
8
|
centrale overheid van Nederland.**
|
|
9
9
|
|
|
10
10
|
Deze package is onderdeel van het [Rijkshuisstijl Community](../../README.md) project.
|
|
11
|
+
|
|
12
|
+
## Aan de slag met Angular-componenten
|
|
13
|
+
|
|
14
|
+
Om de Angular-componenten van de Rijkshuisstijl-community te gebruiken, installeer je het [components-angular npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/components-angular).
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install --save-dev @rijkshuisstijl-community/components-angular
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Dit installeert de Angular-componenten. Om deze componenten te gebruiken, kun je ze importeren in jouw app.
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { ButtonComponent } from '@rijkshuisstijl-community/components-angular';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'app-root',
|
|
27
|
+
imports: [ButtonComponent],
|
|
28
|
+
templateUrl: './app.component.html',
|
|
29
|
+
styleUrl: './app.component.css',
|
|
30
|
+
})
|
|
31
|
+
export class AppComponent {
|
|
32
|
+
title = 'angular-test';
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Thema toepassen
|
|
37
|
+
|
|
38
|
+
De Angular-componenten hebben geen eigen styling. Om de Rijkshuisstijl aan je project toe te voegen, installeer je het [design-tokens npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/design-tokens) en het [components-css npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/components-css).
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install --save-dev @rijkshuisstijl-community/design-tokens
|
|
42
|
+
npm install --save-dev @rijkshuisstijl-community/components-css
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Deze pakketten bevat de CSS-variabelen van het design systeem en de CSS-classes die de componenten aan de variabelen koppelen. Importeer het `index.css`-bestand uit de `dist` mappen van de pakketten, en omring het deel van je applicatie waar je het thema wilt toepassen met het Rijkshuisstijl-thema: `rhc-theme`.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { Component } from '@angular/core';
|
|
49
|
+
import { ButtonComponent } from '@rijkshuisstijl-community/components-angular';
|
|
50
|
+
import '@rijkshuisstijl-community/design-tokens/dist/index.css'; // design tokens importeren
|
|
51
|
+
import '@rijkshuisstijl-community/components-css/dist/index.css'; // css importeren
|
|
52
|
+
|
|
53
|
+
@Component({
|
|
54
|
+
selector: 'app-root',
|
|
55
|
+
imports: [ButtonComponent],
|
|
56
|
+
template: `
|
|
57
|
+
<main class="main" class="rhc-theme">
|
|
58
|
+
<button rhc-button [appearance]="'primary-action'" [disabled]="false">hello world</button>
|
|
59
|
+
</main>
|
|
60
|
+
`,
|
|
61
|
+
})
|
|
62
|
+
export class AppComponent {}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Bekijk de [packages/font/README.md](https://github.com/nl-design-system/rijkshuisstijl-community/blob/main/packages/font/README.md) voor de meerdere manieren om de lettertypen te installeren voor jouw project.
|
|
@@ -2,7 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class ButtonComponent {
|
|
3
3
|
appearance?: '' | 'primary-action' | 'secondary-action' | 'subtle';
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
computedClasses: () => string;
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "rhc-button", never, { "appearance": { "alias": "appearance"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[rhc-button]", never, { "appearance": { "alias": "appearance"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
8
7
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ColumnLayoutComponent {
|
|
3
|
+
rule?: boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnLayoutComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnLayoutComponent, "rhc-column-layout", never, { "rule": { "alias": "rule"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DataSummaryComponent {
|
|
3
|
+
appearance: 'Column' | 'Row';
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataSummaryComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataSummaryComponent, "rhc-data-summary", never, { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DataSummaryItemComponent {
|
|
3
|
+
key: string;
|
|
4
|
+
value: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
target?: '_self' | '_blank' | '_parent' | '_top' | '_unfencedTop';
|
|
7
|
+
actionLabel?: string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataSummaryItemComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataSummaryItemComponent, "div[rhc-data-summary-item]", never, { "key": { "alias": "key"; "required": false; }; "value": { "alias": "value"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "actionLabel": { "alias": "actionLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|