herum-shared 1.0.6 → 1.0.7
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 +12 -2
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +31 -14
- 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
package/atoms/index.d.ts
CHANGED
|
@@ -677,6 +677,7 @@ declare class HerumUploadFileComponent implements ControlValueAccessor {
|
|
|
677
677
|
uploadFileSvg: string;
|
|
678
678
|
constructor(parentForm: ControlContainer);
|
|
679
679
|
ngOnChanges(changes: SimpleChanges): void;
|
|
680
|
+
private clearState;
|
|
680
681
|
ngAfterViewInit(): void;
|
|
681
682
|
_onPreventDefault(event: DragEvent): void;
|
|
682
683
|
_onDrop(event: DragEvent): void;
|
package/constants/index.d.ts
CHANGED
|
@@ -136,6 +136,8 @@ declare const dateRangeTimeRangeWithoutSecondsPlaceHolder: string;
|
|
|
136
136
|
declare const resourceIdPlaceholder = "$resourceId";
|
|
137
137
|
declare const defaultCloseTime: Date;
|
|
138
138
|
declare const defaultOpenTime: Date;
|
|
139
|
+
declare const answersPath = ".Quiz.Questions[].ClosedContent.Answers[]";
|
|
140
|
+
declare const answerNotePropertyPath = ".Quiz.Questions[].ClosedContent.Answers[].note";
|
|
139
141
|
declare const correctAnswerPropertyPath = ".Quiz.Questions[].ClosedContent.Answers[].IsCorrect";
|
|
140
142
|
declare const matchingSourceIndexPropertyPath = ".Quiz.Questions[].MatchingContent.Sources[].Index";
|
|
141
143
|
declare const defaultAuthorizationObject: {
|
|
@@ -147,6 +149,7 @@ declare const defaultAuthorizationObject: {
|
|
|
147
149
|
areAnswersCorrect(): BackendMicroResourceAuthorization;
|
|
148
150
|
answerNotes(): BackendMicroResourceAuthorization;
|
|
149
151
|
isCorrect(): BackendMicroResourceAuthorization;
|
|
152
|
+
answerNote(): BackendMicroResourceAuthorization;
|
|
150
153
|
matchingSourceIndex(): BackendMicroResourceAuthorization;
|
|
151
154
|
};
|
|
152
155
|
declare function getQuizDefaultAuthorizations(): BackendMicroResourceAuthorization[];
|
|
@@ -844,4 +847,4 @@ declare const validatorsNames: {
|
|
|
844
847
|
required: string;
|
|
845
848
|
};
|
|
846
849
|
|
|
847
|
-
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 };
|
|
850
|
+
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 };
|
|
@@ -2130,13 +2130,17 @@ class HerumUploadFileComponent {
|
|
|
2130
2130
|
ngOnChanges(changes) {
|
|
2131
2131
|
if (changes.selectedFile) {
|
|
2132
2132
|
if (!this.selectedFile) {
|
|
2133
|
-
this.
|
|
2134
|
-
this.hasTouched = false;
|
|
2133
|
+
this.clearState();
|
|
2135
2134
|
return;
|
|
2136
2135
|
}
|
|
2137
2136
|
this.setExistingFile();
|
|
2138
2137
|
}
|
|
2139
2138
|
}
|
|
2139
|
+
clearState() {
|
|
2140
|
+
this.files = undefined;
|
|
2141
|
+
this.hasTouched = false;
|
|
2142
|
+
this.uploadName = this.fileSuffix = '';
|
|
2143
|
+
}
|
|
2140
2144
|
ngAfterViewInit() {
|
|
2141
2145
|
this.fileInput.nativeElement.setAttribute('title', '');
|
|
2142
2146
|
}
|