herum-shared 0.1.27 → 0.1.28
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/fesm2022/herum-shared-mongo-services.mjs +2 -2
- package/fesm2022/herum-shared-mongo-services.mjs.map +1 -1
- package/fesm2022/herum-shared-mongo.mjs +2 -2
- package/fesm2022/herum-shared-mongo.mjs.map +1 -1
- package/fesm2022/herum-shared-services.mjs +77 -8
- package/fesm2022/herum-shared-services.mjs.map +1 -1
- package/fesm2022/herum-shared-static-services.mjs +1 -69
- package/fesm2022/herum-shared-static-services.mjs.map +1 -1
- package/fesm2022/herum-shared-utils.mjs +34 -40
- package/fesm2022/herum-shared-utils.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +88 -149
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/molecules/index.d.ts +1 -1
- package/mongo/index.d.ts +1 -1
- package/mongo/services/index.d.ts +1 -1
- package/package.json +1 -1
- package/services/index.d.ts +14 -3
- package/static-services/index.d.ts +1 -14
- package/utils/index.d.ts +2 -3
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, AfterViewInit, OnInit, ChangeDetectorRef, QueryList, TemplateRef, PipeTransform, Renderer2 } from '@angular/core';
|
|
3
|
-
import { ResourceGradeUpdate, IMediaPlayer, ResourceSubscription, MediaSettings, TextChange, UserPreview, TextChangeStyle, Resource, QuizData, Question, UserAnswer, Answer, IdentifiedEntity, HerumTableParams, ViewModelType, GlobalKeyboardEvent, AudioVisualConfiguration, TreeNode, NodeMenuItem, SystemTreeNodeData, TimeRange, DateTimePicker, AnswerNote, UserQuestionData, DialogConfig,
|
|
3
|
+
import { ResourceGradeUpdate, IMediaPlayer, ResourceSubscription, MediaSettings, TextChange, UserPreview, TextChangeStyle, Resource, QuizData, Question, UserAnswer, Answer, IdentifiedEntity, HerumTableParams, ViewModelType, GlobalKeyboardEvent, FileData, AudioVisualConfiguration, TreeNode, NodeMenuItem, SystemTreeNodeData, TimeRange, DateTimePicker, AnswerNote, UserQuestionData, DialogConfig, User, RecursiveTitledOption, MenuItem, CollectionSubscription, CollectionBase, Collection, ModifiedResource, 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 as GlobalKeyboardListenerService$1, KeyPressService as KeyPressService$1, TrackTextChangesService, CommonGraphqlRequestsService } from 'herum-shared/services';
|
|
5
|
+
import { GlobalKeyboardListenerService as GlobalKeyboardListenerService$1, KeyPressService as KeyPressService$1, TrackTextChangesService, CommonGraphqlRequestsService, UtilsService as UtilsService$1 } from 'herum-shared/services';
|
|
6
6
|
import { HttpClient, HttpRequest, HttpErrorResponse } from '@angular/common/http';
|
|
7
7
|
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
8
8
|
import * as i40 from '@angular/forms';
|
|
@@ -37,7 +37,6 @@ import * as i15 from 'ag-grid-angular';
|
|
|
37
37
|
import { ICellRendererAngularComp, AgFilterComponent } from 'ag-grid-angular';
|
|
38
38
|
import { ICellRendererParams, ColDef, GridApi, ColumnApi, GridReadyEvent, ModelUpdatedEvent, IFilterParams, IDoesFilterPassParams } from 'ag-grid-community';
|
|
39
39
|
import * as _angular_animations from '@angular/animations';
|
|
40
|
-
import { UtilsService as UtilsService$1 } from 'herum-shared/static-services';
|
|
41
40
|
import { ToastsService as ToastsService$1, UploadsManagerService as UploadsManagerService$1 } from 'herum-shared/mongo/services';
|
|
42
41
|
|
|
43
42
|
declare class HerumToolTipDirective {
|
|
@@ -722,6 +721,7 @@ declare class UtilsService {
|
|
|
722
721
|
private environmentConfig;
|
|
723
722
|
constructor(environmentConfig: EnvironmentConfig);
|
|
724
723
|
getDisplayedNameForMongoMethodByUserActivity(urlRequest: string): string | undefined;
|
|
724
|
+
getUrlFromFileData(fileData: Partial<FileData>): string;
|
|
725
725
|
fetchFiles(fileId: string, resourceType: string, bucket?: string): Promise<Response>;
|
|
726
726
|
initAudioFile(fileId: string, bucketName?: string, signal?: AbortSignal): Promise<File>;
|
|
727
727
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
package/molecules/index.d.ts
CHANGED
|
@@ -339,7 +339,7 @@ declare class HerumMultiProgressBarComponent implements OnInit {
|
|
|
339
339
|
}[];
|
|
340
340
|
constructor();
|
|
341
341
|
ngOnInit(): void;
|
|
342
|
-
getBorderRadius(sectionIndex: number, progressBarIndex: number): "none" | "
|
|
342
|
+
getBorderRadius(sectionIndex: number, progressBarIndex: number): "none" | "both" | "left" | "right";
|
|
343
343
|
static ɵfac: i0.ɵɵFactoryDeclaration<HerumMultiProgressBarComponent, never>;
|
|
344
344
|
static ɵcmp: i0.ɵɵComponentDeclaration<HerumMultiProgressBarComponent, "herum-multi-progress-bar", never, { "progressBarsSections": { "alias": "progressBarsSections"; "required": false; }; }, {}, never, never, false, never>;
|
|
345
345
|
}
|
package/mongo/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
3
3
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { FailedDependentsRequestsContext, CommonDependentsToast, ToastHttpResponseDependencies, ComplexObservableArrowFunctions, DependentMetadata, ObservableArrowFunction, Toast, ToastTemplate, ToastStatus, UploadProgressMetadata, UploadProgressStatus, UploadProgressType } from 'herum-shared/herum-types';
|
|
5
5
|
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
6
|
-
import { UtilsService } from 'herum-shared/
|
|
6
|
+
import { UtilsService } from 'herum-shared/services';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { QueryList, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
9
9
|
import { ToastsService as ToastsService$1, UploadsManagerService as UploadsManagerService$1 } from 'herum-shared/mongo/services';
|
|
@@ -3,7 +3,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
3
3
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { FailedDependentsRequestsContext, CommonDependentsToast, ToastHttpResponseDependencies, ComplexObservableArrowFunctions, DependentMetadata, ObservableArrowFunction, Toast, ToastTemplate, ToastStatus, UploadProgressMetadata } from 'herum-shared/herum-types';
|
|
5
5
|
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
6
|
-
import { UtilsService } from 'herum-shared/
|
|
6
|
+
import { UtilsService } from 'herum-shared/services';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
|
|
9
9
|
declare class ErrorsHandlerService {
|
package/package.json
CHANGED
package/services/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
|
-
import { GraphQlQuery, GraphQLFilter, GraphQlOffsetPaging, GraphQLOrder, SignInFormData, AuthenticationResponse, SignUpFormData, SecurityQuestion, Group, ClosedList, User, DbActionResponse, ModelInfo, GlobalKeyboardEvent, Resource, LessonResourceSubscription, Lesson, MicroResourceAuthorizationBase, ResourcePreview, MicroResourceFrontData, LessonStudentSubscription, Question, UserQuestionData, ResourceSubscription, BackendMicroResourceAuthorization, microResourceAuthorizationType, HadrachaPage, ISystemTrackTextChangesService } from 'herum-shared/herum-types';
|
|
2
|
+
import { GraphQlQuery, GraphQLFilter, GraphQlOffsetPaging, GraphQLOrder, SignInFormData, AuthenticationResponse, SignUpFormData, SecurityQuestion, Group, ClosedList, User, DbActionResponse, ModelInfo, GlobalKeyboardEvent, Resource, LessonResourceSubscription, Lesson, MicroResourceAuthorizationBase, ResourcePreview, MicroResourceFrontData, LessonStudentSubscription, Question, UserQuestionData, ResourceSubscription, BackendMicroResourceAuthorization, microResourceAuthorizationType, HadrachaPage, FileData, ISystemTrackTextChangesService } from 'herum-shared/herum-types';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
@@ -231,9 +231,20 @@ declare class MicroResourcesService {
|
|
|
231
231
|
static ɵprov: i0.ɵɵInjectableDeclaration<MicroResourcesService>;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
declare class
|
|
234
|
+
declare class UtilsService {
|
|
235
235
|
private environmentConfig;
|
|
236
236
|
constructor(environmentConfig: EnvironmentConfig);
|
|
237
|
+
getDisplayedNameForMongoMethodByUserActivity(urlRequest: string): string | undefined;
|
|
238
|
+
getUrlFromFileData(fileData: Partial<FileData>): string;
|
|
239
|
+
fetchFiles(fileId: string, resourceType: string, bucket?: string): Promise<Response>;
|
|
240
|
+
initAudioFile(fileId: string, bucketName?: string, signal?: AbortSignal): Promise<File>;
|
|
241
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
242
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare class ResourceDataBuilderService {
|
|
246
|
+
private utilsService;
|
|
247
|
+
constructor(utilsService: UtilsService);
|
|
237
248
|
buildFilePath(resource: Resource): string;
|
|
238
249
|
buildDirectoryPath(resource: Resource): string;
|
|
239
250
|
private getVersionPathParameter;
|
|
@@ -264,5 +275,5 @@ declare class TrackTextChangesService {
|
|
|
264
275
|
static ɵprov: i0.ɵɵInjectableDeclaration<TrackTextChangesService>;
|
|
265
276
|
}
|
|
266
277
|
|
|
267
|
-
export { AuthService, CommonGraphqlRequestsService, DbActionRequestsService, DbActionsInnerIdManagerService, GlobalKeyboardListenerService, GraphQLService, KeyPressService, LoaderManagerService, MicroResourcesService, NestedConditionSigniture, ResourceDataBuilderService, SystemStylingService, TrackTextChangesService, emptyValueFlagForCreationUniqListItem, freeTextAnswerField, innerUniqListItemKey, systemStylingFactory };
|
|
278
|
+
export { AuthService, CommonGraphqlRequestsService, DbActionRequestsService, DbActionsInnerIdManagerService, GlobalKeyboardListenerService, GraphQLService, KeyPressService, LoaderManagerService, MicroResourcesService, NestedConditionSigniture, ResourceDataBuilderService, SystemStylingService, TrackTextChangesService, UtilsService, emptyValueFlagForCreationUniqListItem, freeTextAnswerField, innerUniqListItemKey, systemStylingFactory };
|
|
268
279
|
export type { studentInnerAuthorizationSubscription };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
|
|
4
1
|
declare class StorageService {
|
|
5
2
|
private static cache;
|
|
6
3
|
static getItem(key: string): string | null;
|
|
@@ -12,14 +9,4 @@ declare class StorageService {
|
|
|
12
9
|
private static getCookie;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
private environmentConfig;
|
|
17
|
-
constructor(environmentConfig: EnvironmentConfig);
|
|
18
|
-
getDisplayedNameForMongoMethodByUserActivity(urlRequest: string): string | undefined;
|
|
19
|
-
fetchFiles(fileId: string, resourceType: string, bucket?: string): Promise<Response>;
|
|
20
|
-
initAudioFile(fileId: string, bucketName?: string, signal?: AbortSignal): Promise<File>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { StorageService, UtilsService };
|
|
12
|
+
export { StorageService };
|
package/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IdentifiedEntity, MicroResourceAuthorizationBase, EntitiesLayoutProperties,
|
|
1
|
+
import { IdentifiedEntity, MicroResourceAuthorizationBase, EntitiesLayoutProperties, FullHierarchyPartsPlaces, DependentMetadata, CollectionSubscription, ResourceSubscription } from 'herum-shared/herum-types';
|
|
2
2
|
import { ElementRef, QueryList } from '@angular/core';
|
|
3
3
|
import { HttpHeaders } from '@angular/common/http';
|
|
4
4
|
|
|
@@ -52,7 +52,6 @@ declare const setNavFlexLayoutStyle: (entitiesSectionElement: ElementRef, entiti
|
|
|
52
52
|
declare const setNavFlexLayout: (entitiesSectionElement: ElementRef, entitiesWrapperElement: ElementRef, navButtonElement: ElementRef, entitiesElement: QueryList<ElementRef>) => number;
|
|
53
53
|
|
|
54
54
|
declare const getDeserializedFile: (response: Response, fileName: string, fileType?: string) => Promise<File>;
|
|
55
|
-
declare const getUrlFromFileData: (fileData: Partial<FileData>, s3ServerPath: string) => string;
|
|
56
55
|
declare const downloadFile: (fileName: string, data: File | Blob) => void;
|
|
57
56
|
|
|
58
57
|
declare const getBrowserVersion: (browserRegexExp: RegExp) => number | undefined;
|
|
@@ -88,5 +87,5 @@ declare const camelCaseToPascalCase: (camelCase: string) => string;
|
|
|
88
87
|
declare const capitalizeWord: (word: string) => string;
|
|
89
88
|
declare const replaceInterpolateKeysWithObjectProperties: (string: string, object: Object) => string;
|
|
90
89
|
|
|
91
|
-
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,
|
|
90
|
+
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 };
|
|
92
91
|
export type { ListsDiffs };
|