survey-angular-ui 1.9.47 → 1.9.49

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 (39) hide show
  1. package/angular-ui.d.ts +71 -5
  2. package/angular-ui.module.d.ts +86 -81
  3. package/base-angular.d.ts +2 -1
  4. package/components/action-bar/action.component.d.ts +0 -1
  5. package/components/dropdown/dropdown.component.d.ts +9 -4
  6. package/components/list/list.component.d.ts +1 -0
  7. package/components/tagbox/tagbox-filter.component.d.ts +10 -0
  8. package/components/tagbox/tagbox.component.d.ts +3 -2
  9. package/element.component.d.ts +2 -0
  10. package/esm2020/angular-ui.mjs +72 -6
  11. package/esm2020/angular-ui.module.mjs +41 -10
  12. package/esm2020/base-angular.mjs +4 -1
  13. package/esm2020/components/action-bar/action.component.mjs +3 -6
  14. package/esm2020/components/dropdown/dropdown.component.mjs +33 -10
  15. package/esm2020/components/list/list-item.component.mjs +8 -7
  16. package/esm2020/components/list/list.component.mjs +6 -3
  17. package/esm2020/components/renderAs/boolean-checkbox/boolean-checkbox.component.mjs +3 -3
  18. package/esm2020/components/renderAs/boolean-radio/boolean-radio-item.component.mjs +3 -3
  19. package/esm2020/components/tagbox/tagbox-filter.component.mjs +22 -0
  20. package/esm2020/components/tagbox/tagbox-item.component.mjs +3 -3
  21. package/esm2020/components/tagbox/tagbox.component.mjs +12 -8
  22. package/esm2020/element.component.mjs +20 -3
  23. package/esm2020/questions/button-group/button-group-item.component.mjs +29 -0
  24. package/esm2020/questions/button-group/button-group.component.mjs +14 -0
  25. package/esm2020/questions/matrixtable.component.mjs +3 -3
  26. package/esm2020/survey-content.component.mjs +46 -0
  27. package/esm2020/survey.component.mjs +8 -30
  28. package/esm2020/template-renderer.component.mjs +26 -0
  29. package/esm2020/utils/dynamic.directive.mjs +8 -2
  30. package/fesm2015/survey-angular-ui.mjs +266 -102
  31. package/fesm2015/survey-angular-ui.mjs.map +1 -1
  32. package/fesm2020/survey-angular-ui.mjs +265 -102
  33. package/fesm2020/survey-angular-ui.mjs.map +1 -1
  34. package/package.json +6 -2
  35. package/questions/button-group/button-group-item.component.d.ts +14 -0
  36. package/questions/button-group/button-group.component.d.ts +7 -0
  37. package/survey-content.component.d.ts +15 -0
  38. package/survey.component.d.ts +2 -6
  39. package/template-renderer.component.d.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-angular-ui",
3
- "version": "1.9.47",
3
+ "version": "1.9.49",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -18,8 +18,12 @@
18
18
  },
19
19
  "typings": "survey-angular-ui.d.ts",
20
20
  "peerDependencies": {
21
+ "@angular/cdk": "*",
22
+ "@angular/core": "*",
23
+ "@angular/forms": "*",
21
24
  "rxjs": "~7.4.0",
22
- "zone.js": "~0.11.4"
25
+ "zone.js": "~0.11.4",
26
+ "survey-core": "^1.9.46"
23
27
  },
24
28
  "module": "fesm2015/survey-angular-ui.mjs",
25
29
  "es2020": "fesm2020/survey-angular-ui.mjs",
@@ -0,0 +1,14 @@
1
+ import { OnChanges } from "@angular/core";
2
+ import { BaseAngular } from "../../base-angular";
3
+ import { ButtonGroupItemModel, ItemValue, QuestionButtonGroupModel } from "survey-core";
4
+ import * as i0 from "@angular/core";
5
+ export declare class ButtonGroupItemComponent extends BaseAngular<ItemValue> implements OnChanges {
6
+ item: ItemValue;
7
+ question: QuestionButtonGroupModel;
8
+ index: number;
9
+ model: ButtonGroupItemModel;
10
+ ngOnChanges(): void;
11
+ protected getModel(): ItemValue;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupItemComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupItemComponent, "sv-button-group-item", never, { "item": "item"; "question": "question"; "index": "index"; }, {}, never, never>;
14
+ }
@@ -0,0 +1,7 @@
1
+ import { QuestionAngular } from "../../question";
2
+ import { QuestionButtonGroupModel } from "survey-core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ButtonGroupQuestionComponent extends QuestionAngular<QuestionButtonGroupModel> {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupQuestionComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupQuestionComponent, "sv-ng-buttongroup-question", never, {}, {}, never, never>;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { AfterViewInit, ElementRef, OnInit } from "@angular/core";
2
+ import { SurveyModel } from "survey-core";
3
+ import { BaseAngular } from "./base-angular";
4
+ import * as i0 from "@angular/core";
5
+ export declare class SurveyContentComponent extends BaseAngular<SurveyModel> implements OnInit, AfterViewInit {
6
+ model: SurveyModel;
7
+ rootEl: ElementRef<HTMLDivElement>;
8
+ protected getModel(): SurveyModel;
9
+ protected onModelChanged(): void;
10
+ ngOnInit(): void;
11
+ ngOnDestroy(): void;
12
+ ngAfterViewInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SurveyContentComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<SurveyContentComponent, "survey-content", never, { "model": "model"; }, {}, never, never>;
15
+ }
@@ -1,16 +1,12 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from "@angular/core";
1
+ import { ChangeDetectorRef } from "@angular/core";
2
2
  import { SurveyModel } from "survey-core";
3
3
  import { BaseAngular } from "./base-angular";
4
4
  import * as i0 from "@angular/core";
5
- export declare class SurveyComponent extends BaseAngular<SurveyModel> implements OnInit, AfterViewInit {
5
+ export declare class SurveyComponent extends BaseAngular<SurveyModel> {
6
6
  model: SurveyModel;
7
- rootEl: ElementRef<HTMLDivElement>;
8
7
  protected getModel(): SurveyModel;
9
8
  constructor(changeDetectorRef: ChangeDetectorRef);
10
9
  protected onModelChanged(): void;
11
- ngOnInit(): void;
12
- ngOnDestroy(): void;
13
- ngAfterViewInit(): void;
14
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SurveyComponent, never>;
15
11
  static ɵcmp: i0.ɵɵComponentDeclaration<SurveyComponent, "survey", never, { "model": "model"; }, {}, never, never>;
16
12
  }
@@ -0,0 +1,11 @@
1
+ import { PanelModel, Question } from "survey-core";
2
+ import { BaseAngular } from "./base-angular";
3
+ import * as i0 from "@angular/core";
4
+ export declare class TemplateRendererComponent extends BaseAngular<PanelModel | Question> {
5
+ model: PanelModel | Question;
6
+ componentData?: any;
7
+ protected getModel(): PanelModel | Question;
8
+ get componentName(): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplateRendererComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<TemplateRendererComponent, "sv-template-renderer", never, { "model": "model"; "componentData": "componentData"; }, {}, never, never>;
11
+ }