@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
package/.editorconfig
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
end_of_line = lf
|
|
11
|
+
|
|
12
|
+
[*.ts]
|
|
13
|
+
quote_type = single
|
|
14
|
+
|
|
15
|
+
[*.md]
|
|
16
|
+
max_line_length = off
|
|
17
|
+
trim_trailing_whitespace = false
|
package/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Build and Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
checks: write
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Check out the repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: '22'
|
|
23
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
24
|
+
scope: '@registrucentras'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: npm ci
|
|
28
|
+
|
|
29
|
+
- name: Test
|
|
30
|
+
run: npm run test:run
|
|
31
|
+
|
|
32
|
+
- name: Test Report
|
|
33
|
+
uses: dorny/test-reporter@v1
|
|
34
|
+
if: (success() || failure()) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
|
|
35
|
+
continue-on-error: true
|
|
36
|
+
with:
|
|
37
|
+
name: Test Results
|
|
38
|
+
path: coverage/rc-ses-angular-components/junit.xml
|
|
39
|
+
reporter: java-junit
|
|
40
|
+
fail-on-error: 'false'
|
|
41
|
+
|
|
42
|
+
- name: Build the library
|
|
43
|
+
run: npm run build:lib
|
|
44
|
+
|
|
45
|
+
- name: Publish to npm
|
|
46
|
+
if: github.event_name == 'release'
|
|
47
|
+
working-directory: dist/registrucentras/rc-ses-angular-components
|
|
48
|
+
run: npm publish --access public --registry=https://registry.npmjs.org
|
|
49
|
+
env:
|
|
50
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"configurations": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ng serve",
|
|
7
|
+
"type": "chrome",
|
|
8
|
+
"request": "launch",
|
|
9
|
+
"preLaunchTask": "npm: start",
|
|
10
|
+
"url": "http://localhost:4200/"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "ng test",
|
|
14
|
+
"type": "chrome",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"preLaunchTask": "npm: test",
|
|
17
|
+
"url": "http://localhost:9876/debug.html"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"type": "npm",
|
|
7
|
+
"script": "start",
|
|
8
|
+
"isBackground": true,
|
|
9
|
+
"problemMatcher": {
|
|
10
|
+
"owner": "typescript",
|
|
11
|
+
"pattern": "$tsc",
|
|
12
|
+
"background": {
|
|
13
|
+
"activeOnStart": true,
|
|
14
|
+
"beginsPattern": {
|
|
15
|
+
"regexp": "(.*?)"
|
|
16
|
+
},
|
|
17
|
+
"endsPattern": {
|
|
18
|
+
"regexp": "bundle generation complete"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "npm",
|
|
25
|
+
"script": "test",
|
|
26
|
+
"isBackground": true,
|
|
27
|
+
"problemMatcher": {
|
|
28
|
+
"owner": "typescript",
|
|
29
|
+
"pattern": "$tsc",
|
|
30
|
+
"background": {
|
|
31
|
+
"activeOnStart": true,
|
|
32
|
+
"beginsPattern": {
|
|
33
|
+
"regexp": "(.*?)"
|
|
34
|
+
},
|
|
35
|
+
"endsPattern": {
|
|
36
|
+
"regexp": "bundle generation complete"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# RC-SES Angular komponentų biblioteka
|
|
2
|
+
|
|
3
|
+
Šioje repozitorijoje rasite RC-SESAngular komponentų bibliotekos išeities kodą. Biblioteką sudaro:
|
|
4
|
+
- pagal bendrą RC-SES gidą stilizuoti funkcionalūs paslaugų užsakymo formų komponentai;
|
|
5
|
+
- struktūriniai sąsajos išdėstymo komponentai formų ir paslaugos užsakymo puslapio atvaizdavimui;
|
|
6
|
+
- pavyzdinės (demo) formos komponentas su visais šioje bibliotekos versijoje prieinamais komponentais;
|
|
7
|
+
|
|
8
|
+
## Prerekvizitai
|
|
9
|
+
|
|
10
|
+
1. Įsitikinkite, kad turite įdiegtą bent **18.3** arba naujesnę [Node.js](https://nodejs.org/en) versiją;
|
|
11
|
+
2. Jei to dar nepadarėte, lokaliai klonuokite `rc-ses-angular-components` projektą:
|
|
12
|
+
```bash
|
|
13
|
+
git clone git@github.com:tomasAl/rc-ses-angular-components.git
|
|
14
|
+
```
|
|
15
|
+
3. Terminale atidarykite klonuoto projekto šakinį aplanką ir sudiekite projektui reikiamas bibliotekas:
|
|
16
|
+
```bash
|
|
17
|
+
npm i
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Pavyzdinės formos
|
|
21
|
+
|
|
22
|
+
Repozitorijoje galite rasti pavyzdinių formų ir komponentų implementaciją (`src\projects\app\src\app\sample-form-multiple-steps` ir `src\projects\app\src\app\sample-form-multiple-steps`).
|
|
23
|
+
|
|
24
|
+
Norėdami peržiūrėti pavyzdinę formą naršyklėje:
|
|
25
|
+
|
|
26
|
+
- startuokite aplikaciją dev rėžime: `npm run build`;
|
|
27
|
+
- naršyklėje atidarykite [http://http://localhost:4200/](http://http://localhost:4200/);
|
|
28
|
+
|
|
29
|
+
## *npm* biblioteka
|
|
30
|
+
|
|
31
|
+
Versijuojama sukompiliuota *npm* biblioteka bus prieinama artimiausiu metu.
|
package/RELEASE_NOTES.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Release Notes
|
|
2
|
+
|
|
3
|
+
## [0.2.0] - 2026-03-02
|
|
4
|
+
|
|
5
|
+
**The library is now published to the public npm registry!**
|
|
6
|
+
|
|
7
|
+
This release marks a significant change in how the library is distributed and consumed. You no longer need to install it directly from GitHub or use private tokens.
|
|
8
|
+
|
|
9
|
+
### Migration Guide
|
|
10
|
+
|
|
11
|
+
To update your project to use the published npm package:
|
|
12
|
+
|
|
13
|
+
1. **Update `package.json`**:
|
|
14
|
+
Replace the dependency source:
|
|
15
|
+
```diff
|
|
16
|
+
- "@registrucentras/rc-ses-angular-components": "github:registrucentras/rc-ses-angular-components#..."
|
|
17
|
+
+ "@registrucentras/rc-ses-angular-components": "^0.2.0"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
2. **Reinstall dependencies**:
|
|
21
|
+
```bash
|
|
22
|
+
npm install
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Changes
|
|
26
|
+
|
|
27
|
+
- **Published to npm**: The package is now available on `https://registry.npmjs.org/` as `@registrucentras/rc-ses-angular-components`.
|
|
28
|
+
- **Granular Access Token**: Publishing is handled via a secure Granular Access Token.
|
|
29
|
+
- **Deprecated**: Publishing to GitHub Packages is no longer supported in favor of the public npm registry.
|
package/angular.json
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"@registrucentras/rc-ses-angular-components": {
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"schematics": {
|
|
9
|
+
"@schematics/angular:component": {
|
|
10
|
+
"style": "scss",
|
|
11
|
+
"skipTests": false
|
|
12
|
+
},
|
|
13
|
+
"@schematics/angular:class": {
|
|
14
|
+
"skipTests": false
|
|
15
|
+
},
|
|
16
|
+
"@schematics/angular:directive": {
|
|
17
|
+
"skipTests": false
|
|
18
|
+
},
|
|
19
|
+
"@schematics/angular:guard": {
|
|
20
|
+
"skipTests": false
|
|
21
|
+
},
|
|
22
|
+
"@schematics/angular:interceptor": {
|
|
23
|
+
"skipTests": false
|
|
24
|
+
},
|
|
25
|
+
"@schematics/angular:pipe": {
|
|
26
|
+
"skipTests": false
|
|
27
|
+
},
|
|
28
|
+
"@schematics/angular:resolver": {
|
|
29
|
+
"skipTests": false
|
|
30
|
+
},
|
|
31
|
+
"@schematics/angular:service": {
|
|
32
|
+
"skipTests": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"root": "projects/rc-ses/angular-components",
|
|
36
|
+
"sourceRoot": "projects/rc-ses/angular-components/src",
|
|
37
|
+
"prefix": "rc-ses",
|
|
38
|
+
"architect": {
|
|
39
|
+
"build": {
|
|
40
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
41
|
+
"options": {
|
|
42
|
+
"project": "projects/rc-ses/angular-components/ng-package.json"
|
|
43
|
+
},
|
|
44
|
+
"configurations": {
|
|
45
|
+
"production": {
|
|
46
|
+
"tsConfig": "projects/rc-ses/angular-components/tsconfig.lib.prod.json"
|
|
47
|
+
},
|
|
48
|
+
"development": {
|
|
49
|
+
"tsConfig": "projects/rc-ses/angular-components/tsconfig.lib.json"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"defaultConfiguration": "production"
|
|
53
|
+
},
|
|
54
|
+
"test": {
|
|
55
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
56
|
+
"options": {
|
|
57
|
+
"karmaConfig": "karma.conf.js",
|
|
58
|
+
"main": "projects/rc-ses/angular-components/src/test.ts",
|
|
59
|
+
"polyfills": [
|
|
60
|
+
"zone.js"
|
|
61
|
+
],
|
|
62
|
+
"tsConfig": "tsconfig.spec.json",
|
|
63
|
+
"inlineStyleLanguage": "scss",
|
|
64
|
+
"assets": [],
|
|
65
|
+
"styles": [
|
|
66
|
+
"projects/rc-ses/angular-components/src/lib/theme/index.scss"
|
|
67
|
+
],
|
|
68
|
+
"scripts": []
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"app": {
|
|
74
|
+
"projectType": "application",
|
|
75
|
+
"schematics": {
|
|
76
|
+
"@schematics/angular:component": {
|
|
77
|
+
"style": "scss",
|
|
78
|
+
"skipTests": true
|
|
79
|
+
},
|
|
80
|
+
"@schematics/angular:class": {
|
|
81
|
+
"skipTests": true
|
|
82
|
+
},
|
|
83
|
+
"@schematics/angular:directive": {
|
|
84
|
+
"skipTests": true
|
|
85
|
+
},
|
|
86
|
+
"@schematics/angular:guard": {
|
|
87
|
+
"skipTests": true
|
|
88
|
+
},
|
|
89
|
+
"@schematics/angular:interceptor": {
|
|
90
|
+
"skipTests": true
|
|
91
|
+
},
|
|
92
|
+
"@schematics/angular:pipe": {
|
|
93
|
+
"skipTests": true
|
|
94
|
+
},
|
|
95
|
+
"@schematics/angular:resolver": {
|
|
96
|
+
"skipTests": true
|
|
97
|
+
},
|
|
98
|
+
"@schematics/angular:service": {
|
|
99
|
+
"skipTests": true
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"root": "projects/app",
|
|
103
|
+
"sourceRoot": "projects/app/src",
|
|
104
|
+
"prefix": "app",
|
|
105
|
+
"architect": {
|
|
106
|
+
"build": {
|
|
107
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
108
|
+
"options": {
|
|
109
|
+
"outputPath": "dist/app",
|
|
110
|
+
"index": "projects/app/src/index.html",
|
|
111
|
+
"browser": "projects/app/src/main.ts",
|
|
112
|
+
"polyfills": [
|
|
113
|
+
"zone.js"
|
|
114
|
+
],
|
|
115
|
+
"tsConfig": "projects/app/tsconfig.app.json",
|
|
116
|
+
"inlineStyleLanguage": "scss",
|
|
117
|
+
"assets": [
|
|
118
|
+
{
|
|
119
|
+
"glob": "**/*",
|
|
120
|
+
"input": "projects/app/public"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"styles": [
|
|
124
|
+
"projects/rc-ses/angular-components/src/lib/theme/index.scss"
|
|
125
|
+
],
|
|
126
|
+
"scripts": []
|
|
127
|
+
},
|
|
128
|
+
"configurations": {
|
|
129
|
+
"production": {
|
|
130
|
+
"budgets": [
|
|
131
|
+
{
|
|
132
|
+
"type": "initial",
|
|
133
|
+
"maximumWarning": "500kB",
|
|
134
|
+
"maximumError": "1MB"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "anyComponentStyle",
|
|
138
|
+
"maximumWarning": "2kB",
|
|
139
|
+
"maximumError": "4kB"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"outputHashing": "all"
|
|
143
|
+
},
|
|
144
|
+
"development": {
|
|
145
|
+
"optimization": false,
|
|
146
|
+
"extractLicenses": false,
|
|
147
|
+
"sourceMap": true
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"defaultConfiguration": "production"
|
|
151
|
+
},
|
|
152
|
+
"serve": {
|
|
153
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
154
|
+
"configurations": {
|
|
155
|
+
"production": {
|
|
156
|
+
"buildTarget": "app:build:production"
|
|
157
|
+
},
|
|
158
|
+
"development": {
|
|
159
|
+
"buildTarget": "app:build:development"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"defaultConfiguration": "development"
|
|
163
|
+
},
|
|
164
|
+
"extract-i18n": {
|
|
165
|
+
"builder": "@angular-devkit/build-angular:extract-i18n"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"cli": {
|
|
171
|
+
"analytics": false
|
|
172
|
+
}
|
|
173
|
+
}
|
package/karma.conf.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('karma-junit-reporter'),
|
|
14
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
15
|
+
],
|
|
16
|
+
client: {
|
|
17
|
+
jasmine: {
|
|
18
|
+
// you can add configuration options for Jasmine here
|
|
19
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
20
|
+
// for example, you can disable the random execution with `random: false`
|
|
21
|
+
// or set a specific seed with `seed: 4321`
|
|
22
|
+
},
|
|
23
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
24
|
+
},
|
|
25
|
+
jasmineHtmlReporter: {
|
|
26
|
+
suppressAll: true // removes the duplicated traces
|
|
27
|
+
},
|
|
28
|
+
coverageReporter: {
|
|
29
|
+
dir: require('path').join(__dirname, './coverage/rc-ses-angular-components'),
|
|
30
|
+
subdir: '.',
|
|
31
|
+
reporters: [
|
|
32
|
+
{ type: 'html' },
|
|
33
|
+
{ type: 'text-summary' },
|
|
34
|
+
{ type: 'lcov' },
|
|
35
|
+
{ type: 'cobertura' }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
junitReporter: {
|
|
39
|
+
outputDir: require('path').join(__dirname, './coverage/rc-ses-angular-components'),
|
|
40
|
+
outputFile: 'junit.xml',
|
|
41
|
+
useBrowserName: false
|
|
42
|
+
},
|
|
43
|
+
reporters: ['progress', 'kjhtml', 'coverage', 'junit'],
|
|
44
|
+
browsers: ['Chrome'],
|
|
45
|
+
customLaunchers: {
|
|
46
|
+
ChromeHeadlessCI: {
|
|
47
|
+
base: 'ChromeHeadless',
|
|
48
|
+
flags: ['--no-sandbox', '--disable-gpu']
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
restartOnFileChange: true
|
|
52
|
+
});
|
|
53
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@registrucentras/rc-ses-angular-components",
|
|
3
|
+
"author": "VĮ REGISTRŲ CENTRAS",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "RC SES Angular komponentų biblioteka",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "ng serve",
|
|
8
|
+
"ng": "ng",
|
|
9
|
+
"start": "ng serve",
|
|
10
|
+
"build": "ng build app",
|
|
11
|
+
"build:lib": "ng build @registrucentras/rc-ses-angular-components",
|
|
12
|
+
"watch": "ng build --watch --configuration development",
|
|
13
|
+
"test": "ng test",
|
|
14
|
+
"test:run": "ng test --no-watch --browsers=ChromeHeadlessCI",
|
|
15
|
+
"test:coverage": "ng test --no-watch --browsers=ChromeHeadlessCI --code-coverage"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@angular/animations": "^18.1.0",
|
|
19
|
+
"@angular/cdk": "^18.1.0",
|
|
20
|
+
"@angular/common": "^18.1.0",
|
|
21
|
+
"@angular/compiler": "^18.1.0",
|
|
22
|
+
"@angular/core": "^18.1.0",
|
|
23
|
+
"@angular/forms": "^18.1.0",
|
|
24
|
+
"@angular/material": "^18.1.2",
|
|
25
|
+
"@angular/platform-browser": "^18.1.0",
|
|
26
|
+
"@angular/platform-browser-dynamic": "^18.1.0",
|
|
27
|
+
"@angular/router": "^18.1.0",
|
|
28
|
+
"@registrucentras/rc-ses-angular-components": "file:dist/registrucentras/rc-ses-angular-components",
|
|
29
|
+
"rxjs": "~7.8.0",
|
|
30
|
+
"tslib": "^2.3.0",
|
|
31
|
+
"zone.js": "~0.14.3"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@angular-devkit/build-angular": "^18.1.0",
|
|
35
|
+
"@angular/cli": "^18.1.0",
|
|
36
|
+
"@angular/compiler-cli": "^18.1.0",
|
|
37
|
+
"@types/jasmine": "~5.1.0",
|
|
38
|
+
"jasmine-core": "~5.1.0",
|
|
39
|
+
"karma": "~6.4.0",
|
|
40
|
+
"karma-chrome-launcher": "~3.2.0",
|
|
41
|
+
"karma-coverage": "~2.2.0",
|
|
42
|
+
"karma-jasmine": "~5.1.0",
|
|
43
|
+
"karma-jasmine-html-reporter": "~2.1.0",
|
|
44
|
+
"karma-junit-reporter": "^2.0.1",
|
|
45
|
+
"ng-packagr": "^18.1.0",
|
|
46
|
+
"typescript": "~5.5.2"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { RouterOutlet } from '@angular/router';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-root',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [
|
|
10
|
+
RouterOutlet,
|
|
11
|
+
],
|
|
12
|
+
templateUrl: './app.component.html',
|
|
13
|
+
styleUrl: './app.component.scss',
|
|
14
|
+
providers: [
|
|
15
|
+
HttpClient,
|
|
16
|
+
],
|
|
17
|
+
})
|
|
18
|
+
export class AppComponent {
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
|
|
2
|
+
import { provideRouter } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { routes } from './app.routes';
|
|
5
|
+
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
6
|
+
import { MAT_RIPPLE_GLOBAL_OPTIONS } from '@angular/material/core';
|
|
7
|
+
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
8
|
+
import { MAT_EXPANSION_PANEL_DEFAULT_OPTIONS } from '@angular/material/expansion';
|
|
9
|
+
|
|
10
|
+
export const appConfig: ApplicationConfig = {
|
|
11
|
+
providers: [
|
|
12
|
+
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
13
|
+
provideRouter(routes), provideAnimationsAsync(),
|
|
14
|
+
{
|
|
15
|
+
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
16
|
+
useValue: {
|
|
17
|
+
appearance: 'outline',
|
|
18
|
+
subscriptSizing: 'dynamic',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
provide: MAT_RIPPLE_GLOBAL_OPTIONS,
|
|
23
|
+
useValue: { disabled: true },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
provide: MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,
|
|
27
|
+
useValue: {
|
|
28
|
+
collapsedHeight: '4.5rem',
|
|
29
|
+
expandedHeight: '4.5rem'
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
|
|
3
|
+
export const routes: Routes = [
|
|
4
|
+
{
|
|
5
|
+
path: '',
|
|
6
|
+
loadComponent : () => import('./landing-page/landing-page').then(m => m.LandingPageComponent),
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
path: 'sample-form-multiple-steps',
|
|
10
|
+
loadComponent : () => import('./sample-form-multiple-steps/sample-form-multiple-steps').then(m => m.SampleFormMultipleStepsComponent),
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
path: 'sample-form-single-step',
|
|
14
|
+
loadComponent : () => import('./sample-form-single-step/sample-form-single-step').then(m => m.SampleFormSingleStepComponent),
|
|
15
|
+
},
|
|
16
|
+
];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<rc-ses-service-page>
|
|
2
|
+
<rc-ses-service-header
|
|
3
|
+
serviceName="Paslaugų užsakymo formų pavyzdžiai"
|
|
4
|
+
serviceDescription="At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga."
|
|
5
|
+
/>
|
|
6
|
+
<div style="text-align: center;">
|
|
7
|
+
<button routerLink="/sample-form-multiple-steps" rc-ses-button mat-stroked-button>
|
|
8
|
+
Formos su vedliu pavyzdys
|
|
9
|
+
<mat-icon matListItemIcon svgIcon="rc-ses-arrow-right" aria-hidden="false" />
|
|
10
|
+
</button>
|
|
11
|
+
|
|
12
|
+
<br />
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
<button routerLink="/sample-form-single-step" rc-ses-button mat-stroked-button>
|
|
16
|
+
Vieno žingsnio formos pavyzdys
|
|
17
|
+
<mat-icon matListItemIcon svgIcon="rc-ses-arrow-right" aria-hidden="false" />
|
|
18
|
+
</button>
|
|
19
|
+
</div>
|
|
20
|
+
</rc-ses-service-page>
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
import { RcSesButtonDirective } from '../../../../rc-ses/angular-components/src/lib/components/button/button';
|
|
6
|
+
import { ServiceHeader } from '../../../../rc-ses/angular-components/src/lib/components/layout/service-header/service-header';
|
|
7
|
+
import { ServicePage } from '../../../../rc-ses/angular-components/src/lib/components/layout/service-page/service-page';
|
|
8
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
10
|
+
import { RcSesIconsModule } from '../../../../rc-ses/angular-components/src/lib/components/icons/icons.module';
|
|
11
|
+
import { RouterLink } from '@angular/router';
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'landing-page',
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
RouterLink,
|
|
19
|
+
|
|
20
|
+
MatButtonModule,
|
|
21
|
+
MatIconModule,
|
|
22
|
+
|
|
23
|
+
RcSesButtonDirective,
|
|
24
|
+
RcSesIconsModule,
|
|
25
|
+
|
|
26
|
+
ServiceHeader,
|
|
27
|
+
ServicePage,
|
|
28
|
+
],
|
|
29
|
+
templateUrl: './landing-page.html',
|
|
30
|
+
styleUrl: './landing-page.scss',
|
|
31
|
+
providers: [
|
|
32
|
+
HttpClient,
|
|
33
|
+
],
|
|
34
|
+
})
|
|
35
|
+
export class LandingPageComponent {
|
|
36
|
+
|
|
37
|
+
}
|