herum-shared 0.1.50 → 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 (32) hide show
  1. package/atoms/index.d.ts +1 -2
  2. package/environment/index.d.ts +0 -1
  3. package/fesm2022/herum-shared-animations.mjs.map +1 -1
  4. package/fesm2022/herum-shared-atoms.mjs +1 -2
  5. package/fesm2022/herum-shared-atoms.mjs.map +1 -1
  6. package/fesm2022/herum-shared-constants.mjs.map +1 -1
  7. package/fesm2022/herum-shared-decorators.mjs.map +1 -1
  8. package/fesm2022/herum-shared-dialogs.mjs.map +1 -1
  9. package/fesm2022/herum-shared-directives.mjs.map +1 -1
  10. package/fesm2022/herum-shared-environment.mjs.map +1 -1
  11. package/fesm2022/herum-shared-errors.mjs.map +1 -1
  12. package/fesm2022/herum-shared-fetched-message.mjs.map +1 -1
  13. package/fesm2022/herum-shared-molecules.mjs.map +1 -1
  14. package/fesm2022/herum-shared-mongo.mjs.map +1 -1
  15. package/fesm2022/herum-shared-objectsExample.mjs.map +1 -1
  16. package/fesm2022/herum-shared-pipes.mjs.map +1 -1
  17. package/fesm2022/herum-shared-services.mjs +1 -2
  18. package/fesm2022/herum-shared-services.mjs.map +1 -1
  19. package/fesm2022/herum-shared-static-services.mjs.map +1 -1
  20. package/fesm2022/herum-shared-table.mjs.map +1 -1
  21. package/fesm2022/herum-shared-testsObjects.mjs +1 -2
  22. package/fesm2022/herum-shared-testsObjects.mjs.map +1 -1
  23. package/fesm2022/herum-shared-tokens.mjs.map +1 -1
  24. package/fesm2022/herum-shared-utils.mjs +9 -1
  25. package/fesm2022/herum-shared-utils.mjs.map +1 -1
  26. package/fesm2022/herum-shared-validators.mjs.map +1 -1
  27. package/fesm2022/herum-shared.mjs +87 -127
  28. package/fesm2022/herum-shared.mjs.map +1 -1
  29. package/index.d.ts +7 -14
  30. package/molecules/index.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/utils/index.d.ts +2 -1
package/index.d.ts CHANGED
@@ -123,7 +123,6 @@ type EnvironmentConfig = {
123
123
  siteServerPath: string;
124
124
  filesDisplayServerPath?: string;
125
125
  s3ServerPath: string;
126
- bucketPlaceholderKey: string;
127
126
  userAction: string;
128
127
  lessonSocketBackend: string;
129
128
  keyboardEventsLocalSocketPath: string;
@@ -549,10 +548,10 @@ declare class HerumQuizComponent implements OnChanges {
549
548
  onGradeUpdate: EventEmitter<any>;
550
549
  isCurrentQuestionValid: boolean;
551
550
  constructor(changeDetectorRef: ChangeDetectorRef);
552
- ngOnChanges(changes: SimpleChanges): void;
551
+ ngOnChanges(): void;
553
552
  get currentQuestionIndex(): number;
554
553
  get currentQuestionValidation(): boolean;
555
- get nextButtonText(): "הגשת מבחן" | "התחל מבחן" | "חזרה למסך סיכום" | "סיים מבחן" | "ניסיון חוזר" | "לשאלה הבאה";
554
+ get nextButtonText(): "התחל מבחן" | "חזרה למסך סיכום" | "סיים מבחן" | "הגשת מבחן" | "ניסיון חוזר" | "לשאלה הבאה";
556
555
  _previousQuestion(): void;
557
556
  get previousButtonText(): "לשאלה הקודמת" | "חזרה לשאלה הראשונה";
558
557
  get isValidQuiz(): boolean;
@@ -618,17 +617,16 @@ declare class QuizOneAnswerQuestionComponent implements OnChanges {
618
617
  name: string;
619
618
  }[];
620
619
  selectedAnswer: FormControl;
620
+ destroySubject$: Subject<null>;
621
621
  answerNotes: string[];
622
622
  correctAnswer: IdentifiedEntity;
623
623
  constructor(changeDetectorRef: ChangeDetectorRef);
624
624
  ngOnChanges(changes: SimpleChanges): void;
625
- private get isRadioBlocked();
626
625
  private getAnswerNotes;
627
626
  private convertToOptions;
628
- private getChosenAnswerId;
629
627
  private isCheckedAnswerCorrect;
630
- _onAnswerSelected(answerId: string): void;
631
- private get questionAnswers();
628
+ ngOnInit(): void;
629
+ ngOnDestroy(): void;
632
630
  static ɵfac: i0.ɵɵFactoryDeclaration<QuizOneAnswerQuestionComponent, never>;
633
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>;
634
632
  }
@@ -682,8 +680,6 @@ declare class QuizMultiAnswerQuestionComponent {
682
680
  answerTypeAttributes: string[];
683
681
  constructor(fb: FormBuilder);
684
682
  ngOnChanges(changes: SimpleChanges): void;
685
- private initQuestionFormControls;
686
- private syncQuestionFormControls;
687
683
  private setAnswerTypeAttributes;
688
684
  _onAnswerClicked(index: number): void;
689
685
  _isAnswerChecked(answerId: string): boolean;
@@ -691,10 +687,8 @@ declare class QuizMultiAnswerQuestionComponent {
691
687
  private iAnswerCorrect;
692
688
  _onAnswersChange(answer: Answer, isChosen: boolean): void;
693
689
  private getFormControlValue;
694
- private toIsChosen;
695
690
  get controlNamePrefix(): string;
696
691
  get isBlocked(): boolean;
697
- get questionAnswers(): Answer[];
698
692
  ngOnDestroy(): void;
699
693
  static ɵfac: i0.ɵɵFactoryDeclaration<QuizMultiAnswerQuestionComponent, never>;
700
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>;
@@ -1116,7 +1110,7 @@ declare class QuizOpenAnswerQuestionComponent {
1116
1110
  selectedTextChange: TextChange;
1117
1111
  answerChange: EventEmitter<string>;
1118
1112
  notesChange: EventEmitter<TextChange[]>;
1119
- correctAnswerControl: FormControl<string>;
1113
+ freeTextControl: FormControl<string>;
1120
1114
  notes: TextChange[];
1121
1115
  destroySubject$: Subject<null>;
1122
1116
  constructor(answerNotesToTextChangesPipe: AnswerNotesToTextChangesPipe$1);
@@ -1711,7 +1705,6 @@ declare class HerumSliderComponent {
1711
1705
  maxSliderValue: number;
1712
1706
  currentSliderValue: number;
1713
1707
  initSlider: boolean;
1714
- l: any;
1715
1708
  isDraggingEmitter: EventEmitter<boolean>;
1716
1709
  updatedSliderValue: EventEmitter<number>;
1717
1710
  slider: ElementRef;
@@ -2790,7 +2783,7 @@ declare class TableModule {
2790
2783
 
2791
2784
  declare class HerumSharedModule {
2792
2785
  static ɵfac: i0.ɵɵFactoryDeclaration<HerumSharedModule, never>;
2793
- 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]>;
2794
2787
  static ɵinj: i0.ɵɵInjectorDeclaration<HerumSharedModule>;
2795
2788
  }
2796
2789
 
@@ -343,7 +343,7 @@ declare class HerumMultiProgressBarComponent implements OnInit {
343
343
  }[];
344
344
  constructor();
345
345
  ngOnInit(): void;
346
- getBorderRadius(sectionIndex: number, progressBarIndex: number): "right" | "none" | "left" | "both";
346
+ getBorderRadius(sectionIndex: number, progressBarIndex: number): "none" | "both" | "left" | "right";
347
347
  static ɵfac: i0.ɵɵFactoryDeclaration<HerumMultiProgressBarComponent, never>;
348
348
  static ɵcmp: i0.ɵɵComponentDeclaration<HerumMultiProgressBarComponent, "herum-multi-progress-bar", never, { "progressBarsSections": { "alias": "progressBarsSections"; "required": false; }; }, {}, never, never, false, never>;
349
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herum-shared",
3
- "version": "0.1.50",
3
+ "version": "0.1.60",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.2",
6
6
  "@angular/cdk": "^20.1.2",
@@ -14,7 +14,7 @@
14
14
  "herum-types": "^1.0.1",
15
15
  "jssha": "^2.4.2",
16
16
  "lodash": "^4.17.21",
17
- "rxjs": "~7.5.1",
17
+ "rxjs": "^7.5.1",
18
18
  "lottie-web": "^5.13.0",
19
19
  "angular-split": "^20.0.0",
20
20
  "uuid": "^13.0.0"
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 };