herum-shared 0.1.25 → 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-constants.mjs +9 -9
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared-herum-types.mjs +3 -2
- package/fesm2022/herum-shared-herum-types.mjs.map +1 -1
- 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 +129 -22
- 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-table.mjs +17 -4
- package/fesm2022/herum-shared-table.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 +156 -166
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/herum-types/index.d.ts +5 -3
- package/index.d.ts +6 -4
- 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 +17 -4
- package/static-services/index.d.ts +1 -14
- package/table/index.d.ts +3 -1
- package/utils/index.d.ts +2 -3
|
@@ -4,7 +4,7 @@ import * as i1 from '@angular/common';
|
|
|
4
4
|
import { formatDate, DOCUMENT, CommonModule, DatePipe } from '@angular/common';
|
|
5
5
|
import { Subject, BehaviorSubject, forkJoin, EMPTY } from 'rxjs';
|
|
6
6
|
import { takeUntil, debounceTime, tap, shareReplay, map, switchMap, catchError } from 'rxjs/operators';
|
|
7
|
-
import { keyboardAsciiCodes, regexExpressions, svgsStrings, system, defaultGrade, defaultPlaceholder as defaultPlaceholder$1, types, formStatuses, startEndDateError, minDateError, formatError, timestampError, timePattern, dayInMilliSeconds, dateRangeTimeRangePlaceHolder, dateRangeTimeRangeWithoutSecondsPlaceHolder, dateRangePlaceHolder, dateTimePlaceHolder, dateTimeWithoutSecondsPlaceHolder, datePlaceHolder, timePlaceHolder, timeWithoutSecondsPlaceHolder, generalKeys, uploadsManagerKeys, skipToastHeader, assignmentMetadata, attributes, defaultAuthorizationObject, resourceIdPlaceholder,
|
|
7
|
+
import { keyboardAsciiCodes, regexExpressions, svgsStrings, system, defaultGrade, defaultPlaceholder as defaultPlaceholder$1, types, formStatuses, startEndDateError, minDateError, formatError, timestampError, timePattern, dayInMilliSeconds, dateRangeTimeRangePlaceHolder, dateRangeTimeRangeWithoutSecondsPlaceHolder, dateRangePlaceHolder, dateTimePlaceHolder, dateTimeWithoutSecondsPlaceHolder, datePlaceHolder, timePlaceHolder, timeWithoutSecondsPlaceHolder, generalKeys, uploadsManagerKeys, skipToastHeader, assignmentMetadata, attributes, defaultAuthorizationObject, resourceIdPlaceholder, getPublishAuthorization, getMongoMethodsDisplayedNamesMap, resourcesFilesSuffixes, calendarActiveColorCssVariable, calendarHoverColorCssVariable, calendarLibrarySelector, calendarLibraryBodyCellSelector, timerActiveColorCssVariable, timerHoverColorCssVariable, timerItemSizeColorCssVariable, anySubFileTypeWildCard, maleAvatarPath, femaleAvatarPath, signUpFormKeys, filesSuffixes, tableRowHeights, dialogsDescriptions, dialogsTitles, getToastsTemplates, toastStatuses, toastContext, toastStates, uploadStatuses } from 'herum-shared/constants';
|
|
8
8
|
import * as i1$2 from 'herum-shared/services';
|
|
9
9
|
import * as i2 from '@angular/cdk/bidi';
|
|
10
10
|
import * as i1$1 from '@angular/platform-browser';
|
|
@@ -25,8 +25,8 @@ import * as i1$3 from '@angular/common/http';
|
|
|
25
25
|
import { HttpHeaders } from '@angular/common/http';
|
|
26
26
|
import lottie from 'lottie-web';
|
|
27
27
|
import * as i1$5 from 'herum-shared/herum-types';
|
|
28
|
-
import { QuizHeaderState,
|
|
29
|
-
import { isTruncatedTitleElement, convertToDate, updateFullYear, getDropdownAnimationStates, toHash, buildPath, setHeaders, remainJustWantedValueInDictionary,
|
|
28
|
+
import { QuizHeaderState, microResourceAuthorizationType, ResourceState, TimeUnit, Gender, StepStatus, TableActions } from 'herum-shared/herum-types';
|
|
29
|
+
import { isTruncatedTitleElement, convertToDate, updateFullYear, getDropdownAnimationStates, toHash, buildPath, setHeaders, remainJustWantedValueInDictionary, getVersionPathParameter, getAssignmentStateDisplayName, replaceInterpolateKeysWithObjectProperties, convertHeightToPixels } from 'herum-shared/utils';
|
|
30
30
|
import * as i1$8 from '@angular/cdk/clipboard';
|
|
31
31
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
32
32
|
import * as i4 from 'herum-shared/pipes';
|
|
@@ -43,8 +43,7 @@ import * as i1$7 from '@angular/material/core';
|
|
|
43
43
|
import { MatNativeDateModule, MAT_DATE_LOCALE } from '@angular/material/core';
|
|
44
44
|
import { v4 } from 'uuid';
|
|
45
45
|
import { SYSTEM_TRACK_TEXT_CHANGES_SERVICE as SYSTEM_TRACK_TEXT_CHANGES_SERVICE$1, SYSTEM_AUDIO_VISUAL_CONFIGURATION as SYSTEM_AUDIO_VISUAL_CONFIGURATION$1 } from 'herum-shared/tokens';
|
|
46
|
-
import
|
|
47
|
-
import { StorageService as StorageService$1 } from 'herum-shared/static-services';
|
|
46
|
+
import { StorageService } from 'herum-shared/static-services';
|
|
48
47
|
import { selfIsTeacherExample, closedListExample, permissionsTemplatesExample } from 'herum-shared/objectsExample';
|
|
49
48
|
import * as i2$4 from '@angular/router';
|
|
50
49
|
import { cloneDeep } from 'lodash';
|
|
@@ -3737,7 +3736,7 @@ class AuthService {
|
|
|
3737
3736
|
this.router = router;
|
|
3738
3737
|
this.gql = gql;
|
|
3739
3738
|
this.environmentConfig = environmentConfig;
|
|
3740
|
-
let sessionId = StorageService
|
|
3739
|
+
let sessionId = StorageService.getItem(AuthStorageKey);
|
|
3741
3740
|
if (!sessionId)
|
|
3742
3741
|
return;
|
|
3743
3742
|
this.sessionId$.next(sessionId);
|
|
@@ -3763,7 +3762,7 @@ class AuthService {
|
|
|
3763
3762
|
this.router.navigate(['/login']);
|
|
3764
3763
|
}
|
|
3765
3764
|
clearSession() {
|
|
3766
|
-
StorageService
|
|
3765
|
+
StorageService.deleteAll();
|
|
3767
3766
|
this.sessionId$.next('');
|
|
3768
3767
|
}
|
|
3769
3768
|
isValidSessionId(sessionId) {
|
|
@@ -3810,7 +3809,7 @@ class AuthService {
|
|
|
3810
3809
|
}
|
|
3811
3810
|
updateSessionId(newValue) {
|
|
3812
3811
|
this.sessionId$.next(newValue);
|
|
3813
|
-
StorageService
|
|
3812
|
+
StorageService.setItem(AuthStorageKey, newValue);
|
|
3814
3813
|
}
|
|
3815
3814
|
generateStringForAuthenticationHash(personalId, militaryId) {
|
|
3816
3815
|
return personalId + militaryId;
|
|
@@ -4332,43 +4331,43 @@ class MicroResourcesService {
|
|
|
4332
4331
|
collectionItemType: '',
|
|
4333
4332
|
openingTime,
|
|
4334
4333
|
closingTime,
|
|
4335
|
-
authorizationType:
|
|
4334
|
+
authorizationType: microResourceAuthorizationType.update
|
|
4336
4335
|
},
|
|
4337
4336
|
{
|
|
4338
4337
|
propertyPath: this.buildQuestionPropertyPath(selectedResource.quiz.questions[1]?.id, freeTextAnswerField),
|
|
4339
4338
|
collectionItemType: '',
|
|
4340
4339
|
openingTime,
|
|
4341
4340
|
closingTime,
|
|
4342
|
-
authorizationType:
|
|
4341
|
+
authorizationType: microResourceAuthorizationType.update
|
|
4343
4342
|
}];
|
|
4344
4343
|
}
|
|
4345
4344
|
getPublishGradeTimings(selectedResource, openingTime = new Date(2999, 1, 1), closingTime) {
|
|
4346
4345
|
return [{
|
|
4347
|
-
authorizationType:
|
|
4346
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
4348
4347
|
closingTime: closingTime,
|
|
4349
4348
|
collectionItemType: "",
|
|
4350
4349
|
openingTime: openingTime,
|
|
4351
4350
|
propertyPath: this.buildQuestionPropertyPath(selectedResource.quiz.questions[0].id, gradeField)
|
|
4352
4351
|
}, {
|
|
4353
|
-
authorizationType:
|
|
4352
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
4354
4353
|
closingTime: closingTime,
|
|
4355
4354
|
collectionItemType: "",
|
|
4356
4355
|
openingTime: openingTime,
|
|
4357
4356
|
propertyPath: this.buildQuestionPropertyPath(selectedResource.quiz.questions[1].id, gradeField)
|
|
4358
4357
|
}, {
|
|
4359
|
-
authorizationType:
|
|
4358
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
4360
4359
|
closingTime: closingTime,
|
|
4361
4360
|
collectionItemType: "",
|
|
4362
4361
|
openingTime: openingTime,
|
|
4363
4362
|
propertyPath: this.buildQuestionPropertyPath(selectedResource.quiz.questions[0].id, answerNotesField)
|
|
4364
4363
|
}, {
|
|
4365
|
-
authorizationType:
|
|
4364
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
4366
4365
|
closingTime: closingTime,
|
|
4367
4366
|
collectionItemType: "",
|
|
4368
4367
|
openingTime: openingTime,
|
|
4369
4368
|
propertyPath: this.buildQuestionPropertyPath(selectedResource.quiz.questions[1].id, answerNotesField)
|
|
4370
4369
|
}, {
|
|
4371
|
-
authorizationType:
|
|
4370
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
4372
4371
|
closingTime: closingTime,
|
|
4373
4372
|
collectionItemType: "",
|
|
4374
4373
|
openingTime: openingTime,
|
|
@@ -4390,7 +4389,7 @@ class MicroResourcesService {
|
|
|
4390
4389
|
collectionItemType: microResource.collectionItemType,
|
|
4391
4390
|
openingTime: microResource.openingTime,
|
|
4392
4391
|
closingTime: microResource.closingTime,
|
|
4393
|
-
authorizationType:
|
|
4392
|
+
authorizationType: microResourceAuthorizationType.view
|
|
4394
4393
|
});
|
|
4395
4394
|
return this.updateUserMicroResourceAuthorization(user.student.id, lesson, resource, resource.microResourceAuthorizations);
|
|
4396
4395
|
}
|
|
@@ -4424,7 +4423,7 @@ class MicroResourcesService {
|
|
|
4424
4423
|
isQuestionPendingForCheck(resourceSubscription, questionData) {
|
|
4425
4424
|
const microResourceAuthorizations = resourceSubscription.microResourceAuthorizations;
|
|
4426
4425
|
const questionId = questionData.id;
|
|
4427
|
-
const questionClosingTime = microResourceAuthorizations?.find(microResourceAuthorization => microResourceAuthorization.propertyPath === this.buildQuestionPropertyPath(questionId, freeTextAnswerField) && microResourceAuthorization.authorizationType ===
|
|
4426
|
+
const questionClosingTime = microResourceAuthorizations?.find(microResourceAuthorization => microResourceAuthorization.propertyPath === this.buildQuestionPropertyPath(questionId, freeTextAnswerField) && microResourceAuthorization.authorizationType === microResourceAuthorizationType.update)?.closingTime;
|
|
4428
4427
|
const gradePublishOpeningTime = microResourceAuthorizations?.find(microResourceAuthorization => microResourceAuthorization.propertyPath === this.buildQuestionPropertyPath(questionId, gradeField))?.openingTime;
|
|
4429
4428
|
let isQuestionPendingForCheck = false;
|
|
4430
4429
|
if (questionClosingTime && questionData.grade === defaultGrade) {
|
|
@@ -4439,16 +4438,16 @@ class MicroResourcesService {
|
|
|
4439
4438
|
}
|
|
4440
4439
|
hasFillAuthorizationClosingTimePassed(innerAuthorizations, resource) {
|
|
4441
4440
|
const fillAuthorizationPropertyPath = defaultAuthorizationObject.fill().propertyPath.replace(resourceIdPlaceholder, resource.id);
|
|
4442
|
-
const fillAuthorization = innerAuthorizations?.find(auth => auth.propertyPath == fillAuthorizationPropertyPath && auth.authorizationType ==
|
|
4441
|
+
const fillAuthorization = innerAuthorizations?.find(auth => auth.propertyPath == fillAuthorizationPropertyPath && auth.authorizationType == microResourceAuthorizationType.fill);
|
|
4443
4442
|
return this.isTimePass(fillAuthorization?.closingTime);
|
|
4444
4443
|
}
|
|
4445
4444
|
isPublishGradeAuthenticated(innerAuthorizations, resource) {
|
|
4446
|
-
const publishGradeInnerAuthorizations = this.getAuthorization(innerAuthorizations, defaultAuthorizationObject.resourceGrade(),
|
|
4445
|
+
const publishGradeInnerAuthorizations = this.getAuthorization(innerAuthorizations, defaultAuthorizationObject.resourceGrade(), microResourceAuthorizationType.view, resource);
|
|
4447
4446
|
return publishGradeInnerAuthorizations ? this.isAuthenticated(publishGradeInnerAuthorizations) : false;
|
|
4448
4447
|
}
|
|
4449
|
-
getAuthorization(innerAuthorizations, defaultAuthorizationObject,
|
|
4448
|
+
getAuthorization(innerAuthorizations, defaultAuthorizationObject, microResourceAuthorizationType, resource) {
|
|
4450
4449
|
const fillAuthorizationPropertyPath = defaultAuthorizationObject.propertyPath.replace(resourceIdPlaceholder, resource.id);
|
|
4451
|
-
return innerAuthorizations.find((innerAuthorization) => innerAuthorization.propertyPath === fillAuthorizationPropertyPath && innerAuthorization.authorizationType ===
|
|
4450
|
+
return innerAuthorizations.find((innerAuthorization) => innerAuthorization.propertyPath === fillAuthorizationPropertyPath && innerAuthorization.authorizationType === microResourceAuthorizationType);
|
|
4452
4451
|
}
|
|
4453
4452
|
createMultiResourceDefaultAuthorizations(students, pageId, resourcesIds, defaultAuthorizations, authorizations) {
|
|
4454
4453
|
const updates = [];
|
|
@@ -4481,6 +4480,44 @@ class MicroResourcesService {
|
|
|
4481
4480
|
return this.http.post(this.environmentConfig?.environment?.siteServerPath + this.environmentConfig?.resourcePaths?.resourceUpdateAuthorizations, request);
|
|
4482
4481
|
}));
|
|
4483
4482
|
}
|
|
4483
|
+
copyResourceStudentsAuthorizations(students, pageId, authSourceResourceId, authTargetResourceId, useDefaultGradePermissions) {
|
|
4484
|
+
const updates = [];
|
|
4485
|
+
students.forEach(student => {
|
|
4486
|
+
let sourceResourceAuthorizations = student.innerAuthorizations.filter(innerAuthorization => innerAuthorization.propertyPath.includes(authSourceResourceId));
|
|
4487
|
+
sourceResourceAuthorizations = cloneDeep(sourceResourceAuthorizations);
|
|
4488
|
+
let targetResourceAuthorizations = sourceResourceAuthorizations.map(authorization => ({
|
|
4489
|
+
...authorization,
|
|
4490
|
+
lastUpDateTime: new Date(),
|
|
4491
|
+
propertyPath: authorization.propertyPath.replace(authSourceResourceId, authTargetResourceId)
|
|
4492
|
+
}));
|
|
4493
|
+
if (useDefaultGradePermissions) {
|
|
4494
|
+
let defaultGradePermissions = cloneDeep(getPublishAuthorization());
|
|
4495
|
+
defaultGradePermissions.forEach(authorization => authorization.propertyPath = authorization.propertyPath.replace(resourceIdPlaceholder, authTargetResourceId));
|
|
4496
|
+
targetResourceAuthorizations = targetResourceAuthorizations.filter(authorization => !defaultGradePermissions.some(defaultGradePermission => defaultGradePermission.propertyPath == authorization.propertyPath));
|
|
4497
|
+
targetResourceAuthorizations = [...targetResourceAuthorizations, ...defaultGradePermissions];
|
|
4498
|
+
}
|
|
4499
|
+
updates.push({
|
|
4500
|
+
userIds: [student.user?.id],
|
|
4501
|
+
hadrachaPageId: pageId,
|
|
4502
|
+
authorizations: [...(student.innerAuthorizations || []), ...(targetResourceAuthorizations || [])]
|
|
4503
|
+
});
|
|
4504
|
+
});
|
|
4505
|
+
return forkJoin(updates.map(request => this.http.post(this.environmentConfig?.environment?.siteServerPath + this.environmentConfig?.resourcePaths?.resourceUpdateAuthorizations, request)));
|
|
4506
|
+
}
|
|
4507
|
+
removeResourceAuthorizations(page, resourcesIdsToRemove) {
|
|
4508
|
+
const updates = [];
|
|
4509
|
+
resourcesIdsToRemove.forEach(resourceIdToRemove => {
|
|
4510
|
+
page.students.forEach(student => {
|
|
4511
|
+
let resourceAuthorizationsToKeep = student.innerAuthorizations.filter(innerAuthorization => innerAuthorization.propertyPath.includes(resourceIdToRemove));
|
|
4512
|
+
updates.push({
|
|
4513
|
+
userIds: [student.user?.id],
|
|
4514
|
+
hadrachaPageId: page.id,
|
|
4515
|
+
authorizations: resourceAuthorizationsToKeep
|
|
4516
|
+
});
|
|
4517
|
+
});
|
|
4518
|
+
});
|
|
4519
|
+
return forkJoin(updates.map(request => this.http.post(this.environmentConfig?.environment?.siteServerPath + this.environmentConfig?.resourcePaths?.resourceUpdateAuthorizations, request)));
|
|
4520
|
+
}
|
|
4484
4521
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: MicroResourcesService, deps: [{ token: i1$3.HttpClient }, { token: HERUM_SHARED_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4485
4522
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: MicroResourcesService, providedIn: 'root' });
|
|
4486
4523
|
}
|
|
@@ -4494,21 +4531,90 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
4494
4531
|
args: [HERUM_SHARED_CONFIG_TOKEN]
|
|
4495
4532
|
}] }] });
|
|
4496
4533
|
|
|
4497
|
-
class
|
|
4534
|
+
class UtilsService {
|
|
4498
4535
|
environmentConfig;
|
|
4499
4536
|
constructor(environmentConfig) {
|
|
4500
4537
|
this.environmentConfig = environmentConfig;
|
|
4501
4538
|
}
|
|
4539
|
+
getDisplayedNameForMongoMethodByUserActivity(urlRequest) {
|
|
4540
|
+
let mongoMethodDisplayedName;
|
|
4541
|
+
const mongoMethodsDisplayedNamesMap = getMongoMethodsDisplayedNamesMap(this.environmentConfig?.mongoUpdates, this.environmentConfig?.authenticationPaths);
|
|
4542
|
+
Object.entries(mongoMethodsDisplayedNamesMap).forEach(([mongoMethod, displayedName]) => {
|
|
4543
|
+
const urlParts = urlRequest?.split('/');
|
|
4544
|
+
const matchedMethod = urlParts?.find(urlPart => urlPart === mongoMethod);
|
|
4545
|
+
if (matchedMethod)
|
|
4546
|
+
mongoMethodDisplayedName = displayedName;
|
|
4547
|
+
});
|
|
4548
|
+
return mongoMethodDisplayedName;
|
|
4549
|
+
}
|
|
4550
|
+
getUrlFromFileData(fileData) {
|
|
4551
|
+
if (!fileData?.key || !fileData?.bucket)
|
|
4552
|
+
return;
|
|
4553
|
+
const fileDataKeyWithoutTrailingSlash = fileData.key.endsWith('/') ? fileData.key.slice(0, -1) : fileData.key;
|
|
4554
|
+
return buildPath([this.environmentConfig?.environment?.s3ServerPath + fileData.bucket, fileDataKeyWithoutTrailingSlash]);
|
|
4555
|
+
}
|
|
4556
|
+
fetchFiles(fileId, resourceType, bucket) {
|
|
4557
|
+
if (!fileId)
|
|
4558
|
+
return Promise.reject();
|
|
4559
|
+
const bucketPath = bucket ? bucket : this.environmentConfig?.buckets[resourceType];
|
|
4560
|
+
if (fileId && fileId[0] != '/' && bucketPath[bucketPath.length - 1] != '/')
|
|
4561
|
+
fileId = "/" + fileId;
|
|
4562
|
+
const path = this.environmentConfig?.environment?.s3ServerPath + bucketPath + fileId;
|
|
4563
|
+
return fetch(path);
|
|
4564
|
+
}
|
|
4565
|
+
async initAudioFile(fileId, bucketName, signal) {
|
|
4566
|
+
const audioBucketName = bucketName ? (bucketName + "/") : this.environmentConfig?.buckets.Audio;
|
|
4567
|
+
return fetch(this.environmentConfig?.environment?.s3ServerPath + audioBucketName + fileId, { signal: signal })
|
|
4568
|
+
.then(async (response) => {
|
|
4569
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
4570
|
+
if (arrayBuffer.byteLength === 0) {
|
|
4571
|
+
const blob = await response.blob();
|
|
4572
|
+
const reader = new FileReader();
|
|
4573
|
+
reader.onload = () => {
|
|
4574
|
+
const arrayBuffer = reader.result;
|
|
4575
|
+
const file = new File([arrayBuffer], fileId, {
|
|
4576
|
+
type: 'audio/mp3',
|
|
4577
|
+
});
|
|
4578
|
+
return file;
|
|
4579
|
+
};
|
|
4580
|
+
reader.readAsArrayBuffer(blob);
|
|
4581
|
+
}
|
|
4582
|
+
else {
|
|
4583
|
+
const file = new File([arrayBuffer], fileId, {
|
|
4584
|
+
type: 'audio/mpeg',
|
|
4585
|
+
});
|
|
4586
|
+
return file;
|
|
4587
|
+
}
|
|
4588
|
+
});
|
|
4589
|
+
}
|
|
4590
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UtilsService, deps: [{ token: HERUM_SHARED_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4591
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UtilsService, providedIn: 'root' });
|
|
4592
|
+
}
|
|
4593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UtilsService, decorators: [{
|
|
4594
|
+
type: Injectable,
|
|
4595
|
+
args: [{
|
|
4596
|
+
providedIn: 'root'
|
|
4597
|
+
}]
|
|
4598
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4599
|
+
type: Inject,
|
|
4600
|
+
args: [HERUM_SHARED_CONFIG_TOKEN]
|
|
4601
|
+
}] }] });
|
|
4602
|
+
|
|
4603
|
+
class ResourceDataBuilderService {
|
|
4604
|
+
utilsService;
|
|
4605
|
+
constructor(utilsService) {
|
|
4606
|
+
this.utilsService = utilsService;
|
|
4607
|
+
}
|
|
4502
4608
|
buildFilePath(resource) {
|
|
4503
|
-
return getUrlFromFileData(resource.resourceFile
|
|
4609
|
+
return this.utilsService.getUrlFromFileData(resource.resourceFile) + this.getVersionPathParameter(resource);
|
|
4504
4610
|
}
|
|
4505
4611
|
buildDirectoryPath(resource) {
|
|
4506
|
-
return getUrlFromFileData(resource.resourceFile
|
|
4612
|
+
return this.utilsService.getUrlFromFileData(resource.resourceFile) + resourcesFilesSuffixes[resource.resourceType] + this.getVersionPathParameter(resource);
|
|
4507
4613
|
}
|
|
4508
4614
|
getVersionPathParameter(resource) {
|
|
4509
4615
|
return getVersionPathParameter(new Date(resource.lastUpdateTime));
|
|
4510
4616
|
}
|
|
4511
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ResourceDataBuilderService, deps:
|
|
4617
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ResourceDataBuilderService, deps: [{ token: UtilsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4512
4618
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ResourceDataBuilderService, providedIn: 'root' });
|
|
4513
4619
|
}
|
|
4514
4620
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ResourceDataBuilderService, decorators: [{
|
|
@@ -4516,7 +4622,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
4516
4622
|
args: [{
|
|
4517
4623
|
providedIn: 'root'
|
|
4518
4624
|
}]
|
|
4519
|
-
}], ctorParameters: () => [{ type:
|
|
4625
|
+
}], ctorParameters: () => [{ type: UtilsService }] });
|
|
4520
4626
|
|
|
4521
4627
|
class SystemStylingService {
|
|
4522
4628
|
document;
|
|
@@ -4607,135 +4713,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
4607
4713
|
args: [SYSTEM_TRACK_TEXT_CHANGES_SERVICE$1]
|
|
4608
4714
|
}] }] });
|
|
4609
4715
|
|
|
4610
|
-
class StorageService {
|
|
4611
|
-
static cache = {};
|
|
4612
|
-
static getItem(key) {
|
|
4613
|
-
const cachedValue = StorageService.cache[key];
|
|
4614
|
-
if (cachedValue)
|
|
4615
|
-
return cachedValue;
|
|
4616
|
-
else {
|
|
4617
|
-
let value = StorageService.getCookie(key);
|
|
4618
|
-
if (!value)
|
|
4619
|
-
value = localStorage.getItem(key);
|
|
4620
|
-
StorageService.cache[key] = value;
|
|
4621
|
-
return value;
|
|
4622
|
-
}
|
|
4623
|
-
}
|
|
4624
|
-
static setItem(key, value) {
|
|
4625
|
-
let stringifyValue = value;
|
|
4626
|
-
if (typeof value != "string")
|
|
4627
|
-
stringifyValue = JSON.stringify(value);
|
|
4628
|
-
StorageService.cache[key] = stringifyValue;
|
|
4629
|
-
try {
|
|
4630
|
-
StorageService.setCookie(key, stringifyValue);
|
|
4631
|
-
}
|
|
4632
|
-
catch (error) {
|
|
4633
|
-
localStorage.setItem(key, stringifyValue);
|
|
4634
|
-
}
|
|
4635
|
-
}
|
|
4636
|
-
static removeItem(key) {
|
|
4637
|
-
StorageService.cache[key] = null;
|
|
4638
|
-
localStorage.removeItem(key);
|
|
4639
|
-
StorageService.deleteCookie(key);
|
|
4640
|
-
}
|
|
4641
|
-
static deleteAll() {
|
|
4642
|
-
StorageService.cache = {};
|
|
4643
|
-
const cookies = document.cookie.split(';');
|
|
4644
|
-
cookies.forEach((cookie) => {
|
|
4645
|
-
const equalsIndex = cookie.indexOf('=');
|
|
4646
|
-
const key = equalsIndex > -1 ? cookie.substring(0, equalsIndex) : cookie;
|
|
4647
|
-
this.deleteCookie(key);
|
|
4648
|
-
});
|
|
4649
|
-
}
|
|
4650
|
-
static deleteCookie(key) {
|
|
4651
|
-
document.cookie = key + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
4652
|
-
}
|
|
4653
|
-
static setCookie(cname, cvalue, exdays = 100) {
|
|
4654
|
-
StorageService.deleteCookie(cname);
|
|
4655
|
-
const date = new Date();
|
|
4656
|
-
date.setTime(date.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
|
4657
|
-
const expires = 'expires=' + date.toUTCString();
|
|
4658
|
-
document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/';
|
|
4659
|
-
}
|
|
4660
|
-
static getCookie(cname) {
|
|
4661
|
-
const name = cname + '=';
|
|
4662
|
-
const ca = document.cookie.split(';');
|
|
4663
|
-
for (let i = 0; i < ca.length; i++) {
|
|
4664
|
-
let cookieChar = ca[i];
|
|
4665
|
-
while (cookieChar.charAt(0) === ' ') {
|
|
4666
|
-
cookieChar = cookieChar.substring(1);
|
|
4667
|
-
}
|
|
4668
|
-
if (cookieChar.indexOf(name) === 0) {
|
|
4669
|
-
return cookieChar.substring(name.length, cookieChar.length);
|
|
4670
|
-
}
|
|
4671
|
-
}
|
|
4672
|
-
return '';
|
|
4673
|
-
}
|
|
4674
|
-
}
|
|
4675
|
-
|
|
4676
|
-
class UtilsService {
|
|
4677
|
-
environmentConfig;
|
|
4678
|
-
constructor(environmentConfig) {
|
|
4679
|
-
this.environmentConfig = environmentConfig;
|
|
4680
|
-
}
|
|
4681
|
-
getDisplayedNameForMongoMethodByUserActivity(urlRequest) {
|
|
4682
|
-
let mongoMethodDisplayedName;
|
|
4683
|
-
const mongoMethodsDisplayedNamesMap = getMongoMethodsDisplayedNamesMap(this.environmentConfig?.mongoUpdates, this.environmentConfig?.authenticationPaths);
|
|
4684
|
-
Object.entries(mongoMethodsDisplayedNamesMap).forEach(([mongoMethod, displayedName]) => {
|
|
4685
|
-
const urlParts = urlRequest?.split('/');
|
|
4686
|
-
const matchedMethod = urlParts?.find(urlPart => urlPart === mongoMethod);
|
|
4687
|
-
if (matchedMethod)
|
|
4688
|
-
mongoMethodDisplayedName = displayedName;
|
|
4689
|
-
});
|
|
4690
|
-
return mongoMethodDisplayedName;
|
|
4691
|
-
}
|
|
4692
|
-
fetchFiles(fileId, resourceType, bucket) {
|
|
4693
|
-
if (!fileId)
|
|
4694
|
-
return Promise.reject();
|
|
4695
|
-
const bucketPath = bucket ? bucket : this.environmentConfig?.buckets[resourceType];
|
|
4696
|
-
if (fileId && fileId[0] != '/' && bucketPath[bucketPath.length - 1] != '/')
|
|
4697
|
-
fileId = "/" + fileId;
|
|
4698
|
-
const path = this.environmentConfig?.environment?.s3ServerPath + bucketPath + fileId;
|
|
4699
|
-
return fetch(path);
|
|
4700
|
-
}
|
|
4701
|
-
async initAudioFile(fileId, bucketName, signal) {
|
|
4702
|
-
const audioBucketName = bucketName ? (bucketName + "/") : this.environmentConfig?.buckets.Audio;
|
|
4703
|
-
return fetch(this.environmentConfig?.environment?.s3ServerPath + audioBucketName + fileId, { signal: signal })
|
|
4704
|
-
.then(async (response) => {
|
|
4705
|
-
const arrayBuffer = await response.arrayBuffer();
|
|
4706
|
-
if (arrayBuffer.byteLength === 0) {
|
|
4707
|
-
const blob = await response.blob();
|
|
4708
|
-
const reader = new FileReader();
|
|
4709
|
-
reader.onload = () => {
|
|
4710
|
-
const arrayBuffer = reader.result;
|
|
4711
|
-
const file = new File([arrayBuffer], fileId, {
|
|
4712
|
-
type: 'audio/mp3',
|
|
4713
|
-
});
|
|
4714
|
-
return file;
|
|
4715
|
-
};
|
|
4716
|
-
reader.readAsArrayBuffer(blob);
|
|
4717
|
-
}
|
|
4718
|
-
else {
|
|
4719
|
-
const file = new File([arrayBuffer], fileId, {
|
|
4720
|
-
type: 'audio/mpeg',
|
|
4721
|
-
});
|
|
4722
|
-
return file;
|
|
4723
|
-
}
|
|
4724
|
-
});
|
|
4725
|
-
}
|
|
4726
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UtilsService, deps: [{ token: HERUM_SHARED_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4727
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UtilsService, providedIn: 'root' });
|
|
4728
|
-
}
|
|
4729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UtilsService, decorators: [{
|
|
4730
|
-
type: Injectable,
|
|
4731
|
-
args: [{
|
|
4732
|
-
providedIn: 'root'
|
|
4733
|
-
}]
|
|
4734
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4735
|
-
type: Inject,
|
|
4736
|
-
args: [HERUM_SHARED_CONFIG_TOKEN]
|
|
4737
|
-
}] }] });
|
|
4738
|
-
|
|
4739
4716
|
class HerumSpinnerComponent {
|
|
4740
4717
|
size = 'default-size';
|
|
4741
4718
|
borderColor = 'default-border-color';
|
|
@@ -10256,6 +10233,8 @@ class HerumTableComponent {
|
|
|
10256
10233
|
},
|
|
10257
10234
|
];
|
|
10258
10235
|
selectedRowsIds = [];
|
|
10236
|
+
tableFixedHeight;
|
|
10237
|
+
tableMaxHeight;
|
|
10259
10238
|
noResults;
|
|
10260
10239
|
overlayNoRowsTemplate = 'לא נמצאו תוצאות';
|
|
10261
10240
|
rowsSelectionType = 'multiple';
|
|
@@ -10395,15 +10374,22 @@ class HerumTableComponent {
|
|
|
10395
10374
|
this.childComponentsReferences.push(componentReference);
|
|
10396
10375
|
}
|
|
10397
10376
|
setTableHeight(numberOfRows) {
|
|
10377
|
+
if (this.tableFixedHeight)
|
|
10378
|
+
return this.tableFixedHeight;
|
|
10398
10379
|
const overlayNoRowsTemplateHeight = 350;
|
|
10399
10380
|
const headerRowHeight = 48;
|
|
10381
|
+
const viewportHeight = window.innerHeight;
|
|
10400
10382
|
const tableHeight = headerRowHeight + numberOfRows * this.rowHeight;
|
|
10401
10383
|
const minTableHeight = headerRowHeight + 7 * this.rowHeight;
|
|
10402
10384
|
if (!numberOfRows)
|
|
10403
10385
|
return `${overlayNoRowsTemplateHeight}px`;
|
|
10386
|
+
if (this.tableFixedHeight && tableHeight >= convertHeightToPixels(this.tableFixedHeight))
|
|
10387
|
+
return this.tableFixedHeight;
|
|
10404
10388
|
if (tableHeight < minTableHeight)
|
|
10405
10389
|
return minTableHeight + pixelUnit;
|
|
10406
|
-
|
|
10390
|
+
if (tableHeight > this.tableMaxHeight)
|
|
10391
|
+
return this.tableMaxHeight + pixelUnit;
|
|
10392
|
+
return (tableHeight > window.innerHeight) ? (viewportHeight * 0.7) + pixelUnit : tableHeight + pixelUnit;
|
|
10407
10393
|
}
|
|
10408
10394
|
updateSelectedRows(params) {
|
|
10409
10395
|
params.api.forEachNode((node) => {
|
|
@@ -10466,17 +10452,21 @@ class HerumTableComponent {
|
|
|
10466
10452
|
return maxHeight;
|
|
10467
10453
|
}
|
|
10468
10454
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HerumTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10469
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: HerumTableComponent, isStandalone: false, selector: "herum-table", inputs: { rowData: "rowData", columnDefs: "columnDefs", selectedRowsIds: "selectedRowsIds", noResults: "noResults", overlayNoRowsTemplate: "overlayNoRowsTemplate", rowsSelectionType: "rowsSelectionType", usePagination: "usePagination", suppressRowClickSelection: "suppressRowClickSelection", showExportToExcel: "showExportToExcel" }, outputs: { onCheckedRow: "onCheckedRow", onUncheckedRow: "onUncheckedRow", selectedRowByChild: "selectedRowByChild", cellValueChangeByChild: "cellValueChangeByChild", cellMouseOver: "cellMouseOver", onPaginationChanged: "onPaginationChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [HerumAgGridFilterComponent], viewQueries: [{ propertyName: "tableContainer", first: true, predicate: ["tableContainer"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-layout-container\" [class.show-export-button]=\"showExportToExcel\">\r\n <div #tableContainer class=\"table-container\">\r\n <ag-grid-angular style=\"height: 100% ;width: 100%\" class=\"ag-theme-alpine ag-rtl\" [rowData]=\"rowData\"\r\n [rowSelection]=\"rowsSelectionType\" [rowMultiSelectWithClick]=\"true\" [columnDefs]=\"columnDefs\"\r\n [defaultColDef]=\"defaultColDef\" [context]=\"context\" [components]=\"frameworkComponents\"\r\n [overlayNoRowsTemplate]=\"overlayNoRowsTemplate\" [enableRtl]=\"true\" [rowHeight]=\"rowHeight\"\r\n [pagination]=\"usePagination\" [paginationAutoPageSize]=\"usePagination\" [tooltipShowDelay]=\"0\"\r\n [gridOptions]=\"gridOptions\" [suppressRowClickSelection]=\"suppressRowClickSelection\"\r\n (cellMouseOver)=\"_onCellMouseOver($event)\" (paginationChanged)=\"_onPaginationChanged($event)\"\r\n (rowSelected)=\"_onRowSelected($event)\" (firstDataRendered)=\"_onFirstDataRendered($event)\"\r\n (filterChanged)=\"_onFilterChanged($event)\" (gridReady)=\"_onGridReady($event)\"\r\n (modelUpdated)=\"_onModelUpdated($event)\" (mouseleave)=\"_onGridMouseLeave()\">\r\n </ag-grid-angular>\r\n <ng-container *ngIf=\"isLoading\"><herum-loader></herum-loader></ng-container>\r\n </div>\r\n\r\n <div class=\"export-button-container\">\r\n <herum-button [type]=\"'secondary'\" (click)=\"_onExportCsv()\">\u05D9\u05D9\u05E6\u05D5\u05D0 \u05DC\u05D0\u05E7\u05E1\u05DC</herum-button>\r\n </div>\r\n</div>", styles: [":host{--export-buttons-margin: 0px;--export-buttons-container-height: 0px}.table-layout-container{height:100%;width:100%}.table-layout-container .table-container{position:relative;width:100%;--table-border-color: transparent}.table-layout-container .table-container .img-container{box-shadow:0 0 var(--box-shadow-blur) #00000029!important;position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:var(--border-radius);padding:5px;cursor:pointer}.table-layout-container .export-button-container{display:flex;justify-content:left;margin-top:var(--export-buttons-margin);margin-left:var(--export-buttons-margin);height:var(--export-buttons-container-height);overflow:hidden}.table-layout-container.show-export-button{--export-buttons-margin: 12px;--export-buttons-container-height: 32px}::ng-deep .hadracha .ag-header-viewport{background-color:var(--icons-color);border-radius:var(--border-radius)}::ng-deep .hadracha .ag-header-viewport *{color:#fff;font-size:16px}::ng-deep .hadracha .ag-header-viewport ::ng-deep .ag-icon-menu:before{color:#fff!important}::ng-deep .hadracha .ag-header-cell:not(:first-child),::ng-deep .hadracha .ag-header-group-cell{border:none!important}::ng-deep .hadracha ::ng-deep .ag-header-cell-label,::ng-deep .hadracha .ag-cell{text-align:center;padding:0!important;justify-content:center;font-size:14px;border:none!important}::ng-deep .hadracha ::ng-deep .ag-cell:not(:first-child){border:none!important}::ng-deep .hadracha ::ng-deep .ag-row:not(:last-child){border-bottom:2px solid var(--divider-color)}::ng-deep .hadracha ::ng-deep .ag-header-cell-text{font-size:14px}::ng-deep .ag-theme-alpine .ag-body-viewport{overflow-y:scroll}.ag-theme-alpine{--ag-checkbox-unchecked-color: var(--secondary-color);--ag-active-color: transparent;--ag-border-color: var(--table-border-color)}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper{height:var(--herum-checkbox-size)!important;width:var(--herum-checkbox-size)!important;font-size:0px;line-height:0px}::ng-deep .ag-checkbox-input-wrapper input{cursor:pointer;border:1px solid var(--secondary-color);opacity:1!important;border-radius:2px!important;height:var(--herum-checkbox-size)!important;width:var(--herum-checkbox-size)!important}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper:after{content:\"\"}::ng-deep .ag-checkbox-input-wrapper input:checked{background:var(--primary-color)!important;border:0px solid var(--secondary-color)!important}::ng-deep .ag-unselectable{-webkit-user-select:text;user-select:text}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper.ag-checked:after{content:url(/assets/shared/icons/bigV.svg)!important;pointer-events:none;border-color:transparent;position:absolute;top:52%!important;left:51%!important;transform:translate(-50%,-50%)!important}::ng-deep .ag-indeterminate{outline:.5px solid var(--icons-color)!important}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper.ag-indeterminate:after{content:\"\"!important;background:var(--primary-color);height:50%;width:50%;border-radius:1px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}::ng-deep .ag-tooltip{background-color:var(--tooltip-background-color)!important;color:var(--light-background-color)!important;padding:var(--tooltip-padding-size)!important;border-radius:var(--border-radius)!important;font-size:14px!important;box-shadow:0 0 var(--box-shadow-blur) #00000029!important}::ng-deep .ag-header-cell-sortable{padding-right:9px!important}::ng-deep .ag-theme-alpine .ag-row{border-bottom:none}::ng-deep .ag-theme-alpine .ag-body-viewport{border-bottom:none}::ng-deep .ag-theme-alpine .ag-row{padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}.ag-theme-alpine .ag-body-viewport{margin-top:0!important;margin-bottom:0!important}::ng-deep .ag-theme-quartz{--ag-grid-size: 5px;--ag-list-item-height: 20px}::ng-deep .ag-row:hover{background-color:var(--item-hover-color)!important}::ng-deep .ag-header{background:var(--notebook-header);color:#333;font-weight:700;height:20px;border-bottom:none}::ng-deep .ag-theme-alpine{--ag-cell-horizontal-border: \"#333\";--ag-header-column-separator-display: block}::ng-deep .ag-header-cell:not(:first-child),::ng-deep .ag-header-group-cell{border-right:1px solid var(--table-border-color);height:50px!important}::ng-deep .ag-rtl .ag-cell{border-left:1px solid var(--table-border-color);line-height:var(--table-row-line-height)}::ng-deep .ag-header-cell-label,::ng-deep .ag-cell-value{padding-right:8px}::ng-deep .ag-cell{padding-right:8px!important}::ng-deep .ag-theme-alpine .ag-row-selected{background-color:var(--item-hover-color)}::ng-deep .ag-theme-alpine .ag-row-even.selected-row,::ng-deep .ag-theme-alpine .ag-row-odd.selected-row{background-color:var(--item-hover-color)}::ng-deep .ag-cell:not(:first-child){border:none!important;border-right:1px solid var(--table-border-color)!important}::ng-deep .ag-header-cell:before{background:transparent}::ng-deep .ag-header-cell:not(:first-child){padding:0}::ng-deep .ag-header-cell.ag-column-first{border:none!important}::ng-deep .ag-cell-value.ag-cell.ag-column-last{border:none!important}::ng-deep .ag-wrapper.ag-picker-field-wrapper.ag-picker-collapsed:focus-within{border-color:var(--icons-color)!important;box-shadow:none!important}::ng-deep .ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{border-color:var(--icons-color)!important;box-shadow:none!important}::ng-deep .ag-icon-small-down:before{color:var(--icons-color)!important}::ng-deep .ag-checkbox-input-wrapper:after{top:0;left:0;border-radius:4px;transition:background .3s ease}::ng-deep .ag-checkbox-input-wrapper.ag-checked:after{color:var(--secondary-color)}::ng-deep .ag-root-wrapper.ag-layout-normal{border-radius:8px}.edit-row-cell{width:100%!important}::ng-deep edit-row{width:100%!important}::ng-deep .ag-icon-menu:before{color:var(--icons-color)!important}::ng-deep .ag-cell-inline-editing{padding:0}::ng-deep .ag-theme-alpine .ag-header{border-bottom:none;background-color:transparent!important}::ng-deep .ag-theme-alpine .ag-rtl .ag-cell{align-items:center}::ng-deep .mat-tooltip-trigger{overflow:hidden;text-overflow:ellipsis}::ng-deep .text-to-right.ag-header-cell-label,::ng-deep .text-to-right.ag-cell{text-align:start;padding-right:20px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.HerumButtonComponent, selector: "herum-button", inputs: ["type", "color", "size", "roundedCorners", "disabled", "isLoading", "name"] }, { kind: "component", type: i3$1.AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressDragLeaveHidesColumns", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterMovesDown", "enterMovesDownAfterEdit", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "quickFilterText", "cacheQuickFilter", "excludeHiddenColumnsFromQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "advancedFilterModel", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "enableChartToolPanelsButton", "suppressChartToolPanelsButton", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressParentsInRowNodes", "suppressTouch", "suppressFocusAfterRefresh", "suppressAsyncEvents", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "suppressAggAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "enableCellChangeFlash", "cellFlashDuration", "cellFlashDelay", "cellFadeDuration", "cellFadeDelay", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "suppressGroupMaintainValueType", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupIncludeFooter", "groupIncludeTotalFooter", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "suppressMakeColumnVisibleAfterUnGroup", "treeData", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideInfiniteScroll", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSideFilterAllLevels", "serverSideSortOnServer", "serverSideFilterOnServer", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "functionsPassive", "enableGroupEdit", "initialState", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "gridPreDestroyed", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest"] }] });
|
|
10455
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: HerumTableComponent, isStandalone: false, selector: "herum-table", inputs: { rowData: "rowData", columnDefs: "columnDefs", selectedRowsIds: "selectedRowsIds", tableFixedHeight: "tableFixedHeight", tableMaxHeight: "tableMaxHeight", noResults: "noResults", overlayNoRowsTemplate: "overlayNoRowsTemplate", rowsSelectionType: "rowsSelectionType", usePagination: "usePagination", suppressRowClickSelection: "suppressRowClickSelection", showExportToExcel: "showExportToExcel" }, outputs: { onCheckedRow: "onCheckedRow", onUncheckedRow: "onUncheckedRow", selectedRowByChild: "selectedRowByChild", cellValueChangeByChild: "cellValueChangeByChild", cellMouseOver: "cellMouseOver", onPaginationChanged: "onPaginationChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [HerumAgGridFilterComponent], viewQueries: [{ propertyName: "tableContainer", first: true, predicate: ["tableContainer"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #tableContainer class=\"table-container\">\r\n <ag-grid-angular\r\n style=\"height: 100% ;width: 100%\"\r\n class=\"ag-theme-alpine ag-rtl\"\r\n [rowData]=\"rowData\"\r\n [rowSelection]=\"rowsSelectionType\"\r\n [rowMultiSelectWithClick]=\"true\"\r\n [columnDefs]=\"columnDefs\"\r\n [defaultColDef]=\"defaultColDef\"\r\n [context]=\"context\"\r\n [components]=\"frameworkComponents\"\r\n [overlayNoRowsTemplate]=\"overlayNoRowsTemplate\"\r\n [enableRtl]=\"true\"\r\n [rowHeight]=\"rowHeight\"\r\n [pagination]=\"usePagination\"\r\n [paginationAutoPageSize]=\"usePagination\"\r\n [tooltipShowDelay]=\"0\"\r\n [gridOptions]=\"gridOptions\"\r\n [suppressRowClickSelection]=\"suppressRowClickSelection\"\r\n (cellMouseOver)=\"_onCellMouseOver($event)\"\r\n (paginationChanged)=\"_onPaginationChanged($event)\"\r\n (rowSelected)=\"_onRowSelected($event)\"\r\n (firstDataRendered)=\"_onFirstDataRendered($event)\"\r\n (filterChanged)=\"_onFilterChanged($event)\"\r\n (gridReady)=\"_onGridReady($event)\"\r\n (modelUpdated)=\"_onModelUpdated($event)\"\r\n (mouseleave)=\"_onGridMouseLeave()\"\r\n >\r\n </ag-grid-angular>\r\n <ng-container *ngIf=\"isLoading\"><herum-loader></herum-loader></ng-container>\r\n</div>\r\n\r\n<div class=\"export-button-container\" *ngIf=\"showExportToExcel\">\r\n <herum-button [type]=\"'secondary'\" (click)=\"_onExportCsv()\">\u05D9\u05D9\u05E6\u05D5\u05D0 \u05DC\u05D0\u05E7\u05E1\u05DC</herum-button>\r\n</div>", styles: [".table-container{position:relative;width:100%;--table-border-color: transparent}.table-container .img-container{box-shadow:0 0 var(--box-shadow-blur) #00000029!important;position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:var(--border-radius);padding:5px;cursor:pointer}.export-button-container{display:flex;justify-content:left;margin-top:12px;margin-left:12px}::ng-deep .hadracha .ag-header-viewport{background-color:var(--icons-color);border-radius:var(--border-radius)}::ng-deep .hadracha .ag-header-viewport *{color:#fff;font-size:16px}::ng-deep .hadracha .ag-header-viewport ::ng-deep .ag-icon-menu:before{color:#fff!important}::ng-deep .hadracha .ag-header-cell:not(:first-child),::ng-deep .hadracha .ag-header-group-cell{border:none!important}::ng-deep .hadracha ::ng-deep .ag-header-cell-label,::ng-deep .hadracha .ag-cell{text-align:center;padding:0!important;justify-content:center;font-size:14px;border:none!important}::ng-deep .hadracha ::ng-deep .ag-cell:not(:first-child){border:none!important}::ng-deep .hadracha ::ng-deep .ag-row:not(:last-child){border-bottom:2px solid var(--divider-color)}::ng-deep .hadracha ::ng-deep .ag-header-cell-text{font-size:14px}::ng-deep .ag-theme-alpine .ag-body-viewport{overflow-y:scroll}.ag-theme-alpine{--ag-checkbox-unchecked-color: var(--secondary-color);--ag-active-color: transparent;--ag-border-color: var(--table-border-color)}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper{height:var(--herum-checkbox-size)!important;width:var(--herum-checkbox-size)!important;font-size:0px;line-height:0px}::ng-deep .ag-checkbox-input-wrapper input{cursor:pointer;border:1px solid var(--secondary-color);opacity:1!important;border-radius:2px!important;height:var(--herum-checkbox-size)!important;width:var(--herum-checkbox-size)!important}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper:after{content:\"\"}::ng-deep .ag-checkbox-input-wrapper input:checked{background:var(--primary-color)!important;border:0px solid var(--secondary-color)!important}::ng-deep .ag-unselectable{-webkit-user-select:text;user-select:text}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper.ag-checked:after{content:url(/assets/shared/icons/bigV.svg)!important;pointer-events:none;border-color:transparent;position:absolute;top:52%!important;left:51%!important;transform:translate(-50%,-50%)!important}::ng-deep .ag-indeterminate{outline:.5px solid var(--icons-color)!important}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper.ag-indeterminate:after{content:\"\"!important;background:var(--primary-color);height:50%;width:50%;border-radius:1px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}::ng-deep .ag-tooltip{background-color:var(--tooltip-background-color)!important;color:var(--light-background-color)!important;padding:var(--tooltip-padding-size)!important;border-radius:var(--border-radius)!important;font-size:14px!important;box-shadow:0 0 var(--box-shadow-blur) #00000029!important}::ng-deep .ag-header-cell-sortable{padding-right:9px!important}::ng-deep .ag-theme-alpine .ag-row{border-bottom:none}::ng-deep .ag-theme-alpine .ag-body-viewport{border-bottom:none}::ng-deep .ag-theme-alpine .ag-row{padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}.ag-theme-alpine .ag-body-viewport{margin-top:0!important;margin-bottom:0!important}::ng-deep .ag-theme-quartz{--ag-grid-size: 5px;--ag-list-item-height: 20px}::ng-deep .ag-row:hover{background-color:var(--item-hover-color)!important}::ng-deep .ag-header{background:var(--notebook-header);color:#333;font-weight:700;height:20px;border-bottom:none}::ng-deep .ag-theme-alpine{--ag-cell-horizontal-border: \"#333\";--ag-header-column-separator-display: block}::ng-deep .ag-header-cell:not(:first-child),::ng-deep .ag-header-group-cell{border-right:1px solid var(--table-border-color);height:50px!important}::ng-deep .ag-rtl .ag-cell{border-left:1px solid var(--table-border-color);line-height:var(--table-row-line-height)}::ng-deep .ag-header-cell-label,::ng-deep .ag-cell-value{padding-right:8px}::ng-deep .ag-cell{padding-right:8px!important}::ng-deep .ag-theme-alpine .ag-row-selected{background-color:var(--item-hover-color)}::ng-deep .ag-theme-alpine .ag-row-even.selected-row,::ng-deep .ag-theme-alpine .ag-row-odd.selected-row{background-color:var(--item-hover-color)}::ng-deep .ag-cell:not(:first-child){border:none!important;border-right:1px solid var(--table-border-color)!important}::ng-deep .ag-header-cell:before{background:transparent}::ng-deep .ag-header-cell:not(:first-child){padding:0}::ng-deep .ag-header-cell.ag-column-first{border:none!important}::ng-deep .ag-cell-value.ag-cell.ag-column-last{border:none!important}::ng-deep .ag-wrapper.ag-picker-field-wrapper.ag-picker-collapsed:focus-within{border-color:var(--icons-color)!important;box-shadow:none!important}::ng-deep .ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{border-color:var(--icons-color)!important;box-shadow:none!important}::ng-deep .ag-icon-small-down:before{color:var(--icons-color)!important}::ng-deep .ag-checkbox-input-wrapper:after{top:0;left:0;border-radius:4px;transition:background .3s ease}::ng-deep .ag-checkbox-input-wrapper.ag-checked:after{color:var(--secondary-color)}::ng-deep .ag-root-wrapper.ag-layout-normal{border-radius:8px}.edit-row-cell{width:100%!important}::ng-deep edit-row{width:100%!important}::ng-deep .ag-icon-menu:before{color:var(--icons-color)!important}::ng-deep .ag-cell-inline-editing{padding:0}::ng-deep .ag-theme-alpine .ag-header{border-bottom:none;background-color:transparent!important}::ng-deep .ag-theme-alpine .ag-rtl .ag-cell{align-items:center}::ng-deep .mat-tooltip-trigger{overflow:hidden;text-overflow:ellipsis}::ng-deep .text-to-right.ag-header-cell-label,::ng-deep .text-to-right.ag-cell{text-align:start;padding-right:20px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.HerumButtonComponent, selector: "herum-button", inputs: ["type", "color", "size", "roundedCorners", "disabled", "isLoading", "name"] }, { kind: "component", type: i3$1.AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressDragLeaveHidesColumns", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterMovesDown", "enterMovesDownAfterEdit", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "quickFilterText", "cacheQuickFilter", "excludeHiddenColumnsFromQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "advancedFilterModel", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "enableChartToolPanelsButton", "suppressChartToolPanelsButton", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressParentsInRowNodes", "suppressTouch", "suppressFocusAfterRefresh", "suppressAsyncEvents", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "suppressAggAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "enableCellChangeFlash", "cellFlashDuration", "cellFlashDelay", "cellFadeDuration", "cellFadeDelay", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "suppressGroupMaintainValueType", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupIncludeFooter", "groupIncludeTotalFooter", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "suppressMakeColumnVisibleAfterUnGroup", "treeData", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideInfiniteScroll", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSideFilterAllLevels", "serverSideSortOnServer", "serverSideFilterOnServer", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "functionsPassive", "enableGroupEdit", "initialState", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "gridPreDestroyed", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest"] }] });
|
|
10470
10456
|
}
|
|
10471
10457
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HerumTableComponent, decorators: [{
|
|
10472
10458
|
type: Component,
|
|
10473
|
-
args: [{ standalone: false, selector: 'herum-table', providers: [HerumAgGridFilterComponent], template: "<div
|
|
10459
|
+
args: [{ standalone: false, selector: 'herum-table', providers: [HerumAgGridFilterComponent], template: "<div #tableContainer class=\"table-container\">\r\n <ag-grid-angular\r\n style=\"height: 100% ;width: 100%\"\r\n class=\"ag-theme-alpine ag-rtl\"\r\n [rowData]=\"rowData\"\r\n [rowSelection]=\"rowsSelectionType\"\r\n [rowMultiSelectWithClick]=\"true\"\r\n [columnDefs]=\"columnDefs\"\r\n [defaultColDef]=\"defaultColDef\"\r\n [context]=\"context\"\r\n [components]=\"frameworkComponents\"\r\n [overlayNoRowsTemplate]=\"overlayNoRowsTemplate\"\r\n [enableRtl]=\"true\"\r\n [rowHeight]=\"rowHeight\"\r\n [pagination]=\"usePagination\"\r\n [paginationAutoPageSize]=\"usePagination\"\r\n [tooltipShowDelay]=\"0\"\r\n [gridOptions]=\"gridOptions\"\r\n [suppressRowClickSelection]=\"suppressRowClickSelection\"\r\n (cellMouseOver)=\"_onCellMouseOver($event)\"\r\n (paginationChanged)=\"_onPaginationChanged($event)\"\r\n (rowSelected)=\"_onRowSelected($event)\"\r\n (firstDataRendered)=\"_onFirstDataRendered($event)\"\r\n (filterChanged)=\"_onFilterChanged($event)\"\r\n (gridReady)=\"_onGridReady($event)\"\r\n (modelUpdated)=\"_onModelUpdated($event)\"\r\n (mouseleave)=\"_onGridMouseLeave()\"\r\n >\r\n </ag-grid-angular>\r\n <ng-container *ngIf=\"isLoading\"><herum-loader></herum-loader></ng-container>\r\n</div>\r\n\r\n<div class=\"export-button-container\" *ngIf=\"showExportToExcel\">\r\n <herum-button [type]=\"'secondary'\" (click)=\"_onExportCsv()\">\u05D9\u05D9\u05E6\u05D5\u05D0 \u05DC\u05D0\u05E7\u05E1\u05DC</herum-button>\r\n</div>", styles: [".table-container{position:relative;width:100%;--table-border-color: transparent}.table-container .img-container{box-shadow:0 0 var(--box-shadow-blur) #00000029!important;position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:var(--border-radius);padding:5px;cursor:pointer}.export-button-container{display:flex;justify-content:left;margin-top:12px;margin-left:12px}::ng-deep .hadracha .ag-header-viewport{background-color:var(--icons-color);border-radius:var(--border-radius)}::ng-deep .hadracha .ag-header-viewport *{color:#fff;font-size:16px}::ng-deep .hadracha .ag-header-viewport ::ng-deep .ag-icon-menu:before{color:#fff!important}::ng-deep .hadracha .ag-header-cell:not(:first-child),::ng-deep .hadracha .ag-header-group-cell{border:none!important}::ng-deep .hadracha ::ng-deep .ag-header-cell-label,::ng-deep .hadracha .ag-cell{text-align:center;padding:0!important;justify-content:center;font-size:14px;border:none!important}::ng-deep .hadracha ::ng-deep .ag-cell:not(:first-child){border:none!important}::ng-deep .hadracha ::ng-deep .ag-row:not(:last-child){border-bottom:2px solid var(--divider-color)}::ng-deep .hadracha ::ng-deep .ag-header-cell-text{font-size:14px}::ng-deep .ag-theme-alpine .ag-body-viewport{overflow-y:scroll}.ag-theme-alpine{--ag-checkbox-unchecked-color: var(--secondary-color);--ag-active-color: transparent;--ag-border-color: var(--table-border-color)}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper{height:var(--herum-checkbox-size)!important;width:var(--herum-checkbox-size)!important;font-size:0px;line-height:0px}::ng-deep .ag-checkbox-input-wrapper input{cursor:pointer;border:1px solid var(--secondary-color);opacity:1!important;border-radius:2px!important;height:var(--herum-checkbox-size)!important;width:var(--herum-checkbox-size)!important}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper:after{content:\"\"}::ng-deep .ag-checkbox-input-wrapper input:checked{background:var(--primary-color)!important;border:0px solid var(--secondary-color)!important}::ng-deep .ag-unselectable{-webkit-user-select:text;user-select:text}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper.ag-checked:after{content:url(/assets/shared/icons/bigV.svg)!important;pointer-events:none;border-color:transparent;position:absolute;top:52%!important;left:51%!important;transform:translate(-50%,-50%)!important}::ng-deep .ag-indeterminate{outline:.5px solid var(--icons-color)!important}::ng-deep .ag-theme-alpine .ag-checkbox-input-wrapper.ag-indeterminate:after{content:\"\"!important;background:var(--primary-color);height:50%;width:50%;border-radius:1px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}::ng-deep .ag-tooltip{background-color:var(--tooltip-background-color)!important;color:var(--light-background-color)!important;padding:var(--tooltip-padding-size)!important;border-radius:var(--border-radius)!important;font-size:14px!important;box-shadow:0 0 var(--box-shadow-blur) #00000029!important}::ng-deep .ag-header-cell-sortable{padding-right:9px!important}::ng-deep .ag-theme-alpine .ag-row{border-bottom:none}::ng-deep .ag-theme-alpine .ag-body-viewport{border-bottom:none}::ng-deep .ag-theme-alpine .ag-row{padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}.ag-theme-alpine .ag-body-viewport{margin-top:0!important;margin-bottom:0!important}::ng-deep .ag-theme-quartz{--ag-grid-size: 5px;--ag-list-item-height: 20px}::ng-deep .ag-row:hover{background-color:var(--item-hover-color)!important}::ng-deep .ag-header{background:var(--notebook-header);color:#333;font-weight:700;height:20px;border-bottom:none}::ng-deep .ag-theme-alpine{--ag-cell-horizontal-border: \"#333\";--ag-header-column-separator-display: block}::ng-deep .ag-header-cell:not(:first-child),::ng-deep .ag-header-group-cell{border-right:1px solid var(--table-border-color);height:50px!important}::ng-deep .ag-rtl .ag-cell{border-left:1px solid var(--table-border-color);line-height:var(--table-row-line-height)}::ng-deep .ag-header-cell-label,::ng-deep .ag-cell-value{padding-right:8px}::ng-deep .ag-cell{padding-right:8px!important}::ng-deep .ag-theme-alpine .ag-row-selected{background-color:var(--item-hover-color)}::ng-deep .ag-theme-alpine .ag-row-even.selected-row,::ng-deep .ag-theme-alpine .ag-row-odd.selected-row{background-color:var(--item-hover-color)}::ng-deep .ag-cell:not(:first-child){border:none!important;border-right:1px solid var(--table-border-color)!important}::ng-deep .ag-header-cell:before{background:transparent}::ng-deep .ag-header-cell:not(:first-child){padding:0}::ng-deep .ag-header-cell.ag-column-first{border:none!important}::ng-deep .ag-cell-value.ag-cell.ag-column-last{border:none!important}::ng-deep .ag-wrapper.ag-picker-field-wrapper.ag-picker-collapsed:focus-within{border-color:var(--icons-color)!important;box-shadow:none!important}::ng-deep .ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{border-color:var(--icons-color)!important;box-shadow:none!important}::ng-deep .ag-icon-small-down:before{color:var(--icons-color)!important}::ng-deep .ag-checkbox-input-wrapper:after{top:0;left:0;border-radius:4px;transition:background .3s ease}::ng-deep .ag-checkbox-input-wrapper.ag-checked:after{color:var(--secondary-color)}::ng-deep .ag-root-wrapper.ag-layout-normal{border-radius:8px}.edit-row-cell{width:100%!important}::ng-deep edit-row{width:100%!important}::ng-deep .ag-icon-menu:before{color:var(--icons-color)!important}::ng-deep .ag-cell-inline-editing{padding:0}::ng-deep .ag-theme-alpine .ag-header{border-bottom:none;background-color:transparent!important}::ng-deep .ag-theme-alpine .ag-rtl .ag-cell{align-items:center}::ng-deep .mat-tooltip-trigger{overflow:hidden;text-overflow:ellipsis}::ng-deep .text-to-right.ag-header-cell-label,::ng-deep .text-to-right.ag-cell{text-align:start;padding-right:20px!important}\n"] }]
|
|
10474
10460
|
}], propDecorators: { rowData: [{
|
|
10475
10461
|
type: Input
|
|
10476
10462
|
}], columnDefs: [{
|
|
10477
10463
|
type: Input
|
|
10478
10464
|
}], selectedRowsIds: [{
|
|
10479
10465
|
type: Input
|
|
10466
|
+
}], tableFixedHeight: [{
|
|
10467
|
+
type: Input
|
|
10468
|
+
}], tableMaxHeight: [{
|
|
10469
|
+
type: Input
|
|
10480
10470
|
}], noResults: [{
|
|
10481
10471
|
type: Input
|
|
10482
10472
|
}], overlayNoRowsTemplate: [{
|
|
@@ -10862,9 +10852,9 @@ class FetchedMessageService {
|
|
|
10862
10852
|
this.setMessageKey(messageKey);
|
|
10863
10853
|
this.setRecipient(recipient);
|
|
10864
10854
|
const fetchedMessageHasShownStorageKey = messageKey.toUpperCase() + '_' + suffixStorageKey;
|
|
10865
|
-
if (condition && !StorageService
|
|
10855
|
+
if (condition && !StorageService.getItem(fetchedMessageHasShownStorageKey)) {
|
|
10866
10856
|
this.fetchedMessageData().subscribe((fetchedMessage) => this.dialog.open(FetchedMessageDialog, { data: { fetchedMessage, recipient: this.recipient } }));
|
|
10867
|
-
StorageService
|
|
10857
|
+
StorageService.setItem(fetchedMessageHasShownStorageKey, fetchedMessageHasShownStorageKey);
|
|
10868
10858
|
}
|
|
10869
10859
|
}
|
|
10870
10860
|
setMessageKey(messageKey) {
|
|
@@ -11016,7 +11006,7 @@ class ErrorsHandlerService {
|
|
|
11016
11006
|
else
|
|
11017
11007
|
this.failedDependentsRequestsContext[dependentId] = initialValue ? { error, failedComplexObservableArrowFunctions, initialValue } : { error, failedComplexObservableArrowFunctions };
|
|
11018
11008
|
}
|
|
11019
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ErrorsHandlerService, deps: [{ token: i1$6.MatDialog }, { token: i1$3.HttpClient }, { token:
|
|
11009
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ErrorsHandlerService, deps: [{ token: i1$6.MatDialog }, { token: i1$3.HttpClient }, { token: i1$2.UtilsService }, { token: HERUM_SHARED_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11020
11010
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ErrorsHandlerService, providedIn: 'root' });
|
|
11021
11011
|
}
|
|
11022
11012
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ErrorsHandlerService, decorators: [{
|
|
@@ -11024,7 +11014,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
11024
11014
|
args: [{
|
|
11025
11015
|
providedIn: 'root'
|
|
11026
11016
|
}]
|
|
11027
|
-
}], ctorParameters: () => [{ type: i1$6.MatDialog }, { type: i1$3.HttpClient }, { type:
|
|
11017
|
+
}], ctorParameters: () => [{ type: i1$6.MatDialog }, { type: i1$3.HttpClient }, { type: i1$2.UtilsService }, { type: undefined, decorators: [{
|
|
11028
11018
|
type: Inject,
|
|
11029
11019
|
args: [HERUM_SHARED_CONFIG_TOKEN]
|
|
11030
11020
|
}] }] });
|
|
@@ -11191,9 +11181,9 @@ class ToastsService {
|
|
|
11191
11181
|
hasToastAlreadyShownAndShouldShowOnce(toastStorageKey) {
|
|
11192
11182
|
if (!toastStorageKey)
|
|
11193
11183
|
return false;
|
|
11194
|
-
if (StorageService
|
|
11184
|
+
if (StorageService.getItem(toastStorageKey))
|
|
11195
11185
|
return true;
|
|
11196
|
-
StorageService
|
|
11186
|
+
StorageService.setItem(toastStorageKey, toastStorageKey);
|
|
11197
11187
|
return false;
|
|
11198
11188
|
}
|
|
11199
11189
|
showToast(title, content, status) {
|
|
@@ -11205,7 +11195,7 @@ class ToastsService {
|
|
|
11205
11195
|
if (statusCode >= 400 && statusCode < 599)
|
|
11206
11196
|
return toastStatuses.error;
|
|
11207
11197
|
}
|
|
11208
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ToastsService, deps: [{ token: ErrorsHandlerService }, { token:
|
|
11198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ToastsService, deps: [{ token: ErrorsHandlerService }, { token: i1$2.UtilsService }, { token: HERUM_SHARED_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11209
11199
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ToastsService, providedIn: 'root' });
|
|
11210
11200
|
}
|
|
11211
11201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ToastsService, decorators: [{
|
|
@@ -11213,7 +11203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
11213
11203
|
args: [{
|
|
11214
11204
|
providedIn: 'root'
|
|
11215
11205
|
}]
|
|
11216
|
-
}], ctorParameters: () => [{ type: ErrorsHandlerService }, { type:
|
|
11206
|
+
}], ctorParameters: () => [{ type: ErrorsHandlerService }, { type: i1$2.UtilsService }, { type: undefined, decorators: [{
|
|
11217
11207
|
type: Inject,
|
|
11218
11208
|
args: [HERUM_SHARED_CONFIG_TOKEN]
|
|
11219
11209
|
}] }] });
|