herum-shared 0.1.49 → 0.1.59
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/atoms/index.d.ts +0 -1
- package/fesm2022/herum-shared-atoms.mjs +1 -2
- package/fesm2022/herum-shared-atoms.mjs.map +1 -1
- package/fesm2022/herum-shared-utils.mjs +9 -1
- package/fesm2022/herum-shared-utils.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +88 -126
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +10 -16
- package/package.json +1 -1
- package/utils/index.d.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -548,7 +548,7 @@ declare class HerumQuizComponent implements OnChanges {
|
|
|
548
548
|
onGradeUpdate: EventEmitter<any>;
|
|
549
549
|
isCurrentQuestionValid: boolean;
|
|
550
550
|
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
551
|
-
ngOnChanges(
|
|
551
|
+
ngOnChanges(): void;
|
|
552
552
|
get currentQuestionIndex(): number;
|
|
553
553
|
get currentQuestionValidation(): boolean;
|
|
554
554
|
get nextButtonText(): "התחל מבחן" | "חזרה למסך סיכום" | "סיים מבחן" | "הגשת מבחן" | "ניסיון חוזר" | "לשאלה הבאה";
|
|
@@ -617,17 +617,16 @@ declare class QuizOneAnswerQuestionComponent implements OnChanges {
|
|
|
617
617
|
name: string;
|
|
618
618
|
}[];
|
|
619
619
|
selectedAnswer: FormControl;
|
|
620
|
+
destroySubject$: Subject<null>;
|
|
620
621
|
answerNotes: string[];
|
|
621
622
|
correctAnswer: IdentifiedEntity;
|
|
622
623
|
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
623
624
|
ngOnChanges(changes: SimpleChanges): void;
|
|
624
|
-
private get isRadioBlocked();
|
|
625
625
|
private getAnswerNotes;
|
|
626
626
|
private convertToOptions;
|
|
627
|
-
private getChosenAnswerId;
|
|
628
627
|
private isCheckedAnswerCorrect;
|
|
629
|
-
|
|
630
|
-
|
|
628
|
+
ngOnInit(): void;
|
|
629
|
+
ngOnDestroy(): void;
|
|
631
630
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuizOneAnswerQuestionComponent, never>;
|
|
632
631
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuizOneAnswerQuestionComponent, "quiz-one-answer-question", never, { "instructionTitle": { "alias": "instructionTitle"; "required": false; }; "question": { "alias": "question"; "required": false; }; "userAnswers": { "alias": "userAnswers"; "required": false; }; "quizData": { "alias": "quizData"; "required": false; }; "areAnswersRevealed": { "alias": "areAnswersRevealed"; "required": false; }; "areAnswersBlocked": { "alias": "areAnswersBlocked"; "required": false; }; "isCheckingMode": { "alias": "isCheckingMode"; "required": false; }; }, { "onAnswersChange": "onAnswersChange"; }, never, never, false, never>;
|
|
633
632
|
}
|
|
@@ -681,8 +680,6 @@ declare class QuizMultiAnswerQuestionComponent {
|
|
|
681
680
|
answerTypeAttributes: string[];
|
|
682
681
|
constructor(fb: FormBuilder);
|
|
683
682
|
ngOnChanges(changes: SimpleChanges): void;
|
|
684
|
-
private initQuestionFormControls;
|
|
685
|
-
private syncQuestionFormControls;
|
|
686
683
|
private setAnswerTypeAttributes;
|
|
687
684
|
_onAnswerClicked(index: number): void;
|
|
688
685
|
_isAnswerChecked(answerId: string): boolean;
|
|
@@ -690,10 +687,8 @@ declare class QuizMultiAnswerQuestionComponent {
|
|
|
690
687
|
private iAnswerCorrect;
|
|
691
688
|
_onAnswersChange(answer: Answer, isChosen: boolean): void;
|
|
692
689
|
private getFormControlValue;
|
|
693
|
-
private toIsChosen;
|
|
694
690
|
get controlNamePrefix(): string;
|
|
695
691
|
get isBlocked(): boolean;
|
|
696
|
-
get questionAnswers(): Answer[];
|
|
697
692
|
ngOnDestroy(): void;
|
|
698
693
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuizMultiAnswerQuestionComponent, never>;
|
|
699
694
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuizMultiAnswerQuestionComponent, "quiz-multi-answer-question", never, { "question": { "alias": "question"; "required": false; }; "quizData": { "alias": "quizData"; "required": false; }; "userAnswers": { "alias": "userAnswers"; "required": false; }; "isCheckingMode": { "alias": "isCheckingMode"; "required": false; }; "areAnswersRevealed": { "alias": "areAnswersRevealed"; "required": false; }; "areAnswersBlocked": { "alias": "areAnswersBlocked"; "required": false; }; "correctAnswerCount": { "alias": "correctAnswerCount"; "required": false; }; }, { "onAnswersChange": "onAnswersChange"; "onValidationChange": "onValidationChange"; }, never, never, false, never>;
|
|
@@ -1113,9 +1108,9 @@ declare class QuizOpenAnswerQuestionComponent {
|
|
|
1113
1108
|
areAnswersBlocked: boolean;
|
|
1114
1109
|
isCheckingMode: boolean;
|
|
1115
1110
|
selectedTextChange: TextChange;
|
|
1116
|
-
|
|
1111
|
+
answerChange: EventEmitter<string>;
|
|
1117
1112
|
notesChange: EventEmitter<TextChange[]>;
|
|
1118
|
-
|
|
1113
|
+
freeTextControl: FormControl<string>;
|
|
1119
1114
|
notes: TextChange[];
|
|
1120
1115
|
destroySubject$: Subject<null>;
|
|
1121
1116
|
constructor(answerNotesToTextChangesPipe: AnswerNotesToTextChangesPipe$1);
|
|
@@ -1124,7 +1119,7 @@ declare class QuizOpenAnswerQuestionComponent {
|
|
|
1124
1119
|
_notesChange(notes: TextChange[]): void;
|
|
1125
1120
|
ngOnDestroy(): void;
|
|
1126
1121
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuizOpenAnswerQuestionComponent, never>;
|
|
1127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuizOpenAnswerQuestionComponent, "quiz-open-answer-question", never, { "previewMode": { "alias": "previewMode"; "required": false; }; "question": { "alias": "question"; "required": false; }; "userQuestion": { "alias": "userQuestion"; "required": false; }; "areAnswersRevealed": { "alias": "areAnswersRevealed"; "required": false; }; "areAnswersBlocked": { "alias": "areAnswersBlocked"; "required": false; }; "isCheckingMode": { "alias": "isCheckingMode"; "required": false; }; "selectedTextChange": { "alias": "selectedTextChange"; "required": false; }; }, { "
|
|
1122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuizOpenAnswerQuestionComponent, "quiz-open-answer-question", never, { "previewMode": { "alias": "previewMode"; "required": false; }; "question": { "alias": "question"; "required": false; }; "userQuestion": { "alias": "userQuestion"; "required": false; }; "areAnswersRevealed": { "alias": "areAnswersRevealed"; "required": false; }; "areAnswersBlocked": { "alias": "areAnswersBlocked"; "required": false; }; "isCheckingMode": { "alias": "isCheckingMode"; "required": false; }; "selectedTextChange": { "alias": "selectedTextChange"; "required": false; }; }, { "answerChange": "answerChange"; "notesChange": "notesChange"; }, never, never, false, never>;
|
|
1128
1123
|
}
|
|
1129
1124
|
|
|
1130
1125
|
declare class HerumHighlightDirective {
|
|
@@ -1710,7 +1705,6 @@ declare class HerumSliderComponent {
|
|
|
1710
1705
|
maxSliderValue: number;
|
|
1711
1706
|
currentSliderValue: number;
|
|
1712
1707
|
initSlider: boolean;
|
|
1713
|
-
l: any;
|
|
1714
1708
|
isDraggingEmitter: EventEmitter<boolean>;
|
|
1715
1709
|
updatedSliderValue: EventEmitter<number>;
|
|
1716
1710
|
slider: ElementRef;
|
|
@@ -1984,7 +1978,7 @@ declare class UserProfileImageComponent {
|
|
|
1984
1978
|
user: User | UserPreview;
|
|
1985
1979
|
isLoadingUser: boolean;
|
|
1986
1980
|
isUserClickAble: boolean;
|
|
1987
|
-
userClicked: EventEmitter<
|
|
1981
|
+
userClicked: EventEmitter<User | UserPreview>;
|
|
1988
1982
|
imagePath: string;
|
|
1989
1983
|
isLoadingImage: boolean;
|
|
1990
1984
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -2404,7 +2398,7 @@ declare class HerumMultiProgressBarComponent implements OnInit {
|
|
|
2404
2398
|
}[];
|
|
2405
2399
|
constructor();
|
|
2406
2400
|
ngOnInit(): void;
|
|
2407
|
-
getBorderRadius(sectionIndex: number, progressBarIndex: number): "none" | "
|
|
2401
|
+
getBorderRadius(sectionIndex: number, progressBarIndex: number): "none" | "both" | "left" | "right";
|
|
2408
2402
|
static ɵfac: i0.ɵɵFactoryDeclaration<HerumMultiProgressBarComponent, never>;
|
|
2409
2403
|
static ɵcmp: i0.ɵɵComponentDeclaration<HerumMultiProgressBarComponent, "herum-multi-progress-bar", never, { "progressBarsSections": { "alias": "progressBarsSections"; "required": false; }; }, {}, never, never, false, never>;
|
|
2410
2404
|
}
|
|
@@ -2789,7 +2783,7 @@ declare class TableModule {
|
|
|
2789
2783
|
|
|
2790
2784
|
declare class HerumSharedModule {
|
|
2791
2785
|
static ɵfac: i0.ɵɵFactoryDeclaration<HerumSharedModule, never>;
|
|
2792
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HerumSharedModule, [typeof HerumVideoPlayerComponent, typeof TrackTextChangesComponent, typeof HerumVideoRangeBarComponent, typeof HerumPdfViewerComponent, typeof HerumStoryViewerComponent, typeof HerumPresentationViewerComponent, typeof HerumLoaderComponent, typeof HerumQuizComponent, typeof QuizHeaderComponent, typeof QuizTwoAnswersQuestionComponent, typeof QuizOneAnswerQuestionComponent, typeof QuizSubmissionComponent, typeof QuizIntroComponent, typeof QuizGradeSheetComponent, typeof QuizMultiAnswerQuestionComponent, typeof QuizLoaderComponent, typeof HerumListCentralizerComponent, typeof HerumLocalLoaderComponent, typeof BlockedFormComponent, typeof AudioPlayerComponent, typeof HerumMiniTableComponent, typeof HerumHierarchyTreeComponent, typeof RecursiveTreeComponent, typeof HerumTextualVerticalTreeComponent, typeof HerumDateTimePickerSelectComponent, typeof HerumTimeRangeSelectComponent, typeof AudioSliderComponent, typeof QuizOpenAnswerQuestionComponent], [typeof i2.CommonModule, typeof i40.ReactiveFormsModule, typeof i40.FormsModule, typeof i41.MatMenuModule, typeof i42.ClipboardModule, typeof i43.MatAutocompleteModule, typeof i44.MatChipsModule, typeof i45.MatFormFieldModule, typeof i46.MatTooltipModule, typeof i47.MatInputModule, typeof i48.MatSelectModule, typeof i49.MatIconModule, typeof i50.MatCheckboxModule, typeof i51.MatSliderModule, typeof i52.DragDropModule, typeof i53.MatDatepickerModule, typeof i54.MatNativeDateModule, typeof DirectivesModule, typeof DialogsModule, typeof AtomsModule, typeof PipesModule, typeof MoleculesModule, typeof ErrorsModule, typeof FetchedMessageModule, typeof TableModule], [typeof TrackTextChangesComponent, typeof HerumVideoPlayerComponent, typeof HerumPdfViewerComponent, typeof HerumStoryViewerComponent, typeof HerumLoaderComponent, typeof HerumLocalLoaderComponent, typeof HerumQuizComponent, typeof i2.CommonModule, typeof HerumListCentralizerComponent, typeof BlockedFormComponent, typeof HerumMiniTableComponent, typeof HerumHierarchyTreeComponent, typeof HerumTextualVerticalTreeComponent, typeof AudioPlayerComponent, typeof HerumDateTimePickerSelectComponent, typeof HerumTimeRangeSelectComponent, typeof QuizIntroComponent, typeof QuizOneAnswerQuestionComponent, typeof QuizMultiAnswerQuestionComponent, typeof QuizOpenAnswerQuestionComponent, typeof DirectivesModule, typeof DialogsModule, typeof AtomsModule, typeof MoleculesModule, typeof PipesModule, typeof ErrorsModule, typeof FetchedMessageModule, typeof TableModule]>;
|
|
2786
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HerumSharedModule, [typeof HerumVideoPlayerComponent, typeof TrackTextChangesComponent, typeof HerumVideoRangeBarComponent, typeof HerumPdfViewerComponent, typeof HerumStoryViewerComponent, typeof HerumPresentationViewerComponent, typeof HerumLoaderComponent, typeof HerumQuizComponent, typeof QuizHeaderComponent, typeof QuizTwoAnswersQuestionComponent, typeof QuizOneAnswerQuestionComponent, typeof QuizSubmissionComponent, typeof QuizIntroComponent, typeof QuizGradeSheetComponent, typeof QuizMultiAnswerQuestionComponent, typeof QuizLoaderComponent, typeof HerumListCentralizerComponent, typeof HerumLocalLoaderComponent, typeof BlockedFormComponent, typeof AudioPlayerComponent, typeof HerumMiniTableComponent, typeof HerumHierarchyTreeComponent, typeof RecursiveTreeComponent, typeof HerumTextualVerticalTreeComponent, typeof HerumDateTimePickerSelectComponent, typeof HerumTimeRangeSelectComponent, typeof AudioSliderComponent, typeof QuizOpenAnswerQuestionComponent], [typeof i2.CommonModule, typeof i40.ReactiveFormsModule, typeof i40.FormsModule, typeof i41.MatMenuModule, typeof i42.ClipboardModule, typeof i43.MatAutocompleteModule, typeof i44.MatChipsModule, typeof i45.MatFormFieldModule, typeof i46.MatTooltipModule, typeof i47.MatInputModule, typeof i48.MatSelectModule, typeof i49.MatIconModule, typeof i50.MatCheckboxModule, typeof i51.MatSliderModule, typeof i52.DragDropModule, typeof i53.MatDatepickerModule, typeof i54.MatNativeDateModule, typeof DirectivesModule, typeof DialogsModule, typeof AtomsModule, typeof PipesModule, typeof MoleculesModule, typeof ErrorsModule, typeof FetchedMessageModule, typeof TableModule], [typeof TrackTextChangesComponent, typeof HerumVideoPlayerComponent, typeof HerumPdfViewerComponent, typeof HerumStoryViewerComponent, typeof HerumLoaderComponent, typeof HerumLocalLoaderComponent, typeof HerumQuizComponent, typeof i2.CommonModule, typeof HerumListCentralizerComponent, typeof BlockedFormComponent, typeof HerumMiniTableComponent, typeof HerumHierarchyTreeComponent, typeof HerumTextualVerticalTreeComponent, typeof AudioPlayerComponent, typeof HerumDateTimePickerSelectComponent, typeof HerumTimeRangeSelectComponent, typeof QuizIntroComponent, typeof QuizOneAnswerQuestionComponent, typeof QuizMultiAnswerQuestionComponent, typeof QuizOpenAnswerQuestionComponent, typeof DirectivesModule, typeof DialogsModule, typeof AtomsModule, typeof MoleculesModule, typeof PipesModule, typeof ErrorsModule, typeof FetchedMessageModule, typeof TableModule, typeof AudioSliderComponent]>;
|
|
2793
2787
|
static ɵinj: i0.ɵɵInjectorDeclaration<HerumSharedModule>;
|
|
2794
2788
|
}
|
|
2795
2789
|
|
package/package.json
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { CollectionSubscription, ResourceSubscription } from 'herum-types/User';
|
|
|
9
9
|
declare const flatten: <T>(arr: T[][]) => T[];
|
|
10
10
|
declare const findKeyByValue: (array: {}[], value: any) => string;
|
|
11
11
|
declare const parseToIdentifiedEntitiesArray: (array: string[]) => IdentifiedEntity[];
|
|
12
|
+
declare const shuffleArray: <T>(items: T[]) => T[];
|
|
12
13
|
|
|
13
14
|
declare const getAssignmentStateDisplayName: (state: any) => "שיבוץ זמני" | "אכ\"א" | "אג\"ת";
|
|
14
15
|
|
|
@@ -91,5 +92,5 @@ declare const getDropdownAnimationStates: (isDropdownOpen: boolean, dropDownDire
|
|
|
91
92
|
declare const getSubscriptionWithLastActivityTime: (subscriptions: CollectionSubscription[] | ResourceSubscription[]) => CollectionSubscription;
|
|
92
93
|
declare const getLastSubscriptionByField: (subscriptions: CollectionSubscription[] | ResourceSubscription[], field: string) => CollectionSubscription;
|
|
93
94
|
|
|
94
|
-
export { buildPath, bytesToMegabytes, camelCaseToPascalCase, capitalizeWord, convertDependentMetadataToHeaders, convertHeightToPixels, convertToDate, downloadFile, findKeyByValue, flatten, generateNewTimeStamp, getAssignmentStateDisplayName, getBrowserVersion, getChromeVersion, getDeserializedFile, getDifferencesInLists, getDifferencesInObjects, getDropdownAnimationStates, getEntitiesLayoutProperties, getHierarchyPartIfExist, getLastSubscriptionByField, getMicroResourceTextualTimeString, getSubscriptionWithLastActivityTime, getTimeAsAgo, getVersionPathParameter, isTruncatedTitleElement, parseToIdentifiedEntitiesArray, remainJustWantedValueInDictionary, removeCommonItemsInObjectsFields, removeCommonObjectsBetweenArrays, removeDuplicatesBetweenArrays, removeUnwantedProperties, replaceInterpolateKeysWithObjectProperties, setElementsGridStyle, setHeaders, setNavFlexLayout, setNavFlexLayoutStyle, toFirstCapitalLetter, toFirstLowerCaseLetter, toHash, updateFullYear };
|
|
95
|
+
export { buildPath, bytesToMegabytes, camelCaseToPascalCase, capitalizeWord, convertDependentMetadataToHeaders, convertHeightToPixels, convertToDate, downloadFile, findKeyByValue, flatten, generateNewTimeStamp, getAssignmentStateDisplayName, getBrowserVersion, getChromeVersion, getDeserializedFile, getDifferencesInLists, getDifferencesInObjects, getDropdownAnimationStates, getEntitiesLayoutProperties, getHierarchyPartIfExist, getLastSubscriptionByField, getMicroResourceTextualTimeString, getSubscriptionWithLastActivityTime, getTimeAsAgo, getVersionPathParameter, isTruncatedTitleElement, parseToIdentifiedEntitiesArray, remainJustWantedValueInDictionary, removeCommonItemsInObjectsFields, removeCommonObjectsBetweenArrays, removeDuplicatesBetweenArrays, removeUnwantedProperties, replaceInterpolateKeysWithObjectProperties, setElementsGridStyle, setHeaders, setNavFlexLayout, setNavFlexLayoutStyle, shuffleArray, toFirstCapitalLetter, toFirstLowerCaseLetter, toHash, updateFullYear };
|
|
95
96
|
export type { ListsDiffs };
|