survery-lib 0.1.58 → 0.1.60

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 (23) hide show
  1. package/README.md +52 -52
  2. package/assets/style.css +398 -398
  3. package/esm2022/lib/components/question-boolean-template/question-boolean-template.component.mjs +6 -3
  4. package/esm2022/lib/components/question-cascade-template/question-cascade-template.component.mjs +3 -3
  5. package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +6 -3
  6. package/esm2022/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.mjs +6 -3
  7. package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +6 -3
  8. package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +3 -3
  9. package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +6 -4
  10. package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +6 -3
  11. package/esm2022/lib/directives/masked-for-min-max.directive.mjs +9 -6
  12. package/esm2022/lib/pipes/default-question-answer.pipe.mjs +1 -1
  13. package/esm2022/lib/pipes/default-question-answers.pipe.mjs +1 -1
  14. package/esm2022/lib/pipes/filter-question.pipe.mjs +1 -1
  15. package/esm2022/lib/pipes/text-box-type-attr.pipe.mjs +1 -1
  16. package/esm2022/lib/services/api.service.mjs +1 -1
  17. package/esm2022/lib/services/survey-lib.service.mjs +1 -1
  18. package/esm2022/lib/survery-lib.component.mjs +1 -1
  19. package/esm2022/lib/survery-lib.module.mjs +1 -1
  20. package/esm2022/public-api.mjs +1 -1
  21. package/fesm2022/survery-lib.mjs +42 -22
  22. package/fesm2022/survery-lib.mjs.map +1 -1
  23. package/package.json +1 -1
package/README.md CHANGED
@@ -1,53 +1,53 @@
1
- # SurveyWorkspace
2
-
3
- Survey Library for angular
4
-
5
- ## Versions
6
-
7
- | Angular | Survey Lib |
8
- |------------------|:----------:|
9
- | >=16.0.0 <17.0.0 | v16.x.x |
10
-
11
-
12
- ## Getting started
13
- ### Step 1: Install `survery-lib`:
14
-
15
- #### NPM
16
- ```shell
17
- npm i survery-lib
18
- ```
19
-
20
- ### Step 2: Import the SurveryLibModule and angular NgStackFormsModule module:
21
- ```js
22
- import { NgStackFormsModule } from '@ng-stack/forms';
23
- import { SurveryLibModule } from 'survery-lib/src/public-api';
24
- @NgModule({
25
- declarations: [AppComponent],
26
- imports: [NgStackFormsModule ,SurveryLibModule.forRoot()],
27
- bootstrap: [AppComponent]
28
- })
29
- export class AppModule {}
30
- ```
31
-
32
- ### Step 3: Include a theme:
33
- ```scss
34
- @import "~survery-lib/assets/style.css";
35
- ```
36
-
37
- ### Step 4: to load survey json:
38
-
39
- ```ts
40
-
41
- import { SurveyLibService } from 'survery-lib';
42
-
43
- this._SurveyLibService.setSurveyData(surveyJson);;
44
-
45
- ```
46
-
47
- ### Step 5: In template use `lib-survery-lib` component with your options
48
-
49
- ```html
50
-
51
- <lib-survery-lib #surveryLibrary (surveyResultEmit)="onFinishSurvey($event)"></lib-survery-lib>
52
-
1
+ # SurveyWorkspace
2
+
3
+ Survey Library for angular
4
+
5
+ ## Versions
6
+
7
+ | Angular | Survey Lib |
8
+ |------------------|:----------:|
9
+ | >=16.0.0 <17.0.0 | v16.x.x |
10
+
11
+
12
+ ## Getting started
13
+ ### Step 1: Install `survery-lib`:
14
+
15
+ #### NPM
16
+ ```shell
17
+ npm i survery-lib
18
+ ```
19
+
20
+ ### Step 2: Import the SurveryLibModule and angular NgStackFormsModule module:
21
+ ```js
22
+ import { NgStackFormsModule } from '@ng-stack/forms';
23
+ import { SurveryLibModule } from 'survery-lib/src/public-api';
24
+ @NgModule({
25
+ declarations: [AppComponent],
26
+ imports: [NgStackFormsModule ,SurveryLibModule.forRoot()],
27
+ bootstrap: [AppComponent]
28
+ })
29
+ export class AppModule {}
30
+ ```
31
+
32
+ ### Step 3: Include a theme:
33
+ ```scss
34
+ @import "~survery-lib/assets/style.css";
35
+ ```
36
+
37
+ ### Step 4: to load survey json:
38
+
39
+ ```ts
40
+
41
+ import { SurveyLibService } from 'survery-lib';
42
+
43
+ this._SurveyLibService.setSurveyData(surveyJson);;
44
+
45
+ ```
46
+
47
+ ### Step 5: In template use `lib-survery-lib` component with your options
48
+
49
+ ```html
50
+
51
+ <lib-survery-lib #surveryLibrary (surveyResultEmit)="onFinishSurvey($event)"></lib-survery-lib>
52
+
53
53
  ```