herum-shared 0.1.25
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/README.md +63 -0
- package/animations/index.d.ts +5 -0
- package/assets/feed/exercise/exerciseAchivment.svg +11 -0
- package/assets/feed/icons/active/audio.svg +5 -0
- package/assets/feed/icons/active/collection.svg +15 -0
- package/assets/feed/icons/active/exercise.svg +13 -0
- package/assets/feed/icons/active/generic-file.svg +8 -0
- package/assets/feed/icons/active/image.svg +11 -0
- package/assets/feed/icons/active/link.svg +6 -0
- package/assets/feed/icons/active/pdf.svg +14 -0
- package/assets/feed/icons/active/presentation.svg +11 -0
- package/assets/feed/icons/active/quiz.svg +17 -0
- package/assets/feed/icons/active/story.svg +7 -0
- package/assets/feed/icons/active/video.svg +11 -0
- package/assets/feed/icons/comment.svg +12 -0
- package/assets/feed/icons/error/audio.svg +5 -0
- package/assets/feed/icons/error/collection.svg +15 -0
- package/assets/feed/icons/error/exercise.svg +13 -0
- package/assets/feed/icons/error/generic-file.svg +8 -0
- package/assets/feed/icons/error/image.svg +11 -0
- package/assets/feed/icons/error/pdf.svg +14 -0
- package/assets/feed/icons/error/presentation.svg +11 -0
- package/assets/feed/icons/error/quiz.svg +17 -0
- package/assets/feed/icons/error/story.svg +7 -0
- package/assets/feed/icons/error/video.svg +11 -0
- package/assets/feed/icons/eye.svg +13 -0
- package/assets/feed/icons/garbage-secondary.svg +14 -0
- package/assets/feed/icons/garbage.svg +14 -0
- package/assets/feed/icons/green-x.svg +165 -0
- package/assets/feed/icons/hamburger.svg +2 -0
- package/assets/feed/icons/inactive/audio.svg +5 -0
- package/assets/feed/icons/inactive/exercise.svg +17 -0
- package/assets/feed/icons/inactive/link.svg +6 -0
- package/assets/feed/icons/inactive/pdf.svg +19 -0
- package/assets/feed/icons/inactive/presentation.svg +13 -0
- package/assets/feed/icons/inactive/quiz.svg +25 -0
- package/assets/feed/icons/inactive/story.svg +7 -0
- package/assets/feed/icons/inactive/video.svg +13 -0
- package/assets/feed/icons/status/Group 856.svg +11 -0
- package/assets/feed/icons/status/almostDone.svg +11 -0
- package/assets/feed/icons/status/done.svg +11 -0
- package/assets/feed/icons/status/inProgress.svg +13 -0
- package/assets/feed/icons/white-chevron.svg +3 -0
- package/assets/feed/icons/wide-mode.png +0 -0
- package/assets/feed/icons/wide-mode.svg +7 -0
- package/assets/feed/icons/wide-mode2.svg +8 -0
- package/assets/files-icons/.image.svg +11 -0
- package/assets/files-icons/.mp4.png +0 -0
- package/assets/files-icons/.mp4.svg +12 -0
- package/assets/files-icons/.pdf.png +0 -0
- package/assets/files-icons/.pdf.svg +16 -0
- package/assets/files-icons/.pptx.png +0 -0
- package/assets/files-icons/.pptx.svg +12 -0
- package/assets/files-icons/.video.svg +12 -0
- package/assets/files-icons/default-file.png +0 -0
- package/assets/files-icons/generic-file.svg +8 -0
- package/assets/files-icons/story.png +0 -0
- package/assets/files-icons/story.svg +3 -0
- package/assets/files-icons/upload-file.svg +4 -0
- package/assets/general/calendar.svg +12 -0
- package/assets/general/chevron.svg +3 -0
- package/assets/general/clock.svg +4 -0
- package/assets/general/closed-chevron.png +0 -0
- package/assets/general/college-calendar.svg +12 -0
- package/assets/general/comment-icon.svg +12 -0
- package/assets/general/dialogX.png +0 -0
- package/assets/general/errorOwl.png +0 -0
- package/assets/general/green-x.svg +4 -0
- package/assets/general/grey-chevron.svg +3 -0
- package/assets/general/keyboardLink.svg +15 -0
- package/assets/general/logo.png +0 -0
- package/assets/general/noCollectionsMessage.svg +59 -0
- package/assets/general/open-chevron.png +0 -0
- package/assets/general/owl-logo.svg +98 -0
- package/assets/general/secondary-x.svg +3 -0
- package/assets/general/user.svg +15 -0
- package/assets/general/white-chevron.svg +3 -0
- package/assets/quiz/greenHeaderArrow.svg +12 -0
- package/assets/quiz/greyHeaderArrow.svg +12 -0
- package/assets/quiz/happyOwl.svg +126 -0
- package/assets/quiz/sadOwl.svg +94 -0
- package/assets/quiz/skip.svg +5 -0
- package/assets/shared/atoms/inputs/herum-inputs.component.scss +56 -0
- package/assets/shared/atoms/selects/herum-selects.component.scss +141 -0
- package/assets/shared/atoms/uploadingStatuses/error.svg +8 -0
- package/assets/shared/atoms/uploadingStatuses/information.svg +6 -0
- package/assets/shared/atoms/uploadingStatuses/success.svg +9 -0
- package/assets/shared/audio-images/gray-pause.svg +4 -0
- package/assets/shared/audio-images/gray-play.svg +3 -0
- package/assets/shared/audio-images/next15.svg +7 -0
- package/assets/shared/audio-images/pause.svg +4 -0
- package/assets/shared/audio-images/play.svg +3 -0
- package/assets/shared/audio-images/previous15.svg +7 -0
- package/assets/shared/background/cubes.png +0 -0
- package/assets/shared/background/cubes.svg +1900 -0
- package/assets/shared/icons/V.svg +3 -0
- package/assets/shared/icons/X.svg +3 -0
- package/assets/shared/icons/active-clipboard.svg +7 -0
- package/assets/shared/icons/active-drag.svg +44 -0
- package/assets/shared/icons/active-upload.svg +3 -0
- package/assets/shared/icons/add.svg +3 -0
- package/assets/shared/icons/attachUsers.png +0 -0
- package/assets/shared/icons/big-no-result-owl.png +0 -0
- package/assets/shared/icons/bigV.svg +3 -0
- package/assets/shared/icons/celeb-owl.png +0 -0
- package/assets/shared/icons/clock.svg +3 -0
- package/assets/shared/icons/drag.svg +44 -0
- package/assets/shared/icons/edit.svg +3 -0
- package/assets/shared/icons/editCollection.png +0 -0
- package/assets/shared/icons/femaleAvatar.svg +80 -0
- package/assets/shared/icons/inactive-clipboard.svg +7 -0
- package/assets/shared/icons/input/X.png +0 -0
- package/assets/shared/icons/input/X.svg +3 -0
- package/assets/shared/icons/input/drag.svg +6 -0
- package/assets/shared/icons/input/green-search.png +0 -0
- package/assets/shared/icons/input/grey-search.png +0 -0
- package/assets/shared/icons/input/search.svg +4 -0
- package/assets/shared/icons/maleAvatar.svg +55 -0
- package/assets/shared/icons/no-result-owl.png +0 -0
- package/assets/shared/icons/resources.svg +6 -0
- package/assets/shared/icons/secondary-x.svg +3 -0
- package/assets/shared/icons/settings.png +0 -0
- package/assets/shared/icons/stepper/white-v.svg +3 -0
- package/assets/shared/icons/table/edit.svg +3 -0
- package/assets/shared/icons/target.png +0 -0
- package/assets/shared/icons/upload.png +0 -0
- package/assets/shared/icons/upload.svg +7 -0
- package/assets/shared/icons/user.svg +8 -0
- package/assets/shared/icons/video/Play.PNG +0 -0
- package/assets/shared/icons/video/back10.PNG +0 -0
- package/assets/shared/icons/video/back10.svg +7 -0
- package/assets/shared/icons/video/download.PNG +0 -0
- package/assets/shared/icons/video/download.svg +4 -0
- package/assets/shared/icons/video/fullScreen.PNG +0 -0
- package/assets/shared/icons/video/fullScreen.svg +7 -0
- package/assets/shared/icons/video/minimize.png +0 -0
- package/assets/shared/icons/video/mute.png +0 -0
- package/assets/shared/icons/video/mute.svg +7 -0
- package/assets/shared/icons/video/next10.PNG +0 -0
- package/assets/shared/icons/video/next10.svg +7 -0
- package/assets/shared/icons/video/pause.PNG +0 -0
- package/assets/shared/icons/video/pause.svg +5 -0
- package/assets/shared/icons/video/pictureInPicture.png +0 -0
- package/assets/shared/icons/video/pictureInPicture.svg +5 -0
- package/assets/shared/icons/video/pictureInPictureOff.svg +7 -0
- package/assets/shared/icons/video/play.svg +4 -0
- package/assets/shared/icons/video/primary-play.png +0 -0
- package/assets/shared/icons/video/primaryPlay.svg +22 -0
- package/assets/shared/icons/video/sound.svg +8 -0
- package/assets/shared/icons/video/speaker.PNG +0 -0
- package/assets/shared/trackChanges/edit.svg +11 -0
- package/assets/shared/trackChanges/message-plus.svg +14 -0
- package/assets/shared/trackChanges/show-comments.svg +5 -0
- package/assets/shared/trackChanges/text-reference.svg +3 -0
- package/assets/shared/trackChanges/trash.svg +9 -0
- package/atoms/index.d.ts +836 -0
- package/constants/index.d.ts +795 -0
- package/decorators/index.d.ts +3 -0
- package/dialogs/index.d.ts +41 -0
- package/directives/index.d.ts +55 -0
- package/environment/index.d.ts +129 -0
- package/errors/index.d.ts +26 -0
- package/fesm2022/herum-shared-animations.mjs +41 -0
- package/fesm2022/herum-shared-animations.mjs.map +1 -0
- package/fesm2022/herum-shared-atoms.mjs +2919 -0
- package/fesm2022/herum-shared-atoms.mjs.map +1 -0
- package/fesm2022/herum-shared-constants.mjs +711 -0
- package/fesm2022/herum-shared-constants.mjs.map +1 -0
- package/fesm2022/herum-shared-decorators.mjs +12 -0
- package/fesm2022/herum-shared-decorators.mjs.map +1 -0
- package/fesm2022/herum-shared-dialogs.mjs +113 -0
- package/fesm2022/herum-shared-dialogs.mjs.map +1 -0
- package/fesm2022/herum-shared-directives.mjs +226 -0
- package/fesm2022/herum-shared-directives.mjs.map +1 -0
- package/fesm2022/herum-shared-environment.mjs +10 -0
- package/fesm2022/herum-shared-environment.mjs.map +1 -0
- package/fesm2022/herum-shared-errors.mjs +71 -0
- package/fesm2022/herum-shared-errors.mjs.map +1 -0
- package/fesm2022/herum-shared-fetched-message.mjs +118 -0
- package/fesm2022/herum-shared-fetched-message.mjs.map +1 -0
- package/fesm2022/herum-shared-herum-types.mjs +106 -0
- package/fesm2022/herum-shared-herum-types.mjs.map +1 -0
- package/fesm2022/herum-shared-molecules.mjs +1530 -0
- package/fesm2022/herum-shared-molecules.mjs.map +1 -0
- package/fesm2022/herum-shared-mongo-molecules.mjs +269 -0
- package/fesm2022/herum-shared-mongo-molecules.mjs.map +1 -0
- package/fesm2022/herum-shared-mongo-services.mjs +441 -0
- package/fesm2022/herum-shared-mongo-services.mjs.map +1 -0
- package/fesm2022/herum-shared-mongo.mjs +729 -0
- package/fesm2022/herum-shared-mongo.mjs.map +1 -0
- package/fesm2022/herum-shared-objectsExample.mjs +190 -0
- package/fesm2022/herum-shared-objectsExample.mjs.map +1 -0
- package/fesm2022/herum-shared-pipes.mjs +406 -0
- package/fesm2022/herum-shared-pipes.mjs.map +1 -0
- package/fesm2022/herum-shared-services.mjs +1107 -0
- package/fesm2022/herum-shared-services.mjs.map +1 -0
- package/fesm2022/herum-shared-static-services.mjs +140 -0
- package/fesm2022/herum-shared-static-services.mjs.map +1 -0
- package/fesm2022/herum-shared-table.mjs +837 -0
- package/fesm2022/herum-shared-table.mjs.map +1 -0
- package/fesm2022/herum-shared-testsObjects.mjs +5722 -0
- package/fesm2022/herum-shared-testsObjects.mjs.map +1 -0
- package/fesm2022/herum-shared-tokens.mjs +13 -0
- package/fesm2022/herum-shared-tokens.mjs.map +1 -0
- package/fesm2022/herum-shared-utils.mjs +380 -0
- package/fesm2022/herum-shared-utils.mjs.map +1 -0
- package/fesm2022/herum-shared-validators.mjs +76 -0
- package/fesm2022/herum-shared-validators.mjs.map +1 -0
- package/fesm2022/herum-shared.mjs +11709 -0
- package/fesm2022/herum-shared.mjs.map +1 -0
- package/fetched-message/index.d.ts +49 -0
- package/herum-types/index.d.ts +198 -0
- package/index.d.ts +2946 -0
- package/molecules/index.d.ts +458 -0
- package/mongo/index.d.ts +175 -0
- package/mongo/molecules/index.d.ts +76 -0
- package/mongo/services/index.d.ts +98 -0
- package/objectsExample/index.d.ts +11 -0
- package/package.json +128 -0
- package/pipes/index.d.ts +93 -0
- package/services/index.d.ts +266 -0
- package/static-services/index.d.ts +25 -0
- package/styles/_mixin.scss +86 -0
- package/styles/collection-wizard-layout.component.scss +70 -0
- package/styles/dialogs.scss +49 -0
- package/styles/forms.scss +18 -0
- package/styles/overView.scss +115 -0
- package/styles/variables/_colors.college.scss +65 -0
- package/styles/variables/_colors.scss +161 -0
- package/styles/variables/_sizes.scss +73 -0
- package/styles/wizard-steps-layout.scss +21 -0
- package/table/index.d.ts +233 -0
- package/testsObjects/index.d.ts +91 -0
- package/tokens/index.d.ts +8 -0
- package/utils/index.d.ts +92 -0
- package/validators/index.d.ts +20 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--text-color: #424251;
|
|
3
|
+
--light-text-color: #ffffff;
|
|
4
|
+
--disabled-text-color: #8d8d8d;
|
|
5
|
+
|
|
6
|
+
--disabled-background-color: linear-gradient(17deg, #c5c7c7 0%, #ffffff 100%);
|
|
7
|
+
--disabled-border-color: #c8c5c5;
|
|
8
|
+
|
|
9
|
+
--positive-color: #26c593;
|
|
10
|
+
|
|
11
|
+
--popup-panel-color: #1c274c86;
|
|
12
|
+
|
|
13
|
+
--chips-divider-color: #cfd7e9;
|
|
14
|
+
--chips-bold-divider-color: #a0afd4;
|
|
15
|
+
|
|
16
|
+
--secondary-icon-fill-color: #7a9aac;
|
|
17
|
+
|
|
18
|
+
--panels-fill-color: #f4f4f7;
|
|
19
|
+
|
|
20
|
+
--error-color: #ff0a4d;
|
|
21
|
+
--information-color: #00bcd4;
|
|
22
|
+
|
|
23
|
+
--main-background-color: #f9fcff;
|
|
24
|
+
|
|
25
|
+
--light-background-color: #ffffff;
|
|
26
|
+
|
|
27
|
+
--darker-light-background-color: #1609290d;
|
|
28
|
+
|
|
29
|
+
--tooltip-background-color: #1c274c;
|
|
30
|
+
|
|
31
|
+
--inactive-border-color: #a0afd41a;
|
|
32
|
+
|
|
33
|
+
--table-border-color: #dfe4f0;
|
|
34
|
+
|
|
35
|
+
--hovered-item-background-color: #e5f4e9;
|
|
36
|
+
--secondary-hovered-item-background-color: #dfe4f084;
|
|
37
|
+
|
|
38
|
+
--page-color: #f6f6f6;
|
|
39
|
+
--college-page-color: #f9fcff;
|
|
40
|
+
|
|
41
|
+
--secondary-color: #7a9aac;
|
|
42
|
+
--lighter-secondary-color: #93b0c1;
|
|
43
|
+
--darker-secondary-color: #5e7d8e;
|
|
44
|
+
--secondary-gradient-color: linear-gradient(0deg, #5e7d8e 0%, #7a9aac 100%);
|
|
45
|
+
|
|
46
|
+
--panel-secondary-color: linear-gradient(42deg, #62d69a 0%, #62d69a 52%, #efa4fe 100%);
|
|
47
|
+
--panel-secondary-color-low-opacity: linear-gradient(162deg, #88ff198c 0%, #62d69a8c 52%, #efa4fe70 100%);
|
|
48
|
+
|
|
49
|
+
--default-icons-color: #7897a8;
|
|
50
|
+
|
|
51
|
+
--dark-overlay: #00000000;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.college-colors {
|
|
55
|
+
--hover-background: #eaf3fd;
|
|
56
|
+
--dark-hover-background: #c0deff;
|
|
57
|
+
--item-hover-color: #eaf3fd;
|
|
58
|
+
--hovered-item-background-color: #eaf3fd;
|
|
59
|
+
--learning-area-background-color: #f7f7f7;
|
|
60
|
+
--light-background-color: #fff;
|
|
61
|
+
--border-separator-color: #e6e6e6;
|
|
62
|
+
|
|
63
|
+
--primary-color: linear-gradient(0deg, #2b87e9 0%, #009de7 100%);
|
|
64
|
+
--lighter-primary-color: linear-gradient(0deg, #4e96e3 0%, #45b9ef 100%);
|
|
65
|
+
--fliped-primary-color: linear-gradient(180deg, #2b87e9 0%, #009de7 100%);
|
|
66
|
+
|
|
67
|
+
--icons-color: #2b87e9;
|
|
68
|
+
--secondary-icons-color: #26c593;
|
|
69
|
+
|
|
70
|
+
--icons-start-linear-gradient-color: #032b44;
|
|
71
|
+
--icons-middle-linear-gradient-color: #4682b4;
|
|
72
|
+
--icons-end-linear-gradient-color: #6495ed;
|
|
73
|
+
--icons-linear-gradient-color: linear-gradient(135deg,
|
|
74
|
+
var(--icons-start-linear-gradient-color),
|
|
75
|
+
var(--icons-middle-linear-gradient-color),
|
|
76
|
+
var(--icons-end-linear-gradient-color));
|
|
77
|
+
|
|
78
|
+
--college-secondary-icons-color: #2d7abe;
|
|
79
|
+
--notebook-header: linear-gradient(0deg, rgba(0, 212, 255, 0) 0%, #cadff8 100%);
|
|
80
|
+
--page-background-color: #f9fcff;
|
|
81
|
+
--divider-color: #e3dbf0;
|
|
82
|
+
|
|
83
|
+
--icons-color-light-1: #2d7abe80;
|
|
84
|
+
--icons-color-light-2: #2d7abe33;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.herum-colors {
|
|
88
|
+
--hover-background: #f1f3f9;
|
|
89
|
+
--item-hover-color: #f1f5f7;
|
|
90
|
+
|
|
91
|
+
--title-color: #131a17;
|
|
92
|
+
--semi-transparent-title: rgba(255, 255, 255, 0.8);
|
|
93
|
+
|
|
94
|
+
--primary-color: linear-gradient(0deg, #198575 0%, #2ab580 100%);
|
|
95
|
+
--fliped-primary-color: linear-gradient(180deg, #198575 0%, #2ab580 100%);
|
|
96
|
+
--lighter-primary-color: linear-gradient(0deg, #177969 0%, #25a072 100%);
|
|
97
|
+
--icons-color: #26c593;
|
|
98
|
+
|
|
99
|
+
--icons-start-linear-gradient-color: #095d57;
|
|
100
|
+
--icons-middle-linear-gradient-color: #2bb982;
|
|
101
|
+
--icons-end-linear-gradient-color: #44f0bb;
|
|
102
|
+
--icons-linear-gradient-color: linear-gradient(135deg,
|
|
103
|
+
var(--icons-start-linear-gradient-color),
|
|
104
|
+
var(--icons-middle-linear-gradient-color),
|
|
105
|
+
var(--icons-end-linear-gradient-color));
|
|
106
|
+
|
|
107
|
+
--darker-primary-color: linear-gradient(0deg, #177969 0%, #25a072 100%);
|
|
108
|
+
--section-header-color: transparent linear-gradient(177deg, var(--icons-start-linear-gradient-color) 0%, #2bb982b8 52%, hsla(162, 85%, 60%, 0) 100%) 0% 0% no-repeat padding-box;
|
|
109
|
+
|
|
110
|
+
--notebook-header: linear-gradient(0deg, rgba(0, 212, 255, 0) 0%, rgba(38, 197, 147, 0.4510548107255521) 100%);
|
|
111
|
+
|
|
112
|
+
--icons-color-light-1: #26c59380;
|
|
113
|
+
--icons-color-light-2: #26c59333;
|
|
114
|
+
--icons-color-as-bg: #f1f5f7;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.hadracha-colors {
|
|
118
|
+
background-color: var(--icons-color);
|
|
119
|
+
|
|
120
|
+
--hover-background: #e3dbf0;
|
|
121
|
+
--item-hover-color: #e3dbf0;
|
|
122
|
+
--hovered-item-background-color: #e3dbf0;
|
|
123
|
+
|
|
124
|
+
--title-color: #4d4591;
|
|
125
|
+
--text-color: #4d4591;
|
|
126
|
+
--semi-transparent-title: #4d4591c1;
|
|
127
|
+
--error-color: #f05d5c;
|
|
128
|
+
--disabled-text-color: #c3bad1;
|
|
129
|
+
|
|
130
|
+
--divider-color: #e3dbf0;
|
|
131
|
+
--secondary-color: #a255ff;
|
|
132
|
+
--notebook-header: #4d4591;
|
|
133
|
+
|
|
134
|
+
--homepage-separator: #c3bad1;
|
|
135
|
+
--page-background-color: #f8f9ff;
|
|
136
|
+
|
|
137
|
+
--primary-color: linear-gradient(225deg, #d74ed0 0%, #a255ff 100%);
|
|
138
|
+
--fliped-primary-color: linear-gradient(225deg, #a255ff 0%, #d74ed0 100%);
|
|
139
|
+
--lighter-primary-color: linear-gradient(0deg, #a255ff 0%, #a255ff 100%);
|
|
140
|
+
--icons-color: #4d4591;
|
|
141
|
+
|
|
142
|
+
--icons-start-linear-gradient-color: #a255ff;
|
|
143
|
+
--icons-middle-linear-gradient-color: #d74ed0;
|
|
144
|
+
--icons-end-linear-gradient-color: #d74ed0;
|
|
145
|
+
--icons-linear-gradient-color: linear-gradient(135deg,
|
|
146
|
+
var(--icons-start-linear-gradient-color),
|
|
147
|
+
var(--icons-middle-linear-gradient-color),
|
|
148
|
+
var(--icons-end-linear-gradient-color));
|
|
149
|
+
|
|
150
|
+
--darker-primary-color: #312C5A;
|
|
151
|
+
|
|
152
|
+
--icons-color-light-1: #a155ffbd;
|
|
153
|
+
--icons-color-light-2: #fbf9ff;
|
|
154
|
+
--lighter-secondary-color: #a155ffbd;
|
|
155
|
+
--icons-color-as-bg: #4d459114;
|
|
156
|
+
|
|
157
|
+
//todo-fix it from the side of the track text changes with tokens of the style
|
|
158
|
+
--dark-hover-background: #c0deff;
|
|
159
|
+
--quiz-chip-background-color: #f6f0ff;
|
|
160
|
+
--quiz-correct-answer: #3cc8a3;
|
|
161
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--minimum-small-button-width-size: 56px;
|
|
3
|
+
--small-button-height-size: 28px;
|
|
4
|
+
|
|
5
|
+
--minimum-medium-button-width-size: 68px;
|
|
6
|
+
--minimum-medium-quare-button-width-size: 32px;
|
|
7
|
+
--medium-button-height-size: 32px;
|
|
8
|
+
|
|
9
|
+
--big-button-height-size: 38px;
|
|
10
|
+
|
|
11
|
+
--button-padding-size: 12px;
|
|
12
|
+
--border-radius: 8px;
|
|
13
|
+
|
|
14
|
+
--tooltip-padding-size: 8px;
|
|
15
|
+
|
|
16
|
+
--standard-font-size: 12px;
|
|
17
|
+
|
|
18
|
+
--standard-padding: 12px;
|
|
19
|
+
|
|
20
|
+
--parent-page-padding: 24px;
|
|
21
|
+
--standard-medium-padding: 16px;
|
|
22
|
+
|
|
23
|
+
--standard-big-padding: 20px;
|
|
24
|
+
--medium-padding: 32px;
|
|
25
|
+
--big-padding: 40px;
|
|
26
|
+
--catalog-page-padding: 31px;
|
|
27
|
+
|
|
28
|
+
--atom-input-height: 38px;
|
|
29
|
+
|
|
30
|
+
--main-header-height: calc(max(6vh, 4.375rem));
|
|
31
|
+
|
|
32
|
+
--user-progress-container-height: 83px;
|
|
33
|
+
|
|
34
|
+
--icon-height: 20px;
|
|
35
|
+
|
|
36
|
+
--fixed-padding: 8px;
|
|
37
|
+
|
|
38
|
+
--herum-checkbox-size: 12px;
|
|
39
|
+
|
|
40
|
+
--webkit-scrollbar-width: 6px;
|
|
41
|
+
|
|
42
|
+
--box-shadow-blur: 4px;
|
|
43
|
+
|
|
44
|
+
--max-tabs-nav-width: 280px;
|
|
45
|
+
--min-tabs-nav-width: 190px;
|
|
46
|
+
|
|
47
|
+
--inner-creation-pages-padding: 24px;
|
|
48
|
+
|
|
49
|
+
--upload-file-border-radius: 8px;
|
|
50
|
+
|
|
51
|
+
--chips-border-radius: 21px;
|
|
52
|
+
|
|
53
|
+
--section-divider-margin: 28px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (max-width: 1400px) {
|
|
57
|
+
:root {
|
|
58
|
+
--main-header-height: 8vh;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (max-width: 800px) {
|
|
63
|
+
:root {
|
|
64
|
+
--main-header-height: 10vh;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.hadracha {
|
|
69
|
+
--atom-input-height: 32px !important;
|
|
70
|
+
--parent-page-padding: 44px;
|
|
71
|
+
--user-item-user-info-font-size: 14px;
|
|
72
|
+
--hadracha-corner-radius: 60px;
|
|
73
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import './mixin';
|
|
2
|
+
|
|
3
|
+
.content-container {
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-color: var(--light-background-color);
|
|
6
|
+
display: flex;
|
|
7
|
+
padding: var(--medium-padding) 0;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
max-height: 100%;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
|
|
12
|
+
@include boxShadow;
|
|
13
|
+
|
|
14
|
+
.col-4 {
|
|
15
|
+
padding: 0 var(--big-padding);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.col-8 {
|
|
19
|
+
padding: 0 var(--big-padding) var(--box-shadow-blur) var(--big-padding);
|
|
20
|
+
}
|
|
21
|
+
}
|
package/table/index.d.ts
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import * as i15 from 'ag-grid-angular';
|
|
2
|
+
import { ICellRendererAngularComp, AgFilterComponent } from 'ag-grid-angular';
|
|
3
|
+
import { AlignDir, HerumTableParams, HoveredHerumRowTable, BaseRowData } from 'herum-shared/herum-types';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { OnChanges, AfterViewInit, EventEmitter, ElementRef, SimpleChanges, OnInit } from '@angular/core';
|
|
6
|
+
import { ICellRendererParams, ColDef, GridApi, ColumnApi, GridReadyEvent, ModelUpdatedEvent, IFilterParams, IDoesFilterPassParams } from 'ag-grid-community';
|
|
7
|
+
import * as i17 from '@angular/cdk/clipboard';
|
|
8
|
+
import { Clipboard } from '@angular/cdk/clipboard';
|
|
9
|
+
import * as i13 from '@angular/forms';
|
|
10
|
+
import { FormControl } from '@angular/forms';
|
|
11
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
12
|
+
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
13
|
+
import * as i11 from '@angular/common';
|
|
14
|
+
import * as i12 from 'herum-shared/atoms';
|
|
15
|
+
import * as i14 from '@angular/material/tooltip';
|
|
16
|
+
import * as i16 from 'herum-shared/pipes';
|
|
17
|
+
|
|
18
|
+
declare class CheckboxCellComponent implements ICellRendererAngularComp {
|
|
19
|
+
isChecked: boolean;
|
|
20
|
+
blocked: boolean;
|
|
21
|
+
align?: AlignDir;
|
|
22
|
+
params: HerumTableParams;
|
|
23
|
+
_checked(checked: boolean): void;
|
|
24
|
+
agInit(params: HerumTableParams): void;
|
|
25
|
+
refresh(params: HerumTableParams): boolean;
|
|
26
|
+
private setParams;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxCellComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxCellComponent, "app-checkbox-cell", never, {}, {}, never, never, false, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class ChipsCellComponent implements ICellRendererAngularComp {
|
|
32
|
+
params: ICellRendererParams;
|
|
33
|
+
value: any;
|
|
34
|
+
agInit(params: HerumTableParams): void;
|
|
35
|
+
refresh(params: HerumTableParams): boolean;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipsCellComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsCellComponent, "app-chips-cell", never, {}, {}, never, never, false, never>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class CopyableCellComponent implements ICellRendererAngularComp {
|
|
41
|
+
params: ICellRendererParams;
|
|
42
|
+
value: any;
|
|
43
|
+
agInit(params: HerumTableParams): void;
|
|
44
|
+
refresh(params: HerumTableParams): boolean;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyableCellComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyableCellComponent, "app-copyable-cell", never, {}, {}, never, never, false, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class DeleteRowComponent implements ICellRendererAngularComp {
|
|
50
|
+
isRowHovered: boolean;
|
|
51
|
+
params: HerumTableParams;
|
|
52
|
+
value: any;
|
|
53
|
+
garbageSvg: string;
|
|
54
|
+
agInit(params: HerumTableParams): void;
|
|
55
|
+
_onDelete(event: MouseEvent): void;
|
|
56
|
+
_isTruncatedTitleElement(element: HTMLElement): boolean;
|
|
57
|
+
refresh(params: HerumTableParams): boolean;
|
|
58
|
+
ngOnDestroy(): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteRowComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteRowComponent, "delete-row", never, { "isRowHovered": { "alias": "isRowHovered"; "required": false; }; "params": { "alias": "params"; "required": false; }; }, {}, never, never, false, never>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class EditRowComponent implements ICellRendererAngularComp, HoveredHerumRowTable {
|
|
64
|
+
private clipboard;
|
|
65
|
+
isRowHovered: boolean;
|
|
66
|
+
params: ICellRendererParams;
|
|
67
|
+
value: any;
|
|
68
|
+
action: number;
|
|
69
|
+
isCopyableToClipboard: boolean;
|
|
70
|
+
constructor(clipboard: Clipboard);
|
|
71
|
+
agInit(params: HerumTableParams): void;
|
|
72
|
+
_onEdit(event: MouseEvent): void;
|
|
73
|
+
_onCopyToClipboard(event: MouseEvent): void;
|
|
74
|
+
refresh(params: HerumTableParams): boolean;
|
|
75
|
+
get editIcon(): string;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditRowComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditRowComponent, "edit-row", never, { "isRowHovered": { "alias": "isRowHovered"; "required": false; }; "params": { "alias": "params"; "required": false; }; }, {}, never, never, false, never>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare class InputCellComponent implements ICellRendererAngularComp {
|
|
82
|
+
align?: AlignDir;
|
|
83
|
+
params: HerumTableParams;
|
|
84
|
+
inputValue: number;
|
|
85
|
+
_input(value: number): void;
|
|
86
|
+
agInit(params: HerumTableParams): void;
|
|
87
|
+
refresh(params: HerumTableParams): boolean;
|
|
88
|
+
private setParams;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCellComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputCellComponent, "input-cell", never, {}, {}, never, never, false, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class RowActionButtonsComponent implements ICellRendererAngularComp {
|
|
94
|
+
isRowHovered: boolean;
|
|
95
|
+
value: any;
|
|
96
|
+
params: ICellRendererParams;
|
|
97
|
+
agInit(params: HerumTableParams): void;
|
|
98
|
+
refresh(params: HerumTableParams): boolean;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowActionButtonsComponent, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowActionButtonsComponent, "row-action-buttons", never, {}, {}, never, never, false, never>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare class SwitchCellComponent implements ICellRendererAngularComp {
|
|
104
|
+
isChecked?: boolean;
|
|
105
|
+
align?: AlignDir;
|
|
106
|
+
disabled: boolean;
|
|
107
|
+
params: HerumTableParams;
|
|
108
|
+
_checked(isChecked: boolean): void;
|
|
109
|
+
agInit(params: HerumTableParams): void;
|
|
110
|
+
refresh(params: HerumTableParams): boolean;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchCellComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchCellComponent, "switch-cell", never, { "isChecked": { "alias": "isChecked"; "required": false; }; "align": { "alias": "align"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class HerumTableComponent implements OnChanges, AfterViewInit {
|
|
116
|
+
rowData: (unknown & BaseRowData)[];
|
|
117
|
+
columnDefs: ColDef[];
|
|
118
|
+
selectedRowsIds: string[];
|
|
119
|
+
noResults: number;
|
|
120
|
+
overlayNoRowsTemplate: string;
|
|
121
|
+
rowsSelectionType: 'multiple' | 'single';
|
|
122
|
+
usePagination: boolean;
|
|
123
|
+
suppressRowClickSelection: boolean;
|
|
124
|
+
showExportToExcel: boolean;
|
|
125
|
+
onCheckedRow: EventEmitter<any>;
|
|
126
|
+
onUncheckedRow: EventEmitter<any>;
|
|
127
|
+
selectedRowByChild: EventEmitter<any>;
|
|
128
|
+
cellValueChangeByChild: EventEmitter<any>;
|
|
129
|
+
cellMouseOver: EventEmitter<any>;
|
|
130
|
+
onPaginationChanged: EventEmitter<any>;
|
|
131
|
+
tableContainer: ElementRef;
|
|
132
|
+
onResize(): void;
|
|
133
|
+
windowWidth: number;
|
|
134
|
+
context: any;
|
|
135
|
+
childComponentsReferences: HoveredHerumRowTable[];
|
|
136
|
+
isLoading: boolean;
|
|
137
|
+
gridApi: GridApi;
|
|
138
|
+
isFirstDataRendered: boolean;
|
|
139
|
+
defaultColDef: {
|
|
140
|
+
resizable: boolean;
|
|
141
|
+
sortable: boolean;
|
|
142
|
+
flex: number;
|
|
143
|
+
minWidth: number;
|
|
144
|
+
maxWidth: number;
|
|
145
|
+
rowHeight: number;
|
|
146
|
+
};
|
|
147
|
+
gridOptions: any;
|
|
148
|
+
frameworkComponents: {
|
|
149
|
+
customCheckboxRenderer: typeof CheckboxCellComponent;
|
|
150
|
+
};
|
|
151
|
+
rowHeight: number;
|
|
152
|
+
tableWidth: string;
|
|
153
|
+
gridColumnApi: ColumnApi;
|
|
154
|
+
params: HerumTableParams;
|
|
155
|
+
hoveredRowId: string;
|
|
156
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
157
|
+
ngAfterViewInit(): void;
|
|
158
|
+
_onExportCsv(): void;
|
|
159
|
+
_onFirstDataRendered(params: HerumTableParams): void;
|
|
160
|
+
_onGridReady(params: GridReadyEvent): void;
|
|
161
|
+
_onModelUpdated(modelUpdatedEvent: ModelUpdatedEvent): void;
|
|
162
|
+
_onSelectionChanged(event: any): void;
|
|
163
|
+
_onPaginationChanged(event: any): void;
|
|
164
|
+
_onCellMouseOver(event: any): void;
|
|
165
|
+
_onFilterChanged(params: HerumTableParams): void;
|
|
166
|
+
_onRowSelected(row: any): void;
|
|
167
|
+
_onGridMouseLeave(): void;
|
|
168
|
+
selectedRowByChildComponent(params: HerumTableParams): void;
|
|
169
|
+
deleteChildComponentReference(componentReference: HoveredHerumRowTable): void;
|
|
170
|
+
setChildComponentRef(componentReference: HoveredHerumRowTable): void;
|
|
171
|
+
private setTableHeight;
|
|
172
|
+
private updateSelectedRows;
|
|
173
|
+
private sortBySelectedRows;
|
|
174
|
+
private resizeColumnsWidth;
|
|
175
|
+
private toggleHoverIcon;
|
|
176
|
+
private getExistingComponentReferenceIndex;
|
|
177
|
+
private updateRowHeight;
|
|
178
|
+
private setRowheightStyleProperty;
|
|
179
|
+
private getMaxRowHeightFromColumns;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HerumTableComponent, never>;
|
|
181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HerumTableComponent, "herum-table", never, { "rowData": { "alias": "rowData"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "selectedRowsIds": { "alias": "selectedRowsIds"; "required": false; }; "noResults": { "alias": "noResults"; "required": false; }; "overlayNoRowsTemplate": { "alias": "overlayNoRowsTemplate"; "required": false; }; "rowsSelectionType": { "alias": "rowsSelectionType"; "required": false; }; "usePagination": { "alias": "usePagination"; "required": false; }; "suppressRowClickSelection": { "alias": "suppressRowClickSelection"; "required": false; }; "showExportToExcel": { "alias": "showExportToExcel"; "required": false; }; }, { "onCheckedRow": "onCheckedRow"; "onUncheckedRow": "onUncheckedRow"; "selectedRowByChild": "selectedRowByChild"; "cellValueChangeByChild": "cellValueChangeByChild"; "cellMouseOver": "cellMouseOver"; "onPaginationChanged": "onPaginationChanged"; }, never, never, false, never>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare class HerumAgGridFilterComponent implements AgFilterComponent, OnInit {
|
|
185
|
+
private envConfig;
|
|
186
|
+
private static readonly rowHeight;
|
|
187
|
+
private model;
|
|
188
|
+
private uniqueCheck;
|
|
189
|
+
private filterParams;
|
|
190
|
+
private fieldId;
|
|
191
|
+
private filterList;
|
|
192
|
+
isEverythingSelected: boolean;
|
|
193
|
+
isToggleAllCheckBoxBlocked: boolean;
|
|
194
|
+
containerHeight: number;
|
|
195
|
+
selectedValuesMap: object;
|
|
196
|
+
checkBoxType: string;
|
|
197
|
+
onFilterListChange$: BehaviorSubject<string[]>;
|
|
198
|
+
onFilterValuesChanged$: Observable<string[]>;
|
|
199
|
+
destroySubject$: Subject<null>;
|
|
200
|
+
selectedFilter: FormControl;
|
|
201
|
+
constructor(envConfig: EnvironmentConfig);
|
|
202
|
+
ngOnInit(): void;
|
|
203
|
+
agInit(params: IFilterParams): void;
|
|
204
|
+
private handleChekedValuesWhenfiltering;
|
|
205
|
+
setUniqueValues(): void;
|
|
206
|
+
toggleItem(value: string, updateMetadata?: boolean): void;
|
|
207
|
+
setCheckBoxType(): void;
|
|
208
|
+
toggleEverything(): void;
|
|
209
|
+
onNewRowsLoaded(): void;
|
|
210
|
+
isFilterActive(): boolean;
|
|
211
|
+
doesFilterPass(params: IDoesFilterPassParams): boolean;
|
|
212
|
+
getModel(): string[];
|
|
213
|
+
onFilterChanged(): void;
|
|
214
|
+
setModel(value: string): void;
|
|
215
|
+
private setContainerHeight;
|
|
216
|
+
private sortValues;
|
|
217
|
+
private selectEverything;
|
|
218
|
+
private unselectEverything;
|
|
219
|
+
private addUniqueValueIfMissing;
|
|
220
|
+
private isValueValid;
|
|
221
|
+
isTruncatedTitleElement(element: HTMLElement): boolean;
|
|
222
|
+
ngOnDestroy(): void;
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HerumAgGridFilterComponent, never>;
|
|
224
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HerumAgGridFilterComponent, "app-herum-ag-grid-filter", never, {}, {}, never, never, false, never>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
declare class TableModule {
|
|
228
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
|
|
229
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof CheckboxCellComponent, typeof ChipsCellComponent, typeof CopyableCellComponent, typeof DeleteRowComponent, typeof EditRowComponent, typeof InputCellComponent, typeof RowActionButtonsComponent, typeof SwitchCellComponent, typeof HerumTableComponent, typeof HerumAgGridFilterComponent], [typeof i11.CommonModule, typeof i12.AtomsModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i14.MatTooltipModule, typeof i15.AgGridModule, typeof i16.PipesModule, typeof i17.ClipboardModule], [typeof CheckboxCellComponent, typeof ChipsCellComponent, typeof CopyableCellComponent, typeof DeleteRowComponent, typeof EditRowComponent, typeof InputCellComponent, typeof RowActionButtonsComponent, typeof SwitchCellComponent, typeof HerumTableComponent, typeof HerumAgGridFilterComponent, typeof i15.AgGridModule]>;
|
|
230
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export { CheckboxCellComponent, ChipsCellComponent, CopyableCellComponent, DeleteRowComponent, EditRowComponent, HerumAgGridFilterComponent, HerumTableComponent, InputCellComponent, RowActionButtonsComponent, SwitchCellComponent, TableModule };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ModelInfo } from 'herum-shared/herum-types';
|
|
2
|
+
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
3
|
+
|
|
4
|
+
declare const collectionModelInfo: {
|
|
5
|
+
[key: string]: ModelInfo;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
declare const collectionId: string[];
|
|
9
|
+
declare const mockedCollectionFile: File;
|
|
10
|
+
declare const mockedCollectionFields: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
declare const collectionSplittedFields: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
declare const collectionFormattedAttachments: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}[];
|
|
19
|
+
declare const mockedNewFileCollectionRequest: {
|
|
20
|
+
DbBasicActionRequest: {
|
|
21
|
+
data: any;
|
|
22
|
+
ids: string[];
|
|
23
|
+
};
|
|
24
|
+
DbAttachmentActionRequests: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
declare const userId: string;
|
|
29
|
+
declare const structId: string;
|
|
30
|
+
declare const mockedAssignedUserFields: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
declare const assignedUserSplittedFields: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
declare const mockedAssignedUserFormattedAttachments: {
|
|
37
|
+
attachments: {
|
|
38
|
+
[userId]: {
|
|
39
|
+
assignmentMetadata: {
|
|
40
|
+
state: number;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
id: null;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
field: string;
|
|
47
|
+
ids: string[];
|
|
48
|
+
}[];
|
|
49
|
+
declare const mockedUserFields: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
declare const mockedUpdatedUserFields: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
};
|
|
55
|
+
declare const mockedUpdatedUserRequest: {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
declare const userSplittedFields: {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
};
|
|
61
|
+
declare const userFormattedAttachments: {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}[];
|
|
64
|
+
declare const mockedNewGroupFields: {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
};
|
|
67
|
+
declare const mockedNewGroupRequest: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
declare const mockedCollectioDeletedFields: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
};
|
|
73
|
+
declare const mockedCollectioDeletedFieldsRequest: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
declare const groupsModelInfo: {
|
|
78
|
+
[key: string]: ModelInfo;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
declare const structModelInfo: {
|
|
82
|
+
[key: string]: ModelInfo;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
declare const usersModelInfo: {
|
|
86
|
+
[key: string]: ModelInfo;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
declare const testEnvironmentConfig: EnvironmentConfig;
|
|
90
|
+
|
|
91
|
+
export { assignedUserSplittedFields, collectionFormattedAttachments, collectionId, collectionModelInfo, collectionSplittedFields, groupsModelInfo, mockedAssignedUserFields, mockedAssignedUserFormattedAttachments, mockedCollectioDeletedFields, mockedCollectioDeletedFieldsRequest, mockedCollectionFields, mockedCollectionFile, mockedNewFileCollectionRequest, mockedNewGroupFields, mockedNewGroupRequest, mockedUpdatedUserFields, mockedUpdatedUserRequest, mockedUserFields, structId, structModelInfo, testEnvironmentConfig, userFormattedAttachments, userId, userSplittedFields, usersModelInfo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const SYSTEM_IDENTIFIER: InjectionToken<any>;
|
|
4
|
+
declare const SYSTEM_USER_SERVICE: InjectionToken<any>;
|
|
5
|
+
declare const SYSTEM_TRACK_TEXT_CHANGES_SERVICE: InjectionToken<any>;
|
|
6
|
+
declare const SYSTEM_AUDIO_VISUAL_CONFIGURATION: InjectionToken<any>;
|
|
7
|
+
|
|
8
|
+
export { SYSTEM_AUDIO_VISUAL_CONFIGURATION, SYSTEM_IDENTIFIER, SYSTEM_TRACK_TEXT_CHANGES_SERVICE, SYSTEM_USER_SERVICE };
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { IdentifiedEntity, MicroResourceAuthorizationBase, EntitiesLayoutProperties, FileData, FullHierarchyPartsPlaces, DependentMetadata, CollectionSubscription, ResourceSubscription } from 'herum-shared/herum-types';
|
|
2
|
+
import { ElementRef, QueryList } from '@angular/core';
|
|
3
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
declare const flatten: <T>(arr: T[][]) => T[];
|
|
6
|
+
declare const findKeyByValue: (array: {}[], value: any) => string;
|
|
7
|
+
declare const parseToIdentifiedEntitiesArray: (array: string[]) => IdentifiedEntity[];
|
|
8
|
+
|
|
9
|
+
declare const getAssignmentStateDisplayName: (state: any) => "שיבוץ זמני" | "אכ\"א" | "אג\"ת";
|
|
10
|
+
|
|
11
|
+
type ListsDiffs<Item extends {
|
|
12
|
+
[innerItemProperty: string]: {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
} | {}> = {
|
|
16
|
+
deletedItems: Item[];
|
|
17
|
+
newItems: Item[];
|
|
18
|
+
updatedItems: Item[];
|
|
19
|
+
};
|
|
20
|
+
declare const getDifferencesInObjects: <MainObject, ObjectToCheck>(mainObject: MainObject, comparedObject: ObjectToCheck) => {
|
|
21
|
+
[key: string]: any[];
|
|
22
|
+
};
|
|
23
|
+
declare const removeCommonObjectsBetweenArrays: <MainItem extends {
|
|
24
|
+
id: string;
|
|
25
|
+
}, CheckedItem extends {
|
|
26
|
+
id: string;
|
|
27
|
+
}>(mainArray: MainItem[], checkedArray: CheckedItem[]) => MainItem[];
|
|
28
|
+
declare const removeCommonItemsInObjectsFields: (mainObject: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}, secondaryObject: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}) => {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
declare const getDifferencesInLists: <Item extends {
|
|
36
|
+
[innerItemProperty: string]: {
|
|
37
|
+
id: string;
|
|
38
|
+
};
|
|
39
|
+
} | {}>(sourceList: Item[], editedList: Item[], innerItemProperty: string) => ListsDiffs<Item>;
|
|
40
|
+
declare const removeDuplicatesBetweenArrays: <Item>(mainArray: Item[], otherArray: Item[]) => Item[];
|
|
41
|
+
|
|
42
|
+
declare const convertToDate: (dateString: string) => string;
|
|
43
|
+
declare const generateNewTimeStamp: () => string;
|
|
44
|
+
declare const updateFullYear: (dateToUpdate: Date, date: Date) => Date;
|
|
45
|
+
declare const getMicroResourceTextualTimeString: (microResourceAuthorization: MicroResourceAuthorizationBase) => string;
|
|
46
|
+
declare const getTimeAsAgo: (time: Date) => string;
|
|
47
|
+
|
|
48
|
+
declare const isTruncatedTitleElement: (element: HTMLElement) => boolean;
|
|
49
|
+
declare const getEntitiesLayoutProperties: (entitiesWrapperElement: ElementRef, entitiesElement: QueryList<ElementRef>, entities: unknown[], entitiesWrapperHeight?: number) => EntitiesLayoutProperties;
|
|
50
|
+
declare const setElementsGridStyle: (entitiesWrapperElement: ElementRef, layoutProperties: EntitiesLayoutProperties) => void;
|
|
51
|
+
declare const setNavFlexLayoutStyle: (entitiesSectionElement: ElementRef, entitiesWrapperElement: ElementRef, showNavButtons: boolean, navButtonsWidth: number) => void;
|
|
52
|
+
declare const setNavFlexLayout: (entitiesSectionElement: ElementRef, entitiesWrapperElement: ElementRef, navButtonElement: ElementRef, entitiesElement: QueryList<ElementRef>) => number;
|
|
53
|
+
|
|
54
|
+
declare const getDeserializedFile: (response: Response, fileName: string, fileType?: string) => Promise<File>;
|
|
55
|
+
declare const getUrlFromFileData: (fileData: Partial<FileData>, s3ServerPath: string) => string;
|
|
56
|
+
declare const downloadFile: (fileName: string, data: File | Blob) => void;
|
|
57
|
+
|
|
58
|
+
declare const getBrowserVersion: (browserRegexExp: RegExp) => number | undefined;
|
|
59
|
+
declare const getChromeVersion: () => string;
|
|
60
|
+
|
|
61
|
+
declare const getHierarchyPartIfExist: (parts: string[], part: FullHierarchyPartsPlaces) => string;
|
|
62
|
+
|
|
63
|
+
declare const bytesToMegabytes: (bytes: number) => number;
|
|
64
|
+
|
|
65
|
+
declare const remainJustWantedValueInDictionary: (wantedValue: string, fields: {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}) => {};
|
|
68
|
+
declare const removeUnwantedProperties: (baseObject: any, wantedProperties: string[]) => any;
|
|
69
|
+
|
|
70
|
+
declare const buildPath: (parts: string[]) => string;
|
|
71
|
+
declare const setHeaders: (headers: HttpHeaders, headersToSet: {
|
|
72
|
+
key: string;
|
|
73
|
+
value: any;
|
|
74
|
+
}[], isEncodeURIComponent?: boolean) => HttpHeaders;
|
|
75
|
+
declare const convertDependentMetadataToHeaders: (dependentMetadata: DependentMetadata) => HttpHeaders;
|
|
76
|
+
declare const getVersionPathParameter: (lastUpdateTime: Date) => string;
|
|
77
|
+
|
|
78
|
+
declare const convertHeightToPixels: (value: string) => number;
|
|
79
|
+
declare const getDropdownAnimationStates: (isDropdownOpen: boolean, dropDownDirection: "upwards" | "downwards") => "openUp" | "openDown" | "closeDown" | "closeUp";
|
|
80
|
+
|
|
81
|
+
declare const getSubscriptionWithLastActivityTime: (subscriptions: CollectionSubscription[] | ResourceSubscription[]) => CollectionSubscription;
|
|
82
|
+
declare const getLastSubscriptionByField: (subscriptions: CollectionSubscription[] | ResourceSubscription[], field: string) => CollectionSubscription;
|
|
83
|
+
|
|
84
|
+
declare const toHash: (source: string) => string;
|
|
85
|
+
declare const toFirstCapitalLetter: (text: string) => string;
|
|
86
|
+
declare const toFirstLowerCaseLetter: (text: string) => string;
|
|
87
|
+
declare const camelCaseToPascalCase: (camelCase: string) => string;
|
|
88
|
+
declare const capitalizeWord: (word: string) => string;
|
|
89
|
+
declare const replaceInterpolateKeysWithObjectProperties: (string: string, object: Object) => string;
|
|
90
|
+
|
|
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, getUrlFromFileData, getVersionPathParameter, isTruncatedTitleElement, parseToIdentifiedEntitiesArray, remainJustWantedValueInDictionary, removeCommonItemsInObjectsFields, removeCommonObjectsBetweenArrays, removeDuplicatesBetweenArrays, removeUnwantedProperties, replaceInterpolateKeysWithObjectProperties, setElementsGridStyle, setHeaders, setNavFlexLayout, setNavFlexLayoutStyle, toFirstCapitalLetter, toFirstLowerCaseLetter, toHash, updateFullYear };
|
|
92
|
+
export type { ListsDiffs };
|