@the-liberators/ngx-scrumteamsurvey-tools 2.3.13 → 2.3.14

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.
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare function minTopicsSelectedValidator(minimum: number): ValidatorFn;
@@ -0,0 +1,49 @@
1
+ import { AbstractControl, ControlValueAccessor, FormArray, FormBuilder, FormGroup } from '@angular/forms';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { FactorStructureDto, QuestionnaireTypeDto } from '../../models/modelStructureDto';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TopicSelectorComponent implements ControlValueAccessor {
6
+ private formBuilder;
7
+ private dialog;
8
+ form: FormGroup;
9
+ warnings: string[];
10
+ private selectedTopics;
11
+ questionnaireAccuracy: number;
12
+ questionsTeamMembers: number;
13
+ questionsStakeholders: number;
14
+ questionsSupporters: number;
15
+ durationTeamMembers: number;
16
+ durationStakeholders: number;
17
+ durationSupporters: number;
18
+ questionsTotal: number;
19
+ topics: FactorStructureDto[];
20
+ disabled: boolean;
21
+ topicKeys: string[];
22
+ presets: QuestionnaireTypeDto[];
23
+ constructor(formBuilder: FormBuilder, dialog: MatDialog);
24
+ ngOnInit(): void;
25
+ writeValue(dto: TopicSelectorDto): void;
26
+ setDisabledState?(isDisabled: boolean): void;
27
+ registerOnChange(fn: any): void;
28
+ registerOnTouched(fn: any): void;
29
+ onChange: any;
30
+ onTouch: any;
31
+ selectPreset(): void;
32
+ getValue(): TopicSelectorDto;
33
+ openFactorInformation(topicKey: string, $event: Event): void;
34
+ get topicsArray(): FormArray;
35
+ getSubTopicsArray(topicGroup: any): AbstractControl<any, any>[];
36
+ selectTopic(subTopicGroup: any): void;
37
+ selectAll(subTopicGroup: any, $event: Event): void;
38
+ selectNone(subTopicGroup: any, $event: Event): void;
39
+ private getAllFormGroups;
40
+ private createForm;
41
+ private updateMetaData;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopicSelectorComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<TopicSelectorComponent, "topic-selector", never, { "topics": { "alias": "topics"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "topicKeys": { "alias": "topicKeys"; "required": false; }; "presets": { "alias": "presets"; "required": false; }; }, {}, never, never, false, never>;
44
+ }
45
+ export declare class TopicSelectorDto {
46
+ constructor(presetKey: string, topicKeys: string[]);
47
+ presetKey: string;
48
+ topicKeys: string[];
49
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./topic-selector.component";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "@angular/material/form-field";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/material/select";
7
+ import * as i6 from "../../pipes/slugify/ngx-slugify.module";
8
+ import * as i7 from "../../dialogs/dialog-factorinformation/dialog-factorinformation.module";
9
+ export declare class TopicSelectorModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopicSelectorModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TopicSelectorModule, [typeof i1.TopicSelectorComponent], [typeof i2.FormsModule, typeof i3.MatFormFieldModule, typeof i2.ReactiveFormsModule, typeof i4.CommonModule, typeof i5.MatSelectModule, typeof i6.SlugifyPipeModule, typeof i7.FactorInformationDialogModule], [typeof i1.TopicSelectorComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<TopicSelectorModule>;
13
+ }
@@ -41,6 +41,7 @@ export declare class FactorStructureDto {
41
41
  lower: FactorStructureDto[];
42
42
  attribution: string;
43
43
  antecedents: FactorStructureDto[];
44
+ recommended: boolean;
44
45
  }
45
46
  export declare class FactorStructureSegmentDto {
46
47
  questionCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-liberators/ngx-scrumteamsurvey-tools",
3
- "version": "2.3.13",
3
+ "version": "2.3.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.9",
6
6
  "@angular/core": "^18.2.9",
package/public-api.d.ts CHANGED
@@ -74,7 +74,9 @@ export * from './lib/components/tabnavigator/tabnavigator.module';
74
74
  export * from './lib/components/multi-email-input/multi-email-input.component';
75
75
  export * from './lib/components/multi-email-input/multi-email-input.module';
76
76
  export * from './lib/components/multi-email-input/multi-email-input.component';
77
- export * from './lib/components/multi-email-input/multi-email-input.module';
77
+ export * from './lib/components/topicselector/minTopicsSelectedValidator';
78
+ export * from './lib/components/topicselector/topic-selector.component';
79
+ export * from './lib/components/topicselector/topic-selector.module';
78
80
  export * from './lib/dialogs/dialog-account/account.service';
79
81
  export * from './lib/dialogs/dialog-account/dialog-account.component';
80
82
  export * from './lib/dialogs/dialog-account/dialog-account.module';