@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
|
@@ -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
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -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
|
-
}
|