herum-shared 0.1.34 → 0.1.37
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/index.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, OnChanges, OnDestroy, ElementRef, SimpleChanges, AfterViewInit, OnInit, ChangeDetectorRef, QueryList, TemplateRef,
|
|
3
|
-
import { ResourceGradeUpdate, IMediaPlayer, ResourceSubscription, MediaSettings, TextChange, UserPreview, TextChangeStyle, Resource, QuizData, Question, UserAnswer, Answer, IdentifiedEntity,
|
|
2
|
+
import { EventEmitter, OnChanges, OnDestroy, ElementRef, SimpleChanges, AfterViewInit, OnInit, ChangeDetectorRef, QueryList, TemplateRef, Renderer2, PipeTransform } from '@angular/core';
|
|
3
|
+
import { ResourceGradeUpdate, IMediaPlayer, ResourceSubscription, MediaSettings, TextChange, UserPreview, TextChangeStyle, Resource, QuizData, Question, UserAnswer, Answer, IdentifiedEntity, ViewModelType, AudioVisualConfiguration, TreeNode, NodeMenuItem, SystemTreeNodeData, TimeRange, DateTimePicker, UserQuestionData, DialogConfig, FileData, User, HerumTableParams, RecursiveTitledOption, MenuItem, CollectionSubscription, CollectionBase, Collection, ModifiedResource, AnswerNote, SignUpField, DisplayIdentifiedEntity, TreeNodeAssignmentsData, Step, KeyValue, ProgressOverView, FetchedMessage, AlignDir, HoveredHerumRowTable, BaseRowData, FailedDependentsRequestsContext, CommonDependentsToast, ToastHttpResponseDependencies, ComplexObservableArrowFunctions, DependentMetadata, ObservableArrowFunction, Toast, ToastTemplate, ToastStatus, UploadProgressMetadata, UploadProgressStatus, UploadProgressType } from 'herum-shared/herum-types';
|
|
4
4
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
5
|
-
import { GlobalKeyboardListenerService
|
|
5
|
+
import { GlobalKeyboardListenerService, KeyPressService, TrackTextChangesService, UtilsService, CommonGraphqlRequestsService } from 'herum-shared/services';
|
|
6
6
|
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
7
7
|
import * as i40 from '@angular/forms';
|
|
8
|
-
import { FormControl,
|
|
8
|
+
import { FormControl, FormGroup, FormBuilder, ControlValueAccessor, NgControl, ControlContainer, ValidatorFn, AsyncValidatorFn } from '@angular/forms';
|
|
9
|
+
import * as i4 from 'herum-shared/atoms';
|
|
10
|
+
import { HerumCheckboxComponent as HerumCheckboxComponent$1, HerumInputFieldComponent as HerumInputFieldComponent$1 } from 'herum-shared/atoms';
|
|
9
11
|
import * as i53 from '@angular/material/datepicker';
|
|
10
12
|
import { DateRange, MatCalendar } from '@angular/material/datepicker';
|
|
13
|
+
import * as i4$1 from 'herum-shared/pipes';
|
|
14
|
+
import { AnswerNotesToTextChangesPipe as AnswerNotesToTextChangesPipe$1 } from 'herum-shared/pipes';
|
|
11
15
|
import * as i2 from '@angular/common';
|
|
12
16
|
import * as i41 from '@angular/material/menu';
|
|
13
17
|
import * as i42 from '@angular/cdk/clipboard';
|
|
@@ -26,9 +30,6 @@ import * as i54 from '@angular/material/core';
|
|
|
26
30
|
import { DateAdapter } from '@angular/material/core';
|
|
27
31
|
import { HttpClient, HttpRequest, HttpErrorResponse } from '@angular/common/http';
|
|
28
32
|
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
29
|
-
import * as i4 from 'herum-shared/atoms';
|
|
30
|
-
import { HerumInputFieldComponent as HerumInputFieldComponent$1 } from 'herum-shared/atoms';
|
|
31
|
-
import * as i4$1 from 'herum-shared/pipes';
|
|
32
33
|
import * as i6 from 'herum-shared/molecules';
|
|
33
34
|
import * as i55 from 'herum-shared/directives';
|
|
34
35
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
@@ -78,7 +79,7 @@ declare class HerumVideoPlayerComponent implements OnChanges, OnDestroy, IHerumI
|
|
|
78
79
|
destroySubject$: Subject<null>;
|
|
79
80
|
updateGradeInterval: any;
|
|
80
81
|
updateCurrentTimeInterval: number;
|
|
81
|
-
constructor(globalKeyboardListener: GlobalKeyboardListenerService
|
|
82
|
+
constructor(globalKeyboardListener: GlobalKeyboardListenerService, keyPressService: KeyPressService);
|
|
82
83
|
ngOnChanges(changes: SimpleChanges): void;
|
|
83
84
|
private resetVideoState;
|
|
84
85
|
private setGradeInterval;
|
|
@@ -540,33 +541,6 @@ declare class QuizGradeSheetComponent {
|
|
|
540
541
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuizGradeSheetComponent, "quiz-grade-sheet", never, { "resourceSubscription": { "alias": "resourceSubscription"; "required": false; }; "quizData": { "alias": "quizData"; "required": false; }; }, {}, never, never, false, never>;
|
|
541
542
|
}
|
|
542
543
|
|
|
543
|
-
declare class HerumCheckboxComponent implements ControlValueAccessor, OnInit {
|
|
544
|
-
private environmentConfig;
|
|
545
|
-
type: 'checked' | 'indeterminate' | 'error' | 'disabled' | 'unchecked';
|
|
546
|
-
isChecked: boolean;
|
|
547
|
-
isBlocked: boolean;
|
|
548
|
-
checkedEmitter: EventEmitter<boolean>;
|
|
549
|
-
indeterminate: string;
|
|
550
|
-
checked: string;
|
|
551
|
-
error: string;
|
|
552
|
-
checkboxClasses: string;
|
|
553
|
-
params: HerumTableParams;
|
|
554
|
-
constructor(environmentConfig: EnvironmentConfig);
|
|
555
|
-
ngOnInit(): void;
|
|
556
|
-
_onClick(): void;
|
|
557
|
-
getCheckboxClasses(): string;
|
|
558
|
-
onChange: (value: any) => void;
|
|
559
|
-
onTouched: () => void;
|
|
560
|
-
writeValue(value: {
|
|
561
|
-
type: any;
|
|
562
|
-
isChecked: boolean;
|
|
563
|
-
} | boolean): void;
|
|
564
|
-
registerOnChange(fn: any): void;
|
|
565
|
-
registerOnTouched(fn: any): void;
|
|
566
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HerumCheckboxComponent, never>;
|
|
567
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HerumCheckboxComponent, "herum-checkbox", never, { "type": { "alias": "type"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isBlocked": { "alias": "isBlocked"; "required": false; }; }, { "checkedEmitter": "checkedEmitter"; }, never, never, false, never>;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
544
|
declare class QuizMultiAnswerQuestionComponent {
|
|
571
545
|
private fb;
|
|
572
546
|
private environmentConfig;
|
|
@@ -579,7 +553,7 @@ declare class QuizMultiAnswerQuestionComponent {
|
|
|
579
553
|
correctAnswerCount: number;
|
|
580
554
|
onAnswersChange: EventEmitter<any[]>;
|
|
581
555
|
onValidationChange: EventEmitter<boolean>;
|
|
582
|
-
checkboxes: QueryList<HerumCheckboxComponent>;
|
|
556
|
+
checkboxes: QueryList<HerumCheckboxComponent$1>;
|
|
583
557
|
isValid: boolean;
|
|
584
558
|
selectedAnswers: FormControl[];
|
|
585
559
|
answersForm: FormGroup;
|
|
@@ -652,45 +626,6 @@ declare class BlockedFormComponent {
|
|
|
652
626
|
static ɵcmp: i0.ɵɵComponentDeclaration<BlockedFormComponent, "blocked-form", never, { "inputs": { "alias": "inputs"; "required": false; }; "progressBars": { "alias": "progressBars"; "required": false; }; "view": { "alias": "view"; "required": false; }; }, {}, never, never, false, never>;
|
|
653
627
|
}
|
|
654
628
|
|
|
655
|
-
declare class GlobalKeyboardListenerService {
|
|
656
|
-
private environmentConfig;
|
|
657
|
-
globalKeyboardEvents$: Subject<GlobalKeyboardEvent>;
|
|
658
|
-
connection: WebSocket;
|
|
659
|
-
constructor(environmentConfig: EnvironmentConfig);
|
|
660
|
-
initGlobalSocket(): void;
|
|
661
|
-
get globalKeysToChromeKeysNames(): {
|
|
662
|
-
'NUMPAD 0': string;
|
|
663
|
-
'NUMPAD 1': string;
|
|
664
|
-
'NUMPAD 2': string;
|
|
665
|
-
'NUMPAD 3': string;
|
|
666
|
-
'NUMPAD 4': string;
|
|
667
|
-
'NUMPAD 5': string;
|
|
668
|
-
'NUMPAD 6': string;
|
|
669
|
-
'NUMPAD 7': string;
|
|
670
|
-
'NUMPAD 8': string;
|
|
671
|
-
'NUMPAD 9': string;
|
|
672
|
-
};
|
|
673
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalKeyboardListenerService, never>;
|
|
674
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalKeyboardListenerService>;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
declare class KeyPressService {
|
|
678
|
-
shouldPreventMacroKeyPress(event: KeyboardEvent, macroKeysPress: number[]): boolean;
|
|
679
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KeyPressService, never>;
|
|
680
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<KeyPressService>;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
declare class UtilsService {
|
|
684
|
-
private environmentConfig;
|
|
685
|
-
constructor(environmentConfig: EnvironmentConfig);
|
|
686
|
-
getDisplayedNameForMongoMethodByUserActivity(urlRequest: string): string | undefined;
|
|
687
|
-
getUrlFromFileData(fileData: Partial<FileData>): string;
|
|
688
|
-
fetchFiles(fileId: string, resourceType: string, bucket?: string): Promise<Response>;
|
|
689
|
-
initAudioFile(fileId: string, bucketName?: string, signal?: AbortSignal): Promise<File>;
|
|
690
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
691
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
629
|
declare class AudioVisualizationService {
|
|
695
630
|
private audioVisualConfiguration;
|
|
696
631
|
constructor(audioVisualConfiguration: AudioVisualConfiguration);
|
|
@@ -1040,12 +975,6 @@ declare class AudioSliderComponent {
|
|
|
1040
975
|
static ɵcmp: i0.ɵɵComponentDeclaration<AudioSliderComponent, "audio-slider", never, { "sliderValue": { "alias": "sliderValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "color": { "alias": "color"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "sliderChange": "sliderChange"; }, never, never, false, never>;
|
|
1041
976
|
}
|
|
1042
977
|
|
|
1043
|
-
declare class AnswerNotesToTextChangesPipe implements PipeTransform {
|
|
1044
|
-
transform(answerNotes: AnswerNote[]): TextChange[];
|
|
1045
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerNotesToTextChangesPipe, never>;
|
|
1046
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AnswerNotesToTextChangesPipe, "answerNotesToTextChanges", false>;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
978
|
declare class QuizOpenAnswerQuestionComponent {
|
|
1050
979
|
private answerNotesToTextChangesPipe;
|
|
1051
980
|
previewMode: boolean;
|
|
@@ -1060,7 +989,7 @@ declare class QuizOpenAnswerQuestionComponent {
|
|
|
1060
989
|
freeTextCorrectAnswerControl: FormControl<string>;
|
|
1061
990
|
notes: TextChange[];
|
|
1062
991
|
destroySubject$: Subject<null>;
|
|
1063
|
-
constructor(answerNotesToTextChangesPipe: AnswerNotesToTextChangesPipe);
|
|
992
|
+
constructor(answerNotesToTextChangesPipe: AnswerNotesToTextChangesPipe$1);
|
|
1064
993
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1065
994
|
ngOnInit(): void;
|
|
1066
995
|
_notesChange(notes: TextChange[]): void;
|
|
@@ -1206,6 +1135,33 @@ declare class HerumButtonComponent {
|
|
|
1206
1135
|
static ɵcmp: i0.ɵɵComponentDeclaration<HerumButtonComponent, "herum-button", never, { "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "roundedCorners": { "alias": "roundedCorners"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
1207
1136
|
}
|
|
1208
1137
|
|
|
1138
|
+
declare class HerumCheckboxComponent implements ControlValueAccessor, OnInit {
|
|
1139
|
+
private environmentConfig;
|
|
1140
|
+
type: 'checked' | 'indeterminate' | 'error' | 'disabled' | 'unchecked';
|
|
1141
|
+
isChecked: boolean;
|
|
1142
|
+
isBlocked: boolean;
|
|
1143
|
+
checkedEmitter: EventEmitter<boolean>;
|
|
1144
|
+
indeterminate: string;
|
|
1145
|
+
checked: string;
|
|
1146
|
+
error: string;
|
|
1147
|
+
checkboxClasses: string;
|
|
1148
|
+
params: HerumTableParams;
|
|
1149
|
+
constructor(environmentConfig: EnvironmentConfig);
|
|
1150
|
+
ngOnInit(): void;
|
|
1151
|
+
_onClick(): void;
|
|
1152
|
+
getCheckboxClasses(): string;
|
|
1153
|
+
onChange: (value: any) => void;
|
|
1154
|
+
onTouched: () => void;
|
|
1155
|
+
writeValue(value: {
|
|
1156
|
+
type: any;
|
|
1157
|
+
isChecked: boolean;
|
|
1158
|
+
} | boolean): void;
|
|
1159
|
+
registerOnChange(fn: any): void;
|
|
1160
|
+
registerOnTouched(fn: any): void;
|
|
1161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HerumCheckboxComponent, never>;
|
|
1162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HerumCheckboxComponent, "herum-checkbox", never, { "type": { "alias": "type"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isBlocked": { "alias": "isBlocked"; "required": false; }; }, { "checkedEmitter": "checkedEmitter"; }, never, never, false, never>;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1209
1165
|
declare class HerumChipComponent {
|
|
1210
1166
|
title: string;
|
|
1211
1167
|
isDeleteButtonNeeded: boolean;
|
|
@@ -1977,6 +1933,12 @@ declare class UserIdentifiedEntitiesToBackendModelsPipe implements PipeTransform
|
|
|
1977
1933
|
static ɵpipe: i0.ɵɵPipeDeclaration<UserIdentifiedEntitiesToBackendModelsPipe, "userIdentifiedEntitiesToBackendModels", false>;
|
|
1978
1934
|
}
|
|
1979
1935
|
|
|
1936
|
+
declare class AnswerNotesToTextChangesPipe implements PipeTransform {
|
|
1937
|
+
transform(answerNotes: AnswerNote[]): TextChange[];
|
|
1938
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnswerNotesToTextChangesPipe, never>;
|
|
1939
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AnswerNotesToTextChangesPipe, "answerNotesToTextChanges", false>;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1980
1942
|
declare class StringArrayToSignUpFieldArrayPipe implements PipeTransform {
|
|
1981
1943
|
transform(fields: string[] | null | undefined): SignUpField[];
|
|
1982
1944
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringArrayToSignUpFieldArrayPipe, never>;
|
|
@@ -2739,7 +2701,7 @@ declare class ErrorsHandlerService {
|
|
|
2739
2701
|
reportUploadProgressRequest$: Subject<string>;
|
|
2740
2702
|
commonDependentsErrorToast$: Subject<CommonDependentsToast>;
|
|
2741
2703
|
errorToast$: Subject<ToastHttpResponseDependencies>;
|
|
2742
|
-
constructor(dialog: MatDialog, http: HttpClient, utilsService: UtilsService
|
|
2704
|
+
constructor(dialog: MatDialog, http: HttpClient, utilsService: UtilsService, environmentConfig: EnvironmentConfig);
|
|
2743
2705
|
handleError(errorStatus: number, errorData?: any): void;
|
|
2744
2706
|
setFailedReportUploadProgressRequests(failedReportUploadProgressRequest: HttpRequest<any>): void;
|
|
2745
2707
|
private handleUnauthorizedError;
|
|
@@ -2781,7 +2743,7 @@ declare class ToastsService {
|
|
|
2781
2743
|
toastsTemplates: {
|
|
2782
2744
|
[key: string]: ToastTemplate;
|
|
2783
2745
|
};
|
|
2784
|
-
constructor(errorsHandlerService: ErrorsHandlerService, utilsService: UtilsService
|
|
2746
|
+
constructor(errorsHandlerService: ErrorsHandlerService, utilsService: UtilsService, environmentConfig: EnvironmentConfig);
|
|
2785
2747
|
createToastBasedOnHttpResponse(toastHttpResponseDependencies: ToastHttpResponseDependencies): void;
|
|
2786
2748
|
findErrorMessageByStatusCode(statusCode: string, mongoMethodDisplayedName: string): string;
|
|
2787
2749
|
showErrorToast(toastContextKey: string): void;
|