@registrucentras/rc-ses-angular-components 0.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/.editorconfig +17 -0
- package/.gitattributes +1 -0
- package/.github/workflows/build-and-publish.yml +50 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +31 -0
- package/RELEASE_NOTES.md +29 -0
- package/angular.json +173 -0
- package/karma.conf.js +53 -0
- package/package.json +48 -0
- package/projects/app/public/favicon.ico +0 -0
- package/projects/app/src/app/app.component.html +3 -0
- package/projects/app/src/app/app.component.scss +0 -0
- package/projects/app/src/app/app.component.ts +20 -0
- package/projects/app/src/app/app.config.ts +33 -0
- package/projects/app/src/app/app.routes.ts +16 -0
- package/projects/app/src/app/landing-page/landing-page.html +20 -0
- package/projects/app/src/app/landing-page/landing-page.scss +0 -0
- package/projects/app/src/app/landing-page/landing-page.ts +37 -0
- package/projects/app/src/app/sample-form-multiple-steps/sample-form-multiple-steps.html +283 -0
- package/projects/app/src/app/sample-form-multiple-steps/sample-form-multiple-steps.scss +0 -0
- package/projects/app/src/app/sample-form-multiple-steps/sample-form-multiple-steps.ts +223 -0
- package/projects/app/src/app/sample-form-single-step/sample-form-single-step.html +271 -0
- package/projects/app/src/app/sample-form-single-step/sample-form-single-step.scss +0 -0
- package/projects/app/src/app/sample-form-single-step/sample-form-single-step.ts +142 -0
- package/projects/app/src/index.html +18 -0
- package/projects/app/src/main.ts +6 -0
- package/projects/app/tsconfig.app.json +15 -0
- package/projects/app/tsconfig.spec.json +15 -0
- package/projects/rc-ses/angular-components/README.md +31 -0
- package/projects/rc-ses/angular-components/ng-package.json +13 -0
- package/projects/rc-ses/angular-components/package-lock.json +224 -0
- package/projects/rc-ses/angular-components/package.json +40 -0
- package/projects/rc-ses/angular-components/src/lib/components/accordion/accordion.scss +71 -0
- package/projects/rc-ses/angular-components/src/lib/components/accordion/accordion.ts +31 -0
- package/projects/rc-ses/angular-components/src/lib/components/breadcrumbs/breadcrumbs.html +7 -0
- package/projects/rc-ses/angular-components/src/lib/components/breadcrumbs/breadcrumbs.scss +54 -0
- package/projects/rc-ses/angular-components/src/lib/components/breadcrumbs/breadcrumbs.ts +40 -0
- package/projects/rc-ses/angular-components/src/lib/components/button/button.scss +248 -0
- package/projects/rc-ses/angular-components/src/lib/components/button/button.spec.ts +46 -0
- package/projects/rc-ses/angular-components/src/lib/components/button/button.ts +34 -0
- package/projects/rc-ses/angular-components/src/lib/components/divider/divider.scss +18 -0
- package/projects/rc-ses/angular-components/src/lib/components/divider/divider.ts +16 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/form-field/form-field.html +11 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/form-field/form-field.scss +149 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/form-field/form-field.ts +87 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox.html +10 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox.scss +36 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox.ts +89 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/checkbox/checkbox.scss +132 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/datepicker/datepicker.scss +18 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/input/input.scss +66 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/input/input.ts +31 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper.html +30 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper.scss +88 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper.ts +103 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/radio/radio.scss +85 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group.html +7 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group.scss +87 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group.ts +101 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/select/select.html +40 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/select/select.scss +153 -0
- package/projects/rc-ses/angular-components/src/lib/components/form/input/select/select.ts +155 -0
- package/projects/rc-ses/angular-components/src/lib/components/icons/icons.module.ts +61 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-actions/service-form-actions.html +19 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-actions/service-form-actions.scss +64 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-actions/service-form-actions.ts +45 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container.html +16 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container.scss +32 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container.ts +43 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-header/service-header.html +5 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-header/service-header.scss +35 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-header/service-header.ts +48 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-page/service-page.html +14 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-page/service-page.scss +38 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-page/service-page.ts +37 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps.html +18 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps.scss +93 -0
- package/projects/rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps.ts +41 -0
- package/projects/rc-ses/angular-components/src/lib/components/message/message.html +39 -0
- package/projects/rc-ses/angular-components/src/lib/components/message/message.scss +141 -0
- package/projects/rc-ses/angular-components/src/lib/components/message/message.ts +52 -0
- package/projects/rc-ses/angular-components/src/lib/theme/index.scss +65 -0
- package/projects/rc-ses/angular-components/src/lib/theme/palette.scss +183 -0
- package/projects/rc-ses/angular-components/src/lib/theme/theme.scss +24 -0
- package/projects/rc-ses/angular-components/src/lib/theme/typography.scss +63 -0
- package/projects/rc-ses/angular-components/src/public-api.ts +22 -0
- package/projects/rc-ses/angular-components/src/styles.scss +40 -0
- package/projects/rc-ses/angular-components/src/test.ts +14 -0
- package/projects/rc-ses/angular-components/tsconfig.lib.json +15 -0
- package/projects/rc-ses/angular-components/tsconfig.lib.prod.json +11 -0
- package/tsconfig.json +37 -0
- package/tsconfig.spec.json +18 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DOCUMENT } from "@angular/common";
|
|
2
|
+
import { Component, AfterViewInit, OnDestroy, ElementRef, Inject, OnInit, Renderer2, Input, ChangeDetectionStrategy, ContentChild, contentChild, booleanAttribute, contentChildren } from "@angular/core";
|
|
3
|
+
import { MatButtonModule } from "@angular/material/button";
|
|
4
|
+
import { MatIconModule } from "@angular/material/icon";
|
|
5
|
+
import { RcSesButtonDirective } from "../button/button";
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'rc-ses-message',
|
|
9
|
+
standalone: true,
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
templateUrl: 'message.html',
|
|
12
|
+
imports: [
|
|
13
|
+
MatButtonModule,
|
|
14
|
+
MatIconModule,
|
|
15
|
+
RcSesButtonDirective,
|
|
16
|
+
],
|
|
17
|
+
host: {
|
|
18
|
+
class: 'rc-ses-element rc-ses-message'
|
|
19
|
+
},
|
|
20
|
+
})
|
|
21
|
+
export class RcSesMessageComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
22
|
+
@Input() severity: 'default' | 'info' | 'warning' | 'error' | 'success' | null | undefined = 'default';
|
|
23
|
+
@Input() theme: 'light' | 'dark' | null | undefined = 'light';
|
|
24
|
+
|
|
25
|
+
@Input({ transform: booleanAttribute }) hideIcon: boolean = false;
|
|
26
|
+
@Input({ transform: booleanAttribute }) dismissible: boolean = false;
|
|
27
|
+
|
|
28
|
+
public initialized: boolean | undefined;
|
|
29
|
+
|
|
30
|
+
constructor(
|
|
31
|
+
@Inject(DOCUMENT) private _document: Document,
|
|
32
|
+
public _el: ElementRef,
|
|
33
|
+
private _renderer: Renderer2,
|
|
34
|
+
) {}
|
|
35
|
+
|
|
36
|
+
ngOnInit() {}
|
|
37
|
+
|
|
38
|
+
ngAfterViewInit() {
|
|
39
|
+
this.initialized = true;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
ngOnDestroy() {
|
|
43
|
+
this.initialized = false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get containerClass() {
|
|
47
|
+
return {
|
|
48
|
+
[`rc-ses-message--severity-${this.severity}`]: this.severity,
|
|
49
|
+
[`rc-ses-message--theme-${this.theme}`]: this.theme,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@use './palette.scss' as palette;
|
|
4
|
+
@use './typography.scss' as typography;
|
|
5
|
+
@use './theme.scss' as theme;
|
|
6
|
+
|
|
7
|
+
@use '../components/accordion/accordion.scss' as rc-ses-accordion;
|
|
8
|
+
@use '../components/breadcrumbs/breadcrumbs.scss' as rc-ses-breadcrumbs;
|
|
9
|
+
@use '../components/button/button.scss' as rc-ses-button;
|
|
10
|
+
@use '../components/divider/divider.scss' as rc-ses-divider;
|
|
11
|
+
@use '../components/form/form-field/form-field.scss' as rc-ses-form-field;
|
|
12
|
+
@use '../components/form/input/agreement-checkbox/agreement-checkbox.scss' as rc-ses-agreement-checkbox;
|
|
13
|
+
@use '../components/form/input/checkbox/checkbox.scss' as rc-ses-checkbox;
|
|
14
|
+
@use '../components/form/input/datepicker/datepicker.scss' as rc-ses-datepicker;
|
|
15
|
+
@use '../components/form/input/input/input.scss' as rc-ses-input;
|
|
16
|
+
@use '../components/form/input/number-stepper/number-stepper.scss' as rc-ses-number-stepper;
|
|
17
|
+
@use '../components/form/input/select/select.scss' as rc-ses-select;
|
|
18
|
+
@use '../components/form/input/radio/radio.scss' as rc-ses-radio;
|
|
19
|
+
@use '../components/form/input/radio-button-group/radio-button-group.scss' as rc-ses-radio-button-group;
|
|
20
|
+
@use '../components/message/message.scss' as rc-ses-message;
|
|
21
|
+
@use '../components/layout/service-header/service-header.scss' as rc-ses-service-header;
|
|
22
|
+
@use '../components/layout/service-form-actions/service-form-actions.scss' as rc-ses-service-form-actions;
|
|
23
|
+
@use '../components/layout/service-form-container/service-form-container.scss' as rc-ses-service-form-container;
|
|
24
|
+
@use '../components/layout/service-page/service-page.scss' as rc-ses-service-page;
|
|
25
|
+
@use '../components/layout/service-wizard-steps/service-wizard-steps.scss' as rc-ses-service-wizard-steps;
|
|
26
|
+
|
|
27
|
+
@layer rc-ses-variables, rc-ses, material;
|
|
28
|
+
|
|
29
|
+
@layer material {
|
|
30
|
+
@include mat.core();
|
|
31
|
+
|
|
32
|
+
html {
|
|
33
|
+
@include mat.all-component-themes(theme.$theme);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
html, body {
|
|
37
|
+
height: 100%;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include mat.color-variants-backwards-compatibility(theme.$theme);
|
|
42
|
+
@include mat.typography-hierarchy(typography.$typography, $back-compat: true);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include rc-ses-agreement-checkbox.bootstrap(theme.$theme, typography.$typography);
|
|
46
|
+
@include rc-ses-accordion.bootstrap(theme.$theme, typography.$typography);
|
|
47
|
+
@include rc-ses-button.bootstrap(theme.$theme, typography.$typography);
|
|
48
|
+
@include rc-ses-checkbox.bootstrap(theme.$theme, typography.$typography);
|
|
49
|
+
@include rc-ses-divider.bootstrap(theme.$theme, typography.$typography);
|
|
50
|
+
@include rc-ses-form-field.bootstrap(theme.$theme, typography.$typography);
|
|
51
|
+
@include rc-ses-datepicker.bootstrap(theme.$theme, typography.$typography);
|
|
52
|
+
@include rc-ses-input.bootstrap(theme.$theme, typography.$typography);
|
|
53
|
+
@include rc-ses-message.bootstrap(theme.$theme, typography.$typography);
|
|
54
|
+
@include rc-ses-number-stepper.bootstrap(theme.$theme, typography.$typography);
|
|
55
|
+
@include rc-ses-radio.bootstrap(theme.$theme, typography.$typography);
|
|
56
|
+
@include rc-ses-radio-button-group.bootstrap(theme.$theme, typography.$typography);
|
|
57
|
+
@include rc-ses-select.bootstrap(theme.$theme, typography.$typography);
|
|
58
|
+
|
|
59
|
+
@include rc-ses-service-header.bootstrap(theme.$theme, typography.$typography);
|
|
60
|
+
@include rc-ses-breadcrumbs.bootstrap(theme.$theme, typography.$typography);
|
|
61
|
+
@include rc-ses-service-form-actions.bootstrap(theme.$theme, typography.$typography);
|
|
62
|
+
@include rc-ses-service-form-container.bootstrap(theme.$theme, typography.$typography);
|
|
63
|
+
@include rc-ses-service-page.bootstrap(theme.$theme, typography.$typography);
|
|
64
|
+
@include rc-ses-service-wizard-steps.bootstrap(theme.$theme, typography.$typography);
|
|
65
|
+
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
$rc-ses-primary-palette: (
|
|
2
|
+
0: #082d44,
|
|
3
|
+
10: #082d44,
|
|
4
|
+
20: #164763,
|
|
5
|
+
25: #155575,
|
|
6
|
+
30: #0e6790,
|
|
7
|
+
35: #087fb2,
|
|
8
|
+
40: #087fb2,
|
|
9
|
+
50: #06a0d4,
|
|
10
|
+
60: #50c9f3,
|
|
11
|
+
70: #50c9f3,
|
|
12
|
+
80: #88daf7,
|
|
13
|
+
90: #88daf7,
|
|
14
|
+
95: #b9e9fa,
|
|
15
|
+
98: #dcf4fc,
|
|
16
|
+
99: #ecf9fe,
|
|
17
|
+
100: #f3fbfe,
|
|
18
|
+
|
|
19
|
+
secondary: (
|
|
20
|
+
0: #002c24,
|
|
21
|
+
10: #002c24,
|
|
22
|
+
20: #004e3d,
|
|
23
|
+
25: #00664e,
|
|
24
|
+
30: #008561,
|
|
25
|
+
35: #00a879,
|
|
26
|
+
40: #00a879,
|
|
27
|
+
50: #00c288,
|
|
28
|
+
60: #05d091,
|
|
29
|
+
70: #05d091,
|
|
30
|
+
80: #6fe7bd,
|
|
31
|
+
90: #6fe7bd,
|
|
32
|
+
95: #a5f3d3,
|
|
33
|
+
98: #d1fae7,
|
|
34
|
+
99: #ecfdf6,
|
|
35
|
+
100: #ecfdf6,
|
|
36
|
+
),
|
|
37
|
+
neutral: (
|
|
38
|
+
0: #10161f,
|
|
39
|
+
10: #10161f,
|
|
40
|
+
20: #1f2733,
|
|
41
|
+
25: #29323d,
|
|
42
|
+
30: #4a5361,
|
|
43
|
+
35: #6b747f,
|
|
44
|
+
40: #6b747f,
|
|
45
|
+
50: #8e959e,
|
|
46
|
+
60: #a9afb8,
|
|
47
|
+
70: #a9afb8,
|
|
48
|
+
80: #c5cad1,
|
|
49
|
+
90: #c5cad1,
|
|
50
|
+
95: #dce0e5,
|
|
51
|
+
98: #f0f2f5,
|
|
52
|
+
99: #f9fafb,
|
|
53
|
+
100: #f9fafb,
|
|
54
|
+
),
|
|
55
|
+
neutral-variant: (
|
|
56
|
+
0: #10161f,
|
|
57
|
+
10: #10161f,
|
|
58
|
+
20: #1f2733,
|
|
59
|
+
25: #29323d,
|
|
60
|
+
30: #4a5361,
|
|
61
|
+
35: #6b747f,
|
|
62
|
+
40: #6b747f,
|
|
63
|
+
50: #8e959e,
|
|
64
|
+
60: #a9afb8,
|
|
65
|
+
70: #a9afb8,
|
|
66
|
+
80: #c5cad1,
|
|
67
|
+
90: #c5cad1,
|
|
68
|
+
95: #dce0e5,
|
|
69
|
+
98: #f0f2f5,
|
|
70
|
+
99: #f9fafb,
|
|
71
|
+
100: #f9fafb,
|
|
72
|
+
),
|
|
73
|
+
error: (
|
|
74
|
+
0: #31110d,
|
|
75
|
+
10: #31110d,
|
|
76
|
+
20: #4a1a14,
|
|
77
|
+
25: #63231b,
|
|
78
|
+
30: #96362a,
|
|
79
|
+
35: #c84838,
|
|
80
|
+
40: #c84838,
|
|
81
|
+
50: #fa5a46,
|
|
82
|
+
60: #fb7b6b,
|
|
83
|
+
70: #fb7b6b,
|
|
84
|
+
80: #fc9c90,
|
|
85
|
+
90: #fdbdb5,
|
|
86
|
+
95: #fdbdb5,
|
|
87
|
+
98: #fededa,
|
|
88
|
+
99: #fef4f2,
|
|
89
|
+
100: #fef4f2,
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
$rc-ses-tertiary-palette: (
|
|
94
|
+
0: #082d44,
|
|
95
|
+
10: #082d44,
|
|
96
|
+
20: #164763,
|
|
97
|
+
25: #155575,
|
|
98
|
+
30: #0e6790,
|
|
99
|
+
35: #087fb2,
|
|
100
|
+
40: #087fb2,
|
|
101
|
+
50: #06a0d4,
|
|
102
|
+
60: #50c9f3,
|
|
103
|
+
70: #50c9f3,
|
|
104
|
+
80: #88daf7,
|
|
105
|
+
90: #88daf7,
|
|
106
|
+
95: #b9e9fa,
|
|
107
|
+
98: #dcf4fc,
|
|
108
|
+
99: #ecf9fe,
|
|
109
|
+
100: #f3fbfe,
|
|
110
|
+
|
|
111
|
+
secondary: (
|
|
112
|
+
0: #002c24,
|
|
113
|
+
10: #002c24,
|
|
114
|
+
20: #004e3d,
|
|
115
|
+
25: #00664e,
|
|
116
|
+
30: #008561,
|
|
117
|
+
35: #00a879,
|
|
118
|
+
40: #00a879,
|
|
119
|
+
50: #00c288,
|
|
120
|
+
60: #05d091,
|
|
121
|
+
70: #05d091,
|
|
122
|
+
80: #6fe7bd,
|
|
123
|
+
90: #6fe7bd,
|
|
124
|
+
95: #a5f3d3,
|
|
125
|
+
98: #d1fae7,
|
|
126
|
+
99: #ecfdf6,
|
|
127
|
+
100: #ecfdf6,
|
|
128
|
+
),
|
|
129
|
+
neutral: (
|
|
130
|
+
0: #10161f,
|
|
131
|
+
10: #10161f,
|
|
132
|
+
20: #1f2733,
|
|
133
|
+
25: #29323d,
|
|
134
|
+
30: #4a5361,
|
|
135
|
+
35: #6b747f,
|
|
136
|
+
40: #6b747f,
|
|
137
|
+
50: #8e959e,
|
|
138
|
+
60: #a9afb8,
|
|
139
|
+
70: #a9afb8,
|
|
140
|
+
80: #c5cad1,
|
|
141
|
+
90: #dce0e5,
|
|
142
|
+
95: #dce0e5,
|
|
143
|
+
98: #f0f2f5,
|
|
144
|
+
99: #f9fafb,
|
|
145
|
+
100: #f9fafb,
|
|
146
|
+
),
|
|
147
|
+
neutral-variant: (
|
|
148
|
+
0: #10161f,
|
|
149
|
+
10: #10161f,
|
|
150
|
+
20: #1f2733,
|
|
151
|
+
25: #29323d,
|
|
152
|
+
30: #4a5361,
|
|
153
|
+
35: #6b747f,
|
|
154
|
+
40: #6b747f,
|
|
155
|
+
50: #6b747f,
|
|
156
|
+
60: #a9afb8,
|
|
157
|
+
70: #a9afb8,
|
|
158
|
+
80: #c5cad1,
|
|
159
|
+
90: #c5cad1,
|
|
160
|
+
95: #dce0e5,
|
|
161
|
+
98: #f0f2f5,
|
|
162
|
+
99: #f9fafb,
|
|
163
|
+
100: #f9fafb,
|
|
164
|
+
),
|
|
165
|
+
error: (
|
|
166
|
+
0: #31110d,
|
|
167
|
+
10: #31110d,
|
|
168
|
+
20: #4a1a14,
|
|
169
|
+
25: #63231b,
|
|
170
|
+
30: #96362a,
|
|
171
|
+
35: #c84838,
|
|
172
|
+
40: #c84838,
|
|
173
|
+
50: #fa5a46,
|
|
174
|
+
60: #fb7b6b,
|
|
175
|
+
70: #fb7b6b,
|
|
176
|
+
80: #fdbdb5,
|
|
177
|
+
90: #fdbdb5,
|
|
178
|
+
95: #fdbdb5,
|
|
179
|
+
98: #fededa,
|
|
180
|
+
99: #fef4f2,
|
|
181
|
+
100: #fef4f2,
|
|
182
|
+
),
|
|
183
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use './palette.scss' as palette;
|
|
3
|
+
|
|
4
|
+
$theme: null;
|
|
5
|
+
|
|
6
|
+
@layer material {
|
|
7
|
+
$theme: mat.define-theme((
|
|
8
|
+
color: (
|
|
9
|
+
theme-type: light,
|
|
10
|
+
primary: palette.$rc-ses-primary-palette,
|
|
11
|
+
tertiary: palette.$rc-ses-tertiary-palette,
|
|
12
|
+
),
|
|
13
|
+
density: (
|
|
14
|
+
scale: 0,
|
|
15
|
+
),
|
|
16
|
+
typography: (
|
|
17
|
+
brand-family: 'Public Sans',
|
|
18
|
+
plain-family: 'Public Sans',
|
|
19
|
+
bold-weight: 700,
|
|
20
|
+
medium-weight: 500,
|
|
21
|
+
regular-weight: 400
|
|
22
|
+
)
|
|
23
|
+
)) !global;
|
|
24
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
$typography: null;
|
|
4
|
+
|
|
5
|
+
@layer material {
|
|
6
|
+
$typography: mat.m2-define-typography-config(
|
|
7
|
+
$font-family: 'Public Sans',
|
|
8
|
+
$headline-1: mat.m2-define-typography-level(
|
|
9
|
+
$font-size: 2.25rem,
|
|
10
|
+
$font-weight: 500,
|
|
11
|
+
$letter-spacing: 0,
|
|
12
|
+
$line-height: 3rem,
|
|
13
|
+
),
|
|
14
|
+
$headline-2: mat.m2-define-typography-level(
|
|
15
|
+
$font-size: 5rem,
|
|
16
|
+
$font-weight: 500,
|
|
17
|
+
$letter-spacing: 0,
|
|
18
|
+
$line-height: 2.7,
|
|
19
|
+
),
|
|
20
|
+
$headline-3: mat.m2-define-typography-level(
|
|
21
|
+
$font-size: 1.75rem,
|
|
22
|
+
$font-weight: 500,
|
|
23
|
+
$letter-spacing: 0,
|
|
24
|
+
$line-height: 2.3625,
|
|
25
|
+
),
|
|
26
|
+
$headline-4: mat.m2-define-typography-level(
|
|
27
|
+
$font-size: 1.5rem,
|
|
28
|
+
$font-weight: 500,
|
|
29
|
+
$letter-spacing: 0,
|
|
30
|
+
$line-height: 2.025,
|
|
31
|
+
),
|
|
32
|
+
$headline-5: mat.m2-define-typography-level(
|
|
33
|
+
$font-size: 2.25rem,
|
|
34
|
+
$font-weight: 500,
|
|
35
|
+
$letter-spacing: 0,
|
|
36
|
+
$line-height: 3rem,
|
|
37
|
+
),
|
|
38
|
+
$headline-6: mat.m2-define-typography-level(
|
|
39
|
+
$font-size: 1.25rem,
|
|
40
|
+
$font-weight: 500,
|
|
41
|
+
$letter-spacing: 0,
|
|
42
|
+
$line-height: 1.51875,
|
|
43
|
+
),
|
|
44
|
+
$body-1: mat.m2-define-typography-level(
|
|
45
|
+
$font-size: 0.9375rem,
|
|
46
|
+
$font-weight: 400,
|
|
47
|
+
$letter-spacing: 0,
|
|
48
|
+
$line-height: 1.125rem,
|
|
49
|
+
),
|
|
50
|
+
$body-2: mat.m2-define-typography-level(
|
|
51
|
+
$font-size: 0.9375rem,
|
|
52
|
+
$font-weight: 400,
|
|
53
|
+
$letter-spacing: 0,
|
|
54
|
+
$line-height: 1.125rem,
|
|
55
|
+
),
|
|
56
|
+
$button: mat.m2-define-typography-level(
|
|
57
|
+
$font-weight: 400,
|
|
58
|
+
$font-size: 0.9375rem,
|
|
59
|
+
$line-height: 1.125rem,
|
|
60
|
+
$letter-spacing: 0,
|
|
61
|
+
),
|
|
62
|
+
) !global;
|
|
63
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of @rc-ses/angular-components
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib/components/accordion/accordion';
|
|
5
|
+
export * from './lib/components/breadcrumbs/breadcrumbs';
|
|
6
|
+
export * from './lib/components/divider/divider';
|
|
7
|
+
export * from './lib/components/form/form-field/form-field';
|
|
8
|
+
|
|
9
|
+
export * from './lib/components/form/input/agreement-checkbox/agreement-checkbox';
|
|
10
|
+
export * from './lib/components/form/input/input/input';
|
|
11
|
+
export * from './lib/components/form/input/number-stepper/number-stepper';
|
|
12
|
+
export * from './lib/components/form/input/radio-button-group/radio-button-group';
|
|
13
|
+
export * from './lib/components/form/input/select/select';
|
|
14
|
+
|
|
15
|
+
export * from './lib/components/layout/service-form-actions/service-form-actions';
|
|
16
|
+
export * from './lib/components/layout/service-form-container/service-form-container';
|
|
17
|
+
export * from './lib/components/layout/service-header/service-header';
|
|
18
|
+
export * from './lib/components/layout/service-page/service-page';
|
|
19
|
+
export * from './lib/components/layout/service-wizard-steps/service-wizard-steps';
|
|
20
|
+
|
|
21
|
+
export * from './lib/components/message/message';
|
|
22
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
// Custom Theming for Angular Material
|
|
3
|
+
// For more information: https://material.angular.io/guide/theming
|
|
4
|
+
@use '@angular/material' as mat;
|
|
5
|
+
// Plus imports for other components in your app.
|
|
6
|
+
|
|
7
|
+
// Include the common styles for Angular Material. We include this here so that you only
|
|
8
|
+
// have to load a single css file for Angular Material in your app.
|
|
9
|
+
// Be sure that you only ever include this mixin once!
|
|
10
|
+
@include mat.core();
|
|
11
|
+
|
|
12
|
+
// Define the theme object.
|
|
13
|
+
$app-theme: mat.define-theme((
|
|
14
|
+
color: (
|
|
15
|
+
theme-type: light,
|
|
16
|
+
primary: mat.$azure-palette,
|
|
17
|
+
tertiary: mat.$blue-palette,
|
|
18
|
+
),
|
|
19
|
+
density: (
|
|
20
|
+
scale: 0,
|
|
21
|
+
)
|
|
22
|
+
));
|
|
23
|
+
|
|
24
|
+
// Include theme styles for core and each component used in your app.
|
|
25
|
+
// Alternatively, you can import and @include the theme mixins for each component
|
|
26
|
+
// that you are using.
|
|
27
|
+
:root {
|
|
28
|
+
@include mat.all-component-themes($app-theme);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Comment out the line below if you want to use the pre-defined typography utility classes.
|
|
32
|
+
// For more information: https://material.angular.io/guide/typography#using-typography-styles-in-your-application.
|
|
33
|
+
// @include mat.typography-hierarchy($app-theme);
|
|
34
|
+
|
|
35
|
+
// Comment out the line below if you want to use the deprecated `color` inputs.
|
|
36
|
+
// @include mat.color-variants-backwards-compatibility($app-theme);
|
|
37
|
+
/* You can add global styles to this file, and also import other style files */
|
|
38
|
+
|
|
39
|
+
html, body { height: 100%; }
|
|
40
|
+
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
import 'zone.js/testing';
|
|
3
|
+
import { getTestBed } from '@angular/core/testing';
|
|
4
|
+
import {
|
|
5
|
+
BrowserDynamicTestingModule,
|
|
6
|
+
platformBrowserDynamicTesting
|
|
7
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
8
|
+
|
|
9
|
+
// First, initialize the Angular testing environment.
|
|
10
|
+
getTestBed().initTestEnvironment(
|
|
11
|
+
BrowserDynamicTestingModule,
|
|
12
|
+
platformBrowserDynamicTesting(),
|
|
13
|
+
);
|
|
14
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "../../../tsconfig.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"outDir": "../../../out-tsc/lib",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"inlineSources": true,
|
|
10
|
+
"types": []
|
|
11
|
+
},
|
|
12
|
+
"exclude": [
|
|
13
|
+
"**/*.spec.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "./tsconfig.lib.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"declarationMap": false
|
|
7
|
+
},
|
|
8
|
+
"angularCompilerOptions": {
|
|
9
|
+
"compilationMode": "partial"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"compileOnSave": false,
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"paths": {
|
|
7
|
+
"@registrucentras/rc-ses-angular-components": [
|
|
8
|
+
"./dist/registrucentras/rc-ses-angular-components"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"outDir": "./dist/out-tsc",
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noImplicitOverride": true,
|
|
14
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
15
|
+
"noImplicitReturns": true,
|
|
16
|
+
"noFallthroughCasesInSwitch": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
"sourceMap": true,
|
|
20
|
+
"declaration": false,
|
|
21
|
+
"experimentalDecorators": true,
|
|
22
|
+
"moduleResolution": "bundler",
|
|
23
|
+
"importHelpers": true,
|
|
24
|
+
"target": "ES2022",
|
|
25
|
+
"module": "ES2022",
|
|
26
|
+
"lib": [
|
|
27
|
+
"ES2022",
|
|
28
|
+
"dom"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"angularCompilerOptions": {
|
|
32
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
33
|
+
"strictInjectionParameters": true,
|
|
34
|
+
"strictInputAccessModifiers": true,
|
|
35
|
+
"strictTemplates": true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "./tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "./out-tsc/spec",
|
|
6
|
+
"types": [
|
|
7
|
+
"jasmine"
|
|
8
|
+
],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"projects/rc-ses/angular-components/src/test.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"projects/rc-ses/angular-components/src/**/*.spec.ts",
|
|
16
|
+
"projects/rc-ses/angular-components/src/**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|