@rijkshuisstijl-community/components-angular 1.0.0 → 1.1.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.
Files changed (90) hide show
  1. package/dist/button/button.component.d.ts +1 -2
  2. package/dist/column-layout/column-layout.component.d.ts +6 -0
  3. package/dist/fesm2022/rijkshuisstijl-community-components-angular.mjs +437 -7
  4. package/dist/fesm2022/rijkshuisstijl-community-components-angular.mjs.map +1 -1
  5. package/dist/figure/figure.component.d.ts +9 -0
  6. package/dist/figure-caption/figure-caption.component.d.ts +5 -0
  7. package/dist/form-field/form-field.component.d.ts +12 -0
  8. package/dist/form-field-description/form-field-description.component.d.ts +9 -0
  9. package/dist/form-field-error-message/form-field-error-message.component.d.ts +5 -0
  10. package/dist/form-field-text-input/form-field-text-input.component.d.ts +37 -0
  11. package/dist/form-label/form-label.component.d.ts +8 -0
  12. package/dist/image/image.component.d.ts +5 -0
  13. package/dist/link-list/link-list.component.d.ts +5 -0
  14. package/dist/link-list-item/link-list-item.component.d.ts +5 -0
  15. package/dist/link-list-link/link-list-link.component.d.ts +6 -0
  16. package/dist/logo/logo.component.d.ts +7 -0
  17. package/dist/navbar/navbar.component.d.ts +6 -0
  18. package/dist/navbar-item/end-item.directive.d.ts +9 -0
  19. package/dist/navbar-item/heading-item.directive.d.ts +6 -0
  20. package/dist/navbar-item/navbar-item.component.d.ts +6 -0
  21. package/dist/public-api.d.ts +20 -0
  22. package/dist/text-input/text-input.component.d.ts +9 -0
  23. package/dist/unordered-list/unordered-list.component.d.ts +6 -0
  24. package/dist/unordered-list-item/unordered-list-item.component.d.ts +5 -0
  25. package/package.json +14 -6
  26. package/.eslintrc.json +0 -5
  27. package/CHANGELOG.md +0 -15
  28. package/angular.json +0 -37
  29. package/jest.config.js +0 -5
  30. package/ng-package.json +0 -7
  31. package/setup-jest.ts +0 -3
  32. package/src/action-group/action-group.component.html +0 -9
  33. package/src/action-group/action-group.component.spec.ts +0 -46
  34. package/src/action-group/action-group.component.ts +0 -10
  35. package/src/button/button.component.html +0 -3
  36. package/src/button/button.component.spec.ts +0 -41
  37. package/src/button/button.component.ts +0 -14
  38. package/src/heading/heading.component.css +0 -1
  39. package/src/heading/heading.component.html +0 -31
  40. package/src/heading/heading.component.spec.ts +0 -54
  41. package/src/heading/heading.component.ts +0 -19
  42. package/src/icon/RHCIconIDs.ts +0 -1182
  43. package/src/icon/dutch-map-icon/dutch-map-icon.component.html +0 -6
  44. package/src/icon/dutch-map-icon/dutch-map-icon.component.ts +0 -8
  45. package/src/icon/flag-icons/bg-flag/bg-flag.component.html +0 -5
  46. package/src/icon/flag-icons/bg-flag/bg-flag.component.ts +0 -8
  47. package/src/icon/flag-icons/de-flag/de-flag.component.html +0 -6
  48. package/src/icon/flag-icons/de-flag/de-flag.component.ts +0 -8
  49. package/src/icon/flag-icons/es-flag/es-flag.component.html +0 -2233
  50. package/src/icon/flag-icons/es-flag/es-flag.component.ts +0 -8
  51. package/src/icon/flag-icons/fr-flag/fr-flag.component.html +0 -5
  52. package/src/icon/flag-icons/fr-flag/fr-flag.component.ts +0 -8
  53. package/src/icon/flag-icons/gr-flag/gr-flag.component.html +0 -4
  54. package/src/icon/flag-icons/gr-flag/gr-flag.component.ts +0 -8
  55. package/src/icon/flag-icons/hu-flag/hu-flag.component.html +0 -5
  56. package/src/icon/flag-icons/hu-flag/hu-flag.component.ts +0 -8
  57. package/src/icon/flag-icons/it-flag/it-flag.component.html +0 -5
  58. package/src/icon/flag-icons/it-flag/it-flag.component.ts +0 -8
  59. package/src/icon/flag-icons/lv-flag/lv-flag.component.html +0 -4
  60. package/src/icon/flag-icons/lv-flag/lv-flag.component.ts +0 -8
  61. package/src/icon/flag-icons/nl-flag/nl-flag.component.html +0 -5
  62. package/src/icon/flag-icons/nl-flag/nl-flag.component.ts +0 -8
  63. package/src/icon/flag-icons/pl-flag/pl-flag.component.html +0 -4
  64. package/src/icon/flag-icons/pl-flag/pl-flag.component.ts +0 -8
  65. package/src/icon/flag-icons/pt-flag/pt-flag.component.html +0 -156
  66. package/src/icon/flag-icons/pt-flag/pt-flag.component.ts +0 -8
  67. package/src/icon/flag-icons/ro-flag/ro-flag.component.html +0 -5
  68. package/src/icon/flag-icons/ro-flag/ro-flag.component.ts +0 -8
  69. package/src/icon/flag-icons/sk-flag/sk-flag.component.html +0 -34
  70. package/src/icon/flag-icons/sk-flag/sk-flag.component.ts +0 -8
  71. package/src/icon/flag-icons/uk-flag/uk-flag.component.html +0 -15
  72. package/src/icon/flag-icons/uk-flag/uk-flag.component.ts +0 -8
  73. package/src/icon/icon.component.css +0 -3
  74. package/src/icon/icon.component.html +0 -6
  75. package/src/icon/icon.component.spec.ts +0 -61
  76. package/src/icon/icon.component.ts +0 -105
  77. package/src/icon/public-api.ts +0 -16
  78. package/src/link/link.component.css +0 -1
  79. package/src/link/link.component.html +0 -3
  80. package/src/link/link.component.spec.ts +0 -33
  81. package/src/link/link.component.ts +0 -11
  82. package/src/paragraph/paragraph.component.css +0 -1
  83. package/src/paragraph/paragraph.component.html +0 -3
  84. package/src/paragraph/paragraph.component.spec.ts +0 -45
  85. package/src/paragraph/paragraph.component.ts +0 -23
  86. package/src/public-api.ts +0 -9
  87. package/tsconfig.json +0 -28
  88. package/tsconfig.lib.json +0 -11
  89. package/tsconfig.lib.prod.json +0 -9
  90. package/tsconfig.spec.json +0 -11
@@ -1,3 +0,0 @@
1
- <p class="{{ computedClass() }}">
2
- <ng-content></ng-content>
3
- </p>
@@ -1,45 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { By } from '@angular/platform-browser';
3
- import { ParagraphComponent } from './paragraph.component';
4
-
5
- describe('ParagraphComponent', () => {
6
- let component: ParagraphComponent;
7
- let fixture: ComponentFixture<ParagraphComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ParagraphComponent],
12
- }).compileComponents();
13
-
14
- fixture = TestBed.createComponent(ParagraphComponent);
15
- component = fixture.componentInstance;
16
- fixture.detectChanges();
17
- });
18
-
19
- it('should create', () => {
20
- expect(component).toBeTruthy();
21
- });
22
-
23
- it('should contain the nl-paragraph class', () => {
24
- const element = fixture.debugElement.query(By.css('.nl-paragraph'));
25
- expect(element).toBeTruthy();
26
- });
27
-
28
- it('should apply the css classes conditionally according to appearance', () => {
29
- component.appearance = 'lead';
30
- fixture.detectChanges();
31
- let element = fixture.debugElement.query(By.css('.nl-paragraph--lead'));
32
- expect(element).toBeTruthy();
33
-
34
- component.appearance = undefined;
35
- fixture.detectChanges();
36
- element = fixture.debugElement.query(By.css('.nl-paragraph--lead'));
37
- expect(element).toBeFalsy();
38
- });
39
-
40
- it('should render rich text content', () => {
41
- const paragraphDebugElement = fixture.debugElement.query(By.css('.nl-paragraph'));
42
- paragraphDebugElement.nativeElement.innerHTML = '<strong>Breaking</strong> news';
43
- expect(fixture.nativeElement).toContainHTML('strong');
44
- });
45
- });
@@ -1,23 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
-
3
- export const appearanceOptions = [undefined, 'lead'] as const;
4
- export type AppearanceType = (typeof appearanceOptions)[number];
5
-
6
- @Component({
7
- selector: 'rhc-paragraph',
8
- imports: [],
9
- templateUrl: './paragraph.component.html',
10
- styleUrl: './paragraph.component.css',
11
- })
12
- export class ParagraphComponent {
13
- @Input() appearance?: AppearanceType;
14
-
15
- computedClass = () => {
16
- switch (this.appearance) {
17
- case 'lead':
18
- return 'nl-paragraph nl-paragraph--lead';
19
- default:
20
- return 'nl-paragraph';
21
- }
22
- };
23
- }
package/src/public-api.ts DELETED
@@ -1,9 +0,0 @@
1
- /*
2
- * Public API Surface of components-angular
3
- */
4
- export * from './heading/heading.component';
5
- export * from './paragraph/paragraph.component';
6
- export * from './link/link.component';
7
- export * from './button/button.component';
8
- export * from './action-group/action-group.component';
9
- export * from './icon/public-api';
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compileOnSave": false,
3
- "compilerOptions": {
4
- "paths": {
5
- "components-angular": ["./dist/components-angular"]
6
- },
7
- "outDir": "./dist/out-tsc",
8
- "strict": true,
9
- "noImplicitOverride": true,
10
- "noPropertyAccessFromIndexSignature": true,
11
- "noImplicitReturns": true,
12
- "noFallthroughCasesInSwitch": true,
13
- "skipLibCheck": true,
14
- "isolatedModules": true,
15
- "esModuleInterop": true,
16
- "experimentalDecorators": true,
17
- "moduleResolution": "bundler",
18
- "importHelpers": true,
19
- "target": "ES2022",
20
- "module": "ES2022"
21
- },
22
- "angularCompilerOptions": {
23
- "enableI18nLegacyMessageIdFormat": false,
24
- "strictInjectionParameters": true,
25
- "strictInputAccessModifiers": true,
26
- "strictTemplates": true
27
- }
28
- }
package/tsconfig.lib.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../out-tsc/lib",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "inlineSources": true,
8
- "types": []
9
- },
10
- "exclude": ["**/*.spec.ts"]
11
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "compilerOptions": {
4
- "declarationMap": false
5
- },
6
- "angularCompilerOptions": {
7
- "compilationMode": "partial"
8
- }
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "CommonJs",
5
- "types": ["jest", "@testing-library/jest-dom"],
6
- "esModuleInterop": true,
7
- "emitDecoratorMetadata": true
8
- },
9
- "include": ["./setup-jest.ts", "src/**/*.spec.ts", "src/**/*.d.ts"],
10
- "exclude": ["**/node_modules/*"]
11
- }