@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.
Files changed (94) hide show
  1. package/.editorconfig +17 -0
  2. package/.gitattributes +1 -0
  3. package/.github/workflows/build-and-publish.yml +50 -0
  4. package/.vscode/extensions.json +4 -0
  5. package/.vscode/launch.json +20 -0
  6. package/.vscode/tasks.json +42 -0
  7. package/README.md +31 -0
  8. package/RELEASE_NOTES.md +29 -0
  9. package/angular.json +173 -0
  10. package/karma.conf.js +53 -0
  11. package/package.json +48 -0
  12. package/projects/app/public/favicon.ico +0 -0
  13. package/projects/app/src/app/app.component.html +3 -0
  14. package/projects/app/src/app/app.component.scss +0 -0
  15. package/projects/app/src/app/app.component.ts +20 -0
  16. package/projects/app/src/app/app.config.ts +33 -0
  17. package/projects/app/src/app/app.routes.ts +16 -0
  18. package/projects/app/src/app/landing-page/landing-page.html +20 -0
  19. package/projects/app/src/app/landing-page/landing-page.scss +0 -0
  20. package/projects/app/src/app/landing-page/landing-page.ts +37 -0
  21. package/projects/app/src/app/sample-form-multiple-steps/sample-form-multiple-steps.html +283 -0
  22. package/projects/app/src/app/sample-form-multiple-steps/sample-form-multiple-steps.scss +0 -0
  23. package/projects/app/src/app/sample-form-multiple-steps/sample-form-multiple-steps.ts +223 -0
  24. package/projects/app/src/app/sample-form-single-step/sample-form-single-step.html +271 -0
  25. package/projects/app/src/app/sample-form-single-step/sample-form-single-step.scss +0 -0
  26. package/projects/app/src/app/sample-form-single-step/sample-form-single-step.ts +142 -0
  27. package/projects/app/src/index.html +18 -0
  28. package/projects/app/src/main.ts +6 -0
  29. package/projects/app/tsconfig.app.json +15 -0
  30. package/projects/app/tsconfig.spec.json +15 -0
  31. package/projects/rc-ses/angular-components/README.md +31 -0
  32. package/projects/rc-ses/angular-components/ng-package.json +13 -0
  33. package/projects/rc-ses/angular-components/package-lock.json +224 -0
  34. package/projects/rc-ses/angular-components/package.json +40 -0
  35. package/projects/rc-ses/angular-components/src/lib/components/accordion/accordion.scss +71 -0
  36. package/projects/rc-ses/angular-components/src/lib/components/accordion/accordion.ts +31 -0
  37. package/projects/rc-ses/angular-components/src/lib/components/breadcrumbs/breadcrumbs.html +7 -0
  38. package/projects/rc-ses/angular-components/src/lib/components/breadcrumbs/breadcrumbs.scss +54 -0
  39. package/projects/rc-ses/angular-components/src/lib/components/breadcrumbs/breadcrumbs.ts +40 -0
  40. package/projects/rc-ses/angular-components/src/lib/components/button/button.scss +248 -0
  41. package/projects/rc-ses/angular-components/src/lib/components/button/button.spec.ts +46 -0
  42. package/projects/rc-ses/angular-components/src/lib/components/button/button.ts +34 -0
  43. package/projects/rc-ses/angular-components/src/lib/components/divider/divider.scss +18 -0
  44. package/projects/rc-ses/angular-components/src/lib/components/divider/divider.ts +16 -0
  45. package/projects/rc-ses/angular-components/src/lib/components/form/form-field/form-field.html +11 -0
  46. package/projects/rc-ses/angular-components/src/lib/components/form/form-field/form-field.scss +149 -0
  47. package/projects/rc-ses/angular-components/src/lib/components/form/form-field/form-field.ts +87 -0
  48. package/projects/rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox.html +10 -0
  49. package/projects/rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox.scss +36 -0
  50. package/projects/rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox.ts +89 -0
  51. package/projects/rc-ses/angular-components/src/lib/components/form/input/checkbox/checkbox.scss +132 -0
  52. package/projects/rc-ses/angular-components/src/lib/components/form/input/datepicker/datepicker.scss +18 -0
  53. package/projects/rc-ses/angular-components/src/lib/components/form/input/input/input.scss +66 -0
  54. package/projects/rc-ses/angular-components/src/lib/components/form/input/input/input.ts +31 -0
  55. package/projects/rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper.html +30 -0
  56. package/projects/rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper.scss +88 -0
  57. package/projects/rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper.ts +103 -0
  58. package/projects/rc-ses/angular-components/src/lib/components/form/input/radio/radio.scss +85 -0
  59. package/projects/rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group.html +7 -0
  60. package/projects/rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group.scss +87 -0
  61. package/projects/rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group.ts +101 -0
  62. package/projects/rc-ses/angular-components/src/lib/components/form/input/select/select.html +40 -0
  63. package/projects/rc-ses/angular-components/src/lib/components/form/input/select/select.scss +153 -0
  64. package/projects/rc-ses/angular-components/src/lib/components/form/input/select/select.ts +155 -0
  65. package/projects/rc-ses/angular-components/src/lib/components/icons/icons.module.ts +61 -0
  66. package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-actions/service-form-actions.html +19 -0
  67. package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-actions/service-form-actions.scss +64 -0
  68. package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-actions/service-form-actions.ts +45 -0
  69. package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container.html +16 -0
  70. package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container.scss +32 -0
  71. package/projects/rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container.ts +43 -0
  72. package/projects/rc-ses/angular-components/src/lib/components/layout/service-header/service-header.html +5 -0
  73. package/projects/rc-ses/angular-components/src/lib/components/layout/service-header/service-header.scss +35 -0
  74. package/projects/rc-ses/angular-components/src/lib/components/layout/service-header/service-header.ts +48 -0
  75. package/projects/rc-ses/angular-components/src/lib/components/layout/service-page/service-page.html +14 -0
  76. package/projects/rc-ses/angular-components/src/lib/components/layout/service-page/service-page.scss +38 -0
  77. package/projects/rc-ses/angular-components/src/lib/components/layout/service-page/service-page.ts +37 -0
  78. package/projects/rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps.html +18 -0
  79. package/projects/rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps.scss +93 -0
  80. package/projects/rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps.ts +41 -0
  81. package/projects/rc-ses/angular-components/src/lib/components/message/message.html +39 -0
  82. package/projects/rc-ses/angular-components/src/lib/components/message/message.scss +141 -0
  83. package/projects/rc-ses/angular-components/src/lib/components/message/message.ts +52 -0
  84. package/projects/rc-ses/angular-components/src/lib/theme/index.scss +65 -0
  85. package/projects/rc-ses/angular-components/src/lib/theme/palette.scss +183 -0
  86. package/projects/rc-ses/angular-components/src/lib/theme/theme.scss +24 -0
  87. package/projects/rc-ses/angular-components/src/lib/theme/typography.scss +63 -0
  88. package/projects/rc-ses/angular-components/src/public-api.ts +22 -0
  89. package/projects/rc-ses/angular-components/src/styles.scss +40 -0
  90. package/projects/rc-ses/angular-components/src/test.ts +14 -0
  91. package/projects/rc-ses/angular-components/tsconfig.lib.json +15 -0
  92. package/projects/rc-ses/angular-components/tsconfig.lib.prod.json +11 -0
  93. package/tsconfig.json +37 -0
  94. package/tsconfig.spec.json +18 -0
@@ -0,0 +1,283 @@
1
+ <rc-ses-service-page>
2
+ <rc-ses-service-header
3
+ serviceName="Nekilnojamojo turto registro išrašas pagal nurodytą turto adresą"
4
+ serviceDescription="Šiame puslapyje Jūs galite užsisakyti Nekilnojamojo turto registro išrašus, pažymas bei kitus dokumentus. Užsakytą NTR išrašą, pažymą ar kitą dokumentą galėsite gauti elektroniniu būdu arba atsiimti pasirinktame VĮ Registrų centro padalinyje."
5
+ [path]="[{ label: 'Formos su vedliu pavyzdys', path: '/sample-form-multiple-steps'}]"
6
+ />
7
+ <rc-ses-service-wizard-steps
8
+ [steps]="[
9
+ { state: 'completed', label: 'Bazinė informacija'},
10
+ { state: 'active', label: 'Paslaugos užsakymas'},
11
+ { state: 'pending', label: 'Išdavimas'},
12
+ { state: 'pending', label: 'Reikalingos papildomos paslaugos'},
13
+ { state: 'pending', label: 'Terminai ir sąlygos'},
14
+ ]"
15
+ />
16
+ <rc-ses-service-form-container>
17
+ <mat-accordion rc-ses-accordion multi>
18
+ <mat-expansion-panel>
19
+ <mat-expansion-panel-header>
20
+ <mat-panel-title>Bazinė informacija</mat-panel-title>
21
+ </mat-expansion-panel-header>
22
+ <div>
23
+
24
+ </div>
25
+ </mat-expansion-panel>
26
+
27
+ <mat-expansion-panel expanded>
28
+ <mat-expansion-panel-header>
29
+ <mat-panel-title>Paslaugos užsakymas</mat-panel-title>
30
+ </mat-expansion-panel-header>
31
+ <div>
32
+ <form [formGroup]="formStep1">
33
+ <rc-ses-form-field label="Tikslas">
34
+ <rc-ses-select
35
+ formControlName="purpose"
36
+ placeholder="Pasirinkite"
37
+ [options]="purposeOptions"
38
+ />
39
+ </rc-ses-form-field>
40
+
41
+ <rc-ses-form-field label="Teisinis pagrindas">
42
+ <rc-ses-select
43
+ formControlName="legalBasis"
44
+ placeholder="Pasirinkite"
45
+ [options]="legalBasisOptions"
46
+ />
47
+ </rc-ses-form-field>
48
+
49
+ <rc-ses-form-field label="Turto adresas">
50
+ <rc-ses-select
51
+ formControlName="propertyAddress"
52
+ placeholder="Pasirinkite"
53
+ [options]="propertyAddressOptions"
54
+ searchable
55
+ />
56
+ </rc-ses-form-field>
57
+
58
+ <rc-ses-form-field label="Sutikimas">
59
+ <rc-ses-agreement-checkbox
60
+ formControlName="agreement"
61
+ description="Pagal užsakymą gautus duomenis naudosiu nurodytam duomenų tikslui ir šių duomenų neatskleisiu tretiesiems asmenims."
62
+ />
63
+ </rc-ses-form-field>
64
+
65
+ <rc-ses-form-field label="Terminas">
66
+ <rc-ses-select
67
+ formControlName="deadline"
68
+ placeholder="Pasirinkite"
69
+ [options]="deadlineOptions"
70
+ />
71
+ </rc-ses-form-field>
72
+
73
+ <rc-ses-form-field label="Egzempliorių skaičius">
74
+ <rc-ses-number-stepper
75
+ formControlName="numberOfCopies"
76
+ placeholder="0"
77
+ [min]="0"
78
+ [max]="9"
79
+ [step]="1"
80
+ />
81
+ </rc-ses-form-field>
82
+ </form>
83
+ </div>
84
+ </mat-expansion-panel>
85
+
86
+ <mat-expansion-panel expanded>
87
+ <mat-expansion-panel-header>
88
+ <mat-panel-title>Išdavimas</mat-panel-title>
89
+ </mat-expansion-panel-header>
90
+ <div>
91
+ <form [formGroup]="formStep2">
92
+ <rc-ses-message severity="warning">
93
+ Primename, kad atsiimant rezultatus padalinyje su savimi privalote turėti asmens tapatybę patvirtinantį dokumentą.
94
+ </rc-ses-message>
95
+
96
+ <rc-ses-form-field label="Išdavimo būdas">
97
+ <rc-ses-radio-button-group
98
+ formControlName="issueMethod"
99
+ [options]="issueMethodOptions"
100
+ displayAsButtons
101
+ />
102
+ </rc-ses-form-field>
103
+
104
+ <rc-ses-form-field label="RC padalinys">
105
+ <rc-ses-select
106
+ formControlName="rcBranch"
107
+ placeholder="Pasirinkite"
108
+ [options]="rcBranchOptions"
109
+ searchable
110
+ />
111
+ <mat-hint align="start">Informacija apie <a href="https://www.registrucentras.lt/p/1218" target="_blank">RC padalinius</a></mat-hint>
112
+ </rc-ses-form-field>
113
+ </form>
114
+ </div>
115
+ </mat-expansion-panel>
116
+
117
+ <mat-expansion-panel expanded>
118
+ <mat-expansion-panel-header>
119
+ <mat-panel-title>Reikalingos papildomos paslaugos</mat-panel-title>
120
+ </mat-expansion-panel-header>
121
+ <div>
122
+ <form [formGroup]="formStep3">
123
+ <rc-ses-form-field label="Paslaugos pavadinimas">
124
+ <mat-form-field>
125
+ <input rc-ses-input matInput type="text" formControlName="additionalServices" />
126
+ </mat-form-field>
127
+ </rc-ses-form-field>
128
+ </form>
129
+ </div>
130
+ </mat-expansion-panel>
131
+
132
+ <mat-expansion-panel expanded>
133
+ <mat-expansion-panel-header>
134
+ <mat-panel-title>Terminai ir sąlygos</mat-panel-title>
135
+ </mat-expansion-panel-header>
136
+ <div>
137
+ <form [formGroup]="formStep4">
138
+ <rc-ses-form-field>
139
+ <rc-ses-agreement-checkbox
140
+ formControlName="termsAndConditionsAgreement"
141
+ flat
142
+ >
143
+ <b>Užsakydamas darbus esu susipažinęs su <a href="#" target="_blank">darbų atlikimo ir atlyginimo tvarka</a> ir įsipareigoju apmokėti už užsakytus darbus. Esu informuotas, kad per nurodytą terminą neapmokėjus apskaičiuoto mokesčio, darbų užsakymas per pasiriktą terminą nebus įvykdytas.</b>
144
+ </rc-ses-agreement-checkbox>
145
+ </rc-ses-form-field>
146
+ </form>
147
+ </div>
148
+ </mat-expansion-panel>
149
+ </mat-accordion>
150
+ </rc-ses-service-form-container>
151
+ </rc-ses-service-page>
152
+
153
+ <!--
154
+ <br />
155
+ <br />
156
+ <button rc-ses-button mat-button>RC SES basic button</button>
157
+ &nbsp;
158
+ <button rc-ses-button mat-button disabled>RC SES basic button</button>
159
+
160
+ <br />
161
+ <br />
162
+ <button rc-ses-button mat-button color="neutral">RC SES basic neutral button</button>
163
+ &nbsp;
164
+ <button rc-ses-button mat-button color="neutral" disabled>RC SES basic button</button>
165
+
166
+ <br />
167
+ <br />
168
+ <button rc-ses-button mat-flat-button>RC SES button</button>
169
+ &nbsp;
170
+ <button rc-ses-button mat-flat-button disabled>RC SES button</button>
171
+ &nbsp;
172
+ <button rc-ses-button mat-stroked-button>RC SES button</button>
173
+ &nbsp;
174
+ <button rc-ses-button mat-stroked-button disabled>RC SES button</button>
175
+
176
+ <br />
177
+ <br />
178
+ <button rc-ses-button mat-flat-button color="secondary">RC SES secondary button</button>
179
+ &nbsp;
180
+ <button rc-ses-button mat-flat-button color="secondary" disabled>RC SES secondary button</button>
181
+ &nbsp;
182
+ <button rc-ses-button mat-stroked-button color="secondary">RC SES secondary button</button>
183
+ &nbsp;
184
+ <button rc-ses-button mat-stroked-button color="secondary" disabled>RC SES secondary button</button>
185
+
186
+ <br />
187
+ <br />
188
+ <button rc-ses-button mat-flat-button color="neutral">RC SES neutral button</button>
189
+ &nbsp;
190
+ <button rc-ses-button mat-flat-button color="neutral" disabled>RC SES neutral button</button>
191
+ &nbsp;
192
+ <button rc-ses-button mat-stroked-button color="neutral">RC SES neutral button</button>
193
+ &nbsp;
194
+ <button rc-ses-button mat-stroked-button color="neutral" disabled>RC SES neutral button</button>
195
+
196
+ <br />
197
+ <br />
198
+ <button rc-ses-button mat-flat-button color="dark">RC SES dark button</button>
199
+ &nbsp;
200
+ <button rc-ses-button mat-flat-button color="dark" disabled>RC SES dark button</button>
201
+
202
+ <br />
203
+ <br />
204
+ <button rc-ses-button mat-flat-button color="danger">RC SES danger button</button>
205
+ &nbsp;
206
+ <button rc-ses-button mat-flat-button color="danger" disabled>RC SES danger button</button>
207
+
208
+ <br />
209
+ <br />
210
+
211
+ <rc-ses-form-field
212
+ label="Noice label"
213
+ labelSubtitle="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard."
214
+ >
215
+ <mat-form-field>
216
+ <input rc-ses-input matInput type="text" placeholder="Placeholder">
217
+ </mat-form-field>
218
+ </rc-ses-form-field>
219
+
220
+ <br />
221
+
222
+ <rc-ses-form-field
223
+ label="Noice label"
224
+ >
225
+ <mat-form-field>
226
+ <input rc-ses-input matInput type="text" placeholder="Placeholder">
227
+ </mat-form-field>
228
+ </rc-ses-form-field>
229
+
230
+ <br />
231
+
232
+ <rc-ses-form-field
233
+ label="Noice label"
234
+ labelSubtitle="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard."
235
+ [formControl]="testInputFormControl"
236
+ >
237
+ <mat-form-field>
238
+ <input rc-ses-input matInput type="text" [formControl]="testInputFormControl">
239
+ @if (testInputFormControl.hasError('required')) {
240
+ <mat-error>Duuuude</mat-error>
241
+ }
242
+ </mat-form-field>
243
+ </rc-ses-form-field>
244
+
245
+ <br />
246
+
247
+ <rc-ses-form-field
248
+ label="Noice label"
249
+ labelSubtitle="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard."
250
+ >
251
+ <mat-form-field>
252
+ <input rc-ses-input matInput type="text" [(ngModel)]="value" required>
253
+ </mat-form-field>
254
+ </rc-ses-form-field>
255
+
256
+ <br />
257
+
258
+ <rc-ses-form-field
259
+ label="Disabled"
260
+ labelSubtitle="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard."
261
+ >
262
+ <mat-form-field>
263
+ <input rc-ses-input matInput type="text" [(ngModel)]="value" disabled>
264
+ </mat-form-field>
265
+ </rc-ses-form-field>
266
+
267
+ <br />
268
+
269
+ <rc-ses-form-field
270
+ label="Readonly"
271
+ labelSubtitle="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard."
272
+ >
273
+ <mat-form-field>
274
+ <input rc-ses-input matInput type="text" [(ngModel)]="value" readonly>
275
+ </mat-form-field>
276
+ </rc-ses-form-field>
277
+
278
+ <br />
279
+ <br />
280
+ <br />
281
+ <br />
282
+ <br />
283
+ <br /> -->
@@ -0,0 +1,223 @@
1
+ import { Component, viewChild } from '@angular/core';
2
+ import { RouterLink, RouterOutlet } from '@angular/router';
3
+ import { MatButtonModule } from '@angular/material/button';
4
+ import { CommonModule } from '@angular/common';
5
+ import { HttpClient } from '@angular/common/http';
6
+ import { MatFormFieldModule } from '@angular/material/form-field';
7
+ import { MatInputModule } from '@angular/material/input';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+ import { MatCommonModule } from '@angular/material/core';
10
+ import { MatAccordion, MatExpansionModule } from '@angular/material/expansion';
11
+ import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
12
+
13
+ import { RcSesAccordionDirective } from '../../../../rc-ses/angular-components/src/lib/components/accordion/accordion';
14
+ import { RcSesButtonDirective } from '../../../../rc-ses/angular-components/src/lib/components/button/button';
15
+ import { RcSesFormFieldComponent } from '../../../../rc-ses/angular-components/src/lib/components/form/form-field/form-field';
16
+ import { RcSesInputDirective } from '../../../../rc-ses/angular-components/src/lib/components/form/input/input/input';
17
+ import { ServiceFormContainer } from '../../../../rc-ses/angular-components/src/lib/components/layout/service-form-container/service-form-container';
18
+ import { ServiceHeader } from '../../../../rc-ses/angular-components/src/lib/components/layout/service-header/service-header';
19
+ import { ServicePage } from '../../../../rc-ses/angular-components/src/lib/components/layout/service-page/service-page';
20
+ import { ServiceWizardSteps } from '../../../../rc-ses/angular-components/src/lib/components/layout/service-wizard-steps/service-wizard-steps';
21
+ import { MatSelectModule } from '@angular/material/select';
22
+ import { RcSesSelectComponent } from '../../../../rc-ses/angular-components/src/lib/components/form/input/select/select';
23
+ import { RcSesNumberStepperComponent } from '../../../../rc-ses/angular-components/src/lib/components/form/input/number-stepper/number-stepper';
24
+ import { MatCheckboxModule } from '@angular/material/checkbox';
25
+ import { RcSesAgreementCheckboxComponent } from '../../../../rc-ses/angular-components/src/lib/components/form/input/agreement-checkbox/agreement-checkbox';
26
+ import { RcSesMessageComponent } from '../../../../rc-ses/angular-components/src/lib/components/message/message';
27
+ import { RcSesRadioButtonGroupComponent } from '../../../../rc-ses/angular-components/src/lib/components/form/input/radio-button-group/radio-button-group';
28
+ import { RcSesIconsModule } from '../../../../rc-ses/angular-components/src/lib/components/icons/icons.module';
29
+
30
+ @Component({
31
+ selector: 'sample-form-multiple-steps',
32
+ standalone: true,
33
+ imports: [
34
+ CommonModule,
35
+ FormsModule,
36
+ ReactiveFormsModule,
37
+ RouterOutlet,
38
+
39
+ MatButtonModule,
40
+ MatCommonModule,
41
+ MatExpansionModule,
42
+ MatFormFieldModule,
43
+ MatIconModule,
44
+ MatInputModule,
45
+
46
+ RcSesAccordionDirective,
47
+ RcSesAgreementCheckboxComponent,
48
+ RcSesButtonDirective,
49
+ RcSesFormFieldComponent,
50
+ RcSesIconsModule,
51
+ RcSesInputDirective,
52
+ RcSesMessageComponent,
53
+ RcSesNumberStepperComponent,
54
+ RcSesRadioButtonGroupComponent,
55
+ RcSesSelectComponent,
56
+
57
+ ServiceHeader,
58
+ ServicePage,
59
+ ServiceWizardSteps,
60
+ ServiceFormContainer,
61
+ ],
62
+ templateUrl: './sample-form-multiple-steps.html',
63
+ styleUrl: './sample-form-multiple-steps.scss',
64
+ providers: [
65
+ HttpClient,
66
+ ],
67
+ })
68
+ export class SampleFormMultipleStepsComponent {
69
+ accordion = viewChild.required(MatAccordion);
70
+
71
+ /*
72
+ * PASLAUGOS UŽSAKYMAS
73
+ */
74
+ formStep1 = new FormGroup({
75
+ purpose: new FormControl(
76
+ { value: '', disabled: false },
77
+ { validators: Validators.required },
78
+ ),
79
+ legalBasis: new FormControl(
80
+ { value: '', disabled: false },
81
+ { validators: Validators.required },
82
+ ),
83
+ propertyAddress: new FormControl(
84
+ { value: '', disabled: false },
85
+ { validators: Validators.required },
86
+ ),
87
+ agreement: new FormControl(
88
+ { value: false, disabled: false },
89
+ { validators: Validators.required },
90
+ ),
91
+ deadline: new FormControl(
92
+ { value: '', disabled: false },
93
+ { validators: Validators.required },
94
+ ),
95
+ numberOfCopies: new FormControl(
96
+ { value: '', disabled: false },
97
+ { validators: Validators.required },
98
+ ),
99
+ });
100
+
101
+ purposeOptions: { value: string, label: string, description?: string }[] = [
102
+ { value: 'tikslas1', label: 'Tikslas 1' },
103
+ { value: 'tikslas2', label: 'Tikslas 2' },
104
+ { value: 'tikslas3', label: 'Tikslas 3' },
105
+ ];
106
+
107
+ legalBasisOptions: { value: string, label: string, description?: string }[] = [
108
+ { value: 'teisinisPagrindas1', label: 'Teisinis pagrindas 1' },
109
+ { value: 'teisinisPagrindas2', label: 'Teisinis pagrindas 2' },
110
+ { value: 'teisinisPagrindas3', label: 'Teisinis pagrindas 3' },
111
+ ];
112
+
113
+ deadlineOptions: { value: string, label: string, description?: string }[] = [
114
+ { value: 'terminas-1', label: 'artimiausiu metu' },
115
+ { value: 'terminas-2', label: 'iki mėnesio pabaigos' },
116
+ ];
117
+
118
+ propertyAddressOptions: { value: string, label: string, description?: string }[] = [
119
+ { value: 'lvivo-g-7', label: 'Lvivo g. 7', description: 'Vilnius, Vilniaus m. sav. 09313' },
120
+ { value: 'lvivo-g-9', label: 'Lvivo g. 9', description: 'Vilnius, Vilniaus m. sav. 09313' },
121
+ { value: 'lvivo-g-11', label: 'Lvivo g. 11', description: 'Vilnius, Vilniaus m. sav. 09313' },
122
+ { value: 'lvivo-g-11a', label: 'Lvivo g. 11A', description: 'Vilnius, Vilniaus m. sav. 09313' },
123
+ { value: 'lvivo-g-12', label: 'Lvivo g. 12', description: 'Vilnius, Vilniaus m. sav. 09313' },
124
+ { value: 'lvivo-g-13', label: 'Lvivo g. 13', description: 'Vilnius, Vilniaus m. sav. 09313' },
125
+ { value: 'lvivo-g-13a', label: 'Lvivo g. 13A', description: 'Vilnius, Vilniaus m. sav. 09313' },
126
+ { value: 'lvivo-g-13b', label: 'Lvivo g. 13B', description: 'Vilnius, Vilniaus m. sav. 09313' },
127
+ { value: 'lvivo-g-1c', label: 'Lvivo g. 13C', description: 'Vilnius, Vilniaus m. sav. 09313' },
128
+ ];
129
+
130
+ purposeOptionsWithDescription: { value: string, label: string, description?: string }[] = [
131
+ { value: 'tikslas1', label: 'Tikslas 1', description: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.' },
132
+ { value: 'tikslas2', label: 'Tikslas 2', description: 'Lorem Ipsum is simply dummy text.' },
133
+ { value: 'tikslas3', label: 'Tikslas 3', description: 'Lorem Ipsum is simply dummy text of the printing industry.' },
134
+ ];
135
+
136
+ purposeGroups: { name: string, disabled: boolean, items: { value: string, label: string, description?: string }[] }[] = [
137
+ {
138
+ name: 'Grupė 1',
139
+ disabled: false,
140
+ items: [
141
+ { value: 'tikslas1', label: 'Tikslas 1' },
142
+ { value: 'tikslas2', label: 'Tikslas 2' },
143
+ { value: 'tikslas3', label: 'Tikslas 3' },
144
+ ],
145
+ },
146
+ {
147
+ name: 'Grupė 2',
148
+ disabled: false,
149
+ items: [
150
+ { value: 'tikslas4', label: 'Tikslas 4' },
151
+ { value: 'tikslas5', label: 'Tikslas 5' },
152
+ { value: 'tikslas6', label: 'Tikslas 6' },
153
+ ],
154
+ },
155
+ ];
156
+
157
+ /*
158
+ * IŠDAVIMAS
159
+ */
160
+ formStep2 = new FormGroup({
161
+ issueMethod: new FormControl(
162
+ { value: '', disabled: false },
163
+ { validators: Validators.required },
164
+ ),
165
+ rcBranch: new FormControl(
166
+ { value: '', disabled: false },
167
+ { validators: Validators.required },
168
+ ),
169
+ });
170
+
171
+ rcBranchOptions: { value: string, label: string, description?: string }[] = [
172
+ {
173
+ label: 'Lvivo g. 25-101',
174
+ value: 'vilnius',
175
+ description: '09320 Vilnius',
176
+ },
177
+ {
178
+ label: 'E. Ožeškienės g. 12',
179
+ value: 'kaunas',
180
+ description: '44252 Kaunas, (įėjimas iš L. Sapiegos gatvės pusės)',
181
+ },
182
+ {
183
+ label: 'Baltijos pr. 123-1',
184
+ value: 'klaipeda',
185
+ description: '93224 Klaipėda',
186
+ },
187
+ {
188
+ label: 'Baltijos pr. 123-1',
189
+ value: 'siauliai',
190
+ description: '78167 Šiauliai',
191
+ },
192
+ {
193
+ label: 'Baltijos pr. 123-1',
194
+ value: 'panevezys',
195
+ description: '35173 Panevėžys',
196
+ },
197
+ ];
198
+
199
+ issueMethodOptions: { value: string, label: string }[] = [
200
+ { label: 'El. paštu', value: 'email' },
201
+ { label: 'Padalinyje', value: 'branch' },
202
+ { label: 'Paštu Lietuvoje', value: 'mail-local' },
203
+ { label: 'Paštu užsienyje', value: 'mail-abroad' },
204
+ ];
205
+
206
+ /*
207
+ * REIKALINGOS PAPILDOMOS PASLAUGOS
208
+ */
209
+ formStep3 = new FormGroup({
210
+ additionalServices: new FormControl(
211
+ { value: 'Papildoma paslauga #1', disabled: true },
212
+ ),
213
+ });
214
+
215
+ /*
216
+ * TERMINAI IR SĄLYGOS
217
+ */
218
+ formStep4 = new FormGroup({
219
+ termsAndConditionsAgreement: new FormControl(
220
+ { value: false, disabled: false },
221
+ ),
222
+ });
223
+ }