herum-shared 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/index.d.ts +1 -0
- package/constants/index.d.ts +4 -1
- package/fesm2022/herum-shared-atoms.mjs +6 -2
- package/fesm2022/herum-shared-atoms.mjs.map +1 -1
- package/fesm2022/herum-shared-constants.mjs +14 -5
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +33 -17
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +8 -3
- package/molecules/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -147,7 +147,9 @@ const dateRangeTimeRangeWithoutSecondsPlaceHolder = `${dateTimeWithoutSecondsPla
|
|
|
147
147
|
const resourceIdPlaceholder = "$resourceId";
|
|
148
148
|
const defaultCloseTime = new Date('01-01-2999');
|
|
149
149
|
const defaultOpenTime = new Date('01-01-1999');
|
|
150
|
-
const
|
|
150
|
+
const answersPath = `.Quiz.Questions[].ClosedContent.Answers[]`;
|
|
151
|
+
const answerNotePropertyPath = `${answersPath}.Note`;
|
|
152
|
+
const correctAnswerPropertyPath = `${answersPath}.IsCorrect`;
|
|
151
153
|
const matchingSourceIndexPropertyPath = `.Quiz.Questions[].MatchingContent.Sources[].Index`;
|
|
152
154
|
const openStatus = {
|
|
153
155
|
openingTime: new Date(),
|
|
@@ -219,6 +221,14 @@ const defaultAuthorizationObject = {
|
|
|
219
221
|
collectionItemType: 'Resources'
|
|
220
222
|
});
|
|
221
223
|
},
|
|
224
|
+
answerNote() {
|
|
225
|
+
return cloneDeep({
|
|
226
|
+
propertyPath: `[${resourceIdPlaceholder}]${answersPath}`,
|
|
227
|
+
authorizationType: MicroResourceAuthorizationType.view,
|
|
228
|
+
...closeStatus,
|
|
229
|
+
collectionItemType: 'Resources'
|
|
230
|
+
});
|
|
231
|
+
},
|
|
222
232
|
matchingSourceIndex() {
|
|
223
233
|
return cloneDeep({
|
|
224
234
|
propertyPath: `[${resourceIdPlaceholder}]${matchingSourceIndexPropertyPath}`,
|
|
@@ -235,14 +245,13 @@ function getResourceDefaultAuthorizations() {
|
|
|
235
245
|
return [defaultAuthorizationObject.view()];
|
|
236
246
|
}
|
|
237
247
|
function getPublishAuthorization() {
|
|
238
|
-
return [defaultAuthorizationObject.resourceGrade(), defaultAuthorizationObject.questionGrade(), defaultAuthorizationObject.areAnswersCorrect(), defaultAuthorizationObject.answerNotes(), defaultAuthorizationObject.isCorrect(), defaultAuthorizationObject.matchingSourceIndex()];
|
|
248
|
+
return [defaultAuthorizationObject.resourceGrade(), defaultAuthorizationObject.questionGrade(), defaultAuthorizationObject.areAnswersCorrect(), defaultAuthorizationObject.answerNotes(), defaultAuthorizationObject.isCorrect(), defaultAuthorizationObject.answerNote(), defaultAuthorizationObject.matchingSourceIndex()];
|
|
239
249
|
}
|
|
240
250
|
function getMediaDefaultAuthorizations() {
|
|
241
251
|
return [defaultAuthorizationObject.view(), defaultAuthorizationObject.edit()];
|
|
242
252
|
}
|
|
243
253
|
function getPropertyPathsOfPublishAuthorization() {
|
|
244
|
-
return (
|
|
245
|
-
defaultAuthorizationObject.areAnswersCorrect().propertyPath, defaultAuthorizationObject.answerNotes().propertyPath, defaultAuthorizationObject.isCorrect().propertyPath, defaultAuthorizationObject.matchingSourceIndex().propertyPath]);
|
|
254
|
+
return getPublishAuthorization().map(publishAuthorization => publishAuthorization.propertyPath);
|
|
246
255
|
}
|
|
247
256
|
const viewPermissionLabel = 'צפייה';
|
|
248
257
|
|
|
@@ -750,5 +759,5 @@ const validatorsNames = {
|
|
|
750
759
|
* Generated bundle index. Do not edit.
|
|
751
760
|
*/
|
|
752
761
|
|
|
753
|
-
export { activeDragPath, additionTagName, anySubFileTypeWildCard, assignmentMetadata, attributes, audioAndVideoPreviewSupportedMimes, audioAndVideoPreviewSupportedSuffixes, audioPreviewSupportedMimes, audioPreviewSupportedSuffixes, calendarActiveColorCssVariable, calendarHoverColorCssVariable, calendarLibraryBodyCellSelector, calendarLibrarySelector, checkboxTypes, collectionFormKeys, collectionFormValues, correctAnswerPropertyPath, datePlaceHolder, dateRangePlaceHolder, dateRangeTimeRangePlaceHolder, dateRangeTimeRangeWithoutSecondsPlaceHolder, dateTimePlaceHolder, dateTimeWithoutSecondsPlaceHolder, dayInMilliSeconds, defaultAuthorizationObject, defaultCloseTime, defaultGrade, defaultOpenTime, defaultPlaceholder, defaultTrackTextChangesStyle, defaultUploadsManagerTitle, defaultUserId, deletionTagName, dialogsCloseActionButtons, dialogsDescriptions, dialogsNotes, dialogsSubmitActionButtons, dialogsTitles, dragPath, editorContainerElementId, errorHeadersToSet, femaleAvatarPath, filesSuffixes, formStatuses, formatError, formsErrorMessages, generalKeys, getMediaDefaultAuthorizations, getPropertyPathsOfPublishAuthorization, getPublishAuthorization, getQuizDefaultAuthorizations, getResourceDefaultAuthorizations, getSignUpFormFieldsByFields, getSignUpMethod, globalErrorHandlingHeader, herumClosedListMultiSelectType, initialMediaSettings, inputs, insuranceDialogPageNavigationData, keyboardAsciiCodes, keyboardKeys, maleAvatarPath, matchingSourceIndexPropertyPath, maxImageHeight, maxImageWidth, minDateError, minuteInMilliseconds, mouseEnter, mouseEnterHandlerKey, mouseLeave, mouseLeaveHandlerKey, previewImageKey, radioButtonTypes, readynessDisplayName, regexExpressions, resourceColumnPrefix, resourceFileTypes, resourceFormKeys, resourceIdPlaceholder, resourceKeys, resourceTypes, resourcesFilesSuffixes, routes, secondInMilliseconds, sideBarSizeButtonId, signUpFormFields, signUpFormFieldsData, signUpFormKeys, sixMonthsInDays, skipToastHeader, startEndDateError, statusCodes, structHierarchyTreeMaxHeight, svgsStrings, system, tableRowHeights, timePattern, timePlaceHolder, timeWithoutSecondsPlaceHolder, timerActiveColorCssVariable, timerHoverColorCssVariable, timerItemSizeColorCssVariable, timestampError, toastContext, toastStates, toastStatuses, toastsKeys, toastsTemplates, toastsTemplatesKeys, types, uploadStatuses, uploadsManagerKeys, uploadsProgressMetadataTypes, validatorsNames, videoPreviewSupportedMimes, videoPreviewSupportedSuffixes, viewPermissionLabel };
|
|
762
|
+
export { activeDragPath, additionTagName, answerNotePropertyPath, answersPath, anySubFileTypeWildCard, assignmentMetadata, attributes, audioAndVideoPreviewSupportedMimes, audioAndVideoPreviewSupportedSuffixes, audioPreviewSupportedMimes, audioPreviewSupportedSuffixes, calendarActiveColorCssVariable, calendarHoverColorCssVariable, calendarLibraryBodyCellSelector, calendarLibrarySelector, checkboxTypes, collectionFormKeys, collectionFormValues, correctAnswerPropertyPath, datePlaceHolder, dateRangePlaceHolder, dateRangeTimeRangePlaceHolder, dateRangeTimeRangeWithoutSecondsPlaceHolder, dateTimePlaceHolder, dateTimeWithoutSecondsPlaceHolder, dayInMilliSeconds, defaultAuthorizationObject, defaultCloseTime, defaultGrade, defaultOpenTime, defaultPlaceholder, defaultTrackTextChangesStyle, defaultUploadsManagerTitle, defaultUserId, deletionTagName, dialogsCloseActionButtons, dialogsDescriptions, dialogsNotes, dialogsSubmitActionButtons, dialogsTitles, dragPath, editorContainerElementId, errorHeadersToSet, femaleAvatarPath, filesSuffixes, formStatuses, formatError, formsErrorMessages, generalKeys, getMediaDefaultAuthorizations, getPropertyPathsOfPublishAuthorization, getPublishAuthorization, getQuizDefaultAuthorizations, getResourceDefaultAuthorizations, getSignUpFormFieldsByFields, getSignUpMethod, globalErrorHandlingHeader, herumClosedListMultiSelectType, initialMediaSettings, inputs, insuranceDialogPageNavigationData, keyboardAsciiCodes, keyboardKeys, maleAvatarPath, matchingSourceIndexPropertyPath, maxImageHeight, maxImageWidth, minDateError, minuteInMilliseconds, mouseEnter, mouseEnterHandlerKey, mouseLeave, mouseLeaveHandlerKey, previewImageKey, radioButtonTypes, readynessDisplayName, regexExpressions, resourceColumnPrefix, resourceFileTypes, resourceFormKeys, resourceIdPlaceholder, resourceKeys, resourceTypes, resourcesFilesSuffixes, routes, secondInMilliseconds, sideBarSizeButtonId, signUpFormFields, signUpFormFieldsData, signUpFormKeys, sixMonthsInDays, skipToastHeader, startEndDateError, statusCodes, structHierarchyTreeMaxHeight, svgsStrings, system, tableRowHeights, timePattern, timePlaceHolder, timeWithoutSecondsPlaceHolder, timerActiveColorCssVariable, timerHoverColorCssVariable, timerItemSizeColorCssVariable, timestampError, toastContext, toastStates, toastStatuses, toastsKeys, toastsTemplates, toastsTemplatesKeys, types, uploadStatuses, uploadsManagerKeys, uploadsProgressMetadataTypes, validatorsNames, videoPreviewSupportedMimes, videoPreviewSupportedSuffixes, viewPermissionLabel };
|
|
754
763
|
//# sourceMappingURL=herum-shared-constants.mjs.map
|